# HG changeset patch # User ymh # Date 1531930621 -7200 # Node ID 4233169235277eac360d9865c1f05bd1364f21ef # Parent 7902e5bbd87f9f2e9f636163b77664edc2a3dcdc Correct tag list removal diff -r 7902e5bbd87f -r 423316923527 src/iconolab/__init__.py --- a/src/iconolab/__init__.py Thu Jul 05 15:49:26 2018 +0200 +++ b/src/iconolab/__init__.py Wed Jul 18 18:17:01 2018 +0200 @@ -1,4 +1,4 @@ -VERSION = (0, 1, 5, "final", 0) +VERSION = (0, 1, 6, "final", 0) VERSION_STR = ".".join(map(lambda i: "%02d" % (i,), VERSION[:2])) diff -r 7902e5bbd87f -r 423316923527 src/iconolab/static/iconolab/css/iconolab.css --- a/src/iconolab/static/iconolab/css/iconolab.css Thu Jul 05 15:49:26 2018 +0200 +++ b/src/iconolab/static/iconolab/css/iconolab.css Wed Jul 18 18:17:01 2018 +0200 @@ -1,4 +1,4 @@ -Typeahead[data-v-b12dd580]{position:relative}.selected-tags[data-v-b12dd580]{border:1px solid red;width:200px!important}.selected-tags select[data-v-b12dd580]{display:inline-block}.Typeahead__input[data-v-b12dd580]{width:100%;font-size:14px;color:#2c3e50;line-height:1.42857143;box-shadow:inset 0 1px 4px rgba(0,0,0,.4);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-weight:300;padding:12px 26px;border:none;border-radius:22px;letter-spacing:1px;box-sizing:border-box}.Typeahead__input[data-v-b12dd580]:focus{border-color:#4fc08d;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px #4fc08d}.tag-item[data-v-b12dd580]{border:1px solid red}.fa-times[data-v-b12dd580]{cursor:pointer}ul[data-v-b12dd580]{padding:0;margin-top:8px;min-width:100%;background-color:#fff;list-style:none;border-radius:4px;box-shadow:0 0 10px rgba(0,0,0,.25);z-index:8}li[data-v-b12dd580]{padding:10px 16px;border-bottom:1px solid #ccc;cursor:pointer}li[data-v-b12dd580]:first-child{border-radius:4px 4px 0 0}li[data-v-b12dd580]:last-child{border-radius:0 0 4px 4px;border-bottom:0}span[data-v-b12dd580]{display:block;color:#2c3e50}.active[data-v-b12dd580]{background-color:#3aa373}.active span[data-v-b12dd580]{color:#fff}.name[data-v-b12dd580]{font-weight:700;font-size:18px}.screen-name[data-v-b12dd580]{font-style:italic}.diff-viewer-wrapper[data-v-f180b53a]{margin-top:5px}.diff-panel[data-v-f180b53a]{border:1px solid gray;width:300px;heigth:250px}del[data-v-f180b53a]{text-decoration:none;color:#b30000;background:#fadad7}ins[data-v-f180b53a]{background:#eaf2c2;color:#406619;text-decoration:none}.btn-group[data-v-6d79844c]{margin:0 5px 10px}.btn[data-v-6d79844c]{padding:3px 12px;line-height:12px}.value-label[data-v-6d79844c]{display:inline-block;vertical-align:middle;margin-bottom:10px}.value-wrapper[data-v-6d79844c]{font-size:10px}.btn--highlight[data-v-6d79844c]{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn--highlight[data-value="1"][data-v-6d79844c]{background-color:#fc5f62}.btn--highlight[data-value="2"][data-v-6d79844c]{background-color:#f7c136}.btn--highlight[data-value="3"][data-v-6d79844c]{background-color:#f7e53b}.btn--highlight[data-value="4"][data-v-6d79844c]{background-color:#ebf63d}.btn--highlight[data-value="5"][data-v-6d79844c]{background-color:#b9e78b}Typeahead[data-v-4086ddc0]{position:relative}.selected-tags[data-v-4086ddc0]{border:1px solid red;width:200px!important}.selected-tags select[data-v-4086ddc0]{display:inline-block}.Typeahead__input[data-v-4086ddc0]{width:100%;font-size:14px;color:#2c3e50;line-height:1.42857143;box-shadow:inset 0 1px 4px rgba(0,0,0,.4);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-weight:300;padding:12px 26px;border:none;border-radius:22px;letter-spacing:1px;box-sizing:border-box}.Typeahead__input[data-v-4086ddc0]:focus{border-color:#4fc08d;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px #4fc08d}.tag-item[data-v-4086ddc0]{border:1px solid red}.fa-times[data-v-4086ddc0]{cursor:pointer}ul[data-v-4086ddc0]{padding:0;margin-top:8px;min-width:100%;background-color:#fff;list-style:none;border-radius:4px;box-shadow:0 0 10px rgba(0,0,0,.25);z-index:8}li[data-v-4086ddc0]{padding:10px 16px;border-bottom:1px solid #ccc;cursor:pointer}li[data-v-4086ddc0]:first-child{border-radius:4px 4px 0 0}li[data-v-4086ddc0]:last-child{border-radius:0 0 4px 4px;border-bottom:0}span.tag-label[data-v-4086ddc0]{color:#2c3e50}.active[data-v-4086ddc0]{background-color:#3aa373}.active span[data-v-4086ddc0]{color:#fff}.name[data-v-4086ddc0]{font-weight:700;font-size:18px}.screen-name[data-v-4086ddc0]{font-style:italic}.tag-item-btn[data-v-42660cca]{float:left;position:relative}.tag-item-btn button[data-v-42660cca]{border:none;background-color:transparent}.tag-item-accuracy .fa[data-v-42660cca],.tag-item-relevancy .fa[data-v-42660cca]{position:absolute;left:50%;top:-50%;transform:translate(-50%,-50%)}.tag-item-btn[data-value="1"][data-v-42660cca]{background-color:#fc5f62}.tag-item-btn[data-value="2"][data-v-42660cca]{background-color:#f7c136}.tag-item-btn[data-value="3"][data-v-42660cca]{background-color:#f7e53b}.tag-item-btn[data-value="4"][data-v-42660cca]{background-color:#ebf63d}.tag-item-btn[data-value="5"][data-v-42660cca]{background-color:#b9e78b}.tag-title[data-v-42660cca]{padding:5px 5px 5px 10px;font-size:12px;max-width:140px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tag-item-form[data-v-42660cca]{padding:15px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.tag-item-form label[data-v-42660cca],.tag-item-form small[data-v-42660cca]{display:block;margin-bottom:5px}.tag-container[data-v-42660cca]{border:1px solid #ccc;border-bottom:none}.tag-item[data-v-42660cca],.tag-list .tag-container[data-v-42660cca]:last-of-type{border-bottom:1px solid #ccc}.tag-item[data-v-42660cca]{display:flex;justify-content:space-between;align-items:center}.tag-item[data-v-42660cca]:not(.tag-item--readonly):hover{cursor:pointer;background-color:#f5f5f5}.alert[data-v-1b422ac0]{padding:10px;font-size:12px}.tag-list[data-v-1b422ac0]{margin-bottom:15px}.tag-list-item[data-v-1b422ac0]:first-of-type{border-top-left-radius:4px;border-top-right-radius:4px}.tag-list-item[data-v-1b422ac0]:last-of-type{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.popover{min-width:300px}.popover-content .form-group{margin-bottom:10px}.popover-content .form-group label{font-size:12px}.popover-content .taglist{margin:10px 0 15px}.shape[data-v-3e6d2915]{fill:transparent;stroke:#fff;outline-color:#000;outline-style:solid}.shape.active[data-v-3e6d2915],.shape[data-v-3e6d2915]:hover{cursor:pointer;fill:#c5f2ff;opacity:.25}.shape--draggable[data-v-3e6d2915]:hover{cursor:move}.handler[data-v-3e6d2915]{fill:#fff;stroke:#000}.handler-top-left[data-v-3e6d2915]:hover{cursor:nw-resize}.handler-bottom-right[data-v-3e6d2915]:hover{cursor:se-resize}.handler[data-v-6643279d]{fill:#fff;stroke:#000}.path[data-v-6643279d]{stroke:inherit;stroke-width:inherit;fill:inherit;transform:inherit}.stroke-fg[data-v-6643279d]{stroke:#000;fill:transparent}.overlay[data-v-6643279d]{fill:transparent}.overlay.active[data-v-6643279d],.overlay[data-v-6643279d]:hover{cursor:pointer;fill:#c5f2ff;opacity:.25;stroke-opacity:1}.stroke-bg[data-v-6643279d]{stroke:#fff;fill:transparent}.handler--first[data-v-6643279d]{fill:#ff0}.zoom-wrapper[data-v-712bb7f6]{background-color:#fff}.move-handler[data-v-712bb7f6]{cursor:-webkit-grab;cursor:grab}.wrapper[data-v-b7498b6a]{position:relative}.cut-canvas[data-v-b7498b6a]{width:100%;height:700px;border:1px solid #ddd}.canvas--free[data-v-b7498b6a]:hover,.canvas--rect[data-v-b7498b6a]:hover{cursor:crosshair}.mode-controls .btn>svg[data-v-b7498b6a]{margin-top:4px}.mode-controls .btn-primary>svg[data-v-b7498b6a]{fill:#fff}.controls[data-v-b7498b6a]{position:absolute;transform:translateX(-50%);left:50%;bottom:15px;display:flex;flex-wrap:nowrap;align-items:center}.controls>[data-v-b7498b6a]{background-color:rgba(34,34,34,.9)}.controls .btn[data-v-b7498b6a]{background-color:transparent;color:#ccc;fill:#ccc;float:left}.controls .btn.active[data-v-b7498b6a],.controls .btn[data-v-b7498b6a]:active{color:#fff;fill:#fff;background-color:#111}.controls .btn[data-v-b7498b6a]:hover{background-color:#222}.controls .controls-left[data-v-b7498b6a]{margin-right:5px;border-radius:4px}.controls .controls-draw[data-v-b7498b6a]{border-top-left-radius:4px;border-bottom-left-radius:4px}.controls .controls-center[data-v-b7498b6a]{border-radius:4px;padding:8px}.controls .controls-zoom[data-v-b7498b6a]{border-top-right-radius:4px;border-bottom-right-radius:4px}.controls .controls-right[data-v-b7498b6a]{margin-left:5px;border-radius:4px}.help[data-v-b7498b6a]{position:absolute;top:10px;right:10px}.overlay[data-v-b7498b6a]{position:absolute;background-color:#c5f2ff;opacity:.25;top:0;right:0;bottom:0;left:0}form[data-v-68c3ff9f]{margin-bottom:20px;clear:both}label[data-v-68c3ff9f]{font-weight:400}.comment[data-v-46864dfe]{font-size:12px;padding:10px 0;border-bottom:1px solid #ddd}.comment-thread[data-v-46864dfe]{border-bottom-width:0;border-left:3px solid #ddd;padding-left:10px;margin-left:10px}.comment-author[data-v-46864dfe]{float:left;margin-right:4px}.comment-footer[data-v-46864dfe]{margin-top:0;color:#ccc}.wrapper[data-v-7fbf9fe0]{height:auto;overflow-y:auto;margin-bottom:20px}.alert[data-v-7fbf9fe0]{padding:10px;font-size:12px} +Typeahead[data-v-b12dd580]{position:relative}.selected-tags[data-v-b12dd580]{border:1px solid red;width:200px!important}.selected-tags select[data-v-b12dd580]{display:inline-block}.Typeahead__input[data-v-b12dd580]{width:100%;font-size:14px;color:#2c3e50;line-height:1.42857143;box-shadow:inset 0 1px 4px rgba(0,0,0,.4);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-weight:300;padding:12px 26px;border:none;border-radius:22px;letter-spacing:1px;box-sizing:border-box}.Typeahead__input[data-v-b12dd580]:focus{border-color:#4fc08d;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px #4fc08d}.tag-item[data-v-b12dd580]{border:1px solid red}.fa-times[data-v-b12dd580]{cursor:pointer}ul[data-v-b12dd580]{padding:0;margin-top:8px;min-width:100%;background-color:#fff;list-style:none;border-radius:4px;box-shadow:0 0 10px rgba(0,0,0,.25);z-index:8}li[data-v-b12dd580]{padding:10px 16px;border-bottom:1px solid #ccc;cursor:pointer}li[data-v-b12dd580]:first-child{border-radius:4px 4px 0 0}li[data-v-b12dd580]:last-child{border-radius:0 0 4px 4px;border-bottom:0}span[data-v-b12dd580]{display:block;color:#2c3e50}.active[data-v-b12dd580]{background-color:#3aa373}.active span[data-v-b12dd580]{color:#fff}.name[data-v-b12dd580]{font-weight:700;font-size:18px}.screen-name[data-v-b12dd580]{font-style:italic}.diff-viewer-wrapper[data-v-f180b53a]{margin-top:5px}.diff-panel[data-v-f180b53a]{border:1px solid gray;width:300px;heigth:250px}del[data-v-f180b53a]{text-decoration:none;color:#b30000;background:#fadad7}ins[data-v-f180b53a]{background:#eaf2c2;color:#406619;text-decoration:none}.btn-group[data-v-6d79844c]{margin:0 5px 10px}.btn[data-v-6d79844c]{padding:3px 12px;line-height:12px}.value-label[data-v-6d79844c]{display:inline-block;vertical-align:middle;margin-bottom:10px}.value-wrapper[data-v-6d79844c]{font-size:10px}.btn--highlight[data-v-6d79844c]{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn--highlight[data-value="1"][data-v-6d79844c]{background-color:#fc5f62}.btn--highlight[data-value="2"][data-v-6d79844c]{background-color:#f7c136}.btn--highlight[data-value="3"][data-v-6d79844c]{background-color:#f7e53b}.btn--highlight[data-value="4"][data-v-6d79844c]{background-color:#ebf63d}.btn--highlight[data-value="5"][data-v-6d79844c]{background-color:#b9e78b}Typeahead[data-v-4086ddc0]{position:relative}.selected-tags[data-v-4086ddc0]{border:1px solid red;width:200px!important}.selected-tags select[data-v-4086ddc0]{display:inline-block}.Typeahead__input[data-v-4086ddc0]{width:100%;font-size:14px;color:#2c3e50;line-height:1.42857143;box-shadow:inset 0 1px 4px rgba(0,0,0,.4);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-weight:300;padding:12px 26px;border:none;border-radius:22px;letter-spacing:1px;box-sizing:border-box}.Typeahead__input[data-v-4086ddc0]:focus{border-color:#4fc08d;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px #4fc08d}.tag-item[data-v-4086ddc0]{border:1px solid red}.fa-times[data-v-4086ddc0]{cursor:pointer}ul[data-v-4086ddc0]{padding:0;margin-top:8px;min-width:100%;background-color:#fff;list-style:none;border-radius:4px;box-shadow:0 0 10px rgba(0,0,0,.25);z-index:8}li[data-v-4086ddc0]{padding:10px 16px;border-bottom:1px solid #ccc;cursor:pointer}li[data-v-4086ddc0]:first-child{border-radius:4px 4px 0 0}li[data-v-4086ddc0]:last-child{border-radius:0 0 4px 4px;border-bottom:0}span.tag-label[data-v-4086ddc0]{color:#2c3e50}.active[data-v-4086ddc0]{background-color:#3aa373}.active span[data-v-4086ddc0]{color:#fff}.name[data-v-4086ddc0]{font-weight:700;font-size:18px}.screen-name[data-v-4086ddc0]{font-style:italic}.tag-item-btn[data-v-42660cca]{float:left;position:relative}.tag-item-btn button[data-v-42660cca]{border:none;background-color:transparent}.tag-item-accuracy .fa[data-v-42660cca],.tag-item-relevancy .fa[data-v-42660cca]{position:absolute;left:50%;top:-50%;transform:translate(-50%,-50%)}.tag-item-btn[data-value="1"][data-v-42660cca]{background-color:#fc5f62}.tag-item-btn[data-value="2"][data-v-42660cca]{background-color:#f7c136}.tag-item-btn[data-value="3"][data-v-42660cca]{background-color:#f7e53b}.tag-item-btn[data-value="4"][data-v-42660cca]{background-color:#ebf63d}.tag-item-btn[data-value="5"][data-v-42660cca]{background-color:#b9e78b}.tag-title[data-v-42660cca]{padding:5px 5px 5px 10px;font-size:12px;max-width:140px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tag-item-form[data-v-42660cca]{padding:15px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.tag-item-form label[data-v-42660cca],.tag-item-form small[data-v-42660cca]{display:block;margin-bottom:5px}.tag-container[data-v-42660cca]{border:1px solid #ccc;border-bottom:none}.tag-item[data-v-42660cca],.tag-list .tag-container[data-v-42660cca]:last-of-type{border-bottom:1px solid #ccc}.tag-item[data-v-42660cca]{display:flex;justify-content:space-between;align-items:center}.tag-item[data-v-42660cca]:not(.tag-item--readonly):hover{cursor:pointer;background-color:#f5f5f5}.alert[data-v-ce259de8]{padding:10px;font-size:12px}.tag-list[data-v-ce259de8]{margin-bottom:15px}.tag-list-item[data-v-ce259de8]:first-of-type{border-top-left-radius:4px;border-top-right-radius:4px}.tag-list-item[data-v-ce259de8]:last-of-type{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.popover{min-width:300px}.popover-content .form-group{margin-bottom:10px}.popover-content .form-group label{font-size:12px}.popover-content .taglist{margin:10px 0 15px}.shape[data-v-3e6d2915]{fill:transparent;stroke:#fff;outline-color:#000;outline-style:solid}.shape.active[data-v-3e6d2915],.shape[data-v-3e6d2915]:hover{cursor:pointer;fill:#c5f2ff;opacity:.25}.shape--draggable[data-v-3e6d2915]:hover{cursor:move}.handler[data-v-3e6d2915]{fill:#fff;stroke:#000}.handler-top-left[data-v-3e6d2915]:hover{cursor:nw-resize}.handler-bottom-right[data-v-3e6d2915]:hover{cursor:se-resize}.handler[data-v-6643279d]{fill:#fff;stroke:#000}.path[data-v-6643279d]{stroke:inherit;stroke-width:inherit;fill:inherit;transform:inherit}.stroke-fg[data-v-6643279d]{stroke:#000;fill:transparent}.overlay[data-v-6643279d]{fill:transparent}.overlay.active[data-v-6643279d],.overlay[data-v-6643279d]:hover{cursor:pointer;fill:#c5f2ff;opacity:.25;stroke-opacity:1}.stroke-bg[data-v-6643279d]{stroke:#fff;fill:transparent}.handler--first[data-v-6643279d]{fill:#ff0}.zoom-wrapper[data-v-712bb7f6]{background-color:#fff}.move-handler[data-v-712bb7f6]{cursor:-webkit-grab;cursor:grab}.wrapper[data-v-b7498b6a]{position:relative}.cut-canvas[data-v-b7498b6a]{width:100%;height:700px;border:1px solid #ddd}.canvas--free[data-v-b7498b6a]:hover,.canvas--rect[data-v-b7498b6a]:hover{cursor:crosshair}.mode-controls .btn>svg[data-v-b7498b6a]{margin-top:4px}.mode-controls .btn-primary>svg[data-v-b7498b6a]{fill:#fff}.controls[data-v-b7498b6a]{position:absolute;transform:translateX(-50%);left:50%;bottom:15px;display:flex;flex-wrap:nowrap;align-items:center}.controls>[data-v-b7498b6a]{background-color:rgba(34,34,34,.9)}.controls .btn[data-v-b7498b6a]{background-color:transparent;color:#ccc;fill:#ccc;float:left}.controls .btn.active[data-v-b7498b6a],.controls .btn[data-v-b7498b6a]:active{color:#fff;fill:#fff;background-color:#111}.controls .btn[data-v-b7498b6a]:hover{background-color:#222}.controls .controls-left[data-v-b7498b6a]{margin-right:5px;border-radius:4px}.controls .controls-draw[data-v-b7498b6a]{border-top-left-radius:4px;border-bottom-left-radius:4px}.controls .controls-center[data-v-b7498b6a]{border-radius:4px;padding:8px}.controls .controls-zoom[data-v-b7498b6a]{border-top-right-radius:4px;border-bottom-right-radius:4px}.controls .controls-right[data-v-b7498b6a]{margin-left:5px;border-radius:4px}.help[data-v-b7498b6a]{position:absolute;top:10px;right:10px}.overlay[data-v-b7498b6a]{position:absolute;background-color:#c5f2ff;opacity:.25;top:0;right:0;bottom:0;left:0}form[data-v-68c3ff9f]{margin-bottom:20px;clear:both}label[data-v-68c3ff9f]{font-weight:400}.comment[data-v-46864dfe]{font-size:12px;padding:10px 0;border-bottom:1px solid #ddd}.comment-thread[data-v-46864dfe]{border-bottom-width:0;border-left:3px solid #ddd;padding-left:10px;margin-left:10px}.comment-author[data-v-46864dfe]{float:left;margin-right:4px}.comment-footer[data-v-46864dfe]{margin-top:0;color:#ccc}.wrapper[data-v-7fbf9fe0]{height:auto;overflow-y:auto;margin-bottom:20px}.alert[data-v-7fbf9fe0]{padding:10px;font-size:12px} /*! * Bootstrap v3.3.7 (http://getbootstrap.com) diff -r 7902e5bbd87f -r 423316923527 src/iconolab/static/iconolab/js/iconolab.js --- a/src/iconolab/static/iconolab/js/iconolab.js Thu Jul 05 15:49:26 2018 +0200 +++ b/src/iconolab/static/iconolab/js/iconolab.js Wed Jul 18 18:17:01 2018 +0200 @@ -1,1 +1,1 @@ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/static/",n(n.s=364)}([function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:c}}n.d(e,"a",function(){return r})},function(t,e,n){(function(e){t.exports=e.JQuery=n(112)}).call(this,n(2))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(164)("wks"),i=n(163),o=n(3).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r,i;(function(){var n,o,a,s,l,c,u,f,d,h,p,m,v;t.exports=0;a="hasOwnProperty",s=/[\.\/]/,l=/\s*,\s*/,c=function(t,e){return t-e},u={n:{}},f=function(){for(var t=0,e=this.length;t1)for(var r=0,i=n.length;r=1&&(delete r[a],s.s=1,o--,function(t){setTimeout(function(){e("mina.finish."+t.id,t)})}(s)),s.update()}n=!!o&&i(m)}else n||(n=i(m))},v=function(t,e,n,i,o,l,C){var y={id:s+(a++).toString(36),start:t,end:e,b:n,s:0,dur:i-n,spd:1,get:o,set:l,easing:C||v.linear,status:c,speed:u,duration:f,stop:d,pause:h,resume:p,update:g};r[y.id]=y;var A,I=0;for(A in r)if(r.hasOwnProperty(A)&&2==++I)break;return 1==I&&m(),y};return v.time=l,v.getById=function(t){return r[t]||null},v.linear=function(t){return t},v.easeout=function(t){return Math.pow(t,1.7)},v.easein=function(t){return Math.pow(t,.48)},v.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,n=Math.sqrt(.1734+e*e),r=n-e,i=Math.pow(Math.abs(r),1/3)*(r<0?-1:1),o=-n-e,a=Math.pow(Math.abs(o),1/3)*(o<0?-1:1),s=i+a+.5;return 3*(1-s)*s*s+s*s*s},v.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},v.backout=function(t){if(0==t)return 0;var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},v.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},v.bounce=function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},t.mina=v,v}(void 0===e?function(){}:e),r=function(t){function n(t,e){if(t){if(t.nodeType)return W(t);if(O(t,"array")&&n.set)return n.set.apply(n,t);if(t instanceof q)return t;if(null==e)return W(t=r.doc.querySelector(String(t)))}return new U(t=null==t?"100%":t,e=null==e?"100%":e)}n.version="0.5.1",n.toString=function(){return"Snap v"+this.version},n._={};var r={win:t.window,doc:t.window.document};n._.glob=r;var i,o,a="hasOwnProperty",s=String,l=parseFloat,c=parseInt,u=Math,f=u.max,d=u.min,h=u.abs,p=(u.pow,u.PI),m=(u.round,""),v=Object.prototype.toString,C=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,y=(n._.separator=/[,\s]+/,/[\s]*,[\s]*/),A={hs:1,rg:1},I=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,b=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,_=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/gi,w=0,x="S"+(+new Date).toString(36),k=function(t){return(t&&t.type?t.type:m)+x+(w++).toString(36)},T="http://www.w3.org/1999/xlink",S="http://www.w3.org/2000/svg",j={};function E(t,e){if(e){if("#text"==t&&(t=r.doc.createTextNode(e.text||e["#text"]||"")),"#comment"==t&&(t=r.doc.createComment(e.text||e["#text"]||"")),"string"==typeof t&&(t=E(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(T,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(S,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType){for(var n in e)if(e[a](n)){var i=s(e[n]);i?"xlink:"==n.substring(0,6)?t.setAttributeNS(T,n.substring(6),i):"xml:"==n.substring(0,4)?t.setAttributeNS(S,n.substring(4),i):t.setAttribute(n,i):t.removeAttribute(n)}}else"text"in e&&(t.nodeValue=e.text)}else t=r.doc.createElementNS(S,t);return t}function O(t,e){return"finite"==(e=s.prototype.toLowerCase.call(e))?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||v.call(t).slice(8,-1).toLowerCase()==e}function M(t,e,n){return function r(){var i=Array.prototype.slice.call(arguments,0),o=i.join("␀"),s=r.cache=r.cache||{},l=r.count=r.count||[];return s[a](o)?(function(t,e){for(var n=0,r=t.length;n=1e3&&delete s[l.shift()],l.push(o),s[o]=t.apply(e,i),n?n(s[o]):s[o])}}function D(t){return t%360*p/180}n.url=function(t){return"url('#"+t+"')"},n._.$=E,n._.id=k,n.format=(i=/\{([^\}]+)\}/g,o=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return s(t).replace(i,function(t,n){return function(t,e,n){var r=n;return e.replace(o,function(t,e,n,i,o){e=e||i,r&&(e in r&&(r=r[e]),"function"==typeof r&&o&&(r=r()))}),r=(null==r||r==n?t:r)+""}(t,n,e)})}),n._.clone=function t(e){if("function"==typeof e||Object(e)!==e)return e;var n=new e.constructor;for(var r in e)e[a](r)&&(n[r]=t(e[r]));return n},n._.cacher=M,n.rad=D,n.deg=function(t){return 180*t/p%360},n.sin=function(t){return u.sin(n.rad(t))},n.tan=function(t){return u.tan(n.rad(t))},n.cos=function(t){return u.cos(n.rad(t))},n.asin=function(t){return n.deg(u.asin(t))},n.acos=function(t){return n.deg(u.acos(t))},n.atan=function(t){return n.deg(u.atan(t))},n.atan2=function(t){return n.deg(u.atan2(t))},n.angle=function t(e,n,r,i,o,a){if(null==o){var s=e-r,l=n-i;return s||l?(180+180*u.atan2(-l,-s)/p+360)%360:0}return t(e,n,o,a)-t(r,i,o,a)},n.len=function(t,e,r,i){return Math.sqrt(n.len2(t,e,r,i))},n.len2=function(t,e,n,r){return(t-n)*(t-n)+(e-r)*(e-r)},n.closestPoint=function(t,e,n){function r(t){var r=t.x-e,i=t.y-n;return r*r+i*i}for(var i,o,a,s,l=t.node,c=l.getTotalLength(),u=c/l.pathSegList.numberOfItems*.125,f=1/0,d=0;d<=c;d+=u)(s=r(a=l.getPointAtLength(d))).5;){var h,p,g,m,v,C;(g=o-u)>=0&&(v=r(h=l.getPointAtLength(g)))t-n)return e-i+t}return e},n.getRGB=M(function(t){if(!t||(t=s(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:F};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:F};if(!A[a](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=P(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:F};var e,r,i,o,h,p,g=t.match(C);return g?(g[2]&&(i=c(g[2].substring(5),16),r=c(g[2].substring(3,5),16),e=c(g[2].substring(1,3),16)),g[3]&&(i=c((h=g[3].charAt(3))+h,16),r=c((h=g[3].charAt(2))+h,16),e=c((h=g[3].charAt(1))+h,16)),g[4]&&(p=g[4].split(y),e=l(p[0]),"%"==p[0].slice(-1)&&(e*=2.55),r=l(p[1]),"%"==p[1].slice(-1)&&(r*=2.55),i=l(p[2]),"%"==p[2].slice(-1)&&(i*=2.55),"rgba"==g[1].toLowerCase().slice(0,4)&&(o=l(p[3])),p[3]&&"%"==p[3].slice(-1)&&(o/=100)),g[5]?(p=g[5].split(y),e=l(p[0]),"%"==p[0].slice(-1)&&(e/=100),r=l(p[1]),"%"==p[1].slice(-1)&&(r/=100),i=l(p[2]),"%"==p[2].slice(-1)&&(i/=100),("deg"==p[0].slice(-3)||"°"==p[0].slice(-1))&&(e/=360),"hsba"==g[1].toLowerCase().slice(0,4)&&(o=l(p[3])),p[3]&&"%"==p[3].slice(-1)&&(o/=100),n.hsb2rgb(e,r,i,o)):g[6]?(p=g[6].split(y),e=l(p[0]),"%"==p[0].slice(-1)&&(e/=100),r=l(p[1]),"%"==p[1].slice(-1)&&(r/=100),i=l(p[2]),"%"==p[2].slice(-1)&&(i/=100),("deg"==p[0].slice(-3)||"°"==p[0].slice(-1))&&(e/=360),"hsla"==g[1].toLowerCase().slice(0,4)&&(o=l(p[3])),p[3]&&"%"==p[3].slice(-1)&&(o/=100),n.hsl2rgb(e,r,i,o)):(e=d(u.round(e),255),r=d(u.round(r),255),i=d(u.round(i),255),o=d(f(o,0),1),(g={r:e,g:r,b:i,toString:F}).hex="#"+(16777216|i|r<<8|e<<16).toString(16).slice(1),g.opacity=O(o,"finite")?o:1,g)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:F}},n),n.hsb=M(function(t,e,r){return n.hsb2rgb(t,e,r).hex}),n.hsl=M(function(t,e,r){return n.hsl2rgb(t,e,r).hex}),n.rgb=M(function(t,e,n,r){if(O(r,"finite")){var i=u.round;return"rgba("+[i(t),i(e),i(n),+r.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)});var P=function(t){var e=r.doc.getElementsByTagName("head")[0]||r.doc.getElementsByTagName("svg")[0],n="rgb(255, 0, 0)";return(P=M(function(t){if("red"==t.toLowerCase())return n;e.style.color=n,e.style.color=t;var i=r.doc.defaultView.getComputedStyle(e,m).getPropertyValue("color");return i==n?null:i}))(t)},N=function(){return"hsb("+[this.h,this.s,this.b]+")"},L=function(){return"hsl("+[this.h,this.s,this.l]+")"},F=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},$=function(t,e,r){if(null==e&&O(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,e=t.g,t=t.r),null==e&&O(t,string)){var i=n.getRGB(t);t=i.r,e=i.g,r=i.b}return(t>1||e>1||r>1)&&(t/=255,e/=255,r/=255),[t,e,r]},R=function(t,e,r,i){t=u.round(255*t),e=u.round(255*e),r=u.round(255*r);var o={r:t,g:e,b:r,opacity:O(i,"finite")?i:1,hex:n.rgb(t,e,r),toString:F};return O(i,"finite")&&(o.opacity=i),o};n.color=function(t){var e;return O(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=n.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):O(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=n.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(O(t,"string")&&(t=n.getRGB(t)),O(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=n.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=n.rgb2hsb(t),t.v=e.b):((t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=F,t},n.hsb2rgb=function(t,e,n,r){var i,o,a,s,l;return O(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,r=t.o,t=t.h),s=(l=n*e)*(1-h((t=(t*=360)%360/60)%2-1)),i=o=a=n-l,R(i+=[l,s,0,0,s,l][t=~~t],o+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],r)},n.hsl2rgb=function(t,e,n,r){var i,o,a,s,l;return O(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),t=(t*=360)%360/60,s=(l=2*e*(n<.5?n:1-n))*(1-h(t%2-1)),i=o=a=n-l/2,R(i+=[l,s,0,0,s,l][t=~~t],o+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],r)},n.rgb2hsb=function(t,e,n){var r,i;return n=$(t,e,n),t=n[0],e=n[1],n=n[2],r=f(t,e,n),{h:((0==(i=r-d(t,e,n))?null:r==t?(e-n)/i:r==e?(n-t)/i+2:(t-e)/i+4)+360)%6*60/360,s:0==i?0:i/r,b:r,toString:N}},n.rgb2hsl=function(t,e,n){var r,i,o,a;return n=$(t,e,n),t=n[0],e=n[1],n=n[2],i=f(t,e,n),o=d(t,e,n),r=(i+o)/2,{h:((0==(a=i-o)?null:i==t?(e-n)/a:i==e?(n-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:0==a?0:r<.5?a/(2*r):a/(2-2*r),l:r,toString:L}},n.parsePathString=function(t){if(!t)return null;var e=n.path(t);if(e.arr)return n.path.clone(e.arr);var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return O(t,"array")&&O(t[0],"array")&&(i=n.path.clone(t)),i.length||s(t).replace(I,function(t,e,n){var o=[],a=e.toLowerCase();if(n.replace(_,function(t,e){e&&o.push(+e)}),"m"==a&&o.length>2&&(i.push([e].concat(o.splice(0,2))),a="l",e="m"==e?"l":"L"),"o"==a&&1==o.length&&i.push([e,o[0]]),"r"==a)i.push([e].concat(o));else for(;o.length>=r[a]&&(i.push([e].concat(o.splice(0,r[a]))),r[a]););}),i.toString=n.path.toString,e.arr=n.path.clone(i),i};var B=n.parseTransformString=function(t){if(!t)return null;var e=[];return O(t,"array")&&O(t[0],"array")&&(e=n.path.clone(t)),e.length||s(t).replace(b,function(t,n,r){var i=[];n.toLowerCase(),r.replace(_,function(t,e){e&&i.push(+e)}),e.push([n].concat(i))}),e.toString=n.path.toString,e};function z(t){return t.node.ownerSVGElement&&W(t.node.ownerSVGElement)||n.select("svg")}function H(t){O(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,n=0,r=this.node;this[e];)delete this[e++];for(e=0;e2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==n?e.push(["m",1,0,u.tan(D(r[0])),1,0,0]):"skewY"==n?e.push(["m",1,u.tan(D(r[0])),0,1,0,0]):e.push([n.charAt(0)].concat(r)),t}),e},n._.rgTransform=/^[a-z][\s]*-?\.?\d/i,n._.transform2matrix=function(t,e){var r=B(t),i=new n.Matrix;if(r)for(var o=0,a=r.length;o1))return e("snap.util.getattr."+t,this).firstDefined();var c={};c[t]=n,t=c}for(var u in t)t[a](u)&&e("snap.util.attr."+u,this,t[u]);return this},n.parse=function(t){var e=r.doc.createDocumentFragment(),n=!0,i=r.doc.createElement("div");if((t=s(t)).match(/^\s*<\s*svg(?:\s|>)/)||(t=""+t+"",n=!1),i.innerHTML=t,t=i.getElementsByTagName("svg")[0])if(n)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return new V(e)},n.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=r.doc.createDocumentFragment(),i=0,o=t.length;i")}else t&&(e+="/>");return e}}s.data=function(t,r){var i=v[this.id]=v[this.id]||{};if(0==arguments.length)return e("snap.data.get."+this.id,this,i,null),i;if(1==arguments.length){if(n.is(t,"object")){for(var o in t)t.hasOwnProperty(o)&&this.data(o,t[o]);return this}return e("snap.data.get."+this.id,this,i[t],t),i[t]}return i[t]=r,e("snap.data.set."+this.id,this,r,t),this},s.removeData=function(t){return null==t?v[this.id]={}:v[this.id]&&delete v[this.id][t],this},s.outerSVG=s.toString=C(1),s.innerSVG=C(),s.toDataURL=function(){if(t&&t.btoa){var e=this.getBBox(),r=n.format('{contents}',{x:+e.x.toFixed(3),y:+e.y.toFixed(3),width:+e.width.toFixed(3),height:+e.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(r)))}},a.prototype.select=s.select,a.prototype.selectAll=s.selectAll}),r.plugin(function(t,r,i,o,a){var s=r.prototype,l=t.is,c=String,u="hasOwnProperty";function f(t,e,n){return function(r){var i=r.slice(t,e);return 1==i.length&&(i=i[0]),n?n(i):i}}var d=function(t,e,r,i){"function"!=typeof r||r.length||(i=r,r=n.linear),this.attr=t,this.dur=e,r&&(this.easing=r),i&&(this.callback=i)};t._.Animation=d,t.animation=function(t,e,n,r){return new d(t,e,n,r)},s.inAnim=function(){var t=[];for(var e in this.anims)this.anims[u](e)&&function(e){t.push({anim:new d(e._attrs,e.dur,e.easing,e._callback),mina:e,curStatus:e.status(),status:function(t){return e.status(t)},stop:function(){e.stop()}})}(this.anims[e]);return t},t.animate=function(t,r,i,o,a,s){"function"!=typeof a||a.length||(s=a,a=n.linear);var l=n.time(),c=n(t,r,l,l+o,n.time,i,a);return s&&e.once("mina.finish."+c.id,s),c},s.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;e1&&(t=Array.prototype.slice.call(arguments,0));var e={};return l(t,"object")&&!l(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},s.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return l(t,"object")&&!l(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){var r=n._.$;function i(){return this.selectAll("stop")}function o(t,e){var i=r("stop"),o={offset:+e+"%"};t=n.color(t),o["stop-color"]=t.hex,t.opacity<1&&(o["stop-opacity"]=t.opacity),r(i,o);for(var a,s=this.stops(),l=0;le){this.node.insertBefore(i,s[l].node),a=!0;break}return a||this.node.appendChild(i),this}function a(){if("linearGradient"==this.type){var t=r(this.node,"x1")||0,e=r(this.node,"x2")||1,i=r(this.node,"y1")||0,o=r(this.node,"y2")||0;return n._.box(t,i,math.abs(e-t),math.abs(o-i))}var a=this.node.cx||.5,s=this.node.cy||.5,l=this.node.r||0;return n._.box(a-l,s-l,2*l,2*l)}function l(t){var r=t,i=this.stops();if("string"==typeof t&&(r=e("snap.util.grad.parse",null,"l(0,0,0,1)"+t).firstDefined().stops),n.is(r,"array")){for(var o=0;o.01;)u/=2,c=E(t,e,n,r,i,o,a,s,f+=(co){if(r&&!h.start){if(d+=["C"+i((f=A(s,l,c[1],c[2],c[3],c[4],c[5],c[6],o-p)).start.x),i(f.start.y),i(f.m.x),i(f.m.y),i(f.x),i(f.y)],a)return d;h.start=d,d=["M"+i(f.x),i(f.y)+"C"+i(f.n.x),i(f.n.y),i(f.end.x),i(f.end.y),i(c[5]),i(c[6])].join(),p+=u,s=+c[5],l=+c[6];continue}if(!n&&!r)return f=A(s,l,c[1],c[2],c[3],c[4],c[5],c[6],o-p)}p+=u,s=+c[5],l=+c[6]}d+=c.shift()+c}return h.end=d,f=n?p:r?h:x(s,l,c[0],c[1],c[2],c[3],c[4],c[5],1)},null,t._.clone)}var b=I(1),_=I(),w=I(0,1);function x(t,e,n,r,i,o,a,s,l){var c=1-l,d=p(c,3),h=p(c,2),g=l*l,m=g*l,v=t+2*l*(n-t)+g*(i-2*n+t),C=e+2*l*(r-e)+g*(o-2*r+e),y=n+2*l*(i-n)+g*(a-2*i+n),A=r+2*l*(o-r)+g*(s-2*o+r);return{x:d*t+3*h*l*n+3*c*l*l*i+m*a,y:d*e+3*h*l*r+3*c*l*l*o+m*s,m:{x:v,y:C},n:{x:y,y:A},start:{x:c*t+l*n,y:c*e+l*r},end:{x:c*i+l*a,y:c*o+l*s},alpha:90-180*u.atan2(v-y,C-A)/f}}function k(e,n,r,i,o,a,s,l){t.is(e,"array")||(e=[e,n,r,i,o,a,s,l]);var c=H.apply(null,e);return v(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)}function T(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function S(t,e){return t=v(t),T(e=v(e),t.x,t.y)||T(e,t.x2,t.y)||T(e,t.x,t.y2)||T(e,t.x2,t.y2)||T(t,e.x,e.y)||T(t,e.x2,e.y)||T(t,e.x,e.y2)||T(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}function j(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}function E(t,e,n,r,i,o,a,s,l){null==l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,p=0;p<12;p++){var g=c*f[p]+c,m=j(g,t,n,i,a),v=j(g,e,r,o,s),C=m*m+v*v;h+=d[p]*u.sqrt(C)}return c*h}function O(t,e,n,r,i,o,a,s){if(!(h(t,n)h(i,a)||h(e,r)h(o,s))){var l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var c=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/l,u=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/l,f=+c.toFixed(2),p=+u.toFixed(2);if(!(f<+d(t,n).toFixed(2)||f>+h(t,n).toFixed(2)||f<+d(i,a).toFixed(2)||f>+h(i,a).toFixed(2)||p<+d(e,r).toFixed(2)||p>+h(e,r).toFixed(2)||p<+d(o,s).toFixed(2)||p>+h(o,s).toFixed(2)))return{x:c,y:u}}}}function M(t,e,n){if(!S(k(t),k(e)))return n?0:[];for(var r=~~(E.apply(0,t)/8),i=~~(E.apply(0,e)/8),o=[],a=[],s={},l=n?0:[],c=0;c=0&&A<=1&&I>=0&&I<=1&&(n?l++:l.push({x:y.x,y:y.y,t1:A,t2:I}))}}return l}function D(t,e,n){t=q(t),e=q(e);for(var r,i,o,a,s,l,c,u,f,d,h=n?0:[],p=0,g=t.length;p180),0,s,e+n*Math.sin(-i*o)]];else l=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return l.toString=C,l}var F=t._unit2px,$={path:function(t){return t.attr("path")},circle:function(t){var e=F(t);return L(e.cx,e.cy,e.r)},ellipse:function(t){var e=F(t);return L(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=F(t);return N(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=F(t);return N(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return N(e.x,e.y,e.width,e.height)}};function R(e){var n=m(e);if(n.abs)return y(n.abs);if(o(e,"array")&&o(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var r,i=[],a=0,s=0,l=0,c=0,u=0;"M"==e[0][0]&&(l=a=+e[0][1],c=s=+e[0][2],u++,i[0]=["M",a,s]);for(var f,d,h=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),p=u,g=e.length;p1&&(i*=b=u.sqrt(b),o*=b);var _=i*i,w=o*o,x=(s==l?-1:1)*u.sqrt(g((_*w-_*I*I-w*A*A)/(_*I*I+w*A*A))),k=x*i*I/o+(n+c)/2,T=x*-o*A/i+(r+d)/2,S=u.asin(((r-T)/o).toFixed(9)),j=u.asin(((d-T)/o).toFixed(9));S=nj&&(S-=2*f),!l&&j>S&&(j-=2*f)}var E=j-S;if(g(E)>m){var O=j,M=c,D=d;j=S+m*(l&&j>S?1:-1),C=e(c=k+i*u.cos(j),d=T+o*u.sin(j),i,o,a,0,l,M,D,[j,O,k,T])}E=j-S;var P=u.cos(S),N=u.sin(S),L=u.cos(j),F=u.sin(j),$=u.tan(E/4),R=4/3*i*$,B=4/3*o*$,z=[n,r],H=[n+R*N,r-B*P],q=[c+R*F,d-B*L],V=[c,d];if(H[0]=2*z[0]-H[0],H[1]=2*z[1]-H[1],h)return[H,q,V].concat(C);for(var Y=[],U=0,W=(C=[H,q,V].concat(C).join().split(",")).length;U7){t[e].shift();for(var n=t[e];n.length;)v[e]="A",o&&(C[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),_=h(i.length,o&&o.length||0)}},p=function(t,e,n,r,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2],_=h(i.length,o&&o.length||0))},v=[],C=[],A="",I="",b=0,_=h(i.length,o&&o.length||0);b<_;b++){i[b]&&(A=i[b][0]),"C"!=A&&(v[b]=A,b&&(I=v[b-1])),i[b]=l(i[b],a,I),"A"!=v[b]&&"C"==A&&(v[b]="C"),d(i,b),o&&(o[b]&&(A=o[b][0]),"C"!=A&&(C[b]=A,b&&(I=C[b-1])),o[b]=l(o[b],s,I),"A"!=C[b]&&"C"==A&&(C[b]="C"),d(o,b)),p(i,o,a,s,b),p(o,i,s,a,b);var w=i[b],x=o&&o[b],k=w.length,T=o&&x.length;a.x=w[k-2],a.y=w[k-1],a.bx=c(w[k-4])||a.x,a.by=c(w[k-3])||a.y,s.bx=o&&(c(x[T-4])||s.x),s.by=o&&(c(x[T-3])||s.y),s.x=o&&x[T-2],s.y=o&&x[T-1]}return o||(r.curve=y(i)),o?[i,o]:i}function V(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4==r?o[3]={x:+t[0],y:+t[1]}:i-2==r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4==r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}t.path=m,t.path.getTotalLength=b,t.path.getPointAtLength=_,t.path.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return w(t,e).end;var r=w(t,n,1);return e?w(r,e).end:r},i.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},i.getPointAtLength=function(t){return _(this.attr("d"),t)},i.getSubpath=function(e,n){return t.path.getSubpath(this.attr("d"),e,n)},t._.box=v,t.path.findDotsAtSegment=x,t.path.bezierBBox=k,t.path.isPointInsideBBox=T,t.closest=function(e,n,r,i){for(var o=100,a=v(e-o/2,n-o/2,o,o),s=[],l=r[0].hasOwnProperty("x")?function(t){return{x:r[t].x,y:r[t].y}}:function(t){return{x:r[t],y:i[t]}},c=0;o<=1e6&&!c;){for(var u=0,f=r.length;ug&&(p=g,s[u].len=g,h=s[u])}return h}},t.path.isBBoxIntersect=S,t.path.intersection=function(t,e){return D(t,e)},t.path.intersectionNumber=function(t,e){return D(t,e,1)},t.path.isPointInside=function(t,e,n){var r=P(t);return T(r,e,n)&&D(t,[["M",e,n],["H",r.x2+10]],1)%2==1},t.path.getBBox=P,t.path.get=$,t.path.toRelative=function(e){var n=m(e),r=String.prototype.toLowerCase;if(n.rel)return y(n.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var i=[],o=0,a=0,s=0,l=0,c=0;"M"==e[0][0]&&(s=o=e[0][1],l=a=e[0][2],c++,i.push(["M",o,a]));for(var u=c,f=e.length;u',{def:r})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,n,r,i,o){return null==o&&(null==i?(o=r,r=4,i="#000"):(o=i,i=r,r=4)),null==r&&(r=4),null==o&&(o=1),null==e&&(e=0,n=2),null==n&&(n=e),i=t.color(i),t.format('',{color:i,dx:e,dy:n,blur:r,opacity:o})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}}),r.plugin(function(t,e,n,r,i){var o=t._.box,a=t.is,s=/^[^a-z]*([tbmlrc])/i,l=function(){return"T"+this.dx+","+this.dy};e.prototype.getAlign=function(t,e){null==e&&a(t,"string")&&(e=t,t=null);var n=(t=t||this.paper).getBBox?t.getBBox():o(t),r=this.getBBox(),i={};switch(e=(e=e&&e.match(s))?e[1].toLowerCase():"c"){case"t":i.dx=0,i.dy=n.y-r.y;break;case"b":i.dx=0,i.dy=n.y2-r.y2;break;case"m":i.dx=0,i.dy=n.cy-r.cy;break;case"l":i.dx=n.x-r.x,i.dy=0;break;case"r":i.dx=n.x2-r.x2,i.dy=0;break;default:i.dx=n.cx-r.cx,i.dy=0}return i.toString=l,i},e.prototype.align=function(t,e){return this.transform("..."+this.getAlign(t,e))}}),r.plugin(function(e,n,r,i){function o(t){t=t.split(/(?=#)/);var e=new String(t[5]);return e[50]=t[0],e[100]=t[1],e[200]=t[2],e[300]=t[3],e[400]=t[4],e[500]=t[5],e[600]=t[6],e[700]=t[7],e[800]=t[8],e[900]=t[9],t[10]&&(e.A100=t[10],e.A200=t[11],e.A400=t[12],e.A700=t[13]),e}e.mui={},e.flat={},e.mui.red=o("#ffebee#ffcdd2#ef9a9a#e57373#ef5350#f44336#e53935#d32f2f#c62828#b71c1c#ff8a80#ff5252#ff1744#d50000"),e.mui.pink=o("#FCE4EC#F8BBD0#F48FB1#F06292#EC407A#E91E63#D81B60#C2185B#AD1457#880E4F#FF80AB#FF4081#F50057#C51162"),e.mui.purple=o("#F3E5F5#E1BEE7#CE93D8#BA68C8#AB47BC#9C27B0#8E24AA#7B1FA2#6A1B9A#4A148C#EA80FC#E040FB#D500F9#AA00FF"),e.mui.deeppurple=o("#EDE7F6#D1C4E9#B39DDB#9575CD#7E57C2#673AB7#5E35B1#512DA8#4527A0#311B92#B388FF#7C4DFF#651FFF#6200EA"),e.mui.indigo=o("#E8EAF6#C5CAE9#9FA8DA#7986CB#5C6BC0#3F51B5#3949AB#303F9F#283593#1A237E#8C9EFF#536DFE#3D5AFE#304FFE"),e.mui.blue=o("#E3F2FD#BBDEFB#90CAF9#64B5F6#64B5F6#2196F3#1E88E5#1976D2#1565C0#0D47A1#82B1FF#448AFF#2979FF#2962FF"),e.mui.lightblue=o("#E1F5FE#B3E5FC#81D4FA#4FC3F7#29B6F6#03A9F4#039BE5#0288D1#0277BD#01579B#80D8FF#40C4FF#00B0FF#0091EA"),e.mui.cyan=o("#E0F7FA#B2EBF2#80DEEA#4DD0E1#26C6DA#00BCD4#00ACC1#0097A7#00838F#006064#84FFFF#18FFFF#00E5FF#00B8D4"),e.mui.teal=o("#E0F2F1#B2DFDB#80CBC4#4DB6AC#26A69A#009688#00897B#00796B#00695C#004D40#A7FFEB#64FFDA#1DE9B6#00BFA5"),e.mui.green=o("#E8F5E9#C8E6C9#A5D6A7#81C784#66BB6A#4CAF50#43A047#388E3C#2E7D32#1B5E20#B9F6CA#69F0AE#00E676#00C853"),e.mui.lightgreen=o("#F1F8E9#DCEDC8#C5E1A5#AED581#9CCC65#8BC34A#7CB342#689F38#558B2F#33691E#CCFF90#B2FF59#76FF03#64DD17"),e.mui.lime=o("#F9FBE7#F0F4C3#E6EE9C#DCE775#D4E157#CDDC39#C0CA33#AFB42B#9E9D24#827717#F4FF81#EEFF41#C6FF00#AEEA00"),e.mui.yellow=o("#FFFDE7#FFF9C4#FFF59D#FFF176#FFEE58#FFEB3B#FDD835#FBC02D#F9A825#F57F17#FFFF8D#FFFF00#FFEA00#FFD600"),e.mui.amber=o("#FFF8E1#FFECB3#FFE082#FFD54F#FFCA28#FFC107#FFB300#FFA000#FF8F00#FF6F00#FFE57F#FFD740#FFC400#FFAB00"),e.mui.orange=o("#FFF3E0#FFE0B2#FFCC80#FFB74D#FFA726#FF9800#FB8C00#F57C00#EF6C00#E65100#FFD180#FFAB40#FF9100#FF6D00"),e.mui.deeporange=o("#FBE9E7#FFCCBC#FFAB91#FF8A65#FF7043#FF5722#F4511E#E64A19#D84315#BF360C#FF9E80#FF6E40#FF3D00#DD2C00"),e.mui.brown=o("#EFEBE9#D7CCC8#BCAAA4#A1887F#8D6E63#795548#6D4C41#5D4037#4E342E#3E2723"),e.mui.grey=o("#FAFAFA#F5F5F5#EEEEEE#E0E0E0#BDBDBD#9E9E9E#757575#616161#424242#212121"),e.mui.bluegrey=o("#ECEFF1#CFD8DC#B0BEC5#90A4AE#78909C#607D8B#546E7A#455A64#37474F#263238"),e.flat.turquoise="#1abc9c",e.flat.greensea="#16a085",e.flat.sunflower="#f1c40f",e.flat.orange="#f39c12",e.flat.emerland="#2ecc71",e.flat.nephritis="#27ae60",e.flat.carrot="#e67e22",e.flat.pumpkin="#d35400",e.flat.peterriver="#3498db",e.flat.belizehole="#2980b9",e.flat.alizarin="#e74c3c",e.flat.pomegranate="#c0392b",e.flat.amethyst="#9b59b6",e.flat.wisteria="#8e44ad",e.flat.clouds="#ecf0f1",e.flat.silver="#bdc3c7",e.flat.wetasphalt="#34495e",e.flat.midnightblue="#2c3e50",e.flat.concrete="#95a5a6",e.flat.asbestos="#7f8c8d",e.importMUIColors=function(){for(var n in e.mui)e.mui.hasOwnProperty(n)&&(t[n]=e.mui[n])}}),r}(v,t)}.apply(e,[r]))||(t.exports=i)}).call(window)},function(t,e,n){var r=n(15);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(93)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(16),i=n(168);t.exports=n(8)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(3),i=n(5),o=n(24),a=n(9),s=n(22),l=function(t,e,n){var c,u,f,d=t&l.F,h=t&l.G,p=t&l.S,g=t&l.P,m=t&l.B,v=t&l.W,C=h?i:i[e]||(i[e]={}),y=C.prototype,A=h?r:p?r[e]:(r[e]||{}).prototype;for(c in h&&(n=e),n)(u=!d&&A&&void 0!==A[c])&&s(C,c)||(f=u?A[c]:n[c],C[c]=h&&"function"!=typeof A[c]?n[c]:m&&u?o(f,r):v&&A[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):g&&"function"==typeof f?o(Function.call,f):f,g&&((C.virtual||(C.virtual={}))[c]=f,t&l.R&&y&&!y[c]&&a(y,c,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){(function(t){t.exports=function(){"use strict";var e,r;function i(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},q={};function V(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(q[t]=i),e&&(q[e[0]]=function(){return R(i.apply(this,arguments),e[1],e[2])}),n&&(q[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function Y(t,e){return t.isValid()?(e=U(e,t.localeData()),H[e]=H[e]||function(t){var e,n,r,i=t.match(B);for(e=0,n=i.length;e=0&&z.test(t);)t=t.replace(z,r),z.lastIndex=0,n-=1;return t}var W=/\d/,G=/\d\d/,Z=/\d{3}/,X=/\d{4}/,J=/[+-]?\d{6}/,K=/\d\d?/,Q=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,rt=/[+-]?\d{1,6}/,it=/\d+/,ot=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,lt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ct={};function ut(t,e,n){ct[t]=E(e)?e:function(t,r){return t&&n?n:e}}function ft(t,e){return f(ct,t)?ct[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ht={};function pt(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),l(e)&&(r=function(t,n){n[e]=_(t)}),n=0;n68?1900:2e3)};var St,jt=Et("FullYear",!0);function Et(t,e){return function(n){return null!=n?(Mt(this,t,n),i.updateOffset(this,e),this):Ot(this,t)}}function Ot(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Mt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Dt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Dt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,r=(e%(n=12)+n)%n;return t+=(e-r)/12,1===r?Tt(t)?29:28:31-r%7%2}St=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function qt(t,e,n){var r=7+e-n,i=(7+Ht(t,0,r).getUTCDay()-e)%7;return-i+r-1}function Vt(t,e,n,r,i){var o,a,s=(7+n-r)%7,l=qt(t,r,i),c=1+7*(e-1)+s+l;return c<=0?a=kt(o=t-1)+c:c>kt(t)?(o=t+1,a=c-kt(t)):(o=t,a=c),{year:o,dayOfYear:a}}function Yt(t,e,n){var r,i,o=qt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?(i=t.year()-1,r=a+Ut(i,e,n)):a>Ut(t.year(),e,n)?(r=a-Ut(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function Ut(t,e,n){var r=qt(t,e,n),i=qt(t+1,e,n);return(kt(t)-r+i)/7}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),$("week",5),$("isoWeek",5),ut("w",K),ut("ww",K,G),ut("W",K),ut("WW",K,G),gt(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=_(t)}),V("d",0,"do","day"),V("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),V("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),V("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),$("day",11),$("weekday",11),$("isoWeekday",11),ut("d",K),ut("e",K),ut("E",K),ut("dd",function(t,e){return e.weekdaysMinRegex(t)}),ut("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ut("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:p(n).invalidWeekday=t}),gt(["d","e","E"],function(t,e,n,r){e[r]=_(t)});var Wt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xt=lt,Jt=lt,Kt=lt;function Qt(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);for(a.sort(t),s.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)s[e]=dt(s[e]),l[e]=dt(l[e]),c[e]=dt(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function te(){return this.hours()%12||12}function ee(t,e){V(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ne(t,e){return e._meridiemParse}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,te),V("k",["kk",2],0,function(){return this.hours()||24}),V("hmm",0,0,function(){return""+te.apply(this)+R(this.minutes(),2)}),V("hmmss",0,0,function(){return""+te.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)}),V("Hmm",0,0,function(){return""+this.hours()+R(this.minutes(),2)}),V("Hmmss",0,0,function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)}),ee("a",!0),ee("A",!1),P("hour","h"),$("hour",13),ut("a",ne),ut("A",ne),ut("H",K),ut("h",K),ut("k",K),ut("HH",K,G),ut("hh",K,G),ut("kk",K,G),ut("hmm",Q),ut("hmmss",tt),ut("Hmm",Q),ut("Hmmss",tt),pt(["H","HH"],At),pt(["k","kk"],function(t,e,n){var r=_(t);e[At]=24===r?0:r}),pt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),pt(["h","hh"],function(t,e,n){e[At]=_(t),p(n).bigHour=!0}),pt("hmm",function(t,e,n){var r=t.length-2;e[At]=_(t.substr(0,r)),e[It]=_(t.substr(r)),p(n).bigHour=!0}),pt("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[At]=_(t.substr(0,r)),e[It]=_(t.substr(r,2)),e[bt]=_(t.substr(i)),p(n).bigHour=!0}),pt("Hmm",function(t,e,n){var r=t.length-2;e[At]=_(t.substr(0,r)),e[It]=_(t.substr(r))}),pt("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[At]=_(t.substr(0,r)),e[It]=_(t.substr(r,2)),e[bt]=_(t.substr(i))});var re,ie=Et("Hours",!0),oe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Nt,monthsShort:Lt,week:{dow:0,doy:6},weekdays:Wt,weekdaysMin:Zt,weekdaysShort:Gt,meridiemParse:/[ap]\.?m?\.?/i},ae={},se={};function le(t){return t?t.toLowerCase().replace("_","-"):t}function ce(e){var r=null;if(!ae[e]&&void 0!==t&&t&&t.exports)try{r=re._abbr,n(190)("./"+e),ue(r)}catch(t){}return ae[e]}function ue(t,e){var n;return t&&((n=s(e)?de(t):fe(t,e))?re=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),re._abbr}function fe(t,e){if(null!==e){var n,r=oe;if(e.abbr=t,null!=ae[t])j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ae[t]._config;else if(null!=e.parentLocale)if(null!=ae[e.parentLocale])r=ae[e.parentLocale]._config;else{if(null==(n=ce(e.parentLocale)))return se[e.parentLocale]||(se[e.parentLocale]=[]),se[e.parentLocale].push({name:t,config:e}),null;r=n._config}return ae[t]=new M(O(r,e)),se[t]&&se[t].forEach(function(t){fe(t.name,t.config)}),ue(t),ae[t]}return delete ae[t],null}function de(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return re;if(!o(t)){if(e=ce(t))return e;t=[t]}return function(t){for(var e,n,r,i,o=0;o0;){if(r=ce(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&w(i,n,!0)>=e-1)break;e--}o++}return re}(t)}function he(t){var e,n=t._a;return n&&-2===p(t).overflow&&(e=n[Ct]<0||n[Ct]>11?Ct:n[yt]<1||n[yt]>Dt(n[vt],n[Ct])?yt:n[At]<0||n[At]>24||24===n[At]&&(0!==n[It]||0!==n[bt]||0!==n[_t])?At:n[It]<0||n[It]>59?It:n[bt]<0||n[bt]>59?bt:n[_t]<0||n[_t]>999?_t:-1,p(t)._overflowDayOfYear&&(eyt)&&(e=yt),p(t)._overflowWeeks&&-1===e&&(e=wt),p(t)._overflowWeekday&&-1===e&&(e=xt),p(t).overflow=e),t}function pe(t,e,n){return null!=t?t:null!=e?e:n}function ge(t){var e,n,r,o,a,s=[];if(!t._d){for(r=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[yt]&&null==t._a[Ct]&&function(t){var e,n,r,i,o,a,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,a=4,n=pe(e.GG,t._a[vt],Yt(Ee(),1,4).year),r=pe(e.W,1),((i=pe(e.E,1))<1||i>7)&&(l=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var c=Yt(Ee(),o,a);n=pe(e.gg,t._a[vt],c.year),r=pe(e.w,c.week),null!=e.d?((i=e.d)<0||i>6)&&(l=!0):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(l=!0)):i=o}r<1||r>Ut(n,o,a)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(s=Vt(n,r,i,o,a),t._a[vt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=pe(t._a[vt],r[vt]),(t._dayOfYear>kt(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),n=Ht(a,0,t._dayOfYear),t._a[Ct]=n.getUTCMonth(),t._a[yt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[At]&&0===t._a[It]&&0===t._a[bt]&&0===t._a[_t]&&(t._nextDay=!0,t._a[At]=0),t._d=(t._useUTC?Ht:function(t,e,n,r,i,o,a){var s=new Date(t,e,n,r,i,o,a);return t<100&&t>=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[At]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(p(t).weekdayMismatch=!0)}}var me=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ve=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ce=/Z|[+-]\d\d(?::?\d\d)?/,ye=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ae=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ie=/^\/?Date\((\-?\d+)/i;function be(t){var e,n,r,i,o,a,s=t._i,l=me.exec(s)||ve.exec(s);if(l){for(p(t).iso=!0,e=0,n=ye.length;e0&&p(t).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),q[o]?(n?p(t).empty=!1:p(t).unusedTokens.push(o),mt(o,n,t)):t._strict&&!n&&p(t).unusedTokens.push(o);p(t).charsLeftOver=l-c,s.length>0&&p(t).unusedInput.push(s),t._a[At]<=12&&!0===p(t).bigHour&&t._a[At]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[At]=(u=t._locale,f=t._a[At],null==(d=t._meridiem)?f:null!=u.meridiemHour?u.meridiemHour(f,d):null!=u.isPM?((h=u.isPM(d))&&f<12&&(f+=12),h||12!==f||(f=0),f):f),ge(t),he(t)}else ke(t);else be(t);var u,f,d,h}function Se(t){var e=t._i,n=t._f;return t._locale=t._locale||de(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),I(e)?new A(he(e)):(c(e)?t._d=e:o(n)?function(t){var e,n,r,i,o;if(0===t._f.length)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;ithis?this:t:m()});function De(t,e){var n,r;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Ee();for(n=e[0],r=1;ro&&(e=o),function(t,e,n,r,i){var o=Vt(t,e,n,r,i),a=Ht(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,r,i))}V(0,["gg",2],0,function(){return this.weekYear()%100}),V(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),$("weekYear",1),$("isoWeekYear",1),ut("G",ot),ut("g",ot),ut("GG",K,G),ut("gg",K,G),ut("GGGG",nt,X),ut("gggg",nt,X),ut("GGGGG",rt,J),ut("ggggg",rt,J),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=_(t)}),gt(["gg","GG"],function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)}),V("Q",0,"Qo","quarter"),P("quarter","Q"),$("quarter",7),ut("Q",W),pt("Q",function(t,e){e[Ct]=3*(_(t)-1)}),V("D",["DD",2],"Do","date"),P("date","D"),$("date",9),ut("D",K),ut("DD",K,G),ut("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),pt(["D","DD"],yt),pt("Do",function(t,e){e[yt]=_(t.match(K)[0])});var an=Et("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),$("dayOfYear",4),ut("DDD",et),ut("DDDD",Z),pt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=_(t)}),V("m",["mm",2],0,"minute"),P("minute","m"),$("minute",14),ut("m",K),ut("mm",K,G),pt(["m","mm"],It);var sn=Et("Minutes",!1);V("s",["ss",2],0,"second"),P("second","s"),$("second",15),ut("s",K),ut("ss",K,G),pt(["s","ss"],bt);var ln,cn=Et("Seconds",!1);for(V("S",0,0,function(){return~~(this.millisecond()/100)}),V(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,function(){return 10*this.millisecond()}),V(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),V(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),V(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),V(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),V(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),$("millisecond",16),ut("S",et,W),ut("SS",et,G),ut("SSS",et,Z),ln="SSSS";ln.length<=9;ln+="S")ut(ln,it);function un(t,e){e[_t]=_(1e3*("0."+t))}for(ln="S";ln.length<=9;ln+="S")pt(ln,un);var fn=Et("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var dn=A.prototype;function hn(t){return t}dn.add=Je,dn.calendar=function(t,e){var n=t||Ee(),r=ze(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=e&&(E(e[o])?e[o].call(this,n):e[o]);return this.format(a||this.localeData().calendar(o,this,Ee(n)))},dn.clone=function(){return new A(this)},dn.diff=function(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=ze(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=N(e)){case"year":o=Qe(this,r)/12;break;case"month":o=Qe(this,r);break;case"quarter":o=Qe(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:b(o)},dn.endOf=function(t){return void 0===(t=N(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},dn.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=Y(this,t);return this.localeData().postformat(e)},dn.from=function(t,e){return this.isValid()&&(I(t)&&t.isValid()||Ee(t).isValid())?Ue({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},dn.fromNow=function(t){return this.from(Ee(),t)},dn.to=function(t,e){return this.isValid()&&(I(t)&&t.isValid()||Ee(t).isValid())?Ue({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},dn.toNow=function(t){return this.to(Ee(),t)},dn.get=function(t){return E(this[t=N(t)])?this[t]():this},dn.invalidAt=function(){return p(this).overflow},dn.isAfter=function(t,e){var n=I(t)?t:Ee(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=N(s(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()9999?Y(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=jt,dn.isLeapYear=function(){return Tt(this.year())},dn.weekYear=function(t){return on.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(t){return on.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},dn.month=$t,dn.daysInMonth=function(){return Dt(this.year(),this.month())},dn.week=dn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},dn.isoWeek=dn.isoWeeks=function(t){var e=Yt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},dn.weeksInYear=function(){var t=this.localeData()._week;return Ut(this.year(),t.dow,t.doy)},dn.isoWeeksInYear=function(){return Ut(this.year(),1,4)},dn.date=an,dn.day=dn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},dn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},dn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},dn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},dn.hour=dn.hours=ie,dn.minute=dn.minutes=sn,dn.second=dn.seconds=cn,dn.millisecond=dn.milliseconds=fn,dn.utcOffset=function(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Be(st,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=He(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?Xe(this,Ue(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:He(this)},dn.utc=function(t){return this.utcOffset(0,t)},dn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(He(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Be(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ee(t).utcOffset():0,(this.utcOffset()-t)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=qe,dn.isUTC=qe,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=k("dates accessor is deprecated. Use date instead.",an),dn.months=k("months accessor is deprecated. Use month instead",$t),dn.years=k("years accessor is deprecated. Use year instead",jt),dn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),dn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(C(t,this),(t=Se(t))._a){var e=t._isUTC?h(t._a):Ee(t._a);this._isDSTShifted=this.isValid()&&w(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var pn=M.prototype;function gn(t,e,n,r){var i=de(),o=h().set(r,e);return i[n](o,t)}function mn(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return gn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=gn(t,r,n,"month");return i}function vn(t,e,n,r){"boolean"==typeof t?(l(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,l(e)&&(n=e,e=void 0),e=e||"");var i,o=de(),a=t?o._week.dow:0;if(null!=n)return gn(e,(n+a)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=gn(e,(i+a)%7,r,"day");return s}pn.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return E(r)?r.call(e,n):r},pn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},pn.invalidDate=function(){return this._invalidDate},pn.ordinal=function(t){return this._ordinal.replace("%d",t)},pn.preparse=hn,pn.postformat=hn,pn.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return E(i)?i(t,e,n,r):i.replace(/%d/i,t)},pn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return E(n)?n(e):n.replace(/%s/i,e)},pn.set=function(t){var e,n;for(n in t)E(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},pn.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Pt).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},pn.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Pt.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},pn.monthsParse=function(t,e,n){var r,i,o;if(this._monthsParseExact)return function(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=St.call(this._shortMonthsParse,a))?i:null:-1!==(i=St.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=St.call(this._shortMonthsParse,a))?i:-1!==(i=St.call(this._longMonthsParse,a))?i:null:-1!==(i=St.call(this._longMonthsParse,a))?i:-1!==(i=St.call(this._shortMonthsParse,a))?i:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},pn.monthsRegex=function(t){return this._monthsParseExact?(f(this,"_monthsRegex")||zt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Bt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},pn.monthsShortRegex=function(t){return this._monthsParseExact?(f(this,"_monthsRegex")||zt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Rt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},pn.week=function(t){return Yt(t,this._week.dow,this._week.doy).week},pn.firstDayOfYear=function(){return this._week.doy},pn.firstDayOfWeek=function(){return this._week.dow},pn.weekdays=function(t,e){return t?o(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},pn.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},pn.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},pn.weekdaysParse=function(t,e,n){var r,i,o;if(this._weekdaysParseExact)return function(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=St.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=St.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=St.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=St.call(this._weekdaysParse,a))?i:-1!==(i=St.call(this._shortWeekdaysParse,a))?i:-1!==(i=St.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=St.call(this._shortWeekdaysParse,a))?i:-1!==(i=St.call(this._weekdaysParse,a))?i:-1!==(i=St.call(this._minWeekdaysParse,a))?i:null:-1!==(i=St.call(this._minWeekdaysParse,a))?i:-1!==(i=St.call(this._weekdaysParse,a))?i:-1!==(i=St.call(this._shortWeekdaysParse,a))?i:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},pn.weekdaysRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Xt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},pn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Jt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},pn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},pn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},pn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},ue("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===_(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),i.lang=k("moment.lang is deprecated. Use moment.locale instead.",ue),i.langData=k("moment.langData is deprecated. Use moment.localeData instead.",de);var Cn=Math.abs;function yn(t,e,n,r){var i=Ue(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function An(t){return t<0?Math.floor(t):Math.ceil(t)}function In(t){return 4800*t/146097}function bn(t){return 146097*t/4800}function _n(t){return function(){return this.as(t)}}var wn=_n("ms"),xn=_n("s"),kn=_n("m"),Tn=_n("h"),Sn=_n("d"),jn=_n("w"),En=_n("M"),On=_n("y");function Mn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Dn=Mn("milliseconds"),Pn=Mn("seconds"),Nn=Mn("minutes"),Ln=Mn("hours"),Fn=Mn("days"),$n=Mn("months"),Rn=Mn("years"),Bn=Math.round,zn={ss:44,s:45,m:45,h:22,d:26,M:11},Hn=Math.abs;function qn(t){return(t>0)-(t<0)||+t}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Hn(this._milliseconds)/1e3,r=Hn(this._days),i=Hn(this._months);t=b(n/60),e=b(t/60),n%=60,t%=60;var o=b(i/12),a=i%=12,s=r,l=e,c=t,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=f<0?"-":"",h=qn(this._months)!==qn(f)?"-":"",p=qn(this._days)!==qn(f)?"-":"",g=qn(this._milliseconds)!==qn(f)?"-":"";return d+"P"+(o?h+o+"Y":"")+(a?h+a+"M":"")+(s?p+s+"D":"")+(l||c||u?"T":"")+(l?g+l+"H":"")+(c?g+c+"M":"")+(u?g+u+"S":"")}var Yn=Ne.prototype;return Yn.isValid=function(){return this._isValid},Yn.abs=function(){var t=this._data;return this._milliseconds=Cn(this._milliseconds),this._days=Cn(this._days),this._months=Cn(this._months),t.milliseconds=Cn(t.milliseconds),t.seconds=Cn(t.seconds),t.minutes=Cn(t.minutes),t.hours=Cn(t.hours),t.months=Cn(t.months),t.years=Cn(t.years),this},Yn.add=function(t,e){return yn(this,t,e,1)},Yn.subtract=function(t,e){return yn(this,t,e,-1)},Yn.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=N(t))||"year"===t)return e=this._days+r/864e5,n=this._months+In(e),"month"===t?n:n/12;switch(e=this._days+Math.round(bn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},Yn.asMilliseconds=wn,Yn.asSeconds=xn,Yn.asMinutes=kn,Yn.asHours=Tn,Yn.asDays=Sn,Yn.asWeeks=jn,Yn.asMonths=En,Yn.asYears=On,Yn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN},Yn._bubble=function(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*An(bn(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=b(o/1e3),l.seconds=t%60,e=b(t/60),l.minutes=e%60,n=b(e/60),l.hours=n%24,a+=b(n/24),i=b(In(a)),s+=i,a-=An(bn(i)),r=b(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Yn.clone=function(){return Ue(this)},Yn.get=function(t){return t=N(t),this.isValid()?this[t+"s"]():NaN},Yn.milliseconds=Dn,Yn.seconds=Pn,Yn.minutes=Nn,Yn.hours=Ln,Yn.days=Fn,Yn.weeks=function(){return b(this.days()/7)},Yn.months=$n,Yn.years=Rn,Yn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var r=Ue(t).abs(),i=Bn(r.as("s")),o=Bn(r.as("m")),a=Bn(r.as("h")),s=Bn(r.as("d")),l=Bn(r.as("M")),c=Bn(r.as("y")),u=i<=zn.ss&&["s",i]||i0,u[4]=n,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,u)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Yn.toISOString=Vn,Yn.toString=Vn,Yn.toJSON=Vn,Yn.locale=tn,Yn.localeData=nn,Yn.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),Yn.lang=en,V("X",0,0,"unix"),V("x",0,0,"valueOf"),ut("x",ot),ut("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),pt("x",function(t,e,n){n._d=new Date(_(t))}),i.version="2.22.2",e=Ee,i.fn=dn,i.min=function(){return De("isBefore",[].slice.call(arguments,0))},i.max=function(){return De("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=h,i.unix=function(t){return Ee(1e3*t)},i.months=function(t,e){return mn(t,e,"months")},i.isDate=c,i.locale=ue,i.invalid=m,i.duration=Ue,i.isMoment=I,i.weekdays=function(t,e,n){return vn(t,e,n,"weekdays")},i.parseZone=function(){return Ee.apply(null,arguments).parseZone()},i.localeData=de,i.isDuration=Le,i.monthsShort=function(t,e){return mn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return vn(t,e,n,"weekdaysMin")},i.defineLocale=fe,i.updateLocale=function(t,e){if(null!=e){var n,r,i=oe;null!=(r=ce(t))&&(i=r._config),e=O(i,e),(n=new M(e)).parentLocale=ae[t],ae[t]=n,ue(t)}else null!=ae[t]&&(null!=ae[t].parentLocale?ae[t]=ae[t].parentLocale:null!=ae[t]&&delete ae[t]);return ae[t]},i.locales=function(){return T(ae)},i.weekdaysShort=function(t,e,n){return vn(t,e,n,"weekdaysShort")},i.normalizeUnits=N,i.relativeTimeRounding=function(t){return void 0===t?Bn:"function"==typeof t&&(Bn=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==zn[t]&&(void 0===e?zn[t]:(zn[t]=e,"s"===t&&(zn.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=dn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(82)(t))},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.eventEmitter=e.generateId=void 0;var r,i=n(313);var o,a=(0,((r=i)&&r.__esModule?r:{default:r}).default)({}),s=(o=0,function(t){return(t="string"==typeof t?t:"item_")+(o+=1)});e.generateId=s,e.eventEmitter=a},function(t,e){t.exports={}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(7),i=n(353),o=n(352),a=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(143),i=n(142);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,l=e.length;++s0&&(t=["comment-thread"]),t},dateFormatted:function(){return(0,i.default)(this.date).locale("fr").fromNow()},commentFormatted:function(){return a.makeHtml(this.comment)}}}},function(t,e,n){"use strict";n.r(e);var r=n(27),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(183),o=(r=i)&&r.__esModule?r:{default:r};e.default={props:["annotation","fetch","is-authenticated"],components:{Comment:o.default},data:function(){return{comments:[]}},computed:{commentsURL:function(){return this.fetch.replace(":annotation_guid",this.annotation.annotation_guid)}},watch:{annotation:function(e){var n=this;e&&e.annotation_guid?t.getJSON(this.commentsURL).then(function(t){return n.comments=t}):this.comments=[]}},mounted:function(){var e=this;this.annotation&&t.getJSON(this.commentsURL).then(function(t){return e.comments=t})}}}).call(this,n(1))},function(t,e,n){"use strict";n.r(e);var r=n(29),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(137),o=(r=i)&&r.__esModule?r:{default:r};e.default={props:["annotations","annotation","annotationUrl"],mounted:function(){this.annotation&&this.slideToAnnotation()},watch:{annotation:function(t){t&&this.slideToAnnotation()}},methods:{getAnnotationURL:function(t){return this.annotationUrl.replace(":annotation_guid",t)},toggleAnnotation:function(t,e){t.preventDefault(),this.annotation&&this.annotation===e?this.$emit("close:annotation"):this.$emit("click:annotation",e)},isActive:function(t){return t===this.annotation},getCommentsCount:function(t){var e=t.stats.comments_count;return e+" commentaire"+(e>1?"s":"")},slideToAnnotation:function(){var e=this,n=(0,o.default)(this.$refs.annotations,function(n){return t(n).attr("href")===e.getAnnotationURL(e.annotation.annotation_guid)});if(n){var r=t(this.$el.closest(".panel"));r.animate({scrollTop:r.scrollTop()-r.offset().top+t(n).offset().top},600)}}}}}).call(this,n(1))},function(t,e,n){"use strict";n.r(e);var r=n(32),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(201)),i=s(n(84)),o=s(n(134)),a=s(n(11));function s(t){return t&&t.__esModule?t:{default:t}}var l=new o.default.Converter,c={title:"",description:"",fragment:"",tags:[],readonly:!0};e.default={props:{annotation:{type:Object,default:function(){return null}},isAuthenticated:{type:Boolean,default:!1},revisionsUrl:String,authorUrl:String,newAnnotationUrl:String,editAnnotationUrl:String},components:{"tag-list":i.default},data:function(){return c},mounted:function(){this.annotation&&this.loadAnnotation(this.annotation)},watch:{annotation:function(t){t?this.loadAnnotation(t):this.reset()}},computed:{descriptionComputed:function(){return l.makeHtml(this.description)},lastRevisionText:function(){if(this.annotation)return"Dernière version "+(0,a.default)(this.annotation.created).locale("fr").fromNow()+" par "+this.annotation.author},revisionsUrlComputed:function(){if(this.annotation)return this.revisionsUrl.replace(":annotation_guid",this.annotation.annotation_guid)},authorUrlComputed:function(){if(this.annotation)return this.authorUrl.replace("--username--",this.annotation.author)},dateComputed:function(){if(this.annotation)return(0,a.default)(this.annotation.created).locale("fr").fromNow()},formAction:function(){if(this.annotation)return this.annotation.annotation_guid?this.editAnnotationUrl.replace(":annotation_guid",this.annotation.annotation_guid):this.newAnnotationUrl},submitButtonText:function(){return this.isNewAnnotation?"Enregistrer":"Enregister une nouvelle version"},isNewAnnotation:function(){return this.annotation&&!this.annotation.annotation_guid},serializedTags:function(){var t=this.tags.map(function(t){return{tag_input:"string"==typeof t.tag_link&&t.tag_link.length?t.tag_link:t.tag_label,tag_label:t.tag_label,accuracy:t.accuracy,relevancy:t.relevancy}});return JSON.stringify(t)},hasChanged:function(){return!!this.annotation&&(this.title!==this.annotation.title||this.description!==this.annotation.description||!(0,r.default)(this.annotation.tags,this.tags))}},methods:{onCancelClick:function(){this.isNewAnnotation?this.$emit("close"):this.readonly=!this.readonly},onTagsChange:function(t){this.tags=t},reset:function(){Object.assign(this,c)},loadAnnotation:function(e){var n=this;Object.assign(this,{title:e.title,description:e.description,fragment:e.fragment,tags:e.tags.slice(),readonly:!this.isNewAnnotation}),e.annotation_guid||setTimeout(function(){t(n.$refs.title).focus()},500)}}}}).call(this,n(1))},function(t,e,n){"use strict";n.r(e);var r=n(35),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){t.exports={wrapper:"wrapper","cut-canvas":"cut-canvas","canvas--rect":"canvas--rect","canvas--free":"canvas--free","mode-controls":"mode-controls",btn:"btn","btn-primary":"btn-primary",controls:"controls",active:"active","controls-left":"controls-left","controls-draw":"controls-draw","controls-center":"controls-center","controls-zoom":"controls-zoom","controls-right":"controls-right",help:"help",overlay:"overlay"}},function(t,e,n){t.exports={"zoom-wrapper":"zoom-wrapper","move-handler":"move-handler"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6),o=(r=i)&&r.__esModule?r:{default:r};o.default.plugin(function(t,e,n,r){function i(t,e,n){this.data("ox",this.data("x")),this.data("oy",this.data("y"))}e.prototype.limitDrag=function(t){return this.data("minx",t.minx),this.data("miny",t.miny),this.data("maxx",t.maxx),this.data("maxy",t.maxy),this.data("x",t.x),this.data("y",t.y),this.data("ibb",this.getBBox()),this.data("ot",this.transform().local),this.drag(function(e,n){(function(t,e){var n,r,i=this.transform().globalMatrix.invert();i.e=i.f=0,n=i.x(t,e),r=i.y(t,e),this.data("x",+this.data("ox")+n),this.data("y",+this.data("oy")+r),this.data("x")>this.data("maxx")&&this.data("x",this.data("maxx")),this.data("y")>this.data("maxy")&&this.data("y",this.data("maxy")),this.data("x")2&&e.closePath()}),i.dblclick(function(t){t.preventDefault(),t.stopPropagation();var n=new r.default(t.target),i=parseInt(n.attr("data-key"),10);e.points.splice(i,1)});var a=function(t,e,r,i,a){o=!0;var s=n.$parent.computeOffset(a);this.attr({cx:s.x,cy:s.y});var l=parseInt(this.attr("data-key"),10);n.points.splice(l,1,{x:s.x,y:s.y})},s=function(){return e.hideTooltip()},l=function(t){o&&(o=!1,n.showTooltip())};i.drag(a,s,l)},addResizeHandlers:function(){var t=this;this.$refs.handlers.forEach(function(e){return t.addResizeHandler(e)})}}}},function(t,e,n){"use strict";n.r(e);var r=n(42),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){t.exports={shape:"shape",active:"active","shape--draggable":"shape--draggable",handler:"handler","handler-top-left":"handler-top-left","handler-bottom-right":"handler-bottom-right"}},function(t,e,n){t.exports={popover:"popover","popover-content":"popover-content","form-group":"form-group",taglist:"taglist"}},function(t,e,n){t.exports={alert:"alert","tag-list":"tag-list","tag-list-item":"tag-list-item"}},function(t,e,n){t.exports={"tag-item-btn":"tag-item-btn","tag-item-accuracy":"tag-item-accuracy",fa:"fa","tag-item-relevancy":"tag-item-relevancy","tag-title":"tag-title","tag-item-delete":"tag-item-delete","tag-item-form":"tag-item-form","tag-container":"tag-container","tag-list":"tag-list","tag-item":"tag-item","tag-item--readonly":"tag-item--readonly"}},function(t,e,n){t.exports={"selected-tags":"selected-tags",Typeahead__input:"Typeahead__input","tag-item":"tag-item","fa-times":"fa-times","tag-label":"tag-label",active:"active",name:"name","screen-name":"screen-name"}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(234)),i=a(n(137)),o=a(n(170));function a(t){return t&&t.__esModule?t:{default:t}}var s={reset:o.default.methods.reset};e.default={mixins:[o.default],props:{placeholder:String,readonly:{type:Boolean,default:!1}},data:function(){return{src:"https://lookup.dbpedia.org/api/search/PrefixSearch?MaxHits=5",limit:7,minChars:2,selectFirst:!0,datasource:"wikipedia",selectedTags:"[]",items:[],queryParamName:"QueryString"}},methods:{checkQuery:function(){0===this.query.length&&this.reset()},fetch:function(){if("wikipedia"===this.datasource)return this.fetchWikiPedia();return{}[this.queryParamName]=this.query,function(e,n){var r=t.Deferred();t.getJSON(e,n).done(function(t){var e={};e.data=t,r.resolve(e)}).fail(r.reject);return r.promise()}(this.src,query)},fetchWikiPedia:function(){this.src="https://fr.wikipedia.org/w/api.php";var e={action:"opensearch",format:"json",search:this.query},n=t.Deferred();return t.ajax({url:this.src,data:e,dataType:"jsonp",success:function(t){var e={};e.data=t,n.resolve(e)}}),n.promise()},reset:function(){s.reset.call(this)},prepareWikipediaResponse:function(t){var e=[];if(4!==t.length)return e;var n=t[1],r=t[3];return n.length===r.length?(n.map(function(t,n){var i={};i.tag_label=t;var o=r[n];o=o.replace("https://fr.wikipedia.org/wiki/","http://fr.dbpedia.org/resource/"),i.tag_link=decodeURI(o),i.accuracy=0,i.relevancy=0,e.push(i)}),e):void 0},prepareResponseData:function(t){var e=this,n="string"==typeof t?JSON.parse(t):t;return"wikipedia"===this.datasource&&(n=this.prepareWikipediaResponse(n)),(0,i.default)(n,function(t){return t.tag_label===(0,r.default)(e.query)})||Array.isArray(n)&&n.unshift({tag_label:this.query,tag_link:this.query,accuracy:0,relevancy:0}),n},onHit:function(t){t&&(this.$emit("selected",t),this.reset())},preventSubmit:function(t){t.preventDefault(),t.stopPropagation()}}}}).call(this,n(1))},function(t,e,n){"use strict";n.r(e);var r=n(49),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){t.exports={"btn-group":"btn-group",btn:"btn","value-label":"value-label","value-wrapper":"value-wrapper","btn--highlight":"btn--highlight"}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:["original-value"],data:function(){return{value:this.originalValue}},watch:{originalValue:function(t){this.value=t}},mounted:function(){this.originalValue&&(this.value=this.originalValue)},methods:{animate:function(){var t,e=0,n=1;(function r(){if(5===this.value&&(n=-1),1===this.value&&(n=1),this.value+=n,10==++e)return clearTimeout(t),null===this.originalValue&&(this.value=null),void(0===this.originalValue&&(this.value=0));t=setTimeout(r.bind(this),100)}).apply(this)},onMouseEnter:function(e){var n=t(e.target).data("value");this.$refs.buttons.forEach(function(e){t(e).data("value")<=n?t(e).addClass("btn--highlight"):t(e).removeClass("btn--highlight")})},onMouseLeave:function(e){var n=this;this.value?this.$refs.buttons.forEach(function(e){t(e).data("value")<=n.value?t(e).addClass("btn--highlight"):t(e).removeClass("btn--highlight")}):this.$refs.buttons.forEach(function(e){t(e).removeClass("btn--highlight")})},onClick:function(e){var n=parseInt(t(e.currentTarget).data("value"));this.value=n,this.$emit("change",{value:n})}}}}).call(this,n(1))},function(t,e,n){"use strict";n.r(e);var r=n(52),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(139)),i=o(n(138));function o(t){return t&&t.__esModule?t:{default:t}}e.default={props:["index","label","accuracy","relevancy","readonly"],components:{typeahead:i.default,"color-buttons":r.default},data:function(){return{isNew:!0}},computed:{accuracyTitle:function(){return"Fiabilité : "+this.accuracy},relevancyTitle:function(){return"Pertinence : "+this.relevancy}},watch:{accuracy:function(t){this.isNew&&this.isComplete()&&(this.isNew=!1,this.hide())},relevancy:function(t){this.isNew&&this.isComplete()&&(this.isNew=!1,this.hide())}},mounted:function(){this.isNew=!this.accuracy&&!this.relevancy,this.$refs.accuracy.value=this.accuracy,this.$refs.relevancy.value=this.relevancy,t(this.$el).find(".collapse").collapse({toggle:!1}),!this.$parent.readonly&&this.isNew&&(this.$parent.hideAll(),this.show(),this.$refs.accuracy.animate())},methods:{isComplete:function(){return this.accuracy&&this.relevancy},onChange:function(t,e){var n={};n[t]=e,this.$parent.replaceItemAt(this.index,n)},show:function(){t(this.$el).find(".collapse").collapse("show")},hide:function(){t(this.$el).find(".collapse").collapse("hide")},toggle:function(e){e.preventDefault(),this.readonly||(this.$parent.hideAll(),t(this.$el).find(".collapse").collapse("toggle"))},remove:function(t){t.preventDefault(),t.stopPropagation(),this.readonly||this.$parent.removeItemAt(this.index)}}}}).call(this,n(1))},function(t,e,n){"use strict";n.r(e);var r=n(54),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(265)),i=a(n(237)),o=a(n(138));function a(t){return t&&t.__esModule?t:{default:t}}e.default={props:{originalTags:{type:Array,default:function(){return[]}},readonly:{type:Boolean,default:!1}},data:function(){return{tags:(0,r.default)(this.originalTags)}},components:{typeahead:o.default,"tag-list-item":i.default},watch:{originalTags:function(t){this.tags=(0,r.default)(this.originalTags),this.hideAll()},tags:function(t){this.$emit("change",{tags:t})},readonly:function(t){t&&this.hideAll()}},mounted:function(){var t=this;this.$refs.typeahead.$on("selected",function(e){t.tags.push(e)})},methods:{hideAll:function(){this.$refs.items&&this.$refs.items.forEach(function(t){return t.hide()})},replaceItemAt:function(t,e){var n=this.tags[t];Object.assign(n,e),this.tags.splice(t,1,n)},removeItemAt:function(t){this.tags.$remove(this.tags[t])}}}},function(t,e,n){"use strict";n.r(e);var r=n(56),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(84),o=(r=i)&&r.__esModule?r:{default:r};e.default={props:["original-title","original-description","original-tags"],components:{"tag-list":o.default},data:function(){return{title:"",description:"",tags:[],titleError:!1,tagsError:!1}},computed:{titleFormGroupClass:function(){return{"has-error":this.titleError}},tagsFormGroupClass:function(){return{"has-error":this.tagsError}}},mounted:function(){this.originalTitle&&(this.title=this.originalTitle),this.originalDescription&&(this.description=this.originalDescription)},methods:{close:function(t){t.preventDefault(),this.$emit("close")},save:function(t){t.preventDefault(),Object.assign(this,{titleError:!1,tagsError:!1}),0===this.title.trim().length&&(this.titleError=!0),0===this.$refs.taglist.tags.length&&(this.tagsError=!0),this.titleError||this.tagsError||this.$emit("save",{title:this.title,description:this.description,tags:this.$refs.taglist.tags})}}}},function(t,e,n){"use strict";n.r(e);var r=n(58),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(6)),i=a(n(146)),o=a(n(135));function a(t){return t&&t.__esModule?t:{default:t}}e.default={mixins:[i.default,o.default],props:["paper","original-annotation","tooltip","readonly","original-path","stroke-width"],data:function(){return{transform:"translate(0, 0)",isResizing:!1,x:0,y:0,width:0,height:0}},computed:{showResizeHandlers:function(){return!this.readonly&&this.width>0&&this.height>0}},mounted:function(){var t=this,e=this,n=function(t,n){if(!e.isResizing&&!e.readonly){var r=this.transform().diffMatrix.invert();r.e=r.f=0;var i=r.x(t,n),o=r.y(t,n),a=this.data("origTransform")+(this.data("origTransform")?"T":"t")+[i,o];this.transform(a)}},i=function(){e.readonly||(this.data("origTransform",this.transform().local),e.$emit("drag:start"))},o=function(){return e.$emit("drag:end")},a=new r.default(this.$refs.g);a.drag(n,i,o),this.originalPath&&(this.fromSVGPath(this.originalPath,!1),a.click(function(){return t.$emit("click")}))},watch:{x:function(t,e){this.transform="translate("+this.x+", "+this.y+")"},y:function(t,e){this.transform="translate("+this.x+", "+this.y+")"}},methods:{clear:function(){var t=new r.default(this.$refs.shape),e=new r.default(this.$refs.topLeft),n=new r.default(this.$refs.bottomRight);t.node.removeAttribute("transform"),e.node.removeAttribute("transform"),n.node.removeAttribute("transform"),this.destroyTooltip(),Object.assign(this,{transform:"translate(0, 0)",x:0,y:0,width:0,height:0})},getTooltipTarget:function(){return this.$refs.shape},addResizeHandlers:function(){var t=this,e=new r.default(this.$refs.shape),n=new r.default(this.$refs.topLeft),i=new r.default(this.$refs.bottomRight),o=function(t,r){var o=this.transform().diffMatrix.invert();o.e=o.f=0;var a=o.x(t,r),s=o.y(t,r);this.transform("t"+[a,s]+this.data("origTransform"));var l={width:i.getBBox().x-n.getBBox().x,height:i.getBBox().y-n.getBBox().y};this===n&&(l.transform=e.data("origTransform")+(e.data("origTransform")?"T":"t")+[a,s]),e.attr(l)},a=function(){t.isResizing=!0,e.data("origTransform",e.transform().local),this.data("origTransform",this.transform().local)},s=function(){t.isResizing=!1};n.drag(o,a,s),i.drag(o,a,s)},fromSVGPath:function(t,e){var n=this,i=r.default.path.getBBox(t);Object.assign(this,{x:i.x,y:i.y,width:i.width,height:i.height}),this.$nextTick(function(){n.addResizeHandlers(),e&&setTimeout(function(){return n.addTooltip()},250)})},toSVGPath:function(){var t,e=new r.default(this.$refs.shape),n=e.getBBox(),i=e.transform();if(i.global.length){var o=e.node.getAttribute("x"),a=e.node.getAttribute("y"),s=i.totalMatrix,l=this.paper.rect(s.x(o,a),s.y(o,a),n.width,n.height);t=l.getBBox().path,l.remove()}else t=e.getBBox().path;var c=r.default.path.toAbsolute(t).toString();return this.$parent.normalizePath(c)+";RECT"}}}},function(t,e,n){"use strict";n.r(e);var r=n(60),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(282)),i=h(n(277)),o=h(n(269)),a=h(n(268)),s=h(n(6)),l=h(n(267)),c=h(n(212)),u=h(n(209)),f=h(n(206)),d=h(n(205));function h(t){return t&&t.__esModule?t:{default:t}}e.default={props:{image:String,thumbnail:String,annotation:{type:Object,default:null},tooltip:{type:Boolean,default:!1},isAuthenticated:{type:Boolean,default:!1},annotations:{type:Array,default:[]},loginUrl:String},components:{shapeRect:l.default,shapeFree:c.default,zoomThumbnail:u.default},data:function(){return{paper:null,loaded:!1,mode:"rect",viewport:{width:0,height:0},viewBox:[0,0,0,0],zoomFactor:.1,scale:1,imgMinSize:0,imageWidth:0,imageHeight:0,readonly:!1,strokeWidth:15,imageRatio:1}},computed:{canvasClass:function(){return{"canvas--rect":!this.readonly&&this.isAuthenticated&&"rect"===this.mode,"canvas--free":!this.readonly&&this.isAuthenticated&&"free"===this.mode}},normalizedAnnotations:function(){var t=this,e=(0,a.default)(this.annotations,function(e){if(e.fragment.length>0){var n=e.fragment.split(";"),r=t.denormalizePath(n[0]),i=n[1].toLowerCase();Object.assign(e,{mode:i,path:r})}return e});return this.annotation?(0,o.default)(e,function(e){return e===t.annotation}):e},showOverlay:function(){return this.annotation&&!this.annotation.annotation_guid}},watch:{mode:function(t){this.reset(),this.readonly||this.handleDraw()},loaded:function(t){var e=this;if(t){var n=this.paper.node.getBoundingClientRect();console.log("Viewport: %s x %s",n.width,n.height);var r=[0,0,this.imageWidth,this.imageHeight],o={width:n.width,height:n.height},a=1;this.imageWidth>this.imageHeight&&(a=o.width/this.imageWidth),this.imageHeight>this.imageWidth&&(a=o.height/this.imageHeight);var s=a>1?2*a:2/a;Object.assign(this,{viewBox:r,viewport:o,imageRatio:a,strokeWidth:s}),this.paper.attr({viewBox:this.viewBox}),(0,i.default)(this.annotations)>0&&(this.readonly=!0),!d.default.get("__iconolab_onboarding")&&this.isAuthenticated&&setTimeout(function(){e.startOnboarding()},1e3)}},annotation:function(t){this.isAuthenticated&&(this.readonly=!!t)},scale:function(t){var e=this,n=0;if(t>1&&(n=t-1),1===t)this.resetViewBox();else{var r=this.getCenter(),i=this.imageWidth-this.imageWidth*n,o=this.imageHeight-this.imageHeight*n,a=[r.x-i/2,r.y-o/2,i,o];this.hideTooltip(),this.animateViewBox(a,function(){return e.showTooltip()})}},readonly:function(t,e){this.reset(),t||(this.handleDraw(),this.annotation&&this.$emit("close:annotation"))}},mounted:function(){var t=this,e=new Image;e.onload=function(n){t.paper=new s.default(t.$refs.svg),console.log("Image: %s x %s",e.width,e.height),Object.assign(t,{imageWidth:e.width,imageHeight:e.height,imgMinSize:Math.min(e.width,e.height),loaded:!0})},e.src=this.image},methods:{onAnnotationClick:function(t){this.$emit("click:annotation",t)},toggleReadonly:function(){this.isAuthenticated&&(this.readonly=!this.readonly)},hideTooltip:function(){this.$refs.free.hideTooltip(),this.$refs.rect.hideTooltip()},showTooltip:function(){"free"===this.mode&&this.$refs.free.showTooltip(),"rect"===this.mode&&this.$refs.rect.showTooltip()},reset:function(){this.$refs.rect.clear(),this.$refs.free.clear(),this.removeEventHandlers(),this.resetZoom(),this.resetViewBox()},removeEventHandlers:function(){this.paper.unmousedown(),this.paper.unmousemove(),this.paper.unmouseup(),this.paper.unclick()},setMode:function(t){Object.assign(this,{readonly:!1,mode:t})},getCenter:function(){return this.$refs.thumbnail?this.$refs.thumbnail.getCenter():{x:this.viewBox[0]+this.viewBox[2]/2,y:this.viewBox[1]+this.viewBox[3]/2}},changeViewBox:function(t){var e=this.viewBox.slice();e[0]=t.x,e[1]=t.y,this.paper.attr({viewBox:e})},syncViewBox:function(){var t=this.paper.attr("viewBox");this.viewBox=[t.x,t.y,t.width,t.height]},resetZoom:function(){this.scale=1,this.$refs.thumbnail&&this.$refs.thumbnail.reset()},animateViewBox:function(t,e){var n=this,r=this.viewBox.slice();s.default.animate(r,t,function(t){return n.paper.attr({viewBox:t})},350,mina.easeinout,function(){n.viewBox=t,e&&e()})},resetViewBox:function(){this.animateViewBox([0,0,this.imageWidth,this.imageHeight])},zoomIn:(0,r.default)(function(){console.log("zoomIn",arguments),this.scale>=1.9||(this.scale=this.scale+1*this.zoomFactor)},400),zoomOut:(0,r.default)(function(){1!==this.scale&&(this.scale=this.scale-1*this.zoomFactor)},400),zoomOffset:function(){return{x:this.viewport.width/this.viewBox[2],y:this.viewport.height/this.viewBox[3]}},computeOffset:function(t){var e=this.$refs.image.getBoundingClientRect(),n=this.zoomOffset();return{x:(t.clientX-e.left)/Math.min(n.x,n.y),y:(t.clientY-e.top)/Math.min(n.x,n.y)}},normalizePath:function(t){var e=100/this.imageWidth,n=100/this.imageHeight;if(isNaN(e)||isNaN(n))throw new Error("Ratio should be a number.");var r=s.default.matrix(e,0,0,n,0,0);return-1===(t=s.default.path.map(t,r).toString()).search(/[z|Z]/gi)&&(t+=" Z"),t},denormalizePath:function(t){var e=this.imageWidth/100,n=this.imageHeight/100;if(isNaN(e)||isNaN(n))throw new Error("Ratio should be a number.");var r=s.default.matrix(e,0,0,n,0,0);return-1===(t=s.default.path.map(t,r).toString()).search(/[z|Z]/gi)&&(t+=" Z"),t},toSVGPath:function(){"free"===this.mode&&this.$refs.free.toSVGPath(),"rect"===this.mode&&this.$refs.rect.toSVGPath()},handleDraw:function(){"free"===this.mode&&this.handleDrawFree(),"rect"===this.mode&&this.handleDrawRect()},handleDrawFree:function(){var e=this;if(this.isAuthenticated){var n;this.removeEventHandlers();this.paper.click(function(r){if(!n&&t(r.target).is("image")&&!e.$refs.free.closed){var i=e.computeOffset(r),o=i.x,a=i.y;n=setTimeout(function(t,e){n=null,this.$refs.free.addPoint(t,e)}.bind(e,o,a),190)}})}},handleDrawRect:function(){var t=this;if(this.isAuthenticated){this.removeEventHandlers();var e={x:0,y:0},n={x:0,y:0},r=!1;this.paper.mousedown(function(n){t.$refs.rect.width>0&&t.$refs.rect.height>0||(e=t.computeOffset(n),r=!0)}),this.paper.mousemove(function(i){if(r){var o,a;n=t.computeOffset(i);var s=Math.abs(n.x-e.x),l=Math.abs(e.y-n.y);n.y>e.y&&n.x>e.x&&(o=e.x,a=e.y),n.ye.x&&(o=n.x-s,a=n.y),n.ye.y&&n.x").append(i).html()},showFragmentDiff:function(t,e){this.switchMode("fragmentMode"),this.originalPath=t,this.modifiedPath=e},show:function(){this.$refs.panel.show()},hide:function(){this.$refs.panel.hide()}}),r)}).call(this,n(1))},function(t,e,n){"use strict";n.r(e);var r=n(69),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(97)),i=o(n(152));function o(t){return t&&t.__esModule?t:{default:t}}e.default={data:function(){return{}},components:{Typeahead:r.default,diffviewer:i.default},mounted:function(){this.targetKeyMap={title:"proposal-title",desc:"proposal-description",frag:"proposal-fragment"},this.targetFieldTypeMap={title:"input",desc:"input",frag:"frag"},this.originalValues={title:"",desc:"",frag:""}},methods:{pickProposition:function(t,e,n){var r="",i=document.getElementById(e),o=this.$refs[this.targetKeyMap[n]],a=this.targetFieldTypeMap[n];if(!a)throw new Error("A target type must be provided...");if("input"===a&&(r=o.value,o.value=i.value),"frag"===a){r=o.getAttribute("d");var s=i.getAttribute("d");o.getAttribute("data-path-type");o.setAttribute("d",s);var l=i.getAttribute("data-path-type");l=l||"FREE",this.$refs["fragment-field"].value=s+";"+l}this.preserveOriginalValue(n,r)},pickTag:function(t,e){var n=this.$refs[e],r=this.$refs["proposal-tags"];this.preserveOriginalValue("proposal-tags",r.tags),r.setTags(n.tags,!0)},preserveOriginalValue:function(t,e){this.originalValues[t]||(this.originalValues[t]=e)},showDiffviewer:function(t,e,n){var r=document.getElementById(e),i=this.$refs[this.targetKeyMap[n]],o=this.targetFieldTypeMap[n],a=this.$refs[t];if(!a)throw new Error("The DiffViewer can't be found for "+n);if("input"===o&&a.showTextDiff(r.value,i.value),"tag"===n){var s=this.$refs[e],l=this.$refs["proposal-tags"];0!==s.tags.length&&0!==l.tags.length&&a.showTagDiff(s.tags,l.tags)}if("frag"===n){var c=i.getAttribute("d"),u=r.getAttribute("d");a.showFragmentDiff(c,u)}a.show()},hightlightSource:function(t){t.className+="highlight"},save:function(){alert("this is it ... ")}}}},function(t,e,n){"use strict";n.r(e);var r=n(71),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=a(n(154)),o=a(n(6));function a(t){return t&&t.__esModule?t:{default:t}}e.default={props:["image-url","image-width","image-height","zoomTarget","main-image-id"],mounted:function(){this.root=new o.default(this.$refs["root-svg"]),this.handler=this.root.select("#zoom-handler"),this.image=this.root.select("#small-image"),this.root.attr({width:101,height:101});var t=parseInt(this.image.attr("width")),e=parseInt(this.image.attr("height"));this.root.attr({viewBox:[0,0,t,e]}),this.imgMinSize=Math.min(t,e),this.handlerSize=20,this.handler.attr({width:this.handlerSize,height:this.handlerSize}),this.currentViewBox=null,this.currentViewport=null,this.updateFunction=null;var n=document.getElementById("zoomTarget");n&&this.setZoomTarget(n),this.handleEvents()},data:function(){return{showHandler:!1}},methods:{setZoomTarget:function(t){if(t.hasOwnProperty("type")&&"svg"===t.type)this.paper=t;else if(this.paper=new o.default(t),!this.paper.select("#"+this.mainImageId))throw new Error("A main image wasn't found.");this.zoomHandler=i.default.enable_zoom(this.paper)},incraseDrawingZoom:function(){this.zoomHandler.zoomIn()},resetDrawingZoom:function(){this.zoomHandler.reset()},decreaseDrawingZoom:function(){this.zoomHandler.zoomOut()},handleEvents:function(){r.eventEmitter.on("zoomChanged",this.handleZoomChanged.bind(this));var t=this;this.handler.drag(function(e,n){var r=this.getBBox(),i=this.data("startPosition").x,o=this.data("startPosition").y,a=parseInt(t.image.attr("width")),s=parseInt(t.image.attr("height")),l=i+e,c=o+n;l+r.w>=a&&(l=a-r.w),c+r.h>=s&&(c=s-r.h);var u="T"+[l=l<0?0:l,c=c<0?0:c];this.attr("transform",u),t.notifyMove(this.getBBox().x,this.getBBox().y)},function(){this.data("startPosition",{x:this.getBBox().x,y:this.getBBox().y}),this.data("origTransform",this.transform().local)},function(){})},moveHandlerToCenter:function(t,e){cx=cx||this.width/2,cy=cy||this.height/2;var n=cx-this.handler.getBBox().w/2,r=cy-this.handler.getBBox().h/2;this.handler.transform("T"+[n,r])},notifyMove:function(t,e){if(r.eventEmitter.emit("moveZoomHandler",{x:t,y:e,viewport:{width:this.image.attr("width"),height:this.image.attr("height")}}),!this.currentViewBox||!this.currentViewport||"function"!=typeof this.updateFunction)return!1;var n=t*(this.currentImageSize.width/this.image.attr("width")),i=e*(this.currentImageSize.height/this.image.attr("height"));this.currentViewBox[0]=n,this.currentViewBox[1]=i,this.updateFunction(this.currentViewBox)},handleZoomChanged:function(t){if(1!==t.currentScale){this.showHandler=!0,this.currentViewport=t.viewport,this.currentViewBox=t.currentViewBox,this.currentImageSize=t.imageSize,this.updateFunction=t.updateFunction;var e=t.currentViewBox[2]*this.imgMinSize/t.minSize;this.handler.attr("width",e),this.handler.attr("height",e);var n=t.currentViewBox[0]*this.image.attr("width")/t.imageSize.width,r=t.currentViewBox[1]*this.image.attr("height")/t.imageSize.height;this.handler.transform("T"+[n,r])}else this.showHandler=!1}}}},function(t,e,n){"use strict";n.r(e);var r=n(73),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(293)),i=a(n(97)),o=a(n(153));function a(t){return t&&t.__esModule?t:{default:t}}e.default={el:"#drawing-zone",MODE_RECT:"RECT",MODE_FREE:"FREE",ZOOM_IN:"in",ZOOM_OUT:"out",components:{typeahead:i.default,zoomview:o.default},data:{mode:"",isRect:!0,normalizePath:"",readOnly:!1,formView:!0,useClipPath:!1,transformMatrix:"",fragmentPath:"",canZoom:!0,displayMask:!1},mounted:function(){var t=this;this.initialDrawingMode=null,this.drawingComponent=r.default.init({wrapperId:"#iconolab-image-wrapper",actionWrapper:"#action-wrapper",readOnly:!1,onDrawingModeChange:function(e){t.setDrawingMode(e,!1)}}),this.$refs.zoomview.setZoomTarget(this.drawingComponent.getPaper()),this.showForm()},methods:{computeCentreredViewBox:function(){var t=this.$refs.zoomSvg,e=t.getAttribute("width")/100,n=t.getAttribute("height")/100,r=this.drawingComponent.getShapeBBox();return[(r.x-1)*e,(r.y-1)*n,(r.w+2)*e,(r.h+2)*n].join(" ")},computeZoomedViewBox:function(){var t=[],e=this.$refs.zoomSvg,n=this.drawingComponent.getShapeBBox(),r=e.getAttribute("width"),i=e.getAttribute("height"),o=r/100,a=i/100;n.x=n.x*o,n.y=n.y*a,n.w=n.w*o,n.h=n.h*a;var s=r/i;return n.w>n.h?(n.y=Math.max(0,n.y-(n.w*s-n.h)/2),n.h=n.w*s):(n.x=Math.max(0,n.x-(n.h/s-n.w)/2),n.w=n.h/s),t=[n.x,n.y,n.w,n.h],!!n&&t.join(" ")},zoom:function(t){var e=this.$refs.smallSvgWrapper;if(this.$options.ZOOM_OUT===t){var n=[0,0,e.getAttribute("width"),e.getAttribute("height")];e.setAttribute("viewBox",n.join(" ")),this.canZoom=!0}this.$options.ZOOM_IN===t&&(e.setAttribute("viewBox",this.computeCentreredViewBox()),this.canZoom=!1)},setDrawingMode:function(t,e){this.initialDrawingMode||(this.initialDrawingMode=t);e="boolean"!=typeof e||e;this.mode=this.$options["MODE_"+t],this.isRect=this.mode===this.$options.MODE_RECT,e&&this.drawingComponent.setDrawingMode(this.mode)},cancel:function(){this.formView=!0;var t=this.$refs.currentPath.getAttribute("d");t.length&&this.initialDrawingMode&&(t+=";"+this.initialDrawingMode,this.drawingComponent.setPath(t))},highLightZone:function(){this.displayMask?this.displayMask=!1:this.displayMask=!0},displayEditedPath:function(){this.drawingComponent.getPath()},resetZoom:function(){this.zoom(this.$options.ZOOM_OUT)},showEditor:function(){this.formView=!1,this.resetZoom()},showForm:function(){this.normalizePath=this.drawingComponent.getPath();var t=this.$refs.smallImage;this.formView=!0;var e=[t.getAttribute("width")/100,0,0,t.getAttribute("height")/100,0,0].join(",");this.transformMatrix="matrix("+e+")",this.fragmentPath=this.normalizePath.split(";")[0]},clear:function(){this.drawingComponent.clear()}}}},function(t,e,n){"use strict";n.r(e);var r=n(75),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){t.exports={"selected-tags":"selected-tags",Typeahead__input:"Typeahead__input","tag-item":"tag-item","fa-times":"fa-times",active:"active",name:"name","screen-name":"screen-name"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13);e.default={data:function(){return{tags:[],readOnly:!1}},methods:{removeTag:function(t){this.tags.$remove(t),this.normalizeSelectedTags()},reset:function(){this.tags=[],this.normalizeSelectedTags()},tagAlreadyExists:function(t){var e=!1,n=this.tags.find(function(e){if(e.tag_link){if(e.tag_link===t.tag_link)return!0}else if(e.tag_label===t.tag_label)return!0});if(n){var r=this.$refs[n.id][0];r.style.border="1px solid red",setTimeout(function(){r.style.border=""},1e3),e=!0}return e},setTags:function(t){Array.isArray(t)||new Error("setTags expects an array!");var e=this;t.map(function(t){e.addTag(t)})},addTag:function(t){if(this.tagAlreadyExists(t))return!1;t&&t.hasOwnProperty("tag_label")&&(t.id||(t.id=(0,r.generateId)("tag_")),this.tags.push(t),this.normalizeSelectedTags())},normalizeSelectedTags:function(){var t=[];this.tags.map(function(e){var n={};n.tag_input="string"==typeof e.tag_link&&e.tag_link.length?e.tag_link:e.tag_label,n.accuracy=e.accuracy,n.relevancy=e.relevancy,t.push(n)}),this.$parent.$data.selectedTags=JSON.stringify(t)},updateAccuracy:function(t,e){e.accuracy=t.target.value,this.normalizeSelectedTags()},updatePertinence:function(t,e){e.relevancy=t.target.value,this.normalizeSelectedTags()}}}},function(t,e,n){"use strict";n.r(e);var r=n(78),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(170)),i=o(n(314));function o(t){return t&&t.__esModule?t:{default:t}}var a={reset:r.default.methods.reset};e.default={mixins:[r.default],components:{taglist:i.default},props:["tags","read-only"],mounted:function(){this.taglist=this.$refs.taglist,this.taglist.readOnly=this.readOnly,this.setTags(this.tags)},data:function(){return{src:"https://lookup.dbpedia.org/api/search/PrefixSearch?MaxHits=5",limit:7,minChars:2,showAddButton:!1,datasource:"wikipedia",selectedTags:"[]",items:[],queryParamName:"QueryString",placeholder:"..."}},methods:{setTags:function(t,e){t=Array.isArray(t)?t:[],(e="boolean"==typeof e&&e)&&this.taglist.reset(),this.taglist.setTags(t)},checkQuery:function(){0===this.query.length&&this.reset()},fetch:function(){if("wikipedia"===this.datasource)return this.fetchWikiPedia();return{}[this.queryParamName]=this.query,function(e,n){var r=t.Deferred();t.getJSON(e,n).done(function(t){var e={};e.data=t,r.resolve(e)}).fail(r.reject);return r.promise()}(this.src,query)},fetchWikiPedia:function(){this.src="https://fr.wikipedia.org/w/api.php";var e={action:"opensearch",format:"json",search:this.query},n=t.Deferred();return t.ajax({url:this.src,data:e,dataType:"jsonp",success:function(t){var e={};e.data=t,n.resolve(e)}}),n.promise()},reset:function(){this.showAddButton=!1,a.reset.call(this)},prepareWikipediaResponse:function(t){var e=[];if(4!==t.length)return e;var n=t[1],r=t[3];return n.length===r.length?(n.map(function(t,n){var i={};i.tag_label=t;var o=r[n];o=o.replace("https://fr.wikipedia.org/wiki/","http://fr.dbpedia.org/resource/"),i.tag_link=decodeURI(o),i.accuracy=1,i.relevancy=1,e.push(i)}),e):void 0},prepareResponseData:function(t){var e="string"==typeof t?JSON.parse(t):t;return"wikipedia"===this.datasource&&(e=this.prepareWikipediaResponse(e)),Array.isArray(e)&&!e.length&&(this.showAddButton=!0),e},addTag:function(){if(this.hasItems)return!1;var t={tag_label:this.query,accuracy:1,relevancy:1};this.$refs.taglist.addTag(t),this.reset()},onHit:function(t){this.$refs.taglist.addTag(t),this.reset()}}}}).call(this,n(1))},function(t,e,n){"use strict";n.r(e);var r=n(80),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,function(){return r[t]})}(o);e.default=i.a},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(20)(Object.keys,Object);t.exports=r},function(t,e,n){"use strict";n.r(e);var r=n(128),i=n(57);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);n(218);var a=n(0),s=Object(a.a)(i.default,r.a,r.b,!1,null,"1b422ac0",null);e.default=s.exports},function(t,e){t.exports=function(){return!1}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){"use strict";var r=n(305)();t.exports=function(t){return t!==r&&null!==t}},function(t,e,n){"use strict";var r=n(23);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},function(t,e,n){var r=n(16).f,i=n(22),o=n(4)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(164)("keys"),i=n(163);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(166),i=n(95);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(15),i=n(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";n.r(e);var r=n(129),i=n(81);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);n(297);var a=n(0),s=Object(a.a)(i.default,r.a,r.b,!1,null,"b12dd580",null);e.default=s.exports},function(t,e,n){(function(t){!function(t){"use strict";var e=function(n,r){this.options=t.extend({},e.DEFAULTS,r),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(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var r=t(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new e(this,o)),"string"==typeof n&&i[n]()})}e.VERSION="3.3.7",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return i=t-r&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var s=this.getState(a,n,i,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(e.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-n-o})}};var r=t.fn.affix;t.fn.affix=n,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=r,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),r=e.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(e,r)})})}(t)}).call(this,n(1))},function(t,e,n){(function(t){!function(t){"use strict";var e=function(e){this.element=t(e)};function n(n){return this.each(function(){var r=t(this),i=r.data("bs.tab");i||r.data("bs.tab",i=new e(this)),"string"==typeof n&&i[n]()})}e.VERSION="3.3.7",e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),r=e.data("target");if(r||(r=(r=e.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var i=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(o),e.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=t(r);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},e.prototype.activate=function(n,r,i){var o=r.find("> .active"),a=i&&t.support.transition&&(o.length&&o.hasClass("fade")||!!r.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&a?o.one("bsTransitionEnd",s).emulateTransitionEnd(e.TRANSITION_DURATION):s(),o.removeClass("in")};var r=t.fn.tab;t.fn.tab=n,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=r,this};var i=function(e){e.preventDefault(),n.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(t)}).call(this,n(1))},function(t,e,n){(function(t){!function(t){"use strict";function e(n,r){this.$body=t(document.body),this.$scrollElement=t(n).is(document.body)?t(window):t(n),this.options=t.extend({},e.DEFAULTS,r),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 r=t(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new e(this,o)),"string"==typeof n&&i[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",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),i=e.data("target")||e.attr("href"),o=/^#./.test(i)&&t(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||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(),r=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=r)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e=i[t]&&(void 0===i[t+1]||e

'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.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()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.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)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var r=t(this),i=r.data("bs.popover"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new e(this,o)),"string"==typeof n&&i[n]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(t)}).call(this,n(1))},function(t,e,n){(function(t){!function(t){"use strict";var e=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)};e.VERSION="3.3.7",e.TRANSITION_DURATION=150,e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,n,r){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(r),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 i=this.options.trigger.split(" "),o=i.length;o--;){var a=i[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()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,r){n[t]!=r&&(e[t]=r)}),e},e.prototype.enter=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["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.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()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},e.prototype.show=function(){var n=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var r=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!r)return;var i=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(),f=o[0].offsetWidth,d=o[0].offsetHeight;if(c){var h=s,p=this.getPosition(this.$viewport);s="bottom"==s&&u.bottom+d>p.bottom?"top":"top"==s&&u.top-dp.width?"left":"left"==s&&u.left-fa.top+a.height&&(i.top=a.top+a.height-l)}else{var c=e.left-o,u=e.left+o+n;ca.right&&(i.left=a.left+a.width-u)}return i},e.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)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.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},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.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)},e.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 n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var r=t(this),i=r.data("bs.tooltip"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.tooltip",i=new e(this,o)),"string"==typeof n&&i[n]())})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(t)}).call(this,n(1))},function(t,e,n){(function(t){!function(t){"use strict";var e=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))};function n(n,r){return this.each(function(){var i=t(this),o=i.data("bs.modal"),a=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);o||i.data("bs.modal",o=new e(this,a)),"string"==typeof n?o[n](r):a.show&&o.show(r)})}e.VERSION="3.3.7",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(n){var r=this,i=t.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(i),this.isShown||i.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(){r.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var i=t.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),i&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:n});i?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(e.TRANSITION_DURATION):r.$element.trigger("focus").trigger(o)}))},e.prototype.hide=function(n){n&&n.preventDefault(),n=t.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.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(e.TRANSITION_DURATION):this.hideModal())},e.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))},e.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")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.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")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(n){var r=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&i;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;o?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){r.removeBackdrop(),n&&n()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):a()}else n&&n()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.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:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.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.clientWidth0&&l--,40==e.which&&lthis.$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))},e.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},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(n,i),a=this.interval,s="next"==n?"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 f=t(this.$indicators.children()[this.getItemIndex(o)]);f&&f.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one("bsTransitionEnd",function(){o.removeClass([n,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(e.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var r=t.fn.carousel;t.fn.carousel=n,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=r,this};var i=function(e){var r,i=t(this),o=t(i.attr("data-target")||(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=t.extend({},o.data(),i.data()),s=i.attr("data-slide-to");s&&(a.interval=!1),n.call(o,a),s&&o.data("bs.carousel").to(s),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);n.call(e,e.data())})})}(t)}).call(this,n(1))},function(t,e,n){(function(t){!function(t){"use strict";var e=function(n,r){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each(function(){var r=t(this),i=r.data("bs.button"),o="object"==typeof n&&n;i||r.data("bs.button",i=new e(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)})}e.VERSION="3.3.7",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();e+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(t.proxy(function(){r[i](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},e.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 r=t.fn.button;t.fn.button=n,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=r,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var r=t(e.target).closest(".btn");n.call(r,"toggle"),t(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),r.is("input,button")?r.trigger("focus"):r.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))})}(t)}).call(this,n(1))},function(t,e,n){(function(t){!function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(e){var r=t(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""));var o=t("#"===i?[]:i);function a(){o.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(n.TRANSITION_DURATION):a())};var r=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var r=t(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof e&&i[e].call(r)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=r,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(t)}).call(this,n(1))},function(t,e,n){(function(t){!function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,r=this;t(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||t(r).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){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.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)}})})}(t)}).call(this,n(1))},function(t,e,n){n(109),n(108),n(107),n(106),n(105),n(104),n(103),n(102),n(101),n(100),n(99),n(98)},function(t,e,n){var r;!function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var o=[],a=n.document,s=Object.getPrototypeOf,l=o.slice,c=o.concat,u=o.push,f=o.indexOf,d={},h=d.toString,p=d.hasOwnProperty,g=p.toString,m=g.call(Object),v={},C=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function(t){return null!=t&&t===t.window},A={type:!0,src:!0,noModule:!0};function I(t,e,n){var r,i=(e=e||a).createElement("script");if(i.text=t,n)for(r in A)n[r]&&(i[r]=n[r]);e.head.appendChild(i).parentNode.removeChild(i)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var _=function(t,e){return new _.fn.init(t,e)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function x(t){var e=!!t&&"length"in t&&t.length,n=b(t);return!C(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}_.fn=_.prototype={jquery:"3.3.1",constructor:_,length:0,toArray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(l.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+~]|"+L+")"+L+"*"),V=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),Y=new RegExp(R),U=new RegExp("^"+F+"$"),W={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+$),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Q=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),tt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){d()},it=Ct(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{M.apply(j=D.call(I.childNodes),I.childNodes),j[I.childNodes.length].nodeType}catch(t){M={apply:j.length?function(t,e){O.apply(t,D.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function ot(t,e,r,i){var o,s,c,u,f,p,v,C=e&&e.ownerDocument,b=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==b&&9!==b&&11!==b)return r;if(!i&&((e?e.ownerDocument||e:I)!==h&&d(e),e=e||h,g)){if(11!==b&&(f=J.exec(t)))if(o=f[1]){if(9===b){if(!(c=e.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(C&&(c=C.getElementById(o))&&y(e,c)&&c.id===o)return r.push(c),r}else{if(f[2])return M.apply(r,e.getElementsByTagName(t)),r;if((o=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return M.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!k[t+" "]&&(!m||!m.test(t))){if(1!==b)C=e,v=t;else if("object"!==e.nodeName.toLowerCase()){for((u=e.getAttribute("id"))?u=u.replace(et,nt):e.setAttribute("id",u=A),s=(p=a(t)).length;s--;)p[s]="#"+u+" "+vt(p[s]);v=p.join(","),C=K.test(t)&>(e.parentNode)||e}if(v)try{return M.apply(r,C.querySelectorAll(v)),r}catch(t){}finally{u===A&&e.removeAttribute("id")}}}return l(t.replace(z,"$1"),e,r,i)}function at(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function st(t){return t[A]=!0,t}function lt(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function ut(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ht(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&&it(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pt(t){return st(function(e){return e=+e,st(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=ot.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:I;return a!==h&&9===a.nodeType&&a.documentElement?(p=(h=a).documentElement,g=!o(h),I!==h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",rt,!1):i.attachEvent&&i.attachEvent("onunload",rt)),n.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=lt(function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=X.test(h.getElementsByClassName),n.getById=lt(function(t){return p.appendChild(t).id=A,!h.getElementsByName||!h.getElementsByName(A).length}),n.getById?(r.filter.ID=function(t){var e=t.replace(Q,tt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(Q,tt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},v=[],m=[],(n.qsa=X.test(h.querySelectorAll))&&(lt(function(t){p.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+L+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+L+"*(?:value|"+N+")"),t.querySelectorAll("[id~="+A+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+A+"+*").length||m.push(".#.+[+~]")}),lt(function(t){t.innerHTML="";var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+L+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=X.test(C=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&<(function(t){n.disconnectedMatch=C.call(t,"*"),C.call(t,"[s!='']:x"),v.push("!=",R)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=X.test(p.compareDocumentPosition),y=e||X.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},T=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===h||t.ownerDocument===I&&y(I,t)?-1:e===h||e.ownerDocument===I&&y(I,e)?1:u?P(u,t)-P(u,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t===h?-1:e===h?1:i?-1:o?1:u?P(u,t)-P(u,e):0;if(i===o)return ut(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ut(a[r],s[r]):a[r]===I?-1:s[r]===I?1:0},h):h},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==h&&d(t),e=e.replace(V,"='$1']"),n.matchesSelector&&g&&!k[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var r=C.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return ot(e,h,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==h&&d(t),y(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==h&&d(t);var i=r.attrHandle[e.toLowerCase()],o=i&&S.call(r.attrHandle,e.toLowerCase())?i(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.escape=function(t){return(t+"").replace(et,nt)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort(T),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return u=null,t},i=ot.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=ot.selectors={cacheLength:50,createPseudo:st,match:W,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(Q,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(Q,tt),"~="===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]||ot.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]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return W.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Y.test(n)&&(e=a(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(Q,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&w(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=ot.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var c,u,f,d,h,p,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),C=!l&&!s,y=!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&&C){for(y=(h=(c=(u=(f=(d=m)[A]||(d[A]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]||[])[0]===b&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[g]||(y=h=0)||p.pop();)if(1===d.nodeType&&++y&&d===e){u[t]=[b,h,y];break}}else if(C&&(y=h=(c=(u=(f=(d=e)[A]||(d[A]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]||[])[0]===b&&c[1]),!1===y)for(;(d=++h&&d&&d[g]||(y=h=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++y||(C&&((u=(f=d[A]||(d[A]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]=[b,y]),d!==e)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return i[A]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=P(t,o[a])]=!(n[r]=o[a])}):function(t){return i(t,0,n)}):i}},pseudos:{not:st(function(t){var e=[],n=[],r=s(t.replace(z,"$1"));return r[A]?st(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:st(function(t){return function(e){return ot(t,e).length>0}}),contains:st(function(t){return t=t.replace(Q,tt),function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}}),lang:st(function(t){return U.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(Q,tt).toLowerCase(),function(e){var n;do{if(n=g?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===p},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ht(!1),disabled:ht(!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!r.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return G.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:pt(function(){return[0]}),last:pt(function(t,e){return[e-1]}),eq:pt(function(t,e,n){return[n<0?n+e:n]}),even:pt(function(t,e){for(var n=0;n=0;)t.push(r);return t}),gt:pt(function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function At(t,e,n,r,i){for(var o,a=[],s=0,l=t.length,c=null!=e;s-1&&(o[c]=!(a[c]=f))}}else v=At(v===a?v.splice(p,v.length):v),i?i(null,a,v,l):M.apply(a,v)})}function bt(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],l=a?1:0,u=Ct(function(t){return t===e},s,!0),f=Ct(function(t){return P(e,t)>-1},s,!0),d=[function(t,n,r){var i=!a&&(r||n!==c)||((e=n).nodeType?u(t,n,r):f(t,n,r));return e=null,i}];l1&&yt(d),l>1&&vt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(z,"$1"),n,l0,i=t.length>0,o=function(o,a,s,l,u){var f,p,m,v=0,C="0",y=o&&[],A=[],I=c,_=o||i&&r.find.TAG("*",u),w=b+=null==I?1:Math.random()||.1,x=_.length;for(u&&(c=a===h||a||u);C!==x&&null!=(f=_[C]);C++){if(i&&f){for(p=0,a||f.ownerDocument===h||(d(f),s=!g);m=t[p++];)if(m(f,a||h,s)){l.push(f);break}u&&(b=w)}n&&((f=!m&&f)&&v--,o&&y.push(f))}if(v+=C,n&&C!==v){for(p=0;m=e[p++];)m(y,A,a,s);if(o){if(v>0)for(;C--;)y[C]||A[C]||(A[C]=E.call(l));A=At(A)}M.apply(l,A),u&&!o&&A.length>0&&v+e.length>1&&ot.uniqueSort(l)}return u&&(b=w,c=I),y};return n?st(o):o}(o,i))).selector=t}return s},l=ot.select=function(t,e,n,i){var o,l,c,u,f,d="function"==typeof t&&t,h=!i&&a(t=d.selector||t);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&g&&r.relative[l[1].type]){if(!(e=(r.find.ID(c.matches[0].replace(Q,tt),e)||[])[0]))return n;d&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=W.needsContext.test(t)?0:l.length;o--&&(c=l[o],!r.relative[u=c.type]);)if((f=r.find[u])&&(i=f(c.matches[0].replace(Q,tt),K.test(l[0].type)&>(e.parentNode)||e))){if(l.splice(o,1),!(t=i.length&&vt(l)))return M.apply(n,i),n;break}}return(d||s(t,h))(i,e,!g,n,!e||K.test(t)&>(e.parentNode)||e),n},n.sortStable=A.split("").sort(T).join("")===A,n.detectDuplicates=!!f,d(),n.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))}),lt(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||ct("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&<(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ct("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ct(N,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),ot}(n);_.find=k,_.expr=k.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=k.uniqueSort,_.text=k.getText,_.isXMLDoc=k.isXML,_.contains=k.contains,_.escapeSelector=k.escape;var T=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&_(t).is(n))break;r.push(t)}return r},S=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},j=_.expr.match.needsContext;function E(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(t,e,n){return C(e)?_.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?_.grep(t,function(t){return t===e!==n}):"string"!=typeof e?_.grep(t,function(t){return f.call(e,t)>-1!==n}):_.filter(e,t,n)}_.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?_.find.matchesSelector(r,t)?[r]:[]:_.find.matches(t,_.grep(e,function(t){return 1===t.nodeType}))},_.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(_(t).filter(function(){for(e=0;e1?_.uniqueSort(n):n},filter:function(t){return this.pushStack(M(this,t||[],!1))},not:function(t){return this.pushStack(M(this,t||[],!0))},is:function(t){return!!M(this,"string"==typeof t&&j.test(t)?_(t):t||[],!1).length}});var D,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||D,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:P.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof _?e[0]:e,_.merge(this,_.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:a,!0)),O.test(r[1])&&_.isPlainObject(e))for(r in e)C(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=a.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):C(t)?void 0!==n.ready?n.ready(t):t(_):_.makeArray(t,this)}).prototype=_.fn,D=_(a);var N=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function F(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}_.fn.extend({has:function(t){var e=_(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&_.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?_.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?f.call(_(t),this[0]):f.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),_.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return T(t,"parentNode")},parentsUntil:function(t,e,n){return T(t,"parentNode",n)},next:function(t){return F(t,"nextSibling")},prev:function(t){return F(t,"previousSibling")},nextAll:function(t){return T(t,"nextSibling")},prevAll:function(t){return T(t,"previousSibling")},nextUntil:function(t,e,n){return T(t,"nextSibling",n)},prevUntil:function(t,e,n){return T(t,"previousSibling",n)},siblings:function(t){return S((t.parentNode||{}).firstChild,t)},children:function(t){return S(t.firstChild)},contents:function(t){return E(t,"iframe")?t.contentDocument:(E(t,"template")&&(t=t.content||t),_.merge([],t.childNodes))}},function(t,e){_.fn[t]=function(n,r){var i=_.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=_.filter(r,i)),this.length>1&&(L[t]||_.uniqueSort(i),N.test(t)&&i.reverse()),this.pushStack(i)}});var $=/[^\x20\t\r\n\f]+/g;function R(t){return t}function B(t){throw t}function z(t,e,n,r){var i;try{t&&C(i=t.promise)?i.call(t).done(e).fail(n):t&&C(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}_.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return _.each(t.match($)||[],function(t,n){e[n]=!0}),e}(t):_.extend({},t);var e,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?_.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},_.extend({Deferred:function(t){var e=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return _.Deferred(function(n){_.each(e,function(e,r){var i=C(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&C(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){var o=0;function a(t,e,r,i){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(t=o&&(r!==B&&(s=void 0,l=[n]),e.rejectWith(s,l))}};t?u():(_.Deferred.getStackHook&&(u.stackTrace=_.Deferred.getStackHook()),n.setTimeout(u))}}return _.Deferred(function(n){e[0][3].add(a(0,n,C(i)?i:R,n.notifyWith)),e[1][3].add(a(0,n,C(t)?t:R)),e[2][3].add(a(0,n,C(r)?r:B))}).promise()},promise:function(t){return null!=t?_.extend(t,i):i}},o={};return _.each(e,function(t,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add(function(){r=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=l.call(arguments),o=_.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?l.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(z(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||C(i[n]&&i[n].then)))return o.then();for(;n--;)z(i[n],a(n),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&H.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},_.readyException=function(t){n.setTimeout(function(){throw t})};var q=_.Deferred();function V(){a.removeEventListener("DOMContentLoaded",V),n.removeEventListener("load",V),_.ready()}_.fn.ready=function(t){return q.then(t).catch(function(t){_.readyException(t)}),this},_.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==t&&--_.readyWait>0||q.resolveWith(a,[_]))}}),_.ready.then=q.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(_.ready):(a.addEventListener("DOMContentLoaded",V),n.addEventListener("load",V));var Y=function(t,e,n,r,i,o,a){var s=0,l=t.length,c=null==n;if("object"===b(n))for(s in i=!0,n)Y(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,C(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(_(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each(function(){Q.remove(this,t)})}}),_.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=K.get(t,e),n&&(!r||Array.isArray(n)?r=K.access(t,e,_.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=_.queue(t,e),r=n.length,i=n.shift(),o=_._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){_.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return K.get(t,n)||K.access(t,n,{empty:_.Callbacks("once memory").add(function(){K.remove(t,[e+"queue",n])})})}}),_.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]+)/i,pt=/^$|^module$|\/(?:java|ecma)script/i,gt={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function mt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&E(t,e)?_.merge([t],n):n}function vt(t,e){for(var n=0,r=t.length;n-1)i&&i.push(o);else if(c=_.contains(o.ownerDocument,o),a=mt(f.appendChild(o),"script"),c&&vt(a),n)for(u=0;o=a[u++];)pt.test(o.type||"")&&n.push(o);return f}Ct=a.createDocumentFragment().appendChild(a.createElement("div")),(yt=a.createElement("input")).setAttribute("type","radio"),yt.setAttribute("checked","checked"),yt.setAttribute("name","t"),Ct.appendChild(yt),v.checkClone=Ct.cloneNode(!0).cloneNode(!0).lastChild.checked,Ct.innerHTML="",v.noCloneChecked=!!Ct.cloneNode(!0).lastChild.defaultValue;var bt=a.documentElement,_t=/^key/,wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xt=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function Tt(){return!1}function St(){try{return a.activeElement}catch(t){}}function jt(t,e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)jt(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Tt;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return _().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=_.guid++)),t.each(function(){_.event.add(this,e,i,r,n)})}_.event={global:{},add:function(t,e,n,r,i){var o,a,s,l,c,u,f,d,h,p,g,m=K.get(t);if(m)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&_.find.matchesSelector(bt,i),n.guid||(n.guid=_.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match($)||[""]).length;c--;)h=g=(s=xt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),h&&(f=_.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=_.event.special[h]||{},u=_.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&_.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=l[h])||((d=l[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(h,a)),f.add&&(f.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),_.event.global[h]=!0)},remove:function(t,e,n,r,i){var o,a,s,l,c,u,f,d,h,p,g,m=K.hasData(t)&&K.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match($)||[""]).length;c--;)if(h=g=(s=xt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),h){for(f=_.event.special[h]||{},d=l[h=(r?f.delegateType:f.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)u=d[o],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,f.remove&&f.remove.call(t,u));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,p,m.handle)||_.removeEvent(t,h,m.handle),delete l[h])}else for(h in l)_.event.remove(t,h+e[c],n,r,!0);_.isEmptyObject(l)&&K.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=_.event.fix(t),l=new Array(arguments.length),c=(K.get(this,"events")||{})[s.type]||[],u=_.event.special[s.type]||{};for(l[0]=s,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n-1:_.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,Ot=/\s*$/g;function Pt(t,e){return E(t,"table")&&E(11!==e.nodeType?e:e.firstChild,"tr")&&_(t).children("tbody")[0]||t}function Nt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Lt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ft(t,e){var n,r,i,o,a,s,l,c;if(1===e.nodeType){if(K.hasData(t)&&(o=K.access(t),a=K.set(e,o),c=o.events))for(i in delete a.handle,a.events={},c)for(n=0,r=c[i].length;n1&&"string"==typeof p&&!v.checkClone&&Mt.test(p))return t.each(function(i){var o=t.eq(i);g&&(e[0]=p.call(this,i,o.html())),$t(o,e,n,r)});if(d&&(o=(i=It(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=_.map(mt(i,"script"),Nt)).length;f")},clone:function(t,e,n){var r,i,o,a,s,l,c,u=t.cloneNode(!0),f=_.contains(t.ownerDocument,t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||_.isXMLDoc(t)))for(a=mt(u),r=0,i=(o=mt(t)).length;r0&&vt(a,!f&&mt(t,"script")),u},cleanData:function(t){for(var e,n,r,i=_.event.special,o=0;void 0!==(n=t[o]);o++)if(X(n)){if(e=n[K.expando]){if(e.events)for(r in e.events)i[r]?_.event.remove(n,r):_.removeEvent(n,r,e.handle);n[K.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),_.fn.extend({detach:function(t){return Rt(this,t,!0)},remove:function(t){return Rt(this,t)},text:function(t){return Y(this,function(t){return void 0===t?_.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 $t(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pt(this,t).appendChild(t)})},prepend:function(){return $t(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Pt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return $t(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return $t(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&&(_.cleanData(mt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return _.clone(this,t,e)})},html:function(t){return Y(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ot.test(t)&&!gt[(ht.exec(t)||["",""])[1].toLowerCase()]){t=_.htmlPrefilter(t);try{for(;n=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))),l}function te(t,e,n){var r=zt(t),i=qt(t,e,r),o="border-box"===_.css(t,"boxSizing",!1,r),a=o;if(Bt.test(i)){if(!n)return i;i="auto"}return a=a&&(v.boxSizingReliable()||i===t.style[e]),("auto"===i||!parseFloat(i)&&"inline"===_.css(t,"display",!1,r))&&(i=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(i=parseFloat(i)||0)+Qt(t,e,n||(o?"border":"content"),a,r,i)+"px"}function ee(t,e,n,r,i){return new ee.prototype.init(t,e,n,r,i)}_.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=qt(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,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=Z(e),l=Ut.test(e),c=t.style;if(l||(e=Jt(s)),a=_.cssHooks[e]||_.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:c[e];"string"===(o=typeof n)&&(i=it.exec(n))&&i[1]&&(n=lt(t,e,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(_.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var i,o,a,s=Z(e);return Ut.test(e)||(e=Jt(s)),(a=_.cssHooks[e]||_.cssHooks[s])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=qt(t,e,r)),"normal"===i&&e in Gt&&(i=Gt[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),_.each(["height","width"],function(t,e){_.cssHooks[e]={get:function(t,n,r){if(n)return!Yt.test(_.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,r):st(t,Wt,function(){return te(t,e,r)})},set:function(t,n,r){var i,o=zt(t),a="border-box"===_.css(t,"boxSizing",!1,o),s=r&&Qt(t,e,r,a,o);return a&&v.scrollboxSize()===o.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Qt(t,e,"border",!1,o)-.5)),s&&(i=it.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=_.css(t,e)),Kt(0,n,s)}}}),_.cssHooks.marginLeft=Vt(v.reliableMarginLeft,function(t,e){if(e)return(parseFloat(qt(t,"marginLeft"))||t.getBoundingClientRect().left-st(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),_.each({margin:"",padding:"",border:"Width"},function(t,e){_.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+ot[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(_.cssHooks[t+e].set=Kt)}),_.fn.extend({css:function(t,e){return Y(this,function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=zt(t),i=e.length;a1)}}),_.Tween=ee,ee.prototype={constructor:ee,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||_.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(_.cssNumber[n]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,n=ee.propHooks[this.prop];return this.options.duration?this.pos=e=_.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):ee.propHooks._default.set(this),this}},ee.prototype.init.prototype=ee.prototype,ee.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=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[_.cssProps[t.prop]]&&!_.cssHooks[t.prop]?t.elem[t.prop]=t.now:_.style(t.elem,t.prop,t.now+t.unit)}}},ee.propHooks.scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},_.fx=ee.prototype.init,_.fx.step={};var ne,re,ie=/^(?:toggle|show|hide)$/,oe=/queueHooks$/;function ae(){re&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ae):n.setTimeout(ae,_.fx.interval),_.fx.tick())}function se(){return n.setTimeout(function(){ne=void 0}),ne=Date.now()}function le(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=ot[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ce(t,e,n){for(var r,i=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(t){return this.each(function(){_.removeAttr(this,t)})}}),_.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?_.prop(t,e,n):(1===o&&_.isXMLDoc(t)||(i=_.attrHooks[e.toLowerCase()]||(_.expr.match.bool.test(e)?fe:void 0)),void 0!==n?null===n?void _.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=_.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&E(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match($);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),fe={set:function(t,e,n){return!1===e?_.removeAttr(t,n):t.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),function(t,e){var n=de[e]||_.find.attr;de[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=de[a],de[a]=i,i=null!=n(t,e,r)?a:null,de[a]=o),i}});var he=/^(?:input|select|textarea|button)$/i,pe=/^(?:a|area)$/i;function ge(t){return(t.match($)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"==typeof t&&t.match($)||[]}_.fn.extend({prop:function(t,e){return Y(this,_.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[_.propFix[t]||t]})}}),_.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(t)||(e=_.propFix[e]||e,i=_.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=_.find.attr(t,"tabindex");return e?parseInt(e,10):he.test(t.nodeName)||pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(_.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)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this}),_.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,l=0;if(C(t))return this.each(function(e){_(this).addClass(t.call(this,e,me(this)))});if((e=ve(t)).length)for(;n=this[l++];)if(i=me(n),r=1===n.nodeType&&" "+ge(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ge(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,l=0;if(C(t))return this.each(function(e){_(this).removeClass(t.call(this,e,me(this)))});if(!arguments.length)return this.attr("class","");if((e=ve(t)).length)for(;n=this[l++];)if(i=me(n),r=1===n.nodeType&&" "+ge(i)+" "){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=ge(r))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):C(t)?this.each(function(n){_(this).toggleClass(t.call(this,n,me(this),e),e)}):this.each(function(){var e,i,o,a;if(r)for(i=0,o=_(this),a=ve(t);e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=me(this))&&K.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":K.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+ge(me(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ce=/\r/g;_.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=C(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,_(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=_.map(i,function(t){return null==t?"":t+""})),(e=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=_.valHooks[i.type]||_.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ce,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:ge(_.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=_.inArray(_(t).val(),e)>-1}},v.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),v.focusin="onfocusin"in n;var ye=/^(?:focusinfocus|focusoutblur)$/,Ae=function(t){t.stopPropagation()};_.extend(_.event,{trigger:function(t,e,r,i){var o,s,l,c,u,f,d,h,g=[r||a],m=p.call(t,"type")?t.type:t,v=p.call(t,"namespace")?t.namespace.split("."):[];if(s=h=l=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!ye.test(m+_.event.triggered)&&(m.indexOf(".")>-1&&(m=(v=m.split(".")).shift(),v.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[_.expando]?t:new _.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:_.makeArray(e,[t]),d=_.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(r,e))){if(!i&&!d.noBubble&&!y(r)){for(c=d.delegateType||m,ye.test(c+m)||(s=s.parentNode);s;s=s.parentNode)g.push(s),l=s;l===(r.ownerDocument||a)&&g.push(l.defaultView||l.parentWindow||n)}for(o=0;(s=g[o++])&&!t.isPropagationStopped();)h=s,t.type=o>1?c:d.bindType||m,(f=(K.get(s,"events")||{})[t.type]&&K.get(s,"handle"))&&f.apply(s,e),(f=u&&s[u])&&f.apply&&X(s)&&(t.result=f.apply(s,e),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(g.pop(),e)||!X(r)||u&&C(r[m])&&!y(r)&&((l=r[u])&&(r[u]=null),_.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Ae),r[m](),t.isPropagationStopped()&&h.removeEventListener(m,Ae),_.event.triggered=void 0,l&&(r[u]=l)),t.result}},simulate:function(t,e,n){var r=_.extend(new _.Event,n,{type:t,isSimulated:!0});_.event.trigger(r,null,e)}}),_.fn.extend({trigger:function(t,e){return this.each(function(){_.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return _.event.trigger(t,e,n,!0)}}),v.focusin||_.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){_.event.simulate(e,t.target,_.event.fix(t))};_.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=K.access(r,e);i||r.addEventListener(t,n,!0),K.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=K.access(r,e)-1;i?K.access(r,e,i):(r.removeEventListener(t,n,!0),K.remove(r,e))}}});var Ie=n.location,be=Date.now(),_e=/\?/;_.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||_.error("Invalid XML: "+t),e};var we=/\[\]$/,xe=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;function Se(t,e,n,r){var i;if(Array.isArray(e))_.each(e,function(e,i){n||we.test(t)?r(t,i):Se(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==b(e))r(t,e);else for(i in e)Se(t+"["+i+"]",e[i],n,r)}_.param=function(t,e){var n,r=[],i=function(t,e){var n=C(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,function(){i(this.name,this.value)});else for(n in t)Se(n,t[n],e,i);return r.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&Te.test(this.nodeName)&&!ke.test(t)&&(this.checked||!dt.test(t))}).map(function(t,e){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,function(t){return{name:e.name,value:t.replace(xe,"\r\n")}}):{name:e.name,value:n.replace(xe,"\r\n")}}).get()}});var je=/%20/g,Ee=/#.*$/,Oe=/([?&])_=[^&]*/,Me=/^(.*?):[ \t]*([^\r\n]*)$/gm,De=/^(?:GET|HEAD)$/,Pe=/^\/\//,Ne={},Le={},Fe="*/".concat("*"),$e=a.createElement("a");function Re(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match($)||[];if(C(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Be(t,e,n,r){var i={},o=t===Le;function a(s){var l;return i[s]=!0,_.each(t[s]||[],function(t,s){var c=s(e,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)}),l}return a(e.dataTypes[0])||!i["*"]&&a("*")}function ze(t,e){var n,r,i=_.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&_.extend(!0,t,r),t}$e.href=Ie.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ie.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ie.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,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":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ze(ze(t,_.ajaxSettings),e):ze(_.ajaxSettings,t)},ajaxPrefilter:Re(Ne),ajaxTransport:Re(Le),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,s,l,c,u,f,d,h,p=_.ajaxSetup({},e),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?_(g):_.event,v=_.Deferred(),C=_.Callbacks("once memory"),y=p.statusCode||{},A={},I={},b="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(u){if(!s)for(s={};e=Me.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=I[t.toLowerCase()]=I[t.toLowerCase()]||t,A[t]=e),this},overrideMimeType:function(t){return null==u&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)w.always(t[w.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||b;return r&&r.abort(e),x(0,e),this}};if(v.promise(w),p.url=((t||p.url||Ie.href)+"").replace(Pe,Ie.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match($)||[""],null==p.crossDomain){c=a.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=_.param(p.data,p.traditional)),Be(Ne,p,e,w),u)return w;for(d in(f=_.event&&p.global)&&0==_.active++&&_.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!De.test(p.type),i=p.url.replace(Ee,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(je,"+")):(h=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(_e.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Oe,"$1"),h=(_e.test(i)?"&":"?")+"_="+be+++h),p.url=i+h),p.ifModified&&(_.lastModified[i]&&w.setRequestHeader("If-Modified-Since",_.lastModified[i]),_.etag[i]&&w.setRequestHeader("If-None-Match",_.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Fe+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(g,w,p)||u))return w.abort();if(b="abort",C.add(p.complete),w.done(p.success),w.fail(p.error),r=Be(Le,p,e,w)){if(w.readyState=1,f&&m.trigger("ajaxSend",[w,p]),u)return w;p.async&&p.timeout>0&&(l=n.setTimeout(function(){w.abort("timeout")},p.timeout));try{u=!1,r.send(A,x)}catch(t){if(u)throw t;x(-1,t)}}else x(-1,"No Transport");function x(t,e,a,s){var c,d,h,A,I,b=e;u||(u=!0,l&&n.clearTimeout(l),r=void 0,o=s||"",w.readyState=t>0?4:0,c=t>=200&&t<300||304===t,a&&(A=function(t,e,n){for(var r,i,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||t.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,w,a)),A=function(t,e,n,r){var i,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&&r&&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(i in c)if((s=i.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(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}}(p,A,w,c),c?(p.ifModified&&((I=w.getResponseHeader("Last-Modified"))&&(_.lastModified[i]=I),(I=w.getResponseHeader("etag"))&&(_.etag[i]=I)),204===t||"HEAD"===p.type?b="nocontent":304===t?b="notmodified":(b=A.state,d=A.data,c=!(h=A.error))):(h=b,!t&&b||(b="error",t<0&&(t=0))),w.status=t,w.statusText=(e||b)+"",c?v.resolveWith(g,[d,b,w]):v.rejectWith(g,[w,b,h]),w.statusCode(y),y=void 0,f&&m.trigger(c?"ajaxSuccess":"ajaxError",[w,p,c?d:h]),C.fireWith(g,[w,b]),f&&(m.trigger("ajaxComplete",[w,p]),--_.active||_.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,n){return _.get(t,e,n,"json")},getScript:function(t,e){return _.get(t,void 0,e,"script")}}),_.each(["get","post"],function(t,e){_[e]=function(t,n,r,i){return C(n)&&(i=i||r,r=n,n=void 0),_.ajax(_.extend({url:t,type:e,dataType:i,data:n,success:r},_.isPlainObject(t)&&t))}}),_._evalUrl=function(t){return _.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},_.fn.extend({wrapAll:function(t){var e;return this[0]&&(C(t)&&(t=t.call(this[0])),e=_(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 C(t)?this.each(function(e){_(this).wrapInner(t.call(this,e))}):this.each(function(){var e=_(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=C(t);return this.each(function(n){_(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){_(this).replaceWith(this.childNodes)}),this}}),_.expr.pseudos.hidden=function(t){return!_.expr.pseudos.visible(t)},_.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var He={0:200,1223:204},qe=_.ajaxSettings.xhr();v.cors=!!qe&&"withCredentials"in qe,v.ajax=qe=!!qe,_.ajaxTransport(function(t){var e,r;if(v.cors||qe&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=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(He[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),_.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),_.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 _.globalEval(t),t}}}),_.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),_.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(r,i){e=_(" \ No newline at end of file +