diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..e6ee433 --- /dev/null +++ b/.babelrc @@ -0,0 +1,9 @@ +{ + "presets": [ + ["env", { + "targets": { + "browsers": ["last 2 versions", "ie >= 9"] + } + }] + ] +} diff --git a/.editorconfig b/.editorconfig index 0f09989..c6c8b36 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,3 @@ -# editorconfig.org root = true [*] diff --git a/.eslintrc b/.eslintrc index 885e472..54b9129 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,181 +1,14 @@ { + "extends": "airbnb-base", "env": { - "browser": true, - "node": true + "browser": true }, - - "globals": { - "jQuery": true - }, - - "ecmaFeatures": { - "arrowFunctions": true, - "destructuring": true, - "classes": true, - "defaultParams": true, - "blockBindings": true, - "modules": true, - "objectLiteralComputedProperties": true, - "objectLiteralShorthandMethods": true, - "objectLiteralShorthandProperties": true, - "restParams": true, - "spread": true, - "templateStrings": true - }, - + "plugins": [ + "html" + ], "rules": { - "accessor-pairs": 2, - "array-bracket-spacing": 0, - "block-scoped-var": 0, - "brace-style": [2, "1tbs", { "allowSingleLine": true }], - "camelcase": 0, - "comma-dangle": [2, "never"], - "comma-spacing": [2, { "before": false, "after": true }], - "comma-style": [2, "last"], - "complexity": 0, - "computed-property-spacing": 0, - "consistent-return": 0, - "consistent-this": 0, - "constructor-super": 2, - "curly": [2, "multi-line"], - "default-case": 0, - "dot-location": [2, "property"], - "dot-notation": 0, - "eol-last": 2, - "eqeqeq": [2, "allow-null"], - "func-names": 0, - "func-style": 0, - "generator-star-spacing": [2, { "before": true, "after": true }], - "guard-for-in": 0, - "handle-callback-err": [2, "^(err|error)$" ], - "indent": [2, 2, { "SwitchCase": 1 }], - "key-spacing": [2, { "beforeColon": false, "afterColon": true }], - "linebreak-style": 0, - "lines-around-comment": 0, - "max-nested-callbacks": 0, - "new-cap": [2, { "newIsCap": true, "capIsNew": false }], - "new-parens": 2, - "newline-after-var": 0, "no-alert": 0, - "no-array-constructor": 2, - "no-caller": 2, - "no-catch-shadow": 0, - "no-cond-assign": 2, - "no-console": 0, - "no-constant-condition": 0, - "no-continue": 0, - "no-control-regex": 2, - "no-debugger": 2, - "no-delete-var": 2, - "no-div-regex": 0, - "no-dupe-args": 2, - "no-dupe-keys": 2, - "no-duplicate-case": 2, - "no-else-return": 0, - "no-empty": 0, - "no-empty-character-class": 2, - "no-empty-label": 2, - "no-eq-null": 0, - "no-eval": 2, - "no-ex-assign": 2, - "no-extend-native": 2, - "no-extra-bind": 2, - "no-extra-boolean-cast": 2, - "no-extra-parens": 0, - "no-extra-semi": 0, - "no-fallthrough": 2, - "no-floating-decimal": 2, - "no-func-assign": 2, - "no-implied-eval": 2, - "no-inline-comments": 0, - "no-inner-declarations": [2, "functions"], - "no-invalid-regexp": 2, - "no-irregular-whitespace": 2, - "no-iterator": 2, - "no-label-var": 2, - "no-labels": 2, - "no-lone-blocks": 2, - "no-lonely-if": 0, - "no-loop-func": 0, - "no-mixed-requires": 0, - "no-mixed-spaces-and-tabs": 2, - "no-multi-spaces": 2, - "no-multi-str": 2, - "no-multiple-empty-lines": [2, { "max": 1 }], - "no-native-reassign": 2, - "no-negated-in-lhs": 2, - "no-nested-ternary": 0, - "no-new": 2, - "no-new-func": 0, - "no-new-object": 2, - "no-new-require": 2, - "no-new-wrappers": 2, - "no-obj-calls": 2, - "no-octal": 2, - "no-octal-escape": 2, - "no-param-reassign": 0, - "no-path-concat": 0, - "no-process-env": 0, - "no-process-exit": 0, - "no-proto": 0, - "no-redeclare": 2, - "no-regex-spaces": 2, - "no-restricted-modules": 0, - "no-return-assign": 2, - "no-script-url": 0, - "no-self-compare": 2, - "no-sequences": 2, - "no-shadow": 0, - "no-shadow-restricted-names": 2, - "no-spaced-func": 2, - "no-sparse-arrays": 2, - "no-sync": 0, - "no-ternary": 0, - "no-this-before-super": 2, - "no-throw-literal": 2, - "no-trailing-spaces": 2, - "no-undef": 2, - "no-undef-init": 2, - "no-undefined": 0, - "no-underscore-dangle": 0, - "no-unexpected-multiline": 2, - "no-unneeded-ternary": 2, - "no-unreachable": 2, - "no-unused-expressions": 0, - "no-unused-vars": [2, { "vars": "all", "args": "none" }], - "no-use-before-define": 0, - "no-var": 0, - "no-void": 0, - "no-warning-comments": 0, - "no-with": 2, - "object-curly-spacing": 0, - "object-shorthand": 0, - "one-var": [2, { "initialized": "never" }], - "operator-assignment": 0, - "operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }], - "padded-blocks": 0, - "prefer-const": 0, - "quote-props": 0, - "quotes": [2, "single", "avoid-escape"], - "radix": 2, - "semi": [2, "always"], - "semi-spacing": 0, - "sort-vars": 0, - "space-after-keywords": [2, "always"], - "space-before-blocks": [2, "always"], - "space-before-function-paren": [2, "always"], - "space-in-parens": [2, "never"], - "space-infix-ops": 2, - "space-return-throw-case": 2, - "space-unary-ops": [2, { "words": true, "nonwords": false }], - "spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!"] }], - "strict": 0, - "use-isnan": 2, - "valid-jsdoc": 0, - "valid-typeof": 2, - "vars-on-top": 0, - "wrap-iife": [2, "any"], - "wrap-regex": 0, - "yoda": [2, "never"] + "no-new": 0, + "no-param-reassign": 0 } } diff --git a/.gitattributes b/.gitattributes index cf911c1..8d1ca42 100644 --- a/.gitattributes +++ b/.gitattributes @@ -14,4 +14,5 @@ *.md text eol=lf *.sh text eol=lf *.txt text eol=lf +*.vue text eol=lf *.xml text eol=lf diff --git a/.gitignore b/.gitignore index be21597..a699e92 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Project node_modules -/_* +npm-debug.log +*.map # Windows image file caches Thumbs.db diff --git a/CHANGELOG.md b/CHANGELOG.md index 77056c2..d8fa1d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog +## 1.1.0 (May 14, 2017) + +- Upgrade to Cropper.js v1.0+ and Vue.js v2.0+. + + ## 1.0.1 (Jan 2, 2016) - Supports to complete the cropping when dblclick on the crop box. diff --git a/LICENSE b/LICENSE index f759787..689677e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 Fengyuan Chen +Copyright (c) 2016-2017 Fengyuan Chen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 6188110..9ef7678 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > A photo editing application based on the [Cropper.js](https://github.com/fengyuanchen/cropperjs). -- [Homepage](http://fengyuanchen.github.io/photo-editor) +- [Website](http://fengyuanchen.github.io/photo-editor) @@ -28,11 +28,12 @@ ## Browser support -- Chrome (latest 2) -- Firefox (latest 2) +- Chrome (latest) +- Firefox (latest) +- Safari (latest) +- Opera (latest) +- Edge (latest) - Internet Explorer 9+ -- Opera (latest 2) -- Safari (latest 2) diff --git a/css/cropper.min.css b/css/cropper.min.css deleted file mode 100644 index 0bea9db..0000000 --- a/css/cropper.min.css +++ /dev/null @@ -1,9 +0,0 @@ -/*! - * Cropper.js v0.5.5 - * https://github.com/fengyuanchen/cropperjs - * - * Copyright (c) 2015-2016 Fengyuan Chen - * Released under the MIT license - * - * Date: 2016-01-01T08:10:03.671Z - */.cropper-container{font-size:0;line-height:0;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;direction:ltr!important;-ms-touch-action:none;touch-action:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.cropper-container img{display:block;width:100%;min-width:0!important;max-width:none!important;height:100%;min-height:0!important;max-height:none!important;image-orientation:0deg!important}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{position:absolute;top:0;right:0;bottom:0;left:0}.cropper-wrap-box{overflow:hidden}.cropper-drag-box{opacity:0;background-color:#fff;filter:alpha(opacity=0)}.cropper-dashed,.cropper-modal{opacity:.5;filter:alpha(opacity=50)}.cropper-modal{background-color:#000}.cropper-view-box{display:block;overflow:hidden;width:100%;height:100%;outline:#39f solid 1px;outline-color:rgba(51,153,255,.75)}.cropper-dashed{position:absolute;display:block;border:0 dashed #eee}.cropper-dashed.dashed-h{top:33.33333%;left:0;width:100%;height:33.33333%;border-top-width:1px;border-bottom-width:1px}.cropper-dashed.dashed-v{top:0;left:33.33333%;width:33.33333%;height:100%;border-right-width:1px;border-left-width:1px}.cropper-center{position:absolute;top:50%;left:50%;display:block;width:0;height:0;opacity:.75;filter:alpha(opacity=75)}.cropper-center:after,.cropper-center:before{position:absolute;display:block;content:' ';background-color:#eee}.cropper-center:before{top:0;left:-3px;width:7px;height:1px}.cropper-center:after{top:-3px;left:0;width:1px;height:7px}.cropper-face,.cropper-line,.cropper-point{position:absolute;display:block;width:100%;height:100%;opacity:.1;filter:alpha(opacity=10)}.cropper-face{top:0;left:0;background-color:#fff}.cropper-line,.cropper-point{background-color:#39f}.cropper-line.line-e{top:0;right:-3px;width:5px;cursor:e-resize}.cropper-line.line-n{top:-3px;left:0;height:5px;cursor:n-resize}.cropper-line.line-w{top:0;left:-3px;width:5px;cursor:w-resize}.cropper-line.line-s{bottom:-3px;left:0;height:5px;cursor:s-resize}.cropper-point{width:5px;height:5px;opacity:.75;filter:alpha(opacity=75)}.cropper-point.point-e{top:50%;right:-3px;margin-top:-3px;cursor:e-resize}.cropper-point.point-n{top:-3px;left:50%;margin-left:-3px;cursor:n-resize}.cropper-point.point-w{top:50%;left:-3px;margin-top:-3px;cursor:w-resize}.cropper-point.point-s{bottom:-3px;left:50%;margin-left:-3px;cursor:s-resize}.cropper-point.point-ne{top:-3px;right:-3px;cursor:ne-resize}.cropper-point.point-nw{top:-3px;left:-3px;cursor:nw-resize}.cropper-point.point-sw{bottom:-3px;left:-3px;cursor:sw-resize}.cropper-point.point-se{right:-3px;bottom:-3px;width:20px;height:20px;cursor:se-resize;opacity:1;filter:alpha(opacity=100)}.cropper-point.point-se:before{position:absolute;right:-50%;bottom:-50%;display:block;width:200%;height:200%;content:' ';opacity:0;background-color:#39f;filter:alpha(opacity=0)}@media (min-width:768px){.cropper-point.point-se{width:15px;height:15px}}@media (min-width:992px){.cropper-point.point-se{width:10px;height:10px}}@media (min-width:1200px){.cropper-point.point-se{width:5px;height:5px;opacity:.75;filter:alpha(opacity=75)}}.cropper-invisible{opacity:0;filter:alpha(opacity=0)}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{position:absolute;display:block;width:0;height:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed} \ No newline at end of file diff --git a/css/font-awesome.min.css b/css/font-awesome.min.css deleted file mode 100644 index d0603cb..0000000 --- a/css/font-awesome.min.css +++ /dev/null @@ -1,4 +0,0 @@ -/*! - * Font Awesome 4.5.0 by @davegandy - http://fontawesome.io - @fontawesome - * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) - */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.5.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.5.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.5.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.5.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.5.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.5.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"} diff --git a/css/main.css b/css/main.css deleted file mode 100644 index 036c448..0000000 --- a/css/main.css +++ /dev/null @@ -1 +0,0 @@ -.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only--focusable:active,.sr-only--focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}body{margin:0;color:#333;font-family:"Helvetica","Arial",sans-serif;font-size:14px;font-weight:400;line-height:20px}.header{position:relative;z-index:1;height:48px;padding-left:16px;padding-right:16px;background-color:#666}@media (min-width: 768px){.header{padding-left:24px;padding-right:24px}}.title{float:left;display:block;font-size:18px;line-height:48px;color:#fff}.main{position:absolute;top:48px;right:0;bottom:0;left:0;background-color:#333}.main>img{display:table-cell;max-width:100%;vertical-align:middle}.footer{position:absolute;right:0;bottom:0;left:0;height:0}.menu{float:right}.menu__button{float:left;display:block;width:48px;height:48px;border-width:0;font-size:16px;line-height:48px;text-align:center;background-color:transparent;color:#fff;cursor:pointer}.menu__button:focus{outline:none}.menu__button:hover{background-color:#0074d9;color:#fff}.menu__button--success:hover{background-color:#2ecc40}.menu__button--danger:hover{background-color:#ff4136}.toolbar{position:absolute;left:50%;bottom:16px;z-index:2015;width:256px;height:32px;margin-left:-128px;background-color:rgba(0,0,0,0.5);color:#fff}.toolbar__button{float:left;display:block;width:32px;height:32px;border-width:0;font-size:14px;text-align:center;background-color:transparent;color:#fff;cursor:pointer}.toolbar__button:focus{outline:none}.toolbar__button:hover{background-color:#0074d9;color:#fff}.upload{display:table;width:100%;height:100%;overflow:hidden}.upload>p{display:table-cell;color:#999;text-align:center;vertical-align:middle}.browse{margin-left:4px;color:#0074d9;cursor:pointer}.browse:hover{color:#0d8eff;text-decoration:underline}.canvas{width:100%;height:100%}.editor{height:100%;overflow:hidden}.editor>img{display:block;max-width:100%;max-height:100%;margin:auto;vertical-align:middle} diff --git a/dist/app.js b/dist/app.js new file mode 100644 index 0000000..625f143 --- /dev/null +++ b/dist/app.js @@ -0,0 +1,20 @@ +!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="dist/",e(e.s=131)}([function(t,e,n){var r=n(2),o=n(24),i=n(12),a=n(13),c=n(25),f=function(t,e,n){var s,u,l,p,d=t&f.F,h=t&f.G,v=t&f.S,b=t&f.P,m=t&f.B,g=h?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,y=h?o:o[e]||(o[e]={}),w=y.prototype||(y.prototype={});h&&(n=e);for(s in n)u=!d&&g&&void 0!==g[s],l=(u?g:n)[s],p=m&&u?c(l,r):b&&"function"==typeof l?c(Function.call,l):l,g&&a(g,s,l,t&f.U),y[s]!=l&&i(y,s,p),b&&w[s]!=l&&(w[s]=l)};r.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},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){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(59)("wks"),o=n(40),i=n(2).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){t.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),o=n(100),i=n(23),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)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(30),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(19);t.exports=function(t){return Object(r(t))}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(7),o=n(29);t.exports=n(6)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(2),o=n(12),i=n(10),a=n(40)("src"),c=Function.toString,f=(""+c).split("toString");n(24).inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:f.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||c.call(this)})},function(t,e,n){var r=n(0),o=n(3),i=n(19),a=function(t,e,n,r){var o=String(i(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(r).replace(/"/g,""")+'"'),a+">"+o+""};t.exports=function(t,e){var n={};n[t]=e(a),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){var r=n(47),o=n(19);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(48),o=n(29),i=n(15),a=n(23),c=n(10),f=n(100),s=Object.getOwnPropertyDescriptor;e.f=n(6)?s:function(t,e){if(t=i(t),e=a(e,!0),f)try{return s(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(10),o=n(9),i=n(78)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(3);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(25),o=n(47),i=n(9),a=n(8),c=n(136);t.exports=function(t,e){var n=1==t,f=2==t,s=3==t,u=4==t,l=6==t,p=5==t||l,d=e||c;return function(e,c,h){for(var v,b,m=i(e),g=o(m),y=r(c,h,3),w=a(g.length),_=0,F=n?d(e,w):f?d(e,0):void 0;w>_;_++)if((p||_ in g)&&(v=g[_],b=y(v,_,m),t))if(n)F[_]=b;else if(b)switch(t){case 3:return!0;case 5:return v;case 6:return _;case 2:F.push(v)}else if(u)return!1;return l?-1:s||u?u:F}}},function(t,e,n){var r=n(0),o=n(24),i=n(3);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(11);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(116),o=n(0),i=n(59)("metadata"),a=i.store||(i.store=new(n(119))),c=function(t,e,n){var o=a.get(t);if(!o){if(!n)return;a.set(t,o=new r)}var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}return i},f=function(t,e,n){var r=c(e,n,!1);return void 0!==r&&r.has(t)},s=function(t,e,n){var r=c(e,n,!1);return void 0===r?void 0:r.get(t)},u=function(t,e,n,r){c(n,r,!0).set(t,e)},l=function(t,e){var n=c(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},p=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},d=function(t){o(o.S,"Reflect",t)};t.exports={store:a,map:c,has:f,get:s,set:u,keys:l,key:p,exp:d}},function(t,e,n){"use strict";if(n(6)){var r=n(33),o=n(2),i=n(3),a=n(0),c=n(60),f=n(85),s=n(25),u=n(32),l=n(29),p=n(12),d=n(37),h=n(30),v=n(8),b=n(39),m=n(23),g=n(10),y=n(113),w=n(46),_=n(4),F=n(9),x=n(70),C=n(34),k=n(17),E=n(35).f,A=n(87),S=n(40),O=n(5),D=n(21),M=n(50),j=n(79),T=n(88),B=n(43),$=n(56),N=n(38),I=n(63),P=n(93),L=n(7),R=n(16),z=L.f,U=R.f,W=o.RangeError,q=o.TypeError,H=o.Uint8Array,X=Array.prototype,V=f.ArrayBuffer,Y=f.DataView,G=D(0),K=D(2),J=D(3),Z=D(4),Q=D(5),tt=D(6),et=M(!0),nt=M(!1),rt=T.values,ot=T.keys,it=T.entries,at=X.lastIndexOf,ct=X.reduce,ft=X.reduceRight,st=X.join,ut=X.sort,lt=X.slice,pt=X.toString,dt=X.toLocaleString,ht=O("iterator"),vt=O("toStringTag"),bt=S("typed_constructor"),mt=S("def_constructor"),gt=c.CONSTR,yt=c.TYPED,wt=c.VIEW,_t=D(1,function(t,e){return At(j(t,t[mt]),e)}),Ft=i(function(){return 1===new H(new Uint16Array([1]).buffer)[0]}),xt=!!H&&!!H.prototype.set&&i(function(){new H(1).set({})}),Ct=function(t,e){if(void 0===t)throw q("Wrong length!");var n=+t,r=v(t);if(e&&!y(n,r))throw W("Wrong length!");return r},kt=function(t,e){var n=h(t);if(n<0||n%e)throw W("Wrong offset!");return n},Et=function(t){if(_(t)&&yt in t)return t;throw q(t+" is not a typed array!")},At=function(t,e){if(!(_(t)&&bt in t))throw q("It is not a typed array constructor!");return new t(e)},St=function(t,e){return Ot(j(t,t[mt]),e)},Ot=function(t,e){for(var n=0,r=e.length,o=At(t,r);r>n;)o[n]=e[n++];return o},Dt=function(t,e,n){z(t,e,{get:function(){return this._d[n]}})},Mt=function(t){var e,n,r,o,i,a,c=F(t),f=arguments.length,u=f>1?arguments[1]:void 0,l=void 0!==u,p=A(c);if(void 0!=p&&!x(p)){for(a=p.call(c),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);c=r}for(l&&f>2&&(u=s(u,arguments[2],2)),e=0,n=v(c.length),o=At(this,n);n>e;e++)o[e]=l?u(c[e],e):c[e];return o},jt=function(){for(var t=0,e=arguments.length,n=At(this,e);e>t;)n[t]=arguments[t++];return n},Tt=!!H&&i(function(){dt.call(new H(1))}),Bt=function(){return dt.apply(Tt?lt.call(Et(this)):Et(this),arguments)},$t={copyWithin:function(t,e){return P.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return I.apply(Et(this),arguments)},filter:function(t){return St(this,K(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){G(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return st.apply(Et(this),arguments)},lastIndexOf:function(t){return at.apply(Et(this),arguments)},map:function(t){return _t(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Et(this),arguments)},reduceRight:function(t){return ft.apply(Et(this),arguments)},reverse:function(){for(var t,e=this,n=Et(e).length,r=Math.floor(n/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return ut.call(Et(this),t)},subarray:function(t,e){var n=Et(this),r=n.length,o=b(t,r);return new(j(n,n[mt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:b(e,r))-o))}},Nt=function(t,e){return St(this,lt.call(Et(this),t,e))},It=function(t){Et(this);var e=kt(arguments[1],1),n=this.length,r=F(t),o=v(r.length),i=0;if(o+e>n)throw W("Wrong length!");for(;i255?255:255&r),o.v[h](n*e+o.o,r,Ft)},O=function(t,e){z(t,e,{get:function(){return A(this,e)},set:function(t){return S(this,e,t)},enumerable:!0})};y?(b=n(function(t,n,r,o){u(t,b,s,"_d");var i,a,c,f,l=0,d=0;if(_(n)){if(!(n instanceof V||"ArrayBuffer"==(f=w(n))||"SharedArrayBuffer"==f))return yt in n?Ot(b,n):Mt.call(b,n);i=n,d=kt(r,e);var h=n.byteLength;if(void 0===o){if(h%e)throw W("Wrong length!");if((a=h-d)<0)throw W("Wrong length!")}else if((a=v(o)*e)+d>h)throw W("Wrong length!");c=a/e}else c=Ct(n,!0),a=c*e,i=new V(a);for(p(t,"_d",{b:i,o:d,l:a,e:c,v:new Y(i)});l0?r:n)(t)}},function(t,e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;odocument.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f.prototype[i[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[a]=t):n=f(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(108),o=n(66).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(108),o=n(66);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(13);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(2),o=n(7),i=n(6),a=n(5)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(30),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;void 0==o[r]&&n(12)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(25),o=n(102),i=n(70),a=n(1),c=n(8),f=n(87),s={},u={},e=t.exports=function(t,e,n,l,p){var d,h,v,b,m=p?function(){return t}:f(t),g=r(n,l,e?2:1),y=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(d=c(t.length);d>y;y++)if((b=e?g(a(h=t[y])[0],h[1]):g(t[y]))===s||b===u)return b}else for(v=m.call(t);!(h=v.next()).done;)if((b=o(v,g,h.value,e))===s||b===u)return b};e.BREAK=s,e.RETURN=u},function(t,e){t.exports={}},function(t,e,n){var r=n(7).f,o=n(10),i=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(19),i=n(3),a=n(83),c="["+a+"]",f="​…",s=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),l=function(t,e,n){var o={},c=i(function(){return!!a[t]()||f[t]()!=f}),s=o[t]=c?e(p):a[t];n&&(o[n]=s),r(r.P+r.F*c,"String",o)},p=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(u,"")),t};t.exports=l},function(t,e,n){var r=n(18),o=n(5)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e,n){var r=n(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){function r(t){for(var e=0;en.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],o=0;ou;)if((c=f[u++])!=c)return!0}else for(;s>u;u++)if((t||u in f)&&f[u]===n)return t||u||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(2),o=n(0),i=n(13),a=n(37),c=n(28),f=n(42),s=n(32),u=n(4),l=n(3),p=n(56),d=n(44),h=n(69);t.exports=function(t,e,n,v,b,m){var g=r[t],y=g,w=b?"set":"add",_=y&&y.prototype,F={},x=function(t){var e=_[t];i(_,t,"delete"==t?function(t){return!(m&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof y&&(m||_.forEach&&!l(function(){(new y).entries().next()}))){var C=new y,k=C[w](m?{}:-0,1)!=C,E=l(function(){C.has(1)}),A=p(function(t){new y(t)}),S=!m&&l(function(){for(var t=new y,e=5;e--;)t[w](e,e);return!t.has(-0)});A||(y=e(function(e,n){s(e,y,t);var r=h(new g,e,y);return void 0!=n&&f(n,b,r[w],r),r}),y.prototype=_,_.constructor=y),(E||S)&&(x("delete"),x("has"),b&&x("get")),(S||k)&&x(w),m&&_.clear&&delete _.clear}else y=v.getConstructor(e,t,b,w),a(y.prototype,n),c.NEED=!0;return d(y,t),F[t]=y,o(o.G+o.W+o.F*(y!=g),F),m||v.setStrong(y,t,b),y}},function(t,e,n){"use strict";var r=n(12),o=n(13),i=n(3),a=n(19),c=n(5);t.exports=function(t,e,n){var f=c(t),s=n(a,f,""[t]),u=s[0],l=s[1];i(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,u),r(RegExp.prototype,f,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},function(t,e,n){"use strict";var r=n(1);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(4),o=n(18),i=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){t.exports=n(33)||!n(3)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(2)[t]})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){for(var r,o=n(2),i=n(12),a=n(40),c=a("typed_array"),f=a("view"),s=!(!o.ArrayBuffer||!o.DataView),u=s,l=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=o[p[l++]])?(i(r.prototype,c,!0),i(r.prototype,f,!0)):u=!1;t.exports={ABV:s,CONSTR:u,TYPED:c,VIEW:f}},function(t,e){t.exports=function(t,e,n,r,o){var i,a=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(i=t,a=t.default);var f="function"==typeof a?a.options:a;e&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns),r&&(f._scopeId=r);var s;if(o?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},f._ssrRegister=s):n&&(s=n),s){var u=f.functional,l=u?f.render:f.beforeCreate;u?f.render=function(t,e){return s.call(e),l(t,e)}:f.beforeCreate=l?[].concat(l,s):[s]}return{esModule:i,exports:a,options:f}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){/*! + * Vue.js v2.3.3 + * (c) 2014-2017 Evan You + * Released under the MIT License. + */ +function n(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function o(t){return!0===t}function i(t){return!1===t}function a(t){return"string"==typeof t||"number"==typeof t}function c(t){return null!==t&&"object"==typeof t}function f(t){return"[object Object]"===Yn.call(t)}function s(t){return"[object RegExp]"===Yn.call(t)}function u(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function l(t){var e=parseFloat(t);return isNaN(e)?t:e}function p(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(n,1)}}function h(t,e){return Gn.call(t,e)}function v(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function b(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function m(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function g(t,e){for(var n in e)t[n]=e[n];return t}function y(t){for(var e={},n=0;nXr&&zr[n].id>t.id;)n--;zr.splice(n+1,0,t)}else zr.push(t);qr||(qr=!0,Cr(kt))}}function Dt(t){Gr.clear(),Mt(t,Gr)}function Mt(t,e){var n,r,o=Array.isArray(t);if((o||c(t))&&Object.isExtensible(t)){if(t.__ob__){var i=t.__ob__.dep.id;if(e.has(i))return;e.add(i)}if(o)for(n=t.length;n--;)Mt(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)Mt(t[r[n]],e)}}function jt(t,e,n){Kr.get=function(){return this[e][n]},Kr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Kr)}function Tt(t){t._watchers=[];var e=t.$options;e.props&&Bt(t,e.props),e.methods&&Rt(t,e.methods),e.data?$t(t):T(t._data={},!0),e.computed&&It(t,e.computed),e.watch&&zt(t,e.watch)}function Bt(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[],i=!t.$parent;Mr.shouldConvert=i;for(var a in e)!function(i){o.push(i);var a=H(i,e,n,t);B(r,i,a),i in t||jt(t,"_props",i)}(a);Mr.shouldConvert=!0}function $t(t){var e=t.$options.data;e=t._data="function"==typeof e?Nt(e,t):e||{},f(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,o=n.length;o--;)r&&h(r,n[o])||C(n[o])||jt(t,"_data",n[o]);T(e,!0)}function Nt(t,e){try{return t.call(e)}catch(t){return A(t,e,"data()"),{}}}function It(t,e){var n=t._computedWatchers=Object.create(null);for(var r in e){var o=e[r],i="function"==typeof o?o:o.get;n[r]=new Yr(t,i,w,Jr),r in t||Pt(t,r,o)}}function Pt(t,e,n){"function"==typeof n?(Kr.get=Lt(e),Kr.set=w):(Kr.get=n.get?!1!==n.cache?Lt(e):n.get:w,Kr.set=n.set?n.set:w),Object.defineProperty(t,e,Kr)}function Lt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Er.target&&e.depend(),e.value}}function Rt(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?w:b(e[n],t)}function zt(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o=0||n.indexOf(t[o])<0)&&r.push(t[o]);return r}return t}function be(t){this._init(t)}function me(t){t.use=function(t){if(t.installed)return this;var e=m(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):"function"==typeof t&&t.apply(null,e),t.installed=!0,this}}function ge(t){t.mixin=function(t){return this.options=W(this.options,t),this}}function ye(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||n.options.name,a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=W(n.options,t),a.super=n,a.options.props&&we(a),a.options.computed&&_e(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,nr.forEach(function(t){a[t]=n[t]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=g({},a.options),o[r]=a,a}}function we(t){var e=t.options.props;for(var n in e)jt(t.prototype,"_props",n)}function _e(t){var e=t.options.computed;for(var n in e)Pt(t.prototype,n,e[n])}function Fe(t){nr.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&f(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function xe(t){return t&&(t.Ctor.options.name||t.tag)}function Ce(t,e){return"string"==typeof t?t.split(",").indexOf(e)>-1:!!s(t)&&t.test(e)}function ke(t,e,n){for(var r in t){var o=t[r];if(o){var i=xe(o.componentOptions);i&&!n(i)&&(o!==e&&Ee(o),t[r]=null)}}}function Ee(t){t&&t.componentInstance.$destroy()}function Ae(t){for(var e=t.data,n=t,o=t;r(o.componentInstance);)o=o.componentInstance._vnode,o.data&&(e=Se(o.data,e));for(;r(n=n.parent);)n.data&&(e=Se(e,n.data));return Oe(e)}function Se(t,e){return{staticClass:De(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Oe(t){var e=t.class,n=t.staticClass;return r(n)||r(e)?De(n,Me(e)):""}function De(t,e){return t?e?t+" "+e:t:e||""}function Me(t){if(n(t))return"";if("string"==typeof t)return t;var e="";if(Array.isArray(t)){for(var o,i=0,a=t.length;i-1?Fo[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Fo[t]=/HTMLUnknownElement/.test(e.toString())}function Be(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function $e(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Ne(t,e){return document.createElementNS(go[t],e)}function Ie(t){return document.createTextNode(t)}function Pe(t){return document.createComment(t)}function Le(t,e,n){t.insertBefore(e,n)}function Re(t,e){t.removeChild(e)}function ze(t,e){t.appendChild(e)}function Ue(t){return t.parentNode}function We(t){return t.nextSibling}function qe(t){return t.tagName}function He(t,e){t.textContent=e}function Xe(t,e,n){t.setAttribute(e,n)}function Ve(t,e){var n=t.data.ref;if(n){var r=t.context,o=t.componentInstance||t.elm,i=r.$refs;e?Array.isArray(i[n])?d(i[n],o):i[n]===o&&(i[n]=void 0):t.data.refInFor?Array.isArray(i[n])&&i[n].indexOf(o)<0?i[n].push(o):i[n]=[o]:i[n]=o}}function Ye(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&Ge(t,e)}function Ge(t,e){if("input"!==t.tag)return!0;var n;return(r(n=t.data)&&r(n=n.attrs)&&n.type)===(r(n=e.data)&&r(n=n.attrs)&&n.type)}function Ke(t,e,n){var o,i,a={};for(o=e;o<=n;++o)i=t[o].key,r(i)&&(a[i]=o);return a}function Je(t,e){(t.data.directives||e.data.directives)&&Ze(t,e)}function Ze(t,e){var n,r,o,i=t===ko,a=e===ko,c=Qe(t.data.directives,t.context),f=Qe(e.data.directives,e.context),s=[],u=[];for(n in f)r=c[n],o=f[n],r?(o.oldValue=r.value,en(o,"update",e,t),o.def&&o.def.componentUpdated&&u.push(o)):(en(o,"bind",e,t),o.def&&o.def.inserted&&s.push(o));if(s.length){var l=function(){for(var n=0;n-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function yn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function wn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&g(e,Wo(t.name||"v")),g(e,t),e}return"string"==typeof t?Wo(t):void 0}}function _n(t){Jo(function(){Jo(t)})}function Fn(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),gn(t,e)}function xn(t,e){t._transitionClasses&&d(t._transitionClasses,e),yn(t,e)}function Cn(t,e,n){var r=kn(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var c=o===Ho?Yo:Ko,f=0,s=function(){t.removeEventListener(c,u),n()},u=function(e){e.target===t&&++f>=a&&s()};setTimeout(function(){f0&&(n=Ho,u=a,l=i.length):e===Xo?s>0&&(n=Xo,u=s,l=f.length):(u=Math.max(a,s),n=u>0?a>s?Ho:Xo:null,l=n?n===Ho?i.length:f.length:0),{type:n,timeout:u,propCount:l,hasTransform:n===Ho&&Zo.test(r[Vo+"Property"])}}function En(t,e){for(;t.length1}function jn(t,e){!0!==e.data.show&&Sn(e)}function Tn(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,c=0,f=t.options.length;c-1,a.selected!==i&&(a.selected=i);else if(_($n(a),r))return void(t.selectedIndex!==c&&(t.selectedIndex=c));o||(t.selectedIndex=-1)}}function Bn(t,e){for(var n=0,r=e.length;n0,dr=ur&&ur.indexOf("edge/")>0,hr=ur&&ur.indexOf("android")>0,vr=ur&&/iphone|ipad|ipod|ios/.test(ur),br=ur&&/chrome\/\d+/.test(ur)&&!dr,mr=!1;if(sr)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){mr=!0}}),window.addEventListener("test-passive",null,gr)}catch(t){}var yr,wr,_r=function(){return void 0===yr&&(yr=!sr&&void 0!==t&&"server"===t.process.env.VUE_ENV),yr},Fr=sr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,xr="undefined"!=typeof Symbol&&S(Symbol)&&"undefined"!=typeof Reflect&&S(Reflect.ownKeys),Cr=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1?m(n):n;for(var r=m(arguments,1),o=0,i=n.length;o1&&(e[n[0].trim()]=n[1].trim())}}),e}),Io=/^--/,Po=/\s*!important$/,Lo=function(t,e,n){if(Io.test(e))t.style.setProperty(e,n);else if(Po.test(n))t.style.setProperty(e,n.replace(Po,""),"important");else{var r=zo(e);if(Array.isArray(n))for(var o=0,i=n.length;oh?(l=n(o[m+1])?null:o[m+1].elm,g(t,l,o,d,m,i)):d>m&&w(t,e,p,h)}function x(t,e,i,a){if(t!==e){if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))return e.elm=t.elm,void(e.componentInstance=t.componentInstance);var c,f=e.data;r(f)&&r(c=f.hook)&&r(c=c.prepatch)&&c(t,e);var s=e.elm=t.elm,u=t.children,l=e.children;if(r(f)&&v(e)){for(c=0;c1?arguments[1]:void 0,n),f=a>2?arguments[2]:void 0,s=void 0===f?n:o(f,n);s>c;)e[c++]=t;return e}},function(t,e,n){"use strict";var r=n(7),o=n(29);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(4),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){t.exports=n(2).document&&document.documentElement},function(t,e,n){var r=n(4),o=n(77).set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){var r=n(43),o=n(5)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(34),o=n(29),i=n(44),a={};n(12)(a,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(33),o=n(0),i=n(13),a=n(12),c=n(10),f=n(43),s=n(72),u=n(44),l=n(17),p=n(5)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,b,m,g){s(n,e,v);var y,w,_,F=function(t){if(!d&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",C="values"==b,k=!1,E=t.prototype,A=E[p]||E["@@iterator"]||b&&E[b],S=A||F(b),O=b?C?F("entries"):S:void 0,D="Array"==e?E.entries||A:A;if(D&&(_=l(D.call(new t)))!==Object.prototype&&(u(_,x,!0),r||c(_,p)||a(_,p,h)),C&&A&&"values"!==A.name&&(k=!0,S=function(){return A.call(this)}),r&&!g||!d&&!k&&E[p]||a(E,p,S),f[e]=S,f[x]=h,b)if(y={values:C?S:F("values"),keys:m?S:F("keys"),entries:O},g)for(w in y)w in E||i(E,w,y[w]);else o(o.P+o.F*(d||k),e,y);return y}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(2),o=n(84).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,c=r.Promise,f="process"==n(18)(a);t.exports=function(){var t,e,n,s=function(){var r,o;for(f&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(f)n=function(){a.nextTick(s)};else if(i){var u=!0,l=document.createTextNode("");new i(s).observe(l,{characterData:!0}),n=function(){l.data=u=!u}}else if(c&&c.resolve){var p=c.resolve();n=function(){p.then(s)}}else n=function(){o.call(r,s)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){var r=n(4),o=n(1),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(25)(Function.call,n(16).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(59)("keys"),o=n(40);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=n(11),i=n(5)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r=n(30),o=n(19);t.exports=function(t){return function(e,n){var i,a,c=String(o(e)),f=r(n),s=c.length;return f<0||f>=s?t?"":void 0:(i=c.charCodeAt(f),i<55296||i>56319||f+1===s||(a=c.charCodeAt(f+1))<56320||a>57343?t?c.charAt(f):i:t?c.slice(f,f+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(55),o=n(19);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){"use strict";var r=n(30),o=n(19);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r,o,i,a=n(25),c=n(54),f=n(68),s=n(65),u=n(2),l=u.process,p=u.setImmediate,d=u.clearImmediate,h=u.MessageChannel,v=0,b={},m=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},g=function(t){m.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++v]=function(){c("function"==typeof t?t:Function(t),e)},r(v),v},d=function(t){delete b[t]},"process"==n(18)(l)?r=function(t){l.nextTick(a(m,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=g,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",g,!1)):r="onreadystatechange"in s("script")?function(t){f.appendChild(s("script")).onreadystatechange=function(){f.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:p,clear:d}},function(t,e,n){"use strict";var r=n(2),o=n(6),i=n(33),a=n(60),c=n(12),f=n(37),s=n(3),u=n(32),l=n(30),p=n(8),d=n(35).f,h=n(7).f,v=n(63),b=n(44),m=r.ArrayBuffer,g=r.DataView,y=r.Math,w=r.RangeError,_=r.Infinity,F=m,x=y.abs,C=y.pow,k=y.floor,E=y.log,A=y.LN2,S=o?"_b":"buffer",O=o?"_l":"byteLength",D=o?"_o":"byteOffset",M=function(t,e,n){var r,o,i,a=Array(n),c=8*n-e-1,f=(1<>1,u=23===e?C(2,-24)-C(2,-77):0,l=0,p=t<0||0===t&&1/t<0?1:0;for(t=x(t),t!=t||t===_?(o=t!=t?1:0,r=f):(r=k(E(t)/A),t*(i=C(2,-r))<1&&(r--,i*=2),t+=r+s>=1?u/i:u*C(2,1-s),t*i>=2&&(r++,i/=2),r+s>=f?(o=0,r=f):r+s>=1?(o=(t*i-1)*C(2,e),r+=s):(o=t*C(2,s-1)*C(2,e),r=0));e>=8;a[l++]=255&o,o/=256,e-=8);for(r=r<0;a[l++]=255&r,r/=256,c-=8);return a[--l]|=128*p,a},j=function(t,e,n){var r,o=8*n-e-1,i=(1<>1,c=o-7,f=n-1,s=t[f--],u=127&s;for(s>>=7;c>0;u=256*u+t[f],f--,c-=8);for(r=u&(1<<-c)-1,u>>=-c,c+=e;c>0;r=256*r+t[f],f--,c-=8);if(0===u)u=1-a;else{if(u===i)return r?NaN:s?-_:_;r+=C(2,e),u-=a}return(s?-1:1)*r*C(2,u-e)},T=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},B=function(t){return[255&t]},$=function(t){return[255&t,t>>8&255]},N=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},I=function(t){return M(t,52,8)},P=function(t){return M(t,23,4)},L=function(t,e,n){h(t.prototype,e,{get:function(){return this[n]}})},R=function(t,e,n,r){var o=+n,i=l(o);if(o!=i||i<0||i+e>t[O])throw w("Wrong index!");var a=t[S]._b,c=i+t[D],f=a.slice(c,c+e);return r?f:f.reverse()},z=function(t,e,n,r,o,i){var a=+n,c=l(a);if(a!=c||c<0||c+e>t[O])throw w("Wrong index!");for(var f=t[S]._b,s=c+t[D],u=r(+o),p=0;pX;)(W=H[X++])in m||c(m,W,F[W]);i||(q.constructor=m)}var V=new g(new m(2)),Y=g.prototype.setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||f(g.prototype,{setInt8:function(t,e){Y.call(this,t,e<<24>>24)},setUint8:function(t,e){Y.call(this,t,e<<24>>24)}},!0)}else m=function(t){var e=U(this,t);this._b=v.call(Array(e),0),this[O]=e},g=function(t,e,n){u(this,g,"DataView"),u(t,m,"DataView");var r=t[O],o=l(e);if(o<0||o>r)throw w("Wrong offset!");if(n=void 0===n?r-o:p(n),o+n>r)throw w("Wrong length!");this[S]=t,this[D]=o,this[O]=n},o&&(L(m,"byteLength","_l"),L(g,"buffer","_b"),L(g,"byteLength","_l"),L(g,"byteOffset","_o")),f(g.prototype,{getInt8:function(t){return R(this,1,t)[0]<<24>>24},getUint8:function(t){return R(this,1,t)[0]},getInt16:function(t){var e=R(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=R(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return T(R(this,4,t,arguments[1]))},getUint32:function(t){return T(R(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return j(R(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return j(R(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){z(this,1,t,B,e)},setUint8:function(t,e){z(this,1,t,B,e)},setInt16:function(t,e){z(this,2,t,$,e,arguments[2])},setUint16:function(t,e){z(this,2,t,$,e,arguments[2])},setInt32:function(t,e){z(this,4,t,N,e,arguments[2])},setUint32:function(t,e){z(this,4,t,N,e,arguments[2])},setFloat32:function(t,e){z(this,4,t,P,e,arguments[2])},setFloat64:function(t,e){z(this,8,t,I,e,arguments[2])}});b(m,"ArrayBuffer"),b(g,"DataView"),c(g.prototype,a.VIEW,!0),e.ArrayBuffer=m,e.DataView=g},function(t,e,n){var r=n(2),o=n(24),i=n(33),a=n(115),c=n(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(46),o=n(5)("iterator"),i=n(43);t.exports=n(24).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(41),o=n(103),i=n(43),a=n(15);t.exports=n(73)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){function r(t,e){for(var n=0;n=0&&y.splice(e,1)}function c(t){var e=document.createElement("style");return t.attrs.type="text/css",s(e,t.attrs),i(t,e),e}function f(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",s(e,t.attrs),i(t,e),e}function s(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function u(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var s=g++;n=m||(m=c(e)),r=l.bind(null,n,s,!1),o=l.bind(null,n,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=f(e),r=d.bind(null,n,e),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=c(e),r=p.bind(null,n),o=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function l(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=_(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function p(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function d(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=w(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),c=t.href;t.href=URL.createObjectURL(a),c&&URL.revokeObjectURL(c)}var h={},v=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),b=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),m=null,g=0,y=[],w=n(331);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},void 0===e.singleton&&(e.singleton=v()),void 0===e.insertInto&&(e.insertInto="head"),void 0===e.insertAt&&(e.insertAt="bottom");var n=o(t,e);return r(n,e),function(t){for(var i=[],a=0;a2?arguments[2]:void 0,u=Math.min((void 0===s?a:o(s,a))-f,a-c),l=1;for(f0;)f in n?n[c]=n[f]:delete n[c],c+=l,f+=l;return n}},function(t,e,n){var r=n(42);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(11),o=n(9),i=n(47),a=n(8);t.exports=function(t,e,n,c,f){r(e);var s=o(t),u=i(s),l=a(s.length),p=f?l-1:0,d=f?-1:1;if(n<2)for(;;){if(p in u){c=u[p],p+=d;break}if(p+=d,f?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;f?p>=0:l>p;p+=d)p in u&&(c=e(c,u[p],p,s));return c}},function(t,e,n){"use strict";var r=n(11),o=n(4),i=n(54),a=[].slice,c={},f=function(t,e,n){if(!(e in c)){for(var r=[],o=0;o1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!b(this,t)}}),d&&r(l.prototype,"size",{get:function(){return f(this[v])}}),l},def:function(t,e,n){var r,o,i=b(t,e);return i?i.v=n:(t._l=i={i:o=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:b,setStrong:function(t,e,n){u(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?l(0,n.k):"values"==e?l(0,n.v):l(0,[n.k,n.v]):(t._t=void 0,l(1))},n?"entries":"values",!n,!0),p(e)}}},function(t,e,n){var r=n(46),o=n(94);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,e,n){"use strict";var r=n(37),o=n(28).getWeak,i=n(1),a=n(4),c=n(32),f=n(42),s=n(21),u=n(10),l=s(5),p=s(6),d=0,h=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},b=function(t,e){return l(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var s=t(function(t,r){c(t,s,e,"_i"),t._i=d++,t._l=void 0,void 0!=r&&f(r,n,t[i],t)});return r(s.prototype,{delete:function(t){if(!a(t))return!1;var e=o(t);return!0===e?h(this).delete(t):e&&u(e,this._i)&&delete e[this._i]},has:function(t){if(!a(t))return!1;var e=o(t);return!0===e?h(this).has(t):e&&u(e,this._i)}}),s},def:function(t,e,n){var r=o(i(e),!0);return!0===r?h(t).set(e,n):r[t._i]=n,t},ufstore:h}},function(t,e,n){t.exports=!n(6)&&!n(3)(function(){return 7!=Object.defineProperty(n(65)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e,n){var r=n(1);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(36),o=n(58),i=n(48),a=n(9),c=n(47),f=Object.assign;t.exports=!f||n(3)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||Object.keys(f({},e)).join("")!=r})?function(t,e){for(var n=a(t),f=arguments.length,s=1,u=o.f,l=i.f;f>s;)for(var p,d=c(arguments[s++]),h=u?r(d).concat(u(d)):r(d),v=h.length,b=0;v>b;)l.call(d,p=h[b++])&&(n[p]=d[p]);return n}:f},function(t,e,n){var r=n(7),o=n(1),i=n(36);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),c=a.length,f=0;c>f;)r.f(t,n=a[f++],e[n]);return t}},function(t,e,n){var r=n(15),o=n(35).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,e,n){var r=n(10),o=n(15),i=n(50)(!1),a=n(78)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,s=[];for(n in c)n!=a&&r(c,n)&&s.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(36),o=n(15),i=n(48).f;t.exports=function(t){return function(e){for(var n,a=o(e),c=r(a),f=c.length,s=0,u=[];f>s;)i.call(a,n=c[s++])&&u.push(t?[n,a[n]]:a[n]);return u}}},function(t,e,n){var r=n(35),o=n(58),i=n(1),a=n(2).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(2).parseFloat,o=n(45).trim;t.exports=1/r(n(83)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(2).parseInt,o=n(45).trim,i=n(83),a=/^[\-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(8),o=n(82),i=n(19);t.exports=function(t,e,n,a){var c=String(i(t)),f=c.length,s=void 0===n?" ":String(n),u=r(e);if(u<=f||""==s)return c;var l=u-f,p=o.call(s,Math.ceil(l/s.length));return p.length>l&&(p=p.slice(0,l)),a?p+c:c+p}},function(t,e,n){e.f=n(5)},function(t,e,n){"use strict";var r=n(97);t.exports=n(51)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(this,t);return e&&e.v},set:function(t,e){return r.def(this,0===t?0:t,e)}},r,!0)},function(t,e,n){n(6)&&"g"!=/./g.flags&&n(7).f(RegExp.prototype,"flags",{configurable:!0,get:n(53)})},function(t,e,n){"use strict";var r=n(97);t.exports=n(51)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(21)(0),i=n(13),a=n(28),c=n(105),f=n(99),s=n(4),u=a.getWeak,l=Object.isExtensible,p=f.ufstore,d={},h=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(t){if(s(t)){var e=u(t);return!0===e?p(this).get(t):e?e[this._i]:void 0}},set:function(t,e){return f.def(this,t,e)}},b=t.exports=n(51)("WeakMap",h,v,f,!0,!0);7!=(new b).set((Object.freeze||Object)(d),7).get(d)&&(r=f.getConstructor(h),c(r.prototype,v),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=b.prototype,n=e[t];i(e,t,function(e,o){if(s(e)&&!l(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)})}))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(62),i=r(o),a=n(332),c=r(a),f=n(333),s=r(f),u=n(334),l=r(u);i.default.component("navbar",l.default),i.default.component("loader",s.default),i.default.component("editor",c.default)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(62),i=r(o),a=n(345),c=r(a),f=n(132),s=r(f),u=n(133),l=r(u);i.default.use(c.default);var p=new c.default.Store({modules:{editor:s.default,loader:l.default}});e.default=p},function(t,e,n){"use strict";(function(t){function e(t,e,n){t[e]||Object[r](t,e,{writable:!0,configurable:!0,value:n})}if(n(314),n(330),n(134),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var r="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,n(90))},function(t,e,n){var r=n(321);"string"==typeof r&&(r=[[t.i,r,""]]);var o={};o.transform=void 0;n(89)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(322);"string"==typeof r&&(r=[[t.i,r,""]]);var o={};o.transform=void 0;n(89)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(323);"string"==typeof r&&(r=[[t.i,r,""]]);var o={};o.transform=void 0;n(89)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){function r(t){n(341),n(342)}var o=n(61)(n(127),n(337),r,"data-v-a3793246",null);t.exports=o.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{change:function(t){switch(t){case"crop":this.$refs.editor.crop();break;case"clear":this.$refs.editor.clear();break;case"restore":this.$refs.editor.restore();break;case"remove":this.$refs.editor.reset()}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(315),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={data:function(){return{cropper:null,canvasData:null,cropBoxData:null,data:null}},computed:{editor:function(){return this.$store.state.editor},loader:function(){return this.$store.state.loader}},mounted:function(){window.addEventListener("keydown",this.onKeydown=this.keydown.bind(this))},beforeDestroy:function(){window.removeEventListener("keydown",this.onKeydown),this.stop()},methods:{click:function(t){var e=t.target,n=this.cropper,r=e.dataset.action||e.parentNode.dataset.action;switch(r){case"move":case"crop":n.setDragMode(r);break;case"zoom-in":n.zoom(.1);break;case"zoom-out":n.zoom(-.1);break;case"rotate-left":n.rotate(-90);break;case"rotate-right":n.rotate(90);break;case"flip-horizontal":n.scaleX(-n.getData().scaleX||-1);break;case"flip-vertical":n.scaleY(-n.getData().scaleY||-1)}},keydown:function(t){switch(t.key){case"z":t.ctrlKey&&(t.preventDefault(),this.restore());break;case"Delete":this.reset()}var e=this.cropper;if(e)switch(t.key){case"Enter":this.crop();break;case"Escape":this.clear();break;case"ArrowLeft":t.preventDefault(),e.move(-1,0);break;case"ArrowUp":t.preventDefault(),e.move(0,-1);break;case"ArrowRight":t.preventDefault(),e.move(1,0);break;case"ArrowDown":t.preventDefault(),e.move(0,1);break;case"c":e.setDragMode("crop");break;case"m":e.setDragMode("move");break;case"i":e.zoom(.1);break;case"o":e.zoom(-.1);break;case"l":e.rotate(-90);break;case"r":e.rotate(90);break;case"h":e.scaleX(-e.getData().scaleX||-1);break;case"v":e.scaleY(-e.getData().scaleY||-1)}},dblclick:function(t){t.target.className.indexOf("cropper-face")>=0&&(t.preventDefault(),t.stopPropagation(),this.crop())},start:function(){var t=this,e=this.editor;e.cropped||(this.cropper=new o.default(this.$refs.image,{autoCrop:!1,dragMode:"move",background:!1,ready:function(){t.data&&(t.cropper.crop().setData(t.data).setCanvasData(t.canvasData).setCropBoxData(t.cropBoxData),t.data=null,t.canvasData=null,t.cropBoxData=null)},crop:function(n){var r=n.detail;r.width>0&&r.height>0&&!e.cropping&&t.$store.dispatch("setEditor",{cropping:!0})}}))},stop:function(){this.cropper&&(this.cropper.destroy(),this.cropper=null,this.$store.dispatch("setEditor",{cropping:!1}))},crop:function(){var t=this.cropper,e=this.loader,n=e.type,r=e.url;this.editor.cropping&&(this.data=t.getData(),this.canvasData=t.getCanvasData(),this.cropBoxData=t.getCropBoxData(),this.data=t.getData(),this.$store.dispatch("setEditor",{cropped:!0,cropping:!1}),this.$store.dispatch("setLoader",{previousUrl:r,url:t.getCroppedCanvas("image/png"===n?null:{fillColor:"#fff"}).toDataURL(n)}),this.stop())},clear:function(){this.editor.cropping&&(this.cropper.clear(),this.$store.dispatch("setEditor",{cropping:!1}))},restore:function(){this.editor.cropped&&(this.$store.dispatch("setEditor",{cropped:!1}),this.$store.dispatch("setLoader",{previousUrl:"",url:this.loader.previousUrl}))},reset:function(){this.stop(),this.$store.dispatch("resetEditor"),this.$store.dispatch("resetLoader")}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{read:function(t){var e=this;return new Promise(function(n,r){if(!t||0===t.length)return void n();var o=t[0];if(/^image\/\w+$/.test(o.type)){var i=new FileReader;i.onload=function(){e.$store.dispatch("setLoader",{loaded:!0,name:o.name,type:o.type,url:i.result}),n()},i.onerror=r,i.onabort=r,i.readAsDataURL(o)}else r("Please choose an image file.")})},change:function(t){var e=this,n=t.target;this.read(n.files).then(function(){n.value=""}).catch(function(t){n.value="",e.alert(t)})},dragover:function(t){t.preventDefault()},drop:function(t){t.preventDefault(),this.read(t.dataTransfer.files).catch(this.alert)},alert:function(t){window.alert(t&&t.message?t.message:t)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{downloadable:void 0!==document.createElement("a").download}},computed:{editor:function(){return this.$store.state.editor},loader:function(){return this.$store.state.loader}},methods:{click:function(t){var e=t.target,n=e.dataset.action||e.parentNode.dataset.action;n&&this.$emit("change",n)}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n(125),n(124),n(123),n(122);var o=n(62),i=r(o),a=n(126),c=r(a),f=n(121),s=r(f);n(120),new i.default({store:s.default,el:"#app",render:function(t){return t(c.default)}})},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var o,i=n(91),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(i),c={cropped:!1,cropping:!1},f=(o={},r(o,a.EDITOR_SET,function(t,e){Object.assign(t,e)}),r(o,a.EDITOR_RESET,function(t){Object.assign(t,c)}),o),s={setEditor:function(t,e){t.commit(a.EDITOR_SET,e)},resetEditor:function(t){t.commit(a.EDITOR_RESET)}},u={};e.default={state:Object.assign({},c),mutations:f,actions:s,getters:u}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var o,i=n(91),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(i),c={loaded:!1,name:"",previousUrl:"",type:"",url:""},f=(o={},r(o,a.LOADER_SET,function(t,e){Object.assign(t,e)}),r(o,a.LOADER_RESET,function(t){Object.assign(t,c)}),o),s={setLoader:function(t,e){t.commit(a.LOADER_SET,e)},resetLoader:function(t){t.commit(a.LOADER_RESET)}},u={};e.default={state:Object.assign({},c),mutations:f,actions:s,getters:u}},function(t,e,n){n(143),t.exports=n(24).RegExp.escape},function(t,e,n){var r=n(4),o=n(71),i=n(5)("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(135);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(1),o=n(23);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(36),o=n(58),i=n(48);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,c=n(t),f=i.f,s=0;c.length>s;)f.call(t,a=c[s++])&&e.push(a);return e}},function(t,e,n){var r=n(36),o=n(15);t.exports=function(t,e){for(var n,i=o(t),a=r(i),c=a.length,f=0;c>f;)if(i[n=a[f++]]===e)return n}},function(t,e,n){"use strict";var r=n(141),o=n(54),i=n(11);t.exports=function(){for(var t=i(this),e=arguments.length,n=Array(e),a=0,c=r._,f=!1;e>a;)(n[a]=arguments[a++])===c&&(f=!0);return function(){var r,i=this,a=arguments.length,s=0,u=0;if(!f&&!a)return o(t,n,i);if(r=n.slice(),f)for(;e>s;s++)r[s]===c&&(r[s]=arguments[u++]);for(;a>u;)r.push(arguments[u++]);return o(t,r,i)}}},function(t,e,n){t.exports=n(2)},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},function(t,e,n){var r=n(0),o=n(142)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return o(t)}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(93)}),n(41)("copyWithin")},function(t,e,n){"use strict";var r=n(0),o=n(21)(4);r(r.P+r.F*!n(20)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(63)}),n(41)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(21)(2);r(r.P+r.F*!n(20)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(21)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(41)(i)},function(t,e,n){"use strict";var r=n(0),o=n(21)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(41)("find")},function(t,e,n){"use strict";var r=n(0),o=n(21)(0),i=n(20)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(25),o=n(0),i=n(9),a=n(102),c=n(70),f=n(8),s=n(64),u=n(87);o(o.S+o.F*!n(56)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),d="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,b=void 0!==v,m=0,g=u(p);if(b&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==g||d==Array&&c(g))for(e=f(p.length),n=new d(e);e>m;m++)s(n,m,b?v(p[m],m):p[m]);else for(l=g.call(p),n=new d;!(o=l.next()).done;m++)s(n,m,b?a(l,v,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(0),o=n(50)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(20)(i)),"Array",{indexOf:function(t){return a?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(71)})},function(t,e,n){"use strict";var r=n(0),o=n(15),i=[].join;r(r.P+r.F*(n(47)!=Object||!n(20)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(15),i=n(30),a=n(8),c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(f||!n(20)(c)),"Array",{lastIndexOf:function(t){if(f)return c.apply(this,arguments)||0;var e=o(this),n=a(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){"use strict";var r=n(0),o=n(21)(1);r(r.P+r.F*!n(20)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(64);r(r.S+r.F*n(3)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(95);r(r.P+r.F*!n(20)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(95);r(r.P+r.F*!n(20)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(68),i=n(18),a=n(39),c=n(8),f=[].slice;r(r.P+r.F*n(3)(function(){o&&f.call(o)}),"Array",{slice:function(t,e){var n=c(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return f.call(this,t,e);for(var o=a(t,n),s=a(e,n),u=c(s-o),l=Array(u),p=0;p9?t:"0"+t};r(r.P+r.F*(o(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!o(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}})},function(t,e,n){"use strict";var r=n(0),o=n(9),i=n(23);r(r.P+r.F*n(3)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(12)(o,r,n(137))},function(t,e,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(13)(r,"toString",function(){var t=i.call(this);return t===t?o.call(this):"Invalid Date"})},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(96)})},function(t,e,n){"use strict";var r=n(4),o=n(17),i=n(5)("hasInstance"),a=Function.prototype;i in a||n(7).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(7).f,o=n(29),i=n(10),a=Function.prototype,c=Object.isExtensible||function(){return!0};"name"in a||n(6)&&r(a,"name",{configurable:!0,get:function(){try{var t=this,e=(""+t).match(/^\s*function ([^ (]*)/)[1];return i(t,"name")||!c(t)||r(t,"name",o(5,e)),e}catch(t){return""}}})},function(t,e,n){var r=n(0),o=n(104),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=n(0),i=Math.asinh;o(o.S+o.F*!(i&&1/i(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(75);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(74);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0),o=n(75),i=Math.pow,a=i(2,-52),c=i(2,-23),f=i(2,127)*(2-c),s=i(2,-126),u=function(t){return t+1/a-1/a};r(r.S,"Math",{fround:function(t){var e,n,r=Math.abs(t),i=o(t);return rf||n!=n?i*(1/0):i*n)}})},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,c=arguments.length,f=0;a0?(r=n/f,i+=r*r):i+=n;return f===1/0?1/0:f*Math.sqrt(i)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(3)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(104)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(75)})},function(t,e,n){var r=n(0),o=n(74),i=Math.exp;r(r.S+r.F*n(3)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(74),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){"use strict";var r=n(2),o=n(10),i=n(18),a=n(69),c=n(23),f=n(3),s=n(35).f,u=n(16).f,l=n(7).f,p=n(45).trim,d=r.Number,h=d,v=d.prototype,b="Number"==i(n(34)(v)),m="trim"in String.prototype,g=function(t){var e=c(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():p(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,f=e.slice(2),s=0,u=f.length;so)return NaN;return parseInt(f,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(b?f(function(){v.valueOf.call(n)}):"Number"!=i(n))?a(new h(g(e)),n,d):g(e)};for(var y,w=n(6)?s(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)o(h,y=w[_])&&!o(d,y)&&l(d,y,u(h,y));d.prototype=v,v.constructor=d,n(13)(r,"Number",d)}},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(2).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(101)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(101),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(111);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(112);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){"use strict";var r=n(0),o=n(30),i=n(92),a=n(82),c=1..toFixed,f=Math.floor,s=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",l=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*s[n],s[n]=r%1e7,r=f(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=s[e],s[e]=f(n/t),n=n%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==s[t]){var n=String(s[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},h=function(t,e,n){return 0===e?n:e%2==1?h(t,e-1,n*t):h(t*t,e/2,n)},v=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(3)(function(){c.call({})})),"Number",{toFixed:function(t){var e,n,r,c,f=i(this,u),s=o(t),b="",m="0";if(s<0||s>20)throw RangeError(u);if(f!=f)return"NaN";if(f<=-1e21||f>=1e21)return String(f);if(f<0&&(b="-",f=-f),f>1e-21)if(e=v(f*h(2,69,1))-69,n=e<0?f*h(2,-e,1):f/h(2,e,1),n*=4503599627370496,(e=52-e)>0){for(l(0,n),r=s;r>=7;)l(1e7,0),r-=7;for(l(h(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<0?(c=m.length,m=b+(c<=s?"0."+a.call("0",s-c)+m:m.slice(0,c-s)+"."+m.slice(c-s))):m=b+m,m}})},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(92),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(105)})},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(6),"Object",{defineProperties:n(106)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(6),"Object",{defineProperty:n(7).f})},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("freeze",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(15),o=n(16).f;n(22)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){n(22)("getOwnPropertyNames",function(){return n(107).f})},function(t,e,n){var r=n(9),o=n(17);n(22)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(4);n(22)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(4);n(22)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(22)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(113)})},function(t,e,n){var r=n(9),o=n(36);n(22)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("preventExtensions",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("seal",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(77).set})},function(t,e,n){"use strict";var r=n(46),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(13)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(0),o=n(111);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){var r=n(0),o=n(112);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){"use strict";var r,o,i,a=n(33),c=n(2),f=n(25),s=n(46),u=n(0),l=n(4),p=n(11),d=n(32),h=n(42),v=n(79),b=n(84).set,m=n(76)(),g=c.TypeError,y=c.process,w=c.Promise,y=c.process,_="process"==s(y),F=function(){},x=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(F,F)};return(_||"function"==typeof PromiseRejectionEvent)&&t.then(F)instanceof e}catch(t){}}(),C=function(t,e){return t===e||t===w&&e===i},k=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},E=function(t){return C(w,t)?new A(t):new o(t)},A=o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw g("Bad Promise constructor");e=t,n=r}),this.resolve=p(e),this.reject=p(n)},S=function(t){try{t()}catch(t){return{error:t}}},O=function(t,e){if(!t._n){t._n=!0;var n=t._c;m(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,a=o?e.ok:e.fail,c=e.resolve,f=e.reject,s=e.domain;try{a?(o||(2==t._h&&j(t),t._h=1),!0===a?n=r:(s&&s.enter(),n=a(r),s&&s.exit()),n===e.promise?f(g("Promise-chain cycle")):(i=k(n))?i.call(n,c,f):c(n)):f(r)}catch(t){f(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&D(t)})}},D=function(t){b.call(c,function(){var e,n,r,o=t._v;if(M(t)&&(e=S(function(){_?y.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=_||M(t)?2:1),t._a=void 0,e)throw e.error})},M=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!M(e.promise))return!1;return!0},j=function(t){b.call(c,function(){var e;_?y.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},T=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},B=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw g("Promise can't be resolved itself");(e=k(t))?m(function(){var r={_w:n,_d:!1};try{e.call(t,f(B,r,1),f(T,r,1))}catch(t){T.call(r,t)}}):(n._v=t,n._s=1,O(n,!1))}catch(t){T.call({_w:n,_d:!1},t)}}};x||(w=function(t){d(this,w,"Promise","_h"),p(t),r.call(this);try{t(f(B,this,1),f(T,this,1))}catch(t){T.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(37)(w.prototype,{then:function(t,e){var n=E(v(this,w));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=_?y.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),A=function(){var t=new r;this.promise=t,this.resolve=f(B,t,1),this.reject=f(T,t,1)}),u(u.G+u.W+u.F*!x,{Promise:w}),n(44)(w,"Promise"),n(38)("Promise"),i=n(24).Promise,u(u.S+u.F*!x,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),u(u.S+u.F*(a||!x),"Promise",{resolve:function(t){if(t instanceof w&&C(t.constructor,this))return t;var e=E(this);return(0,e.resolve)(t),e.promise}}),u(u.S+u.F*!(x&&n(56)(function(t){w.all(t).catch(F)})),"Promise",{all:function(t){var e=this,n=E(e),r=n.resolve,o=n.reject,i=S(function(){var n=[],i=0,a=1;h(t,!1,function(t){var c=i++,f=!1;n.push(void 0),a++,e.resolve(t).then(function(t){f||(f=!0,n[c]=t,--a||r(n))},o)}),--a||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,o=S(function(){h(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e,n){var r=n(0),o=n(11),i=n(1),a=(n(2).Reflect||{}).apply,c=Function.apply;r(r.S+r.F*!n(3)(function(){a(function(){})}),"Reflect",{apply:function(t,e,n){var r=o(t),f=i(n);return a?a(r,e,f):c.call(r,e,f)}})},function(t,e,n){var r=n(0),o=n(34),i=n(11),a=n(1),c=n(4),f=n(3),s=n(96),u=(n(2).Reflect||{}).construct,l=f(function(){function t(){}return!(u(function(){},[],t)instanceof t)}),p=!f(function(){u(function(){})});r(r.S+r.F*(l||p),"Reflect",{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(p&&!l)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(s.apply(t,r))}var f=n.prototype,d=o(c(f)?f:Object.prototype),h=Function.apply.call(t,d,e);return c(h)?h:d}})},function(t,e,n){var r=n(7),o=n(0),i=n(1),a=n(23);o(o.S+o.F*n(3)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){i(t),e=a(e,!0),i(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(16).f,i=n(1);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(1),i=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(72)(i,"Object",function(){var t,e=this,n=e._k;do{if(e._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){var r=n(16),o=n(0),i=n(1);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(0),o=n(17),i=n(1);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){function r(t,e){var n,c,u=arguments.length<3?t:arguments[2];return s(t)===u?t[e]:(n=o.f(t,e))?a(n,"value")?n.value:void 0!==n.get?n.get.call(u):void 0:f(c=i(t))?r(c,e,u):void 0}var o=n(16),i=n(17),a=n(10),c=n(0),f=n(4),s=n(1);c(c.S,"Reflect",{get:r})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(1),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(110)})},function(t,e,n){var r=n(0),o=n(1),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(77);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){function r(t,e,n){var f,p,d=arguments.length<4?t:arguments[3],h=i.f(u(t),e);if(!h){if(l(p=a(t)))return r(p,e,n,d);h=s(0)}return c(h,"value")?!(!1===h.writable||!l(d))&&(f=i.f(d,e)||s(0),f.value=n,o.f(d,e,f),!0):void 0!==h.set&&(h.set.call(d,n),!0)}var o=n(7),i=n(16),a=n(17),c=n(10),f=n(0),s=n(29),u=n(1),l=n(4);f(f.S,"Reflect",{set:r})},function(t,e,n){var r=n(2),o=n(69),i=n(7).f,a=n(35).f,c=n(55),f=n(53),s=r.RegExp,u=s,l=s.prototype,p=/a/g,d=new s(/a/g)!==/a/g;if(n(6)&&(!d||n(3)(function(){return p[n(5)("match")]=!1,s(/a/g)!=/a/g||s(p)==p||"/a/i"!=s(/a/g,"i")}))){s=function(t,e){var n=this instanceof s,r=c(t),i=void 0===e;return!n&&r&&t.constructor===s&&i?t:o(d?new u(r&&!i?t.source:t,e):u((r=t instanceof s)?t.source:t,r&&i?f.call(t):e),n?this:l,s)};for(var h=a(u),v=0;h.length>v;)!function(t){t in s||i(s,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})}(h[v++]);l.constructor=s,s.prototype=l,n(13)(r,"RegExp",s)}n(38)("RegExp")},function(t,e,n){n(52)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(52)("replace",2,function(t,e,n){return[function(r,o){"use strict";var i=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},n]})},function(t,e,n){n(52)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(52)("split",2,function(t,e,r){"use strict";var o=n(55),i=r,a=[].push,c="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[c]||2!="ab".split(/(?:ab)*/)[c]||4!=".".split(/(.?)(.?)/)[c]||".".split(/()()/)[c]>1||"".split(/.?/)[c]){var f=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(n,t,e);var r,s,u,l,p,d=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,b=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,h+"g");for(f||(r=new RegExp("^"+m.source+"$(?!\\s)",h));(s=m.exec(n))&&!((u=s.index+s[0][c])>v&&(d.push(n.slice(v,s.index)),!f&&s[c]>1&&s[0].replace(r,function(){for(p=1;p1&&s.index=b));)m.lastIndex===s.index&&m.lastIndex++;return v===n[c]?!l&&m.test("")||d.push(""):d.push(n.slice(v)),d[c]>b?d.slice(0,b):d}}else"0".split(void 0,0)[c]&&(r=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(n,o){var i=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,i,o):r.call(String(i),n,o)},r]})},function(t,e,n){"use strict";n(117);var r=n(1),o=n(53),i=n(6),a=/./.toString,c=function(t){n(13)(RegExp.prototype,"toString",t,!0)};n(3)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=a.name&&c(function(){return a.call(this)})},function(t,e,n){"use strict";n(14)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(14)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(14)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(14)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";var r=n(0),o=n(80)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(8),i=n(81),a="".endsWith;r(r.P+r.F*n(67)("endsWith"),"String",{endsWith:function(t){var e=i(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),c=void 0===n?r:Math.min(o(n),r),f=String(t);return a?a.call(e,f,c):e.slice(c-f.length,c)===f}})},function(t,e,n){"use strict";n(14)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(14)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(14)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){var r=n(0),o=n(39),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){"use strict";var r=n(0),o=n(81);r(r.P+r.F*n(67)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";n(14)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";var r=n(80)(!0);n(73)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";n(14)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){var r=n(0),o=n(15),i=n(8);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],c=0;n>c;)a.push(String(e[c++])),c1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(14)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(14)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(14)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){"use strict";n(45)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(2),o=n(10),i=n(6),a=n(0),c=n(13),f=n(28).KEY,s=n(3),u=n(59),l=n(44),p=n(40),d=n(5),h=n(115),v=n(86),b=n(139),m=n(138),g=n(71),y=n(1),w=n(15),_=n(23),F=n(29),x=n(34),C=n(107),k=n(16),E=n(7),A=n(36),S=k.f,O=E.f,D=C.f,M=r.Symbol,j=r.JSON,T=j&&j.stringify,B=d("_hidden"),$=d("toPrimitive"),N={}.propertyIsEnumerable,I=u("symbol-registry"),P=u("symbols"),L=u("op-symbols"),R=Object.prototype,z="function"==typeof M,U=r.QObject,W=!U||!U.prototype||!U.prototype.findChild,q=i&&s(function(){return 7!=x(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=S(R,e);r&&delete R[e],O(t,e,n),r&&t!==R&&O(R,e,r)}:O,H=function(t){var e=P[t]=x(M.prototype);return e._k=t,e},X=z&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},V=function(t,e,n){return t===R&&V(L,e,n),y(t),e=_(e,!0),y(n),o(P,e)?(n.enumerable?(o(t,B)&&t[B][e]&&(t[B][e]=!1),n=x(n,{enumerable:F(0,!1)})):(o(t,B)||O(t,B,F(1,{})),t[B][e]=!0),q(t,e,n)):O(t,e,n)},Y=function(t,e){y(t);for(var n,r=m(e=w(e)),o=0,i=r.length;i>o;)V(t,n=r[o++],e[n]);return t},G=function(t,e){return void 0===e?x(t):Y(x(t),e)},K=function(t){var e=N.call(this,t=_(t,!0));return!(this===R&&o(P,t)&&!o(L,t))&&(!(e||!o(this,t)||!o(P,t)||o(this,B)&&this[B][t])||e)},J=function(t,e){if(t=w(t),e=_(e,!0),t!==R||!o(P,e)||o(L,e)){var n=S(t,e);return!n||!o(P,e)||o(t,B)&&t[B][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=D(w(t)),r=[],i=0;n.length>i;)o(P,e=n[i++])||e==B||e==f||r.push(e);return r},Q=function(t){for(var e,n=t===R,r=D(n?L:w(t)),i=[],a=0;r.length>a;)!o(P,e=r[a++])||n&&!o(R,e)||i.push(P[e]);return i};z||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===R&&e.call(L,n),o(this,B)&&o(this[B],t)&&(this[B][t]=!1),q(this,t,F(1,n))};return i&&W&&q(R,t,{configurable:!0,set:e}),H(t)},c(M.prototype,"toString",function(){return this._k}),k.f=J,E.f=V,n(35).f=C.f=Z,n(48).f=K,n(58).f=Q,i&&!n(33)&&c(R,"propertyIsEnumerable",K,!0),h.f=function(t){return H(d(t))}),a(a.G+a.W+a.F*!z,{Symbol:M});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var tt=A(d.store),et=0;tt.length>et;)v(tt[et++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=M(t)},keyFor:function(t){if(X(t))return b(I,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!z,"Object",{create:G,defineProperty:V,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:Q}),j&&a(a.S+a.F*(!z||s(function(){var t=M();return"[null]"!=T([t])||"{}"!=T({a:t})||"{}"!=T(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!X(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&g(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,T.apply(j,r)}}}),M.prototype[$]||n(12)(M.prototype,$,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){"use strict";var r=n(0),o=n(60),i=n(85),a=n(1),c=n(39),f=n(8),s=n(4),u=n(2).ArrayBuffer,l=n(79),p=i.ArrayBuffer,d=i.DataView,h=o.ABV&&u.isView,v=p.prototype.slice,b=o.VIEW;r(r.G+r.W+r.F*(u!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return h&&h(t)||s(t)&&b in t}}),r(r.P+r.U+r.F*n(3)(function(){return!new p(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(a(this),t);for(var n=a(this).byteLength,r=c(t,n),o=c(void 0===e?n:e,n),i=new(l(this,p))(f(o-r)),s=new d(this),u=new d(i),h=0;r0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(50)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(41)("includes")},function(t,e,n){var r=n(0),o=n(76)(),i=n(2).process,a="process"==n(18)(i);r(r.G,{asap:function(t){var e=a&&i.domain;o(e?e.bind(t):t)}})},function(t,e,n){var r=n(0),o=n(18);r(r.S,"Error",{isError:function(t){return"Error"===o(t)}})},function(t,e,n){var r=n(0);r(r.P+r.R,"Map",{toJSON:n(98)("Map")})},function(t,e,n){var r=n(0);r(r.S,"Math",{iaddh:function(t,e,n,r){var o=t>>>0,i=e>>>0,a=n>>>0;return i+(r>>>0)+((o&a|(o|a)&~(o+a>>>0))>>>31)|0}})},function(t,e,n){var r=n(0);r(r.S,"Math",{imulh:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r,a=n>>16,c=r>>16,f=(a*i>>>0)+(o*i>>>16);return a*c+(f>>16)+((o*c>>>0)+(65535&f)>>16)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{isubh:function(t,e,n,r){var o=t>>>0,i=e>>>0,a=n>>>0;return i-(r>>>0)-((~o&a|~(o^a)&o-a>>>0)>>>31)|0}})},function(t,e,n){var r=n(0);r(r.S,"Math",{umulh:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r,a=n>>>16,c=r>>>16,f=(a*i>>>0)+(o*i>>>16);return a*c+(f>>>16)+((o*c>>>0)+(65535&f)>>>16)}})},function(t,e,n){"use strict";var r=n(0),o=n(9),i=n(11),a=n(7);n(6)&&r(r.P+n(57),"Object",{__defineGetter__:function(t,e){a.f(o(this),t,{get:i(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(0),o=n(9),i=n(11),a=n(7);n(6)&&r(r.P+n(57),"Object",{__defineSetter__:function(t,e){a.f(o(this),t,{set:i(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var r=n(0),o=n(109)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){var r=n(0),o=n(110),i=n(15),a=n(16),c=n(64);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n=i(t),r=a.f,f=o(n),s={},u=0;f.length>u;)c(s,e=f[u++],r(n,e));return s}})},function(t,e,n){"use strict";var r=n(0),o=n(9),i=n(23),a=n(17),c=n(16).f;n(6)&&r(r.P+n(57),"Object",{__lookupGetter__:function(t){var e,n=o(this),r=i(t,!0);do{if(e=c(n,r))return e.get}while(n=a(n))}})},function(t,e,n){"use strict";var r=n(0),o=n(9),i=n(23),a=n(17),c=n(16).f;n(6)&&r(r.P+n(57),"Object",{__lookupSetter__:function(t){var e,n=o(this),r=i(t,!0);do{if(e=c(n,r))return e.set}while(n=a(n))}})},function(t,e,n){var r=n(0),o=n(109)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(24),a=n(76)(),c=n(5)("observable"),f=n(11),s=n(1),u=n(32),l=n(37),p=n(12),d=n(42),h=d.RETURN,v=function(t){return null==t?void 0:f(t)},b=function(t){var e=t._c;e&&(t._c=void 0,e())},m=function(t){return void 0===t._o},g=function(t){m(t)||(t._o=void 0,b(t))},y=function(t,e){s(t),this._c=void 0,this._o=t,t=new w(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:f(n),this._c=n)}catch(e){return void t.error(e)}m(this)&&b(this)};y.prototype=l({},{unsubscribe:function(){g(this)}});var w=function(t){this._s=t};w.prototype=l({},{next:function(t){var e=this._s;if(!m(e)){var n=e._o;try{var r=v(n.next);if(r)return r.call(n,t)}catch(t){try{g(e)}finally{throw t}}}},error:function(t){var e=this._s;if(m(e))throw t;var n=e._o;e._o=void 0;try{var r=v(n.error);if(!r)throw t;t=r.call(n,t)}catch(t){try{b(e)}finally{throw t}}return b(e),t},complete:function(t){var e=this._s;if(!m(e)){var n=e._o;e._o=void 0;try{var r=v(n.complete);t=r?r.call(n,t):void 0}catch(t){try{b(e)}finally{throw t}}return b(e),t}}});var _=function(t){u(this,_,"Observable","_f")._f=f(t)};l(_.prototype,{subscribe:function(t){return new y(t,this._f)},forEach:function(t){var e=this;return new(i.Promise||o.Promise)(function(n,r){f(t);var o=e.subscribe({next:function(e){try{return t(e)}catch(t){r(t),o.unsubscribe()}},error:r,complete:n})})}}),l(_,{from:function(t){var e="function"==typeof this?this:_,n=v(s(t)[c]);if(n){var r=s(n.call(t));return r.constructor===e?r:new e(function(t){return r.subscribe(t)})}return new e(function(e){var n=!1;return a(function(){if(!n){try{if(d(t,!1,function(t){if(e.next(t),n)return h})===h)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,n=Array(e);t1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(114);r(r.P,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){"use strict";n(45)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(45)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){n(86)("asyncIterator")},function(t,e,n){n(86)("observable")},function(t,e,n){var r=n(0);r(r.S,"System",{global:n(2)})},function(t,e,n){for(var r=n(88),o=n(13),i=n(2),a=n(12),c=n(43),f=n(5),s=f("iterator"),u=f("toStringTag"),l=c.Array,p=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],d=0;d<5;d++){var h,v=p[d],b=i[v],m=b&&b.prototype;if(m){m[s]||a(m,s,l),m[u]||a(m,u,v),c[v]=l;for(h in r)m[h]||o(m,h,r[h],!0)}}},function(t,e,n){var r=n(0),o=n(84);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){var r=n(2),o=n(0),i=n(54),a=n(140),c=r.navigator,f=!!c&&/MSIE .\./.test(c.userAgent),s=function(t){return f?function(e,n){return t(i(a,[].slice.call(arguments,2),"function"==typeof e?e:Function(e)),n)}:t};o(o.G+o.B+o.F*f,{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(t,e,n){n(263),n(202),n(204),n(203),n(206),n(208),n(213),n(207),n(205),n(215),n(214),n(210),n(211),n(209),n(201),n(212),n(216),n(217),n(169),n(171),n(170),n(219),n(218),n(189),n(199),n(200),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(250),n(255),n(262),n(253),n(245),n(246),n(251),n(256),n(258),n(241),n(242),n(243),n(244),n(247),n(248),n(249),n(252),n(254),n(257),n(259),n(260),n(261),n(164),n(166),n(165),n(168),n(167),n(153),n(151),n(157),n(154),n(160),n(162),n(150),n(156),n(147),n(161),n(145),n(159),n(158),n(152),n(155),n(144),n(146),n(149),n(148),n(163),n(88),n(235),n(240),n(117),n(236),n(237),n(238),n(239),n(220),n(116),n(118),n(119),n(275),n(264),n(265),n(270),n(273),n(274),n(268),n(271),n(269),n(272),n(266),n(267),n(221),n(222),n(223),n(224),n(225),n(228),n(226),n(227),n(229),n(230),n(231),n(232),n(234),n(233),n(276),n(302),n(305),n(304),n(306),n(307),n(303),n(308),n(309),n(287),n(290),n(286),n(284),n(285),n(288),n(289),n(279),n(301),n(310),n(278),n(280),n(282),n(281),n(283),n(292),n(293),n(295),n(294),n(297),n(296),n(298),n(299),n(300),n(277),n(291),n(313),n(312),n(311),t.exports=n(24)},function(t,e,n){/*! + * Cropper.js v1.0.0-rc.1 + * https://github.com/fengyuanchen/cropperjs + * + * Copyright (c) 2017 Fengyuan Chen + * Released under the MIT license + * + * Date: 2017-04-30T03:26:33.550Z + */ +!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){return it.call(t).slice(8,-1).toLowerCase()}function e(t){return"number"==typeof t&&!isNaN(t)}function n(t){return void 0===t}function r(t){return"object"===(void 0===t?"undefined":H(t))&&null!==t}function o(t){if(!r(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&at.call(n,"isPrototypeOf")}catch(t){return!1}}function i(e){return"function"===t(e)}function a(e){return Array.isArray?Array.isArray(e):"array"===t(e)}function c(t){return"string"==typeof t&&(t=t.trim?t.trim():t.replace(tt,"$1")),t}function f(t,n){if(t&&i(n)){var o=void 0;if(a(t)||e(t.length)){var c=t.length;for(o=0;o1?e-1:0),o=1;o0){if(Object.assign)return Object.assign.apply(Object,[t].concat(n));n.forEach(function(e){r(e)&&Object.keys(e).forEach(function(n){t[n]=e[n]})})}return t}function u(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o-1}function d(t,n){if(n){if(e(t.length))return void f(t,function(t){d(t,n)});if(t.classList)return void t.classList.add(n);var r=c(t.className);r?r.indexOf(n)<0&&(t.className=r+" "+n):t.className=n}}function h(t,n){if(n)return e(t.length)?void f(t,function(t){h(t,n)}):t.classList?void t.classList.remove(n):void(t.className.indexOf(n)>=0&&(t.className=t.className.replace(n,"")))}function v(t,n,r){if(n)return e(t.length)?void f(t,function(t){v(t,n,r)}):void(r?d(t,n):h(t,n))}function b(t){return t.replace(K,"$1-$2").toLowerCase()}function m(t,e){return r(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-"+b(e))}function g(t,e,n){r(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-"+b(e),n)}function y(t,e){if(r(t[e]))delete t[e];else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=null}else t.removeAttribute("data-"+b(e))}function w(t,e,n){var r=c(e).split(Z);if(r.length>1)return void f(r,function(e){w(t,e,n)});t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&t.detachEvent("on"+e,n)}function _(t,e,n,r){var o=c(e).split(Z),i=n;if(o.length>1)return void f(o,function(e){_(t,e,n)});r&&(n=function(){for(var r=arguments.length,o=Array(r),a=0;a90?180-n:n)*Math.PI/180,o=Math.sin(r),i=Math.cos(r),a=t.width,c=t.height,f=t.aspectRatio,s=void 0,u=void 0;return e?(s=a/(i+o/f),u=s/f):(s=a*i+c*o,u=a*o+c*i),{width:s,height:u}}function N(t,n){var r=A("canvas"),o=r.getContext("2d"),i=0,a=0,c=n.naturalWidth,f=n.naturalHeight,s=n.rotate,u=n.scaleX,l=n.scaleY,p=e(u)&&e(l)&&(1!==u||1!==l),d=e(s)&&0!==s,h=d||p,v=c*Math.abs(u||1),b=f*Math.abs(l||1),m=void 0,g=void 0,y=void 0;return p&&(m=v/2,g=b/2),d&&(y=$({width:v,height:b,degree:s}),v=y.width,b=y.height,m=v/2,g=b/2),r.width=v,r.height=b,h&&(i=-c/2,a=-f/2,o.save(),o.translate(m,g)),d&&o.rotate(s*Math.PI/180),p&&o.scale(u,l),o.drawImage(t,Math.floor(i),Math.floor(a),Math.floor(c),Math.floor(f)),h&&o.restore(),r}function I(t,e,n){var r="",o=e;for(n+=e;o=8&&(u=i+a))),u)for(n=e.getUint16(u,c),p=0;pn.width?3===e?f=n.height*c:u=n.width/c:3===e?u=n.width/c:f=n.height*c;var l={naturalWidth:i,naturalHeight:a,aspectRatio:c,width:f,height:u};l.oldLeft=l.left=(n.width-f)/2,l.oldTop=l.top=(n.height-u)/2,t.canvasData=l,t.limited=1===e||2===e,t.limitCanvas(!0,!0),t.initialImageData=s({},r),t.initialCanvasData=s({},l)},limitCanvas:function(t,e){var n=this,r=n.options,o=r.viewMode,i=n.containerData,a=n.canvasData,c=a.aspectRatio,f=n.cropBoxData,s=n.cropped&&f;if(t){var u=Number(r.minCanvasWidth)||0,l=Number(r.minCanvasHeight)||0;o>1?(u=Math.max(u,i.width),l=Math.max(l,i.height),3===o&&(l*c>u?u=l*c:l=u/c)):o>0&&(u?u=Math.max(u,s?f.width:0):l?l=Math.max(l,s?f.height:0):s&&(u=f.width,l=f.height,l*c>u?u=l*c:l=u/c)),u&&l?l*c>u?l=u/c:u=l*c:u?l=u/c:l&&(u=l*c),a.minWidth=u,a.minHeight=l,a.maxWidth=1/0,a.maxHeight=1/0}if(e)if(o){var p=i.width-a.width,d=i.height-a.height;a.minLeft=Math.min(0,p),a.minTop=Math.min(0,d),a.maxLeft=Math.max(0,p),a.maxTop=Math.max(0,d),s&&n.limited&&(a.minLeft=Math.min(f.left,f.left+(f.width-a.width)),a.minTop=Math.min(f.top,f.top+(f.height-a.height)),a.maxLeft=f.left,a.maxTop=f.top,2===o&&(a.width>=i.width&&(a.minLeft=Math.min(0,p),a.maxLeft=Math.max(0,p)),a.height>=i.height&&(a.minTop=Math.min(0,d),a.maxTop=Math.max(0,d))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=i.width,a.maxTop=i.height},renderCanvas:function(t){var e=this,n=e.canvasData,r=e.imageData,o=r.rotate;if(e.rotated){e.rotated=!1;var i=$({width:r.width,height:r.height,degree:o}),a=i.width/i.height,c=1===r.aspectRatio;if(c||a!==n.aspectRatio){if(n.left-=(i.width-n.width)/2,n.top-=(i.height-n.height)/2,n.width=i.width,n.height=i.height,n.aspectRatio=a,n.naturalWidth=r.naturalWidth,n.naturalHeight=r.naturalHeight,c&&o%90||o%180){var f=$({width:r.naturalWidth,height:r.naturalHeight,degree:o});n.naturalWidth=f.width,n.naturalHeight=f.height}e.limitCanvas(!0,!1)}}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighto.width?i.height=i.width/n:i.width=i.height*n),t.cropBoxData=i,t.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.oldLeft=i.left=o.left+(o.width-i.width)/2,i.oldTop=i.top=o.top+(o.height-i.height)/2,t.initialCropBoxData=s({},i)},limitCropBox:function(t,e){var n=this,r=n.options,o=r.aspectRatio,i=n.containerData,a=n.canvasData,c=n.cropBoxData,f=n.limited;if(t){var s=Number(r.minCropBoxWidth)||0,u=Number(r.minCropBoxHeight)||0,l=Math.min(i.width,f?a.width:i.width),p=Math.min(i.height,f?a.height:i.height);s=Math.min(s,i.width),u=Math.min(u,i.height),o&&(s&&u?u*o>s?u=s/o:s=u*o:s?u=s/o:u&&(s=u*o),p*o>l?p=l/o:l=p*o),c.minWidth=Math.min(s,l),c.minHeight=Math.min(u,p),c.maxWidth=l,c.maxHeight=p}e&&(f?(c.minLeft=Math.max(0,a.left),c.minTop=Math.max(0,a.top),c.maxLeft=Math.min(i.width,a.left+a.width)-c.width,c.maxTop=Math.min(i.height,a.top+a.height)-c.height):(c.minLeft=0,c.minTop=0,c.maxLeft=i.width-c.width,c.maxTop=i.height-c.height))},renderCropBox:function(){var t=this,e=t.options,n=t.containerData,r=t.cropBoxData;(r.width>r.maxWidth||r.widthr.maxHeight||r.heightf&&(v=f/i,d=o*v,h=f),l(t,{width:d,height:h}),l(k(t,"img")[0],s({width:a*v,height:c*v},B(s({translateX:-u*v,translateY:-p*v},e))))}))}},ut="undefined"!=typeof window?window.PointerEvent:null,lt=ut?"pointerdown":"touchstart mousedown",pt=ut?"pointermove":"touchmove mousemove",dt=ut?" pointerup pointercancel":"touchend touchcancel mouseup",ht={bind:function(){var t=this,e=t.options,n=t.element,r=t.cropper;i(e.cropstart)&&_(n,"cropstart",e.cropstart),i(e.cropmove)&&_(n,"cropmove",e.cropmove),i(e.cropend)&&_(n,"cropend",e.cropend),i(e.crop)&&_(n,"crop",e.crop),i(e.zoom)&&_(n,"zoom",e.zoom),_(r,lt,t.onCropStart=u(t.cropStart,t)),e.zoomable&&e.zoomOnWheel&&_(r,"wheel mousewheel DOMMouseScroll",t.onWheel=u(t.wheel,t)),e.toggleDragModeOnDblclick&&_(r,"dblclick",t.onDblclick=u(t.dblclick,t)),_(document,pt,t.onCropMove=u(t.cropMove,t)),_(document,dt,t.onCropEnd=u(t.cropEnd,t)),e.responsive&&_(window,"resize",t.onResize=u(t.resize,t))},unbind:function(){var t=this,e=t.options,n=t.element,r=t.cropper;i(e.cropstart)&&w(n,"cropstart",e.cropstart),i(e.cropmove)&&w(n,"cropmove",e.cropmove),i(e.cropend)&&w(n,"cropend",e.cropend),i(e.crop)&&w(n,"crop",e.crop),i(e.zoom)&&w(n,"zoom",e.zoom),w(r,lt,t.onCropStart),e.zoomable&&e.zoomOnWheel&&w(r,"wheel mousewheel DOMMouseScroll",t.onWheel),e.toggleDragModeOnDblclick&&w(r,"dblclick",t.onDblclick),w(document,pt,t.onCropMove),w(document,dt,t.onCropEnd),e.responsive&&w(window,"resize",t.onResize)}},vt=/^(e|w|s|n|se|sw|ne|nw|all|crop|move|zoom)$/,bt={resize:function(){var t=this,e=t.options,n=t.container,r=t.containerData,o=Number(e.minContainerWidth)||200,i=Number(e.minContainerHeight)||100;if(!t.disabled&&r.width!==o&&r.height!==i){var a=n.offsetWidth/r.width;1===a&&n.offsetHeight===r.height||function(){var n=void 0,r=void 0;e.restore&&(n=t.getCanvasData(),r=t.getCropBoxData()),t.render(),e.restore&&(t.setCanvasData(f(n,function(t,e){n[e]=t*a})),t.setCropBoxData(f(r,function(t,e){r[e]=t*a})))}()}},dblclick:function(){var t=this;t.disabled||"none"===t.options.dragMode||t.setDragMode(p(t.dragBox,"cropper-crop")?"move":"crop")},wheel:function(t){var e=this,n=x(t),r=Number(e.options.wheelZoomRatio)||.1,o=1;e.disabled||(n.preventDefault(),e.wheeling||(e.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),n.deltaY?o=n.deltaY>0?1:-1:n.wheelDelta?o=-n.wheelDelta/120:n.detail&&(o=n.detail>0?1:-1),e.zoom(-o*r,n)))},cropStart:function(t){var e=this;if(!e.disabled){var n=e.options,r=e.pointers,o=x(t),i=void 0;o.changedTouches?f(o.changedTouches,function(t){r[t.identifier]=z(t)}):r[o.pointerId||0]=z(o),i=Object.keys(r).length>1&&n.zoomable&&n.zoomOnTouch?"zoom":m(o.target,"action"),vt.test(i)&&!1!==F(e.element,"cropstart",{originalEvent:o,action:i})&&(o.preventDefault(),e.action=i,e.cropping=!1,"crop"===i&&(e.cropping=!0,d(e.dragBox,"cropper-modal")))}},cropMove:function(t){var e=this,n=e.action;if(!e.disabled&&n){var r=e.pointers,o=x(t);o.preventDefault(),!1!==F(e.element,"cropmove",{originalEvent:o,action:n})&&(o.changedTouches?f(o.changedTouches,function(t){s(r[t.identifier],z(t,!0))}):s(r[o.pointerId||0],z(o,!0)),e.change(o))}},cropEnd:function(t){var e=this;if(!e.disabled){var n=e.action,r=e.pointers,o=x(t);o.changedTouches?f(o.changedTouches,function(t){delete r[t.identifier]}):delete r[o.pointerId||0],n&&(o.preventDefault(),Object.keys(r).length||(e.action=""),e.cropping&&(e.cropping=!1,v(e.dragBox,"cropper-modal",e.cropped&&this.options.modal)),F(e.element,"cropend",{originalEvent:o,action:n}))}}},mt={change:function(t){var e=this,n=e.options,r=e.containerData,o=e.canvasData,i=e.cropBoxData,a=n.aspectRatio,c=e.action,s=i.width,u=i.height,l=i.left,p=i.top,d=l+s,v=p+u,b=0,m=0,g=r.width,y=r.height,w=!0,_=void 0;!a&&t.shiftKey&&(a=s&&u?s/u:1),e.limited&&(b=i.minLeft,m=i.minTop,g=b+Math.min(r.width,o.width,o.left+o.width),y=m+Math.min(r.height,o.height,o.top+o.height));var F=e.pointers,x=F[Object.keys(F)[0]],k={x:x.endX-x.startX,y:x.endY-x.startY};switch(a&&(k.X=k.y*a,k.Y=k.x/a),c){case"all":l+=k.x,p+=k.y;break;case"e":if(k.x>=0&&(d>=g||a&&(p<=m||v>=y))){w=!1;break}s+=k.x,a&&(u=s/a,p-=k.Y/2),s<0&&(c="w",s=0);break;case"n":if(k.y<=0&&(p<=m||a&&(l<=b||d>=g))){w=!1;break}u-=k.y,p+=k.y,a&&(s=u*a,l+=k.X/2),u<0&&(c="s",u=0);break;case"w":if(k.x<=0&&(l<=b||a&&(p<=m||v>=y))){w=!1;break}s-=k.x,l+=k.x,a&&(u=s/a,p+=k.Y/2),s<0&&(c="e",s=0);break;case"s":if(k.y>=0&&(v>=y||a&&(l<=b||d>=g))){w=!1;break}u+=k.y,a&&(s=u*a,l-=k.X/2),u<0&&(c="n",u=0);break;case"ne":if(a){if(k.y<=0&&(p<=m||d>=g)){w=!1;break}u-=k.y,p+=k.y,s=u*a}else k.x>=0?dm&&(u-=k.y,p+=k.y):(u-=k.y,p+=k.y);s<0&&u<0?(c="sw",u=0,s=0):s<0?(c="nw",s=0):u<0&&(c="se",u=0);break;case"nw":if(a){if(k.y<=0&&(p<=m||l<=b)){w=!1;break}u-=k.y,p+=k.y,s=u*a,l+=k.X}else k.x<=0?l>b?(s-=k.x,l+=k.x):k.y<=0&&p<=m&&(w=!1):(s-=k.x,l+=k.x),k.y<=0?p>m&&(u-=k.y,p+=k.y):(u-=k.y,p+=k.y);s<0&&u<0?(c="se",u=0,s=0):s<0?(c="ne",s=0):u<0&&(c="sw",u=0);break;case"sw":if(a){if(k.x<=0&&(l<=b||v>=y)){w=!1;break}s-=k.x,l+=k.x,u=s/a}else k.x<=0?l>b?(s-=k.x,l+=k.x):k.y>=0&&v>=y&&(w=!1):(s-=k.x,l+=k.x),k.y>=0?v=0&&(d>=g||v>=y)){w=!1;break}s+=k.x,u=s/a}else k.x>=0?d=0&&v>=y&&(w=!1):s+=k.x,k.y>=0?v0?c=k.y>0?"se":"ne":k.x<0&&(l-=s,c=k.y>0?"sw":"nw"),k.y<0&&(p-=u),e.cropped||(h(e.cropBox,"cropper-hidden"),e.cropped=!0,e.limited&&e.limitCropBox(!0,!0))}w&&(i.width=s,i.height=u,i.left=l,i.top=p,e.action=c,e.renderCropBox()),f(F,function(t){t.startX=t.endX,t.startY=t.endY})}},gt={crop:function(){var t=this;return t.ready&&!t.disabled&&(t.cropped||(t.cropped=!0,t.limitCropBox(!0,!0),t.options.modal&&d(t.dragBox,"cropper-modal"),h(t.cropBox,"cropper-hidden")),t.setCropBoxData(t.initialCropBoxData)),t},reset:function(){var t=this;return t.ready&&!t.disabled&&(t.imageData=s({},t.initialImageData),t.canvasData=s({},t.initialCanvasData),t.cropBoxData=s({},t.initialCropBoxData),t.renderCanvas(),t.cropped&&t.renderCropBox()),t},clear:function(){var t=this;return t.cropped&&!t.disabled&&(s(t.cropBoxData,{left:0,top:0,width:0,height:0}),t.cropped=!1,t.renderCropBox(),t.limitCanvas(),t.renderCanvas(),h(t.dragBox,"cropper-modal"),d(t.cropBox,"cropper-hidden")),t},replace:function(t,e){var n=this;return!n.disabled&&t&&(n.isImg&&(n.element.src=t),e?(n.url=t,n.image.src=t,n.ready&&(n.image2.src=t,f(n.previews,function(e){k(e,"img")[0].src=t}))):(n.isImg&&(n.replaced=!0),n.options.data=null,n.load(t))),n},enable:function(){var t=this;return t.ready&&(t.disabled=!1,h(t.cropper,"cropper-disabled")),t},disable:function(){var t=this;return t.ready&&(t.disabled=!0,d(t.cropper,"cropper-disabled")),t},destroy:function(){var t=this,e=t.element,n=t.image;return t.loaded?(t.isImg&&t.replaced&&(e.src=t.originalUrl),t.unbuild(),h(e,"cropper-hidden")):t.isImg?w(e,"load",t.onStart):n&&O(n),y(e,"cropper"),t},move:function(t,e){var r=this,o=r.canvasData;return r.moveTo(n(t)?t:o.left+Number(t),n(e)?e:o.top+Number(e))},moveTo:function(t,r){var o=this,i=o.canvasData,a=!1;return n(r)&&(r=t),t=Number(t),r=Number(r),o.ready&&!o.disabled&&o.options.movable&&(e(t)&&(i.left=t,a=!0),e(r)&&(i.top=r,a=!0),a&&o.renderCanvas(!0)),o},zoom:function(t,e){var n=this,r=n.canvasData;return t=Number(t),t=t<0?1/(1-t):1+t,n.zoomTo(r.width*t/r.naturalWidth,e)},zoomTo:function(t,e){var n=this,r=n.options,o=n.canvasData,i=o.width,a=o.height,c=o.naturalWidth,f=o.naturalHeight;if((t=Number(t))>=0&&n.ready&&!n.disabled&&r.zoomable){var s=c*t,u=f*t;if(!1===F(n.element,"zoom",{originalEvent:e,oldRatio:i/c,ratio:s/c}))return n;if(e){var l=n.pointers,p=C(n.cropper),d=l&&Object.keys(l).length?W(l):{pageX:e.pageX,pageY:e.pageY};o.left-=(s-i)*((d.pageX-p.left-o.left)/i),o.top-=(u-a)*((d.pageY-p.top-o.top)/a)}else o.left-=(s-i)/2,o.top-=(u-a)/2;o.width=s,o.height=u,n.renderCanvas(!0)}return n},rotate:function(t){var e=this;return e.rotateTo((e.imageData.rotate||0)+Number(t))},rotateTo:function(t){var n=this;return t=Number(t),e(t)&&n.ready&&!n.disabled&&n.options.rotatable&&(n.imageData.rotate=t%360,n.rotated=!0,n.renderCanvas(!0)),n},scale:function(t,r){var o=this,i=o.imageData,a=!1;return n(r)&&(r=t),t=Number(t),r=Number(r),o.ready&&!o.disabled&&o.options.scalable&&(e(t)&&(i.scaleX=t,a=!0),e(r)&&(i.scaleY=r,a=!0),a&&o.renderImage(!0)),o},scaleX:function(t){var n=this,r=n.imageData.scaleY;return n.scale(t,e(r)?r:1)},scaleY:function(t){var n=this,r=n.imageData.scaleX;return n.scale(e(r)?r:1,t)},getData:function(t){var e=this,n=e.options,r=e.imageData,o=e.canvasData,i=e.cropBoxData,a=void 0,c=void 0;return e.ready&&e.cropped?(c={x:i.left-o.left,y:i.top-o.top,width:i.width,height:i.height},a=r.width/r.naturalWidth,f(c,function(e,n){e/=a,c[n]=t?Math.round(e):e})):c={x:0,y:0,width:0,height:0},n.rotatable&&(c.rotate=r.rotate||0),n.scalable&&(c.scaleX=r.scaleX||1,c.scaleY=r.scaleY||1),c},setData:function(t){var n=this,r=n.options,a=n.imageData,c=n.canvasData,f={},s=void 0,u=void 0,l=void 0;return i(t)&&(t=t.call(n.element)),n.ready&&!n.disabled&&o(t)&&(r.rotatable&&e(t.rotate)&&t.rotate!==a.rotate&&(a.rotate=t.rotate,n.rotated=s=!0),r.scalable&&(e(t.scaleX)&&t.scaleX!==a.scaleX&&(a.scaleX=t.scaleX,u=!0),e(t.scaleY)&&t.scaleY!==a.scaleY&&(a.scaleY=t.scaleY,u=!0)),s?n.renderCanvas():u&&n.renderImage(),l=a.width/a.naturalWidth,e(t.x)&&(f.left=t.x*l+c.left),e(t.y)&&(f.top=t.y*l+c.top),e(t.width)&&(f.width=t.width*l),e(t.height)&&(f.height=t.height*l),n.setCropBoxData(f)),n},getContainerData:function(){var t=this;return t.ready?t.containerData:{}},getImageData:function(){var t=this;return t.loaded?t.imageData:{}},getCanvasData:function(){var t=this,e=t.canvasData,n={};return t.ready&&f(["left","top","width","height","naturalWidth","naturalHeight"],function(t){n[t]=e[t]}),n},setCanvasData:function(t){var n=this,r=n.canvasData,a=r.aspectRatio;return i(t)&&(t=t.call(n.element)),n.ready&&!n.disabled&&o(t)&&(e(t.left)&&(r.left=t.left),e(t.top)&&(r.top=t.top),e(t.width)?(r.width=t.width,r.height=t.width/a):e(t.height)&&(r.height=t.height,r.width=t.height*a),n.renderCanvas(!0)),n},getCropBoxData:function(){var t=this,e=t.cropBoxData,n=void 0;return t.ready&&t.cropped&&(n={left:e.left,top:e.top,width:e.width,height:e.height}),n||{}},setCropBoxData:function(t){var n=this,r=n.cropBoxData,a=n.options.aspectRatio,c=void 0,f=void 0;return i(t)&&(t=t.call(n.element)),n.ready&&n.cropped&&!n.disabled&&o(t)&&(e(t.left)&&(r.left=t.left),e(t.top)&&(r.top=t.top),e(t.width)&&t.width!==r.width&&(c=!0,r.width=t.width),e(t.height)&&t.height!==r.height&&(f=!0,r.height=t.height),a&&(c?r.height=r.width/a:f&&(r.width=r.height*a)),n.renderCropBox()),n},getCroppedCanvas:function(t){var e=this;if(!e.ready||!window.HTMLCanvasElement)return null;if(!e.cropped)return N(e.image,e.imageData);o(t)||(t={});var n=e.getData(),r=n.width,i=n.height,a=r/i,c=void 0,f=void 0,s=void 0;o(t)&&(c=t.width,f=t.height,c?(f=c/a,s=c/r):f&&(c=f*a,s=f/i));var u=Math.floor(c||r),l=Math.floor(f||i),p=A("canvas"),d=p.getContext("2d");p.width=u,p.height=l,t.fillColor&&(d.fillStyle=t.fillColor,d.fillRect(0,0,u,l));var h=function(){var t=N(e.image,e.imageData),o=t.width,a=t.height,c=e.canvasData,f=[t],u=n.x+c.naturalWidth*(Math.abs(n.scaleX||1)-1)/2,l=n.y+c.naturalHeight*(Math.abs(n.scaleY||1)-1)/2,p=void 0,d=void 0,h=void 0,v=void 0,b=void 0,m=void 0;return u<=-r||u>o?u=p=h=b=0:u<=0?(h=-u,u=0,p=b=Math.min(o,r+u)):u<=o&&(h=0,p=b=Math.min(r,o-u)),p<=0||l<=-i||l>a?l=d=v=m=0:l<=0?(v=-l,l=0,d=m=Math.min(a,i+l)):l<=a&&(v=0,d=m=Math.min(i,a-l)),f.push(Math.floor(u),Math.floor(l),Math.floor(p),Math.floor(d)),s&&(h*=s,v*=s,b*=s,m*=s),b>0&&m>0&&f.push(Math.floor(h),Math.floor(v),Math.floor(b),Math.floor(m)),f}();return d.drawImage.apply(d,Y(h)),p},setAspectRatio:function(t){var e=this,r=e.options;return e.disabled||n(t)||(r.aspectRatio=Math.max(0,t)||NaN,e.ready&&(e.initCropBox(),e.cropped&&e.renderCropBox())),e},setDragMode:function(t){var e=this,n=e.options,r=e.dragBox,o=e.face,i=void 0,a=void 0;return e.loaded&&!e.disabled&&(i="crop"===t,a=n.movable&&"move"===t,t=i||a?t:"none",g(r,"action",t),v(r,"cropper-crop",i),v(r,"cropper-move",a),n.cropBoxMovable||(g(o,"action",t),v(o,"cropper-crop",i),v(o,"cropper-move",a))),e}},yt=/^data:/,wt=void 0,_t=function(){function t(e,n){X(this,t);var r=this;r.element=e,r.options=s({},q,o(n)&&n),r.loaded=!1,r.ready=!1,r.complete=!1,r.rotated=!1,r.cropped=!1,r.disabled=!1,r.replaced=!1,r.limited=!1,r.wheeling=!1,r.isImg=!1,r.originalUrl="",r.canvasData=null,r.cropBoxData=null,r.previews=null,r.pointers={},r.init()}return V(t,[{key:"init",value:function(){var t=this,e=t.element,n=e.tagName.toLowerCase(),r=void 0;if(!m(e,"cropper")){if(g(e,"cropper",t),"img"===n){if(t.isImg=!0,t.originalUrl=r=e.getAttribute("src"),!r)return;r=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(r=e.toDataURL());t.load(r)}}},{key:"load",value:function(t){var e=this,n=e.options,r=e.element;if(t){if(e.url=t,e.imageData={},!n.checkOrientation||!window.ArrayBuffer)return void e.clone();if(yt.test(t))return void e.read(L(t));var o=new XMLHttpRequest;o.onerror=o.onabort=function(){e.clone()},o.onload=function(){e.read(o.response)},n.checkCrossOrigin&&M(t)&&r.crossOrigin&&(t=j(t)),o.open("get",t),o.responseType="arraybuffer",o.withCredentials="use-credentials"===r.crossOrigin,o.send()}}},{key:"read",value:function(t){var e=this,n=e.options,r=P(t),o=e.imageData,i=0,a=1,c=1;if(r>1)switch(e.url=R(t),r){case 2:a=-1;break;case 3:i=-180;break;case 4:c=-1;break;case 5:i=90,c=-1;break;case 6:i=90;break;case 7:i=90,a=-1;break;case 8:i=-90}n.rotatable&&(o.rotate=i),n.scalable&&(o.scaleX=a,o.scaleY=c),e.clone()}},{key:"clone",value:function(){var t=this,e=t.element,n=t.url,r=void 0,o=void 0,i=void 0,a=void 0;t.options.checkCrossOrigin&&M(n)&&(r=e.crossOrigin,r?o=n:(r="anonymous",o=j(n))),t.crossOrigin=r,t.crossOriginUrl=o;var c=A("img");r&&(c.crossOrigin=r),c.src=o||n,t.image=c,t.onStart=i=u(t.start,t),t.onStop=a=u(t.stop,t),t.isImg?e.complete?t.start():_(e,"load",i):(_(c,"load",i),_(c,"error",a),d(c,"cropper-hide"),e.parentNode.insertBefore(c,e.nextSibling))}},{key:"start",value:function(t){var e=this,n=e.isImg?e.element:e.image;t&&(w(n,"load",e.onStart),w(n,"error",e.onStop)),T(n,function(t,n){s(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.loaded=!0,e.build()})}},{key:"stop",value:function(){var t=this,e=t.image;w(e,"load",t.onStart),w(e,"error",t.onStop),O(e),t.image=null}},{key:"build",value:function(){var t=this,e=t.options,n=t.element,r=t.image,o=void 0,a=void 0,c=void 0,f=void 0,s=void 0,u=void 0;if(t.loaded){t.ready&&t.unbuild();var l=A("div");l.innerHTML='
',t.container=o=n.parentNode,t.cropper=a=E(l,"cropper-container")[0],t.canvas=c=E(a,"cropper-canvas")[0],t.dragBox=f=E(a,"cropper-drag-box")[0],t.cropBox=s=E(a,"cropper-crop-box")[0],t.viewBox=E(a,"cropper-view-box")[0],t.face=u=E(s,"cropper-face")[0],S(c,r),d(n,"cropper-hidden"),o.insertBefore(a,n.nextSibling),t.isImg||h(r,"cropper-hide"),t.initPreview(),t.bind(),e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,t.cropped=e.autoCrop,e.autoCrop?e.modal&&d(f,"cropper-modal"):d(s,"cropper-hidden"),e.guides||d(E(s,"cropper-dashed"),"cropper-hidden"),e.center||d(E(s,"cropper-center"),"cropper-hidden"),e.background&&d(a,"cropper-bg"),e.highlight||d(u,"cropper-invisible"),e.cropBoxMovable&&(d(u,"cropper-move"),g(u,"action","all")),e.cropBoxResizable||(d(E(s,"cropper-line"),"cropper-hidden"),d(E(s,"cropper-point"),"cropper-hidden")),t.setDragMode(e.dragMode),t.render(),t.ready=!0,t.setData(e.data),t.completing=setTimeout(function(){i(e.ready)&&_(n,"ready",e.ready,!0),F(n,"ready"),F(n,"crop",t.getData()),t.complete=!0},0)}}},{key:"unbuild",value:function(){var t=this;t.ready&&(t.complete||clearTimeout(t.completing),t.ready=!1,t.complete=!1,t.initialImageData=null,t.initialCanvasData=null,t.initialCropBoxData=null,t.containerData=null,t.canvasData=null,t.cropBoxData=null,t.unbind(),t.resetPreview(),t.previews=null,t.viewBox=null,t.cropBox=null,t.dragBox=null,t.canvas=null,t.container=null,O(t.cropper),t.cropper=null)}}],[{key:"noConflict",value:function(){return window.Cropper=wt,t}},{key:"setDefaults",value:function(t){s(q,o(t)&&t)}}]),t}();return s(_t.prototype,ft),s(_t.prototype,st),s(_t.prototype,ht),s(_t.prototype,bt),s(_t.prototype,mt),s(_t.prototype,gt),"undefined"!=typeof window&&(wt=window.Cropper,window.Cropper=_t),_t})},function(t,e,n){e=t.exports=n(31)(void 0),e.push([t.i,".loader[data-v-0f640968]{display:table;height:100%;overflow:hidden;width:100%}.loader>p[data-v-0f640968]{color:#999;display:table-cell;text-align:center;vertical-align:middle}.browse[data-v-0f640968]{color:#0074d9;cursor:pointer;margin-left:4px}.browse[data-v-0f640968]:hover{color:#08f;text-decoration:underline}.sr-only[data-v-0f640968]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}",""])},function(t,e,n){e=t.exports=n(31)(void 0),e.push([t.i,".navbar[data-v-1ddca236]{float:right}.nav__button[data-v-1ddca236]{background-color:transparent;border-width:0;color:#fff;cursor:pointer;display:block;float:left;font-size:16px;height:48px;line-height:48px;text-align:center;width:48px}.nav__button[data-v-1ddca236]:focus{outline:none}.nav__button[data-v-1ddca236]:hover{background-color:#0074d9;color:#fff}.nav__button--success[data-v-1ddca236]:hover{background-color:#2ecc40}.nav__button--danger[data-v-1ddca236]:hover{background-color:#ff4136}",""])},function(t,e,n){e=t.exports=n(31)(void 0),e.push([t.i,"body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}",""])},function(t,e,n){e=t.exports=n(31)(void 0),e.push([t.i,".app[data-v-a3793246]{bottom:0;left:0;position:absolute;top:0;right:0}.header[data-v-a3793246]{background-color:#666;height:48px;overflow:hidden;padding-left:16px;padding-right:16px;position:relative;z-index:1}@media (min-width:768px){.header[data-v-a3793246]{padding-left:24px;padding-right:24px}}.title[data-v-a3793246]{color:#fff;display:block;float:left;font-size:18px;line-height:48px}.main[data-v-a3793246]{background-color:#333;bottom:0;left:0;position:absolute;right:0;top:48px}",""])},function(t,e,n){e=t.exports=n(31)(void 0),e.push([t.i,".editor[data-v-be22847c]{height:100%}.canvas[data-v-be22847c]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.canvas>img[data-v-be22847c]{max-height:100%;max-width:100%}.toolbar[data-v-be22847c]{background-color:rgba(0,0,0,.5);bottom:16px;color:#fff;height:32px;left:50%;margin-left:-128px;position:absolute;width:256px;z-index:2015}.toolbar__button[data-v-be22847c]{background-color:transparent;border-width:0;color:#fff;cursor:pointer;display:block;float:left;font-size:14px;height:32px;text-align:center;width:32px}.toolbar__button[data-v-be22847c]:focus{outline:none}.toolbar__button[data-v-be22847c]:hover{background-color:#0074d9;color:#fff}",""])},function(t,e,n){e=t.exports=n(31)(void 0),e.push([t.i,'/*!\n * Cropper.js v1.0.0-rc.1\n * https://github.com/fengyuanchen/cropperjs\n *\n * Copyright (c) 2017 Fengyuan Chen\n * Released under the MIT license\n *\n * Date: 2017-04-30T03:26:33.550Z\n */.cropper-container{font-size:0;line-height:0;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;direction:ltr;-ms-touch-action:none;touch-action:none}.cropper-container img{display:block;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important;width:100%;height:100%;image-orientation:0deg}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{position:absolute;top:0;right:0;bottom:0;left:0}.cropper-wrap-box{overflow:hidden}.cropper-drag-box{opacity:0;background-color:#fff}.cropper-modal{opacity:.5;background-color:#000}.cropper-view-box{display:block;overflow:hidden;width:100%;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75)}.cropper-dashed{position:absolute;display:block;opacity:.5;border:0 dashed #eee}.cropper-dashed.dashed-h{top:33.33333%;left:0;width:100%;height:33.33333%;border-top-width:1px;border-bottom-width:1px}.cropper-dashed.dashed-v{top:0;left:33.33333%;width:33.33333%;height:100%;border-right-width:1px;border-left-width:1px}.cropper-center{position:absolute;top:50%;left:50%;display:block;width:0;height:0;opacity:.75}.cropper-center:after,.cropper-center:before{position:absolute;display:block;content:" ";background-color:#eee}.cropper-center:before{top:0;left:-3px;width:7px;height:1px}.cropper-center:after{top:-3px;left:0;width:1px;height:7px}.cropper-face,.cropper-line,.cropper-point{position:absolute;display:block;width:100%;height:100%;opacity:.1}.cropper-face{top:0;left:0;background-color:#fff}.cropper-line{background-color:#39f}.cropper-line.line-e{top:0;right:-3px;width:5px;cursor:e-resize}.cropper-line.line-n{top:-3px;left:0;height:5px;cursor:n-resize}.cropper-line.line-w{top:0;left:-3px;width:5px;cursor:w-resize}.cropper-line.line-s{bottom:-3px;left:0;height:5px;cursor:s-resize}.cropper-point{width:5px;height:5px;opacity:.75;background-color:#39f}.cropper-point.point-e{top:50%;right:-3px;margin-top:-3px;cursor:e-resize}.cropper-point.point-n{top:-3px;left:50%;margin-left:-3px;cursor:n-resize}.cropper-point.point-w{top:50%;left:-3px;margin-top:-3px;cursor:w-resize}.cropper-point.point-s{bottom:-3px;left:50%;margin-left:-3px;cursor:s-resize}.cropper-point.point-ne{top:-3px;right:-3px;cursor:ne-resize}.cropper-point.point-nw{top:-3px;left:-3px;cursor:nw-resize}.cropper-point.point-sw{bottom:-3px;left:-3px;cursor:sw-resize}.cropper-point.point-se{right:-3px;bottom:-3px;width:20px;height:20px;cursor:se-resize;opacity:1}@media (min-width:768px){.cropper-point.point-se{width:15px;height:15px}}@media (min-width:992px){.cropper-point.point-se{width:10px;height:10px}}@media (min-width:1200px){.cropper-point.point-se{width:5px;height:5px;opacity:.75}}.cropper-point.point-se:before{position:absolute;right:-50%;bottom:-50%;display:block;width:200%;height:200%;content:" ";opacity:0;background-color:#39f}.cropper-invisible{opacity:0}.cropper-bg{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-hide{position:absolute;display:block;width:0;height:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}',""])},function(t,e,n){e=t.exports=n(31)(void 0),e.push([t.i,"/*!\n * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome\n * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:FontAwesome;src:url("+n(325)+");src:url("+n(324)+'?#iefix&v=4.7.0) format("embedded-opentype"),url('+n(328)+') format("woff2"),url('+n(329)+') format("woff"),url('+n(327)+') format("truetype"),url('+n(326)+'#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\\F000"}.fa-music:before{content:"\\F001"}.fa-search:before{content:"\\F002"}.fa-envelope-o:before{content:"\\F003"}.fa-heart:before{content:"\\F004"}.fa-star:before{content:"\\F005"}.fa-star-o:before{content:"\\F006"}.fa-user:before{content:"\\F007"}.fa-film:before{content:"\\F008"}.fa-th-large:before{content:"\\F009"}.fa-th:before{content:"\\F00A"}.fa-th-list:before{content:"\\F00B"}.fa-check:before{content:"\\F00C"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\\F00D"}.fa-search-plus:before{content:"\\F00E"}.fa-search-minus:before{content:"\\F010"}.fa-power-off:before{content:"\\F011"}.fa-signal:before{content:"\\F012"}.fa-cog:before,.fa-gear:before{content:"\\F013"}.fa-trash-o:before{content:"\\F014"}.fa-home:before{content:"\\F015"}.fa-file-o:before{content:"\\F016"}.fa-clock-o:before{content:"\\F017"}.fa-road:before{content:"\\F018"}.fa-download:before{content:"\\F019"}.fa-arrow-circle-o-down:before{content:"\\F01A"}.fa-arrow-circle-o-up:before{content:"\\F01B"}.fa-inbox:before{content:"\\F01C"}.fa-play-circle-o:before{content:"\\F01D"}.fa-repeat:before,.fa-rotate-right:before{content:"\\F01E"}.fa-refresh:before{content:"\\F021"}.fa-list-alt:before{content:"\\F022"}.fa-lock:before{content:"\\F023"}.fa-flag:before{content:"\\F024"}.fa-headphones:before{content:"\\F025"}.fa-volume-off:before{content:"\\F026"}.fa-volume-down:before{content:"\\F027"}.fa-volume-up:before{content:"\\F028"}.fa-qrcode:before{content:"\\F029"}.fa-barcode:before{content:"\\F02A"}.fa-tag:before{content:"\\F02B"}.fa-tags:before{content:"\\F02C"}.fa-book:before{content:"\\F02D"}.fa-bookmark:before{content:"\\F02E"}.fa-print:before{content:"\\F02F"}.fa-camera:before{content:"\\F030"}.fa-font:before{content:"\\F031"}.fa-bold:before{content:"\\F032"}.fa-italic:before{content:"\\F033"}.fa-text-height:before{content:"\\F034"}.fa-text-width:before{content:"\\F035"}.fa-align-left:before{content:"\\F036"}.fa-align-center:before{content:"\\F037"}.fa-align-right:before{content:"\\F038"}.fa-align-justify:before{content:"\\F039"}.fa-list:before{content:"\\F03A"}.fa-dedent:before,.fa-outdent:before{content:"\\F03B"}.fa-indent:before{content:"\\F03C"}.fa-video-camera:before{content:"\\F03D"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\\F03E"}.fa-pencil:before{content:"\\F040"}.fa-map-marker:before{content:"\\F041"}.fa-adjust:before{content:"\\F042"}.fa-tint:before{content:"\\F043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\\F044"}.fa-share-square-o:before{content:"\\F045"}.fa-check-square-o:before{content:"\\F046"}.fa-arrows:before{content:"\\F047"}.fa-step-backward:before{content:"\\F048"}.fa-fast-backward:before{content:"\\F049"}.fa-backward:before{content:"\\F04A"}.fa-play:before{content:"\\F04B"}.fa-pause:before{content:"\\F04C"}.fa-stop:before{content:"\\F04D"}.fa-forward:before{content:"\\F04E"}.fa-fast-forward:before{content:"\\F050"}.fa-step-forward:before{content:"\\F051"}.fa-eject:before{content:"\\F052"}.fa-chevron-left:before{content:"\\F053"}.fa-chevron-right:before{content:"\\F054"}.fa-plus-circle:before{content:"\\F055"}.fa-minus-circle:before{content:"\\F056"}.fa-times-circle:before{content:"\\F057"}.fa-check-circle:before{content:"\\F058"}.fa-question-circle:before{content:"\\F059"}.fa-info-circle:before{content:"\\F05A"}.fa-crosshairs:before{content:"\\F05B"}.fa-times-circle-o:before{content:"\\F05C"}.fa-check-circle-o:before{content:"\\F05D"}.fa-ban:before{content:"\\F05E"}.fa-arrow-left:before{content:"\\F060"}.fa-arrow-right:before{content:"\\F061"}.fa-arrow-up:before{content:"\\F062"}.fa-arrow-down:before{content:"\\F063"}.fa-mail-forward:before,.fa-share:before{content:"\\F064"}.fa-expand:before{content:"\\F065"}.fa-compress:before{content:"\\F066"}.fa-plus:before{content:"\\F067"}.fa-minus:before{content:"\\F068"}.fa-asterisk:before{content:"\\F069"}.fa-exclamation-circle:before{content:"\\F06A"}.fa-gift:before{content:"\\F06B"}.fa-leaf:before{content:"\\F06C"}.fa-fire:before{content:"\\F06D"}.fa-eye:before{content:"\\F06E"}.fa-eye-slash:before{content:"\\F070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\\F071"}.fa-plane:before{content:"\\F072"}.fa-calendar:before{content:"\\F073"}.fa-random:before{content:"\\F074"}.fa-comment:before{content:"\\F075"}.fa-magnet:before{content:"\\F076"}.fa-chevron-up:before{content:"\\F077"}.fa-chevron-down:before{content:"\\F078"}.fa-retweet:before{content:"\\F079"}.fa-shopping-cart:before{content:"\\F07A"}.fa-folder:before{content:"\\F07B"}.fa-folder-open:before{content:"\\F07C"}.fa-arrows-v:before{content:"\\F07D"}.fa-arrows-h:before{content:"\\F07E"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\\F080"}.fa-twitter-square:before{content:"\\F081"}.fa-facebook-square:before{content:"\\F082"}.fa-camera-retro:before{content:"\\F083"}.fa-key:before{content:"\\F084"}.fa-cogs:before,.fa-gears:before{content:"\\F085"}.fa-comments:before{content:"\\F086"}.fa-thumbs-o-up:before{content:"\\F087"}.fa-thumbs-o-down:before{content:"\\F088"}.fa-star-half:before{content:"\\F089"}.fa-heart-o:before{content:"\\F08A"}.fa-sign-out:before{content:"\\F08B"}.fa-linkedin-square:before{content:"\\F08C"}.fa-thumb-tack:before{content:"\\F08D"}.fa-external-link:before{content:"\\F08E"}.fa-sign-in:before{content:"\\F090"}.fa-trophy:before{content:"\\F091"}.fa-github-square:before{content:"\\F092"}.fa-upload:before{content:"\\F093"}.fa-lemon-o:before{content:"\\F094"}.fa-phone:before{content:"\\F095"}.fa-square-o:before{content:"\\F096"}.fa-bookmark-o:before{content:"\\F097"}.fa-phone-square:before{content:"\\F098"}.fa-twitter:before{content:"\\F099"}.fa-facebook-f:before,.fa-facebook:before{content:"\\F09A"}.fa-github:before{content:"\\F09B"}.fa-unlock:before{content:"\\F09C"}.fa-credit-card:before{content:"\\F09D"}.fa-feed:before,.fa-rss:before{content:"\\F09E"}.fa-hdd-o:before{content:"\\F0A0"}.fa-bullhorn:before{content:"\\F0A1"}.fa-bell:before{content:"\\F0F3"}.fa-certificate:before{content:"\\F0A3"}.fa-hand-o-right:before{content:"\\F0A4"}.fa-hand-o-left:before{content:"\\F0A5"}.fa-hand-o-up:before{content:"\\F0A6"}.fa-hand-o-down:before{content:"\\F0A7"}.fa-arrow-circle-left:before{content:"\\F0A8"}.fa-arrow-circle-right:before{content:"\\F0A9"}.fa-arrow-circle-up:before{content:"\\F0AA"}.fa-arrow-circle-down:before{content:"\\F0AB"}.fa-globe:before{content:"\\F0AC"}.fa-wrench:before{content:"\\F0AD"}.fa-tasks:before{content:"\\F0AE"}.fa-filter:before{content:"\\F0B0"}.fa-briefcase:before{content:"\\F0B1"}.fa-arrows-alt:before{content:"\\F0B2"}.fa-group:before,.fa-users:before{content:"\\F0C0"}.fa-chain:before,.fa-link:before{content:"\\F0C1"}.fa-cloud:before{content:"\\F0C2"}.fa-flask:before{content:"\\F0C3"}.fa-cut:before,.fa-scissors:before{content:"\\F0C4"}.fa-copy:before,.fa-files-o:before{content:"\\F0C5"}.fa-paperclip:before{content:"\\F0C6"}.fa-floppy-o:before,.fa-save:before{content:"\\F0C7"}.fa-square:before{content:"\\F0C8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\\F0C9"}.fa-list-ul:before{content:"\\F0CA"}.fa-list-ol:before{content:"\\F0CB"}.fa-strikethrough:before{content:"\\F0CC"}.fa-underline:before{content:"\\F0CD"}.fa-table:before{content:"\\F0CE"}.fa-magic:before{content:"\\F0D0"}.fa-truck:before{content:"\\F0D1"}.fa-pinterest:before{content:"\\F0D2"}.fa-pinterest-square:before{content:"\\F0D3"}.fa-google-plus-square:before{content:"\\F0D4"}.fa-google-plus:before{content:"\\F0D5"}.fa-money:before{content:"\\F0D6"}.fa-caret-down:before{content:"\\F0D7"}.fa-caret-up:before{content:"\\F0D8"}.fa-caret-left:before{content:"\\F0D9"}.fa-caret-right:before{content:"\\F0DA"}.fa-columns:before{content:"\\F0DB"}.fa-sort:before,.fa-unsorted:before{content:"\\F0DC"}.fa-sort-desc:before,.fa-sort-down:before{content:"\\F0DD"}.fa-sort-asc:before,.fa-sort-up:before{content:"\\F0DE"}.fa-envelope:before{content:"\\F0E0"}.fa-linkedin:before{content:"\\F0E1"}.fa-rotate-left:before,.fa-undo:before{content:"\\F0E2"}.fa-gavel:before,.fa-legal:before{content:"\\F0E3"}.fa-dashboard:before,.fa-tachometer:before{content:"\\F0E4"}.fa-comment-o:before{content:"\\F0E5"}.fa-comments-o:before{content:"\\F0E6"}.fa-bolt:before,.fa-flash:before{content:"\\F0E7"}.fa-sitemap:before{content:"\\F0E8"}.fa-umbrella:before{content:"\\F0E9"}.fa-clipboard:before,.fa-paste:before{content:"\\F0EA"}.fa-lightbulb-o:before{content:"\\F0EB"}.fa-exchange:before{content:"\\F0EC"}.fa-cloud-download:before{content:"\\F0ED"}.fa-cloud-upload:before{content:"\\F0EE"}.fa-user-md:before{content:"\\F0F0"}.fa-stethoscope:before{content:"\\F0F1"}.fa-suitcase:before{content:"\\F0F2"}.fa-bell-o:before{content:"\\F0A2"}.fa-coffee:before{content:"\\F0F4"}.fa-cutlery:before{content:"\\F0F5"}.fa-file-text-o:before{content:"\\F0F6"}.fa-building-o:before{content:"\\F0F7"}.fa-hospital-o:before{content:"\\F0F8"}.fa-ambulance:before{content:"\\F0F9"}.fa-medkit:before{content:"\\F0FA"}.fa-fighter-jet:before{content:"\\F0FB"}.fa-beer:before{content:"\\F0FC"}.fa-h-square:before{content:"\\F0FD"}.fa-plus-square:before{content:"\\F0FE"}.fa-angle-double-left:before{content:"\\F100"}.fa-angle-double-right:before{content:"\\F101"}.fa-angle-double-up:before{content:"\\F102"}.fa-angle-double-down:before{content:"\\F103"}.fa-angle-left:before{content:"\\F104"}.fa-angle-right:before{content:"\\F105"}.fa-angle-up:before{content:"\\F106"}.fa-angle-down:before{content:"\\F107"}.fa-desktop:before{content:"\\F108"}.fa-laptop:before{content:"\\F109"}.fa-tablet:before{content:"\\F10A"}.fa-mobile-phone:before,.fa-mobile:before{content:"\\F10B"}.fa-circle-o:before{content:"\\F10C"}.fa-quote-left:before{content:"\\F10D"}.fa-quote-right:before{content:"\\F10E"}.fa-spinner:before{content:"\\F110"}.fa-circle:before{content:"\\F111"}.fa-mail-reply:before,.fa-reply:before{content:"\\F112"}.fa-github-alt:before{content:"\\F113"}.fa-folder-o:before{content:"\\F114"}.fa-folder-open-o:before{content:"\\F115"}.fa-smile-o:before{content:"\\F118"}.fa-frown-o:before{content:"\\F119"}.fa-meh-o:before{content:"\\F11A"}.fa-gamepad:before{content:"\\F11B"}.fa-keyboard-o:before{content:"\\F11C"}.fa-flag-o:before{content:"\\F11D"}.fa-flag-checkered:before{content:"\\F11E"}.fa-terminal:before{content:"\\F120"}.fa-code:before{content:"\\F121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\\F122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\\F123"}.fa-location-arrow:before{content:"\\F124"}.fa-crop:before{content:"\\F125"}.fa-code-fork:before{content:"\\F126"}.fa-chain-broken:before,.fa-unlink:before{content:"\\F127"}.fa-question:before{content:"\\F128"}.fa-info:before{content:"\\F129"}.fa-exclamation:before{content:"\\F12A"}.fa-superscript:before{content:"\\F12B"}.fa-subscript:before{content:"\\F12C"}.fa-eraser:before{content:"\\F12D"}.fa-puzzle-piece:before{content:"\\F12E"}.fa-microphone:before{content:"\\F130"}.fa-microphone-slash:before{content:"\\F131"}.fa-shield:before{content:"\\F132"}.fa-calendar-o:before{content:"\\F133"}.fa-fire-extinguisher:before{content:"\\F134"}.fa-rocket:before{content:"\\F135"}.fa-maxcdn:before{content:"\\F136"}.fa-chevron-circle-left:before{content:"\\F137"}.fa-chevron-circle-right:before{content:"\\F138"}.fa-chevron-circle-up:before{content:"\\F139"}.fa-chevron-circle-down:before{content:"\\F13A"}.fa-html5:before{content:"\\F13B"}.fa-css3:before{content:"\\F13C"}.fa-anchor:before{content:"\\F13D"}.fa-unlock-alt:before{content:"\\F13E"}.fa-bullseye:before{content:"\\F140"}.fa-ellipsis-h:before{content:"\\F141"}.fa-ellipsis-v:before{content:"\\F142"}.fa-rss-square:before{content:"\\F143"}.fa-play-circle:before{content:"\\F144"}.fa-ticket:before{content:"\\F145"}.fa-minus-square:before{content:"\\F146"}.fa-minus-square-o:before{content:"\\F147"}.fa-level-up:before{content:"\\F148"}.fa-level-down:before{content:"\\F149"}.fa-check-square:before{content:"\\F14A"}.fa-pencil-square:before{content:"\\F14B"}.fa-external-link-square:before{content:"\\F14C"}.fa-share-square:before{content:"\\F14D"}.fa-compass:before{content:"\\F14E"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\\F150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\\F151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\\F152"}.fa-eur:before,.fa-euro:before{content:"\\F153"}.fa-gbp:before{content:"\\F154"}.fa-dollar:before,.fa-usd:before{content:"\\F155"}.fa-inr:before,.fa-rupee:before{content:"\\F156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\\F157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\\F158"}.fa-krw:before,.fa-won:before{content:"\\F159"}.fa-bitcoin:before,.fa-btc:before{content:"\\F15A"}.fa-file:before{content:"\\F15B"}.fa-file-text:before{content:"\\F15C"}.fa-sort-alpha-asc:before{content:"\\F15D"}.fa-sort-alpha-desc:before{content:"\\F15E"}.fa-sort-amount-asc:before{content:"\\F160"}.fa-sort-amount-desc:before{content:"\\F161"}.fa-sort-numeric-asc:before{content:"\\F162"}.fa-sort-numeric-desc:before{content:"\\F163"}.fa-thumbs-up:before{content:"\\F164"}.fa-thumbs-down:before{content:"\\F165"}.fa-youtube-square:before{content:"\\F166"}.fa-youtube:before{content:"\\F167"}.fa-xing:before{content:"\\F168"}.fa-xing-square:before{content:"\\F169"}.fa-youtube-play:before{content:"\\F16A"}.fa-dropbox:before{content:"\\F16B"}.fa-stack-overflow:before{content:"\\F16C"}.fa-instagram:before{content:"\\F16D"}.fa-flickr:before{content:"\\F16E"}.fa-adn:before{content:"\\F170"}.fa-bitbucket:before{content:"\\F171"}.fa-bitbucket-square:before{content:"\\F172"}.fa-tumblr:before{content:"\\F173"}.fa-tumblr-square:before{content:"\\F174"}.fa-long-arrow-down:before{content:"\\F175"}.fa-long-arrow-up:before{content:"\\F176"}.fa-long-arrow-left:before{content:"\\F177"}.fa-long-arrow-right:before{content:"\\F178"}.fa-apple:before{content:"\\F179"}.fa-windows:before{content:"\\F17A"}.fa-android:before{content:"\\F17B"}.fa-linux:before{content:"\\F17C"}.fa-dribbble:before{content:"\\F17D"}.fa-skype:before{content:"\\F17E"}.fa-foursquare:before{content:"\\F180"}.fa-trello:before{content:"\\F181"}.fa-female:before{content:"\\F182"}.fa-male:before{content:"\\F183"}.fa-gittip:before,.fa-gratipay:before{content:"\\F184"}.fa-sun-o:before{content:"\\F185"}.fa-moon-o:before{content:"\\F186"}.fa-archive:before{content:"\\F187"}.fa-bug:before{content:"\\F188"}.fa-vk:before{content:"\\F189"}.fa-weibo:before{content:"\\F18A"}.fa-renren:before{content:"\\F18B"}.fa-pagelines:before{content:"\\F18C"}.fa-stack-exchange:before{content:"\\F18D"}.fa-arrow-circle-o-right:before{content:"\\F18E"}.fa-arrow-circle-o-left:before{content:"\\F190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\\F191"}.fa-dot-circle-o:before{content:"\\F192"}.fa-wheelchair:before{content:"\\F193"}.fa-vimeo-square:before{content:"\\F194"}.fa-try:before,.fa-turkish-lira:before{content:"\\F195"}.fa-plus-square-o:before{content:"\\F196"}.fa-space-shuttle:before{content:"\\F197"}.fa-slack:before{content:"\\F198"}.fa-envelope-square:before{content:"\\F199"}.fa-wordpress:before{content:"\\F19A"}.fa-openid:before{content:"\\F19B"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\\F19C"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\\F19D"}.fa-yahoo:before{content:"\\F19E"}.fa-google:before{content:"\\F1A0"}.fa-reddit:before{content:"\\F1A1"}.fa-reddit-square:before{content:"\\F1A2"}.fa-stumbleupon-circle:before{content:"\\F1A3"}.fa-stumbleupon:before{content:"\\F1A4"}.fa-delicious:before{content:"\\F1A5"}.fa-digg:before{content:"\\F1A6"}.fa-pied-piper-pp:before{content:"\\F1A7"}.fa-pied-piper-alt:before{content:"\\F1A8"}.fa-drupal:before{content:"\\F1A9"}.fa-joomla:before{content:"\\F1AA"}.fa-language:before{content:"\\F1AB"}.fa-fax:before{content:"\\F1AC"}.fa-building:before{content:"\\F1AD"}.fa-child:before{content:"\\F1AE"}.fa-paw:before{content:"\\F1B0"}.fa-spoon:before{content:"\\F1B1"}.fa-cube:before{content:"\\F1B2"}.fa-cubes:before{content:"\\F1B3"}.fa-behance:before{content:"\\F1B4"}.fa-behance-square:before{content:"\\F1B5"}.fa-steam:before{content:"\\F1B6"}.fa-steam-square:before{content:"\\F1B7"}.fa-recycle:before{content:"\\F1B8"}.fa-automobile:before,.fa-car:before{content:"\\F1B9"}.fa-cab:before,.fa-taxi:before{content:"\\F1BA"}.fa-tree:before{content:"\\F1BB"}.fa-spotify:before{content:"\\F1BC"}.fa-deviantart:before{content:"\\F1BD"}.fa-soundcloud:before{content:"\\F1BE"}.fa-database:before{content:"\\F1C0"}.fa-file-pdf-o:before{content:"\\F1C1"}.fa-file-word-o:before{content:"\\F1C2"}.fa-file-excel-o:before{content:"\\F1C3"}.fa-file-powerpoint-o:before{content:"\\F1C4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\\F1C5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\\F1C6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\\F1C7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\\F1C8"}.fa-file-code-o:before{content:"\\F1C9"}.fa-vine:before{content:"\\F1CA"}.fa-codepen:before{content:"\\F1CB"}.fa-jsfiddle:before{content:"\\F1CC"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\\F1CD"}.fa-circle-o-notch:before{content:"\\F1CE"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:"\\F1D0"}.fa-empire:before,.fa-ge:before{content:"\\F1D1"}.fa-git-square:before{content:"\\F1D2"}.fa-git:before{content:"\\F1D3"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:"\\F1D4"}.fa-tencent-weibo:before{content:"\\F1D5"}.fa-qq:before{content:"\\F1D6"}.fa-wechat:before,.fa-weixin:before{content:"\\F1D7"}.fa-paper-plane:before,.fa-send:before{content:"\\F1D8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\\F1D9"}.fa-history:before{content:"\\F1DA"}.fa-circle-thin:before{content:"\\F1DB"}.fa-header:before{content:"\\F1DC"}.fa-paragraph:before{content:"\\F1DD"}.fa-sliders:before{content:"\\F1DE"}.fa-share-alt:before{content:"\\F1E0"}.fa-share-alt-square:before{content:"\\F1E1"}.fa-bomb:before{content:"\\F1E2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\\F1E3"}.fa-tty:before{content:"\\F1E4"}.fa-binoculars:before{content:"\\F1E5"}.fa-plug:before{content:"\\F1E6"}.fa-slideshare:before{content:"\\F1E7"}.fa-twitch:before{content:"\\F1E8"}.fa-yelp:before{content:"\\F1E9"}.fa-newspaper-o:before{content:"\\F1EA"}.fa-wifi:before{content:"\\F1EB"}.fa-calculator:before{content:"\\F1EC"}.fa-paypal:before{content:"\\F1ED"}.fa-google-wallet:before{content:"\\F1EE"}.fa-cc-visa:before{content:"\\F1F0"}.fa-cc-mastercard:before{content:"\\F1F1"}.fa-cc-discover:before{content:"\\F1F2"}.fa-cc-amex:before{content:"\\F1F3"}.fa-cc-paypal:before{content:"\\F1F4"}.fa-cc-stripe:before{content:"\\F1F5"}.fa-bell-slash:before{content:"\\F1F6"}.fa-bell-slash-o:before{content:"\\F1F7"}.fa-trash:before{content:"\\F1F8"}.fa-copyright:before{content:"\\F1F9"}.fa-at:before{content:"\\F1FA"}.fa-eyedropper:before{content:"\\F1FB"}.fa-paint-brush:before{content:"\\F1FC"}.fa-birthday-cake:before{content:"\\F1FD"}.fa-area-chart:before{content:"\\F1FE"}.fa-pie-chart:before{content:"\\F200"}.fa-line-chart:before{content:"\\F201"}.fa-lastfm:before{content:"\\F202"}.fa-lastfm-square:before{content:"\\F203"}.fa-toggle-off:before{content:"\\F204"}.fa-toggle-on:before{content:"\\F205"}.fa-bicycle:before{content:"\\F206"}.fa-bus:before{content:"\\F207"}.fa-ioxhost:before{content:"\\F208"}.fa-angellist:before{content:"\\F209"}.fa-cc:before{content:"\\F20A"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\\F20B"}.fa-meanpath:before{content:"\\F20C"}.fa-buysellads:before{content:"\\F20D"}.fa-connectdevelop:before{content:"\\F20E"}.fa-dashcube:before{content:"\\F210"}.fa-forumbee:before{content:"\\F211"}.fa-leanpub:before{content:"\\F212"}.fa-sellsy:before{content:"\\F213"}.fa-shirtsinbulk:before{content:"\\F214"}.fa-simplybuilt:before{content:"\\F215"}.fa-skyatlas:before{content:"\\F216"}.fa-cart-plus:before{content:"\\F217"}.fa-cart-arrow-down:before{content:"\\F218"}.fa-diamond:before{content:"\\F219"}.fa-ship:before{content:"\\F21A"}.fa-user-secret:before{content:"\\F21B"}.fa-motorcycle:before{content:"\\F21C"}.fa-street-view:before{content:"\\F21D"}.fa-heartbeat:before{content:"\\F21E"}.fa-venus:before{content:"\\F221"}.fa-mars:before{content:"\\F222"}.fa-mercury:before{content:"\\F223"}.fa-intersex:before,.fa-transgender:before{content:"\\F224"}.fa-transgender-alt:before{content:"\\F225"}.fa-venus-double:before{content:"\\F226"}.fa-mars-double:before{content:"\\F227"}.fa-venus-mars:before{content:"\\F228"}.fa-mars-stroke:before{content:"\\F229"}.fa-mars-stroke-v:before{content:"\\F22A"}.fa-mars-stroke-h:before{content:"\\F22B"}.fa-neuter:before{content:"\\F22C"}.fa-genderless:before{content:"\\F22D"}.fa-facebook-official:before{content:"\\F230"}.fa-pinterest-p:before{content:"\\F231"}.fa-whatsapp:before{content:"\\F232"}.fa-server:before{content:"\\F233"}.fa-user-plus:before{content:"\\F234"}.fa-user-times:before{content:"\\F235"}.fa-bed:before,.fa-hotel:before{content:"\\F236"}.fa-viacoin:before{content:"\\F237"}.fa-train:before{content:"\\F238"}.fa-subway:before{content:"\\F239"}.fa-medium:before{content:"\\F23A"}.fa-y-combinator:before,.fa-yc:before{content:"\\F23B"}.fa-optin-monster:before{content:"\\F23C"}.fa-opencart:before{content:"\\F23D"}.fa-expeditedssl:before{content:"\\F23E"}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:"\\F240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\\F241"}.fa-battery-2:before,.fa-battery-half:before{content:"\\F242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\\F243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\\F244"}.fa-mouse-pointer:before{content:"\\F245"}.fa-i-cursor:before{content:"\\F246"}.fa-object-group:before{content:"\\F247"}.fa-object-ungroup:before{content:"\\F248"}.fa-sticky-note:before{content:"\\F249"}.fa-sticky-note-o:before{content:"\\F24A"}.fa-cc-jcb:before{content:"\\F24B"}.fa-cc-diners-club:before{content:"\\F24C"}.fa-clone:before{content:"\\F24D"}.fa-balance-scale:before{content:"\\F24E"}.fa-hourglass-o:before{content:"\\F250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\\F251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\\F252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\\F253"}.fa-hourglass:before{content:"\\F254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\\F255"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:"\\F256"}.fa-hand-scissors-o:before{content:"\\F257"}.fa-hand-lizard-o:before{content:"\\F258"}.fa-hand-spock-o:before{content:"\\F259"}.fa-hand-pointer-o:before{content:"\\F25A"}.fa-hand-peace-o:before{content:"\\F25B"}.fa-trademark:before{content:"\\F25C"}.fa-registered:before{content:"\\F25D"}.fa-creative-commons:before{content:"\\F25E"}.fa-gg:before{content:"\\F260"}.fa-gg-circle:before{content:"\\F261"}.fa-tripadvisor:before{content:"\\F262"}.fa-odnoklassniki:before{content:"\\F263"}.fa-odnoklassniki-square:before{content:"\\F264"}.fa-get-pocket:before{content:"\\F265"}.fa-wikipedia-w:before{content:"\\F266"}.fa-safari:before{content:"\\F267"}.fa-chrome:before{content:"\\F268"}.fa-firefox:before{content:"\\F269"}.fa-opera:before{content:"\\F26A"}.fa-internet-explorer:before{content:"\\F26B"}.fa-television:before,.fa-tv:before{content:"\\F26C"}.fa-contao:before{content:"\\F26D"}.fa-500px:before{content:"\\F26E"}.fa-amazon:before{content:"\\F270"}.fa-calendar-plus-o:before{content:"\\F271"}.fa-calendar-minus-o:before{content:"\\F272"}.fa-calendar-times-o:before{content:"\\F273"}.fa-calendar-check-o:before{content:"\\F274"}.fa-industry:before{content:"\\F275"}.fa-map-pin:before{content:"\\F276"}.fa-map-signs:before{content:"\\F277"}.fa-map-o:before{content:"\\F278"}.fa-map:before{content:"\\F279"}.fa-commenting:before{content:"\\F27A"}.fa-commenting-o:before{content:"\\F27B"}.fa-houzz:before{content:"\\F27C"}.fa-vimeo:before{content:"\\F27D"}.fa-black-tie:before{content:"\\F27E"}.fa-fonticons:before{content:"\\F280"}.fa-reddit-alien:before{content:"\\F281"}.fa-edge:before{content:"\\F282"}.fa-credit-card-alt:before{content:"\\F283"}.fa-codiepie:before{content:"\\F284"}.fa-modx:before{content:"\\F285"}.fa-fort-awesome:before{content:"\\F286"}.fa-usb:before{content:"\\F287"}.fa-product-hunt:before{content:"\\F288"}.fa-mixcloud:before{content:"\\F289"}.fa-scribd:before{content:"\\F28A"}.fa-pause-circle:before{content:"\\F28B"}.fa-pause-circle-o:before{content:"\\F28C"}.fa-stop-circle:before{content:"\\F28D"}.fa-stop-circle-o:before{content:"\\F28E"}.fa-shopping-bag:before{content:"\\F290"}.fa-shopping-basket:before{content:"\\F291"}.fa-hashtag:before{content:"\\F292"}.fa-bluetooth:before{content:"\\F293"}.fa-bluetooth-b:before{content:"\\F294"}.fa-percent:before{content:"\\F295"}.fa-gitlab:before{content:"\\F296"}.fa-wpbeginner:before{content:"\\F297"}.fa-wpforms:before{content:"\\F298"}.fa-envira:before{content:"\\F299"}.fa-universal-access:before{content:"\\F29A"}.fa-wheelchair-alt:before{content:"\\F29B"}.fa-question-circle-o:before{content:"\\F29C"}.fa-blind:before{content:"\\F29D"}.fa-audio-description:before{content:"\\F29E"}.fa-volume-control-phone:before{content:"\\F2A0"}.fa-braille:before{content:"\\F2A1"}.fa-assistive-listening-systems:before{content:"\\F2A2"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:"\\F2A3"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:"\\F2A4"}.fa-glide:before{content:"\\F2A5"}.fa-glide-g:before{content:"\\F2A6"}.fa-sign-language:before,.fa-signing:before{content:"\\F2A7"}.fa-low-vision:before{content:"\\F2A8"}.fa-viadeo:before{content:"\\F2A9"}.fa-viadeo-square:before{content:"\\F2AA"}.fa-snapchat:before{content:"\\F2AB"}.fa-snapchat-ghost:before{content:"\\F2AC"}.fa-snapchat-square:before{content:"\\F2AD"}.fa-pied-piper:before{content:"\\F2AE"}.fa-first-order:before{content:"\\F2B0"}.fa-yoast:before{content:"\\F2B1"}.fa-themeisle:before{content:"\\F2B2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\\F2B3"}.fa-fa:before,.fa-font-awesome:before{content:"\\F2B4"}.fa-handshake-o:before{content:"\\F2B5"}.fa-envelope-open:before{content:"\\F2B6"}.fa-envelope-open-o:before{content:"\\F2B7"}.fa-linode:before{content:"\\F2B8"}.fa-address-book:before{content:"\\F2B9"}.fa-address-book-o:before{content:"\\F2BA"}.fa-address-card:before,.fa-vcard:before{content:"\\F2BB"}.fa-address-card-o:before,.fa-vcard-o:before{content:"\\F2BC"}.fa-user-circle:before{content:"\\F2BD"}.fa-user-circle-o:before{content:"\\F2BE"}.fa-user-o:before{content:"\\F2C0"}.fa-id-badge:before{content:"\\F2C1"}.fa-drivers-license:before,.fa-id-card:before{content:"\\F2C2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\\F2C3"}.fa-quora:before{content:"\\F2C4"}.fa-free-code-camp:before{content:"\\F2C5"}.fa-telegram:before{content:"\\F2C6"}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:"\\F2C7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\\F2C8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\\F2C9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\\F2CA"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\\F2CB"}.fa-shower:before{content:"\\F2CC"}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:"\\F2CD"}.fa-podcast:before{content:"\\F2CE"}.fa-window-maximize:before{content:"\\F2D0"}.fa-window-minimize:before{content:"\\F2D1"}.fa-window-restore:before{content:"\\F2D2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\\F2D3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\\F2D4"}.fa-bandcamp:before{content:"\\F2D5"}.fa-grav:before{content:"\\F2D6"}.fa-etsy:before{content:"\\F2D7"}.fa-imdb:before{content:"\\F2D8"}.fa-ravelry:before{content:"\\F2D9"}.fa-eercast:before{content:"\\F2DA"}.fa-microchip:before{content:"\\F2DB"}.fa-snowflake-o:before{content:"\\F2DC"}.fa-superpowers:before{content:"\\F2DD"}.fa-wpexplorer:before{content:"\\F2DE"}.fa-meetup:before{content:"\\F2E0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}',""])},function(t,e,n){e=t.exports=n(31)(void 0),e.push([t.i,"/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}",""])},function(t,e,n){t.exports=n.p+"fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713"},function(t,e,n){t.exports=n.p+"fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713"},function(t,e,n){t.exports=n.p+"fontawesome-webfont.svg?912ec66d7572ff821749319396470bde"},function(t,e,n){t.exports=n.p+"fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9"},function(t,e,n){t.exports=n.p+"fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e"},function(t,e,n){t.exports=n.p+"fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad"},function(t,e,n){(function(e){!function(e){"use strict";function n(t,e,n,r){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype),c=new d(r||[]);return a._invoke=s(t,n,c),a}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function c(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function f(t){function n(e,o,i,a){var c=r(t[e],t,o);if("throw"!==c.type){var f=c.arg,s=f.value;return s&&"object"==typeof s&&g.call(s,"__await")?Promise.resolve(s.__await).then(function(t){n("next",t,i,a)},function(t){n("throw",t,i,a)}):Promise.resolve(s).then(function(t){f.value=t,i(f)},a)}a(c.arg)}function o(t,e){function r(){return new Promise(function(r,o){n(t,e,r,o)})}return i=i?i.then(r,r):r()}"object"==typeof e.process&&e.process.domain&&(n=e.process.domain.bind(n));var i;this._invoke=o}function s(t,e,n){var o=k;return function(i,a){if(o===A)throw new Error("Generator is already running");if(o===S){if("throw"===i)throw a;return v()}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var f=u(c,n);if(f){if(f===O)continue;return f}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===k)throw o=S,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=A;var s=r(t,e,n);if("normal"===s.type){if(o=n.done?S:E,s.arg===O)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=S,n.method="throw",n.arg=s.arg)}}}function u(t,e){var n=t.iterator[e.method];if(n===b){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=b,u(t,e),"throw"===e.method))return O;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,O;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=b),e.delegate=null,O):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,O)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function h(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=g.call(o,"catchLoc"),c=g.call(o,"finallyLoc");if(a&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:h(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=b),O}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,n(90))},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o))return t;var i;return i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")"})}},function(t,e,n){function r(t){n(343)}var o=n(61)(n(128),n(338),r,"data-v-be22847c",null);t.exports=o.exports},function(t,e,n){function r(t){n(339)}var o=n(61)(n(129),n(335),r,"data-v-0f640968",null);t.exports=o.exports},function(t,e,n){function r(t){n(340)}var o=n(61)(n(130),n(336),r,"data-v-1ddca236",null);t.exports=o.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"loader",on:{change:t.change,dragover:t.dragover,drop:t.drop}},[t._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[t._v("Drop image here or\n "),n("label",{staticClass:"browse"},[t._v("browse...\n "),n("input",{staticClass:"sr-only",attrs:{id:"file",type:"file",accept:".jpg,.jpeg,.png,.gif,.bmp,.tiff",capture:""}})])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar"},[n("nav",{staticClass:"nav",on:{click:t.click}},[n("label",{directives:[{name:"show",rawName:"v-show",value:!t.loader.loaded,expression:"!loader.loaded"}],staticClass:"nav__button",attrs:{for:"file",title:"Upload",role:"button"}},[n("span",{staticClass:"fa fa-upload"})]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.editor.cropped,expression:"editor.cropped"}],staticClass:"nav__button",attrs:{type:"button","data-action":"restore",title:"Undo (Ctrl + Z)"}},[n("span",{staticClass:"fa fa-undo"})]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.loader.loaded&&!t.editor.cropping,expression:"loader.loaded && !editor.cropping"}],staticClass:"nav__button nav__button--danger",attrs:{type:"button","data-action":"remove",title:"Delete (Delete)"}},[n("span",{staticClass:"fa fa-trash"})]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.editor.cropping,expression:"editor.cropping"}],staticClass:"nav__button nav__button--danger",attrs:{type:"button","data-action":"clear",title:"Cancel (Esc)"}},[n("span",{staticClass:"fa fa-ban"})]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.editor.cropping,expression:"editor.cropping"}],staticClass:"nav__button nav__button--success",attrs:{type:"button","data-action":"crop",title:"OK (Enter)"}},[n("span",{staticClass:"fa fa-check"})]),t._v(" "),t.downloadable&&t.loader.loaded?n("a",{staticClass:"nav__button nav__button--success",attrs:{title:"Download",download:t.loader.name,href:t.loader.url}},[n("span",{staticClass:"fa fa-download"})]):t._e(),t._v(" "),t._m(0)])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"nav__button",attrs:{href:"https://github.com/fengyuanchen/photo-editor",title:"View on GitHub"}},[n("span",{staticClass:"fa fa-github"})])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app"},[n("header",{staticClass:"header"},[n("span",{staticClass:"title"},[t._v("Photo Editor")]),t._v(" "),n("navbar",{on:{change:t.change}})],1),t._v(" "),n("main",{staticClass:"main"},[t.$store.state.loader.loaded?n("editor",{ref:"editor"}):n("loader",{ref:"loader"})],1)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"editor"},[n("div",{staticClass:"canvas",on:{dblclick:t.dblclick}},[n("img",{ref:"image",attrs:{alt:t.loader.name,src:t.loader.url},on:{load:t.start}})]),t._v(" "),t.cropper?n("div",{staticClass:"toolbar",on:{click:t.click}},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),t._m(7)]):t._e()])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"toolbar__button",attrs:{"data-action":"move",title:"Move (M)"}},[n("span",{staticClass:"fa fa-arrows"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"toolbar__button",attrs:{"data-action":"crop",title:"Crop (C)"}},[n("span",{staticClass:"fa fa-crop"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"toolbar__button",attrs:{"data-action":"zoom-in",title:"Zoom In (I)"}},[n("span",{staticClass:"fa fa-search-plus"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"toolbar__button",attrs:{"data-action":"zoom-out",title:"Zoom Out (O)"}},[n("span",{staticClass:"fa fa-search-minus"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"toolbar__button",attrs:{"data-action":"rotate-left",title:"Rotate Left (L)"}},[n("span",{staticClass:"fa fa-rotate-left"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"toolbar__button",attrs:{"data-action":"rotate-right",title:"Rotate Right (R)"}},[n("span",{staticClass:"fa fa-rotate-right"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"toolbar__button",attrs:{"data-action":"flip-horizontal",title:"Flip Horizontal (H)"}},[n("span",{staticClass:"fa fa-arrows-h"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"toolbar__button",attrs:{"data-action":"flip-vertical",title:"Flip Vertical (V)"}},[n("span",{staticClass:"fa fa-arrows-v"})])}]}},function(t,e,n){var r=n(316);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(49)("3534992a",r,!0)},function(t,e,n){var r=n(317);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(49)("4bc5b7c7",r,!0)},function(t,e,n){var r=n(318);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(49)("3787199e",r,!0)},function(t,e,n){var r=n(319);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(49)("402ffb82",r,!0)},function(t,e,n){var r=n(320);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(49)("7473e685",r,!0)},function(t,e){t.exports=function(t,e){for(var n=[],r={},o=0;o=2){var n=t.config._lifecycleHooks.indexOf("init")>-1;t.mixin(n?{init:e}:{beforeCreate:e})}else{var r=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,r.call(this,t)}}},k="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,E=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},A={namespaced:{}};A.namespaced.get=function(){return!!this._rawModule.namespaced},E.prototype.addChild=function(t,e){this._children[t]=e},E.prototype.removeChild=function(t){delete this._children[t]},E.prototype.getChild=function(t){return this._children[t]},E.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},E.prototype.forEachChild=function(t){o(this._children,t)},E.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},E.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},E.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(E.prototype,A);var S=function(t){var e=this;this.root=new E(t,!1),t.modules&&o(t.modules,function(t,n){e.register([n],t,!1)})};S.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},S.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},S.prototype.update=function(t){f(this.root,t)},S.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.get(t.slice(0,-1)),a=new E(e,n);i.addChild(t[t.length-1],a),e.modules&&o(e.modules,function(e,o){r.register(t.concat(o),e,n)})},S.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var O,D=function(t){var e=this;void 0===t&&(t={}),c(O,"must call Vue.use(Vuex) before creating a store instance."),c("undefined"!=typeof Promise,"vuex requires a Promise polyfill in this browser.");var n=t.state;void 0===n&&(n={});var o=t.plugins;void 0===o&&(o=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new S(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new O;var a=this,f=this,s=f.dispatch,p=f.commit;this.dispatch=function(t,e){return s.call(a,t,e)},this.commit=function(t,e,n){return p.call(a,t,e,n)},this.strict=i,l(this,n,[],this._modules.root),u(this,n),o.concat(r).forEach(function(t){return t(e)})},M={state:{}};M.state.get=function(){return this._vm._data.$$state},M.state.set=function(t){c(!1,"Use store.replaceState() to explicit replace store state.")},D.prototype.commit=function(t,e,n){var r=this,o=y(t,e,n),i=o.type,a=o.payload,c=o.options,f={type:i,payload:a},s=this._mutations[i];if(!s)return void console.error("[vuex] unknown mutation type: "+i);this._withCommit(function(){s.forEach(function(t){t(a)})}),this._subscribers.forEach(function(t){return t(f,r.state)}),c&&c.silent&&console.warn("[vuex] mutation type: "+i+". Silent option has been removed. Use the filter functionality in the vue-devtools")},D.prototype.dispatch=function(t,e){var n=y(t,e),r=n.type,o=n.payload,i=this._actions[r];return i?i.length>1?Promise.all(i.map(function(t){return t(o)})):i[0](o):void console.error("[vuex] unknown action type: "+r)},D.prototype.subscribe=function(t){var e=this._subscribers;return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}},D.prototype.watch=function(t,e,n){var r=this;return c("function"==typeof t,"store.watch only accepts a function."),this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},D.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},D.prototype.registerModule=function(t,e){"string"==typeof t&&(t=[t]),c(Array.isArray(t),"module path must be a string or an Array."),this._modules.register(t,e),l(this,this.state,t,this._modules.get(t)),u(this,this.state)},D.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),c(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var n=g(e.state,t.slice(0,-1));O.delete(n,t[t.length-1])}),s(this)},D.prototype.hotUpdate=function(t){this._modules.update(t),s(this,!0)},D.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(D.prototype,M),"undefined"!=typeof window&&window.Vue&&w(window.Vue);var j=F(function(t,e){var n={};return _(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=x(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0}),n}),T=F(function(t,e){var n={};return _(e).forEach(function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(!t||x(this.$store,"mapMutations",t))return this.$store.commit.apply(this.$store,[o].concat(e))}}),n}),B=F(function(t,e){var n={};return _(e).forEach(function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||x(this.$store,"mapGetters",t))return o in this.$store.getters?this.$store.getters[o]:void console.error("[vuex] unknown getter: "+o)},n[r].vuex=!0}),n}),$=F(function(t,e){var n={};return _(e).forEach(function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(!t||x(this.$store,"mapActions",t))return this.$store.dispatch.apply(this.$store,[o].concat(e))}}),n}),N={Store:D,install:w,version:"2.3.0",mapState:j,mapMutations:T,mapGetters:B,mapActions:$};e.default=N}]); \ No newline at end of file diff --git a/dist/fontawesome-webfont.eot b/dist/fontawesome-webfont.eot new file mode 100644 index 0000000..e9f60ca Binary files /dev/null and b/dist/fontawesome-webfont.eot differ diff --git a/dist/fontawesome-webfont.svg b/dist/fontawesome-webfont.svg new file mode 100644 index 0000000..855c845 --- /dev/null +++ b/dist/fontawesome-webfont.svg @@ -0,0 +1,2671 @@ + + + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/fonts/fontawesome-webfont.ttf b/dist/fontawesome-webfont.ttf similarity index 68% rename from fonts/fontawesome-webfont.ttf rename to dist/fontawesome-webfont.ttf index 26dea79..35acda2 100644 Binary files a/fonts/fontawesome-webfont.ttf and b/dist/fontawesome-webfont.ttf differ diff --git a/dist/fontawesome-webfont.woff b/dist/fontawesome-webfont.woff new file mode 100644 index 0000000..400014a Binary files /dev/null and b/dist/fontawesome-webfont.woff differ diff --git a/dist/fontawesome-webfont.woff2 b/dist/fontawesome-webfont.woff2 new file mode 100644 index 0000000..4d13fc6 Binary files /dev/null and b/dist/fontawesome-webfont.woff2 differ diff --git a/fonts/FontAwesome.otf b/fonts/FontAwesome.otf deleted file mode 100644 index 3ed7f8b..0000000 Binary files a/fonts/FontAwesome.otf and /dev/null differ diff --git a/fonts/fontawesome-webfont.eot b/fonts/fontawesome-webfont.eot deleted file mode 100644 index 9b6afae..0000000 Binary files a/fonts/fontawesome-webfont.eot and /dev/null differ diff --git a/fonts/fontawesome-webfont.svg b/fonts/fontawesome-webfont.svg deleted file mode 100644 index d05688e..0000000 --- a/fonts/fontawesome-webfont.svg +++ /dev/null @@ -1,655 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/fonts/fontawesome-webfont.woff b/fonts/fontawesome-webfont.woff deleted file mode 100644 index dc35ce3..0000000 Binary files a/fonts/fontawesome-webfont.woff and /dev/null differ diff --git a/fonts/fontawesome-webfont.woff2 b/fonts/fontawesome-webfont.woff2 deleted file mode 100644 index 500e517..0000000 Binary files a/fonts/fontawesome-webfont.woff2 and /dev/null differ diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index ada2fff..0000000 --- a/gulpfile.js +++ /dev/null @@ -1,147 +0,0 @@ -'use strict'; - -var gulp = require('gulp'); -var webpack = require('webpack'); -var plugins = require('gulp-load-plugins')(); -var scripts = { - entry: './src/js/main.js', - output: './js/main.js', - src: './src/js/**', - dest: './js' - }; -var styles = { - entry: './src/css/main.scss', - src: './src/css/**', - dest: './css' - }; -var fonts = { - dest: './fonts' - }; -var html = { - entry: './src/index.jade', - src: './src/**', - dest: './' - }; - -gulp.task('eslint', function() { - return gulp.src(scripts.src) - .pipe(plugins.eslint()) - .pipe(plugins.eslint.format()); -}); - -gulp.task('webpack', function(callback) { - webpack({ - entry: scripts.entry, - output: { - filename: scripts.output - }, - externals: { - 'vue': 'window.Vue', - 'cropper': 'window.Cropper' - }, - module: { - loaders: [ - { - test: /\.js$/, - exclude: /node_modules/, - loader: 'babel-loader', - query: { - presets: ['es2015'] - } - } - ] - } - }, function(err, stats) { - if(err) { - throw new plugins.util.PluginError('webpack', err); - } - - plugins.util.log('[webpack]', stats.toString()); - - callback(); - }); -}); - -gulp.task('js', ['eslint', 'webpack'], function() { - return gulp.src(scripts.output) - .pipe(plugins.uglify()) - .pipe(gulp.dest(scripts.dest)); -}); - -gulp.task('sass', function() { - return gulp.src(styles.entry) - .pipe(plugins.sass({ - outputStyle: 'expanded' - })) - .pipe(gulp.dest(styles.dest)); -}); - -gulp.task('css', function() { - return gulp.src(styles.entry) - .pipe(plugins.sass({ - outputStyle: 'compressed' - })) - .pipe(plugins.autoprefixer({ - browsers: [ - 'Android 2.3', - 'Android >= 4', - 'Chrome >= 35', - 'Firefox >= 31', - 'Edge >= 12', - 'Explorer >= 9', - 'iOS >= 7', - 'Opera >= 12', - 'Safari >= 7.1' - ] - })) - .pipe(gulp.dest(styles.dest)); -}); - -gulp.task('jade', function() { - return gulp.src(html.entry) - .pipe(plugins.jade({ - pretty: true - })) - .pipe(gulp.dest(html.dest)); -}); - -gulp.task('html', function() { - return gulp.src(html.entry) - .pipe(plugins.jade()) - .pipe(gulp.dest(html.dest)); -}); - -gulp.task('asset:font', function() { - return gulp.src([ - 'node_modules/font-awesome/fonts/*' - ]) - .pipe(gulp.dest(fonts.dest)); -}); - -gulp.task('asset:css', function() { - return gulp.src([ - 'node_modules/cropperjs/dist/cropper.min.css', - 'node_modules/font-awesome/css/font-awesome.min.css' - ]) - .pipe(gulp.dest(styles.dest)); -}); - -gulp.task('asset:js', function() { - return gulp.src([ - 'node_modules/vue/dist/vue.min.js', - 'node_modules/cropperjs/dist/cropper.min.js' - ]) - .pipe(gulp.dest(scripts.dest)); -}); - -gulp.task('asset', ['asset:font', 'asset:css', 'asset:js']); - -gulp.task('release', ['js', 'css', 'html', 'asset']); - -gulp.task('watch', function () { - gulp.watch(scripts.src, ['webpack']); - gulp.watch(styles.src, ['sass']); - gulp.watch(html.src, ['jade']); -}); - -gulp.task('default', ['watch']); diff --git a/index.html b/index.html index 87d00e3..51da63f 100644 --- a/index.html +++ b/index.html @@ -1 +1,17 @@ -Photo Editor
Photo Editor
\ No newline at end of file + + + + + + + + + + Photo Editor + + +
+ + + + diff --git a/js/cropper.min.js b/js/cropper.min.js deleted file mode 100644 index a9f240d..0000000 --- a/js/cropper.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * Cropper.js v0.5.5 - * https://github.com/fengyuanchen/cropperjs - * - * Copyright (c) 2015-2016 Fengyuan Chen - * Released under the MIT license - * - * Date: 2016-01-01T08:10:31.084Z - */ -!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("Cropper requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function i(t){return Kt.call(t).slice(8,-1).toLowerCase()}function a(t){return"number"==typeof t&&!isNaN(t)}function n(t){return"undefined"==typeof t}function o(t){return"object"==typeof t&&null!==t}function r(t){var e,i;if(!o(t))return!1;try{return e=t.constructor,i=e.prototype,e&&i&&Gt.call(i,"isPrototypeOf")}catch(a){return!1}}function h(t){return"function"===i(t)}function l(t){return $.isArray?$.isArray(t):"array"===i(t)}function c(t,e){return e=e>=0?e:0,$.from?$.from(t).slice(e):Jt.call(t,e)}function s(t){return"string"==typeof t&&(t=t.trim?t.trim():t.replace(bt,"$1")),t}function d(t,e){var i,n;if(t&&h(e))if(l(t)||a(t.length))for(n=0,i=t.length;i>n&&e.call(t,t[n],n,t)!==!1;n++);else if(o(t))for(n in t)if(t.hasOwnProperty(n)&&e.call(t,t[n],n,t)===!1)break;return t}function p(t){var e;if(arguments.length>1){if(e=c(arguments),Z.assign)return Z.assign.apply(Z,e);e.shift(),d(e,function(e){d(e,function(e,i){t[i]=e})})}return t}function u(t,e){var i=c(arguments,2);return function(){return t.apply(e,i.concat(c(arguments)))}}function g(t,e){var i=t.style;d(e,function(t,e){vt.test(e)&&a(t)&&(t+="px"),i[e]=t})}function f(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function m(t,e){var i;return a(t.length)?d(t,function(t){m(t,e)}):t.classList?t.classList.add(e):(i=s(t.className),void(i?i.indexOf(e)<0&&(t.className=i+" "+e):t.className=e))}function v(t,e){return a(t.length)?d(t,function(t){v(t,e)}):t.classList?t.classList.remove(e):void(t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function w(t,e,i){return a(t.length)?d(t,function(t){w(t,e,i)}):void(i?m(t,e):v(t,e))}function b(t,e){return o(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-"+e)}function x(t,e,i){o(i)&&n(t[e])?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-"+e,i)}function D(t,e){o(t[e])?delete t[e]:t.dataset?delete t.dataset[e]:t.removeAttribute("data-"+e)}function C(t,e,i){var a=s(e).split(xt);return a.length>1?d(a,function(e){C(t,e,i)}):void(t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent&&t.attachEvent("on"+e,i))}function y(t,e,i){var a=s(e).split(xt);return a.length>1?d(a,function(e){y(t,e,i)}):void(t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent&&t.detachEvent("on"+e,i))}function B(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function T(e){var i,n=e||t.event;return n.target||(n.target=n.srcElement||q),a(n.pageX)||(i=q.documentElement,n.pageX=n.clientX+(t.scrollX||i&&i.scrollLeft||0)-(i&&i.clientLeft||0),n.pageY=n.clientY+(t.scrollY||i&&i.scrollTop||0)-(i&&i.clientTop||0)),n}function L(e){var i=q.documentElement,a=e.getBoundingClientRect();return{left:a.left+(t.scrollX||i&&i.scrollLeft||0)-(i&&i.clientLeft||0),top:a.top+(t.scrollY||i&&i.scrollTop||0)-(i&&i.clientTop||0)}}function X(t){var e=t.length,i=0,a=0;return e&&(d(t,function(t){i+=t.pageX,a+=t.pageY}),i/=e,a/=e),{pageX:i,pageY:a}}function Y(t,e){return t.getElementsByTagName(e)}function k(t,e){return t.getElementsByClassName?t.getElementsByClassName(e):t.querySelectorAll("."+e)}function W(t){return q.createElement(t)}function H(t,e){t.appendChild(e)}function M(t){t.parentNode&&t.parentNode.removeChild(t)}function E(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function O(t){var e=t.match(wt);return e&&(e[1]!==F.protocol||e[2]!==F.hostname||e[3]!==F.port)}function z(t){var e="timestamp="+(new Date).getTime();return t+(-1===t.indexOf("?")?"?":"&")+e}function R(t,e){var i;return t.naturalWidth?e(t.naturalWidth,t.naturalHeight):(i=W("img"),i.onload=function(){e(this.width,this.height)},void(i.src=t.src))}function N(t){var e=[],i=t.rotate,n=t.scaleX,o=t.scaleY;return a(i)&&e.push("rotate("+i+"deg)"),a(n)&&a(o)&&e.push("scale("+n+","+o+")"),e.length?e.join(" "):"none"}function U(t,e){var i,a,n=_t(t.degree)%180,o=(n>90?180-n:n)*Zt/180,r=Pt(o),h=jt(o),l=t.width,c=t.height,s=t.aspectRatio;return e?(i=l/(h+r/s),a=i/s):(i=l*h+c*r,a=l*r+c*h),{width:i,height:a}}function A(t,e){var i,n,o,r=W("canvas"),h=r.getContext("2d"),l=0,c=0,s=e.naturalWidth,d=e.naturalHeight,p=e.rotate,u=e.scaleX,g=e.scaleY,f=a(u)&&a(g)&&(1!==u||1!==g),m=a(p)&&0!==p,v=m||f,w=s,b=d;return f&&(i=s/2,n=d/2),m&&(o=U({width:s,height:d,degree:p}),w=o.width,b=o.height,i=o.width/2,n=o.height/2),r.width=w,r.height=b,v&&(l=-s/2,c=-d/2,h.save(),h.translate(i,n)),m&&h.rotate(p*Zt/180),f&&h.scale(u,g),h.drawImage(t,Vt(l),Vt(c),Vt(s),Vt(d)),v&&h.restore(),r}function I(t,e,i){var a="",n=e;for(i+=e;i>n;n++)a+=Qt(t.getUint8(n));return a}function S(t){var e,i,a,n,o,r,h,l,c,s,d=new DataView(t),p=d.byteLength;if(255===d.getUint8(0)&&216===d.getUint8(1))for(c=2;p>c;){if(255===d.getUint8(c)&&225===d.getUint8(c+1)){h=c;break}c++}if(h&&(i=h+4,a=h+10,"Exif"===I(d,i,4)&&(r=d.getUint16(a),o=18761===r,(o||19789===r)&&42===d.getUint16(a+2,o)&&(n=d.getUint32(a+4,o),n>=8&&(l=a+n)))),l)for(p=d.getUint16(l,o),s=0;p>s;s++)if(c=l+12*s+2,274===d.getUint16(c,o)){c+=8,e=d.getUint16(c,o),d.setUint16(c,1,o);break}return e}function _(t){var e,i=t.replace(Ct,""),a=atob(i),n=a.length,o=new V(n),r=new Uint8Array(o);for(e=0;n>e;e++)r[e]=a.charCodeAt(e);return o}function P(t){var e,i=new Uint8Array(t),a=i.length,n="";for(e=0;a>e;e++)n+=Qt(i[e]);return"data:image/jpeg;base64,"+btoa(n)}function j(t,e){var i=this;i.element=t,i.options=p({},j.DEFAULTS,r(e)&&e),i.ready=!1,i.built=!1,i.complete=!1,i.rotated=!1,i.cropped=!1,i.disabled=!1,i.replaced=!1,i.limited=!1,i.wheeling=!1,i.isImg=!1,i.originalUrl="",i.canvasData=null,i.cropBoxData=null,i.previews=null,i.init()}var q=t.document,F=t.location,V=t.ArrayBuffer,Z=t.Object,$=t.Array,K=t.String,G=t.Number,J=t.Math,Q="cropper",tt=Q+"-modal",et=Q+"-hide",it=Q+"-hidden",at=Q+"-invisible",nt=Q+"-move",ot=Q+"-crop",rt=Q+"-disabled",ht=Q+"-bg",lt="mousedown touchstart pointerdown MSPointerDown",ct="mousemove touchmove pointermove MSPointerMove",st="mouseup touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel",dt="wheel mousewheel DOMMouseScroll",pt="dblclick",ut="resize",gt="error",ft="load",mt=/e|w|s|n|se|sw|ne|nw|all|crop|move|zoom/,vt=/width|height|left|top|marginLeft|marginTop/,wt=/^(https?:)\/\/([^\:\/\?#]+):?(\d*)/i,bt=/^\s+(.*)\s+$/,xt=/\s+/,Dt=/^data\:/,Ct=/^data\:([^\;]+)\;base64,/,yt=/^data\:image\/jpeg.*;base64,/,Bt="preview",Tt="action",Lt="e",Xt="w",Yt="s",kt="n",Wt="se",Ht="sw",Mt="ne",Et="nw",Ot="all",zt="crop",Rt="move",Nt="zoom",Ut="none",At=!!q.createElement("canvas").getContext,It=J.min,St=J.max,_t=J.abs,Pt=J.sin,jt=J.cos,qt=J.sqrt,Ft=J.round,Vt=J.floor,Zt=J.PI,$t=Z.prototype,Kt=$t.toString,Gt=$t.hasOwnProperty,Jt=$.prototype.slice,Qt=K.fromCharCode;j.prototype={constructor:j,init:function(){var t,e=this,i=e.element,a=i.tagName.toLowerCase();if(!b(i,Q)){if(x(i,Q,e),"img"===a){if(e.isImg=!0,e.originalUrl=t=i.getAttribute("src"),!t)return;t=i.src}else"canvas"===a&&At&&(t=i.toDataURL());e.load(t)}},load:function(t){var e,i=this,a=i.options;if(t&&(!h(a.build)||a.build.call(i.element)!==!1)){if(i.url=t,i.imageData={},!a.checkOrientation||!V)return i.clone();if(Dt.test(t))return yt.test(t)?i.read(_(t)):i.clone();e=new XMLHttpRequest,e.onerror=e.onabort=function(){i.clone()},e.onload=function(){i.read(this.response)},e.open("get",t),e.responseType="arraybuffer",e.send()}},read:function(t){var e,i,a,n=this,o=n.options,r=S(t),h=n.imageData;if(r>1)switch(n.url=P(t),r){case 2:i=-1;break;case 3:e=-180;break;case 4:a=-1;break;case 5:e=90,a=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90}o.rotatable&&(h.rotate=e),o.scalable&&(h.scaleX=i,h.scaleY=a),n.clone()},clone:function(){var t,e,i,a,n,o=this,r=o.element,h=o.url;o.options.checkCrossOrigin&&O(h)&&(t=r.crossOrigin,t||(t="anonymous",e=z(h))),o.crossOrigin=t,o.crossOriginUrl=e,i=W("img"),t&&(i.crossOrigin=t),i.src=e||h,o.image=i,o._start=a=u(o.start,o),o._stop=n=u(o.stop,o),o.isImg?r.complete?o.start():C(r,ft,a):(C(i,ft,a),C(i,gt,n),m(i,et),r.parentNode.insertBefore(i,r.nextSibling))},start:function(t){var e=this,i=e.isImg?e.element:e.image;t&&(y(i,ft,e._start),y(i,gt,e._stop)),R(i,function(t,i){p(e.imageData,{naturalWidth:t,naturalHeight:i,aspectRatio:t/i}),e.ready=!0,e.build()})},stop:function(){var t=this,e=t.image;y(e,ft,t._start),y(e,gt,t._stop),M(e),t.image=null},build:function(){var t,e,i,a,n,o,r,l=this,c=l.options,s=l.element,d=l.image;l.ready&&(l.built&&l.unbuild(),e=W("div"),e.innerHTML=j.TEMPLATE,l.container=t=s.parentNode,l.cropper=i=k(e,"cropper-container")[0],l.canvas=a=k(i,"cropper-canvas")[0],l.dragBox=n=k(i,"cropper-drag-box")[0],l.cropBox=o=k(i,"cropper-crop-box")[0],l.viewBox=k(i,"cropper-view-box")[0],l.face=r=k(o,"cropper-face")[0],H(a,d),m(s,it),t.insertBefore(i,s.nextSibling),l.isImg||v(d,et),l.initPreview(),l.bind(),c.aspectRatio=St(0,c.aspectRatio)||NaN,c.viewMode=St(0,It(3,Ft(c.viewMode)))||0,c.autoCrop?(l.cropped=!0,c.modal&&m(n,tt)):m(o,it),c.guides||m(k(o,"cropper-dashed"),it),c.center||m(k(o,"cropper-center"),it),c.background&&m(i,ht),c.highlight||m(r,at),c.cropBoxMovable&&(m(r,nt),x(r,Tt,Ot)),c.cropBoxResizable||(m(k(o,"cropper-line"),it),m(k(o,"cropper-point"),it)),l.setDragMode(c.dragMode),l.render(),l.built=!0,l.setData(c.data),setTimeout(function(){h(c.built)&&c.built.call(s),h(c.crop)&&c.crop.call(s,l.getData()),l.complete=!0},0))},unbuild:function(){var t=this;t.built&&(t.built=!1,t.complete=!1,t.initialImageData=null,t.initialCanvasData=null,t.initialCropBoxData=null,t.containerData=null,t.canvasData=null,t.cropBoxData=null,t.unbind(),t.resetPreview(),t.previews=null,t.viewBox=null,t.cropBox=null,t.dragBox=null,t.canvas=null,t.container=null,M(t.cropper),t.cropper=null)},render:function(){var t=this;t.initContainer(),t.initCanvas(),t.initCropBox(),t.renderCanvas(),t.cropped&&t.renderCropBox()},initContainer:function(){var t,e=this,i=e.options,a=e.element,n=e.container,o=e.cropper;m(o,it),v(a,it),e.containerData=t={width:St(n.offsetWidth,G(i.minContainerWidth)||200),height:St(n.offsetHeight,G(i.minContainerHeight)||100)},g(o,{width:t.width,height:t.height}),m(a,it),v(o,it)},initCanvas:function(){var t,e=this,i=e.options.viewMode,a=e.containerData,n=e.imageData,o=90===_t(n.rotate),r=o?n.naturalHeight:n.naturalWidth,h=o?n.naturalWidth:n.naturalHeight,l=r/h,c=a.width,s=a.height;a.height*l>a.width?3===i?c=a.height*l:s=a.width/l:3===i?s=a.width/l:c=a.height*l,t={naturalWidth:r,naturalHeight:h,aspectRatio:l,width:c,height:s},t.oldLeft=t.left=(a.width-c)/2,t.oldTop=t.top=(a.height-s)/2,e.canvasData=t,e.limited=1===i||2===i,e.limitCanvas(!0,!0),e.initialImageData=p({},n),e.initialCanvasData=p({},t)},limitCanvas:function(t,e){var i,a,n,o,r=this,h=r.options,l=h.viewMode,c=r.containerData,s=r.canvasData,d=s.aspectRatio,p=r.cropBoxData,u=r.cropped&&p;t&&(i=G(h.minCanvasWidth)||0,a=G(h.minCanvasHeight)||0,l>1?(i=St(i,c.width),a=St(a,c.height),3===l&&(a*d>i?i=a*d:a=i/d)):l>0&&(i?i=St(i,u?p.width:0):a?a=St(a,u?p.height:0):u&&(i=p.width,a=p.height,a*d>i?i=a*d:a=i/d)),i&&a?a*d>i?a=i/d:i=a*d:i?a=i/d:a&&(i=a*d),s.minWidth=i,s.minHeight=a,s.maxWidth=1/0,s.maxHeight=1/0),e&&(l?(n=c.width-s.width,o=c.height-s.height,s.minLeft=It(0,n),s.minTop=It(0,o),s.maxLeft=St(0,n),s.maxTop=St(0,o),u&&r.limited&&(s.minLeft=It(p.left,p.left+p.width-s.width),s.minTop=It(p.top,p.top+p.height-s.height),s.maxLeft=p.left,s.maxTop=p.top,2===l&&(s.width>=c.width&&(s.minLeft=It(0,n),s.maxLeft=St(0,n)),s.height>=c.height&&(s.minTop=It(0,o),s.maxTop=St(0,o))))):(s.minLeft=-s.width,s.minTop=-s.height,s.maxLeft=c.width,s.maxTop=c.height))},renderCanvas:function(t){var e,i,a=this,n=a.canvasData,o=a.imageData,r=o.rotate;a.rotated&&(a.rotated=!1,i=U({width:o.width,height:o.height,degree:r}),e=i.width/i.height,e!==n.aspectRatio&&(n.left-=(i.width-n.width)/2,n.top-=(i.height-n.height)/2,n.width=i.width,n.height=i.height,n.aspectRatio=e,n.naturalWidth=o.naturalWidth,n.naturalHeight=o.naturalHeight,r%180&&(i=U({width:o.naturalWidth,height:o.naturalHeight,degree:r}),n.naturalWidth=i.width,n.naturalHeight=i.height),a.limitCanvas(!0,!1))),(n.width>n.maxWidth||n.widthn.maxHeight||n.heightn.width?o.height=o.width/i:o.width=o.height*i),t.cropBoxData=o,t.limitCropBox(!0,!0),o.width=It(St(o.width,o.minWidth),o.maxWidth),o.height=It(St(o.height,o.minHeight),o.maxHeight),o.width=St(o.minWidth,o.width*a),o.height=St(o.minHeight,o.height*a),o.oldLeft=o.left=n.left+(n.width-o.width)/2,o.oldTop=o.top=n.top+(n.height-o.height)/2,t.initialCropBoxData=p({},o)},limitCropBox:function(t,e){var i,a,n,o,r=this,h=r.options,l=h.aspectRatio,c=r.containerData,s=r.canvasData,d=r.cropBoxData,p=r.limited;t&&(i=G(h.minCropBoxWidth)||0,a=G(h.minCropBoxHeight)||0,i=It(i,c.width),a=It(a,c.height),n=It(c.width,p?s.width:c.width),o=It(c.height,p?s.height:c.height),l&&(i&&a?a*l>i?a=i/l:i=a*l:i?a=i/l:a&&(i=a*l),o*l>n?o=n/l:n=o*l),d.minWidth=It(i,n),d.minHeight=It(a,o),d.maxWidth=n,d.maxHeight=o),e&&(p?(d.minLeft=St(0,s.left),d.minTop=St(0,s.top),d.maxLeft=It(c.width,s.left+s.width)-d.width,d.maxTop=It(c.height,s.top+s.height)-d.height):(d.minLeft=0,d.minTop=0,d.maxLeft=c.width-d.width,d.maxTop=c.height-d.height))},renderCropBox:function(){var t=this,e=t.options,i=t.containerData,a=t.cropBoxData;(a.width>a.maxWidth||a.widtha.maxHeight||a.heighta&&(f=a/o,s=n*f,d=a),g(t,{width:s,height:d}),g(Y(t,"img")[0],p({width:r*f,height:h*f,marginLeft:-l*f,marginTop:-c*f},u))}))},bind:function(){var e=this,i=e.options,a=e.cropper;C(a,lt,e._cropStart=u(e.cropStart,e)),i.zoomable&&i.zoomOnWheel&&C(a,dt,e._wheel=u(e.wheel,e)),i.toggleDragModeOnDblclick&&C(a,pt,e._dblclick=u(e.dblclick,e)),C(q,ct,e._cropMove=u(e.cropMove,e)),C(q,st,e._cropEnd=u(e.cropEnd,e)),i.responsive&&C(t,ut,e._resize=u(e.resize,e))},unbind:function(){var e=this,i=e.options,a=e.cropper;y(a,lt,e._cropStart),i.zoomable&&i.zoomOnWheel&&y(a,dt,e._wheel),i.toggleDragModeOnDblclick&&y(a,pt,e._dblclick),y(q,ct,e._cropMove),y(q,st,e._cropEnd),i.responsive&&y(t,ut,e._resize)},resize:function(){var t,e,i,a=this,n=a.options.restore,o=a.container,r=a.containerData;!a.disabled&&r&&(i=o.offsetWidth/r.width,(1!==i||o.offsetHeight!==r.height)&&(n&&(t=a.getCanvasData(),e=a.getCropBoxData()),a.render(),n&&(a.setCanvasData(d(t,function(e,a){t[a]=e*i})),a.setCropBoxData(d(e,function(t,a){e[a]=t*i})))))},dblclick:function(){var t=this;t.disabled||t.setDragMode(f(t.dragBox,ot)?Rt:zt)},wheel:function(t){var e=this,i=T(t),a=G(e.options.wheelZoomRatio)||.1,n=1;e.disabled||(B(i),e.wheeling||(e.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),i.deltaY?n=i.deltaY>0?1:-1:i.wheelDelta?n=-i.wheelDelta/120:i.detail&&(n=i.detail>0?1:-1),e.zoom(-n*a,i)))},cropStart:function(t){var e,i,a,n=this,o=n.options,r=T(t),l=r.touches;if(!n.disabled){if(l){if(e=l.length,e>1){if(!o.zoomable||!o.zoomOnTouch||2!==e)return;i=l[1],n.startX2=i.pageX,n.startY2=i.pageY,a=Nt}i=l[0]}if(a=a||b(r.target,Tt),mt.test(a)){if(h(o.cropstart)&&o.cropstart.call(n.element,{originalEvent:r,action:a})===!1)return;B(r),n.action=a,n.cropping=!1,n.startX=i?i.pageX:r.pageX,n.startY=i?i.pageY:r.pageY,a===zt&&(n.cropping=!0,m(n.dragBox,tt))}}},cropMove:function(t){var e,i,a=this,n=a.options,o=T(t),r=o.touches,l=a.action;if(!a.disabled){if(r){if(e=r.length,e>1){if(!n.zoomable||!n.zoomOnTouch||2!==e)return;i=r[1],a.endX2=i.pageX,a.endY2=i.pageY}i=r[0]}if(l){if(h(n.cropmove)&&n.cropmove.call(a.element,{originalEvent:o,action:l})===!1)return;B(o),a.endX=i?i.pageX:o.pageX,a.endY=i?i.pageY:o.pageY,a.change(o.shiftKey,l===Nt?o:null)}}},cropEnd:function(t){var e=this,i=e.options,a=T(t),n=e.action;e.disabled||n&&(B(a),e.cropping&&(e.cropping=!1,w(e.dragBox,tt,e.cropped&&i.modal)),e.action="",h(i.cropend)&&i.cropend.call(e.element,{originalEvent:a,action:n}))},change:function(t,e){var i,a,n=this,o=n.options,r=o.aspectRatio,h=n.action,l=n.containerData,c=n.canvasData,s=n.cropBoxData,d=s.width,p=s.height,u=s.left,g=s.top,f=u+d,m=g+p,w=0,b=0,x=l.width,D=l.height,C=!0;switch(!r&&t&&(r=d&&p?d/p:1),n.limited&&(w=s.minLeft,b=s.minTop,x=w+It(l.width,c.width),D=b+It(l.height,c.height)),a={x:n.endX-n.startX,y:n.endY-n.startY},r&&(a.X=a.y*r,a.Y=a.x/r),h){case Ot:u+=a.x,g+=a.y;break;case Lt:if(a.x>=0&&(f>=x||r&&(b>=g||m>=D))){C=!1;break}d+=a.x,r&&(p=d/r,g-=a.Y/2),0>d&&(h=Xt,d=0);break;case kt:if(a.y<=0&&(b>=g||r&&(w>=u||f>=x))){C=!1;break}p-=a.y,g+=a.y,r&&(d=p*r,u+=a.X/2),0>p&&(h=Yt,p=0);break;case Xt:if(a.x<=0&&(w>=u||r&&(b>=g||m>=D))){C=!1;break}d-=a.x,u+=a.x,r&&(p=d/r,g+=a.Y/2),0>d&&(h=Lt,d=0);break;case Yt:if(a.y>=0&&(m>=D||r&&(w>=u||f>=x))){C=!1;break}p+=a.y,r&&(d=p*r,u-=a.X/2),0>p&&(h=kt,p=0);break;case Mt:if(r){if(a.y<=0&&(b>=g||f>=x)){C=!1;break}p-=a.y,g+=a.y,d=p*r}else a.x>=0?x>f?d+=a.x:a.y<=0&&b>=g&&(C=!1):d+=a.x,a.y<=0?g>b&&(p-=a.y,g+=a.y):(p-=a.y,g+=a.y);0>d&&0>p?(h=Ht,p=0,d=0):0>d?(h=Et,d=0):0>p&&(h=Wt,p=0);break;case Et:if(r){if(a.y<=0&&(b>=g||w>=u)){C=!1;break}p-=a.y,g+=a.y,d=p*r,u+=a.X}else a.x<=0?u>w?(d-=a.x,u+=a.x):a.y<=0&&b>=g&&(C=!1):(d-=a.x,u+=a.x),a.y<=0?g>b&&(p-=a.y,g+=a.y):(p-=a.y,g+=a.y);0>d&&0>p?(h=Wt,p=0,d=0):0>d?(h=Mt,d=0):0>p&&(h=Ht,p=0);break;case Ht:if(r){if(a.x<=0&&(w>=u||m>=D)){C=!1;break}d-=a.x,u+=a.x,p=d/r}else a.x<=0?u>w?(d-=a.x,u+=a.x):a.y>=0&&m>=D&&(C=!1):(d-=a.x,u+=a.x),a.y>=0?D>m&&(p+=a.y):p+=a.y;0>d&&0>p?(h=Mt,p=0,d=0):0>d?(h=Wt,d=0):0>p&&(h=Et,p=0);break;case Wt:if(r){if(a.x>=0&&(f>=x||m>=D)){C=!1;break}d+=a.x,p=d/r}else a.x>=0?x>f?d+=a.x:a.y>=0&&m>=D&&(C=!1):d+=a.x,a.y>=0?D>m&&(p+=a.y):p+=a.y;0>d&&0>p?(h=Et,p=0,d=0):0>d?(h=Ht,d=0):0>p&&(h=Mt,p=0);break;case Rt:n.move(a.x,a.y),C=!1;break;case Nt:n.zoom(function(t,e,i,a){var n=qt(t*t+e*e),o=qt(i*i+a*a);return(o-n)/n}(_t(n.startX-n.startX2),_t(n.startY-n.startY2),_t(n.endX-n.endX2),_t(n.endY-n.endY2)),e),n.startX2=n.endX2,n.startY2=n.endY2,C=!1;break;case zt:if(!a.x||!a.y){C=!1;break}i=L(n.cropper),u=n.startX-i.left,g=n.startY-i.top,d=s.minWidth,p=s.minHeight,a.x>0?h=a.y>0?Wt:Mt:a.x<0&&(u-=d,h=a.y>0?Ht:Et),a.y<0&&(g-=p),n.cropped||(v(n.cropBox,it),n.cropped=!0,n.limited&&n.limitCropBox(!0,!0))}C&&(s.width=d,s.height=p,s.left=u,s.top=g,n.action=h,n.renderCropBox()),n.startX=n.endX,n.startY=n.endY},crop:function(){var t=this;return t.built&&!t.disabled&&(t.cropped||(t.cropped=!0,t.limitCropBox(!0,!0),t.options.modal&&m(t.dragBox,tt),v(t.cropBox,it)),t.setCropBoxData(t.initialCropBoxData)),t},reset:function(){var t=this;return t.built&&!t.disabled&&(t.imageData=p({},t.initialImageData),t.canvasData=p({},t.initialCanvasData),t.cropBoxData=p({},t.initialCropBoxData),t.renderCanvas(),t.cropped&&t.renderCropBox()),t},clear:function(){var t=this;return t.cropped&&!t.disabled&&(p(t.cropBoxData,{left:0,top:0,width:0,height:0}),t.cropped=!1,t.renderCropBox(),t.limitCanvas(),t.renderCanvas(),v(t.dragBox,tt),m(t.cropBox,it)),t},replace:function(t){var e=this;return!e.disabled&&t&&(e.isImg&&(e.replaced=!0,e.element.src=t),e.options.data=null,e.load(t)),e},enable:function(){var t=this;return t.built&&(t.disabled=!1,v(t.cropper,rt)),t},disable:function(){var t=this;return t.built&&(t.disabled=!0,m(t.cropper,rt)),t},destroy:function(){var t=this,e=t.element,i=t.image;return t.ready?(t.isImg&&t.replaced&&(e.src=t.originalUrl),t.unbuild(),v(e,it)):t.isImg?e.off(ft,t.start):i&&M(i),D(e,Q),t},move:function(t,e){var i=this,a=i.canvasData;return i.moveTo(n(t)?t:a.left+G(t),n(e)?e:a.top+G(e))},moveTo:function(t,e){var i=this,o=i.canvasData,r=!1;return n(e)&&(e=t),t=G(t),e=G(e),i.built&&!i.disabled&&i.options.movable&&(a(t)&&(o.left=t,r=!0),a(e)&&(o.top=e,r=!0),r&&i.renderCanvas(!0)),i},zoom:function(t,e){var i=this,a=i.canvasData;return t=G(t),t=0>t?1/(1-t):1+t,i.zoomTo(a.width*t/a.naturalWidth,e)},zoomTo:function(t,e){var i,a,n,o,r=this,l=r.options,c=r.canvasData,s=c.width,d=c.height,p=c.naturalWidth,u=c.naturalHeight;if(t=G(t),t>=0&&r.built&&!r.disabled&&l.zoomable){if(i=p*t,a=u*t,h(l.zoom)&&l.zoom.call(r.element,{originalEvent:e,oldRatio:s/p,ratio:i/p})===!1)return r;e?(n=L(r.cropper),o=e.touches?X(e.touches):{pageX:e.pageX,pageY:e.pageY},c.left-=(i-s)*((o.pageX-n.left-c.left)/s),c.top-=(a-d)*((o.pageY-n.top-c.top)/d)):(c.left-=(i-s)/2,c.top-=(a-d)/2),c.width=i,c.height=a,r.renderCanvas(!0)}return r},rotate:function(t){var e=this;return e.rotateTo((e.imageData.rotate||0)+G(t))},rotateTo:function(t){var e=this;return t=G(t),a(t)&&e.built&&!e.disabled&&e.options.rotatable&&(e.imageData.rotate=t%360,e.rotated=!0,e.renderCanvas(!0)),e},scale:function(t,e){var i=this,o=i.imageData,r=!1;return n(e)&&(e=t),t=G(t),e=G(e),i.built&&!i.disabled&&i.options.scalable&&(a(t)&&(o.scaleX=t,r=!0),a(e)&&(o.scaleY=e,r=!0),r&&i.renderImage(!0)),i},scaleX:function(t){var e=this,i=e.imageData.scaleY;return e.scale(t,a(i)?i:1)},scaleY:function(t){var e=this,i=e.imageData.scaleX;return e.scale(a(i)?i:1,t)},getData:function(t){var e,i,a=this,n=a.options,o=a.imageData,r=a.canvasData,h=a.cropBoxData;return a.built&&a.cropped?(i={x:h.left-r.left,y:h.top-r.top,width:h.width,height:h.height},e=o.width/o.naturalWidth,d(i,function(a,n){a/=e,i[n]=t?Ft(a):a})):i={x:0,y:0,width:0,height:0},n.rotatable&&(i.rotate=o.rotate||0),n.scalable&&(i.scaleX=o.scaleX||1,i.scaleY=o.scaleY||1),i},setData:function(t){var e,i,n,o=this,l=o.options,c=o.imageData,s=o.canvasData,d={};return h(t)&&(t=t.call(o.element)),o.built&&!o.disabled&&r(t)&&(l.rotatable&&a(t.rotate)&&t.rotate!==c.rotate&&(c.rotate=t.rotate,o.rotated=e=!0),l.scalable&&(a(t.scaleX)&&t.scaleX!==c.scaleX&&(c.scaleX=t.scaleX,i=!0),a(t.scaleY)&&t.scaleY!==c.scaleY&&(c.scaleY=t.scaleY,i=!0)),e?o.renderCanvas():i&&o.renderImage(),n=c.width/c.naturalWidth,a(t.x)&&(d.left=t.x*n+s.left),a(t.y)&&(d.top=t.y*n+s.top),a(t.width)&&(d.width=t.width*n),a(t.height)&&(d.height=t.height*n),o.setCropBoxData(d)),o},getContainerData:function(){var t=this;return t.built?t.containerData:{}},getImageData:function(){var t=this;return t.ready?t.imageData:{}},getCanvasData:function(){var t=this,e=t.canvasData,i={};return t.built&&d(["left","top","width","height","naturalWidth","naturalHeight"],function(t){i[t]=e[t]}),i},setCanvasData:function(t){var e=this,i=e.canvasData,n=i.aspectRatio;return h(t)&&(t=t.call(e.element)),e.built&&!e.disabled&&r(t)&&(a(t.left)&&(i.left=t.left),a(t.top)&&(i.top=t.top),a(t.width)?(i.width=t.width,i.height=t.width/n):a(t.height)&&(i.height=t.height,i.width=t.height*n),e.renderCanvas(!0)),e},getCropBoxData:function(){var t,e=this,i=e.cropBoxData;return e.built&&e.cropped&&(t={left:i.left,top:i.top,width:i.width,height:i.height}),t||{}},setCropBoxData:function(t){var e,i,n=this,o=n.cropBoxData,l=n.options.aspectRatio;return h(t)&&(t=t.call(n.element)),n.built&&n.cropped&&!n.disabled&&r(t)&&(a(t.left)&&(o.left=t.left),a(t.top)&&(o.top=t.top),a(t.width)&&(e=!0,o.width=t.width),a(t.height)&&(i=!0,o.height=t.height),l&&(e?o.height=o.width/l:i&&(o.width=o.height*l)),n.renderCropBox()),n},getCroppedCanvas:function(t){var e,i,a,n,o,h,l,c,s,d,p,u=this;return u.built&&u.cropped&&At?(r(t)||(t={}),p=u.getData(),e=p.width,i=p.height,c=e/i,r(t)&&(o=t.width,h=t.height,o?(h=o/c,l=o/e):h&&(o=h*c,l=h/i)),a=Vt(o||e),n=Vt(h||i),s=W("canvas"),s.width=a,s.height=n,d=s.getContext("2d"),t.fillColor&&(d.fillStyle=t.fillColor,d.fillRect(0,0,a,n)),d.drawImage.apply(d,function(){var t,a,n,o,r,h,c=A(u.image,u.imageData),s=c.width,d=c.height,g=[c],f=p.x,m=p.y;return-e>=f||f>s?f=t=n=r=0:0>=f?(n=-f,f=0,t=r=It(s,e+f)):s>=f&&(n=0,t=r=It(e,s-f)),0>=t||-i>=m||m>d?m=a=o=h=0:0>=m?(o=-m,m=0,a=h=It(d,i+m)):d>=m&&(o=0,a=h=It(i,d-m)),g.push(Vt(f),Vt(m),Vt(t),Vt(a)),l&&(n*=l,o*=l,r*=l,h*=l),r>0&&h>0&&g.push(Vt(n),Vt(o),Vt(r),Vt(h)),g}.call(u)),s):void 0},setAspectRatio:function(t){var e=this,i=e.options;return e.disabled||n(t)||(i.aspectRatio=St(0,t)||NaN,e.built&&(e.initCropBox(),e.cropped&&e.renderCropBox())),e},setDragMode:function(t){var e,i,a=this,n=a.options,o=a.dragBox,r=a.face;return a.ready&&!a.disabled&&(e=t===zt,i=n.movable&&t===Rt,t=e||i?t:Ut,x(o,Tt,t),w(o,ot,e),w(o,nt,i),n.cropBoxMovable||(x(r,Tt,t),w(r,ot,e),w(r,nt,i))),a}},j.DEFAULTS={viewMode:0,dragMode:"crop",aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,build:null,built:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},j.TEMPLATE=function(t,e){return e=e.split(","),t.replace(/\d+/g,function(t){return e[t]})}('<0 6="5-container"><0 6="5-wrap-9"><0 6="5-canvas"><0 6="5-drag-9"><0 6="5-crop-9"><1 6="5-view-9"><1 6="5-8 8-h"><1 6="5-8 8-v"><1 6="5-center"><1 6="5-face"><1 6="5-7 7-e" 3-2="e"><1 6="5-7 7-n" 3-2="n"><1 6="5-7 7-w" 3-2="w"><1 6="5-7 7-s" 3-2="s"><1 6="5-4 4-e" 3-2="e"><1 6="5-4 4-n" 3-2="n"><1 6="5-4 4-w" 3-2="w"><1 6="5-4 4-s" 3-2="s"><1 6="5-4 4-ne" 3-2="ne"><1 6="5-4 4-nw" 3-2="nw"><1 6="5-4 4-sw" 3-2="sw"><1 6="5-4 4-se" 3-2="se">',"div,span,action,data,point,cropper,class,line,dashed,box");var te=t.Cropper;return j.noConflict=function(){return t.Cropper=te,j},j.setDefaults=function(t){p(j.DEFAULTS,t)},"function"==typeof define&&define.amd&&define("cropper",[],function(){return j}),e||(t.Cropper=j),j}); \ No newline at end of file diff --git a/js/main.js b/js/main.js deleted file mode 100644 index a352215..0000000 --- a/js/main.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="",t(0)}([function(e,t,a){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}var r=a(1),i=o(r),s=a(2),n=o(s),c=a(3),p=o(c),l=a(4),d=o(l);window.vm=new i["default"]({el:"body",components:{ButtonBox:n["default"],UploadBox:p["default"],CanvasBox:d["default"]},events:{broadcast:function(e,t){this.$broadcast(e,t)}}})},function(e,t){e.exports=window.Vue},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={data:function(){return{uploaded:!1,cropping:!1,cropped:!1,download:"undefined"!=typeof document.createElement("a").download,url:"",name:""}},template:"#button-box",methods:{click:function(e){var t=e.target,a=t.dataset.action||t.parentNode.dataset.action;if(a){switch(a){case"restore":this.restore();break;case"remove":this.remove();break;case"clear":case"crop":this.cropping=!1}this.$dispatch("broadcast",a)}},restore:function(){this.cropped=!1,this.url="",this.name=""},remove:function(){this.uploaded=!1,this.cropping=!1,this.cropped&&this.restore()}},events:{uploaded:function(){this.uploaded=!0},cropping:function(){this.cropping=!0},cleared:function(){this.cropping=!1},restored:function(){this.restore()},removed:function(){this.remove()},cropped:function(e){this.cropped=!0,this.cropping=!1,this.download&&(this.url=e.url,this.name=e.name)}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={data:function(){return{uploaded:!1}},template:"#upload-box",methods:{read:function(e){var t=this,a=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],o=null;e?/^image\/\w+$/.test(e.type)?(o=new FileReader,o.onload=function(){t.uploaded=!0,t.$dispatch("broadcast","uploaded",{type:e.type,name:e.name,url:o.result}),a()},o.readAsDataURL(e)):(window.alert("Please choose an image file."),a()):a()},change:function(e){var t=e.target,a=t.files;this.read(a&&a[0],function(){t.value=""})},dragover:function(e){e.preventDefault()},drop:function(e){var t=e.dataTransfer.files;e.preventDefault(),this.read(t&&t[0])}},events:{remove:function(){this.uploaded=!1},removed:function(){this.uploaded=!1}}}},function(e,t,a){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(5),i=o(r);t["default"]={data:function(){return{editable:!1,cropper:!1,cropping:!1,data:null,canvasData:null,cropBoxData:null,image:null,type:"",name:"",url:"",originalUrl:""}},template:"#canvas-box",ready:function(){window.addEventListener("keydown",this.keydown,!1)},beforeDestory:function(){window.removeEventListener("keydown",this.keydown,!1)},methods:{load:function(e){this.image||(this.image=e.target,this.start())},click:function(e){var t=this.cropper,a=e.target,o="";if(t)switch(o=a.dataset.action||a.parentNode.dataset.action){case"move":case"crop":t.setDragMode(o);break;case"zoom-in":t.zoom(.1);break;case"zoom-out":t.zoom(-.1);break;case"rotate-left":t.rotate(-90);break;case"rotate-right":t.rotate(90);break;case"flip-horizontal":t.scaleX(-this.cropper.getData().scaleX||-1);break;case"flip-vertical":t.scaleY(-this.cropper.getData().scaleY||-1)}},keydown:function(e){var t=this.cropper,a=e.key||e.keyCode||e.which||e.charCode;switch(a){case 90:e.ctrlKey&&(e.preventDefault(),this.restore(!0));break;case 46:this.remove(!0)}if(t)switch(a){case 13:this.crop(!0);break;case 27:this.clear(!0);break;case 37:e.preventDefault(),t.move(-1,0);break;case 38:e.preventDefault(),t.move(0,-1);break;case 39:e.preventDefault(),t.move(1,0);break;case 40:e.preventDefault(),t.move(0,1);break;case 67:t.setDragMode("crop");break;case 77:t.setDragMode("move");break;case 73:t.zoom(.1);break;case 79:t.zoom(-.1);break;case 76:t.rotate(-90);break;case 82:t.rotate(90);break;case 72:t.scaleX(-this.cropper.getData().scaleX||-1);break;case 86:t.scaleY(-this.cropper.getData().scaleY||-1)}},dblclick:function(e){e.target.className.indexOf("cropper-face")>=0&&(e.preventDefault(),e.stopPropagation(),this.crop(!0))},start:function(){var e=this;this.cropper||(this.cropper=new i["default"](this.image,{autoCrop:!1,dragMode:"move",background:!1,built:function(){e.data&&(this.cropper.crop().setData(e.data).setCanvasData(e.canvasData).setCropBoxData(e.cropBoxData),e.data=null,e.canvasData=null,e.cropBoxData=null)},crop:function(t){t.width>0&&t.height>0&&!e.cropping&&(e.cropping=!0,e.$dispatch("broadcast","cropping"))}}))},stop:function(){this.cropper&&(this.cropper.destroy(),this.cropper=null,this.cropping=!1)},crop:function(e){var t=this.cropper,a=this.type;this.cropping&&(this.originalUrl=this.url,this.data=t.getData(),this.canvasData=t.getCanvasData(),this.cropBoxData=t.getCropBoxData(),this.url=t.getCroppedCanvas("image/png"===a?null:{fillColor:"#fff"}).toDataURL(a),this.stop(),e&&this.$dispatch("broadcast","cropped",{url:this.url,name:this.name}))},clear:function(e){this.cropping&&(this.cropper.clear(),this.cropping=!1,e&&this.$dispatch("broadcast","cleared"))},restore:function(e){this.cropper||(this.image=null,this.url=this.originalUrl,this.originalUrl="",e&&this.$dispatch("broadcast","restored"))},remove:function(e){this.cropping||(this.stop(),this.editable=!1,this.data=null,this.image=null,this.type="",this.name="",this.url="",this.originalUrl="",e&&this.$dispatch("broadcast","removed"))}},events:{uploaded:function(e){var t=e.url,a=e.type,o=e.name;this.editable=!0,this.type=a,this.name=o,this.url=t},remove:function(){this.remove()},crop:function(){this.crop(!0)},clear:function(){this.clear()},restore:function(){this.restore()}}}},function(e,t){e.exports=window.Cropper}]); \ No newline at end of file diff --git a/js/vue.min.js b/js/vue.min.js deleted file mode 100644 index be459c8..0000000 --- a/js/vue.min.js +++ /dev/null @@ -1,8 +0,0 @@ -/*! - * Vue.js v1.0.13 - * (c) 2015 Evan You - * Released under the MIT License. - */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(e,n,r){if(i(e,n))return void(e[n]=r);if(e._isVue)return void t(e._data,n,r);var s=e.__ob__;if(!s)return void(e[n]=r);if(s.convert(n,r),s.dep.notify(),s.vms)for(var o=s.vms.length;o--;){var a=s.vms[o];a._proxy(n),a._digest()}return r}function e(t,e){if(i(t,e)){delete t[e];var n=t.__ob__;if(n&&(n.dep.notify(),n.vms))for(var r=n.vms.length;r--;){var s=n.vms[r];s._unproxy(e),s._digest()}}}function i(t,e){return vi.call(t,e)}function n(t){return mi.test(t)}function r(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function s(t){return null==t?"":t.toString()}function o(t){if("string"!=typeof t)return t;var e=Number(t);return isNaN(e)?t:e}function a(t){return"true"===t?!0:"false"===t?!1:t}function h(t){var e=t.charCodeAt(0),i=t.charCodeAt(t.length-1);return e!==i||34!==e&&39!==e?t:t.slice(1,-1)}function l(t){return t.replace(gi,c)}function c(t,e){return e?e.toUpperCase():""}function u(t){return t.replace(_i,"$1-$2").toLowerCase()}function f(t){return t.replace(bi,c)}function p(t,e){return function(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}}function d(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function v(t,e){for(var i=Object.keys(e),n=i.length;n--;)t[i[n]]=e[i[n]];return t}function m(t){return null!==t&&"object"==typeof t}function g(t){return yi.call(t)===Ci}function _(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}function b(t,e){var i,n,r,s,o,a=function h(){var a=Date.now()-s;e>a&&a>=0?i=setTimeout(h,e-a):(i=null,o=t.apply(r,n),i||(r=n=null))};return function(){return r=this,n=arguments,s=Date.now(),i||(i=setTimeout(a,e)),o}}function y(t,e){for(var i=t.length;i--;)if(t[i]===e)return i;return-1}function C(t){var e=function i(){return i.cancelled?void 0:t.apply(this,arguments)};return e.cancel=function(){e.cancelled=!0},e}function w(t,e){return t==e||(m(t)&&m(e)?JSON.stringify(t)===JSON.stringify(e):!1)}function $(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap=Object.create(null)}function k(){var t,e=Pi.slice(Vi,Wi).trim();if(e){t={};var i=e.match(Qi);t.name=i[0],i.length>1&&(t.args=i.slice(1).map(x))}t&&(Ri.filters=Ri.filters||[]).push(t),Vi=Wi+1}function x(t){if(Gi.test(t))return{value:o(t),dynamic:!1};var e=h(t),i=e===t;return{value:i?t:e,dynamic:i}}function A(t){var e=Ji.get(t);if(e)return e;for(Pi=t,Mi=zi=!1,Ii=Ui=qi=0,Vi=0,Ri={},Wi=0,Bi=Pi.length;Bi>Wi;Wi++)if(Li=Hi,Hi=Pi.charCodeAt(Wi),Mi)39===Hi&&92!==Li&&(Mi=!Mi);else if(zi)34===Hi&&92!==Li&&(zi=!zi);else if(124===Hi&&124!==Pi.charCodeAt(Wi+1)&&124!==Pi.charCodeAt(Wi-1))null==Ri.expression?(Vi=Wi+1,Ri.expression=Pi.slice(0,Wi).trim()):k();else switch(Hi){case 34:zi=!0;break;case 39:Mi=!0;break;case 40:qi++;break;case 41:qi--;break;case 91:Ui++;break;case 93:Ui--;break;case 123:Ii++;break;case 125:Ii--}return null==Ri.expression?Ri.expression=Pi.slice(0,Wi).trim():0!==Vi&&k(),Ji.put(t,Ri),Ri}function O(t){return t.replace(Ki,"\\$&")}function N(){var t=O(on.delimiters[0]),e=O(on.delimiters[1]),i=O(on.unsafeDelimiters[0]),n=O(on.unsafeDelimiters[1]);Yi=new RegExp(i+"(.+?)"+n+"|"+t+"(.+?)"+e,"g"),tn=new RegExp("^"+i+".*"+n+"$"),Xi=new $(1e3)}function T(t){Xi||N();var e=Xi.get(t);if(e)return e;if(t=t.replace(/\n/g,""),!Yi.test(t))return null;for(var i,n,r,s,o,a,h=[],l=Yi.lastIndex=0;i=Yi.exec(t);)n=i.index,n>l&&h.push({value:t.slice(l,n)}),r=tn.test(i[0]),s=r?i[1]:i[2],o=s.charCodeAt(0),a=42===o,s=a?s.slice(1):s,h.push({tag:!0,value:s.trim(),html:r,oneTime:a}),l=n+i[0].length;return l1?t.map(function(t){return E(t)}).join("+"):E(t[0],!0)}function E(t,e){return t.tag?S(t.value,e):'"'+t.value+'"'}function S(t,e){if(en.test(t)){var i=A(t);return i.filters?"this._applyFilters("+i.expression+",null,"+JSON.stringify(i.filters)+",false)":"("+t+")"}return e?t:"("+t+")"}function F(t,e,i,n){R(t,1,function(){e.appendChild(t)},i,n)}function D(t,e,i,n){R(t,1,function(){M(t,e)},i,n)}function P(t,e,i){R(t,-1,function(){I(t)},e,i)}function R(t,e,i,n,r){var s=t.__v_trans;if(!s||!s.hooks&&!Ni||!n._isCompiled||n.$parent&&!n.$parent._isCompiled)return i(),void(r&&r());var o=e>0?"enter":"leave";s[o](i,r)}function H(t){if("string"==typeof t){t=document.querySelector(t)}return t}function L(t){var e=document.documentElement,i=t&&t.parentNode;return e===t||e===i||!(!i||1!==i.nodeType||!e.contains(i))}function W(t,e){var i=t.getAttribute(e);return null!==i&&t.removeAttribute(e),i}function B(t,e){var i=W(t,":"+e);return null===i&&(i=W(t,"v-bind:"+e)),i}function V(t,e){return t.hasAttribute(e)||t.hasAttribute(":"+e)||t.hasAttribute("v-bind:"+e)}function M(t,e){e.parentNode.insertBefore(t,e)}function z(t,e){e.nextSibling?M(t,e.nextSibling):e.parentNode.appendChild(t)}function I(t){t.parentNode.removeChild(t)}function U(t,e){e.firstChild?M(t,e.firstChild):e.appendChild(t)}function q(t,e){var i=t.parentNode;i&&i.replaceChild(e,t)}function J(t,e,i){t.addEventListener(e,i)}function Q(t,e,i){t.removeEventListener(e,i)}function G(t,e){!xi||t instanceof SVGElement?t.setAttribute("class",e):t.className=e}function Z(t,e){if(t.classList)t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&G(t,(i+e).trim())}}function K(t,e){if(t.classList)t.classList.remove(e);else{for(var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");G(t,i.trim())}t.className||t.removeAttribute("class")}function X(t,e){var i,n;if(et(t)&&t.content instanceof DocumentFragment&&(t=t.content),t.hasChildNodes())for(Y(t),n=e?document.createDocumentFragment():document.createElement("div");i=t.firstChild;)n.appendChild(i);return n}function Y(t){tt(t,t.firstChild),tt(t,t.lastChild)}function tt(t,e){e&&3===e.nodeType&&!e.data.trim()&&t.removeChild(e)}function et(t){return t.tagName&&"template"===t.tagName.toLowerCase()}function it(t,e){var i=on.debug?document.createComment(t):document.createTextNode(e?" ":"");return i.__vue_anchor=!0,i}function nt(t){if(t.hasAttributes())for(var e=t.attributes,i=0,n=e.length;n>i;i++){var r=e[i].name;if(hn.test(r))return l(r.replace(hn,""))}}function rt(t,e,i){for(var n;t!==e;)n=t.nextSibling,i(t),t=n;i(e)}function st(t,e,i,n,r){function s(){if(a++,o&&a>=h.length){for(var t=0;tr;r++){var o=n[r];ln.test(o)||cn.test(o)||(e=i[o],g(e)&&(i[o]=li.extend(e)))}}function dt(t){var e,i,n=t.props;if(wi(n))for(t.props={},e=n.length;e--;)i=n[e],"string"==typeof i?t.props[i]=null:i.name&&(t.props[i.name]=i);else if(g(n)){var r=Object.keys(n);for(e=r.length;e--;)i=n[r[e]],"function"==typeof i&&(n[r[e]]={type:i})}}function vt(t){if(wi(t)){for(var e,i={},n=t.length;n--;){e=t[n];var r="function"==typeof e?e.options&&e.options.name||e.id:e.name||e.id;r&&(i[r]=e)}return i}return t}function mt(t,e,n){function r(i){var r=un[i]||fn;o[i]=r(t[i],e[i],n,i)}pt(e),dt(e);var s,o={};if(e.mixins)for(var a=0,h=e.mixins.length;h>a;a++)t=mt(t,e.mixins[a],n);for(s in t)r(s);for(s in e)i(t,s)||r(s);return o}function gt(t,e,i){var n,r=t[e];return r[i]||r[n=l(i)]||r[n.charAt(0).toUpperCase()+n.slice(1)]}function _t(t,e,i){}function bt(){this.id=vn++,this.subs=[]}function yt(t){if(this.value=t,this.dep=new bt,_(t,"__ob__",this),wi(t)){var e=$i?Ct:wt;e(t,dn,mn),this.observeArray(t)}else this.walk(t)}function Ct(t,e){t.__proto__=e}function wt(t,e,i){for(var n=0,r=i.length;r>n;n++){var s=i[n];_(t,s,e[s])}}function $t(t,e){if(t&&"object"==typeof t){var n;return i(t,"__ob__")&&t.__ob__ instanceof yt?n=t.__ob__:(wi(t)||g(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new yt(t)),n&&e&&n.addVm(e),n}}function kt(t,e,i){var n,r,s=new bt;if(on.convertAllProperties){var o=Object.getOwnPropertyDescriptor(t,e);if(o&&o.configurable===!1)return;n=o&&o.get,r=o&&o.set}var a=$t(i);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=n?n.call(t):i;if(bt.target&&(s.depend(),a&&a.dep.depend(),wi(e)))for(var r,o=0,h=e.length;h>o;o++)r=e[o],r&&r.__ob__&&r.__ob__.dep.depend();return e},set:function(e){var o=n?n.call(t):i;e!==o&&(r?r.call(t,e):i=e,a=$t(e),s.notify())}})}function xt(t){t.prototype._init=function(t){t=t||{},this.$el=null,this.$parent=t.parent,this.$root=this.$parent?this.$parent.$root:this,this.$children=[],this.$refs={},this.$els={},this._watchers=[],this._directives=[],this._uid=_n++,this._isVue=!0,this._events={},this._eventsCount={},this._isFragment=!1,this._fragment=this._fragmentStart=this._fragmentEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=!1,this._unlinkFn=null,this._context=t._context||this.$parent,this._scope=t._scope,this._frag=t._frag,this._frag&&this._frag.children.push(this),this.$parent&&this.$parent.$children.push(this),t=this.$options=mt(this.constructor.options,t,this),this._updateRef(),this._data={},this._callHook("init"),this._initState(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}}function At(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function Ot(t){var e=t.trim();return"0"===t.charAt(0)&&isNaN(t)?!1:n(e)?h(e):"*"+e}function Nt(t){function e(){var e=t[c+1];return u===Tn&&"'"===e||u===jn&&'"'===e?(c++,n="\\"+e,p[yn](),!0):void 0}var i,n,r,s,o,a,h,l=[],c=-1,u=kn,f=0,p=[];for(p[Cn]=function(){void 0!==r&&(l.push(r),r=void 0)},p[yn]=function(){void 0===r?r=n:r+=n},p[wn]=function(){p[yn](),f++},p[$n]=function(){if(f>0)f--,u=Nn,p[yn]();else{if(f=0,r=Ot(r),r===!1)return!1;p[Cn]()}};null!=u;)if(c++,i=t[c],"\\"!==i||!e()){if(s=At(i),h=Fn[u],o=h[s]||h["else"]||Sn,o===Sn)return;if(u=o[0],a=p[o[1]],a&&(n=o[2],n=void 0===n?i:n,a()===!1))return;if(u===En)return l.raw=t,l}}function Tt(t){var e=bn.get(t);return e||(e=Nt(t),e&&bn.put(t,e)),e}function jt(t,e){return Lt(e).get(t)}function Et(e,i,n){var r=e;if("string"==typeof i&&(i=Nt(i)),!i||!m(e))return!1;for(var s,o,a=0,h=i.length;h>a;a++)s=e,o=i[a],"*"===o.charAt(0)&&(o=Lt(o.slice(1)).get.call(r,r)),h-1>a?(e=e[o],m(e)||(e={},t(s,o,e))):wi(e)?e.$set(o,n):o in e?e[o]=n:t(e,o,n);return!0}function St(t,e){var i=Jn.length;return Jn[i]=e?t.replace(Vn,"\\n"):t,'"'+i+'"'}function Ft(t){var e=t.charAt(0),i=t.slice(1);return Hn.test(i)?t:(i=i.indexOf('"')>-1?i.replace(zn,Dt):i,e+"scope."+i)}function Dt(t,e){return Jn[e]}function Pt(t){Wn.test(t),Jn.length=0;var e=t.replace(Mn,St).replace(Bn,"");return e=(" "+e).replace(Un,Ft).replace(zn,Dt),Rt(e)}function Rt(t){try{return new Function("scope","return "+t+";")}catch(e){}}function Ht(t){var e=Tt(t);return e?function(t,i){Et(t,e,i)}:void 0}function Lt(t,e){t=t.trim();var i=Pn.get(t);if(i)return e&&!i.set&&(i.set=Ht(i.exp)),i;var n={exp:t};return n.get=Wt(t)&&t.indexOf("[")<0?Rt("scope."+t):Pt(t),e&&(n.set=Ht(t)),Pn.put(t,n),n}function Wt(t){return In.test(t)&&!qn.test(t)&&"Math."!==t.slice(0,5)}function Bt(){Gn=[],Zn=[],Kn={},Xn={},Yn=tr=!1}function Vt(){Mt(Gn),tr=!0,Mt(Zn),Bt()}function Mt(t){for(var e=0;e47&&58>e?parseInt(t,10):1===t.length&&(e=t.toUpperCase().charCodeAt(0),e>64&&91>e)?e:Or[t]});return function(e){return i.indexOf(e.keyCode)>-1?t.call(this,e):void 0}}function Gt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function Zt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Kt(t,e,i){for(var n,r,s,o=e?[]:null,a=0,h=t.options.length;h>a;a++)if(n=t.options[a],s=i?n.hasAttribute("selected"):n.selected){if(r=n.hasOwnProperty("_value")?n._value:n.value,!e)return r;o.push(r)}return o}function Xt(t,e){for(var i=t.length;i--;)if(w(t[i],e))return i;return-1}function Yt(t){return et(t)&&t.content instanceof DocumentFragment}function te(t,e){var i=Rr.get(t);if(i)return i;var n=document.createDocumentFragment(),r=t.match(Wr),s=Br.test(t);if(r||s){var o=r&&r[1],a=Lr[o]||Lr.efault,h=a[0],l=a[1],c=a[2],u=document.createElement("div");for(e||(t=t.trim()),u.innerHTML=l+t+c;h--;)u=u.lastChild;for(var f;f=u.firstChild;)n.appendChild(f)}else n.appendChild(document.createTextNode(t));return Rr.put(t,n),n}function ee(t){if(Yt(t))return Y(t.content),t.content;if("SCRIPT"===t.tagName)return te(t.textContent);for(var e,i=ie(t),n=document.createDocumentFragment();e=i.firstChild;)n.appendChild(e);return Y(n),n}function ie(t){if(!t.querySelectorAll)return t.cloneNode();var e,i,n,r=t.cloneNode(!0);if(Vr){var s=r;if(Yt(t)&&(t=t.content,s=r.content),i=t.querySelectorAll("template"),i.length)for(n=s.querySelectorAll("template"),e=n.length;e--;)n[e].parentNode.replaceChild(ie(i[e]),n[e])}if(Mr)if("TEXTAREA"===t.tagName)r.value=t.value;else if(i=t.querySelectorAll("textarea"),i.length)for(n=r.querySelectorAll("textarea"),e=n.length;e--;)n[e].value=i[e].value;return r}function ne(t,e,i){var n,r;return t instanceof DocumentFragment?(Y(t),e?ie(t):t):("string"==typeof t?i||"#"!==t.charAt(0)?r=te(t,i):(r=Hr.get(t),r||(n=document.getElementById(t.slice(1)),n&&(r=ee(n),Hr.put(t,r)))):t.nodeType&&(r=ee(t)),r&&e?ie(r):r)}function re(t,e,i,n,r,s){this.children=[],this.childFrags=[],this.vm=e,this.scope=r,this.inserted=!1,this.parentFrag=s,s&&s.childFrags.push(this),this.unlink=t(e,i,n,r,this);var o=this.single=1===i.childNodes.length&&!i.childNodes[0].__vue_anchor;o?(this.node=i.childNodes[0],this.before=se,this.remove=oe):(this.node=it("fragment-start"),this.end=it("fragment-end"),this.frag=i,U(this.node,i),i.appendChild(this.end),this.before=ae,this.remove=he),this.node.__vfrag__=this}function se(t,e){this.inserted=!0;var i=e!==!1?D:M;i(this.node,t,this.vm),L(this.node)&&this.callHook(le)}function oe(){this.inserted=!1;var t=L(this.node),e=this;e.callHook(ce),P(this.node,this.vm,function(){t&&e.callHook(ue),e.destroy()})}function ae(t,e){this.inserted=!0;var i=this.vm,n=e!==!1?D:M;rt(this.node,this.end,function(e){n(e,t,i)}),L(this.node)&&this.callHook(le)}function he(){this.inserted=!1;var t=this,e=L(this.node);t.callHook(ce),st(this.node,this.end,this.vm,this.frag,function(){e&&t.callHook(ue),t.destroy()})}function le(t){t._isAttached||t._callHook("attached")}function ce(t){t.$destroy(!1,!0)}function ue(t){t._isAttached&&t._callHook("detached")}function fe(t,e){this.vm=t;var i,n="string"==typeof e;n||et(e)?i=ne(e,!0):(i=document.createDocumentFragment(),i.appendChild(e)),this.template=i;var r,s=t.constructor.cid;if(s>0){var o=s+(n?e:e.outerHTML);r=Ir.get(o),r||(r=xe(i,t.$options,!0),Ir.put(o,r))}else r=xe(i,t.$options,!0);this.linker=r}function pe(t,e,i){var n=t.node.previousSibling;if(n){for(t=n.__vfrag__;!(t&&t.forId===i&&t.inserted||n===e);){if(n=n.previousSibling,!n)return;t=n.__vfrag__}return t}}function de(t){var e=t.node;if(t.end)for(;!e.__vue__&&e!==t.end&&e.nextSibling;)e=e.nextSibling;return e.__vue__}function ve(t){for(var e=-1,i=new Array(t);++e-1:i(t,e)}function we(t,e){for(var i,r,s,o,a,h,c,f=[],p=Object.keys(e),d=p.length;d--;)r=p[d],i=e[r]||us,a=l(r),fs.test(a)&&(c={name:r,path:a,options:i,mode:cs.ONE_WAY,raw:null},s=u(r),null===(o=B(t,s))&&(null!==(o=B(t,s+".sync"))?c.mode=cs.TWO_WAY:null!==(o=B(t,s+".once"))&&(c.mode=cs.ONE_TIME)),null!==o?(c.raw=o,h=A(o),o=h.expression,c.filters=h.filters,n(o)?c.optimizedLiteral=!0:c.dynamic=!0,c.parentPath=o):null!==(o=W(t,s))?c.raw=o:i.required,f.push(c));return $e(f)}function $e(t){return function(e,i){e._props={};for(var n,r,s,l,c,u=t.length;u--;)if(n=t[u],c=n.raw,r=n.path,s=n.options,e._props[r]=n,null===c)ht(e,n,ke(e,s));else if(n.dynamic)e._context&&(n.mode===cs.ONE_TIME?(l=(i||e._context).$get(n.parentPath),ht(e,n,l)):e._bindDir({name:"prop",def:os,prop:n},null,null,i));else if(n.optimizedLiteral){var f=h(c);l=f===c?a(o(c)):f,ht(e,n,l)}else l=s.type===Boolean&&""===c?!0:c,ht(e,n,l)}}function ke(t,e){if(!i(e,"default"))return e.type===Boolean?!1:void 0;var n=e["default"];return m(n),"function"==typeof n&&e.type!==Function?n.call(t):n}function xe(t,e,i){var n=i||!e._asComponent?Se(t,e):null,r=n&&n.terminal||"SCRIPT"===t.tagName||!t.hasChildNodes()?null:Le(t.childNodes,e);return function(t,e,i,s,o){var a=d(e.childNodes),h=Ae(function(){n&&n(t,e,i,s,o),r&&r(t,a,i,s,o)},t);return Ne(t,h)}}function Ae(t,e){var i=e._directives.length;t();var n=e._directives.slice(i);n.sort(Oe);for(var r=0,s=n.length;s>r;r++)n[r]._bind();return n}function Oe(t,e){return t=t.descriptor.def.priority||bs,e=e.descriptor.def.priority||bs,t>e?-1:t===e?0:1}function Ne(t,e,i,n){return function(r){Te(t,e,r),i&&n&&Te(i,n)}}function Te(t,e,i){for(var n=e.length;n--;)e[n]._teardown(),i||t._directives.$remove(e[n])}function je(t,e,i,n){var r=we(e,i),s=Ae(function(){r(t,n)},t);return Ne(t,s)}function Ee(t,e,i){var n,r,s=e._containerAttrs,o=e._replacerAttrs;return 11!==t.nodeType&&(e._asComponent?(s&&i&&(n=Ue(s,i)),o&&(r=Ue(o,e))):r=Ue(t.attributes,e)),function(t,e,i){var s,o=t._context;o&&n&&(s=Ae(function(){n(o,e,null,i)},o));var a=Ae(function(){r&&r(t,e)},t);return Ne(t,a,o,s)}}function Se(t,e){var i=t.nodeType;return 1===i&&"SCRIPT"!==t.tagName?Fe(t,e):3===i&&t.data.trim()?De(t,e):null}function Fe(t,e){if("TEXTAREA"===t.tagName){var i=T(t.value);i&&(t.setAttribute(":value",j(i)),t.value="")}var n,r=t.hasAttributes();return r&&(n=Me(t,e)),n||(n=Be(t,e)),n||(n=Ve(t,e)),!n&&r&&(n=Ue(t.attributes,e)),n}function De(t,e){if(t._skip)return Pe;var i=T(t.wholeText);if(!i)return null;for(var n=t.nextSibling;n&&3===n.nodeType;)n._skip=!0,n=n.nextSibling;for(var r,s,o=document.createDocumentFragment(),a=0,h=i.length;h>a;a++)s=i[a],r=s.tag?Re(s,e):document.createTextNode(s.value),o.appendChild(r);return He(i,o,e)}function Pe(t,e){I(e)}function Re(t,e){function i(e){if(!t.descriptor){var i=A(t.value);t.descriptor={name:e,def:Zr[e],expression:i.expression,filters:i.filters}}}var n;return t.oneTime?n=document.createTextNode(t.value):t.html?(n=document.createComment("v-html"),i("html")):(n=document.createTextNode(" "),i("text")),n}function He(t,e){return function(i,n,r,s){for(var o,a,h,l=e.cloneNode(!0),c=d(l.childNodes),u=0,f=t.length;f>u;u++)o=t[u],a=o.value,o.tag&&(h=c[u],o.oneTime?(a=(s||i).$eval(a),o.html?q(h,ne(a,!0)):h.data=a):i._bindDir(o.descriptor,h,r,s));q(n,l)}}function Le(t,e){for(var i,n,r,s=[],o=0,a=t.length;a>o;o++)r=t[o],i=Se(r,e),n=i&&i.terminal||"SCRIPT"===r.tagName||!r.hasChildNodes()?null:Le(r.childNodes,e),s.push(i,n);return s.length?We(s):null}function We(t){return function(e,i,n,r,s){for(var o,a,h,l=0,c=0,u=t.length;u>l;c++){o=i[c],a=t[l++],h=t[l++];var f=d(o.childNodes);a&&a(e,o,n,r,s),h&&h(e,f,n,r,s)}}}function Be(t,e){var i=t.tagName.toLowerCase();if(!ln.test(i)){"slot"===i&&V(t,"name")&&(i="_namedSlot");var n=gt(e,"elementDirectives",i);return n?Ie(t,i,"",e,n):void 0}}function Ve(t,e){var i=ot(t,e);if(i){var n=nt(t),r={name:"component",ref:n,expression:i.id,def:ls.component,modifiers:{literal:!i.dynamic}},s=function(t,e,i,s,o){n&&kt((s||t).$refs,n,null),t._bindDir(r,e,i,s,o)};return s.terminal=!0,s}}function Me(t,e){if(null!==W(t,"v-pre"))return ze;if(t.hasAttribute("v-else")){var i=t.previousElementSibling;if(i&&i.hasAttribute("v-if"))return ze}for(var n,r,s=0,o=_s.length;o>s;s++)if(r=_s[s],n=t.getAttribute("v-"+r))return Ie(t,r,n,e)}function ze(){}function Ie(t,e,i,n,r){var s=A(i),o={name:e,expression:s.expression,filters:s.filters,raw:i,def:r||Zr[e]};("for"===e||"router-view"===e)&&(o.ref=nt(t));var a=function(t,e,i,n,r){o.ref&&kt((n||t).$refs,o.ref,null),t._bindDir(o,e,i,n,r)};return a.terminal=!0,a}function Ue(t,e){function i(t,e,i){var n=A(s);d.push({name:t,attr:o,raw:a,def:e,arg:l,modifiers:c,expression:n.expression,filters:n.filters,interp:i})}for(var n,r,s,o,a,h,l,c,u,f,p=t.length,d=[];p--;)if(n=t[p],r=o=n.name,s=a=n.value,f=T(s),l=null,c=qe(r),r=r.replace(ms,""),f)s=j(f),l=r,i("bind",Zr.bind,!0);else if(gs.test(r))c.literal=!ps.test(r),i("transition",ls.transition);else if(ds.test(r))l=r.replace(ds,""),i("on",Zr.on);else if(ps.test(r))h=r.replace(ps,""),"style"===h||"class"===h?i(h,ls[h]):(l=h,i("bind",Zr.bind));else if(0===r.indexOf("v-")){if(l=(l=r.match(vs))&&l[1],l&&(r=r.replace(vs,"")),h=r.slice(2),"else"===h)continue;u=gt(e,"directives",h),u&&i(h,u)}return d.length?Je(d):void 0}function qe(t){var e=Object.create(null),i=t.match(ms);if(i)for(var n=i.length;n--;)e[i[n].slice(1)]=!0;return e}function Je(t){return function(e,i,n,r,s){for(var o=t.length;o--;)e._bindDir(t[o],i,n,r,s)}}function Qe(t,e){return e&&(e._containerAttrs=Ze(t)),et(t)&&(t=ne(t)),e&&(e._asComponent&&!e.template&&(e.template=""),e.template&&(e._content=X(t),t=Ge(t,e))),t instanceof DocumentFragment&&(U(it("v-start",!0),t),t.appendChild(it("v-end",!0))),t}function Ge(t,e){var i=e.template,n=ne(i,!0);if(n){var r=n.firstChild,s=r.tagName&&r.tagName.toLowerCase();return e.replace?(t===document.body,n.childNodes.length>1||1!==r.nodeType||"component"===s||gt(e,"components",s)||V(r,"is")||gt(e,"elementDirectives",s)||r.hasAttribute("v-for")||r.hasAttribute("v-if")?n:(e._replacerAttrs=Ze(r),Ke(t,r),r)):(t.appendChild(n),t)}}function Ze(t){return 1===t.nodeType&&t.hasAttributes()?d(t.attributes):void 0}function Ke(t,e){for(var i,n,r=t.attributes,s=r.length;s--;)i=r[s].name,n=r[s].value,e.hasAttribute(i)||ys.test(i)?"class"===i&&n.split(/\s+/).forEach(function(t){Z(e,t)}):e.setAttribute(i,n)}function Xe(e){function n(){}function s(t,e){var i=new It(e,t,null,{lazy:!0});return function(){return i.dirty&&i.evaluate(),bt.target&&i.depend(),i.value}}Object.defineProperty(e.prototype,"$data",{get:function(){return this._data},set:function(t){t!==this._data&&this._setData(t)}}),e.prototype._initState=function(){this._initProps(),this._initMeta(),this._initMethods(),this._initData(),this._initComputed()},e.prototype._initProps=function(){var t=this.$options,e=t.el,i=t.props;e=t.el=H(e),this._propsUnlinkFn=e&&1===e.nodeType&&i?je(this,e,i,this._scope):null},e.prototype._initData=function(){var e=this._data,n=this.$options.data,r=n&&n();if(r){this._data=r;for(var s in e)null===this._props[s].raw&&i(r,s)||t(r,s,e[s])}var o,a,h=this._data,l=Object.keys(h);for(o=l.length;o--;)a=l[o],this._proxy(a);$t(h,this)},e.prototype._setData=function(t){t=t||{};var e=this._data;this._data=t;var n,r,s;for(n=Object.keys(e),s=n.length;s--;)r=n[s],r in t||this._unproxy(r);for(n=Object.keys(t),s=n.length;s--;)r=n[s],i(this,r)||this._proxy(r);e.__ob__.removeVm(this),$t(t,this),this._digest()},e.prototype._proxy=function(t){if(!r(t)){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(i){e._data[t]=i}})}},e.prototype._unproxy=function(t){r(t)||delete this[t]},e.prototype._digest=function(){for(var t=0,e=this._watchers.length;e>t;t++)this._watchers[t].update(!0)},e.prototype._initComputed=function(){var t=this.$options.computed;if(t)for(var e in t){var i=t[e],r={enumerable:!0,configurable:!0};"function"==typeof i?(r.get=s(i,this),r.set=n):(r.get=i.get?i.cache!==!1?s(i.get,this):p(i.get,this):n,r.set=i.set?p(i.set,this):n),Object.defineProperty(this,e,r)}},e.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=p(t[e],this)},e.prototype._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)kt(this,e,t[e])}}function Ye(t){function e(t,e){for(var i,n,r=e.attributes,s=0,o=r.length;o>s;s++)i=r[s].name,ws.test(i)&&(i=i.replace(ws,""),n=(t._scope||t._context).$eval(r[s].value,!0),t.$on(i.replace(ws),n))}function i(t,e,i){if(i){var r,s,o,a;for(s in i)if(r=i[s],wi(r))for(o=0,a=r.length;a>o;o++)n(t,e,s,r[o]);else n(t,e,s,r)}}function n(t,e,i,r,s){var o=typeof r;if("function"===o)t[e](i,r,s);else if("string"===o){var a=t.$options.methods,h=a&&a[r];h&&t[e](i,h,s)}else r&&"object"===o&&n(t,e,i,r.handler,r)}function r(){this._isAttached||(this._isAttached=!0,this.$children.forEach(s))}function s(t){!t._isAttached&&L(t.$el)&&t._callHook("attached")}function o(){this._isAttached&&(this._isAttached=!1,this.$children.forEach(a))}function a(t){t._isAttached&&!L(t.$el)&&t._callHook("detached")}t.prototype._initEvents=function(){var t=this.$options;t._asComponent&&e(this,t.el),i(this,"$on",t.events),i(this,"$watch",t.watch)},t.prototype._initDOMHooks=function(){this.$on("hook:attached",r),this.$on("hook:detached",o)},t.prototype._callHook=function(t){this.$emit("pre-hook:"+t);var e=this.$options[t];if(e)for(var i=0,n=e.length;n>i;i++)e[i].call(this);this.$emit("hook:"+t)}}function ti(){}function ei(t,e,i,n,r,s){this.vm=e,this.el=i,this.descriptor=t,this.name=t.name,this.expression=t.expression,this.arg=t.arg,this.modifiers=t.modifiers,this.filters=t.filters,this.literal=this.modifiers&&this.modifiers.literal,this._locked=!1,this._bound=!1,this._listeners=null,this._host=n,this._scope=r,this._frag=s}function ii(t){t.prototype._updateRef=function(t){var e=this.$options._ref;if(e){var i=(this._scope||this._context).$refs;t?i[e]===this&&(i[e]=null):i[e]=this}},t.prototype._compile=function(t){var e=this.$options,i=t;if(t=Qe(t,e),this._initElement(t),1!==t.nodeType||null===W(t,"v-pre")){var n,r=this._context&&this._context.$options,s=Ee(t,e,r),o=this.constructor;e._linkerCachable&&(n=o.linker,n||(n=o.linker=xe(t,e)));var a=s(this,t,this._scope),h=n?n(this,t):xe(t,e)(this,t);return this._unlinkFn=function(){a(),h(!0)},e.replace&&q(i,t),this._isCompiled=!0,this._callHook("compiled"),t}},t.prototype._initElement=function(t){t instanceof DocumentFragment?(this._isFragment=!0,this.$el=this._fragmentStart=t.firstChild,this._fragmentEnd=t.lastChild,3===this._fragmentStart.nodeType&&(this._fragmentStart.data=this._fragmentEnd.data=""),this._fragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},t.prototype._bindDir=function(t,e,i,n,r){this._directives.push(new ei(t,this,e,i,n,r))},t.prototype._destroy=function(t,e){if(this._isBeingDestroyed)return void(e||this._cleanup());var i,n,r=this,s=function(){!i||n||e||r._cleanup()};t&&this.$el&&(n=!0,this.$remove(function(){n=!1,s()})),this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var o,a=this.$parent;for(a&&!a._isBeingDestroyed&&(a.$children.$remove(this),this._updateRef(!0)),o=this.$children.length;o--;)this.$children[o].$destroy();for(this._propsUnlinkFn&&this._propsUnlinkFn(),this._unlinkFn&&this._unlinkFn(),o=this._watchers.length;o--;)this._watchers[o].teardown();this.$el&&(this.$el.__vue__=null),i=!0,s()},t.prototype._cleanup=function(){this._isDestroyed||(this._frag&&this._frag.children.$remove(this),this._data.__ob__&&this._data.__ob__.removeVm(this),this.$el=this.$parent=this.$root=this.$children=this._watchers=this._context=this._scope=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off())}}function ni(t){t.prototype._applyFilters=function(t,e,i,n){var r,s,o,a,h,l,c,u,f;for(l=0,c=i.length;c>l;l++)if(r=i[l],s=gt(this.$options,"filters",r.name),s&&(s=n?s.write:s.read||s,"function"==typeof s)){if(o=n?[t,e]:[t],h=n?2:1,r.args)for(u=0,f=r.args.length;f>u;u++)a=r.args[u],o[u+h]=a.dynamic?this.$get(a.value):a.value;t=s.apply(this,o)}return t},t.prototype._resolveComponent=function(e,i){var n=gt(this.$options,"components",e);if(n)if(n.options)i(n);else if(n.resolved)i(n.resolved);else if(n.requested)n.pendingCallbacks.push(i);else{n.requested=!0;var r=n.pendingCallbacks=[i];n(function(e){g(e)&&(e=t.extend(e)),n.resolved=e;for(var i=0,s=r.length;s>i;i++)r[i](e)},function(t){})}}}function ri(i){function n(t){return new Function("return function "+f(t)+" (options) { this._init(options) }")()}i.util=gn,i.config=on,i.set=t,i["delete"]=e,i.nextTick=Fi,i.compiler=Cs,i.FragmentFactory=fe,i.internalDirectives=ls,i.parsers={path:Dn,text:nn,template:zr,directive:Zi,expression:Qn},i.cid=0;var r=1;i.extend=function(t){t=t||{};var e=this,i=0===e.cid;if(i&&t._Ctor)return t._Ctor;var s=t.name||e.options.name,o=n(s||"VueComponent");return o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.cid=r++,o.options=mt(e.options,t),o["super"]=e,o.extend=e.extend,on._assetTypes.forEach(function(t){o[t]=e[t]}),s&&(o.options.components[s]=o),i&&(t._Ctor=o),o},i.use=function(t){if(!t.installed){var e=d(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}},i.mixin=function(t){i.options=mt(i.options,t)},on._assetTypes.forEach(function(t){i[t]=function(e,n){return n?("component"===t&&g(n)&&(n.name=e,n=i.extend(n)),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function si(t){function i(t){return JSON.parse(JSON.stringify(t))}t.prototype.$get=function(t,e){var i=Lt(t);if(i){if(e&&!Wt(t)){var n=this;return function(){n.$arguments=d(arguments),i.get.call(n,n),n.$arguments=null}}try{return i.get.call(this,this)}catch(r){}}},t.prototype.$set=function(t,e){var i=Lt(t,!0);i&&i.set&&i.set.call(this,this,e)},t.prototype.$delete=function(t){e(this._data,t)},t.prototype.$watch=function(t,e,i){ -var n,r=this;"string"==typeof t&&(n=A(t),t=n.expression);var s=new It(r,t,e,{deep:i&&i.deep,sync:i&&i.sync,filters:n&&n.filters,user:!i||i.user!==!1});return i&&i.immediate&&e.call(r,s.value),function(){s.teardown()}},t.prototype.$eval=function(t,e){if($s.test(t)){var i=A(t),n=this.$get(i.expression,e);return i.filters?this._applyFilters(n,null,i.filters):n}return this.$get(t,e)},t.prototype.$interpolate=function(t){var e=T(t),i=this;return e?1===e.length?i.$eval(e[0].value)+"":e.map(function(t){return t.tag?i.$eval(t.value):t.value}).join(""):t},t.prototype.$log=function(t){var e=t?jt(this._data,t):this._data;if(e&&(e=i(e)),!t)for(var n in this.$options.computed)e[n]=i(this[n]);console.log(e)}}function oi(t){function e(t,e,n,r,s,o){e=i(e);var a=!L(e),h=r===!1||a?s:o,l=!a&&!t._isAttached&&!L(t.$el);return t._isFragment?(rt(t._fragmentStart,t._fragmentEnd,function(i){h(i,e,t)}),n&&n()):h(t.$el,e,t,n),l&&t._callHook("attached"),t}function i(t){return"string"==typeof t?document.querySelector(t):t}function n(t,e,i,n){e.appendChild(t),n&&n()}function r(t,e,i,n){M(t,e),n&&n()}function s(t,e,i){I(t),i&&i()}t.prototype.$nextTick=function(t){Fi(t,this)},t.prototype.$appendTo=function(t,i,r){return e(this,t,i,r,n,F)},t.prototype.$prependTo=function(t,e,n){return t=i(t),t.hasChildNodes()?this.$before(t.firstChild,e,n):this.$appendTo(t,e,n),this},t.prototype.$before=function(t,i,n){return e(this,t,i,n,r,D)},t.prototype.$after=function(t,e,n){return t=i(t),t.nextSibling?this.$before(t.nextSibling,e,n):this.$appendTo(t.parentNode,e,n),this},t.prototype.$remove=function(t,e){if(!this.$el.parentNode)return t&&t();var i=this._isAttached&&L(this.$el);i||(e=!1);var n=this,r=function(){i&&n._callHook("detached"),t&&t()};if(this._isFragment)st(this._fragmentStart,this._fragmentEnd,this,this._fragment,r);else{var o=e===!1?s:P;o(this.$el,this,r)}return this}}function ai(t){function e(t,e,n){var r=t.$parent;if(r&&n&&!i.test(e))for(;r;)r._eventsCount[e]=(r._eventsCount[e]||0)+n,r=r.$parent}t.prototype.$on=function(t,i){return(this._events[t]||(this._events[t]=[])).push(i),e(this,t,1),this},t.prototype.$once=function(t,e){function i(){n.$off(t,i),e.apply(this,arguments)}var n=this;return i.fn=e,this.$on(t,i),this},t.prototype.$off=function(t,i){var n;if(!arguments.length){if(this.$parent)for(t in this._events)n=this._events[t],n&&e(this,t,-n.length);return this._events={},this}if(n=this._events[t],!n)return this;if(1===arguments.length)return e(this,t,-n.length),this._events[t]=null,this;for(var r,s=n.length;s--;)if(r=n[s],r===i||r.fn===i){e(this,t,-1),n.splice(s,1);break}return this},t.prototype.$emit=function(t){var e=this._events[t],i=!e;if(e){e=e.length>1?d(e):e;for(var n=d(arguments,1),r=0,s=e.length;s>r;r++){var o=e[r].apply(this,n);o===!0&&(i=!0)}}return i},t.prototype.$broadcast=function(t){if(this._eventsCount[t]){for(var e=this.$children,i=0,n=e.length;n>i;i++){var r=e[i],s=r.$emit.apply(r,arguments);s&&r.$broadcast.apply(r,arguments)}return this}},t.prototype.$dispatch=function(){this.$emit.apply(this,arguments);for(var t=this.$parent;t;){var e=t.$emit.apply(t,arguments);t=e?t.$parent:null}return this};var i=/^hook:/}function hi(t){function e(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}t.prototype.$mount=function(t){return this._isCompiled?void 0:(t=H(t),t||(t=document.createElement("div")),this._compile(t),this._initDOMHooks(),L(this.$el)?(this._callHook("attached"),e.call(this)):this.$once("hook:attached",e),this)},t.prototype.$destroy=function(t,e){this._destroy(t,e)},t.prototype.$compile=function(t,e,i,n){return xe(t,this.$options,!0)(this,t,e,i,n)}}function li(t){this._init(t)}function ci(t,e,i){return i=i?parseInt(i,10):0,"number"==typeof e?t.slice(i,i+e):t}function ui(t,e,i){if(t=ks(t),null==e)return t;if("function"==typeof e)return t.filter(e);e=(""+e).toLowerCase();for(var n,r,s,o,a="in"===i?3:2,h=d(arguments,a).reduce(function(t,e){return t.concat(e)},[]),l=[],c=0,u=t.length;u>c;c++)if(n=t[c],s=n&&n.$value||n,o=h.length){for(;o--;)if(r=h[o],"$key"===r&&pi(n.$key,e)||pi(jt(s,r),e)){l.push(n);break}}else pi(n,e)&&l.push(n);return l}function fi(t,e,i){if(t=ks(t),!e)return t;var n=i&&0>i?-1:1;return t.slice().sort(function(t,i){return"$key"!==e&&(m(t)&&"$value"in t&&(t=t.$value),m(i)&&"$value"in i&&(i=i.$value)),t=m(t)?jt(t,e):t,i=m(i)?jt(i,e):i,t===i?0:t>i?n:-n})}function pi(t,e){var i;if(g(t)){var n=Object.keys(t);for(i=n.length;i--;)if(pi(t[n[i]],e))return!0}else if(wi(t)){for(i=t.length;i--;)if(pi(t[i],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}function di(t,e,i){function n(t){!et(t)||t.hasAttribute("v-if")||t.hasAttribute("v-for")||(t=ne(t)),t=ie(t),r.appendChild(t)}for(var r=document.createDocumentFragment(),s=0,o=t.length;o>s;s++){var a=t[s];i&&!a.__v_selected?n(a):i||a.parentNode!==e||(a.__v_selected=!0,n(a))}return r}var vi=Object.prototype.hasOwnProperty,mi=/^\s?(true|false|[\d\.]+|'[^']*'|"[^"]*")\s?$/,gi=/-(\w)/g,_i=/([a-z\d])([A-Z])/g,bi=/(?:^|[-_\/])(\w)/g,yi=Object.prototype.toString,Ci="[object Object]",wi=Array.isArray,$i="__proto__"in{},ki="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),xi=ki&&navigator.userAgent.toLowerCase().indexOf("msie 9.0")>0,Ai=ki&&navigator.userAgent.toLowerCase().indexOf("android")>0,Oi=void 0,Ni=void 0,Ti=void 0,ji=void 0;if(ki&&!xi){var Ei=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,Si=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;Oi=Ei?"WebkitTransition":"transition",Ni=Ei?"webkitTransitionEnd":"transitionend",Ti=Si?"WebkitAnimation":"animation",ji=Si?"webkitAnimationEnd":"animationend"}var Fi=function(){function t(){n=!1;var t=i.slice(0);i=[];for(var e=0;e=this.length&&(this.length=Number(t)+1),this.splice(t,1,e)[0]}),_(pn,"$remove",function(t){if(this.length){var e=y(this,t);return e>-1?this.splice(e,1):void 0}});var vn=0;bt.target=null,bt.prototype.addSub=function(t){this.subs.push(t)},bt.prototype.removeSub=function(t){this.subs.$remove(t)},bt.prototype.depend=function(){bt.target.addDep(this)},bt.prototype.notify=function(){for(var t=d(this.subs),e=0,i=t.length;i>e;e++)t[e].update()};var mn=Object.getOwnPropertyNames(dn);yt.prototype.walk=function(t){for(var e=Object.keys(t),i=0,n=e.length;n>i;i++)this.convert(e[i],t[e[i]])},yt.prototype.observeArray=function(t){for(var e=0,i=t.length;i>e;e++)$t(t[e])},yt.prototype.convert=function(t,e){kt(this.value,t,e)},yt.prototype.addVm=function(t){(this.vms||(this.vms=[])).push(t)},yt.prototype.removeVm=function(t){this.vms.$remove(t)};var gn=Object.freeze({defineReactive:kt,set:t,del:e,hasOwn:i,isLiteral:n,isReserved:r,_toString:s,toNumber:o,toBoolean:a,stripQuotes:h,camelize:l,hyphenate:u,classify:f,bind:p,toArray:d,extend:v,isObject:m,isPlainObject:g,def:_,debounce:b,indexOf:y,cancellable:C,looseEqual:w,isArray:wi,hasProto:$i,inBrowser:ki,isIE9:xi,isAndroid:Ai,get transitionProp(){return Oi},get transitionEndEvent(){return Ni},get animationProp(){return Ti},get animationEndEvent(){return ji},nextTick:Fi,query:H,inDoc:L,getAttr:W,getBindAttr:B,hasBindAttr:V,before:M,after:z,remove:I,prepend:U,replace:q,on:J,off:Q,setClass:G,addClass:Z,removeClass:K,extractContent:X,trimNode:Y,isTemplate:et,createAnchor:it,findRef:nt,mapNodeRange:rt,removeNodeRange:st,mergeOptions:mt,resolveAsset:gt,assertAsset:_t,checkComponentAttr:ot,initProp:ht,assertProp:lt,coerceProp:ct,commonTagRE:ln,reservedTagRE:cn,warn:an}),_n=0,bn=new $(1e3),yn=0,Cn=1,wn=2,$n=3,kn=0,xn=1,An=2,On=3,Nn=4,Tn=5,jn=6,En=7,Sn=8,Fn=[];Fn[kn]={ws:[kn],ident:[On,yn],"[":[Nn],eof:[En]},Fn[xn]={ws:[xn],".":[An],"[":[Nn],eof:[En]},Fn[An]={ws:[An],ident:[On,yn]},Fn[On]={ident:[On,yn],0:[On,yn],number:[On,yn],ws:[xn,Cn],".":[An,Cn],"[":[Nn,Cn],eof:[En,Cn]},Fn[Nn]={"'":[Tn,yn],'"':[jn,yn],"[":[Nn,wn],"]":[xn,$n],eof:Sn,"else":[Nn,yn]},Fn[Tn]={"'":[Nn,yn],eof:Sn,"else":[Tn,yn]},Fn[jn]={'"':[Nn,yn],eof:Sn,"else":[jn,yn]};var Dn=Object.freeze({parsePath:Tt,getPath:jt,setPath:Et}),Pn=new $(1e3),Rn="Math,Date,this,true,false,null,undefined,Infinity,NaN,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,parseInt,parseFloat",Hn=new RegExp("^("+Rn.replace(/,/g,"\\b|")+"\\b)"),Ln="break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,with,yield,enum,await,implements,package,proctected,static,interface,private,public",Wn=new RegExp("^("+Ln.replace(/,/g,"\\b|")+"\\b)"),Bn=/\s/g,Vn=/\n/g,Mn=/[\{,]\s*[\w\$_]+\s*:|('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")|new |typeof |void /g,zn=/"(\d+)"/g,In=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,Un=/[^\w$\.](?:[A-Za-z_$][\w$]*)/g,qn=/^(?:true|false)$/,Jn=[],Qn=Object.freeze({parseExpression:Lt,isSimplePath:Wt}),Gn=[],Zn=[],Kn={},Xn={},Yn=!1,tr=!1,er=0;It.prototype.addDep=function(t){var e=t.id;this.newDeps[e]||(this.newDeps[e]=t,this.deps[e]||(this.deps[e]=t,t.addSub(this)))},It.prototype.get=function(){this.beforeGet();var t,e=this.scope||this.vm;try{t=this.getter.call(e,e)}catch(i){}return this.deep&&Ut(t),this.preProcess&&(t=this.preProcess(t)),this.filters&&(t=e._applyFilters(t,null,this.filters,!1)),this.postProcess&&(t=this.postProcess(t)),this.afterGet(),t},It.prototype.set=function(t){var e=this.scope||this.vm;this.filters&&(t=e._applyFilters(t,this.value,this.filters,!0));try{this.setter.call(e,e,t)}catch(i){}var n=e.$forContext;if(n&&n.alias===this.expression){if(n.filters)return;n._withLock(function(){e.$key?n.rawValue[e.$key]=t:n.rawValue.$set(e.$index,t)})}},It.prototype.beforeGet=function(){bt.target=this,this.newDeps=Object.create(null)},It.prototype.afterGet=function(){bt.target=null;for(var t=Object.keys(this.deps),e=t.length;e--;){var i=t[e];this.newDeps[i]||this.deps[i].removeSub(this)}this.deps=this.newDeps},It.prototype.update=function(t){this.lazy?this.dirty=!0:this.sync||!on.async?this.run():(this.shallow=this.queued?t?this.shallow:!1:!!t,this.queued=!0,zt(this))},It.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||(m(t)||this.deep)&&!this.shallow){var e=this.value;this.value=t;this.prevError;this.cb.call(this.vm,t,e)}this.queued=this.shallow=!1}},It.prototype.evaluate=function(){var t=bt.target;this.value=this.get(),this.dirty=!1,bt.target=t},It.prototype.depend=function(){for(var t=Object.keys(this.deps),e=t.length;e--;)this.deps[t[e]].depend()},It.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._watchers.$remove(this);for(var t=Object.keys(this.deps),e=t.length;e--;)this.deps[t[e]].removeSub(this);this.active=!1,this.vm=this.cb=this.value=null}};var ir={bind:function(){var t=this.el;this.vm.$once("pre-hook:compiled",function(){t.removeAttribute("v-cloak")})}},nr={bind:function(){}},rr=700,sr=800,or=850,ar=1100,hr=1500,lr=1500,cr=1750,ur=1750,fr=2e3,pr=2e3,dr={priority:hr,bind:function(){if(this.arg){var t=this.id=l(this.arg),e=(this._scope||this.vm).$els;i(e,t)?e[t]=this.el:kt(e,t,this.el)}},unbind:function(){var t=(this._scope||this.vm).$els;t[this.id]===this.el&&(t[this.id]=null)}},vr=["-webkit-","-moz-","-ms-"],mr=["Webkit","Moz","ms"],gr=/!important;?$/,_r=Object.create(null),br=null,yr={deep:!0,update:function(t){"string"==typeof t?this.el.style.cssText=t:wi(t)?this.handleObject(t.reduce(v,{})):this.handleObject(t||{})},handleObject:function(t){var e,i,n=this.cache||(this.cache={});for(e in n)e in t||(this.handleSingle(e,null),delete n[e]);for(e in t)i=t[e],i!==n[e]&&(n[e]=i,this.handleSingle(e,i))},handleSingle:function(t,e){if(t=qt(t))if(null!=e&&(e+=""),e){var i=gr.test(e)?"important":"";i&&(e=e.replace(gr,"").trim()),this.el.style.setProperty(t,e,i)}else this.el.style.removeProperty(t)}},Cr="http://www.w3.org/1999/xlink",wr=/^xlink:/,$r=/^v-|^:|^@|^(is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/,kr=/^(value|checked|selected|muted)$/,xr={value:"_value","true-value":"_trueValue","false-value":"_falseValue"},Ar={priority:or,bind:function(){var t=this.arg,e=this.el.tagName;t||(this.deep=!0),this.descriptor.interp&&($r.test(t)||"name"===t&&("PARTIAL"===e||"SLOT"===e))&&(this.el.removeAttribute(t),this.invalid=!0)},update:function(t){if(!this.invalid){var e=this.arg;this.arg?this.handleSingle(e,t):this.handleObject(t||{})}},handleObject:yr.handleObject,handleSingle:function(t,e){var i=this.el,n=this.descriptor.interp;!n&&kr.test(t)&&t in i&&(i[t]="value"===t&&null==e?"":e);var r=xr[t];if(!n&&r){i[r]=e;var s=i.__v_model;s&&s.listener()}return"value"===t&&"TEXTAREA"===i.tagName?void i.removeAttribute(t):void(null!=e&&e!==!1?"class"===t?(i.__v_trans&&(e+=" "+i.__v_trans.id+"-transition"),G(i,e)):wr.test(t)?i.setAttributeNS(Cr,t,e):i.setAttribute(t,e):i.removeAttribute(t))}},Or={esc:27,tab:9,enter:13,space:32,"delete":46,up:38,left:37,right:39,down:40},Nr={acceptStatement:!0,priority:rr,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){J(t.el.contentWindow,t.arg,t.handler)},this.on("load",this.iframeBind)}},update:function(t){if(this.descriptor.raw||(t=function(){}),"function"==typeof t){this.modifiers.stop&&(t=Gt(t)),this.modifiers.prevent&&(t=Zt(t));var e=Object.keys(this.modifiers).filter(function(t){return"stop"!==t&&"prevent"!==t});e.length&&(t=Qt(t,e)),this.reset(),this.handler=t,this.iframeBind?this.iframeBind():J(this.el,this.arg,this.handler)}},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&Q(t,this.arg,this.handler)},unbind:function(){this.reset()}},Tr={bind:function(){function t(){var t=i.checked;return t&&i.hasOwnProperty("_trueValue")?i._trueValue:!t&&i.hasOwnProperty("_falseValue")?i._falseValue:t}var e=this,i=this.el;this.getValue=function(){return i.hasOwnProperty("_value")?i._value:e.params.number?o(i.value):i.value},this.listener=function(){var n=e._watcher.value;if(wi(n)){var r=e.getValue();i.checked?y(n,r)<0&&n.push(r):n.$remove(r)}else e.set(t())},this.on("change",this.listener),i.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){var e=this.el;wi(t)?e.checked=y(t,this.getValue())>-1:e.hasOwnProperty("_trueValue")?e.checked=w(t,e._trueValue):e.checked=!!t}},jr={bind:function(){var t=this,e=this.el;this.forceUpdate=function(){t._watcher&&t.update(t._watcher.get())};var i=this.multiple=e.hasAttribute("multiple");this.listener=function(){var n=Kt(e,i);n=t.params.number?wi(n)?n.map(o):o(n):n,t.set(n)},this.on("change",this.listener);var n=Kt(e,i,!0);(i&&n.length||!i&&null!==n)&&(this.afterBind=this.listener),this.vm.$on("hook:attached",this.forceUpdate)},update:function(t){var e=this.el;e.selectedIndex=-1;for(var i,n,r=this.multiple&&wi(t),s=e.options,o=s.length;o--;)i=s[o],n=i.hasOwnProperty("_value")?i._value:i.value,i.selected=r?Xt(t,n)>-1:w(t,n)},unbind:function(){this.vm.$off("hook:attached",this.forceUpdate)}},Er={bind:function(){var t=this,e=this.el;this.getValue=function(){if(e.hasOwnProperty("_value"))return e._value;var i=e.value;return t.params.number&&(i=o(i)),i},this.listener=function(){t.set(t.getValue())},this.on("change",this.listener),e.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){this.el.checked=w(t,this.getValue())}},Sr={bind:function(){var t=this,e=this.el,i="range"===e.type,n=this.params.lazy,r=this.params.number,s=this.params.debounce,a=!1;Ai||i||(this.on("compositionstart",function(){a=!0}),this.on("compositionend",function(){a=!1,n||t.listener()})),this.focused=!1,i||(this.on("focus",function(){t.focused=!0}),this.on("blur",function(){t.focused=!1,(!t._frag||t._frag.inserted)&&t.rawListener()})),this.listener=this.rawListener=function(){if(!a&&t._bound){var n=r||i?o(e.value):e.value;t.set(n),Fi(function(){t._bound&&!t.focused&&t.update(t._watcher.value)})}},s&&(this.listener=b(this.listener,s)),this.hasjQuery="function"==typeof jQuery,this.hasjQuery?(jQuery(e).on("change",this.listener),n||jQuery(e).on("input",this.listener)):(this.on("change",this.listener),n||this.on("input",this.listener)),!n&&xi&&(this.on("cut",function(){Fi(t.listener)}),this.on("keyup",function(e){(46===e.keyCode||8===e.keyCode)&&t.listener()})),(e.hasAttribute("value")||"TEXTAREA"===e.tagName&&e.value.trim())&&(this.afterBind=this.listener)},update:function(t){this.el.value=s(t)},unbind:function(){var t=this.el;this.hasjQuery&&(jQuery(t).off("change",this.listener),jQuery(t).off("input",this.listener))}},Fr={text:Sr,radio:Er,select:jr,checkbox:Tr},Dr={priority:sr,twoWay:!0,handlers:Fr,params:["lazy","number","debounce"],bind:function(){this.checkFilters(),this.hasRead&&!this.hasWrite;var t,e=this.el,i=e.tagName;if("INPUT"===i)t=Fr[e.type]||Fr.text;else if("SELECT"===i)t=Fr.select;else{if("TEXTAREA"!==i)return;t=Fr.text}e.__v_model=this,t.bind.call(this),this.update=t.update,this._unbind=t.unbind},checkFilters:function(){var t=this.filters;if(t)for(var e=t.length;e--;){var i=gt(this.vm.$options,"filters",t[e].name);("function"==typeof i||i.read)&&(this.hasRead=!0),i.write&&(this.hasWrite=!0)}},unbind:function(){this.el.__v_model=null,this._unbind&&this._unbind()}},Pr={bind:function(){var t=this.el.nextElementSibling;t&&null!==W(t,"v-else")&&(this.elseEl=t)},update:function(t){this.apply(this.el,t),this.elseEl&&this.apply(this.elseEl,!t)},apply:function(t,e){function i(){t.style.display=e?"":"none"}L(t)?R(t,e?1:-1,i,this.vm):i()}},Rr=new $(1e3),Hr=new $(1e3),Lr={efault:[0,"",""],legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"]};Lr.td=Lr.th=[3,"","
"],Lr.option=Lr.optgroup=[1,'"],Lr.thead=Lr.tbody=Lr.colgroup=Lr.caption=Lr.tfoot=[1,"","
"],Lr.g=Lr.defs=Lr.symbol=Lr.use=Lr.image=Lr.text=Lr.circle=Lr.ellipse=Lr.line=Lr.path=Lr.polygon=Lr.polyline=Lr.rect=[1,'',""];var Wr=/<([\w:]+)/,Br=/&#?\w+?;/,Vr=function(){if(ki){var t=document.createElement("div");return t.innerHTML="",!t.cloneNode(!0).firstChild.innerHTML}return!1}(),Mr=function(){if(ki){var t=document.createElement("textarea");return t.placeholder="t","t"===t.cloneNode(!0).value}return!1}(),zr=Object.freeze({cloneNode:ie,parseTemplate:ne});re.prototype.callHook=function(t){var e,i;for(e=0,i=this.children.length;i>e;e++)t(this.children[e]);for(e=0,i=this.childFrags.length;i>e;e++)this.childFrags[e].callHook(t)},re.prototype.destroy=function(){this.parentFrag&&this.parentFrag.childFrags.$remove(this),this.unlink()};var Ir=new $(5e3);fe.prototype.create=function(t,e,i){var n=ie(this.template);return new re(this.linker,this.vm,n,t,e,i)};var Ur={priority:pr,bind:function(){var t=this.el;if(t.__vue__)this.invalid=!0;else{var e=t.nextElementSibling;e&&null!==W(e,"v-else")&&(I(e),this.elseFactory=new fe(this.vm,e)),this.anchor=it("v-if"),q(t,this.anchor),this.factory=new fe(this.vm,t)}},update:function(t){this.invalid||(t?this.frag||this.insert():this.remove())},insert:function(){this.elseFrag&&(this.elseFrag.remove(),this.elseFrag=null),this.frag=this.factory.create(this._host,this._scope,this._frag),this.frag.before(this.anchor)},remove:function(){this.frag&&(this.frag.remove(),this.frag=null),this.elseFactory&&!this.elseFrag&&(this.elseFrag=this.elseFactory.create(this._host,this._scope,this._frag),this.elseFrag.before(this.anchor))},unbind:function(){this.frag&&this.frag.destroy()}},qr=0,Jr={priority:fr,params:["track-by","stagger","enter-stagger","leave-stagger"],bind:function(){var t=this.expression.match(/(.*) in (.*)/);if(t){var e=t[1].match(/\((.*),(.*)\)/);e?(this.iterator=e[1].trim(),this.alias=e[2].trim()):this.alias=t[1].trim(),this.expression=t[2]}if(this.alias){this.id="__v-for__"+ ++qr;var i=this.el.tagName;this.isOption=("OPTION"===i||"OPTGROUP"===i)&&"SELECT"===this.el.parentNode.tagName,this.start=it("v-for-start"),this.end=it("v-for-end"),q(this.el,this.end),M(this.start,this.end),this.cache=Object.create(null),this.factory=new fe(this.vm,this.el)}},update:function(t){this.diff(t),this.updateRef(),this.updateModel()},diff:function(t){var e,n,r,s,o,a,h=t[0],l=this.fromObject=m(h)&&i(h,"$key")&&i(h,"$value"),c=this.params.trackBy,u=this.frags,f=this.frags=new Array(t.length),p=this.alias,d=this.iterator,v=this.start,g=this.end,_=L(v),b=!u;for(e=0,n=t.length;n>e;e++)h=t[e],s=l?h.$key:null,o=l?h.$value:h,a=!m(o),r=!b&&this.getCachedFrag(o,e,s),r?(r.reused=!0,r.scope.$index=e,s&&(r.scope.$key=s),d&&(r.scope[d]=null!==s?s:e),(c||l||a)&&(r.scope[p]=o)):(r=this.create(o,p,e,s),r.fresh=!b),f[e]=r,b&&r.before(g);if(!b){var y=0,C=u.length-f.length;for(e=0,n=u.length;n>e;e++)r=u[e],r.reused||(this.deleteCachedFrag(r),this.remove(r,y++,C,_));var w,$,k,x=0;for(e=0,n=f.length;n>e;e++)r=f[e],w=f[e-1],$=w?w.staggerCb?w.staggerAnchor:w.end||w.node:v,r.reused&&!r.staggerCb?(k=pe(r,v,this.id),k===w||k&&pe(k,v,this.id)===w||this.move(r,$)):this.insert(r,x++,$,_),r.reused=r.fresh=!1}},create:function(t,e,i,n){var r=this._host,s=this._scope||this.vm,o=Object.create(s);o.$refs=Object.create(s.$refs),o.$els=Object.create(s.$els),o.$parent=s,o.$forContext=this,kt(o,e,t),kt(o,"$index",i),n?kt(o,"$key",n):o.$key&&_(o,"$key",null),this.iterator&&kt(o,this.iterator,null!==n?n:i);var a=this.factory.create(r,o,this._frag);return a.forId=this.id,this.cacheFrag(t,a,i,n),a},updateRef:function(){var t=this.descriptor.ref;if(t){var e,i=(this._scope||this.vm).$refs;this.fromObject?(e={},this.frags.forEach(function(t){e[t.scope.$key]=de(t)})):e=this.frags.map(de),i[t]=e}},updateModel:function(){if(this.isOption){var t=this.start.parentNode,e=t&&t.__v_model;e&&e.forceUpdate()}},insert:function(t,e,i,n){t.staggerCb&&(t.staggerCb.cancel(),t.staggerCb=null);var r=this.getStagger(t,e,null,"enter");if(n&&r){var s=t.staggerAnchor;s||(s=t.staggerAnchor=it("stagger-anchor"),s.__vfrag__=t),z(s,i);var o=t.staggerCb=C(function(){t.staggerCb=null,t.before(s),I(s)});setTimeout(o,r)}else t.before(i.nextSibling)},remove:function(t,e,i,n){if(t.staggerCb)return t.staggerCb.cancel(),void(t.staggerCb=null);var r=this.getStagger(t,e,i,"leave");if(n&&r){var s=t.staggerCb=C(function(){t.staggerCb=null,t.remove()});setTimeout(s,r)}else t.remove()},move:function(t,e){t.before(e.nextSibling,!1)},cacheFrag:function(t,e,n,r){var s,o=this.params.trackBy,a=this.cache,h=!m(t);r||o||h?(s=o?"$index"===o?n:t[o]:r||t,a[s]||(a[s]=e)):(s=this.id,i(t,s)?null===t[s]&&(t[s]=e):_(t,s,e)),e.raw=t},getCachedFrag:function(t,e,i){var n,r=this.params.trackBy,s=!m(t);if(i||r||s){var o=r?"$index"===r?e:t[r]:i||t;n=this.cache[o]}else n=t[this.id];return n&&(n.reused||n.fresh),n},deleteCachedFrag:function(t){var e=t.raw,n=this.params.trackBy,r=t.scope,s=r.$index,o=i(r,"$key")&&r.$key,a=!m(e);if(n||o||a){var h=n?"$index"===n?s:e[n]:o||e;this.cache[h]=null}else e[this.id]=null,t.raw=null},getStagger:function(t,e,i,n){n+="Stagger";var r=t.node.__v_trans,s=r&&r.hooks,o=s&&(s[n]||s.stagger);return o?o.call(t,e,i):e*parseInt(this.params[n]||this.params.stagger,10)},_preProcess:function(t){return this.rawValue=t,t},_postProcess:function(t){if(wi(t))return t;if(g(t)){for(var e,i=Object.keys(t),n=i.length,r=new Array(n);n--;)e=i[n],r[n]={$key:e,$value:t[e]};return r}return"number"==typeof t&&(t=ve(t)),t||[]},unbind:function(){if(this.descriptor.ref&&((this._scope||this.vm).$refs[this.descriptor.ref]=null),this.frags)for(var t,e=this.frags.length;e--;)t=this.frags[e],this.deleteCachedFrag(t),t.destroy()}},Qr={bind:function(){8===this.el.nodeType&&(this.nodes=[],this.anchor=it("v-html"),q(this.el,this.anchor))},update:function(t){t=s(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)I(this.nodes[e]);var i=ne(t,!0,!0);this.nodes=d(i.childNodes),M(i,this.anchor)}},Gr={bind:function(){this.attr=3===this.el.nodeType?"data":"textContent"},update:function(t){this.el[this.attr]=s(t)}},Zr={text:Gr,html:Qr,"for":Jr,"if":Ur,show:Pr,model:Dr,on:Nr,bind:Ar,el:dr,ref:nr,cloak:ir},Kr=[],Xr=!1,Yr=1,ts=2,es=Oi+"Duration",is=Ti+"Duration",ns=_e.prototype;ns.enter=function(t,e){this.cancelPending(),this.callHook("beforeEnter"),this.cb=e,Z(this.el,this.enterClass),t(),this.entered=!1,this.callHookWithCb("enter"),this.entered||(this.cancel=this.hooks&&this.hooks.enterCancelled,me(this.enterNextTick))},ns.enterNextTick=function(){this.justEntered=!0;var t=this;setTimeout(function(){t.justEntered=!1},17);var e=this.enterDone,i=this.getCssTransitionType(this.enterClass);this.pendingJsCb?i===Yr&&K(this.el,this.enterClass):i===Yr?(K(this.el,this.enterClass),this.setupCssCb(Ni,e)):i===ts?this.setupCssCb(ji,e):e()},ns.enterDone=function(){this.entered=!0,this.cancel=this.pendingJsCb=null,K(this.el,this.enterClass),this.callHook("afterEnter"),this.cb&&this.cb()},ns.leave=function(t,e){this.cancelPending(),this.callHook("beforeLeave"),this.op=t,this.cb=e,Z(this.el,this.leaveClass),this.left=!1,this.callHookWithCb("leave"),this.left||(this.cancel=this.hooks&&this.hooks.leaveCancelled,this.op&&!this.pendingJsCb&&(this.justEntered?this.leaveDone():me(this.leaveNextTick)))},ns.leaveNextTick=function(){var t=this.getCssTransitionType(this.leaveClass);if(t){var e=t===Yr?Ni:ji;this.setupCssCb(e,this.leaveDone)}else this.leaveDone()},ns.leaveDone=function(){this.left=!0,this.cancel=this.pendingJsCb=null,this.op(),K(this.el,this.leaveClass),this.callHook("afterLeave"),this.cb&&this.cb(),this.op=null},ns.cancelPending=function(){this.op=this.cb=null;var t=!1;this.pendingCssCb&&(t=!0,Q(this.el,this.pendingCssEvent,this.pendingCssCb),this.pendingCssEvent=this.pendingCssCb=null),this.pendingJsCb&&(t=!0,this.pendingJsCb.cancel(),this.pendingJsCb=null),t&&(K(this.el,this.enterClass),K(this.el,this.leaveClass)),this.cancel&&(this.cancel.call(this.vm,this.el),this.cancel=null)},ns.callHook=function(t){this.hooks&&this.hooks[t]&&this.hooks[t].call(this.vm,this.el)},ns.callHookWithCb=function(t){var e=this.hooks&&this.hooks[t];e&&(e.length>1&&(this.pendingJsCb=C(this[t+"Done"])),e.call(this.vm,this.el,this.pendingJsCb))},ns.getCssTransitionType=function(t){if(!(!Ni||document.hidden||this.hooks&&this.hooks.css===!1||be(this.el))){var e=this.typeCache[t];if(e)return e;var i=this.el.style,n=window.getComputedStyle(this.el),r=i[es]||n[es];if(r&&"0s"!==r)e=Yr;else{var s=i[is]||n[is];s&&"0s"!==s&&(e=ts)}return e&&(this.typeCache[t]=e),e}},ns.setupCssCb=function(t,e){this.pendingCssEvent=t;var i=this,n=this.el,r=this.pendingCssCb=function(s){s.target===n&&(Q(n,t,r),i.pendingCssEvent=i.pendingCssCb=null,!i.pendingJsCb&&e&&e())};J(n,t,r)};var rs={priority:ar,update:function(t,e){var i=this.el,n=gt(this.vm.$options,"transitions",t);t=t||"v",i.__v_trans=new _e(i,t,n,this.el.__vue__||this.vm),e&&K(i,e+"-transition"),Z(i,t+"-transition")}},ss=on._propBindingModes,os={bind:function(){var t=this.vm,e=t._context,i=this.descriptor.prop,n=i.path,r=i.parentPath,s=i.mode===ss.TWO_WAY,o=this.parentWatcher=new It(e,r,function(e){e=ct(i,e),lt(i,e)&&(t[n]=e)},{twoWay:s,filters:i.filters,scope:this._scope});if(ht(t,i,o.value),s){var a=this;t.$once("pre-hook:created",function(){a.childWatcher=new It(t,n,function(t){o.set(t)},{sync:!0})})}},unbind:function(){this.parentWatcher.teardown(),this.childWatcher&&this.childWatcher.teardown()}},as={priority:lr,params:["keep-alive","transition-mode","inline-template"],bind:function(){this.el.__vue__||(this.keepAlive=this.params.keepAlive,this.keepAlive&&(this.cache={}),this.params.inlineTemplate&&(this.inlineTemplate=X(this.el,!0)),this.pendingComponentCb=this.Component=null,this.pendingRemovals=0,this.pendingRemovalCb=null,this.anchor=it("v-component"),q(this.el,this.anchor),this.el.removeAttribute("is"),this.descriptor.ref&&this.el.removeAttribute("v-ref:"+u(this.descriptor.ref)),this.literal&&this.setComponent(this.expression))},update:function(t){this.literal||this.setComponent(t)},setComponent:function(t,e){if(this.invalidatePending(),t){var i=this;this.resolveComponent(t,function(){i.mountComponent(e)})}else this.unbuild(!0),this.remove(this.childVM,e),this.childVM=null},resolveComponent:function(t,e){var i=this;this.pendingComponentCb=C(function(n){i.ComponentName=n.options.name||t,i.Component=n,e()}),this.vm._resolveComponent(t,this.pendingComponentCb)},mountComponent:function(t){this.unbuild(!0);var e=this,i=this.Component.options.activate,n=this.getCached(),r=this.build();i&&!n?(this.waitingFor=r,i.call(r,function(){e.waitingFor===r&&(e.waitingFor=null,e.transition(r,t))})):(n&&r._updateRef(),this.transition(r,t)); -},invalidatePending:function(){this.pendingComponentCb&&(this.pendingComponentCb.cancel(),this.pendingComponentCb=null)},build:function(t){var e=this.getCached();if(e)return e;if(this.Component){var i={name:this.ComponentName,el:ie(this.el),template:this.inlineTemplate,parent:this._host||this.vm,_linkerCachable:!this.inlineTemplate,_ref:this.descriptor.ref,_asComponent:!0,_isRouterView:this._isRouterView,_context:this.vm,_scope:this._scope,_frag:this._frag};t&&v(i,t);var n=new this.Component(i);return this.keepAlive&&(this.cache[this.Component.cid]=n),n}},getCached:function(){return this.keepAlive&&this.cache[this.Component.cid]},unbuild:function(t){this.waitingFor&&(this.waitingFor.$destroy(),this.waitingFor=null);var e=this.childVM;return!e||this.keepAlive?void(e&&e._updateRef(!0)):void e.$destroy(!1,t)},remove:function(t,e){var i=this.keepAlive;if(t){this.pendingRemovals++,this.pendingRemovalCb=e;var n=this;t.$remove(function(){n.pendingRemovals--,i||t._cleanup(),!n.pendingRemovals&&n.pendingRemovalCb&&(n.pendingRemovalCb(),n.pendingRemovalCb=null)})}else e&&e()},transition:function(t,e){var i=this,n=this.childVM;switch(this.childVM=t,i.params.transitionMode){case"in-out":t.$before(i.anchor,function(){i.remove(n,e)});break;case"out-in":i.remove(n,function(){t.$before(i.anchor,e)});break;default:i.remove(n),t.$before(i.anchor,e)}},unbind:function(){if(this.invalidatePending(),this.unbuild(),this.cache){for(var t in this.cache)this.cache[t].$destroy();this.cache=null}}},hs={deep:!0,update:function(t){t&&"string"==typeof t?this.handleObject(ye(t)):g(t)?this.handleObject(t):wi(t)?this.handleArray(t):this.cleanup()},handleObject:function(t){this.cleanup(t);for(var e=this.prevKeys=Object.keys(t),i=0,n=e.length;n>i;i++){var r=e[i];t[r]?Z(this.el,r):K(this.el,r)}},handleArray:function(t){this.cleanup(t);for(var e=0,i=t.length;i>e;e++)t[e]&&Z(this.el,t[e]);this.prevKeys=t.slice()},cleanup:function(t){if(this.prevKeys)for(var e=this.prevKeys.length;e--;){var i=this.prevKeys[e];!i||t&&Ce(t,i)||K(this.el,i)}}},ls={style:yr,"class":hs,component:as,prop:os,transition:rs},cs=on._propBindingModes,us={},fs=/^[$_a-zA-Z]+[\w$]*$/,ps=/^v-bind:|^:/,ds=/^v-on:|^@/,vs=/:(.*)$/,ms=/\.[^\.]+/g,gs=/^(v-bind:|:)?transition$/,_s=["for","if"],bs=1e3;ze.terminal=!0;var ys=/[^\w\-:\.]/,Cs=Object.freeze({compile:xe,compileAndLinkProps:je,compileRoot:Ee,transclude:Qe}),ws=/^v-on:|^@/;ei.prototype._bind=function(){var t=this.name,e=this.descriptor;if(("cloak"!==t||this.vm._isCompiled)&&this.el&&this.el.removeAttribute){var i=e.attr||"v-"+t;this.el.removeAttribute(i)}var n=e.def;if("function"==typeof n?this.update=n:v(this,n),this._setupParams(),this.bind&&this.bind(),this._bound=!0,this.literal)this.update&&this.update(e.raw);else if((this.expression||this.modifiers)&&(this.update||this.twoWay)&&!this._checkStatement()){var r=this;this.update?this._update=function(t,e){r._locked||r.update(t,e)}:this._update=ti;var s=this._preProcess?p(this._preProcess,this):null,o=this._postProcess?p(this._postProcess,this):null,a=this._watcher=new It(this.vm,this.expression,this._update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:s,postProcess:o,scope:this._scope});this.afterBind?this.afterBind():this.update&&this.update(a.value)}},ei.prototype._setupParams=function(){if(this.params){var t=this.params;this.params=Object.create(null);for(var e,i,n,r=t.length;r--;)e=t[r],n=l(e),i=B(this.el,e),null!=i?this._setupParamWatcher(n,i):(i=W(this.el,e),null!=i&&(this.params[n]=""===i?!0:i))}},ei.prototype._setupParamWatcher=function(t,e){var i=this,n=!1,r=(this._scope||this.vm).$watch(e,function(e,r){if(i.params[t]=e,n){var s=i.paramWatchers&&i.paramWatchers[t];s&&s.call(i,e,r)}else n=!0},{immediate:!0,user:!1});(this._paramUnwatchFns||(this._paramUnwatchFns=[])).push(r)},ei.prototype._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!Wt(t)){var e=Lt(t).get,i=this._scope||this.vm,n=function(t){i.$event=t,e.call(i,i),i.$event=null};return this.filters&&(n=i._applyFilters(n,null,this.filters)),this.update(n),!0}},ei.prototype.set=function(t){this.twoWay&&this._withLock(function(){this._watcher.set(t)})},ei.prototype._withLock=function(t){var e=this;e._locked=!0,t.call(e),Fi(function(){e._locked=!1})},ei.prototype.on=function(t,e){J(this.el,t,e),(this._listeners||(this._listeners=[])).push([t,e])},ei.prototype._teardown=function(){if(this._bound){this._bound=!1,this.unbind&&this.unbind(),this._watcher&&this._watcher.teardown();var t,e=this._listeners;if(e)for(t=e.length;t--;)Q(this.el,e[t][0],e[t][1]);var i=this._paramUnwatchFns;if(i)for(t=i.length;t--;)i[t]();this.vm=this.el=this._watcher=this._listeners=null}};var $s=/[^|]\|[^|]/;xt(li),Xe(li),Ye(li),ii(li),ni(li),ri(li),si(li),oi(li),ai(li),hi(li);var ks=Jr._postProcess,xs=/(\d{3})(?=\d)/g,As={orderBy:fi,filterBy:ui,limitBy:ci,json:{read:function(t,e){return"string"==typeof t?t:JSON.stringify(t,null,Number(e)||2)},write:function(t){try{return JSON.parse(t)}catch(e){return t}}},capitalize:function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},uppercase:function(t){return t||0===t?t.toString().toUpperCase():""},lowercase:function(t){return t||0===t?t.toString().toLowerCase():""},currency:function(t,e){if(t=parseFloat(t),!isFinite(t)||!t&&0!==t)return"";e=null!=e?e:"$";var i=Math.abs(t).toFixed(2),n=i.slice(0,-3),r=n.length%3,s=r>0?n.slice(0,r)+(n.length>3?",":""):"",o=i.slice(-3),a=0>t?"-":"";return e+a+s+n.slice(r).replace(xs,"$1,")+o},pluralize:function(t){var e=d(arguments,1);return e.length>1?e[t%10-1]||e[e.length-1]:e[0]+(1===t?"":"s")},debounce:function(t,e){return t?(e||(e=300),b(t,e)):void 0}},Os={priority:cr,params:["name"],paramWatchers:{name:function(t){Ur.remove.call(this),t&&this.insert(t)}},bind:function(){this.anchor=it("v-partial"),q(this.el,this.anchor),this.insert(this.params.name)},insert:function(t){var e=gt(this.vm.$options,"partials",t);e&&(this.factory=new fe(this.vm,e),Ur.insert.call(this))},unbind:function(){this.frag&&this.frag.destroy()}},Ns={priority:ur,bind:function(){var t=this.vm,e=t.$options._content;if(!e)return void this.fallback();var i=t._context,n=this.params&&this.params.name;if(n){var r='[slot="'+n+'"]',s=e.querySelectorAll(r);s.length?this.tryCompile(di(s,e),i,t):this.fallback()}else this.tryCompile(di(e.childNodes,e,!0),i,t)},tryCompile:function(t,e,i){t.hasChildNodes()?this.compile(t,e,i):this.fallback()},compile:function(t,e,i){if(t&&e){var n=i?i._scope:this._scope;this.unlink=e.$compile(t,i,n,this._frag)}t?q(this.el,t):I(this.el)},fallback:function(){this.compile(X(this.el,!0),this.vm)},unbind:function(){this.unlink&&this.unlink()}},Ts=v(v({},Ns),{priority:Ns.priority+1,params:["name"]}),js={slot:Ns,_namedSlot:Ts,partial:Os};return li.version="1.0.13",li.options={directives:Zr,elementDirectives:js,filters:As,transitions:{},components:{},partials:{},replace:!0},li}); \ No newline at end of file diff --git a/package.json b/package.json index b375045..b4146a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photo-editor", - "version": "1.0.1", + "version": "1.1.0", "description": "A photo editing application based on the Cropper.js", "license": "MIT", "repository": "fengyuanchen/photo-editor", @@ -21,23 +21,39 @@ "web", "development" ], - "dependencies": { - "cropperjs": "^0.5.5", - "font-awesome": "^4.5.0", - "vue": "^1.0.13" + "scripts": { + "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot", + "build": "cross-env NODE_ENV=production webpack --progress --hide-modules", + "lint": "eslint --ext .js,.vue src", + "prebuild": "npm run lint", + "start": "npm run dev" }, - "devDependencies": { - "babel-core": "^6.3.26", - "babel-loader": "^6.2.0", - "babel-preset-es2015": "^6.3.13", - "gulp": "^3.9.0", - "gulp-autoprefixer": "^3.1.0", - "gulp-eslint": "^1.1.1", - "gulp-jade": "^1.1.0", - "gulp-load-plugins": "^1.1.0", - "gulp-sass": "^2.1.1", - "gulp-uglify": "^1.5.1", - "gulp-util": "^3.0.7", - "webpack": "^1.12.9" + "dependencies": { + "babel-core": "^6.24.1", + "babel-loader": "^7.0.0", + "babel-polyfill": "^6.23.0", + "babel-preset-env": "^1.4.0", + "cropperjs": "^1.0.0-rc.1", + "cross-env": "^5.0.0", + "css-loader": "^0.28.1", + "cssnano": "^3.10.0", + "eslint": "^3.19.0", + "eslint-config-airbnb-base": "^11.1.3", + "eslint-plugin-html": "^2.0.3", + "eslint-plugin-import": "^2.2.0", + "file-loader": "^0.11.1", + "font-awesome": "^4.7.0", + "ip": "^1.1.5", + "normalize.css": "^7.0.0", + "postcss-cssnext": "^2.10.0", + "postcss-loader": "^2.0.5", + "postcss-smart-import": "^0.7.0", + "style-loader": "^0.17.0", + "vue": "^2.3.3", + "vue-loader": "^12.0.4", + "vue-template-compiler": "^2.3.3", + "vuex": "^2.3.1", + "webpack": "^2.5.1", + "webpack-dev-server": "^2.4.5" } } diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..43d7812 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: [ + require('postcss-smart-import')(), + require('postcss-cssnext')(), + ], +}; diff --git a/src/app.vue b/src/app.vue new file mode 100644 index 0000000..744813f --- /dev/null +++ b/src/app.vue @@ -0,0 +1,90 @@ + + + + + + + diff --git a/src/button-box.jade b/src/button-box.jade deleted file mode 100644 index b3227bb..0000000 --- a/src/button-box.jade +++ /dev/null @@ -1,17 +0,0 @@ -script(id="button-box", type="text/x-template") - div(class="menu" @click="click") - label(class="menu__button", for="file", title="Upload", v-show="!uploaded") - span(class="fa fa-upload") - button(class="menu__button", data-action="restore", title="Undo (Ctrl + Z)", v-show="cropped") - span(class="fa fa-undo") - button(class="menu__button menu__button--danger", data-action="remove", title="Delete (Delete)", v-show="uploaded && !cropping") - span(class="fa fa-trash") - button(class="menu__button menu__button--danger", data-action="clear", title="Cancel (Esc)", v-show="cropping") - span(class="fa fa-ban") - button(class="menu__button menu__button--success", data-action="crop", title="OK (Enter)", v-show="cropping") - span(class="fa fa-check") - a(class="menu__button menu__button--success", data-action="download", href="{{ url }}", title="Download", download="{{ name }}", v-show="url") - span(class="fa fa-download") - a(class="menu__button", data-action="download", href="https://github.com/fengyuanchen/photo-editor", title="View on GitHub") - span(class="fa fa-github") - diff --git a/src/canvas-box.jade b/src/canvas-box.jade deleted file mode 100644 index 5d08462..0000000 --- a/src/canvas-box.jade +++ /dev/null @@ -1,23 +0,0 @@ -script(id="canvas-box", type="text/x-template") - div(class="canvas", v-show="editable") - div(class="editor", @dblclick="dblclick") - template(v-if="url") - img(src="{{ url }}", alt="{{ name }}", @load="load") - div(class="toolbar", @click="click", v-show="cropper") - button(class="toolbar__button", data-action="move", title="Move (M)") - span(class="fa fa-arrows") - button(class="toolbar__button", data-action="crop", title="Crop (C)") - span(class="fa fa-crop") - button(class="toolbar__button", data-action="zoom-in", title="Zoom In (I)") - span(class="fa fa-search-plus") - button(class="toolbar__button", data-action="zoom-out", title="Zoom Out (O)") - span(class="fa fa-search-minus") - button(class="toolbar__button", data-action="rotate-left", title="Rotate Left (L)") - span(class="fa fa-rotate-left") - button(class="toolbar__button", data-action="rotate-right", title="Rotate Right (R)") - span(class="fa fa-rotate-right") - button(class="toolbar__button", data-action="flip-horizontal", title="Flip Horizontal (H)") - span(class="fa fa-arrows-h") - button(class="toolbar__button", data-action="flip-vertical", title="Flip Vertical (V)") - span(class="fa fa-arrows-v") - diff --git a/src/components/editor.vue b/src/components/editor.vue new file mode 100644 index 0000000..25bb29e --- /dev/null +++ b/src/components/editor.vue @@ -0,0 +1,349 @@ + + + + + diff --git a/src/components/index.js b/src/components/index.js new file mode 100644 index 0000000..a76e375 --- /dev/null +++ b/src/components/index.js @@ -0,0 +1,8 @@ +import Vue from 'vue'; +import Editor from './editor.vue'; +import Loader from './loader.vue'; +import Navbar from './navbar.vue'; + +Vue.component('navbar', Navbar); +Vue.component('loader', Loader); +Vue.component('editor', Editor); diff --git a/src/components/loader.vue b/src/components/loader.vue new file mode 100644 index 0000000..cb0fde7 --- /dev/null +++ b/src/components/loader.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/components/navbar.vue b/src/components/navbar.vue new file mode 100644 index 0000000..66bb665 --- /dev/null +++ b/src/components/navbar.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/src/css/_canvas.scss b/src/css/_canvas.scss deleted file mode 100644 index af04586..0000000 --- a/src/css/_canvas.scss +++ /dev/null @@ -1,21 +0,0 @@ -// Canvas for editing image -// ================================================== - -.canvas { - width: 100%; - height: 100%; -} - -.editor { - height: 100%; - overflow: hidden; - - > img { - display: block; - max-width: 100%; - max-height: 100%; - margin: auto; - - vertical-align: middle; - } -} diff --git a/src/css/_layout.scss b/src/css/_layout.scss deleted file mode 100644 index eb7ae04..0000000 --- a/src/css/_layout.scss +++ /dev/null @@ -1,65 +0,0 @@ -// Layout -// ================================================== - -body { - margin: 0; - color: #333; - font-family: "Helvetica","Arial",sans-serif; - font-size: 14px; - font-weight: 400; - line-height: 20px; -} - -.header { - position: relative; - z-index: 1; - - height: 48px; - padding-left: 16px; - padding-right: 16px; - - background-color: #666; -} - -@media (min-width: $screen-sm) { - .header { - padding-left: 24px; - padding-right: 24px; - } -} - -.title { - float: left; - display: block; - - font-size: 18px; - line-height: 48px; - - color: $color-white; -} - -.main { - position: absolute; - top: 48px; - right: 0; - bottom: 0; - left: 0; - - background-color: #333; - - > img { - display: table-cell; - max-width: 100%; - - vertical-align: middle; - } -} - -.footer { - position: absolute; - right: 0; - bottom: 0; - left: 0; - - height: 0; -} diff --git a/src/css/_menu.scss b/src/css/_menu.scss deleted file mode 100644 index 52db744..0000000 --- a/src/css/_menu.scss +++ /dev/null @@ -1,44 +0,0 @@ -// Menu for toggling actions -// ================================================== - -.menu { - float: right; -} - -.menu__button { - float: left; - display: block; - width: 48px; - height: 48px; - border-width: 0; - - font-size: 16px; - line-height: 48px; - text-align: center; - - background-color: transparent; - color: $color-white; - - cursor: pointer; - - &:focus { - outline: none; - } - - &:hover { - background-color: $color-brand; - color: $color-white; - } -} - -.menu__button--success { - &:hover { - background-color: $color-success; - } -} - -.menu__button--danger { - &:hover { - background-color: $color-danger; - } -} diff --git a/src/css/_mixins.scss b/src/css/_mixins.scss deleted file mode 100644 index 1ee4a36..0000000 --- a/src/css/_mixins.scss +++ /dev/null @@ -1,23 +0,0 @@ -// Mixins -// ================================================== - -// Opacity -// ------------------------- - -@mixin opacity($opacity) { - opacity: $opacity; - filter: alpha(opacity=#{$opacity * 100}); // IE8 -} - - -// Sizing shortcuts -// ------------------------- - -@mixin size($width, $height) { - width: $width; - height: $height; -} - -@mixin square($size) { - @include size($size, $size); -} diff --git a/src/css/_toolbar.scss b/src/css/_toolbar.scss deleted file mode 100644 index 9dd5b03..0000000 --- a/src/css/_toolbar.scss +++ /dev/null @@ -1,41 +0,0 @@ -// Toolbar for handling image -// ================================================== - -.toolbar { - position: absolute; - left: 50%; - bottom: 16px; - z-index: 2015; - - width: 256px; - height: 32px; - margin-left: -128px; - - background-color: rgba($color-black, .5); - color: $color-white; -} - -.toolbar__button { - float: left; - display: block; - width: 32px; - height: 32px; - border-width: 0; - - font-size: 14px; - text-align: center; - - background-color: transparent; - color: $color-white; - - cursor: pointer; - - &:focus { - outline: none; - } - - &:hover { - background-color: $color-brand; - color: $color-white; - } -} diff --git a/src/css/_upload.scss b/src/css/_upload.scss deleted file mode 100644 index 25cafe6..0000000 --- a/src/css/_upload.scss +++ /dev/null @@ -1,31 +0,0 @@ -// Upload for importing image -// ================================================== - -.upload { - display: table; - width: 100%; - height: 100%; - overflow: hidden; - - > p { - display: table-cell; - - color: #999; - text-align: center; - - vertical-align: middle; - } -} - -.browse { - margin-left: 4px; - - color: $color-brand; - - cursor: pointer; - - &:hover { - color: lighten($color-brand, 10%); - text-decoration: underline; - } -} diff --git a/src/css/_utilities.scss b/src/css/_utilities.scss deleted file mode 100644 index 0668d94..0000000 --- a/src/css/_utilities.scss +++ /dev/null @@ -1,25 +0,0 @@ -// Utilites -// ================================================== - -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} - -.sr-only--focusable { - &:active, - &:focus { - position: static; - width: auto; - height: auto; - margin: 0; - overflow: visible; - clip: auto; - } -} diff --git a/src/css/_variables.scss b/src/css/_variables.scss deleted file mode 100644 index 6ad9dd2..0000000 --- a/src/css/_variables.scss +++ /dev/null @@ -1,21 +0,0 @@ -// Variables -// ================================================== - -// Colors -// ------------------------- - -$color-brand: #0074d9; -$color-black: #000; -$color-white: #fff; - -$color-success: #2ecc40; -$color-danger: #ff4136; - - -// Media queries breakpoints -// ------------------------- - -$screen-xs: 480px; // Extra small screen / phone -$screen-sm: 768px; // Small screen / tablet -$screen-md: 992px; // Medium screen / desktop -$screen-lg: 1200px; // Large screen / wide desktop diff --git a/src/css/main.scss b/src/css/main.scss deleted file mode 100644 index a692e5c..0000000 --- a/src/css/main.scss +++ /dev/null @@ -1,8 +0,0 @@ -@import "variables"; -@import "mixins"; -@import "utilities"; -@import "layout"; -@import "menu"; -@import "toolbar"; -@import "upload"; -@import "canvas"; diff --git a/src/index.jade b/src/index.jade deleted file mode 100644 index 33eed64..0000000 --- a/src/index.jade +++ /dev/null @@ -1,27 +0,0 @@ -doctype html -html(lang="en") - head - meta(charset="utf-8") - meta(http-equiv="x-ua-compatible", content="ie=edge") - meta(name="viewport", content="width=device-width, initial-scale=1") - meta(name="description", content="A photo editing application based on the Cropper.js") - meta(name="keywords", content="HTML, CSS, JS, JavaScript, photo, editor, front-end, web development") - meta(name="author", content="Fengyuan Chen") - title Photo Editor - link(href="css/font-awesome.min.css", rel="stylesheet") - link(href="css/cropper.min.css", rel="stylesheet") - link(href="css/main.css", rel="stylesheet") - body - header(class="header") - span(class="title") Photo Editor - button-box - main(class="main") - upload-box - canvas-box - include ./button-box.jade - include ./upload-box.jade - include ./canvas-box.jade - script(src="js/vue.min.js") - script(src="js/cropper.min.js") - script(src="js/main.js") - diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..3b679bf --- /dev/null +++ b/src/index.js @@ -0,0 +1,15 @@ +import 'normalize.css'; +import 'font-awesome/css/font-awesome.css'; +import 'cropperjs/dist/cropper.css'; +import 'babel-polyfill'; + +import Vue from 'vue'; +import App from './app.vue'; +import store from './store'; +import './components'; + +new Vue({ + store, + el: '#app', + render: createElement => createElement(App), +}); diff --git a/src/js/button-box.js b/src/js/button-box.js deleted file mode 100644 index 2f36c75..0000000 --- a/src/js/button-box.js +++ /dev/null @@ -1,77 +0,0 @@ -export default { - data: function () { - return { - uploaded: false, - cropping: false, - cropped: false, - download: typeof document.createElement('a').download !== 'undefined', - url: '', - name: '' - }; - }, - template: '#button-box', - methods: { - click: function (e) { - const target = e.target; - const action = target.dataset.action || target.parentNode.dataset.action; - - if (action) { - switch (action) { - case 'restore': - this.restore(); - break; - - case 'remove': - this.remove(); - break; - - case 'clear': - case 'crop': - this.cropping = false; - break; - } - - this.$dispatch('broadcast', action); - } - }, - restore: function () { - this.cropped = false; - this.url = ''; - this.name = ''; - }, - remove: function () { - this.uploaded = false; - this.cropping = false; - - if (this.cropped) { - this.restore(); - } - } - }, - events: { - uploaded: function () { - this.uploaded = true; - }, - cropping: function () { - this.cropping = true; - }, - cleared: function () { - this.cropping = false; - }, - restored: function () { - this.restore(); - }, - removed: function () { - this.remove(); - }, - cropped: function (data) { - this.cropped = true; - this.cropping = false; - - if (this.download) { - this.url = data.url; - this.name = data.name; - } - } - } -}; diff --git a/src/js/canvas-box.js b/src/js/canvas-box.js deleted file mode 100644 index 9265a7c..0000000 --- a/src/js/canvas-box.js +++ /dev/null @@ -1,308 +0,0 @@ -import Cropper from 'cropper'; - -export default { - data: function () { - return { - editable: false, - cropper: false, - cropping: false, - data: null, - canvasData: null, - cropBoxData: null, - image: null, - type: '', - name: '', - url: '', - originalUrl: '' - }; - }, - template: '#canvas-box', - ready: function () { - window.addEventListener('keydown', this.keydown, false); - }, - beforeDestory: function () { - window.removeEventListener('keydown', this.keydown, false); - }, - methods: { - load: function (e) { - if (!this.image) { - this.image = e.target; - this.start(); - } - }, - click: function (e) { - const cropper = this.cropper; - const target = e.target; - let action = ''; - - if (!cropper) { - return; - } - - action = target.dataset.action || target.parentNode.dataset.action; - - switch (action) { - case 'move': - case 'crop': - cropper.setDragMode(action); - break; - - case 'zoom-in': - cropper.zoom(0.1); - break; - - case 'zoom-out': - cropper.zoom(-0.1); - break; - - case 'rotate-left': - cropper.rotate(-90); - break; - - case 'rotate-right': - cropper.rotate(90); - break; - - case 'flip-horizontal': - cropper.scaleX(-this.cropper.getData().scaleX || -1); - break; - - case 'flip-vertical': - cropper.scaleY(-this.cropper.getData().scaleY || -1); - break; - - // No default - } - }, - keydown: function (e) { - const cropper = this.cropper; - const key = e.key || e.keyCode || e.which || e.charCode; - - switch (key) { - - // Undo crop (Key: Ctrl + Z) - case 90: - if (e.ctrlKey) { - e.preventDefault(); - this.restore(true); - } - - break; - - // Delete the image (Key: Delete) - case 46: - this.remove(true); - break; - } - - if (!cropper) { - return; - } - - switch (key) { - - // Crop the image (Key: Enter) - case 13: - this.crop(true); - break; - - // Clear crop area (Key: Esc) - case 27: - this.clear(true); - break; - - // Move to the left (Key: ←) - case 37: - e.preventDefault(); - cropper.move(-1, 0); - break; - - // Move to the top (Key: ↑) - case 38: - e.preventDefault(); - cropper.move(0, -1); - break; - - // Move to the right (Key: →) - case 39: - e.preventDefault(); - cropper.move(1, 0); - break; - - // Move to the bottom (Key: ↓) - case 40: - e.preventDefault(); - cropper.move(0, 1); - break; - - // Enter crop mode (Key: C) - case 67: - cropper.setDragMode('crop'); - break; - - // Enter move mode (Key: M) - case 77: - cropper.setDragMode('move'); - break; - - // Zoom in (Key: I) - case 73: - cropper.zoom(0.1); - break; - - // Zoom out (Key: O) - case 79: - cropper.zoom(-0.1); - break; - - // Rotate left (Key: L) - case 76: - cropper.rotate(-90); - break; - - // Rotate right (Key: R) - case 82: - cropper.rotate(90); - break; - - // Flip horizontal (Key: H) - case 72: - cropper.scaleX(-this.cropper.getData().scaleX || -1); - break; - - // Flip vertical (Key: V) - case 86: - cropper.scaleY(-this.cropper.getData().scaleY || -1); - break; - } - }, - dblclick: function (e) { - if (e.target.className.indexOf('cropper-face') >= 0) { - e.preventDefault(); - e.stopPropagation(); - this.crop(true); - } - }, - start: function () { - const _this = this; - - if (this.cropper) { - return; - } - - this.cropper = new Cropper(this.image, { - autoCrop: false, - dragMode: 'move', - background: false, - built: function () { - if (_this.data) { - this.cropper - .crop() - .setData(_this.data) - .setCanvasData(_this.canvasData) - .setCropBoxData(_this.cropBoxData); - _this.data = null; - _this.canvasData = null; - _this.cropBoxData = null; - } - }, - crop: function (data) { - if (data.width > 0 && data.height > 0 && !_this.cropping) { - _this.cropping = true; - _this.$dispatch('broadcast', 'cropping'); - } - } - }); - }, - stop: function () { - if (this.cropper) { - this.cropper.destroy(); - this.cropper = null; - this.cropping = false; - } - }, - crop: function (dispatch) { - const cropper = this.cropper; - const type = this.type; - - if (this.cropping) { - this.originalUrl = this.url; - this.data = cropper.getData(); - this.canvasData = cropper.getCanvasData(); - this.cropBoxData = cropper.getCropBoxData(); - this.url = cropper.getCroppedCanvas(type === 'image/png' ? null : { - fillColor: '#fff' - }).toDataURL(type); - this.stop(); - - if (dispatch) { - this.$dispatch('broadcast', 'cropped', { - url: this.url, - name: this.name - }); - } - } - }, - clear: function (dispatch) { - if (this.cropping) { - this.cropper.clear(); - this.cropping = false; - - if (dispatch) { - this.$dispatch('broadcast', 'cleared'); - } - } - }, - restore: function (dispatch) { - if (!this.cropper) { - this.image = null; - this.url = this.originalUrl; - this.originalUrl = ''; - - if (dispatch) { - this.$dispatch('broadcast', 'restored'); - } - } - }, - remove: function (dispatch) { - - // Disallow to delete image when cropping - if (this.cropping) { - return; - } - - this.stop(); - this.editable = false; - this.data = null; - this.image = null; - this.type = ''; - this.name = ''; - this.url = ''; - this.originalUrl = ''; - - if (dispatch) { - this.$dispatch('broadcast', 'removed'); - } - } - }, - events: { - uploaded: function ({url, type, name}) { - this.editable = true; - this.type = type; - this.name = name; - this.url = url; - }, - remove: function () { - this.remove(); - }, - crop: function () { - this.crop(true); - }, - clear: function () { - this.clear(); - }, - restore: function () { - this.restore(); - } - } -}; diff --git a/src/js/main.js b/src/js/main.js deleted file mode 100644 index e0ca27f..0000000 --- a/src/js/main.js +++ /dev/null @@ -1,18 +0,0 @@ -import Vue from 'vue'; -import ButtonBox from './button-box.js'; -import UploadBox from './upload-box.js'; -import CanvasBox from './canvas-box.js'; - -window.vm = new Vue({ - el: 'body', - components: { - ButtonBox, - UploadBox, - CanvasBox - }, - events: { - broadcast: function (type, data) { - this.$broadcast(type, data); - } - } -}); diff --git a/src/js/upload-box.js b/src/js/upload-box.js deleted file mode 100644 index 7e706c0..0000000 --- a/src/js/upload-box.js +++ /dev/null @@ -1,63 +0,0 @@ -export default { - data: function () { - return { - uploaded: false - }; - }, - template: '#upload-box', - methods: { - read: function (file, callback = () => {}) { - let reader = null; - - if (file) { - if (/^image\/\w+$/.test(file.type)) { - reader = new FileReader(); - - reader.onload = () => { - this.uploaded = true; - this.$dispatch('broadcast', 'uploaded', { - type: file.type, - name: file.name, - url: reader.result - }); - - callback(); - }; - - reader.readAsDataURL(file); - } else { - window.alert('Please choose an image file.'); - callback(); - } - } else { - callback(); - } - }, - change: function (e) { - const target = e.target; - const files = target.files; - - this.read(files && files[0], () => { - target.value = ''; - }); - }, - dragover: function (e) { - e.preventDefault(); - }, - drop: function (e) { - const files = e.dataTransfer.files; - - e.preventDefault(); - - this.read(files && files[0]); - } - }, - events: { - remove: function () { - this.uploaded = false; - }, - removed: function () { - this.uploaded = false; - } - } -}; diff --git a/src/store/index.js b/src/store/index.js new file mode 100644 index 0000000..c8621d9 --- /dev/null +++ b/src/store/index.js @@ -0,0 +1,15 @@ +import Vue from 'vue'; +import Vuex from 'vuex'; +import editor from './modules/editor'; +import loader from './modules/loader'; + +Vue.use(Vuex); + +const store = new Vuex.Store({ + modules: { + editor, + loader, + }, +}); + +export default store; diff --git a/src/store/modules/editor.js b/src/store/modules/editor.js new file mode 100644 index 0000000..d0cd99e --- /dev/null +++ b/src/store/modules/editor.js @@ -0,0 +1,34 @@ +import * as types from '../mutation-types'; + +const initialState = { + cropped: false, + cropping: false, +}; + +const mutations = { + [types.EDITOR_SET](state, data) { + Object.assign(state, data); + }, + [types.EDITOR_RESET](state) { + Object.assign(state, initialState); + }, +}; + +const actions = { + setEditor(context, data) { + context.commit(types.EDITOR_SET, data); + }, + resetEditor(context) { + context.commit(types.EDITOR_RESET); + }, +}; + +const getters = { +}; + +export default { + state: Object.assign({}, initialState), + mutations, + actions, + getters, +}; diff --git a/src/store/modules/loader.js b/src/store/modules/loader.js new file mode 100644 index 0000000..da09bf0 --- /dev/null +++ b/src/store/modules/loader.js @@ -0,0 +1,37 @@ +import * as types from '../mutation-types'; + +const initialState = { + loaded: false, + name: '', + previousUrl: '', + type: '', + url: '', +}; + +const mutations = { + [types.LOADER_SET](state, data) { + Object.assign(state, data); + }, + [types.LOADER_RESET](state) { + Object.assign(state, initialState); + }, +}; + +const actions = { + setLoader(context, data) { + context.commit(types.LOADER_SET, data); + }, + resetLoader(context) { + context.commit(types.LOADER_RESET); + }, +}; + +const getters = { +}; + +export default { + state: Object.assign({}, initialState), + mutations, + actions, + getters, +}; diff --git a/src/store/mutation-types.js b/src/store/mutation-types.js new file mode 100644 index 0000000..cf3918f --- /dev/null +++ b/src/store/mutation-types.js @@ -0,0 +1,7 @@ +// Editor +export const EDITOR_SET = 'EDITOR_SET'; +export const EDITOR_RESET = 'EDITOR_RESET'; + +// Loader +export const LOADER_SET = 'LOADER_SET'; +export const LOADER_RESET = 'LOADER_RESET'; diff --git a/src/upload-box.jade b/src/upload-box.jade deleted file mode 100644 index 03c1710..0000000 --- a/src/upload-box.jade +++ /dev/null @@ -1,5 +0,0 @@ -script(id="upload-box", type="text/x-template") - div(class="upload", @change="change", @dragover="dragover", @drop="drop", v-show="!uploaded") - p Drop image here or - label(class="browse") browse... - input(class="sr-only", id="file", type="file", accept="image/*") diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..4aabf40 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,82 @@ +const webpack = require('webpack'); +const path = require('path'); +const ip = require('ip'); + +const IS_PRODUCTION = process.env.NODE_ENV === 'production'; + +module.exports = { + entry: './src/index.js', + output: { + path: path.resolve(__dirname, './dist'), + publicPath: 'dist/', + filename: 'app.js', + }, + module: { + rules: [ + { + test: /\.vue$/, + loader: 'vue-loader', + }, + { + test: /\.css$/, + use: [ + 'style-loader', + { + loader: 'css-loader', + options: { + importLoaders: 1, + }, + }, + 'postcss-loader', + ], + }, + { + test: /\.js$/, + loader: 'babel-loader', + exclude: /node_modules/, + }, + { + test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/, + loader: 'file-loader', + options: { + name: '[name].[ext]?[hash]', + }, + }, + ], + }, + plugins: [ + new webpack.DefinePlugin({ + 'process.env': { + NODE_ENV: IS_PRODUCTION ? '"production"' : '"development"', + }, + }), + ], + devServer: { + host: ip.address(), + stats: { + colors: true, + chunks: false, + }, + }, + performance: { + hints: false, + }, + devtool: '#eval-source-map', +}; + +if (IS_PRODUCTION) { + module.exports.devtool = false; + + // http://vue-loader.vuejs.org/en/workflow/production.html + module.exports.plugins = (module.exports.plugins || []).concat([ + new webpack.optimize.UglifyJsPlugin({ + sourceMap: true, + compress: { + warnings: false, + }, + }), + new webpack.LoaderOptionsPlugin({ + minimize: true, + }), + ]); +}