diff --git a/.env.example b/.env.example index 6e3a4b1e3..7b3a3c2d6 100644 --- a/.env.example +++ b/.env.example @@ -119,3 +119,7 @@ MOBILE_CLIENT_SECRET= # Allow to access general statistics about your instance through a public API # call ALLOW_STATISTICS_THROUGH_PUBLIC_API_ACCESS=false + +# Indicates that each user in the instance must comply to international policies +# like CASL or GDPR +POLICY_COMPLIANT=true diff --git a/CHANGELOG b/CHANGELOG index fe017ad8a..458923dff 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ UNRELEASED CHANGES: +* Add User and Currency support in the API +* Add ability to force users to accept privacy and terms of use * Fix journal entry with date different than today's date not working * Fixes Contact search dropdown shows non-contacts that link to nowhere * Add ability to sort contact list by untagged contacts diff --git a/app/Account.php b/app/Account.php index 1305bcdc0..f6dfcef88 100644 --- a/app/Account.php +++ b/app/Account.php @@ -535,13 +535,15 @@ class Account extends Model $relationshipTypeGroup = $this->getRelationshipTypeGroupByType($defaultRelationshipTypeGroup->name); - RelationshipType::create([ - 'account_id' => $this->id, - 'name' => $defaultRelationshipType->name, - 'name_reverse_relationship' => $defaultRelationshipType->name_reverse_relationship, - 'relationship_type_group_id' => $relationshipTypeGroup->id, - 'delible' => $defaultRelationshipType->delible, - ]); + if ($relationshipTypeGroup) { + RelationshipType::create([ + 'account_id' => $this->id, + 'name' => $defaultRelationshipType->name, + 'name_reverse_relationship' => $defaultRelationshipType->name_reverse_relationship, + 'relationship_type_group_id' => $relationshipTypeGroup->id, + 'delible' => $defaultRelationshipType->delible, + ]); + } } } @@ -644,9 +646,10 @@ class Account extends Model * @param string $last_name * @param string $email * @param string $password + * @param string $ipAddress * @return $this */ - public static function createDefault($first_name, $last_name, $email, $password) + public static function createDefault($first_name, $last_name, $email, $password, $ipAddress = null) { // create new account $account = new self; @@ -657,7 +660,7 @@ class Account extends Model $account->populateDefaultFields($account); // create the first user for this account - User::createDefault($account->id, $first_name, $last_name, $email, $password); + User::createDefault($account->id, $first_name, $last_name, $email, $password, $ipAddress); return $account; } diff --git a/app/Helpers/MoneyHelper.php b/app/Helpers/MoneyHelper.php index 02babccc5..f184b972e 100644 --- a/app/Helpers/MoneyHelper.php +++ b/app/Helpers/MoneyHelper.php @@ -2,7 +2,7 @@ namespace App\Helpers; -use App\Currency; +use App\Models\Settings\Currency; class MoneyHelper { diff --git a/app/Http/Controllers/Api/Account/ApiUserController.php b/app/Http/Controllers/Api/Account/ApiUserController.php new file mode 100644 index 000000000..4c31e2a86 --- /dev/null +++ b/app/Http/Controllers/Api/Account/ApiUserController.php @@ -0,0 +1,91 @@ +user()); + } + + /** + * Get the state of a specific term for the user. + * + * @param Request $request + * @param int $termId + * @return void + */ + public function get(Request $request, $termId) + { + $userCompliance = auth()->user()->getStatusForCompliance($termId); + + if ($userCompliance == false) { + return $this->respondNotFound(); + } + + return $this->respond([ + 'data' => $userCompliance, + ]); + } + + /** + * Get all the policies ever signed by the authenticated user. + * + * @param Request $request + * @return void + */ + public function compliance(Request $request) + { + $terms = auth()->user()->getAllCompliances(); + + return $this->respond([ + 'data' => $terms, + ]); + } + + /** + * Sign the latest policy for the authenticated user. + * + * @param Request $request + * @return void + */ + public function set(Request $request) + { + $validator = Validator::make($request->all(), [ + 'ip_address' => 'required', + ]); + + if ($validator->fails()) { + return $this->setErrorCode(32) + ->respondWithError($validator->errors()->all()); + } + + // Create the contact + try { + $term = auth()->user()->acceptPolicy($request->get('ip_address')); + } catch (QueryException $e) { + return $this->respondNotTheRightParameters(); + } + + $userCompliance = auth()->user()->getStatusForCompliance($term->id); + + return $this->respond([ + 'data' => $userCompliance, + ]); + } +} diff --git a/app/Http/Controllers/Api/Settings/ApiComplianceController.php b/app/Http/Controllers/Api/Settings/ApiComplianceController.php new file mode 100644 index 000000000..94e3f4ca0 --- /dev/null +++ b/app/Http/Controllers/Api/Settings/ApiComplianceController.php @@ -0,0 +1,41 @@ +paginate($this->getLimitPerPage()); + + return ComplianceResource::collection($terms); + } + + /** + * Get the detail of a given term. + * @param Request $request + * @return \Illuminate\Http\Response + */ + public function show(Request $request, $termId) + { + try { + $term = Term::where('id', $termId) + ->firstOrFail(); + } catch (ModelNotFoundException $e) { + return $this->respondNotFound(); + } + + return new ComplianceResource($term); + } +} diff --git a/app/Http/Controllers/Api/Settings/ApiCurrencyController.php b/app/Http/Controllers/Api/Settings/ApiCurrencyController.php new file mode 100644 index 000000000..051f09a41 --- /dev/null +++ b/app/Http/Controllers/Api/Settings/ApiCurrencyController.php @@ -0,0 +1,41 @@ +getLimitPerPage()); + + return CurrencyResource::collection($currencies); + } + + /** + * Get the detail of a given currency. + * + * @param Request $request + * @return \Illuminate\Http\Response + */ + public function show(Request $request, $currencyId) + { + try { + $currency = Currency::find($currencyId); + } catch (ModelNotFoundException $e) { + return $this->respondNotFound(); + } + + return new CurrencyResource($currency); + } +} diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index de1a0e219..2b479c770 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -4,6 +4,7 @@ namespace App\Http\Controllers\Auth; use App\User; use App\Account; +use Illuminate\Http\Request; use App\Jobs\SendNewUserAlert; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Auth; @@ -70,19 +71,26 @@ class RegisterController extends Controller 'first_name' => 'required|max:255', 'email' => 'required|email|max:255|unique:users', 'password' => 'required|min:6|confirmed', + 'policy' => 'required', ]); } /** * Create a new user instance after a valid registration. * - * @param array $data + * @param array * @return User */ protected function create(array $data) { $first = ! Account::hasAny(); - $account = Account::createDefault($data['first_name'], $data['last_name'], $data['email'], $data['password']); + $account = Account::createDefault( + $data['first_name'], + $data['last_name'], + $data['email'], + $data['password'], + \Request::ip() + ); $user = $account->users()->first(); if (! $first) { diff --git a/app/Http/Controllers/ComplianceController.php b/app/Http/Controllers/ComplianceController.php new file mode 100644 index 000000000..be77b2d24 --- /dev/null +++ b/app/Http/Controllers/ComplianceController.php @@ -0,0 +1,30 @@ +user()->acceptPolicy(\Request::ip()); + + return redirect('/dashboard'); + } +} diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index cd2254a3b..89c98df13 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -33,6 +33,7 @@ class Kernel extends HttpKernel 'bindings', 'locale', \App\Http\Middleware\CheckVersion::class, + \App\Http\Middleware\CheckCompliance::class, ], 'api' => [ diff --git a/app/Http/Middleware/CheckCompliance.php b/app/Http/Middleware/CheckCompliance.php new file mode 100644 index 000000000..92ea6da1d --- /dev/null +++ b/app/Http/Middleware/CheckCompliance.php @@ -0,0 +1,36 @@ +isMethod('post')) { + return $next($request); + } + + if (Route::currentRouteName() == 'compliance') { + return $next($request); + } + + if (Auth::check()) { + if (! auth()->user()->isPolicyCompliant()) { + return redirect('compliance'); + } + } + + return $next($request); + } +} diff --git a/app/Http/Resources/Account/User/User.php b/app/Http/Resources/Account/User/User.php new file mode 100644 index 000000000..03357d064 --- /dev/null +++ b/app/Http/Resources/Account/User/User.php @@ -0,0 +1,35 @@ + $this->id, + 'object' => 'user', + 'first_name' => $this->first_name, + 'last_name' => $this->last_name, + 'email' => $this->email, + 'timezone' => $this->timezone, + 'currency' => new CurrencyResource($this->currency), + 'locale' => $this->locale, + 'is_policy_compliant' => $this->isPolicyCompliant(), + 'account' => [ + 'id' => $this->account->id, + ], + 'created_at' => $this->created_at->format(config('api.timestamp_format')), + 'updated_at' => (is_null($this->updated_at) ? null : $this->updated_at->format(config('api.timestamp_format'))), + ]; + } +} diff --git a/app/Http/Resources/Settings/Compliance/Compliance.php b/app/Http/Resources/Settings/Compliance/Compliance.php new file mode 100644 index 000000000..cbebc90e8 --- /dev/null +++ b/app/Http/Resources/Settings/Compliance/Compliance.php @@ -0,0 +1,28 @@ + $this->id, + 'object' => 'term', + 'term_version' => $this->term_version, + 'term_content' => $this->term_content, + 'privacy_version' => $this->privacy_version, + 'privacy_content' => $this->privacy_content, + 'created_at' => $this->created_at->format(config('api.timestamp_format')), + 'updated_at' => (is_null($this->updated_at) ? null : $this->updated_at->format(config('api.timestamp_format'))), + ]; + } +} diff --git a/app/Http/Resources/Settings/Compliance/ComplianceCollection.php b/app/Http/Resources/Settings/Compliance/ComplianceCollection.php new file mode 100644 index 000000000..923f88509 --- /dev/null +++ b/app/Http/Resources/Settings/Compliance/ComplianceCollection.php @@ -0,0 +1,24 @@ + $this->collection, + 'links' => [ + 'self' => 'link-value', + ], + ]; + } +} diff --git a/app/Http/Resources/Settings/Currency/Currency.php b/app/Http/Resources/Settings/Currency/Currency.php new file mode 100644 index 000000000..87b8b1b92 --- /dev/null +++ b/app/Http/Resources/Settings/Currency/Currency.php @@ -0,0 +1,25 @@ + $this->id, + 'object' => 'currency', + 'iso' => $this->iso, + 'name' => $this->name, + 'symbol' => $this->symbol, + ]; + } +} diff --git a/app/Http/Resources/Settings/Currency/CurrencyCollection.php b/app/Http/Resources/Settings/Currency/CurrencyCollection.php new file mode 100644 index 000000000..09d4308de --- /dev/null +++ b/app/Http/Resources/Settings/Currency/CurrencyCollection.php @@ -0,0 +1,24 @@ + $this->collection, + 'links' => [ + 'self' => 'link-value', + ], + ]; + } +} diff --git a/app/Http/ViewComposers/CurrencySelectViewComposer.php b/app/Http/ViewComposers/CurrencySelectViewComposer.php index 0bcc1ccf4..297a108a3 100644 --- a/app/Http/ViewComposers/CurrencySelectViewComposer.php +++ b/app/Http/ViewComposers/CurrencySelectViewComposer.php @@ -2,8 +2,8 @@ namespace App\Http\ViewComposers; -use App\Currency; use Illuminate\View\View; +use App\Models\Settings\Currency; class CurrencySelectViewComposer { diff --git a/app/Currency.php b/app/Models/Settings/Currency.php similarity index 65% rename from app/Currency.php rename to app/Models/Settings/Currency.php index d85fb4c06..bc050abe4 100644 --- a/app/Currency.php +++ b/app/Models/Settings/Currency.php @@ -1,10 +1,12 @@ belongsToMany('App\User')->withPivot('user_id')->withTimestamps(); + } +} diff --git a/app/User.php b/app/User.php index 802e2f30a..fe9896111 100644 --- a/app/User.php +++ b/app/User.php @@ -3,6 +3,8 @@ namespace App; use Carbon\Carbon; +use App\Models\Settings\Term; +use App\Models\Settings\Currency; use Illuminate\Support\Facades\DB; use Laravel\Passport\HasApiTokens; use Illuminate\Support\Facades\App; @@ -10,6 +12,8 @@ use Illuminate\Notifications\Notifiable; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Database\Eloquent\ModelNotFoundException; +use App\Http\Resources\Account\User\User as UserResource; +use App\Http\Resources\Settings\Compliance\Compliance as ComplianceResource; class User extends Authenticatable { @@ -46,9 +50,10 @@ class User extends Authenticatable * @param string $last_name * @param string $email * @param string $password + * @param string $ipAddress * @return $this */ - public static function createDefault($account_id, $first_name, $last_name, $email, $password) + public static function createDefault($account_id, $first_name, $last_name, $email, $password, $ipAddress = null) { // create the user $user = new self; @@ -62,6 +67,8 @@ class User extends Authenticatable $user->locale = App::getLocale(); $user->save(); + $user->acceptPolicy($ipAddress); + return $user; } @@ -83,6 +90,14 @@ class User extends Authenticatable return $this->belongsToMany('App\Changelog')->withPivot('read', 'upvote')->withTimestamps(); } + /** + * Get the term records associated with the user. + */ + public function terms() + { + return $this->belongsToMany(Term::class)->withPivot('ip_address')->withTimestamps(); + } + /** * Assigns a default value just in case the sort order is empty. * @@ -273,4 +288,91 @@ class User extends Authenticatable ->where('user_id', $this->id) ->update(['read' => 1]); } + + /** + * Indicate if the user has accepted the most current terms and privacy. + * + * @return bool + */ + public function isPolicyCompliant(): bool + { + $latestTerm = Term::latest()->first(); + + if ($this->getStatusForCompliance($latestTerm->id) == false) { + return false; + } + + return true; + } + + /** + * Accept latest policy. + * + * @return Term|bool + */ + public function acceptPolicy($ipAddress = null) + { + $latestTerm = Term::latest()->first(); + + if (! $latestTerm) { + return false; + } + + $this->terms()->syncWithoutDetaching([$latestTerm->id => [ + 'account_id' => $this->account->id, + 'ip_address' => $ipAddress, + ]]); + + return $latestTerm; + } + + /** + * Get the status for a given term. + * + * @param int $termId + * @return array|bool + */ + public function getStatusForCompliance($termId) + { + // @TODO: use eloquent to do this instead + $termUser = DB::table('term_user')->where('user_id', $this->id) + ->where('account_id', $this->account_id) + ->where('term_id', $termId) + ->first(); + + if (! $termUser) { + return false; + } + + $compliance = Term::find($termId); + $signedDate = \App\Helpers\DateHelper::createDateFromFormat($termUser->created_at, $this->timezone); + + return [ + 'signed' => true, + 'signed_date' => $signedDate->format(config('api.timestamp_format')), + 'ip_address' => $termUser->ip_address, + 'user' => new UserResource($this), + 'term' => new ComplianceResource($compliance), + ]; + } + + /** + * Get the list of all the policies the user has signed. + * + * @return array + */ + public function getAllCompliances() + { + $terms = collect(); + $termsUser = DB::table('term_user')->where('user_id', $this->id) + ->get(); + + foreach ($termsUser as $termUser) { + $terms->push([ + $this->getStatusForCompliance($termUser->term_id), + ]); + } + + return $terms; + } } diff --git a/config/logging.php b/config/logging.php index fa620e097..1ee0dfb34 100644 --- a/config/logging.php +++ b/config/logging.php @@ -12,6 +12,7 @@ return [ | */ 'default' => env('LOG_CHANNEL', 'stack'), + /* |-------------------------------------------------------------------------- | Log Channels diff --git a/config/monica.php b/config/monica.php index 3e7dc9667..307fd2929 100644 --- a/config/monica.php +++ b/config/monica.php @@ -112,6 +112,17 @@ return [ 'work', ], + /* + |-------------------------------------------------------------------------- + | Compliance to various international policies. + |-------------------------------------------------------------------------- + | + | Indicates whether we should comply to international policies like GDPR or + | CASL. Defaults to false, but if you do, it's at your own risk. + | + */ + 'policy_compliant' => env('POLICY_COMPLIANT', true), + /* |-------------------------------------------------------------------------- | Specific to the official Monica mobile application diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php index 0457fda5d..fffaa51ac 100644 --- a/database/factories/ModelFactory.php +++ b/database/factories/ModelFactory.php @@ -297,6 +297,23 @@ $factory->define(App\ImportJobReport::class, function (Faker\Generator $faker) { return []; }); +$factory->define(App\Models\Settings\Term::class, function (Faker\Generator $faker) { + return [ + 'term_version' => $faker->realText(50), + 'term_content' => $faker->realText(50), + 'privacy_version' => $faker->realText(50), + 'privacy_content' => $faker->realText(50), + ]; +}); + +$factory->define(App\Models\Settings\Currency::class, function (Faker\Generator $faker) { + return [ + 'iso' => $faker->realText(10), + 'name' => $faker->realText(10), + 'symbol' => $faker->realText(10), + ]; +}); + $factory->define(\Laravel\Cashier\Subscription::class, function (Faker\Generator $faker) { static $account_id; static $stripe_plan; diff --git a/database/migrations/2018_05_07_070458_create_terms_table.php b/database/migrations/2018_05_07_070458_create_terms_table.php new file mode 100644 index 000000000..4142c29a2 --- /dev/null +++ b/database/migrations/2018_05_07_070458_create_terms_table.php @@ -0,0 +1,148 @@ +increments('id'); + $table->string('term_version'); + $table->mediumText('term_content'); + $table->string('privacy_version'); + $table->mediumText('privacy_content'); + $table->timestamps(); + }); + + Schema::create('term_user', function (Blueprint $table) { + $table->unsignedInteger('account_id'); + $table->unsignedInteger('user_id'); + $table->unsignedInteger('term_id'); + $table->string('ip_address')->nullable(); + $table->timestamps(); + }); + + $privacy = ' +Monica is an open source project. The hosted version has a premium plan that let us collect money so we can pay for the servers and additional servers, but the main goal is not to make money (otherwise we wouldn’t have opened source it). + +Monica comes in two flavors: you can either use our hosted version, or download it and run it yourself. In the latter case, we do not track anything at all. We don’t know that you’ve even downloaded the product. Do whatever you want with it (but respect your local laws). + +When you create your account on our hosted version, you are giving the site information about yourself that we collect. This includes your name, your email address and your password, that is encrypted before being stored. We do not store any other personal information. + +When you login to the service, we are using cookies to remember your login credentials. This is the only use we do with the cookies. + +Monica runs on Linode and we are the only ones, apart from Linode’s employees, who have access to those servers. + +We do hourly backups of the database. + +Your password is encrypted with bcrypt, a password hashing algorithm that is highly secure. You can also activate two factor authentication on your account if you need an extra layer of security. Apart from those encryptions mechanism, your data is not encrypted in the database. If someone gets access to the database, they will be able to read your data. We do our best to make sure that this will never happen, but it can happen. + +If a data breach happens, we will contact the users who are affected to warn them about the breach. + +Transactional emails are dserved through Postmark. + +We use an open source tool called Sentry to track errors that happen in production. Their service records the errors, but they don’t have access to any information apart the account ID, which lets me debug what’s going on. + +The site does not currently and will never show ads. It also does not, and don’t intend to, sell data to a third party, with or without your consent. We are just against this. Fuck ads. + +We do no use any tracking third parties, like Google Analytics or Intercom, that track user behaviours or data, neither on the marketing site or the hosted version. We are deeply against their principles as they would use those data to profile you, which we are totally against. + +All the data you put on Monica belongs to you. We do not have any rights on it. Please don’t put illegal stuff on it, otherwise we’d be in trouble. + +All the information about the contacts you put on Monica are private to you. We do not cross link information between accounts or use one information in an account to populate another account (unlike Facebook for instance). + +We use Stripe to collect payments made to access the paid version. We do not store credit card information or anything concerning the transactions themselves on our servers. However, as per the open source library we use to process the payments (Laravel Cashier), we store the last 4 digits of the credit card, the brand name (VISA or MasterCard). As a user, you are identified on Stripe by a random number that they generate and use. + +Regarding the payments, you can downgrade to the free plan whenever you like. When you do, Stripe is automatically updated and we have no way to charge you again, even if we would like to. The less we deal with payment information, the happier we are. + +You can export your data at any time. You can also use the API to export all your data if you know how to do it. You can also request that we process this ourselves and send it to you. Your data will be exported in the SQL format. + +When you close your account, we immediately destroy all your personal information and don’t keep any backup. While you have control over this, we can delete an account for you if you ask us. + +In certain situations, we may be required to disclose peronal data in response to lawful requests by public authorities, including to met national security or law enforcements requirements. We just hope that this never happens. + +If you violate the terms of use we will terminate your account and notify you about it. However if you follow the "don’t be a dick" policy, nothing should ever happen to you and we’ll all be happy. + +Monica uses only open-source projects that are mainly hosted on Github. + +We will update this privacy policy as soon as we introduce new information practices. If we do, we will send an email to the email address specified in your account. We will never be a dick about it and will never, ever, introduce something in what we do that will affect your right to the absolute privacy.'; + + $term = ' +Scope of service +Monica supports the following browsers: + +Internet Explorer (11+) +Firefox (50+) +Chrome (latest) +Safari (latest) +I do not guarantee that the site will work with other browsers, but it’s very likely that it will just work. + +Rights +You don’t have to provide your real name when you register to an account. You do however need a valid email address if you want to upgrade your account to the paid version, or receive reminders by email. + +You have the right to close your account at any time. + +You have the right to export your data at any time, in the SQL format. + +Your data will not be intentionally shown to other users or shared with third parties. + +Your personal data will not be shared with anyone without your consent. + +Your data is backed up every hour. + +If the site ceases operation, you will receive an opportunity to export all your data before the site dies. + +Any new features that affect privacy will be strictly opt-in. + +Responsibilities +You will not use the site to store illegal information or data under the Canadian law (or any law). + +You have to be at least 18+ to create an account and use the site. + +You must not abuse the site by knowingly posting malicious code that could harm you or the other users. + +You must only use the site to do things that are widely accepted as morally good. + +You may not make automated requests to the site. + +You may not abuse the invitation system. + +You are responsible for keeping your account secure. + +I reserve the right to close accounts that abuse the system (thousands of contacts with hundred of thousands of reminders for instance) or use it in an unreasonable manner. + +Other important legal stuff +Though I want to provide a great service, there are certain things about the service I cannot promise. For example, the services and software are provided “as-is”, at your own risk, without express or implied warranty or condition of any kind. I also disclaim any warranties of merchantability, fitness for a particular purpose or non-infringement. Monica will have no responsibility for any harm to your computer system, loss or corruption of data, or other harm that results from your access to or use of the Services or Software. + +These Terms can change at any time, but I’ll never be a dick about it. Running this site is a dream come true to me, and I hope I’ll be able to run it as long as I can. + '; + + $id = DB::table('terms')->insertGetId([ + 'privacy_content' => $privacy, + 'privacy_version' => '2', + 'term_content' => $term, + 'term_version' => '2', + 'created_at' => '2018-04-12', + ]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('terms'); + Schema::dropIfExists('term_user'); + } +} diff --git a/database/migrations/2018_05_16_214222_add_timestamps_to_currencies.php b/database/migrations/2018_05_16_214222_add_timestamps_to_currencies.php new file mode 100644 index 000000000..d1d40678b --- /dev/null +++ b/database/migrations/2018_05_16_214222_add_timestamps_to_currencies.php @@ -0,0 +1,20 @@ +timestamps(); + }); + } +} diff --git a/database/migrations/2018_05_20_121028_accept_terms.php b/database/migrations/2018_05_20_121028_accept_terms.php new file mode 100644 index 000000000..976ba75bf --- /dev/null +++ b/database/migrations/2018_05_20_121028_accept_terms.php @@ -0,0 +1,24 @@ +id); + if ($user->account) { + $user->acceptPolicy(); + } + } + }); + } +} diff --git a/public/js/app.js b/public/js/app.js index c96765c50..da482a267 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1 +1 @@ -webpackJsonp([0],{"+dqM":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={data:function(){return{contactFieldTypes:[],submitted:!1,edited:!1,deleted:!1,createForm:{name:"",protocol:"",icon:"",errors:[]},editForm:{id:"",name:"",protocol:"",icon:"",errors:[]},dirltr:!0}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.dirltr="ltr"==$("html").attr("dir"),this.getContactFieldTypes(),$("#modal-create-contact-field-type").on("shown.bs.modal",function(){$("#name").focus()}),$("#modal-edit-contact-field-type").on("shown.bs.modal",function(){$("#name").focus()})},getContactFieldTypes:function(){var t=this;axios.get("/settings/personalization/contactfieldtypes").then(function(e){t.contactFieldTypes=e.data})},add:function(){$("#modal-create-contact-field-type").modal("show")},store:function(){this.persistClient("post","/settings/personalization/contactfieldtypes",this.createForm,"#modal-create-contact-field-type",this.submitted),this.$notify({group:"main",title:this.$t("settings.personalization_contact_field_type_add_success"),text:"",width:"500px",type:"success"})},edit:function(t){this.editForm.id=t.id,this.editForm.name=t.name,this.editForm.protocol=t.protocol,this.editForm.icon=t.fontawesome_icon,$("#modal-edit-contact-field-type").modal("show")},update:function(){this.persistClient("put","/settings/personalization/contactfieldtypes/"+this.editForm.id,this.editForm,"#modal-edit-contact-field-type",this.edited),this.$notify({group:"main",title:this.$t("settings.personalization_contact_field_type_edit_success"),text:"",width:"500px",type:"success"})},showDelete:function(t){this.editForm.id=t.id,$("#modal-delete-contact-field-type").modal("show")},trash:function(){this.persistClient("delete","/settings/personalization/contactfieldtypes/"+this.editForm.id,this.editForm,"#modal-delete-contact-field-type",this.deleted),this.$notify({group:"main",title:this.$t("settings.personalization_contact_field_type_delete_success"),text:"",width:"500px",type:"success"})},persistClient:function(t,e,n,i,a){var o=this;n.errors={},axios[t](e,n).then(function(t){o.getContactFieldTypes(),n.id="",n.name="",n.protocol="",n.icon="",n.errors=[],$(i).modal("hide"),!0}).catch(function(t){"object"===r(t.response.data)?n.errors=_.flatten(_.toArray(t.response.data)):n.errors=["Something went wrong. Please try again."]})}}}},"+iJ1":function(t,e,n){var r=n("VU/8")(n("kkLY"),n("bMRZ"),!1,function(t){n("eJdv")},"data-v-25a46624",null);t.exports=r.exports},"/mhG":function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("notifications",{attrs:{group:"main",position:"bottom right"}}),t._v(" "),n("h3",{staticClass:"with-actions"},[t._v("\n "+t._s(t.$t("settings.personalization_contact_field_type_title"))+"\n "),n("a",{staticClass:"btn nt2",class:[t.dirltr?"fr":"fl"],on:{click:t.add}},[t._v(t._s(t.$t("settings.personalization_contact_field_type_add")))])]),t._v(" "),n("p",[t._v(t._s(t.$t("settings.personalization_contact_field_type_description")))]),t._v(" "),t.submitted?n("div",{staticClass:"pa2 ba b--yellow mb3 mt3 br2 bg-washed-yellow"},[t._v("\n "+t._s(t.$t("settings.personalization_contact_field_type_add_success"))+"\n ")]):t._e(),t._v(" "),t.edited?n("div",{staticClass:"pa2 ba b--yellow mb3 mt3 br2 bg-washed-yellow"},[t._v("\n "+t._s(t.$t("settings.personalization_contact_field_type_edit_success"))+"\n ")]):t._e(),t._v(" "),t.deleted?n("div",{staticClass:"pa2 ba b--yellow mb3 mt3 br2 bg-washed-yellow"},[t._v("\n "+t._s(t.$t("settings.personalization_contact_field_type_delete_success"))+"\n ")]):t._e(),t._v(" "),n("div",{staticClass:"dt dt--fixed w-100 collapse br--top br--bottom"},[n("div",{staticClass:"dt-row"},[n("div",{staticClass:"dtc"},[n("div",{staticClass:"pa2 b"},[t._v("\n "+t._s(t.$t("settings.personalization_contact_field_type_table_name"))+"\n ")])]),t._v(" "),n("div",{staticClass:"dtc"},[n("div",{staticClass:"pa2 b"},[t._v("\n "+t._s(t.$t("settings.personalization_contact_field_type_table_protocol"))+"\n ")])]),t._v(" "),n("div",{staticClass:"dtc",class:[t.dirltr?"tr":"tl"]},[n("div",{staticClass:"pa2 b"},[t._v("\n "+t._s(t.$t("settings.personalization_contact_field_type_table_actions"))+"\n ")])])]),t._v(" "),t._l(t.contactFieldTypes,function(e){return n("div",{staticClass:"dt-row bb b--light-gray"},[n("div",{staticClass:"dtc"},[n("div",{staticClass:"pa2"},[e.fontawesome_icon?n("i",{staticClass:"pr2",class:e.fontawesome_icon}):t._e(),t._v(" "),e.fontawesome_icon?t._e():n("i",{staticClass:"pr2 fa fa-address-card-o"}),t._v("\n "+t._s(e.name)+"\n ")])]),t._v(" "),n("div",{staticClass:"dtc"},[n("code",{staticClass:"f7"},[t._v("\n "+t._s(e.protocol)+"\n ")])]),t._v(" "),n("div",{staticClass:"dtc",class:[t.dirltr?"tr":"tl"]},[n("div",{staticClass:"pa2"},[n("i",{staticClass:"fa fa-pencil-square-o pointer pr2",on:{click:function(n){t.edit(e)}}}),t._v(" "),e.delible?n("i",{staticClass:"fa fa-trash-o pointer",on:{click:function(n){t.showDelete(e)}}}):t._e()])])])})],2),t._v(" "),n("div",{staticClass:"modal",attrs:{id:"modal-create-contact-field-type",tabindex:"-1"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h5",{staticClass:"modal-title"},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_title")))]),t._v(" "),n("button",{staticClass:"close",class:[t.dirltr?"":"rtl"],attrs:{type:"button","data-dismiss":"modal"}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]),t._v(" "),n("div",{staticClass:"modal-body"},[t.createForm.errors.length>0?n("div",{staticClass:"alert alert-danger"},[n("p",[t._v(t._s(t.$t("app.error_title")))]),t._v(" "),n("br"),t._v(" "),n("ul",t._l(t.createForm.errors,function(e){return n("li",[t._v("\n "+t._s(e)+"\n ")])}))]):t._e(),t._v(" "),n("form",{staticClass:"form-horizontal",attrs:{role:"form"},on:{submit:function(e){return e.preventDefault(),t.store(e)}}},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_name")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.name,expression:"createForm.name"}],staticClass:"form-control",attrs:{type:"text",name:"name",id:"name",required:""},domProps:{value:t.createForm.name},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.store(e):null},input:function(e){e.target.composing||t.$set(t.createForm,"name",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"protocol"}},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_protocol")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.protocol,expression:"createForm.protocol"}],staticClass:"form-control",attrs:{type:"text",name:"protocol",id:"protocol",placeholder:"mailto:"},domProps:{value:t.createForm.protocol},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.store(e):null},input:function(e){e.target.composing||t.$set(t.createForm,"protocol",e.target.value)}}}),t._v(" "),n("small",{staticClass:"form-text text-muted"},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_protocol_help")))])]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"icon"}},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_icon")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.icon,expression:"createForm.icon"}],staticClass:"form-control",attrs:{type:"text",name:"icon",id:"icon",placeholder:"fa fa-address-book-o"},domProps:{value:t.createForm.icon},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.store(e):null},input:function(e){e.target.composing||t.$set(t.createForm,"icon",e.target.value)}}}),t._v(" "),n("small",{staticClass:"form-text text-muted"},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_icon_help")))])])])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[t._v(t._s(t.$t("app.cancel")))]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.store(e)}}},[t._v(t._s(t.$t("app.save")))])])])])]),t._v(" "),n("div",{staticClass:"modal",attrs:{id:"modal-edit-contact-field-type",tabindex:"-1"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h5",{staticClass:"modal-title"},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_edit_title")))]),t._v(" "),n("button",{staticClass:"close",class:[t.dirltr?"":"rtl"],attrs:{type:"button","data-dismiss":"modal"}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]),t._v(" "),n("div",{staticClass:"modal-body"},[t.editForm.errors.length>0?n("div",{staticClass:"alert alert-danger"},[n("p",[t._v(t._s(t.$t("app.error_title")))]),t._v(" "),n("br"),t._v(" "),n("ul",t._l(t.editForm.errors,function(e){return n("li",[t._v("\n "+t._s(e[1])+"\n ")])}))]):t._e(),t._v(" "),n("form",{staticClass:"form-horizontal",attrs:{role:"form"},on:{submit:function(e){return e.preventDefault(),t.update(e)}}},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_name")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.editForm.name,expression:"editForm.name"}],staticClass:"form-control",attrs:{type:"text",name:"name",id:"name",required:""},domProps:{value:t.editForm.name},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.update(e):null},input:function(e){e.target.composing||t.$set(t.editForm,"name",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"protocol"}},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_protocol")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.editForm.protocol,expression:"editForm.protocol"}],staticClass:"form-control",attrs:{type:"text",name:"protocol",id:"protocol",placeholder:"mailto:"},domProps:{value:t.editForm.protocol},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.update(e):null},input:function(e){e.target.composing||t.$set(t.editForm,"protocol",e.target.value)}}}),t._v(" "),n("small",{staticClass:"form-text text-muted"},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_protocol_help")))])]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"icon"}},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_icon")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.editForm.icon,expression:"editForm.icon"}],staticClass:"form-control",attrs:{type:"text",name:"icon",id:"icon",placeholder:"fa fa-address-book-o"},domProps:{value:t.editForm.icon},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.update(e):null},input:function(e){e.target.composing||t.$set(t.editForm,"icon",e.target.value)}}}),t._v(" "),n("small",{staticClass:"form-text text-muted"},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_icon_help")))])])])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[t._v(t._s(t.$t("app.cancel")))]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.update(e)}}},[t._v(t._s(t.$t("app.edit")))])])])])]),t._v(" "),n("div",{staticClass:"modal",attrs:{id:"modal-delete-contact-field-type",tabindex:"-1"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h5",{staticClass:"modal-title"},[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_delete_title")))]),t._v(" "),n("button",{staticClass:"close",class:[t.dirltr?"":"rtl"],attrs:{type:"button","data-dismiss":"modal"}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]),t._v(" "),n("div",{staticClass:"modal-body"},[n("p",[t._v(t._s(t.$t("settings.personalization_contact_field_type_modal_delete_description")))])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[t._v(t._s(t.$t("app.cancel")))]),t._v(" "),n("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.trash(e)}}},[t._v(t._s(t.$t("app.delete")))])])])])])],1)},staticRenderFns:[]}},0:function(t,e,n){n("sV/x"),n("xZZD"),t.exports=n("A15i")},"0j/5":function(t,e,n){var r=n("VU/8")(n("YEt0"),n("5V0h"),!1,function(t){n("Wdno")},"data-v-ade346bc",null);t.exports=r.exports},"0pae":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{activeTab:"",callsAlreadyLoaded:!1,notesAlreadyLoaded:!1,calls:[],notes:[]}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},props:["defaultActiveTab"],methods:{prepareComponent:function(){this.setActiveTab(this.defaultActiveTab)},setActiveTab:function(t){this.activeTab=t,this.saveTab(t),"calls"==t&&(this.callsAlreadyLoaded||(this.getCalls(),this.callsAlreadyLoaded=!0)),"notes"==t&&(this.notesAlreadyLoaded||(this.getNotes(),this.notesAlreadyLoaded=!0))},saveTab:function(t){axios.post("/dashboard/setTab",{tab:t}).then(function(t){})},getCalls:function(){var t=this;axios.get("/dashboard/calls").then(function(e){t.calls=e.data})},getNotes:function(){var t=this;axios.get("/dashboard/notes").then(function(e){t.notes=e.data})}}}},1:function(t,e){},"1Ftj":function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[1==t.clickable?n("div",[t.contact.has_avatar?n("div",{staticClass:"tc"},[t.contact.has_avatar?n("img",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.contact.complete_name,expression:"contact.complete_name"}],staticClass:"br4 h3 w3 dib",attrs:{src:t.contact.avatar_url},on:{click:function(e){t.goToContact()}}}):t._e()]):t._e(),t._v(" "),t.contact.gravatar_url?n("div",{staticClass:"tc"},[n("img",{staticClass:"br4 h3 w3 dib",attrs:{src:t.contact.gravatar_url,width:"43"},on:{click:function(e){t.goToContact()}}})]):t._e(),t._v(" "),t.contact.has_avatar?t._e():n("div",{directives:[{name:"tooltip",rawName:"v-tooltip.bottom",value:t.contact.complete_name,expression:"contact.complete_name",modifiers:{bottom:!0}}],staticClass:"br4 h3 w3 dib pt3 white tc f4",style:{"background-color":t.contact.default_avatar_color},on:{click:function(e){t.goToContact()}}},[t._v("\n "+t._s(t.contact.initials)+"\n ")])]):t._e(),t._v(" "),0==t.clickable?n("div",[t.contact.has_avatar?n("div",{staticClass:"tc"},[t.contact.has_avatar?n("img",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.contact.complete_name,expression:"contact.complete_name"}],staticClass:"br4 h3 w3 dib",attrs:{src:t.contact.avatar_url}}):t._e()]):t._e(),t._v(" "),t.contact.gravatar_url?n("div",{staticClass:"tc"},[n("img",{staticClass:"br4 h3 w3 dib",attrs:{src:t.contact.gravatar_url,width:"43"}})]):t._e(),t._v(" "),t.contact.has_avatar?t._e():n("div",{directives:[{name:"tooltip",rawName:"v-tooltip.bottom",value:t.contact.complete_name,expression:"contact.complete_name",modifiers:{bottom:!0}}],staticClass:"br4 h3 w3 dib pt3 white tc f4",style:{"background-color":t.contact.default_avatar_color}},[t._v("\n "+t._s(t.contact.initials)+"\n ")])]):t._e()])},staticRenderFns:[]}},"1abU":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{day:[]}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},props:["journalEntry"],methods:{prepareComponent:function(){this.day=this.journalEntry.object},destroy:function(){var t=this;axios.delete("/journal/day/"+this.day.id).then(function(e){t.$emit("deleteJournalEntry",t.journalEntry.id)})}}}},"20cu":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{tokens:[]}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getTokens()},getTokens:function(){var t=this;axios.get("/oauth/tokens").then(function(e){t.tokens=e.data})},revoke:function(t){var e=this;axios.delete("/oauth/tokens/"+t.id).then(function(t){e.getTokens()})}}}},"21It":function(t,e,n){"use strict";var r=n("FtD3");t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"288Y":function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("journal-calendar",{attrs:{"journal-entry":t.journalEntry}}),t._v(" "),n("div",{staticClass:"fl journal-calendar-content"},[n("div",{staticClass:"br3 ba b--gray-monica bg-white pr3 pb3 pt3 mb3 journal-line"},[n("div",{staticClass:"flex"},[n("div",{staticClass:"flex-none w-10 tc"},[n("h3",{staticClass:"mb0 normal"},[t._v(t._s(t.entry.day))]),t._v(" "),n("p",{staticClass:"mb0"},[t._v(t._s(t.entry.day_name))])]),t._v(" "),n("div",{staticClass:"flex-auto"},[n("p",{staticClass:"mb1"},[n("span",{staticClass:"pr2 f6 avenir"},[t._v(t._s(t.$t("journal.journal_entry_type_journal")))])]),t._v(" "),n("h3",{staticClass:"mb1"},[t._v(t._s(t.entry.title))]),t._v(" "),n("div",{staticClass:"markdown",domProps:{innerHTML:t._s(t.entry.post)}}),t._v(" "),n("ul",{staticClass:"f7"},[n("li",{staticClass:"di"},[n("a",{staticClass:"pointer",on:{click:function(e){t.trash()}}},[t._v(t._s(t.$t("app.delete")))])])])])])])])],1)},staticRenderFns:[]}},"2gnr":function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"",""])},"2i7L":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};n.d(r,"af",function(){return h}),n.d(r,"ar",function(){return m}),n.d(r,"bg",function(){return _}),n.d(r,"bs",function(){return v}),n.d(r,"ca",function(){return g}),n.d(r,"cs",function(){return y}),n.d(r,"da",function(){return b}),n.d(r,"de",function(){return w}),n.d(r,"ee",function(){return C}),n.d(r,"el",function(){return x}),n.d(r,"en",function(){return k}),n.d(r,"es",function(){return T}),n.d(r,"fa",function(){return D}),n.d(r,"fi",function(){return L}),n.d(r,"fr",function(){return S}),n.d(r,"ge",function(){return E}),n.d(r,"he",function(){return M}),n.d(r,"hr",function(){return A}),n.d(r,"hu",function(){return j}),n.d(r,"id",function(){return F}),n.d(r,"is",function(){return $}),n.d(r,"it",function(){return O}),n.d(r,"ja",function(){return N}),n.d(r,"ko",function(){return I}),n.d(r,"lb",function(){return P}),n.d(r,"lt",function(){return R}),n.d(r,"lv",function(){return B}),n.d(r,"mn",function(){return z}),n.d(r,"nbNO",function(){return q}),n.d(r,"nl",function(){return W}),n.d(r,"pl",function(){return H}),n.d(r,"ptBR",function(){return U}),n.d(r,"ro",function(){return V}),n.d(r,"ru",function(){return Y}),n.d(r,"sk",function(){return J}),n.d(r,"slSI",function(){return G}),n.d(r,"srCYRL",function(){return X}),n.d(r,"sr",function(){return Z}),n.d(r,"sv",function(){return K}),n.d(r,"th",function(){return Q}),n.d(r,"tr",function(){return tt}),n.d(r,"uk",function(){return et}),n.d(r,"ur",function(){return nt}),n.d(r,"vi",function(){return rt}),n.d(r,"zh",function(){return it});var i=function(t,e,n,r){this.language=t,this.months=e,this.monthsAbbr=n,this.days=r,this.rtl=!1,this.ymd=!1,this.yearSuffix=""},a={language:{configurable:!0},months:{configurable:!0},monthsAbbr:{configurable:!0},days:{configurable:!0}};a.language.get=function(){return this._language},a.language.set=function(t){if("string"!=typeof t)throw new TypeError("Language must be a string");this._language=t},a.months.get=function(){return this._months},a.months.set=function(t){if(12!==t.length)throw new RangeError("There must be 12 months for "+this.language+" language");this._months=t},a.monthsAbbr.get=function(){return this._monthsAbbr},a.monthsAbbr.set=function(t){if(12!==t.length)throw new RangeError("There must be 12 abbreviated months for "+this.language+" language");this._monthsAbbr=t},a.days.get=function(){return this._days},a.days.set=function(t){if(7!==t.length)throw new RangeError("There must be 7 days for "+this.language+" language");this._days=t},Object.defineProperties(i.prototype,a);var o=new i("English",["January","February","March","April","May","June","July","August","September","October","November","December"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),s={isValidDate:function(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())},getDayNameAbbr:function(t,e){if("object"!=typeof t)throw TypeError("Invalid Type");return e[t.getDay()]},getMonthName:function(t,e){if(!e)throw Error("missing 2nd parameter Months array");if("object"==typeof t)return e[t.getMonth()];if("number"==typeof t)return e[t];throw TypeError("Invalid type")},getMonthNameAbbr:function(t,e){if(!e)throw Error("missing 2nd paramter Months array");if("object"==typeof t)return e[t.getMonth()];if("number"==typeof t)return e[t];throw TypeError("Invalid type")},daysInMonth:function(t,e){return/8|3|5|10/.test(e)?30:1===e?(t%4||!(t%100))&&t%400?28:29:31},getNthSuffix:function(t){switch(t){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},formatDate:function(t,e,n){n=n||o;var r=t.getFullYear(),i=t.getMonth()+1,a=t.getDate();return e.replace(/dd/,("0"+a).slice(-2)).replace(/d/,a).replace(/yyyy/,r).replace(/yy/,String(r).slice(2)).replace(/MMMM/,this.getMonthName(t.getMonth(),n.months)).replace(/MMM/,this.getMonthNameAbbr(t.getMonth(),n.monthsAbbr)).replace(/MM/,("0"+i).slice(-2)).replace(/M(?!a|ä|e)/,i).replace(/su/,this.getNthSuffix(t.getDate())).replace(/D(?!e|é|i)/,this.getDayNameAbbr(t,n.days))},createDateArray:function(t,e){for(var n=[];t<=e;)n.push(new Date(t)),t=new Date(t).setDate(new Date(t).getDate()+1);return n}};!function(){if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",e.styleSheet?e.styleSheet.cssText="":e.appendChild(document.createTextNode("")),t.appendChild(e)}}();var l={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{"input-group":t.bootstrapStyling}},[t.calendarButton?n("span",{staticClass:"vdp-datepicker__calendar-button",class:{"input-group-addon":t.bootstrapStyling},style:{"cursor:not-allowed;":t.disabled},on:{click:t.showCalendar}},[n("i",{class:t.calendarButtonIcon},[t._v(" "+t._s(t.calendarButtonIconContent)+" "),t.calendarButtonIcon?t._e():n("span",[t._v("…")])])]):t._e(),t._v(" "),n("input",{ref:t.refName,class:t.computedInputClass,attrs:{type:t.inline?"hidden":"text",name:t.name,id:t.id,"open-date":t.openDate,placeholder:t.placeholder,"clear-button":t.clearButton,disabled:t.disabled,required:t.required},domProps:{value:t.formattedValue},on:{click:t.showCalendar,keyup:t.parseTypedDate,blur:t.inputBlurred}}),t._v(" "),t.clearButton&&t.selectedDate?n("span",{staticClass:"vdp-datepicker__clear-button",class:{"input-group-addon":t.bootstrapStyling},on:{click:function(e){t.clearDate()}}},[n("i",{class:t.clearButtonIcon},[t.clearButtonIcon?t._e():n("span",[t._v("×")])])]):t._e()])},staticRenderFns:[],props:{selectedDate:Date,format:[String,Function],translation:Object,inline:Boolean,id:String,name:String,refName:String,openDate:Date,placeholder:String,inputClass:[String,Object],clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,disabled:Boolean,required:Boolean,bootstrapStyling:Boolean},data:function(){return{input:null,typedDate:!1}},computed:{formattedValue:function(){return this.selectedDate?this.typedDate?this.typedDate:"function"==typeof this.format?this.format(this.selectedDate):s.formatDate(new Date(this.selectedDate),this.format,this.translation):null},computedInputClass:function(){var t=[this.inputClass];return this.bootstrapStyling&&t.push("form-control"),t.join(" ")}},methods:{showCalendar:function(){this.$emit("showCalendar")},parseTypedDate:function(){var t=Date.parse(this.input.value);isNaN(t)||(this.typedDate=this.input.value,this.$emit("typedDate",new Date(this.typedDate)))},inputBlurred:function(){this.typedDate&&(isNaN(Date.parse(this.input.value))&&this.clearDate(),this.input.value=null,this.typedDate=null)},clearDate:function(){this.$emit("clearDate")}},mounted:function(){this.input=this.$el.querySelector("input")}};!function(){if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",e.styleSheet?e.styleSheet.cssText="":e.appendChild(document.createTextNode("")),t.appendChild(e)}}();var c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.showDayView,expression:"showDayView"}],class:[t.calendarClass,"vdp-datepicker__calendar"],style:t.calendarStyle},[n("header",[n("span",{staticClass:"prev",class:{disabled:t.isRtl?t.isNextMonthDisabled(t.pageTimestamp):t.isPreviousMonthDisabled(t.pageTimestamp)},on:{click:function(e){t.isRtl?t.nextMonth():t.previousMonth()}}},[t._v("<")]),t._v(" "),n("span",{staticClass:"day__month_btn",class:t.allowedToShowView("month")?"up":"",on:{click:t.showMonthCalendar}},[t._v(t._s(t.isYmd?t.currYearName:t.currMonthName)+" "+t._s(t.isYmd?t.currMonthName:t.currYearName))]),t._v(" "),n("span",{staticClass:"next",class:{disabled:t.isRtl?t.isPreviousMonthDisabled(t.pageTimestamp):t.isNextMonthDisabled(t.pageTimestamp)},on:{click:function(e){t.isRtl?t.previousMonth():t.nextMonth()}}},[t._v(">")])]),t._v(" "),n("div",{class:t.isRtl?"flex-rtl":""},[t._l(t.daysOfWeek,function(e){return n("span",{key:e.timestamp,staticClass:"cell day-header"},[t._v(t._s(e))])}),t._v(" "),t.blankDays>0?t._l(t.blankDays,function(t){return n("span",{key:t.timestamp,staticClass:"cell day blank"})}):t._e(),t._l(t.days,function(e){return n("span",{key:e.timestamp,staticClass:"cell day",class:t.dayClasses(e),on:{click:function(n){t.selectDate(e)}}},[t._v(t._s(e.date))])})],2)])},staticRenderFns:[],props:{showDayView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,fullMonthName:Boolean,allowedToShowView:Function,disabledDates:Object,highlighted:Object,calendarClass:String,calendarStyle:Object,translation:Object,isRtl:Boolean,mondayFirst:Boolean},computed:{daysOfWeek:function(){if(this.mondayFirst){var t=this.translation.days.slice();return t.push(t.shift()),t}return this.translation.days},blankDays:function(){var t=this.pageDate,e=new Date(t.getFullYear(),t.getMonth(),1,t.getHours(),t.getMinutes());return this.mondayFirst?e.getDay()>0?e.getDay()-1:6:e.getDay()},days:function(){for(var t=this.pageDate,e=[],n=new Date(t.getFullYear(),t.getMonth(),1,t.getHours(),t.getMinutes()),r=s.daysInMonth(n.getFullYear(),n.getMonth()),i=0;i=t.getMonth()&&this.disabledDates.to.getFullYear()>=t.getFullYear()},nextMonth:function(){this.isNextMonthDisabled()||this.changeMonth(1)},isNextMonthDisabled:function(){if(!this.disabledDates||!this.disabledDates.from)return!1;var t=this.pageDate;return this.disabledDates.from.getMonth()<=t.getMonth()&&this.disabledDates.from.getFullYear()<=t.getFullYear()},isSelectedDate:function(t){return this.selectedDate&&this.selectedDate.toDateString()===t.toDateString()},isDisabledDate:function(t){var e=!1;return void 0!==this.disabledDates&&(void 0!==this.disabledDates.dates&&this.disabledDates.dates.forEach(function(n){if(t.toDateString()===n.toDateString())return e=!0,!0}),void 0!==this.disabledDates.to&&this.disabledDates.to&&tthis.disabledDates.from&&(e=!0),void 0!==this.disabledDates.ranges&&this.disabledDates.ranges.forEach(function(n){if(void 0!==n.from&&n.from&&void 0!==n.to&&n.to&&tn.from)return e=!0,!0}),void 0!==this.disabledDates.days&&-1!==this.disabledDates.days.indexOf(t.getDay())&&(e=!0),void 0!==this.disabledDates.daysOfMonth&&-1!==this.disabledDates.daysOfMonth.indexOf(t.getDate())&&(e=!0),"function"==typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(t)&&(e=!0),e)},isHighlightedDate:function(t){if((!this.highlighted||!this.highlighted.includeDisabled)&&this.isDisabledDate(t))return!1;var e=!1;return void 0!==this.highlighted&&(void 0!==this.highlighted.dates&&this.highlighted.dates.forEach(function(n){if(t.toDateString()===n.toDateString())return e=!0,!0}),this.isDefined(this.highlighted.from)&&this.isDefined(this.highlighted.to)&&(e=t>=this.highlighted.from&&t<=this.highlighted.to),void 0!==this.highlighted.days&&-1!==this.highlighted.days.indexOf(t.getDay())&&(e=!0),void 0!==this.highlighted.daysOfMonth&&-1!==this.highlighted.daysOfMonth.indexOf(t.getDate())&&(e=!0),"function"==typeof this.highlighted.customPredictor&&this.highlighted.customPredictor(t)&&(e=!0),e)},dayClasses:function(t){return{selected:t.isSelected,disabled:t.isDisabled,highlighted:t.isHighlighted,today:t.isToday,weekend:t.isWeekend,sat:t.isSaturday,sun:t.isSunday,"highlight-start":t.isHighlightStart,"highlight-end":t.isHighlightEnd}},isHighlightStart:function(t){return this.isHighlightedDate(t)&&this.highlighted.from instanceof Date&&this.highlighted.from.getFullYear()===t.getFullYear()&&this.highlighted.from.getMonth()===t.getMonth()&&this.highlighted.from.getDate()===t.getDate()},isHighlightEnd:function(t){return this.isHighlightedDate(t)&&this.highlighted.to instanceof Date&&this.highlighted.to.getFullYear()===t.getFullYear()&&this.highlighted.to.getMonth()===t.getMonth()&&this.highlighted.to.getDate()===t.getDate()},isDefined:function(t){return void 0!==t&&t}}};!function(){if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",e.styleSheet?e.styleSheet.cssText="":e.appendChild(document.createTextNode("")),t.appendChild(e)}}();var u={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.showMonthView,expression:"showMonthView"}],class:[t.calendarClass,"vdp-datepicker__calendar"],style:t.calendarStyle},[n("header",[n("span",{staticClass:"prev",class:{disabled:t.isPreviousYearDisabled(t.pageTimestamp)},on:{click:t.previousYear}},[t._v("<")]),t._v(" "),n("span",{staticClass:"month__year_btn",class:t.allowedToShowView("year")?"up":"",on:{click:t.showYearCalendar}},[t._v(t._s(t.pageYearName))]),t._v(" "),n("span",{staticClass:"next",class:{disabled:t.isNextYearDisabled(t.pageTimestamp)},on:{click:t.nextYear}},[t._v(">")])]),t._v(" "),t._l(t.months,function(e){return n("span",{key:e.timestamp,staticClass:"cell month",class:{selected:e.isSelected,disabled:e.isDisabled},on:{click:function(n){n.stopPropagation(),t.selectMonth(e)}}},[t._v(t._s(e.month))])})],2)},staticRenderFns:[],props:{showMonthView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,calendarClass:String,calendarStyle:Object,translation:Object,allowedToShowView:Function},computed:{months:function(){for(var t=this.pageDate,e=[],n=new Date(t.getFullYear(),0,t.getDate(),t.getHours(),t.getMinutes()),r=0;r<12;r++)e.push({month:s.getMonthName(r,this.translation.months),timestamp:n.getTime(),isSelected:this.isSelectedMonth(n),isDisabled:this.isDisabledMonth(n)}),n.setMonth(n.getMonth()+1);return e},pageYearName:function(){var t=this.translation.yearSuffix;return""+this.pageDate.getFullYear()+t}},methods:{selectMonth:function(t){if(t.isDisabled)return!1;this.$emit("selectMonth",t)},changeYear:function(t){var e=this.pageDate;e.setYear(e.getFullYear()+t),this.$emit("changedYear",e)},previousYear:function(){this.isPreviousYearDisabled()||this.changeYear(-1)},isPreviousYearDisabled:function(){return!(!this.disabledDates||!this.disabledDates.to)&&this.disabledDates.to.getFullYear()>=this.pageDate.getFullYear()},nextYear:function(){this.isNextYearDisabled()||this.changeYear(1)},isNextYearDisabled:function(){return!(!this.disabledDates||!this.disabledDates.from)&&this.disabledDates.from.getFullYear()<=this.pageDate.getFullYear()},showYearCalendar:function(){this.$emit("showYearCalendar")},isSelectedMonth:function(t){return this.selectedDate&&this.selectedDate.getFullYear()===t.getFullYear()&&this.selectedDate.getMonth()===t.getMonth()},isDisabledMonth:function(t){var e=!1;return void 0!==this.disabledDates&&(void 0!==this.disabledDates.to&&this.disabledDates.to&&(t.getMonth()this.disabledDates.from.getMonth()&&t.getFullYear()>=this.disabledDates.from.getFullYear()||t.getFullYear()>this.disabledDates.from.getFullYear())&&(e=!0),e)}}};!function(){if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",e.styleSheet?e.styleSheet.cssText="":e.appendChild(document.createTextNode("")),t.appendChild(e)}}();var d={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.showYearView,expression:"showYearView"}],class:[t.calendarClass,"vdp-datepicker__calendar"],style:t.calendarStyle},[n("header",[n("span",{staticClass:"prev",class:{disabled:t.isPreviousDecadeDisabled(t.pageTimestamp)},on:{click:t.previousDecade}},[t._v("<")]),t._v(" "),n("span",[t._v(t._s(t.getPageDecade))]),t._v(" "),n("span",{staticClass:"next",class:{disabled:t.isNextDecadeDisabled(t.pageTimestamp)},on:{click:t.nextDecade}},[t._v(">")])]),t._v(" "),t._l(t.years,function(e){return n("span",{key:e.timestamp,staticClass:"cell year",class:{selected:e.isSelected,disabled:e.isDisabled},on:{click:function(n){n.stopPropagation(),t.selectYear(e)}}},[t._v(t._s(e.year))])})],2)},staticRenderFns:[],props:{showYearView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,highlighted:Object,calendarClass:String,calendarStyle:Object,translation:Object,allowedToShowView:Function},computed:{years:function(){for(var t=this.pageDate,e=[],n=new Date(10*Math.floor(t.getFullYear()/10),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes()),r=0;r<10;r++)e.push({year:n.getFullYear(),timestamp:n.getTime(),isSelected:this.isSelectedYear(n),isDisabled:this.isDisabledYear(n)}),n.setFullYear(n.getFullYear()+1);return e},getPageDecade:function(){var t=10*Math.floor(this.pageDate.getFullYear()/10);return t+" - "+(t+9)+this.translation.yearSuffix}},methods:{selectYear:function(t){if(t.isDisabled)return!1;this.$emit("selectYear",t)},changeYear:function(t){var e=this.pageDate;e.setYear(e.getFullYear()+t),this.$emit("changedDecade",e)},previousDecade:function(){if(this.isPreviousDecadeDisabled())return!1;this.changeYear(-10)},isPreviousDecadeDisabled:function(){return!(!this.disabledDates||!this.disabledDates.to)&&10*Math.floor(this.disabledDates.to.getFullYear()/10)>=10*Math.floor(this.pageDate.getFullYear()/10)},nextDecade:function(){if(this.isNextDecadeDisabled())return!1;this.changeYear(10)},isNextDecadeDisabled:function(){return!(!this.disabledDates||!this.disabledDates.from)&&10*Math.ceil(this.disabledDates.from.getFullYear()/10)<=10*Math.ceil(this.pageDate.getFullYear()/10)},isSelectedYear:function(t){return this.selectedDate&&this.selectedDate.getFullYear()===t.getFullYear()},isDisabledYear:function(t){var e=!1;return!(void 0===this.disabledDates||!this.disabledDates)&&(void 0!==this.disabledDates.to&&this.disabledDates.to&&t.getFullYear()this.disabledDates.from.getFullYear()&&(e=!0),e)}}};!function(){if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style"),n=".rtl { direction: rtl; } .vdp-datepicker { position: relative; text-align: left; } .vdp-datepicker * { box-sizing: border-box; } .vdp-datepicker__calendar { position: absolute; z-index: 100; background: #fff; width: 300px; border: 1px solid #ccc; } .vdp-datepicker__calendar header { display: block; line-height: 40px; } .vdp-datepicker__calendar header span { display: inline-block; text-align: center; width: 71.42857142857143%; float: left; } .vdp-datepicker__calendar header .prev, .vdp-datepicker__calendar header .next { width: 14.285714285714286%; float: left; text-indent: -10000px; position: relative; } .vdp-datepicker__calendar header .prev:after, .vdp-datepicker__calendar header .next:after { content: ''; position: absolute; left: 50%; top: 50%; -webkit-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%); border: 6px solid transparent; } .vdp-datepicker__calendar header .prev:after { border-right: 10px solid #000; margin-left: -5px; } .vdp-datepicker__calendar header .prev.disabled:after { border-right: 10px solid #ddd; } .vdp-datepicker__calendar header .next:after { border-left: 10px solid #000; margin-left: 5px; } .vdp-datepicker__calendar header .next.disabled:after { border-left: 10px solid #ddd; } .vdp-datepicker__calendar header .prev:not(.disabled), .vdp-datepicker__calendar header .next:not(.disabled), .vdp-datepicker__calendar header .up:not(.disabled) { cursor: pointer; } .vdp-datepicker__calendar header .prev:not(.disabled):hover, .vdp-datepicker__calendar header .next:not(.disabled):hover, .vdp-datepicker__calendar header .up:not(.disabled):hover { background: #eee; } .vdp-datepicker__calendar .disabled { color: #ddd; cursor: default; } .vdp-datepicker__calendar .flex-rtl { display: flex; width: inherit; flex-wrap: wrap; } .vdp-datepicker__calendar .cell { display: inline-block; padding: 0 5px; width: 14.285714285714286%; height: 40px; line-height: 40px; text-align: center; vertical-align: middle; border: 1px solid transparent; } .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day, .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month, .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year { cursor: pointer; } .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover, .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover, .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover { border: 1px solid #4bd; } .vdp-datepicker__calendar .cell.selected { background: #4bd; } .vdp-datepicker__calendar .cell.selected:hover { background: #4bd; } .vdp-datepicker__calendar .cell.selected.highlighted { background: #4bd; } .vdp-datepicker__calendar .cell.highlighted { background: #cae5ed; } .vdp-datepicker__calendar .cell.highlighted.disabled { color: #a3a3a3; } .vdp-datepicker__calendar .cell.grey { color: #888; } .vdp-datepicker__calendar .cell.grey:hover { background: inherit; } .vdp-datepicker__calendar .cell.day-header { font-size: 75%; white-space: no-wrap; cursor: inherit; } .vdp-datepicker__calendar .cell.day-header:hover { background: inherit; } .vdp-datepicker__calendar .month, .vdp-datepicker__calendar .year { width: 33.333%; } .vdp-datepicker__clear-button, .vdp-datepicker__calendar-button { cursor: pointer; font-style: normal; } .vdp-datepicker__clear-button.disabled, .vdp-datepicker__calendar-button.disabled { color: #999; cursor: default; } ";e.type="text/css",e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n)),t.appendChild(e)}}();var p={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vdp-datepicker",class:[t.wrapperClass,t.isRtl?"rtl":""]},[n("date-input",{attrs:{selectedDate:t.selectedDate,format:t.format,translation:t.translation,inline:t.inline,id:t.id,name:t.name,refName:t.refName,openDate:t.openDate,placeholder:t.placeholder,inputClass:t.inputClass,clearButton:t.clearButton,clearButtonIcon:t.clearButtonIcon,calendarButton:t.calendarButton,calendarButtonIcon:t.calendarButtonIcon,calendarButtonIconContent:t.calendarButtonIconContent,disabled:t.disabled,required:t.required,bootstrapStyling:t.bootstrapStyling},on:{showCalendar:t.showCalendar,typedDate:t.setTypedDate,clearDate:t.clearDate}}),t._v(" "),t.allowedToShowView("day")?n("picker-day",{attrs:{pageDate:t.pageDate,selectedDate:t.selectedDate,showDayView:t.showDayView,fullMonthName:t.fullMonthName,allowedToShowView:t.allowedToShowView,disabledDates:t.disabledDates,highlighted:t.highlighted,calendarClass:t.calendarClass,calendarStyle:t.calendarStyle,translation:t.translation,pageTimestamp:t.pageTimestamp,isRtl:t.isRtl,mondayFirst:t.mondayFirst},on:{changedMonth:t.setPageDate,selectDate:t.selectDate,showMonthCalendar:t.showMonthCalendar,selectedDisabled:function(e){t.$emit("selectedDisabled")}}}):t._e(),t._v(" "),t.allowedToShowView("month")?n("picker-month",{attrs:{pageDate:t.pageDate,selectedDate:t.selectedDate,showMonthView:t.showMonthView,allowedToShowView:t.allowedToShowView,disabledDates:t.disabledDates,calendarClass:t.calendarClass,calendarStyle:t.calendarStyle,translation:t.translation},on:{selectMonth:t.selectMonth,showYearCalendar:t.showYearCalendar,changedYear:t.setPageDate}}):t._e(),t._v(" "),t.allowedToShowView("year")?n("picker-year",{attrs:{pageDate:t.pageDate,selectedDate:t.selectedDate,showYearView:t.showYearView,allowedToShowView:t.allowedToShowView,disabledDates:t.disabledDates,calendarClass:t.calendarClass,calendarStyle:t.calendarStyle,translation:t.translation},on:{selectYear:t.selectYear,changedDecade:t.setPageDate}}):t._e()],1)},staticRenderFns:[],components:{DateInput:l,PickerDay:c,PickerMonth:u,PickerYear:d},props:{value:{validator:function(t){return null===t||t instanceof Date||"string"==typeof t||"number"==typeof t}},name:String,refName:String,id:String,format:{type:[String,Function],default:"dd MMM yyyy"},language:{type:Object,default:function(){return o}},openDate:{validator:function(t){return null===t||t instanceof Date||"string"==typeof t||"number"==typeof t}},fullMonthName:Boolean,disabledDates:Object,highlighted:Object,placeholder:String,inline:Boolean,calendarClass:[String,Object],inputClass:[String,Object],wrapperClass:[String,Object],mondayFirst:Boolean,clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,bootstrapStyling:Boolean,initialView:String,disabled:Boolean,required:Boolean,minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"}},data:function(){return{pageTimestamp:(this.openDate?new Date(this.openDate):new Date).setDate(1),selectedDate:null,showDayView:!1,showMonthView:!1,showYearView:!1,calendarHeight:0}},watch:{value:function(t){this.setValue(t)},openDate:function(){this.setPageDate()},initialView:function(){this.setInitialView()}},computed:{computedInitialView:function(){return this.initialView?this.initialView:this.minimumView},pageDate:function(){return new Date(this.pageTimestamp)},translation:function(){return this.language},calendarStyle:function(){return{position:this.isInline?"static":void 0}},isOpen:function(){return this.showDayView||this.showMonthView||this.showYearView},isInline:function(){return!!this.inline},isRtl:function(){return!0===this.translation.rtl}},methods:{resetDefaultPageDate:function(){null!==this.selectedDate?this.setPageDate(this.selectedDate):this.setPageDate()},showCalendar:function(){return!this.disabled&&!this.isInline&&(this.isOpen?this.close(!0):(this.setInitialView(),void(this.isInline||this.$emit("opened"))))},setInitialView:function(){var t=this.computedInitialView;if(!this.allowedToShowView(t))throw new Error("initialView '"+this.initialView+"' cannot be rendered based on minimum '"+this.minimumView+"' and maximum '"+this.maximumView+"'");switch(t){case"year":this.showYearCalendar();break;case"month":this.showMonthCalendar();break;default:this.showDayCalendar()}},allowedToShowView:function(t){var e=["day","month","year"],n=e.indexOf(this.minimumView),r=e.indexOf(this.maximumView),i=e.indexOf(t);return i>=n&&i<=r},showDayCalendar:function(){return!!this.allowedToShowView("day")&&(this.close(),this.showDayView=!0,this.addOutsideClickListener(),!0)},showMonthCalendar:function(){return!!this.allowedToShowView("month")&&(this.close(),this.showMonthView=!0,this.addOutsideClickListener(),!0)},showYearCalendar:function(){return!!this.allowedToShowView("year")&&(this.close(),this.showYearView=!0,this.addOutsideClickListener(),!0)},setDate:function(t){var e=new Date(t);this.selectedDate=new Date(e),this.setPageDate(e),this.$emit("selected",new Date(e)),this.$emit("input",new Date(e))},clearDate:function(){this.selectedDate=null,this.setPageDate(),this.$emit("selected",null),this.$emit("input",null),this.$emit("cleared")},selectDate:function(t){this.setDate(t.timestamp),this.isInline||this.close(!0)},selectMonth:function(t){var e=new Date(t.timestamp);this.allowedToShowView("day")?(this.setPageDate(e),this.$emit("changedMonth",t),this.showDayCalendar()):(this.setDate(e),this.isInline||this.close(!0))},selectYear:function(t){var e=new Date(t.timestamp);this.allowedToShowView("month")?(this.setPageDate(e),this.$emit("changedYear",t),this.showMonthCalendar()):(this.setDate(e),this.isInline||this.close(!0))},setValue:function(t){if("string"==typeof t||"number"==typeof t){var e=new Date(t);t=isNaN(e.valueOf())?null:e}if(!t)return this.setPageDate(),void(this.selectedDate=null);this.selectedDate=t,this.setPageDate(t)},setPageDate:function(t){t||(t=this.openDate?new Date(this.openDate):new Date),this.pageTimestamp=new Date(t).setDate(1)},setTypedDate:function(t){this.setDate(t.getTime())},addOutsideClickListener:function(){var t=this;this.isInline||setTimeout(function(){document.addEventListener("click",t.clickOutside,!1)},100)},clickOutside:function(t){this.$el&&!this.$el.contains(t.target)&&(this.resetDefaultPageDate(),this.close(!0),document.removeEventListener("click",this.clickOutside,!1))},close:function(t){this.showDayView=this.showMonthView=this.showYearView=!1,this.isInline||(t&&this.$emit("closed"),document.removeEventListener("click",this.clickOutside,!1))},init:function(){this.value&&this.setValue(this.value),this.isInline&&this.setInitialView()}},mounted:function(){this.init()}};class f{constructor(t,e,n,r){this.language=t,this.months=e,this.monthsAbbr=n,this.days=r,this.rtl=!1,this.ymd=!1,this.yearSuffix=""}get language(){return this._language}set language(t){if("string"!=typeof t)throw new TypeError("Language must be a string");this._language=t}get months(){return this._months}set months(t){if(12!==t.length)throw new RangeError(`There must be 12 months for ${this.language} language`);this._months=t}get monthsAbbr(){return this._monthsAbbr}set monthsAbbr(t){if(12!==t.length)throw new RangeError(`There must be 12 abbreviated months for ${this.language} language`);this._monthsAbbr=t}get days(){return this._days}set days(t){if(7!==t.length)throw new RangeError(`There must be 7 days for ${this.language} language`);this._days=t}}var h=new f("Afrikaans",["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"],["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],["So.","Ma.","Di.","Wo.","Do.","Vr.","Sa."]);const m=new f("Arabic",["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوڤمبر","ديسمبر"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوڤمبر","ديسمبر"],["أحد","إثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"]);m.rtl=!0;var _=new f("Bulgarian",["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],["Ян","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Ное","Дек"],["Нд","Пн","Вт","Ср","Чт","Пт","Сб"]),v=new f("Bosnian",["Januar","Februar","Mart","April","Maj","Juni","Juli","Avgust","Septembar","Oktobar","Novembar","Decembar"],["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],["Ned","Pon","Uto","Sri","Čet","Pet","Sub"]),g=new f("Catalan",["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],["Gen","Feb","Mar","Abr","Mai","Jun","Jul","Ago","Set","Oct","Nov","Des"],["Diu","Dil","Dmr","Dmc","Dij","Div","Dis"]),y=new f("Czech",["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],["led","úno","bře","dub","kvě","čer","čec","srp","zář","říj","lis","pro"],["ne","po","út","st","čt","pá","so"]),b=new f("Danish",["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],["Sø","Ma","Ti","On","To","Fr","Lø"]),w=new f("German",["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]),C=new f("Estonian",["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],["Jaan","Veebr","Märts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],["P","E","T","K","N","R","L"]),x=new f("Greek",["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάϊος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],["Ιαν","Φεβ","Μαρ","Απρ","Μαι","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σατ"]),k=new f("English",["January","February","March","April","May","June","July","August","September","October","November","December"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),T=new f("Spanish",["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],["Dom","Lun","Mar","Mié","Jue","Vie","Sab"]),D=new f("Persian",["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],["فرو","ارد","خرد","تیر","مرد","شهر","مهر","آبا","آذر","دی","بهم","اسف"],["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]),L=new f("Finish",["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],["su","ma","ti","ke","to","pe","la"]),S=new f("French",["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Août","Sep","Oct","Nov","Déc"],["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]),E=new f("Georgia",["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"]);const M=new f("Hebrew",["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],["ינו","פבר","מרץ","אפר","מאי","יונ","יול","אוג","ספט","אוק","נוב","דצמ"],["א","ב","ג","ד","ה","ו","ש"]);M.rtl=!0;var A=new f("Croatian",["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],["Ned","Pon","Uto","Sri","Čet","Pet","Sub"]),j=new f("Hungarian",["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],["Jan","Febr","Márc","Ápr","Máj","Jún","Júl","Aug","Szept","Okt","Nov","Dec"],["Vas","Hét","Ke","Sze","Csü","Pén","Szo"]),F=new f("Indonesian",["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],["Min","Sen","Sel","Rab","Kam","Jum","Sab"]),$=new f("Icelandic",["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],["Jan","Feb","Mars","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],["Sun","Mán","Þri","Mið","Fim","Fös","Lau"]),O=new f("Italian",["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],["Dom","Lun","Mar","Mer","Gio","Ven","Sab"]);const N=new f("Japanese",["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],["日","月","火","水","木","金","土"]);N.yearSuffix="年";const I=new f("Korean",["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],["일","월","화","수","목","금","토"]);I.yearSuffix="년";var P=new f("Luxembourgish",["Januar","Februar","Mäerz","Abrëll","Mäi","Juni","Juli","August","September","Oktober","November","Dezember"],["Jan","Feb","Mäe","Abr","Mäi","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["So.","Mé.","Dë.","Më.","Do.","Fr.","Sa."]);const R=new f("Lithuanian",["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"],["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"]);R.ymd=!0;var B=new f("Latvian",["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],["Sv","Pr","Ot","Tr","Ce","Pk","Se"]);const z=new f("Mongolia",["1 дүгээр сар","2 дугаар сар","3 дугаар сар","4 дүгээр сар","5 дугаар сар","6 дугаар сар","7 дугаар сар","8 дугаар сар","9 дүгээр сар","10 дугаар сар","11 дүгээр сар","12 дугаар сар"],["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],["Ня","Да","Мя","Лх","Пү","Ба","Бя"]);z.ymd=!0;var q=new f("Norwegian Bokmål",["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],["Sø","Ma","Ti","On","To","Fr","Lø"]),W=new f("Dutch",["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],["jan","feb","maa","apr","mei","jun","jul","aug","sep","okt","nov","dec"],["zo","ma","di","wo","do","vr","za"]),H=new f("Polish",["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],["Nd","Pn","Wt","Śr","Czw","Pt","Sob"]),U=new f("Brazilian",["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],["Dom","Seg","Ter","Qua","Qui","Sex","Sab"]),V=new f("Romanian",["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],["D","L","Ma","Mi","J","V","S"]),Y=new f("Russian",["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],["Янв","Февр","Март","Апр","Май","Июнь","Июль","Авг","Сент","Окт","Нояб","Дек"],["Вс","Пн","Вт","Ср","Чт","Пт","Сб"]),J=new f("Slovakian",["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"],["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],["ne","po","ut","st","št","pi","so"]),G=new f("Sloveian",["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],["Ned","Pon","Tor","Sre","Čet","Pet","Sob"]),X=new f("Serbian in Cyrillic script",["Јануар","Фебруар","Март","Април","Мај","Јун","Јул","Август","Септембар","Октобар","Новембар","Децембар"],["Јан","Феб","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Нов","Дец"],["Нед","Пон","Уто","Сре","Чет","Пет","Суб"]),Z=new f("Serbian",["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],["Ned","Pon","Uto","Sre","Čet","Pet","Sub"]),K=new f("Swedish",["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]),Q=new f("Thai",["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],["อา","จ","อ","พ","พฤ","ศ","ส"]),tt=new f("Turkish",["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"]),et=new f("Ukraine",["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],["Січ","Лют","Бер","Квіт","Трав","Чер","Лип","Серп","Вер","Жовт","Лист","Груд"],["Нд","Пн","Вт","Ср","Чт","Пт","Сб"]);const nt=new f("Urdu",["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","سپتمبر","اکتوبر","نومبر","دسمبر"],["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","سپتمبر","اکتوبر","نومبر","دسمبر"],["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"]);nt.rtl=!0;var rt=new f("Vientnamese",["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],["T 01","T 02","T 03","T 04","T 05","T 06","T 07","T 08","T 09","T 10","T 11","T 12"],["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"]);const it=new f("Chinese",["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],["日","一","二","三","四","五","六"]);it.yearSuffix="年";e.default={data:function(){return{format:"yyyy-MM-dd",selectedDate:"",language:k}},components:{Datepicker:p},mounted:function(){this.language=r[this.locale],this.selectedDate=new Date,this.selectedDate.setYear(this.defaultDate.slice(0,4)),this.selectedDate.setMonth(parseInt(this.defaultDate.slice(5,7))-1),this.selectedDate.setDate(this.defaultDate.slice(8,10))},props:{value:null,id:{type:String},defaultDate:{type:String},locale:{type:String}},methods:{}}},"3IRH":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"437+":function(t,e){t.exports={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["sweet-modal-tab",{active:this.active}]},[this._t("default")],2)},staticRenderFns:[]}},"4GCw":function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"br2 pa3 mb3 f6",class:[t.editMode?"bg-washed-yellow b--yellow ba":"bg-near-white"]},[n("div",{staticClass:"w-100 dt"},[n("div",{staticClass:"dtc"},[n("h3",{staticClass:"f6 ttu normal"},[t._v(t._s(t.$t("people.contact_info_title")))])]),t._v(" "),t.contactInformationData.length>0?n("div",{staticClass:"dtc",class:[t.dirltr?"tr":"tl"]},[t.editMode?t._e():n("a",{staticClass:"pointer",on:{click:function(e){t.editMode=!0}}},[t._v(t._s(t.$t("app.edit")))]),t._v(" "),t.editMode?n("a",{staticClass:"pointer",on:{click:function(e){t.editMode=!1,t.addMode=!1}}},[t._v(t._s(t.$t("app.done")))]):t._e()]):t._e()]),t._v(" "),0!=t.contactInformationData.length||t.addMode?t._e():n("p",{staticClass:"mb0"},[n("a",{staticClass:"pointer",on:{click:t.toggleAdd}},[t._v(t._s(t.$t("app.add")))])]),t._v(" "),t.contactInformationData.length>0?n("ul",[t._l(t.contactInformationData,function(e){return n("li",{staticClass:"mb2"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!contactInformation.edit"}],staticClass:"w-100 dt"},[n("div",{staticClass:"dtc"},[e.fontawesome_icon?n("i",{staticClass:"pr2 f6 light-silver",class:e.fontawesome_icon}):t._e(),t._v(" "),e.fontawesome_icon?t._e():n("i",{staticClass:"pr2 fa fa-address-card-o f6 gray"}),t._v(" "),e.protocol?n("a",{attrs:{href:e.protocol+e.data}},[t._v(t._s(e.data))]):t._e(),t._v(" "),e.protocol?t._e():n("a",{attrs:{href:e.data}},[t._v(t._s(e.data))])]),t._v(" "),t.editMode?n("div",{staticClass:"dtc",class:[t.dirltr?"tr":"tl"]},[n("i",{staticClass:"fa fa-pencil-square-o pointer pr2",on:{click:function(n){t.toggleEdit(e)}}}),t._v(" "),n("i",{staticClass:"fa fa-trash-o pointer",on:{click:function(n){t.trash(e)}}})]):t._e()]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"contactInformation.edit"}],staticClass:"w-100"},[n("form",{staticClass:"measure center"},[n("div",{staticClass:"mt3"},[n("label",{staticClass:"db fw6 lh-copy f6"},[t._v("\n "+t._s(t.$t("people.contact_info_form_content"))+"\n ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.updateForm.data,expression:"updateForm.data"}],staticClass:"pa2 db w-100",attrs:{type:"text"},domProps:{value:t.updateForm.data},on:{input:function(e){e.target.composing||t.$set(t.updateForm,"data",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"lh-copy mt3"},[n("a",{staticClass:"btn btn-primary",on:{click:function(n){n.preventDefault(),t.update(e)}}},[t._v(t._s(t.$t("app.save")))]),t._v(" "),n("a",{staticClass:"btn",on:{click:function(n){t.toggleEdit(e)}}},[t._v(t._s(t.$t("app.cancel")))])])])])])}),t._v(" "),t.editMode&&!t.addMode?n("li",[n("a",{staticClass:"pointer",on:{click:t.toggleAdd}},[t._v(t._s(t.$t("app.add")))])]):t._e()],2):t._e(),t._v(" "),t.addMode?n("div",[n("form",{staticClass:"measure center"},[n("div",{staticClass:"mt3"},[n("label",{staticClass:"db fw6 lh-copy f6"},[t._v("\n "+t._s(t.$t("people.contact_info_form_contact_type"))+" "),n("a",{staticClass:"fr normal",attrs:{href:"/settings/personalization",target:"_blank"}},[t._v(t._s(t.$t("people.contact_info_form_personalize")))])]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.createForm.contact_field_type_id,expression:"createForm.contact_field_type_id"}],staticClass:"db w-100 h2",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.createForm,"contact_field_type_id",e.target.multiple?n:n[0])}}},t._l(t.contactFieldTypes,function(e){return n("option",{domProps:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])}))]),t._v(" "),n("div",{staticClass:"mt3"},[n("label",{staticClass:"db fw6 lh-copy f6"},[t._v("\n "+t._s(t.$t("people.contact_info_form_content"))+"\n ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.data,expression:"createForm.data"}],staticClass:"pa2 db w-100",attrs:{type:"text"},domProps:{value:t.createForm.data},on:{input:function(e){e.target.composing||t.$set(t.createForm,"data",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"lh-copy mt3"},[n("a",{staticClass:"btn btn-primary",on:{click:function(e){return e.preventDefault(),t.store(e)}}},[t._v(t._s(t.$t("app.add")))]),t._v(" "),n("a",{staticClass:"btn",on:{click:function(e){t.addMode=!1}}},[t._v(t._s(t.$t("app.cancel")))])])])]):t._e()])},staticRenderFns:[]}},"4TwI":function(t,e,n){var r=n("VU/8")(n("0pae"),n("fkhF"),!1,function(t){n("YDK2")},"data-v-3374f9f4",null);t.exports=r.exports},"5V0h":function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("notifications",{attrs:{group:"main",position:"bottom right"}}),t._v(" "),t.isActive?t._e():n("a",{staticClass:"pointer",on:{click:t.showUpdate}},[t._v(t._s(t.$t("people.stay_in_touch_modal_title")))]),t._v(" "),t.isActive?n("div",[n("span",[n("span",{staticClass:"mr1 relative",staticStyle:{top:"3px"}},[n("svg",{staticStyle:{"-ms-transform":"rotate(360deg)","-webkit-transform":"rotate(360deg)",transform:"rotate(360deg)"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",width:"16",height:"16",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 16 16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M4.79 6.11c.25-.25.25-.67 0-.92-.32-.33-.48-.76-.48-1.19 0-.43.16-.86.48-1.19.25-.26.25-.67 0-.92a.613.613 0 0 0-.45-.19c-.16 0-.33.06-.45.19-.57.58-.85 1.35-.85 2.11 0 .76.29 1.53.85 2.11.25.25.66.25.9 0zM2.33.52a.651.651 0 0 0-.92 0C.48 1.48.01 2.74.01 3.99c0 1.26.47 2.52 1.4 3.48.25.26.66.26.91 0s.25-.68 0-.94c-.68-.7-1.02-1.62-1.02-2.54 0-.92.34-1.84 1.02-2.54a.66.66 0 0 0 .01-.93zm5.69 5.1A1.62 1.62 0 1 0 6.4 4c-.01.89.72 1.62 1.62 1.62zM14.59.53a.628.628 0 0 0-.91 0c-.25.26-.25.68 0 .94.68.7 1.02 1.62 1.02 2.54 0 .92-.34 1.83-1.02 2.54-.25.26-.25.68 0 .94a.651.651 0 0 0 .92 0c.93-.96 1.4-2.22 1.4-3.48A5.048 5.048 0 0 0 14.59.53zM8.02 6.92c-.41 0-.83-.1-1.2-.3l-3.15 8.37h1.49l.86-1h4l.84 1h1.49L9.21 6.62c-.38.2-.78.3-1.19.3zm-.01.48L9.02 11h-2l.99-3.6zm-1.99 5.59l1-1h2l1 1h-4zm5.19-11.1c-.25.25-.25.67 0 .92.32.33.48.76.48 1.19 0 .43-.16.86-.48 1.19-.25.26-.25.67 0 .92a.63.63 0 0 0 .9 0c.57-.58.85-1.35.85-2.11 0-.76-.28-1.53-.85-2.11a.634.634 0 0 0-.9 0z",fill:"#219653"}})])]),t._v("\n "+t._s(t.$tc("people.stay_in_touch_frequency",t.frequency,{count:t.frequency})))]),t._v(" "),n("a",{staticClass:"pointer",on:{click:t.showUpdate}},[t._v(t._s(t.$t("app.edit")))])]):t._e(),t._v(" "),n("sweet-modal",{ref:"updateModal",attrs:{"overlay-theme":"dark",title:t.$t("people.stay_in_touch_modal_title")}},[n("div",{staticClass:"tc mw-100"},[n("svg",{attrs:{viewBox:"0 0 423 74",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs"),t._v(" "),n("g",{attrs:{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"Group-6",transform:"translate(2.000000, 2.000000)"}},[n("g",{attrs:{id:"Group-3",transform:"translate(341.519872, 38.183805) rotate(17.000000) translate(-341.519872, -38.183805) translate(324.519872, 20.183805)"}},[n("path",{attrs:{d:"M6.93842857,23.5330169 L2.60464286,22.0075932 C0.662392857,21.3235932 0.394035714,18.6742373 2.15839286,17.6107119 L29.2497143,1.28379661 C31.0863214,0.176949153 33.3461071,1.82745763 32.86525,3.92461017 L27.3171786,28.1343051 C26.9868929,29.5761356 25.466,30.3931525 24.0896071,29.8684068 L13.4160357,25.8010169 L23.88925,10.3942373 L6.93842857,23.5330169",id:"Fill-45",fill:"#BBE2EE"}}),t._v(" "),n("path",{attrs:{d:"M6.93842857,23.5330169 L7.13939286,22.9576271 L2.80560714,21.4315932 C2.39639286,21.2863729 2.10132143,21.0404746 1.89671429,20.7353898 C1.69271429,20.4309153 1.58585714,20.0642034 1.58585714,19.6968814 C1.59071429,19.087322 1.86332143,18.5033898 2.47107143,18.1342373 L29.5617857,1.80671186 C29.8762857,1.61816949 30.1895714,1.53945763 30.4961786,1.53884746 C30.96975,1.53823729 31.4323929,1.73715254 31.7723929,2.06725424 C32.1117857,2.39918644 32.3230714,2.84522034 32.3236786,3.35471186 C32.3236786,3.49322034 32.3078929,3.63783051 32.2732857,3.7879322 L26.7258214,27.9970169 C26.5303214,28.8555254 25.7695714,29.4168814 24.9505357,29.4181017 C24.7374286,29.4181017 24.5206786,29.3802712 24.3045357,29.2978983 L14.35225,25.5050847 L24.3901429,10.7383729 C24.5589286,10.4906441 24.5231071,10.1562712 24.30575,9.9500339 C24.0883929,9.74440678 23.7544643,9.72732203 23.5182857,9.91098305 L6.56807143,23.0497627 L6.93842857,23.5330169 L7.13939286,22.9576271 L6.93842857,23.5330169 L7.30939286,24.0162712 L21.2275357,13.2278644 L12.9145357,25.4568814 C12.8095,25.6112542 12.7803571,25.804678 12.8368214,25.9834576 C12.8926786,26.1622373 13.02625,26.3050169 13.2005,26.3715254 L23.8740714,30.4389153 C24.2280357,30.5737627 24.5935357,30.6384407 24.9505357,30.6384407 C26.3190357,30.6390508 27.5800714,29.7 27.9091429,28.2709831 L33.4566071,4.06128814 C33.51125,3.82271186 33.5379643,3.5859661 33.5379643,3.35471186 C33.5385714,2.49559322 33.1730714,1.72922034 32.6163214,1.18983051 C32.0595714,0.649220339 31.3048929,0.319728814 30.4961786,0.318508475 C29.9758571,0.317898305 29.4355,0.459457627 28.9370357,0.760271186 L1.84632143,17.0871864 C0.8585,17.679661 0.366714286,18.7047458 0.371571429,19.6968814 C0.371571429,20.300339 0.545214286,20.9013559 0.88825,21.4157288 C1.23067857,21.9301017 1.74857143,22.3535593 2.40367857,22.5829831 L6.73807143,24.1090169 C6.93114286,24.1773559 7.14728571,24.1419661 7.30939286,24.0162712 L6.93842857,23.5330169",id:"Fill-46",fill:"#5CBBDE"}}),t._v(" "),n("polyline",{attrs:{id:"Fill-47",fill:"#BBE2EE",points:"12.2703571 34.9425763 13.4160357 25.8010169 23.88925 10.3942373 6.93842857 23.5330169 12.2703571 34.9425763"}}),t._v(" "),n("path",{attrs:{d:"M12.2703571,34.9425763 L12.8726429,35.0188475 L14.0001071,26.0231186 L24.3901429,10.7383729 C24.5589286,10.4906441 24.5231071,10.1562712 24.30575,9.9500339 C24.0883929,9.74440678 23.7544643,9.72732203 23.5182857,9.91098305 L6.56807143,23.0497627 C6.34282143,23.2242712 6.26814286,23.5342373 6.38896429,23.792339 L11.7202857,35.2018983 C11.8350357,35.4471864 12.0985357,35.5875254 12.3650714,35.5448136 C12.631,35.5027119 12.8386429,35.287322 12.8726429,35.0188475 L12.2703571,34.9425763 L12.8198214,34.6832542 L7.69553571,23.7172881 L21.2275357,13.2278644 L12.9145357,25.4568814 C12.8605,25.5362034 12.8252857,25.6289492 12.8131429,25.7247458 L11.6674643,34.8663051 L12.2703571,34.9425763 L12.8198214,34.6832542 L12.2703571,34.9425763",id:"Fill-48",fill:"#5CBBDE"}}),t._v(" "),n("polyline",{attrs:{id:"Fill-49",fill:"#BBE2EE",points:"12.2703571 34.9425763 18.1013571 27.5863729 13.4160357 25.8010169 12.2703571 34.9425763"}}),t._v(" "),n("path",{attrs:{d:"M12.2703571,34.9425763 L12.7451429,35.3227119 L18.5761429,27.9665085 C18.6975714,27.8133559 18.73825,27.6138305 18.6866429,27.424678 C18.6356429,27.2361356 18.4990357,27.0854237 18.3168929,27.0158644 L13.6309643,25.2305085 C13.4567143,25.164 13.2624286,25.1810847 13.10275,25.2781017 C12.9430714,25.3745085 12.8368214,25.5386441 12.8131429,25.7247458 L11.6674643,34.8663051 C11.6334643,35.1366102 11.7840357,35.3989831 12.0341786,35.5045424 C12.2843214,35.6107119 12.57575,35.535661 12.7451429,35.3227119 L12.2703571,34.9425763 L12.8726429,35.0188475 L13.9217857,26.6461017 L17.1080714,27.860339 L11.7949643,34.5624407 L12.2703571,34.9425763 L12.8726429,35.0188475 L12.2703571,34.9425763",id:"Fill-50",fill:"#5CBBDE"}})]),t._v(" "),n("g",{attrs:{id:"Group-2",transform:"translate(275.500000, 38.000000) rotate(-4.000000) translate(-275.500000, -38.000000) translate(256.000000, 20.000000)"}},[n("path",{attrs:{d:"M15.5451562,17.9652 C15.5451562,16.9386 16.3921875,16.1064 17.4342188,16.1064 L30.1275,16.1064 L30.1275,3.1872 C30.1275,1.8618 29.0367188,0.7872 27.69,0.7872 L5.143125,0.7872 C3.79640625,0.7872 2.705625,1.8618 2.705625,3.1872 L2.705625,22.3872 L1.22484375,27.4848 C0.90796875,28.5768 2.169375,29.451 3.1078125,28.791 L8.799375,24.7872 L15.5451562,24.7872 L15.5451562,17.9652",id:"Fill-97",fill:"#F5C894"}}),t._v(" "),n("path",{attrs:{d:"M15.5451562,17.9652 L16.1545312,17.9652 C16.1545312,17.2698 16.7273438,16.7076 17.4342188,16.7058 L30.1275,16.7058 C30.2859375,16.7058 30.444375,16.6422 30.5601563,16.5306 C30.6698437,16.4184 30.736875,16.2642 30.736875,16.1064 L30.736875,3.1872 C30.736875,1.53 29.371875,0.1878 27.69,0.1872 L5.143125,0.1872 C3.46125,0.1878 2.09625,1.53 2.09625,3.1872 L2.09625,22.3032 L0.63984375,27.3198 C0.59109375,27.4896 0.56671875,27.6606 0.56671875,27.828 C0.56671875,28.338 0.7921875,28.794 1.12734375,29.1084 C1.4625,29.4246 1.9134375,29.6184 2.4009375,29.6196 C2.76046875,29.6202 3.13828125,29.5092 3.46125,29.2794 L8.994375,25.3872 L15.5451562,25.3872 C15.7035937,25.3872 15.8620312,25.323 15.9717188,25.2114 C16.0875,25.0998 16.1545312,24.945 16.1545312,24.7872 L16.1545312,17.9652 L14.9357812,17.9652 L14.9357812,24.1872 L8.799375,24.1872 C8.67140625,24.1872 8.54953125,24.2262 8.4459375,24.2988 L2.754375,28.3026 C2.62640625,28.3896 2.51671875,28.4184 2.4009375,28.4196 C2.24859375,28.4202 2.09015625,28.3542 1.974375,28.2432 C1.8525,28.1304 1.78546875,27.99 1.78546875,27.828 C1.78546875,27.774 1.7915625,27.7152 1.8159375,27.6498 L3.290625,22.5516 C3.30890625,22.4976 3.315,22.443 3.315,22.3872 L3.315,3.1872 C3.32109375,2.1936 4.13765625,1.389 5.143125,1.3872 L27.69,1.3872 C28.7015625,1.389 29.518125,2.1936 29.518125,3.1872 L29.518125,15.5058 L17.4342188,15.5064 C16.0509375,15.5064 14.9357812,16.6068 14.9357812,17.9652 L15.5451562,17.9652",id:"Fill-98",fill:"#E5742B"}}),t._v(" "),n("path",{attrs:{d:"M34.9842187,16.1064 L17.4342188,16.1064 C16.3921875,16.1064 15.5451562,16.9386 15.5451562,17.9652 L15.5451562,31.047 C15.5451562,32.0736 16.3921875,32.9058 17.4342188,32.9058 L32.6076562,32.9058 L36.001875,34.9116 C36.9585937,35.4756 38.1164062,34.5876 37.7934375,33.5382 L36.8732812,30.5058 L36.8732812,17.9652 C36.8732812,16.9386 36.02625,16.1064 34.9842187,16.1064",id:"Fill-99",fill:"#BBE2EE"}}),t._v(" "),n("path",{attrs:{d:"M34.9842188,16.1064 L34.9842188,15.5064 L17.4342188,15.5064 C16.0509375,15.5064 14.9357812,16.6068 14.9357812,17.9652 L14.9357812,31.047 C14.9357812,32.4054 16.0509375,33.5058 17.4342188,33.5058 L32.4370313,33.5058 L35.685,35.4264 C35.9835937,35.6022 36.3126562,35.6874 36.6295313,35.6868 C37.123125,35.6862 37.5740625,35.4888 37.903125,35.1708 C38.2382813,34.8534 38.4576563,34.3998 38.4576563,33.894 C38.4576563,33.7206 38.4332812,33.5424 38.3784375,33.366 L37.4826563,30.417 L37.4826563,17.9652 C37.4826563,16.6068 36.3614063,15.5064 34.9842188,15.5064 L34.9842188,16.7058 C35.6910937,16.7076 36.2639063,17.2698 36.2639063,17.9652 L36.2639063,30.5058 C36.2639063,30.5622 36.27,30.624 36.2882812,30.678 L37.2145312,33.7104 C37.2328125,33.7764 37.2389063,33.837 37.2389063,33.894 C37.2389063,34.0542 37.171875,34.197 37.0560937,34.3098 C36.9403125,34.422 36.781875,34.488 36.6295313,34.4868 C36.5259375,34.4862 36.4284375,34.4634 36.3126562,34.3974 L32.9184375,32.3916 C32.8270313,32.3358 32.7173438,32.3058 32.6076563,32.3058 L17.4342188,32.3058 C16.7273438,32.3046 16.1545313,31.7418 16.1545313,31.047 L16.1545313,17.9652 C16.1545313,17.2698 16.7273438,16.7076 17.4342188,16.7058 L34.9842188,16.7058 L34.9842188,16.1064",id:"Fill-100",fill:"#5CBBDE"}}),t._v(" "),n("path",{attrs:{d:"M22.1446875,24.3966 C22.1446875,25.059 21.59625,25.5966 20.9259375,25.5966 C20.2495313,25.5966 19.7071875,25.059 19.7071875,24.3966 C19.7071875,23.7336 20.2495313,23.1966 20.9259375,23.1966 C21.59625,23.1966 22.1446875,23.7336 22.1446875,24.3966",id:"Fill-101",fill:"#FFFFFE"}}),t._v(" "),n("path",{attrs:{d:"M27.6290625,24.3966 C27.6290625,25.059 27.080625,25.5966 26.4103125,25.5966 C25.7339063,25.5966 25.1915625,25.059 25.1915625,24.3966 C25.1915625,23.7336 25.7339063,23.1966 26.4103125,23.1966 C27.080625,23.1966 27.6290625,23.7336 27.6290625,24.3966",id:"Fill-102",fill:"#FFFFFE"}}),t._v(" "),n("path",{attrs:{d:"M33.1134375,24.3966 C33.1134375,25.059 32.565,25.5966 31.8946875,25.5966 C31.2182813,25.5966 30.6759375,25.059 30.6759375,24.3966 C30.6759375,23.7336 31.2182813,23.1966 31.8946875,23.1966 C32.565,23.1966 33.1134375,23.7336 33.1134375,24.3966",id:"Fill-103",fill:"#FFFFFE"}})]),t._v(" "),n("g",{attrs:{id:"Group",transform:"translate(120.210360, 37.580603) rotate(-14.000000) translate(-120.210360, -37.580603) translate(107.210360, 18.580603)"}},[n("path",{attrs:{d:"M22.6586977,37.0813651 L3.30986047,37.0813651 C1.97418605,37.0813651 0.891255814,36.0010794 0.891255814,34.6686667 L0.891255814,3.3035873 C0.891255814,1.9711746 1.97418605,0.890888889 3.30986047,0.890888889 L22.6586977,0.890888889 C23.9943721,0.890888889 25.0773023,1.9711746 25.0773023,3.3035873 L25.0773023,34.6686667 C25.0773023,36.0010794 23.9943721,37.0813651 22.6586977,37.0813651",id:"Fill-130",fill:"#FCE499"}}),t._v(" "),n("path",{attrs:{d:"M22.6586977,37.0813651 L22.6586977,36.4781905 L3.30986047,36.4781905 C2.30795349,36.476381 1.49772093,35.6675238 1.49590698,34.6686667 L1.49590698,3.3035873 C1.49772093,2.30412698 2.30795349,1.49587302 3.30986047,1.49406349 L22.6586977,1.49406349 C23.66,1.49587302 24.4708372,2.30412698 24.4726512,3.3035873 L24.4726512,34.6686667 C24.4708372,35.6675238 23.66,36.476381 22.6586977,36.4781905 L22.6586977,37.6845397 C24.3287442,37.6839365 25.6813488,36.3340317 25.6819535,34.6686667 L25.6819535,3.3035873 C25.6813488,1.63761905 24.3287442,0.287714286 22.6586977,0.287714286 L3.30986047,0.287714286 C1.63981395,0.287714286 0.287209302,1.63761905 0.286604651,3.3035873 L0.286604651,34.6686667 C0.287209302,36.3340317 1.63981395,37.6839365 3.30986047,37.6845397 L22.6586977,37.6845397 L22.6586977,37.0813651",id:"Fill-131",fill:"#F5BB27"}}),t._v(" "),n("path",{attrs:{d:"M5.72846512,26.223619 L5.72846512,6.92203175 C5.72846512,6.25612698 6.26962791,5.71568254 6.93776744,5.71568254 L19.0307907,5.71568254 C19.6989302,5.71568254 20.240093,6.25612698 20.240093,6.92203175 L20.240093,26.223619 C20.240093,26.890127 19.6989302,27.4299683 19.0307907,27.4299683 L6.93776744,27.4299683 C6.26962791,27.4299683 5.72846512,26.890127 5.72846512,26.223619",id:"Fill-132",fill:"#BBE2EE"}}),t._v(" "),n("path",{attrs:{d:"M5.72846512,26.223619 L6.33311628,26.223619 L6.33311628,6.92203175 C6.33372093,6.58907937 6.604,6.31946032 6.93776744,6.31885714 L19.0307907,6.31885714 C19.3645581,6.31946032 19.6348372,6.58907937 19.6354419,6.92203175 L19.6354419,26.223619 C19.6348372,26.5565714 19.3645581,26.8261905 19.0307907,26.8267937 L6.93776744,26.8267937 C6.604,26.8261905 6.33372093,26.5565714 6.33311628,26.223619 L5.12381395,26.223619 C5.1244186,27.2230794 5.93586047,28.0331429 6.93776744,28.0331429 L19.0307907,28.0331429 C20.0326977,28.0331429 20.8441395,27.2230794 20.8447442,26.223619 L20.8447442,6.92203175 C20.8441395,5.92257143 20.0326977,5.11311111 19.0307907,5.11250794 L6.93776744,5.11250794 C5.93586047,5.11311111 5.1244186,5.92257143 5.12381395,6.92203175 L5.12381395,26.223619 L5.72846512,26.223619",id:"Fill-133",fill:"#5CBBDE"}}),t._v(" "),n("path",{attrs:{d:"M16.0075349,33.3615873 L9.96102326,33.3615873 C9.29288372,33.3615873 8.75172093,32.8211429 8.75172093,32.1552381 C8.75172093,31.4887302 9.29288372,30.9488889 9.96102326,30.9488889 L16.0075349,30.9488889 C16.6750698,30.9488889 17.2168372,31.4887302 17.2168372,32.1552381 C17.2168372,32.8211429 16.6750698,33.3615873 16.0075349,33.3615873",id:"Fill-134",fill:"#BBE2EE"}}),t._v(" "),n("path",{attrs:{d:"M16.0075349,33.3615873 L16.0075349,32.7584127 L9.96102326,32.7584127 C9.62725581,32.7578095 9.35697674,32.4881905 9.35637209,32.1552381 C9.35697674,31.8222857 9.62725581,31.5526667 9.96102326,31.5520635 L16.0075349,31.5520635 C16.3406977,31.5526667 16.6115814,31.8222857 16.612186,32.1552381 C16.6115814,32.4881905 16.3406977,32.7578095 16.0075349,32.7584127 L16.0075349,33.9647619 C17.0094419,33.9641587 17.8208837,33.1546984 17.8214884,32.1552381 C17.8208837,31.1557778 17.0094419,30.3463175 16.0075349,30.3457143 L9.96102326,30.3457143 C8.95851163,30.3463175 8.14706977,31.1557778 8.14706977,32.1552381 C8.14706977,33.1546984 8.95851163,33.9641587 9.96102326,33.9647619 L16.0075349,33.9647619 L16.0075349,33.3615873",id:"Fill-135",fill:"#5CBBDE"}})]),t._v(" "),n("g",{attrs:{id:"Group-4",transform:"translate(195.373740, 35.038750) rotate(6.000000) translate(-195.373740, -35.038750) translate(174.873740, 16.038750)"}},[n("path",{attrs:{d:"M38.673403,30.1261587 L31.5039104,20.0615873 C31.0455672,19.4186032 30.2977761,19.0355873 29.5004179,19.0355873 L25.1580896,19.0355873 L25.1580896,15.4165397 C25.1580896,14.7500317 24.609791,14.2101905 23.934209,14.2101905 C23.2580149,14.2101905 22.7103284,14.7500317 22.7103284,15.4165397 L22.7103284,19.0355873 L18.8098209,19.0355873 L18.8098209,15.4165397 C18.8098209,14.7500317 18.2615224,14.2101905 17.5859403,14.2101905 C16.9097463,14.2101905 16.3620597,14.7500317 16.3620597,15.4165397 L16.3620597,19.0355873 L12.0191194,19.0355873 C11.2217612,19.0355873 10.4745821,19.4186032 10.0162388,20.0615873 L2.84613433,30.1261587 C2.55668657,30.5326984 2.40186567,31.0164444 2.40186567,31.5128571 L2.40186567,34.718127 C2.40186567,36.0505397 3.49785075,37.1308254 4.84962687,37.1308254 L36.6705224,37.1308254 C38.0222985,37.1308254 39.1182836,36.0505397 39.1182836,34.718127 L39.1182836,31.5128571 C39.1182836,31.0164444 38.9628507,30.5326984 38.673403,30.1261587",id:"Fill-186",fill:"#BBE2EE"}}),t._v(" "),n("path",{attrs:{d:"M38.673403,30.1261587 L39.1745821,29.7799365 L32.0044776,19.7147619 C31.4317015,18.9107302 30.4972687,18.4324127 29.5004179,18.4324127 L25.1580896,18.4324127 L25.1580896,19.0355873 L25.7700299,19.0355873 L25.7700299,15.4165397 C25.7694179,14.4164762 24.948194,13.6070159 23.934209,13.6070159 C22.9196119,13.6070159 22.0983881,14.4164762 22.0983881,15.4165397 L22.0983881,19.0355873 L22.7103284,19.0355873 L22.7103284,18.4324127 L18.8098209,18.4324127 L18.8098209,19.0355873 L19.4217612,19.0355873 L19.4217612,15.4165397 C19.4211493,14.4164762 18.5999254,13.6070159 17.5859403,13.6070159 C16.5713433,13.6070159 15.7501194,14.4164762 15.7501194,15.4165397 L15.7501194,19.0355873 L16.3620597,19.0355873 L16.3620597,18.4324127 L12.0191194,18.4324127 C11.0222687,18.4324127 10.0878358,18.9107302 9.5150597,19.7153651 L2.34556716,29.7799365 C1.98391045,30.2872063 1.78992537,30.8927937 1.78992537,31.5128571 L1.78992537,34.718127 C1.78992537,36.3840952 3.15944776,37.7333968 4.84962687,37.734 L36.6705224,37.734 C38.3607015,37.7333968 39.7296119,36.3840952 39.7302239,34.718127 L39.7302239,31.5128571 C39.7302239,30.8927937 39.5362388,30.2872063 39.1745821,29.7799365 L38.673403,30.1261587 L38.1728358,30.4729841 C38.3894627,30.7775873 38.5063433,31.1406984 38.5063433,31.5128571 L38.5063433,34.718127 C38.5045075,35.7169841 37.6838955,36.5258413 36.6705224,36.5276508 L4.84962687,36.5276508 C3.83564179,36.5258413 3.01564179,35.7169841 3.01380597,34.718127 L3.01380597,31.5128571 C3.01380597,31.1406984 3.13007463,30.7775873 3.34670149,30.4729841 L10.516806,20.4084127 C10.8607164,19.925873 11.4212537,19.6387619 12.0191194,19.6387619 L16.3620597,19.6387619 C16.523,19.6387619 16.6802687,19.5742222 16.7947015,19.4620317 C16.9085224,19.3498413 16.974,19.1942222 16.974,19.0355873 L16.974,15.4165397 C16.9746119,15.0835873 17.2481493,14.8139683 17.5859403,14.8133651 C17.9231194,14.8139683 18.1972687,15.0835873 18.1978806,15.4165397 L18.1978806,19.0355873 C18.1978806,19.1942222 18.2627463,19.3498413 18.3765672,19.4620317 C18.491,19.5742222 18.6482687,19.6387619 18.8098209,19.6387619 L22.7103284,19.6387619 C22.8712687,19.6387619 23.0291493,19.5742222 23.1429701,19.4620317 C23.256791,19.3498413 23.3222687,19.1942222 23.3222687,19.0355873 L23.3222687,15.4165397 C23.3228806,15.0835873 23.5964179,14.8139683 23.934209,14.8133651 C24.2713881,14.8139683 24.5455373,15.0835873 24.5461493,15.4165397 L24.5461493,19.0355873 C24.5461493,19.1942222 24.6110149,19.3498413 24.7248358,19.4620317 C24.8392687,19.5742222 24.9965373,19.6387619 25.1580896,19.6387619 L29.5004179,19.6387619 C30.0982836,19.6387619 30.6594328,19.925873 31.0027313,20.4084127 L38.1728358,30.4729841 L38.673403,30.1261587",id:"Fill-187",fill:"#5CBBDE"}}),t._v(" "),n("path",{attrs:{d:"M40.3360448,10.8794603 C40.3360448,10.8794603 41.2612985,0.940349206 20.7600746,0.940349206 L20.7594627,0.970507937 L20.7594627,0.940349206 C0.314537313,0.940349206 1.18349254,10.8794603 1.18349254,10.8794603 L1.18349254,13.148 C1.18349254,13.7348889 1.78870149,14.2101905 2.53465672,14.2101905 L7.93808955,14.2101905 C8.68404478,14.2101905 9.28864179,13.7348889 9.28864179,13.148 L9.28864179,8.96980952 C9.28864179,8.96980952 13.919806,7.45765079 20.7594627,7.45765079 C27.5997313,7.45765079 32.2308955,8.96980952 32.2308955,8.96980952 L32.2308955,13.148 C32.2308955,13.7348889 32.8354925,14.2101905 33.5820597,14.2101905 L38.9848806,14.2101905 C39.7314478,14.2101905 40.3360448,13.7348889 40.3360448,13.148 L40.3360448,10.8794603",id:"Fill-188",fill:"#BBE2EE"}}),t._v(" "),n("path",{attrs:{d:"M40.3360448,10.8794603 L40.9455373,10.9343492 C40.9467612,10.9174603 40.9541045,10.8312063 40.9541045,10.6864444 C40.9541045,10.2847302 40.8984179,9.4312381 40.5012687,8.37025397 C39.9089104,6.77847619 38.5247015,4.73190476 35.5108955,3.12866667 C32.4970896,1.52180952 27.8787761,0.337777778 20.7600746,0.337174603 C20.427791,0.337174603 20.1554776,0.60015873 20.1487463,0.92768254 L20.1481343,0.95784127 L20.7594627,0.970507937 L21.371403,0.963873016 L21.371403,0.933714286 C21.3677313,0.602571429 21.0954179,0.337174603 20.7594627,0.337174603 C16.0022388,0.337174603 12.3642537,0.869174603 9.57319403,1.7027619 C5.38752239,2.94952381 3.10008955,4.89657143 1.89456716,6.70247619 C0.687208955,8.50657143 0.566044776,10.1297143 0.566044776,10.705746 C0.566044776,10.8372381 0.572776119,10.9156508 0.574,10.9319365 C0.601537313,11.2437778 0.865895522,11.4826349 1.18349254,11.4826349 L1.18349254,10.8794603 L1.06355224,10.2883492 C0.777164179,10.3444444 0.571552239,10.591746 0.571552239,10.8794603 L0.571552239,13.148 C0.570940299,13.652254 0.836522388,14.0901587 1.19756716,14.3706349 C1.5610597,14.6553333 2.02980597,14.8127619 2.53465672,14.8133651 L7.93808955,14.8133651 C8.4429403,14.8127619 8.91107463,14.6553333 9.27456716,14.3706349 C9.63622388,14.0901587 9.90119403,13.652254 9.90058209,13.148 L9.90058209,8.96980952 L9.28864179,8.96980952 L9.48140299,9.5428254 L9.52668657,9.52834921 C10.0186866,9.37453968 14.4332239,8.06022222 20.7594627,8.0608254 C24.1337015,8.0608254 26.9645373,8.43419048 28.946,8.80634921 C29.9367313,8.99212698 30.7151194,9.17790476 31.2432239,9.31663492 C31.5069701,9.386 31.7082985,9.44330159 31.8429254,9.48250794 C31.9096269,9.5024127 31.959806,9.51809524 31.9928507,9.52834921 L32.0381343,9.5428254 L32.2308955,8.96980952 L31.6189552,8.96980952 L31.6189552,13.148 C31.6183433,13.652254 31.8839254,14.0901587 32.2449701,14.3706349 C32.6084627,14.6553333 33.076597,14.8127619 33.5820597,14.8133651 L38.9848806,14.8133651 C39.4903433,14.8127619 39.9584776,14.6553333 40.3219701,14.3706349 C40.6830149,14.0901587 40.948597,13.652254 40.9479851,13.148 L40.9479851,10.8794603 C40.9479851,10.591746 40.7423731,10.3444444 40.4559851,10.2883492 L40.3360448,10.8794603 L40.3360448,11.4826349 C40.651806,11.4826349 40.9167761,11.244381 40.9455373,10.9343492 L40.3360448,10.8794603 L40.3360448,10.2762857 C40.0221194,10.2762857 39.7577612,10.512127 39.7271642,10.8203492 C39.6959552,11.1279683 39.9082985,11.410254 40.2161045,11.4711746 L40.3360448,10.8794603 L39.7241045,10.8794603 L39.7241045,13.148 C39.7234925,13.2300317 39.6867761,13.3235238 39.5588806,13.4272698 C39.4334328,13.5273968 39.2259851,13.607619 38.9848806,13.6070159 L33.5820597,13.6070159 C33.3403433,13.607619 33.1335075,13.5273968 33.0080597,13.4272698 C32.8801642,13.3235238 32.8434478,13.2306349 32.8428358,13.148 L32.8428358,8.96980952 C32.8428358,8.7092381 32.6739403,8.47942857 32.4230448,8.39739683 C32.380209,8.38412698 27.6915224,6.85507937 20.7594627,6.85447619 C13.8280149,6.85507937 9.13932836,8.38412698 9.09649254,8.39739683 C8.84559701,8.47942857 8.67670149,8.7092381 8.67670149,8.96980952 L8.67670149,13.148 C8.67608955,13.2306349 8.63937313,13.3235238 8.51147761,13.4272698 C8.38602985,13.5273968 8.17919403,13.607619 7.93808955,13.6070159 L2.53465672,13.6070159 C2.29355224,13.607619 2.08610448,13.5273968 1.96065672,13.4272698 C1.83276119,13.3235238 1.79604478,13.2300317 1.79543284,13.148 L1.79543284,10.8794603 L1.18349254,10.8794603 L1.30343284,11.4711746 L1.30404478,11.4711746 C1.61185075,11.410254 1.82358209,11.1279683 1.79298507,10.8203492 C1.76177612,10.512127 1.49741791,10.2762857 1.18349254,10.2762857 L1.18349254,10.8794603 L1.79298507,10.8275873 L1.74770149,10.8312063 L1.79359701,10.8281905 L1.79298507,10.8275873 L1.74770149,10.8312063 L1.79359701,10.8281905 C1.79237313,10.8185397 1.78992537,10.7763175 1.78992537,10.705746 C1.78992537,10.4300952 1.82908955,9.7255873 2.16259701,8.82987302 C2.66683582,7.48660317 3.80932836,5.70301587 6.57591045,4.2107619 C9.34310448,2.72152381 13.7613134,1.54292063 20.7594627,1.54352381 L20.7594627,0.940349206 L20.1475224,0.946984127 L20.1475224,0.977142857 C20.151194,1.30647619 20.4222836,1.57187302 20.756403,1.57368254 C21.0911343,1.57488889 21.3646716,1.31190476 21.371403,0.982571429 L21.3720149,0.953015873 L20.7600746,0.940349206 L20.7600746,1.54352381 C25.4151045,1.54292063 28.9313134,2.06165079 31.5767313,2.84577778 C35.5463881,4.02619048 37.5492687,5.7832381 38.5950746,7.32796825 C39.6384328,8.87390476 39.7302239,10.2479365 39.7302239,10.6864444 L39.7277761,10.8010476 L39.7265522,10.8245714 L39.7338955,10.8251746 L39.7265522,10.8245714 L39.7338955,10.8251746 L39.7265522,10.8245714 L40.3360448,10.8794603 L40.3360448,10.2762857 L40.3360448,10.8794603",id:"Fill-189",fill:"#5CBBDE"}}),t._v(" "),n("path",{attrs:{d:"M26.8794776,25.6705079 C26.8794776,27.335873 24.1398209,28.686381 20.7600746,28.686381 C17.3803284,28.686381 14.6406716,27.335873 14.6406716,25.6705079 C14.6406716,24.0051429 17.3803284,22.6546349 20.7600746,22.6546349 C24.1398209,22.6546349 26.8794776,24.0051429 26.8794776,25.6705079",id:"Fill-190",fill:"#FFFFFE"}}),t._v(" "),n("path",{attrs:{d:"M26.8794776,25.6705079 L26.2675373,25.6705079 C26.2663134,25.919619 26.1702388,26.1729524 25.9309701,26.4546349 C25.5760448,26.8744444 24.8906716,27.3008889 23.9856119,27.5994603 C23.0811642,27.9010476 21.9649851,28.0832063 20.7600746,28.0832063 C19.1531194,28.0844127 17.7028209,27.7568889 16.7065821,27.2634921 C16.2078507,27.0186032 15.826,26.7333016 15.5885672,26.4546349 C15.3492985,26.1729524 15.2532239,25.919619 15.2526119,25.6705079 C15.2532239,25.4213968 15.3492985,25.1680635 15.5885672,24.886381 C15.9434925,24.4665714 16.6288657,24.040127 17.5345373,23.7409524 C18.4383731,23.4399683 19.5545522,23.2578095 20.7600746,23.2578095 C22.3664179,23.256 23.8167164,23.584127 24.8135672,24.0775238 C25.3116866,24.3224127 25.6935373,24.6077143 25.9309701,24.886381 C26.1702388,25.1680635 26.2663134,25.4213968 26.2675373,25.6705079 L27.4914179,25.6705079 C27.4920299,25.0866349 27.2454179,24.5467937 26.865403,24.1070794 C26.2920149,23.4441905 25.4255075,22.9501905 24.3772537,22.5985397 C23.3277761,22.2493016 22.089209,22.0520635 20.7600746,22.0514603 C18.9866716,22.0532698 17.3772687,22.4000952 16.1588955,22.9984444 C15.5506269,23.2994286 15.0359851,23.663746 14.6541343,24.1070794 C14.2741194,24.5467937 14.0275075,25.0866349 14.0287313,25.6705079 C14.0275075,26.254381 14.2741194,26.7942222 14.6541343,27.2339365 C15.2281343,27.8968254 16.0946418,28.3908254 17.1428955,28.7424762 C18.1917612,29.0917143 19.4303284,29.2889524 20.7600746,29.2895556 C22.5328657,29.287746 24.1422687,28.9403175 25.3606418,28.3425714 C25.9695224,28.0415873 26.4841642,27.6772698 26.865403,27.2339365 C27.2454179,26.7942222 27.4920299,26.254381 27.4914179,25.6705079 L26.8794776,25.6705079",id:"Fill-191",fill:"#CCD4D3"}})]),t._v(" "),n("g",{attrs:{id:"Group-5",transform:"translate(67.000000, 43.000000)",stroke:"#F5BB27","stroke-linecap":"square","stroke-width":"3"}},[n("path",{attrs:{d:"M0.277777778,5.5 L9.73854798,5.5",id:"Line"}}),t._v(" "),n("path",{attrs:{d:"M5.5,10.6764706 L5.5,0.323529412",id:"Line"}})]),t._v(" "),n("g",{attrs:{id:"Group-5",transform:"translate(42.000000, 2.000000)",stroke:"#A2B88C","stroke-linecap":"square","stroke-width":"3"}},[n("path",{attrs:{d:"M0.277777778,5.5 L9.73854798,5.5",id:"Line"}}),t._v(" "),n("path",{attrs:{d:"M5.5,10.6764706 L5.5,0.323529412",id:"Line"}})]),t._v(" "),n("g",{attrs:{id:"Group-5",transform:"translate(22.000000, 51.000000)",stroke:"#E5742B","stroke-linecap":"square","stroke-width":"3"}},[n("path",{attrs:{d:"M0.277777778,5.5 L9.73854798,5.5",id:"Line"}}),t._v(" "),n("path",{attrs:{d:"M5.5,10.6764706 L5.5,0.323529412",id:"Line"}})]),t._v(" "),n("g",{attrs:{id:"Group-5",transform:"translate(0.000000, 17.000000)",stroke:"#5CBBDE","stroke-linecap":"square","stroke-width":"3"}},[n("path",{attrs:{d:"M0.277777778,5.5 L9.73854798,5.5",id:"Line"}}),t._v(" "),n("path",{attrs:{d:"M5.5,10.6764706 L5.5,0.323529412",id:"Line"}})]),t._v(" "),n("g",{attrs:{id:"Group-5",transform:"translate(414.000000, 37.500000) scale(-1, -1) translate(-414.000000, -37.500000) translate(409.000000, 32.000000)",stroke:"#F5BB27","stroke-linecap":"square","stroke-width":"3"}},[n("path",{attrs:{d:"M0.277777778,5.5 L9.73854798,5.5",id:"Line"}}),t._v(" "),n("path",{attrs:{d:"M5.5,10.6764706 L5.5,0.323529412",id:"Line"}})]),t._v(" "),n("g",{attrs:{id:"Group-5",transform:"translate(386.000000, 5.500000) scale(-1, -1) translate(-386.000000, -5.500000) translate(381.000000, 0.000000)",stroke:"#A2B88C","stroke-linecap":"square","stroke-width":"3"}},[n("path",{attrs:{d:"M0.277777778,5.5 L9.73854798,5.5",id:"Line"}}),t._v(" "),n("path",{attrs:{d:"M5.5,10.6764706 L5.5,0.323529412",id:"Line"}})]),t._v(" "),n("g",{attrs:{id:"Group-5",transform:"translate(386.000000, 64.500000) scale(-1, -1) translate(-386.000000, -64.500000) translate(381.000000, 59.000000)",stroke:"#E5742B","stroke-linecap":"square","stroke-width":"3"}},[n("path",{attrs:{d:"M0.277777778,5.5 L9.73854798,5.5",id:"Line"}}),t._v(" "),n("path",{attrs:{d:"M5.5,10.6764706 L5.5,0.323529412",id:"Line"}})])])])])]),t._v(" "),n("form",{on:{submit:function(e){e.preventDefault(),t.update()}}},[n("div",{staticClass:"mb4"},[t.limited?n("div",{staticClass:"mt3 mb3 form-information-message br2"},[n("div",{staticClass:"pa3 flex"},[n("div",{staticClass:"mr3"},[n("svg",{attrs:{viewBox:"0 0 20 20"}},[n("g",{attrs:{"fill-rule":"evenodd"}},[n("circle",{attrs:{cx:"10",cy:"10",r:"9",fill:"currentColor"}}),n("path",{attrs:{d:"M10 0C4.486 0 0 4.486 0 10s4.486 10 10 10 10-4.486 10-10S15.514 0 10 0m0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8m1-5v-3a1 1 0 0 0-1-1H9a1 1 0 1 0 0 2v3a1 1 0 0 0 1 1h1a1 1 0 1 0 0-2m-1-5.9a1.1 1.1 0 1 0 0-2.2 1.1 1.1 0 0 0 0 2.2"}})])])]),t._v(" "),n("div",{},[t._v("\n "+t._s(t.$t("settings.personalisation_paid_upgrade"))+"\n ")])])]):t._e(),t._v(" "),n("p",{staticClass:"mt3 b mb3"},[t._v(t._s(t.$t("people.stay_in_touch_modal_desc",{firstname:t.contact.first_name})))]),t._v(" "),n("div",{staticClass:"mb2"},[n("toggle-button",{staticClass:"mr2",attrs:{sync:!0,labels:!0,value:t.isActive},on:{change:function(e){t.isActive=!t.isActive}}}),t._v(" "),n("div",{staticClass:"dib relative",staticStyle:{top:"-2px"}},[n("span",[t._v(t._s(t.$t("people.stay_in_touch_modal_label")))]),t._v(" "),n("div",{staticClass:"dib"},[n("form-input",{attrs:{value:t.frequency,"input-type":"number",id:"frequency",width:50,required:!0},model:{value:t.frequency,callback:function(e){t.frequency=e},expression:"frequency"}})],1),t._v(" "),n("span",[t._v(t._s(t.$tc("app.days",t.frequency)))])])],1),t._v(" "),""!=t.errorMessage?n("div",{staticClass:"form-error-message mb3"},[n("div",{staticClass:"pa2"},[n("p",{staticClass:"mb0"},[t._v(t._s(t.errorMessage))])])]):t._e()])]),t._v(" "),n("div",{staticClass:"relative"},[n("span",{staticClass:"fr"},[n("a",{staticClass:"btn",on:{click:function(e){t.closeModal()}}},[t._v(t._s(t.$t("app.cancel")))]),t._v(" "),n("a",{staticClass:"btn btn-primary",on:{click:function(e){t.update()}}},[t._v(t._s(t.$t("app.save")))])])])])],1)},staticRenderFns:[]}},"5VQ+":function(t,e,n){"use strict";var r=n("cGG2");t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},"5d/b":function(t,e,n){var r=n("xDyL");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n("rjj0")("37705fab",r,!0,{})},"5dRf":function(t,e,n){var r=n("Tup8");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n("rjj0")("84349d20",r,!0,{})},"5m3O":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={data:function(){return{clients:[],createForm:{errors:[],name:"",redirect:""},editForm:{errors:[],name:"",redirect:""},dirltr:!0}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.dirltr="ltr"==$("html").attr("dir"),this.getClients(),$("#modal-create-client").on("shown.bs.modal",function(){$("#create-client-name").focus()}),$("#modal-edit-client").on("shown.bs.modal",function(){$("#edit-client-name").focus()})},getClients:function(){var t=this;axios.get("/oauth/clients").then(function(e){t.clients=e.data})},showCreateClientForm:function(){$("#modal-create-client").modal("show")},store:function(){this.persistClient("post","/oauth/clients",this.createForm,"#modal-create-client")},edit:function(t){this.editForm.id=t.id,this.editForm.name=t.name,this.editForm.redirect=t.redirect,$("#modal-edit-client").modal("show")},update:function(){this.persistClient("put","/oauth/clients/"+this.editForm.id,this.editForm,"#modal-edit-client")},persistClient:function(t,e,n,i){var a=this;n.errors=[],axios[t](e,n).then(function(t){a.getClients(),n.name="",n.redirect="",n.errors=[],$(i).modal("hide")}).catch(function(t){"object"===r(t.response.data)?n.errors=_.flatten(_.toArray(t.response.data)):n.errors=["Something went wrong. Please try again."]})},destroy:function(t){var e=this;axios.delete("/oauth/clients/"+t.id).then(function(t){e.getClients()})}}}},"72za":function(t,e,n){var r,i,a,o;o=function(t,e){"use strict";var n=function(t){var e=!1,n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};function r(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function i(e){var n=this,r=!1;return t(this).one(a.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||a.triggerTransitionEnd(n)},e),this}var a={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");return e||(e=t.getAttribute("href")||"",e=/^#[a-z]/i.test(e)?e:null),e},reflow:function(t){new Function("bs","return bs")(t.offsetHeight)},triggerTransitionEnd:function(n){t(n).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},typeCheckConfig:function(t,e,n){for(var i in n)if(n.hasOwnProperty(i)){var a=n[i],o=e[i],s=void 0;if(s=o&&((l=o)[0]||l).nodeType?"element":r(o),!new RegExp(a).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+a+'".')}var l}};return e=function(){if(window.QUnit)return!1;var t=document.createElement("bootstrap");for(var e in n)if(void 0!==t.style[e])return{end:n[e]};return!1}(),t.fn.emulateTransitionEnd=i,a.supportsTransitionEnd()&&(t.event.special[a.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),a}(jQuery);e.exports=n},i=[e,t],void 0===(a="function"==typeof(r=o)?r.apply(e,i):r)||(t.exports=a)},"7GwW":function(t,e,n){"use strict";var r=n("cGG2"),i=n("21It"),a=n("DQCr"),o=n("oJlt"),s=n("GHBc"),l=n("FtD3"),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n("thJu");t.exports=function(t){return new Promise(function(e,u){var d=t.data,p=t.headers;r.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in f||s(t.url)||(f=new window.XDomainRequest,h="onload",m=!0,f.onprogress=function(){},f.ontimeout=function(){}),t.auth){var _=t.auth.username||"",v=t.auth.password||"";p.Authorization="Basic "+c(_+":"+v)}if(f.open(t.method.toUpperCase(),a(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f[h]=function(){if(f&&(4===f.readyState||m)&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?o(f.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:n,config:t,request:f};i(e,u,r),f=null}},f.onerror=function(){u(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){u(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var g=n("p1b6"),y=(t.withCredentials||s(t.url))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(p[t.xsrfHeaderName]=y)}if("setRequestHeader"in f&&r.forEach(p,function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete p[e]:f.setRequestHeader(e,t)}),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){f&&(f.abort(),u(t),f=null)}),void 0===d&&(d=null),f.send(d)})}},"7t+N":function(t,e,n){var r;!function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var a=[],o=n.document,s=Object.getPrototypeOf,l=a.slice,c=a.concat,u=a.push,d=a.indexOf,p={},f=p.toString,h=p.hasOwnProperty,m=h.toString,_=m.call(Object),v={},g=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function(t){return null!=t&&t===t.window},b={type:!0,src:!0,noModule:!0};function w(t,e,n){var r,i=(e=e||o).createElement("script");if(i.text=t,n)for(r in b)n[r]&&(i[r]=n[r]);e.head.appendChild(i).parentNode.removeChild(i)}function C(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?p[f.call(t)]||"object":typeof t}var x=function(t,e){return new x.fn.init(t,e)},k=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(t){var e=!!t&&"length"in t&&t.length,n=C(t);return!g(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}x.fn=x.prototype={jquery:"3.3.1",constructor:x,length:0,toArray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+N+")"+N+"*"),H=new RegExp("="+N+"*([^\\]'\"]*?)"+N+"*\\]","g"),U=new RegExp(R),V=new RegExp("^"+I+"$"),Y={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Q=new RegExp("\\\\([\\da-f]{1,6}"+N+"?|("+N+")|.)","ig"),tt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){p()},it=gt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{j.apply(E=F.call(w.childNodes),w.childNodes),E[w.childNodes.length].nodeType}catch(t){j={apply:E.length?function(t,e){A.apply(t,F.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function at(t,e,r,i){var a,s,c,u,d,h,v,g=e&&e.ownerDocument,C=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==C&&9!==C&&11!==C)return r;if(!i&&((e?e.ownerDocument||e:w)!==f&&p(e),e=e||f,m)){if(11!==C&&(d=Z.exec(t)))if(a=d[1]){if(9===C){if(!(c=e.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(g&&(c=g.getElementById(a))&&y(e,c)&&c.id===a)return r.push(c),r}else{if(d[2])return j.apply(r,e.getElementsByTagName(t)),r;if((a=d[3])&&n.getElementsByClassName&&e.getElementsByClassName)return j.apply(r,e.getElementsByClassName(a)),r}if(n.qsa&&!D[t+" "]&&(!_||!_.test(t))){if(1!==C)g=e,v=t;else if("object"!==e.nodeName.toLowerCase()){for((u=e.getAttribute("id"))?u=u.replace(et,nt):e.setAttribute("id",u=b),s=(h=o(t)).length;s--;)h[s]="#"+u+" "+vt(h[s]);v=h.join(","),g=K.test(t)&&mt(e.parentNode)||e}if(v)try{return j.apply(r,g.querySelectorAll(v)),r}catch(t){}finally{u===b&&e.removeAttribute("id")}}}return l(t.replace(z,"$1"),e,r,i)}function ot(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function st(t){return t[b]=!0,t}function lt(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function ut(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ft(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&it(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ht(t){return st(function(e){return e=+e,st(function(n,r){for(var i,a=t([],n.length,e),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=at.support={},a=at.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},p=at.setDocument=function(t){var e,i,o=t?t.ownerDocument||t:w;return o!==f&&9===o.nodeType&&o.documentElement?(h=(f=o).documentElement,m=!a(f),w!==f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",rt,!1):i.attachEvent&&i.attachEvent("onunload",rt)),n.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=lt(function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=X.test(f.getElementsByClassName),n.getById=lt(function(t){return h.appendChild(t).id=b,!f.getElementsByName||!f.getElementsByName(b).length}),n.getById?(r.filter.ID=function(t){var e=t.replace(Q,tt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(Q,tt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n,r,i,a=e.getElementById(t);if(a){if((n=a.getAttributeNode("id"))&&n.value===t)return[a];for(i=e.getElementsByName(t),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===t)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,a=e.getElementsByTagName(t);if("*"===t){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],_=[],(n.qsa=X.test(f.querySelectorAll))&&(lt(function(t){h.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]="+N+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||_.push("\\["+N+"*(?:value|"+O+")"),t.querySelectorAll("[id~="+b+"-]").length||_.push("~="),t.querySelectorAll(":checked").length||_.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||_.push(".#.+[+~]")}),lt(function(t){t.innerHTML="";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&_.push("name"+N+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&_.push(":enabled",":disabled"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),_.push(",.*:")})),(n.matchesSelector=X.test(g=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&<(function(t){n.disconnectedMatch=g.call(t,"*"),g.call(t,"[s!='']:x"),v.push("!=",R)}),_=_.length&&new RegExp(_.join("|")),v=v.length&&new RegExp(v.join("|")),e=X.test(h.compareDocumentPosition),y=e||X.test(h.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},L=e?function(t,e){if(t===e)return d=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===f||t.ownerDocument===w&&y(w,t)?-1:e===f||e.ownerDocument===w&&y(w,e)?1:u?$(u,t)-$(u,e):0:4&r?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,r=0,i=t.parentNode,a=e.parentNode,o=[t],s=[e];if(!i||!a)return t===f?-1:e===f?1:i?-1:a?1:u?$(u,t)-$(u,e):0;if(i===a)return ut(t,e);for(n=t;n=n.parentNode;)o.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?ut(o[r],s[r]):o[r]===w?-1:s[r]===w?1:0},f):f},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&p(t),e=e.replace(H,"='$1']"),n.matchesSelector&&m&&!D[e+" "]&&(!v||!v.test(e))&&(!_||!_.test(e)))try{var r=g.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return at(e,f,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!==f&&p(t),y(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!==f&&p(t);var i=r.attrHandle[e.toLowerCase()],a=i&&S.call(r.attrHandle,e.toLowerCase())?i(t,e,!m):void 0;return void 0!==a?a:n.attributes||!m?t.getAttribute(e):(a=t.getAttributeNode(e))&&a.specified?a.value:null},at.escape=function(t){return(t+"").replace(et,nt)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,r=[],i=0,a=0;if(d=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort(L),d){for(;e=t[a++];)e===t[a]&&(i=r.push(a));for(;i--;)t.splice(r[i],1)}return u=null,t},i=at.getText=function(t){var e,n="",r=0,a=t.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===a||4===a)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=at.selectors={cacheLength:50,createPseudo:st,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Q,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(Q,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&U.test(n)&&(e=o(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Q,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=k[t+" "];return e||(e=new RegExp("(^|"+N+")"+t+"("+N+"|$)"))&&k(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=at.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var a="nth"!==t.slice(0,3),o="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,p,f,h,m=a!==o?"nextSibling":"previousSibling",_=e.parentNode,v=s&&e.nodeName.toLowerCase(),g=!l&&!s,y=!1;if(_){if(a){for(;m;){for(p=e;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=m="only"===t&&!h&&"nextSibling"}return!0}if(h=[o?_.firstChild:_.lastChild],o&&g){for(y=(f=(c=(u=(d=(p=_)[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]||[])[0]===C&&c[1])&&c[2],p=f&&_.childNodes[f];p=++f&&p&&p[m]||(y=f=0)||h.pop();)if(1===p.nodeType&&++y&&p===e){u[t]=[C,f,y];break}}else if(g&&(y=f=(c=(u=(d=(p=e)[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]||[])[0]===C&&c[1]),!1===y)for(;(p=++f&&p&&p[m]||(y=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++y||(g&&((u=(d=p[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]=[C,y]),p!==e)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return i[b]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,n){for(var r,a=i(t,e),o=a.length;o--;)t[r=$(t,a[o])]=!(n[r]=a[o])}):function(t){return i(t,0,n)}):i}},pseudos:{not:st(function(t){var e=[],n=[],r=s(t.replace(z,"$1"));return r[b]?st(function(t,e,n,i){for(var a,o=r(t,null,i,[]),s=t.length;s--;)(a=o[s])&&(t[s]=!(e[s]=a))}):function(t,i,a){return e[0]=t,r(e,null,a,n),e[0]=null,!n.pop()}}),has:st(function(t){return function(e){return at(t,e).length>0}}),contains:st(function(t){return t=t.replace(Q,tt),function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}}),lang:st(function(t){return V.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(Q,tt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ft(!1),disabled:ft(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ht(function(){return[0]}),last:ht(function(t,e){return[e-1]}),eq:ht(function(t,e,n){return[n<0?n+e:n]}),even:ht(function(t,e){for(var n=0;n=0;)t.push(r);return t}),gt:ht(function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function bt(t,e,n,r,i){for(var a,o=[],s=0,l=t.length,c=null!=e;s-1&&(a[c]=!(o[c]=d))}}else v=bt(v===o?v.splice(h,v.length):v),i?i(null,o,v,l):j.apply(o,v)})}function Ct(t){for(var e,n,i,a=t.length,o=r.relative[t[0].type],s=o||r.relative[" "],l=o?1:0,u=gt(function(t){return t===e},s,!0),d=gt(function(t){return $(e,t)>-1},s,!0),p=[function(t,n,r){var i=!o&&(r||n!==c)||((e=n).nodeType?u(t,n,r):d(t,n,r));return e=null,i}];l1&&yt(p),l>1&&vt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(z,"$1"),n,l0,i=t.length>0,a=function(a,o,s,l,u){var d,h,_,v=0,g="0",y=a&&[],b=[],w=c,x=a||i&&r.find.TAG("*",u),k=C+=null==w?1:Math.random()||.1,T=x.length;for(u&&(c=o===f||o||u);g!==T&&null!=(d=x[g]);g++){if(i&&d){for(h=0,o||d.ownerDocument===f||(p(d),s=!m);_=t[h++];)if(_(d,o||f,s)){l.push(d);break}u&&(C=k)}n&&((d=!_&&d)&&v--,a&&y.push(d))}if(v+=g,n&&g!==v){for(h=0;_=e[h++];)_(y,b,o,s);if(a){if(v>0)for(;g--;)y[g]||b[g]||(b[g]=M.call(l));b=bt(b)}j.apply(l,b),u&&!a&&b.length>0&&v+e.length>1&&at.uniqueSort(l)}return u&&(C=k,c=w),y};return n?st(a):a}(a,i))).selector=t}return s},l=at.select=function(t,e,n,i){var a,l,c,u,d,p="function"==typeof t&&t,f=!i&&o(t=p.selector||t);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&m&&r.relative[l[1].type]){if(!(e=(r.find.ID(c.matches[0].replace(Q,tt),e)||[])[0]))return n;p&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(a=Y.needsContext.test(t)?0:l.length;a--&&(c=l[a],!r.relative[u=c.type]);)if((d=r.find[u])&&(i=d(c.matches[0].replace(Q,tt),K.test(l[0].type)&&mt(e.parentNode)||e))){if(l.splice(a,1),!(t=i.length&&vt(l)))return j.apply(n,i),n;break}}return(p||s(t,f))(i,e,!m,n,!e||K.test(t)&&mt(e.parentNode)||e),n},n.sortStable=b.split("").sort(L).join("")===b,n.detectDuplicates=!!d,p(),n.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))}),lt(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||ct("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&<(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ct("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ct(O,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),at}(n);x.find=D,x.expr=D.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=D.uniqueSort,x.text=D.getText,x.isXMLDoc=D.isXML,x.contains=D.contains,x.escapeSelector=D.escape;var L=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&x(t).is(n))break;r.push(t)}return r},S=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},E=x.expr.match.needsContext;function M(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(t,e,n){return g(e)?x.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?x.grep(t,function(t){return t===e!==n}):"string"!=typeof e?x.grep(t,function(t){return d.call(e,t)>-1!==n}):x.filter(e,t,n)}x.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?x.find.matchesSelector(r,t)?[r]:[]:x.find.matches(t,x.grep(e,function(t){return 1===t.nodeType}))},x.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(x(t).filter(function(){for(e=0;e1?x.uniqueSort(n):n},filter:function(t){return this.pushStack(j(this,t||[],!1))},not:function(t){return this.pushStack(j(this,t||[],!0))},is:function(t){return!!j(this,"string"==typeof t&&E.test(t)?x(t):t||[],!1).length}});var F,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||F,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:$.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:o,!0)),A.test(r[1])&&x.isPlainObject(e))for(r in e)g(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=o.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):g(t)?void 0!==n.ready?n.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,F=x(o);var O=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function I(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&x.find.matchesSelector(n,t))){a.push(n);break}return this.pushStack(a.length>1?x.uniqueSort(a):a)},index:function(t){return t?"string"==typeof t?d.call(x(t),this[0]):d.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return L(t,"parentNode")},parentsUntil:function(t,e,n){return L(t,"parentNode",n)},next:function(t){return I(t,"nextSibling")},prev:function(t){return I(t,"previousSibling")},nextAll:function(t){return L(t,"nextSibling")},prevAll:function(t){return L(t,"previousSibling")},nextUntil:function(t,e,n){return L(t,"nextSibling",n)},prevUntil:function(t,e,n){return L(t,"previousSibling",n)},siblings:function(t){return S((t.parentNode||{}).firstChild,t)},children:function(t){return S(t.firstChild)},contents:function(t){return M(t,"iframe")?t.contentDocument:(M(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},function(t,e){x.fn[t]=function(n,r){var i=x.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(N[t]||x.uniqueSort(i),O.test(t)&&i.reverse()),this.pushStack(i)}});var P=/[^\x20\t\r\n\f]+/g;function R(t){return t}function B(t){throw t}function z(t,e,n,r){var i;try{t&&g(i=t.promise)?i.call(t).done(e).fail(n):t&&g(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(P)||[],function(t,n){e[n]=!0}),e}(t):x.extend({},t);var e,n,r,i,a=[],o=[],s=-1,l=function(){for(i=i||t.once,r=e=!0;o.length;s=-1)for(n=o.shift();++s-1;)a.splice(n,1),n<=s&&s--}),this},has:function(t){return t?x.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||e||(a=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},x.extend({Deferred:function(t){var e=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return x.Deferred(function(n){x.each(e,function(e,r){var i=g(t[r[4]])&&t[r[4]];a[r[1]](function(){var t=i&&i.apply(this,arguments);t&&g(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){var a=0;function o(t,e,r,i){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(t=a&&(r!==B&&(s=void 0,l=[n]),e.rejectWith(s,l))}};t?u():(x.Deferred.getStackHook&&(u.stackTrace=x.Deferred.getStackHook()),n.setTimeout(u))}}return x.Deferred(function(n){e[0][3].add(o(0,n,g(i)?i:R,n.notifyWith)),e[1][3].add(o(0,n,g(t)?t:R)),e[2][3].add(o(0,n,g(r)?r:B))}).promise()},promise:function(t){return null!=t?x.extend(t,i):i}},a={};return x.each(e,function(t,n){var o=n[2],s=n[5];i[n[1]]=o.add,s&&o.add(function(){r=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith}),i.promise(a),t&&t.call(a,a),a},when:function(t){var e=arguments.length,n=e,r=Array(n),i=l.call(arguments),a=x.Deferred(),o=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?l.call(arguments):n,--e||a.resolveWith(r,i)}};if(e<=1&&(z(t,a.done(o(n)).resolve,a.reject,!e),"pending"===a.state()||g(i[n]&&i[n].then)))return a.then();for(;n--;)z(i[n],o(n),a.reject);return a.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&q.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},x.readyException=function(t){n.setTimeout(function(){throw t})};var W=x.Deferred();function H(){o.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),x.ready()}x.fn.ready=function(t){return W.then(t).catch(function(t){x.readyException(t)}),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||W.resolveWith(o,[x]))}}),x.ready.then=W.then,"complete"===o.readyState||"loading"!==o.readyState&&!o.documentElement.doScroll?n.setTimeout(x.ready):(o.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var U=function(t,e,n,r,i,a,o){var s=0,l=t.length,c=null==n;if("object"===C(n))for(s in i=!0,n)U(t,e,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,g(r)||(o=!0),c&&(o?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(x(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each(function(){Q.remove(this,t)})}}),x.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=K.get(t,e),n&&(!r||Array.isArray(n)?r=K.access(t,e,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=x.queue(t,e),r=n.length,i=n.shift(),a=x._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete a.stop,i.call(t,function(){x.dequeue(t,e)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return K.get(t,n)||K.access(t,n,{empty:x.Callbacks("once memory").add(function(){K.remove(t,[e+"queue",n])})})}}),x.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]+)/i,ht=/^$|^module$|\/(?:java|ecma)script/i,mt={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function _t(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&M(t,e)?x.merge([t],n):n}function vt(t,e){for(var n=0,r=t.length;n-1)i&&i.push(a);else if(c=x.contains(a.ownerDocument,a),o=_t(d.appendChild(a),"script"),c&&vt(o),n)for(u=0;a=o[u++];)ht.test(a.type||"")&&n.push(a);return d}gt=o.createDocumentFragment().appendChild(o.createElement("div")),(yt=o.createElement("input")).setAttribute("type","radio"),yt.setAttribute("checked","checked"),yt.setAttribute("name","t"),gt.appendChild(yt),v.checkClone=gt.cloneNode(!0).cloneNode(!0).lastChild.checked,gt.innerHTML="",v.noCloneChecked=!!gt.cloneNode(!0).lastChild.defaultValue;var Ct=o.documentElement,xt=/^key/,kt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Tt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Lt(){return!1}function St(){try{return o.activeElement}catch(t){}}function Et(t,e,n,r,i,a){var o,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)Et(t,s,n,r,e[s],a);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Lt;else if(!i)return t;return 1===a&&(o=i,(i=function(t){return x().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=x.guid++)),t.each(function(){x.event.add(this,e,i,r,n)})}x.event={global:{},add:function(t,e,n,r,i){var a,o,s,l,c,u,d,p,f,h,m,_=K.get(t);if(_)for(n.handler&&(n=(a=n).handler,i=a.selector),i&&x.find.matchesSelector(Ct,i),n.guid||(n.guid=x.guid++),(l=_.events)||(l=_.events={}),(o=_.handle)||(o=_.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(P)||[""]).length;c--;)f=m=(s=Tt.exec(e[c])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=x.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=x.event.special[f]||{},u=x.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:h.join(".")},a),(p=l[f])||((p=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,r,h,o)||t.addEventListener&&t.addEventListener(f,o)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,u):p.push(u),x.event.global[f]=!0)},remove:function(t,e,n,r,i){var a,o,s,l,c,u,d,p,f,h,m,_=K.hasData(t)&&K.get(t);if(_&&(l=_.events)){for(c=(e=(e||"").match(P)||[""]).length;c--;)if(f=m=(s=Tt.exec(e[c])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=x.event.special[f]||{},p=l[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=p.length;a--;)u=p[a],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(a,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(t,u));o&&!p.length&&(d.teardown&&!1!==d.teardown.call(t,h,_.handle)||x.removeEvent(t,f,_.handle),delete l[f])}else for(f in l)x.event.remove(t,f+e[c],n,r,!0);x.isEmptyObject(l)&&K.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,a,o,s=x.event.fix(t),l=new Array(arguments.length),c=(K.get(this,"events")||{})[s.type]||[],u=x.event.special[s.type]||{};for(l[0]=s,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(a=[],o={},n=0;n-1:x.find(i,this,null,[c]).length),o[i]&&a.push(r);a.length&&s.push({elem:c,handlers:a})}return c=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,At=/\s*$/g;function $t(t,e){return M(t,"table")&&M(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function Ot(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Nt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function It(t,e){var n,r,i,a,o,s,l,c;if(1===e.nodeType){if(K.hasData(t)&&(a=K.access(t),o=K.set(e,a),c=a.events))for(i in delete o.handle,o.events={},c)for(n=0,r=c[i].length;n1&&"string"==typeof h&&!v.checkClone&&jt.test(h))return t.each(function(i){var a=t.eq(i);m&&(e[0]=h.call(this,i,a.html())),Pt(a,e,n,r)});if(p&&(a=(i=wt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(s=(o=x.map(_t(i,"script"),Ot)).length;d")},clone:function(t,e,n){var r,i,a,o,s,l,c,u=t.cloneNode(!0),d=x.contains(t.ownerDocument,t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(o=_t(u),r=0,i=(a=_t(t)).length;r0&&vt(o,!d&&_t(t,"script")),u},cleanData:function(t){for(var e,n,r,i=x.event.special,a=0;void 0!==(n=t[a]);a++)if(X(n)){if(e=n[K.expando]){if(e.events)for(r in e.events)i[r]?x.event.remove(n,r):x.removeEvent(n,r,e.handle);n[K.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Rt(this,t,!0)},remove:function(t){return Rt(this,t)},text:function(t){return U(this,function(t){return void 0===t?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Pt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$t(this,t).appendChild(t)})},prepend:function(){return Pt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=$t(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Pt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Pt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(_t(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return x.clone(this,t,e)})},html:function(t){return U(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!At.test(t)&&!mt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-a-l-s-.5))),l}function te(t,e,n){var r=zt(t),i=Wt(t,e,r),a="border-box"===x.css(t,"boxSizing",!1,r),o=a;if(Bt.test(i)){if(!n)return i;i="auto"}return o=o&&(v.boxSizingReliable()||i===t.style[e]),("auto"===i||!parseFloat(i)&&"inline"===x.css(t,"display",!1,r))&&(i=t["offset"+e[0].toUpperCase()+e.slice(1)],o=!0),(i=parseFloat(i)||0)+Qt(t,e,n||(a?"border":"content"),o,r,i)+"px"}function ee(t,e,n,r,i){return new ee.prototype.init(t,e,n,r,i)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Wt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,a,o,s=G(e),l=Vt.test(e),c=t.style;if(l||(e=Zt(s)),o=x.cssHooks[e]||x.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:c[e];"string"===(a=typeof n)&&(i=it.exec(n))&&i[1]&&(n=lt(t,e,i),a="number"),null!=n&&n==n&&("number"===a&&(n+=i&&i[3]||(x.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var i,a,o,s=G(e);return Vt.test(e)||(e=Zt(s)),(o=x.cssHooks[e]||x.cssHooks[s])&&"get"in o&&(i=o.get(t,!0,n)),void 0===i&&(i=Wt(t,e,r)),"normal"===i&&e in Jt&&(i=Jt[e]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),x.each(["height","width"],function(t,e){x.cssHooks[e]={get:function(t,n,r){if(n)return!Ut.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,r):st(t,Yt,function(){return te(t,e,r)})},set:function(t,n,r){var i,a=zt(t),o="border-box"===x.css(t,"boxSizing",!1,a),s=r&&Qt(t,e,r,o,a);return o&&v.scrollboxSize()===a.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(a[e])-Qt(t,e,"border",!1,a)-.5)),s&&(i=it.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=x.css(t,e)),Kt(0,n,s)}}}),x.cssHooks.marginLeft=Ht(v.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Wt(t,"marginLeft"))||t.getBoundingClientRect().left-st(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(t,e){x.cssHooks[t+e]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+at[r]+e]=a[r]||a[r-2]||a[0];return i}},"margin"!==t&&(x.cssHooks[t+e].set=Kt)}),x.fn.extend({css:function(t,e){return U(this,function(t,e,n){var r,i,a={},o=0;if(Array.isArray(e)){for(r=zt(t),i=e.length;o1)}}),x.Tween=ee,ee.prototype={constructor:ee,init:function(t,e,n,r,i,a){this.elem=t,this.prop=n,this.easing=i||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=a||(x.cssNumber[n]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,n=ee.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ee.propHooks._default.set(this),this}},ee.prototype.init.prototype=ee.prototype,ee.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[x.cssProps[t.prop]]&&!x.cssHooks[t.prop]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},ee.propHooks.scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=ee.prototype.init,x.fx.step={};var ne,re,ie=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;function oe(){re&&(!1===o.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(oe):n.setTimeout(oe,x.fx.interval),x.fx.tick())}function se(){return n.setTimeout(function(){ne=void 0}),ne=Date.now()}function le(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=at[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ce(t,e,n){for(var r,i=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),a=0,o=i.length;a1)},removeAttr:function(t){return this.each(function(){x.removeAttr(this,t)})}}),x.extend({attr:function(t,e,n){var r,i,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===t.getAttribute?x.prop(t,e,n):(1===a&&x.isXMLDoc(t)||(i=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?de:void 0)),void 0!==n?null===n?void x.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=x.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&M(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(P);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),de={set:function(t,e,n){return!1===e?x.removeAttr(t,n):t.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(t,e){var n=pe[e]||x.find.attr;pe[e]=function(t,e,r){var i,a,o=e.toLowerCase();return r||(a=pe[o],pe[o]=i,i=null!=n(t,e,r)?o:null,pe[o]=a),i}});var fe=/^(?:input|select|textarea|button)$/i,he=/^(?:a|area)$/i;function me(t){return(t.match(P)||[]).join(" ")}function _e(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(P)||[]}x.fn.extend({prop:function(t,e){return U(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[x.propFix[t]||t]})}}),x.extend({prop:function(t,e,n){var r,i,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&x.isXMLDoc(t)||(e=x.propFix[e]||e,i=x.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):fe.test(t.nodeName)||he.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(x.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(t){var e,n,r,i,a,o,s,l=0;if(g(t))return this.each(function(e){x(this).addClass(t.call(this,e,_e(this)))});if((e=ve(t)).length)for(;n=this[l++];)if(i=_e(n),r=1===n.nodeType&&" "+me(i)+" "){for(o=0;a=e[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=me(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,a,o,s,l=0;if(g(t))return this.each(function(e){x(this).removeClass(t.call(this,e,_e(this)))});if(!arguments.length)return this.attr("class","");if((e=ve(t)).length)for(;n=this[l++];)if(i=_e(n),r=1===n.nodeType&&" "+me(i)+" "){for(o=0;a=e[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=me(r))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):g(t)?this.each(function(n){x(this).toggleClass(t.call(this,n,_e(this),e),e)}):this.each(function(){var e,i,a,o;if(r)for(i=0,a=x(this),o=ve(t);e=o[i++];)a.hasClass(e)?a.removeClass(e):a.addClass(e);else void 0!==t&&"boolean"!==n||((e=_e(this))&&K.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":K.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+me(_e(n))+" ").indexOf(e)>-1)return!0;return!1}});var ge=/\r/g;x.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=g(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,x(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,function(t){return null==t?"":t+""})),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ge,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:me(x.text(t))}},select:{get:function(t){var e,n,r,i=t.options,a=t.selectedIndex,o="select-one"===t.type,s=o?null:[],l=o?a+1:i.length;for(r=a<0?l:o?a:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),a}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},v.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),v.focusin="onfocusin"in n;var ye=/^(?:focusinfocus|focusoutblur)$/,be=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(t,e,r,i){var a,s,l,c,u,d,p,f,m=[r||o],_=h.call(t,"type")?t.type:t,v=h.call(t,"namespace")?t.namespace.split("."):[];if(s=f=l=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!ye.test(_+x.event.triggered)&&(_.indexOf(".")>-1&&(_=(v=_.split(".")).shift(),v.sort()),u=_.indexOf(":")<0&&"on"+_,(t=t[x.expando]?t:new x.Event(_,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:x.makeArray(e,[t]),p=x.event.special[_]||{},i||!p.trigger||!1!==p.trigger.apply(r,e))){if(!i&&!p.noBubble&&!y(r)){for(c=p.delegateType||_,ye.test(c+_)||(s=s.parentNode);s;s=s.parentNode)m.push(s),l=s;l===(r.ownerDocument||o)&&m.push(l.defaultView||l.parentWindow||n)}for(a=0;(s=m[a++])&&!t.isPropagationStopped();)f=s,t.type=a>1?c:p.bindType||_,(d=(K.get(s,"events")||{})[t.type]&&K.get(s,"handle"))&&d.apply(s,e),(d=u&&s[u])&&d.apply&&X(s)&&(t.result=d.apply(s,e),!1===t.result&&t.preventDefault());return t.type=_,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(m.pop(),e)||!X(r)||u&&g(r[_])&&!y(r)&&((l=r[u])&&(r[u]=null),x.event.triggered=_,t.isPropagationStopped()&&f.addEventListener(_,be),r[_](),t.isPropagationStopped()&&f.removeEventListener(_,be),x.event.triggered=void 0,l&&(r[u]=l)),t.result}},simulate:function(t,e,n){var r=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(r,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each(function(){x.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}}),v.focusin||x.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){x.event.simulate(e,t.target,x.event.fix(t))};x.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=K.access(r,e);i||r.addEventListener(t,n,!0),K.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=K.access(r,e)-1;i?K.access(r,e,i):(r.removeEventListener(t,n,!0),K.remove(r,e))}}});var we=n.location,Ce=Date.now(),xe=/\?/;x.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+t),e};var ke=/\[\]$/,Te=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Le=/^(?:input|select|textarea|keygen)/i;function Se(t,e,n,r){var i;if(Array.isArray(e))x.each(e,function(e,i){n||ke.test(t)?r(t,i):Se(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==C(e))r(t,e);else for(i in e)Se(t+"["+i+"]",e[i],n,r)}x.param=function(t,e){var n,r=[],i=function(t,e){var n=g(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,function(){i(this.name,this.value)});else for(n in t)Se(n,t[n],e,i);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&Le.test(this.nodeName)&&!De.test(t)&&(this.checked||!pt.test(t))}).map(function(t,e){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(t){return{name:e.name,value:t.replace(Te,"\r\n")}}):{name:e.name,value:n.replace(Te,"\r\n")}}).get()}});var Ee=/%20/g,Me=/#.*$/,Ae=/([?&])_=[^&]*/,je=/^(.*?):[ \t]*([^\r\n]*)$/gm,Fe=/^(?:GET|HEAD)$/,$e=/^\/\//,Oe={},Ne={},Ie="*/".concat("*"),Pe=o.createElement("a");function Re(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,a=e.toLowerCase().match(P)||[];if(g(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Be(t,e,n,r){var i={},a=t===Ne;function o(s){var l;return i[s]=!0,x.each(t[s]||[],function(t,s){var c=s(e,n,r);return"string"!=typeof c||a||i[c]?a?!(l=c):void 0:(e.dataTypes.unshift(c),o(c),!1)}),l}return o(e.dataTypes[0])||!i["*"]&&o("*")}function ze(t,e){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&x.extend(!0,t,r),t}Pe.href=we.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ie,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ze(ze(t,x.ajaxSettings),e):ze(x.ajaxSettings,t)},ajaxPrefilter:Re(Oe),ajaxTransport:Re(Ne),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,a,s,l,c,u,d,p,f,h=x.ajaxSetup({},e),m=h.context||h,_=h.context&&(m.nodeType||m.jquery)?x(m):x.event,v=x.Deferred(),g=x.Callbacks("once memory"),y=h.statusCode||{},b={},w={},C="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(u){if(!s)for(s={};e=je.exec(a);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return u?a:null},setRequestHeader:function(t,e){return null==u&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==u&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)k.always(t[k.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||C;return r&&r.abort(e),T(0,e),this}};if(v.promise(k),h.url=((t||h.url||we.href)+"").replace($e,we.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(P)||[""],null==h.crossDomain){c=o.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Pe.protocol+"//"+Pe.host!=c.protocol+"//"+c.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),Be(Oe,h,e,k),u)return k;for(p in(d=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Fe.test(h.type),i=h.url.replace(Me,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ee,"+")):(f=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(xe.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Ae,"$1"),f=(xe.test(i)?"&":"?")+"_="+Ce+++f),h.url=i+f),h.ifModified&&(x.lastModified[i]&&k.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&k.setRequestHeader("If-None-Match",x.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ie+"; q=0.01":""):h.accepts["*"]),h.headers)k.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(m,k,h)||u))return k.abort();if(C="abort",g.add(h.complete),k.done(h.success),k.fail(h.error),r=Be(Ne,h,e,k)){if(k.readyState=1,d&&_.trigger("ajaxSend",[k,h]),u)return k;h.async&&h.timeout>0&&(l=n.setTimeout(function(){k.abort("timeout")},h.timeout));try{u=!1,r.send(b,T)}catch(t){if(u)throw t;T(-1,t)}}else T(-1,"No Transport");function T(t,e,o,s){var c,p,f,b,w,C=e;u||(u=!0,l&&n.clearTimeout(l),r=void 0,a=s||"",k.readyState=t>0?4:0,c=t>=200&&t<300||304===t,o&&(b=function(t,e,n){for(var r,i,a,o,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)a=l[0];else{for(i in n){if(!l[0]||t.converters[i+" "+l[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(h,k,o)),b=function(t,e,n,r){var i,a,o,s,l,c={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(a=u.shift();a;)if(t.responseFields[a]&&(n[t.responseFields[a]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=c[l+" "+a]||c["* "+a]))for(i in c)if((s=i.split(" "))[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[i]:!0!==c[i]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}(h,b,k,c),c?(h.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(x.lastModified[i]=w),(w=k.getResponseHeader("etag"))&&(x.etag[i]=w)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=b.state,p=b.data,c=!(f=b.error))):(f=C,!t&&C||(C="error",t<0&&(t=0))),k.status=t,k.statusText=(e||C)+"",c?v.resolveWith(m,[p,C,k]):v.rejectWith(m,[k,C,f]),k.statusCode(y),y=void 0,d&&_.trigger(c?"ajaxSuccess":"ajaxError",[k,h,c?p:f]),g.fireWith(m,[k,C]),d&&(_.trigger("ajaxComplete",[k,h]),--x.active||x.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],function(t,e){x[e]=function(t,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),x.ajax(x.extend({url:t,type:e,dataType:i,data:n,success:r},x.isPlainObject(t)&&t))}}),x._evalUrl=function(t){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(g(t)&&(t=t.call(this[0])),e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return g(t)?this.each(function(e){x(this).wrapInner(t.call(this,e))}):this.each(function(){var e=x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=g(t);return this.each(function(n){x(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var qe={0:200,1223:204},We=x.ajaxSettings.xhr();v.cors=!!We&&"withCredentials"in We,v.ajax=We=!!We,x.ajaxTransport(function(t){var e,r;if(v.cors||We&&!t.crossDomain)return{send:function(i,a){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];for(o in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(qe[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),x.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),x.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(r,i){e=x("