WooCommerce Services - Version 1.8.0

Version Description

  • Automatically configure live rates based on setup wizard choices
  • Add automated tax calculation
  • Add deferred Stripe account setup (if chosen in wizard)
Download this release

Release Info

Developer woothemes
Plugin Icon 128x128 WooCommerce Services
Version 1.8.0
Comparing to
See all releases

Code changes from version 1.7.1 to 1.8.0

classes/class-wc-connect-api-client.php CHANGED
@@ -62,7 +62,6 @@ if ( ! class_exists( 'WC_Connect_API_Client' ) ) {
62
* @return bool|WP_Error
63
*/
64
public function validate_service_settings( $service_slug, $service_settings ) {
65
-
66
// Make sure the service slug only contains underscores or letters
67
if ( 1 === preg_match( '/[^a-z_]/i', $service_slug ) ) {
68
return new WP_Error( 'invalid_service_slug', 'Invalid WooCommerce Services service slug provided' );
@@ -270,6 +269,34 @@ if ( ! class_exists( 'WC_Connect_API_Client' ) ) {
270
return $this->request( 'GET', '/connection/test' );
271
}
272
273
/**
274
* Sends a request to the WooCommerce Services Server
275
*
@@ -427,6 +454,7 @@ if ( ! class_exists( 'WC_Connect_API_Client' ) ) {
427
'base_city' => WC()->countries->get_base_city(),
428
'base_country' => WC()->countries->get_base_country(),
429
'base_state' => WC()->countries->get_base_state(),
430
'currency' => get_woocommerce_currency(),
431
'dimension_unit' => strtolower( get_option( 'woocommerce_dimension_unit' ) ),
432
'jetpack_version' => JETPACK__VERSION,
62
* @return bool|WP_Error
63
*/
64
public function validate_service_settings( $service_slug, $service_settings ) {
65
// Make sure the service slug only contains underscores or letters
66
if ( 1 === preg_match( '/[^a-z_]/i', $service_slug ) ) {
67
return new WP_Error( 'invalid_service_slug', 'Invalid WooCommerce Services service slug provided' );
269
return $this->request( 'GET', '/connection/test' );
270
}
271
272
+ /**
273
+ * Create a deferred Stripe Standard Account
274
+ * @param $email string The user's email address
275
+ * @param $country string The user's country
276
+ * @return object|WP_Error
277
+ */
278
+ public function create_stripe_account( $email, $country ) {
279
+ $request = array(
280
+ 'email' => $email,
281
+ 'country' => $country,
282
+ );
283
+ return $this->request( 'POST', '/stripe/account', $request );
284
+ }
285
+
286
+ public function get_stripe_oauth_init( $return_url ) {
287
+ $request = array(
288
+ 'returnUrl' => $return_url,
289
+ );
290
+ return $this->request( 'POST', '/stripe/oauth-init', $request );
291
+ }
292
+
293
+ public function get_stripe_oauth_keys( $code ) {
294
+ $request = array(
295
+ 'code' => $code,
296
+ );
297
+ return $this->request( 'POST', '/stripe/oauth-keys', $request );
298
+ }
299
+
300
/**
301
* Sends a request to the WooCommerce Services Server
302
*
454
'base_city' => WC()->countries->get_base_city(),
455
'base_country' => WC()->countries->get_base_country(),
456
'base_state' => WC()->countries->get_base_state(),
457
+ 'base_postcode' => WC()->countries->get_base_postcode(),
458
'currency' => get_woocommerce_currency(),
459
'dimension_unit' => strtolower( get_option( 'woocommerce_dimension_unit' ) ),
460
'jetpack_version' => JETPACK__VERSION,
classes/class-wc-connect-help-view.php CHANGED
@@ -524,11 +524,14 @@ if ( ! class_exists( 'WC_Connect_Help_View' ) ) {
524
foreach ( $fieldset[ 'items' ] as $fieldsetitem ) {
525
526
if ( 'indicators' === $fieldsetitem->type ) {
527
$form_properties[ $fieldsetitem->key ] = array(
528
- 'title' => $fieldsetitem->title,
529
- 'type' => 'object',
530
'definition' => $fieldsetitem->key . '_definitions',
531
- 'items' => $this->get_indicator_schema()
532
);
533
534
if ( property_exists( $fieldsetitem, 'subtitle' ) ) {
@@ -640,7 +643,7 @@ if ( ! class_exists( 'WC_Connect_Help_View' ) ) {
640
foreach ( $this->fieldsets as $fieldset ) {
641
foreach ( $fieldset[ 'items' ] as $fieldsetitem ) {
642
if ( 'indicators' === $fieldsetitem->type ) {
643
- $form_data[ $fieldsetitem->key ] = $fieldsetitem->items;
644
} else {
645
$form_data[ $fieldsetitem->key ] = $fieldsetitem->value;
646
}
524
foreach ( $fieldset[ 'items' ] as $fieldsetitem ) {
525
526
if ( 'indicators' === $fieldsetitem->type ) {
527
+ $indicator_schema = $this->get_indicator_schema();
528
+
529
$form_properties[ $fieldsetitem->key ] = array(
530
+ 'title' => $fieldsetitem->title,
531
+ 'type' => 'object',
532
'definition' => $fieldsetitem->key . '_definitions',
533
+ 'items' => $indicator_schema,
534
+ 'properties' => $indicator_schema->properties,
535
);
536
537
if ( property_exists( $fieldsetitem, 'subtitle' ) ) {
643
foreach ( $this->fieldsets as $fieldset ) {
644
foreach ( $fieldset[ 'items' ] as $fieldsetitem ) {
645
if ( 'indicators' === $fieldsetitem->type ) {
646
+ $form_data[ $fieldsetitem->key ] = reset( $fieldsetitem->items );
647
} else {
648
$form_data[ $fieldsetitem->key ] = $fieldsetitem->value;
649
}
classes/class-wc-connect-jetpack.php CHANGED
@@ -38,6 +38,20 @@ if ( ! class_exists( 'WC_Connect_Jetpack' ) ) {
38
return false;
39
}
40
41
/**
42
* Helper method to get the Jetpack master user, IF we are connected
43
* @return WP_User | false
38
return false;
39
}
40
41
+ /**
42
+ * Helper method to get whether the current site is an Atomic site
43
+ * @return bool
44
+ */
45
+ public static function is_atomic_site() {
46
+ if ( function_exists( 'jetpack_is_atomic_site' ) ) {
47
+ return jetpack_is_atomic_site();
48
+ } elseif ( function_exists( 'jetpack_is_automated_transfer_site' ) ) {
49
+ return jetpack_is_automated_transfer_site();
50
+ }
51
+
52
+ return false;
53
+ }
54
+
55
/**
56
* Helper method to get the Jetpack master user, IF we are connected
57
* @return WP_User | false
classes/class-wc-connect-nux.php CHANGED
@@ -300,16 +300,95 @@ if ( ! class_exists( 'WC_Connect_Nux' ) ) {
300
return false;
301
}
302
303
public function should_display_nux_notice_for_current_store_locale() {
304
- $base_location = wc_get_base_location();
305
- $country = isset( $base_location['country'] )
306
- ? $base_location['country']
307
- : '';
308
- // Do not display for non-US, non-CA stores.
309
- if ( 'CA' === $country || 'US' === $country ) {
310
- return true;
311
}
312
- return false;
313
}
314
315
public function get_jetpack_redirect_url() {
@@ -328,10 +407,6 @@ if ( ! class_exists( 'WC_Connect_Nux' ) ) {
328
return;
329
}
330
331
- if ( ! $this->should_display_nux_notice_for_current_store_locale() ) {
332
- return;
333
- }
334
-
335
$jetpack_install_status = $this->get_jetpack_install_status();
336
$banner_to_display = self::get_banner_type_to_display( array(
337
'jetpack_connection_status' => $jetpack_install_status,
@@ -342,6 +417,7 @@ if ( ! class_exists( 'WC_Connect_Nux' ) ) {
342
343
switch ( $banner_to_display ) {
344
case 'before_jetpack_connection':
345
$ajax_data = array(
346
'nonce' => wp_create_nonce( 'wcs_nux_notice' ),
347
'initial_install_status' => $jetpack_install_status,
@@ -368,14 +444,14 @@ if ( ! class_exists( 'WC_Connect_Nux' ) ) {
368
wp_enqueue_style( 'wc_connect_banner' );
369
add_action( 'admin_notices', array( $this, 'show_banner_after_connection' ) );
370
break;
371
- case 'tos_only_banner':
372
- wp_enqueue_style( 'wc_connect_banner' );
373
- add_action( 'admin_notices', array( $this, 'show_tos_banner' ) );
374
- break;
375
}
376
}
377
378
public function show_banner_before_connection() {
379
if ( ! $this->should_display_nux_notice_on_screen( get_current_screen() ) ) {
380
return;
381
}
@@ -394,47 +470,45 @@ if ( ! class_exists( 'WC_Connect_Nux' ) ) {
394
WC_Connect_Options::delete_option( self::SHOULD_SHOW_AFTER_CXN_BANNER );
395
396
$jetpack_status = $this->get_jetpack_install_status();
397
-
398
- $button_text = __( 'Connect', 'woocommerce-services' );
399
-
400
- $image_url = plugins_url( 'images/nux-printer-laptop-illustration.png', dirname( __FILE__ ) );
401
402
switch ( $jetpack_status ) {
403
case self::JETPACK_NOT_INSTALLED:
404
- $button_text = __( 'Install Jetpack and connect', 'woocommerce-services' );
405
break;
406
case self::JETPACK_INSTALLED_NOT_ACTIVATED:
407
- $button_text = __( 'Activate Jetpack and connect', 'woocommerce-services' );
408
break;
409
}
410
411
- $default_content = array(
412
- 'title' => __( 'Connect your store to activate WooCommerce Shipping', 'woocommerce-services' ),
413
- 'description' => esc_html( __( "WooCommerce Shipping is almost ready to go! Once you connect your store you'll be able to access discounted rates and printing services for USPS and Canada Post from your dashboard (fewer trips to the post office, winning).", 'woocommerce-services' ) ),
414
- 'button_text' => $button_text,
415
- 'image_url' => $image_url,
416
- 'should_show_jp' => true,
417
'should_show_terms' => true,
418
);
419
420
- $base_location = wc_get_base_location();
421
- $country = isset( $base_location['country'] )
422
- ? $base_location['country']
423
- : '';
424
- switch ( $country ) {
425
- case 'CA':
426
- $localized_content = array(
427
- 'description' => esc_html( __( "WooCommerce Shipping is almost ready to go! Once you connect your store you'll be able to show your customers live shipping rates when they check out.", 'woocommerce-services' ) ),
428
- );
429
- break;
430
- default:
431
- $localized_content = array();
432
- }
433
-
434
- $this->show_nux_banner( array_merge( $default_content, $localized_content ) );
435
}
436
437
public function show_banner_after_connection() {
438
if ( ! $this->should_display_nux_notice_on_screen( get_current_screen() ) ) {
439
return;
440
}
@@ -452,53 +526,26 @@ if ( ! class_exists( 'WC_Connect_Nux' ) ) {
452
453
$this->tracks->opted_in( 'connection_banner' );
454
455
$this->show_nux_banner( array(
456
- 'title' => __( 'Setup complete! You can now enjoy discounted shipping rates and print labels directly from your dashboard.', 'woocommerce-services' ),
457
- 'description' => esc_html( __( 'When you’re ready, you can purchase discounted labels from USPS, and print USPS labels at home.', 'woocommerce-services' ) ),
458
'button_text' => __( 'Got it, thanks!', 'woocommerce-services' ),
459
'button_link' => add_query_arg( array(
460
'wcs-nux-notice' => 'dismiss',
461
) ),
462
'image_url' => plugins_url(
463
- 'images/nux-printer-laptop-illustration.png', dirname( __FILE__ )
464
),
465
'should_show_jp' => false,
466
'should_show_terms' => false,
467
) );
468
}
469
470
- public function show_tos_banner() {
471
- if ( isset( $_GET['wcs-nux-tos'] ) && 'accept' === $_GET['wcs-nux-tos'] ) {
472
- WC_Connect_Options::update_option( 'tos_accepted', true );
473
-
474
- $this->tracks->opted_in( 'tos_banner' );
475
-
476
- wp_safe_redirect( remove_query_arg( 'wcs-nux-tos' ) );
477
- exit;
478
- }
479
-
480
- $this->show_nux_banner( array(
481
- 'title' => __( 'Almost ready to enjoy discounted shipping rates', 'woocommerce-services' ),
482
- 'description' => sprintf( wp_kses( __( 'Everything is ready to roll, we just need you to agree to our <a href="%1$s">Terms of Service</a>.', 'woocommerce-services' ),
483
- array(
484
- 'a' => array(
485
- 'href' => array(),
486
- ),
487
- ) ),
488
- 'https://woocommerce.com/terms-conditions/'
489
- ),
490
- 'button_text' => __( 'I accept', 'woocommerce-services' ),
491
- 'button_link' => add_query_arg( array(
492
- 'wcs-nux-tos' => 'accept',
493
- ) ),
494
- 'image_url' => plugins_url(
495
- 'images/nux-printer-laptop-illustration.png', dirname( __FILE__ )
496
- ),
497
- 'should_show_jp' => false,
498
- 'should_show_terms' => true,
499
- ) );
500
- }
501
-
502
public function show_nux_banner( $content ) {
503
?>
504
<div class="notice wcs-nux__notice">
@@ -516,15 +563,15 @@ if ( ! class_exists( 'WC_Connect_Nux' ) ) {
516
<p class="wcs-nux__notice-content-tos"><?php
517
/* translators: %1$s example values include "Install Jetpack and CONNECT >", "Activate Jetpack and CONNECT >", "CONNECT >" */
518
printf(
519
- wp_kses( __( 'By clicking "%1$s", you agree to the <a href="%2$s">Terms of Service</a> and understand that <a href="%3$s">some of your data will be passed to external servers</a>.', 'woocommerce-services' ),
520
array(
521
'a' => array(
522
'href' => array(),
523
),
524
) ),
525
esc_html( $content['button_text'] ),
526
- 'https://woocommerce.com/terms-conditions/',
527
- 'https://woocommerce.com/terms-conditions/services-privacy/'
528
); ?></p>
529
<?php endif; ?>
530
<?php if ( isset( $content['button_link'] ) ) : ?>
@@ -545,7 +592,7 @@ if ( ! class_exists( 'WC_Connect_Nux' ) ) {
545
<?php if ( $content['should_show_jp'] ) : ?>
546
<div class="wcs-nux__notice-jetpack">
547
<img src="<?php
548
- echo esc_url( plugins_url( 'images/jetpack-logo.png', dirname( __FILE__ ) ) );
549
?>">
550
<p class="wcs-nux__notice-jetpack-text"><?php echo esc_html( __( 'Powered by Jetpack', 'woocommerce-services' ) ); ?></p>
551
</div>
300
return false;
301
}
302
303
+ /**
304
+ * https://stripe.com/global
305
+ */
306
+ public function is_stripe_supported_country( $country_code ) {
307
+ $stripe_supported_countries = array(
308
+ 'AU',
309
+ 'AT',
310
+ 'BE',
311
+ 'CA',
312
+ 'DK',
313
+ 'FI',
314
+ 'FR',
315
+ 'DE',
316
+ 'HK',
317
+ 'IE',
318
+ 'JP',
319
+ 'LU',
320
+ 'NL',
321
+ 'NZ',
322
+ 'NO',
323
+ 'SG',
324
+ 'ES',
325
+ 'SE',
326
+ 'CH',
327
+ 'GB',
328
+ 'US',
329
+ );
330
+
331
+ return in_array( $country_code, $stripe_supported_countries );
332
+ }
333
+
334
+ /**
335
+ * https://developers.taxjar.com/api/reference/#countries
336
+ */
337
+ public function is_taxjar_supported_country( $country_code ) {
338
+ $taxjar_supported_countries = array_merge(
339
+ array(
340
+ 'US',
341
+ 'CA',
342
+ 'AU',
343
+ ),
344
+ WC()->countries->get_european_union_countries()
345
+ );
346
+
347
+ return in_array( $country_code, $taxjar_supported_countries );
348
+ }
349
+
350
public function should_display_nux_notice_for_current_store_locale() {
351
+ $store_country = WC()->countries->get_base_country();
352
+
353
+ $supports_stripe = $this->is_stripe_supported_country( $store_country );
354
+ $supports_taxes = $this->is_taxjar_supported_country( $store_country );
355
+ $supports_shipping = in_array( $store_country, array( 'US', 'CA' ) );
356
+
357
+ return $supports_shipping || $supports_stripe || $supports_taxes;
358
+ }
359
+
360
+ public function get_feature_list_for_country( $country ) {
361
+ $feature_list = false;
362
+ $supports_stripe = $this->is_stripe_supported_country( $country );
363
+ $supports_taxes = $this->is_taxjar_supported_country( $country );
364
+ $supports_rates = in_array( $country, array( 'US', 'CA' ) );
365
+ $supports_labels = ( 'US' === $country );
366
+
367
+ if ( $supports_stripe && $supports_taxes && $supports_rates && $supports_labels ) {
368
+ $feature_list = __( 'automated tax calculation, live shipping rates, shipping label printing, and smoother payment setup', 'woocommerce-services' );
369
+ } elseif ( $supports_stripe && $supports_taxes && $supports_rates ) {
370
+ $feature_list = __( 'automated tax calculation, live shipping rates, and smoother payment setup', 'woocommerce-services' );
371
+ } else if ( $supports_stripe && $supports_taxes ) {
372
+ $feature_list = __( 'automated tax calculation and smoother payment setup', 'woocommerce-services' );
373
+ } else if ( $supports_stripe && $supports_rates && $supports_labels ) {
374
+ $feature_list = __( 'live shipping rates, shipping label printing, and smoother payment setup', 'woocommerce-services' );
375
+ } else if ( $supports_stripe && $supports_rates ) {
376
+ $feature_list = __( 'live shipping rates and smoother payment setup', 'woocommerce-services' );
377
+ } else if ( $supports_stripe ) {
378
+ $feature_list = __( 'smoother payment setup', 'woocommerce-services' );
379
+ } else if ( $supports_taxes && $supports_rates && $supports_labels ) {
380
+ $feature_list = __( 'automated tax calculation, live shipping rates, and shipping label printing', 'woocommerce-services' );
381
+ } else if ( $supports_taxes && $supports_rates ) {
382
+ $feature_list = __( 'automated tax calculation and live shipping rates', 'woocommerce-services' );
383
+ } else if ( $supports_taxes ) {
384
+ $feature_list = __( 'automated tax calculation', 'woocommerce-services' );
385
+ } else if ( $supports_rates && $supports_labels ) {
386
+ $feature_list = __( 'live shipping rates and shipping label printing', 'woocommerce-services' );
387
+ } else if ( $supports_rates ) {
388
+ $feature_list = __( 'live shipping rates', 'woocommerce-services' );
389
}
390
+
391
+ return $feature_list;
392
}
393
394
public function get_jetpack_redirect_url() {
407
return;
408
}
409
410
$jetpack_install_status = $this->get_jetpack_install_status();
411
$banner_to_display = self::get_banner_type_to_display( array(
412
'jetpack_connection_status' => $jetpack_install_status,
417
418
switch ( $banner_to_display ) {
419
case 'before_jetpack_connection':
420
+ case 'tos_only_banner':
421
$ajax_data = array(
422
'nonce' => wp_create_nonce( 'wcs_nux_notice' ),
423
'initial_install_status' => $jetpack_install_status,
444
wp_enqueue_style( 'wc_connect_banner' );
445
add_action( 'admin_notices', array( $this, 'show_banner_after_connection' ) );
446
break;
447
}
448
}
449
450
public function show_banner_before_connection() {
451
+ if ( ! $this->should_display_nux_notice_for_current_store_locale() ) {
452
+ return;
453
+ }
454
+
455
if ( ! $this->should_display_nux_notice_on_screen( get_current_screen() ) ) {
456
return;
457
}
470
WC_Connect_Options::delete_option( self::SHOULD_SHOW_AFTER_CXN_BANNER );
471
472
$jetpack_status = $this->get_jetpack_install_status();
473
+ $button_text = __( 'Connect', 'woocommerce-services' );
474
+ $banner_title = __( 'Connect your store to activate WooCommerce Services', 'woocommerce-services' );
475
+ $image_url = plugins_url( 'assets/images/wcs-notice.png', dirname( __FILE__ ) );
476
477
switch ( $jetpack_status ) {
478
case self::JETPACK_NOT_INSTALLED:
479
+ $button_text = __( 'Install Jetpack and connect', 'woocommerce-services' );
480
+ $banner_title = __( 'Connect Jetpack to activate WooCommerce Services', 'woocommerce-services' );
481
break;
482
case self::JETPACK_INSTALLED_NOT_ACTIVATED:
483
+ $button_text = __( 'Activate Jetpack and connect', 'woocommerce-services' );
484
+ $banner_title = __( 'Connect Jetpack to activate WooCommerce Services', 'woocommerce-services' );
485
+ break;
486
+ case self::JETPACK_ACTIVATED_NOT_CONNECTED:
487
+ $banner_title = __( 'Connect Jetpack to activate WooCommerce Services', 'woocommerce-services' );
488
break;
489
}
490
491
+ $country = WC()->countries->get_base_country();
492
+ /* translators: %s: list of features, potentially comma separated */
493
+ $description_base = __( "WooCommerce Services is almost ready to go! Once you connect your store you'll have access to %s.", 'woocommerce-services' );
494
+ $feature_list = $this->get_feature_list_for_country( $country );
495
+ $banner_content = array(
496
+ 'title' => $banner_title,
497
+ 'description' => sprintf( $description_base, $feature_list ),
498
+ 'button_text' => $button_text,
499
+ 'image_url' => $image_url,
500
+ 'should_show_jp' => true,
501
'should_show_terms' => true,
502
);
503
504
+ $this->show_nux_banner( $banner_content );
505
}
506
507
public function show_banner_after_connection() {
508
+ if ( ! $this->should_display_nux_notice_for_current_store_locale() ) {
509
+ return;
510
+ }
511
+
512
if ( ! $this->should_display_nux_notice_on_screen( get_current_screen() ) ) {
513
return;
514
}
526
527
$this->tracks->opted_in( 'connection_banner' );
528
529
+ $country = WC()->countries->get_base_country();
530
+ /* translators: %s: list of features, potentially comma separated */
531
+ $description_base = __( 'You can now enjoy %s.', 'woocommerce-services' );
532
+ $feature_list = $this->get_feature_list_for_country( $country );
533
+
534
$this->show_nux_banner( array(
535
+ 'title' => __( 'Setup complete.', 'woocommerce-services' ),
536
+ 'description' => esc_html( sprintf( $description_base, $feature_list ) ),
537
'button_text' => __( 'Got it, thanks!', 'woocommerce-services' ),
538
'button_link' => add_query_arg( array(
539
'wcs-nux-notice' => 'dismiss',
540
) ),
541
'image_url' => plugins_url(
542
+ 'assets/images/wcs-notice.png', dirname( __FILE__ )
543
),
544
'should_show_jp' => false,
545
'should_show_terms' => false,
546
) );
547
}
548
549
public function show_nux_banner( $content ) {
550
?>
551
<div class="notice wcs-nux__notice">
563
<p class="wcs-nux__notice-content-tos"><?php
564
/* translators: %1$s example values include "Install Jetpack and CONNECT >", "Activate Jetpack and CONNECT >", "CONNECT >" */
565
printf(
566
+ wp_kses( __( 'By clicking "%1$s", you agree to the <a href="%2$s">Terms of Service</a> and to <a href="%3$s">share certain data and settings</a> with WordPress.com and/or third parties.', 'woocommerce-services' ),
567
array(
568
'a' => array(
569
'href' => array(),
570
),
571
) ),
572
esc_html( $content['button_text'] ),
573
+ 'https://wordpress.com/tos/',
574
+ 'https://jetpack.com/support/what-data-does-jetpack-sync/'
575
); ?></p>
576
<?php endif; ?>
577
<?php if ( isset( $content['button_link'] ) ) : ?>
592
<?php if ( $content['should_show_jp'] ) : ?>
593
<div class="wcs-nux__notice-jetpack">
594
<img src="<?php
595
+ echo esc_url( plugins_url( 'assets/images/jetpack-logo.png', dirname( __FILE__ ) ) );
596
?>">
597
<p class="wcs-nux__notice-jetpack-text"><?php echo esc_html( __( 'Powered by Jetpack', 'woocommerce-services' ) ); ?></p>
598
</div>
classes/class-wc-connect-options.php CHANGED
@@ -46,6 +46,8 @@ if ( ! class_exists( 'WC_Connect_Options' ) ) {
46
'predefined_packages',
47
'shipping_methods_migrated',
48
'should_display_nux_after_jp_cxn_banner',
49
);
50
}
51
46
'predefined_packages',
47
'shipping_methods_migrated',
48
'should_display_nux_after_jp_cxn_banner',
49
+ 'needs_tax_environment_setup',
50
+ 'stripe_state',
51
);
52
}
53
classes/class-wc-connect-stripe.php ADDED
@@ -0,0 +1,110 @@
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ if ( ! class_exists( 'WC_Connect_Stripe' ) ) {
8
+
9
+ class WC_Connect_Stripe {
10
+
11
+ /**
12
+ * @var WC_Connect_API_Client
13
+ */
14
+ private $api;
15
+
16
+ /**
17
+ * @var WC_Connect_Options
18
+ */
19
+ private $options;
20
+
21
+ /**
22
+ * @var WC_Connect_Logger
23
+ */
24
+ private $logger;
25
+
26
+ const STATE_VAR_NAME = 'stripe_state';
27
+
28
+ public function __construct( WC_Connect_API_Client $client, WC_Connect_Options $options, WC_Connect_Logger $logger ) {
29
+ $this->api = $client;
30
+ $this->options = $options;
31
+ $this->logger = $logger;
32
+ }
33
+
34
+ public function is_stripe_plugin_enabled() {
35
+ return class_exists( 'WC_Stripe' );
36
+ }
37
+
38
+ public function get_oauth_url( $return_url ) {
39
+ $result = $this->api->get_stripe_oauth_init( $return_url );
40
+
41
+ if ( is_wp_error( $result ) ) {
42
+ return $result;
43
+ }
44
+
45
+ $this->options->update_option( self::STATE_VAR_NAME, $result->state );
46
+
47
+ return $result->oauthUrl;
48
+ }
49
+
50
+ public function create_account( $email, $country ) {
51
+ $response = $this->api->create_stripe_account( $email, $country );
52
+ if ( is_wp_error( $response ) ) {
53
+ return $response;
54
+ }
55
+ return $this->save_stripe_keys( $response );
56
+ }
57
+
58
+ public function connect_oauth( $state, $code ) {
59
+ if ( $state !== $this->options->get_option( self::STATE_VAR_NAME, false ) ) {
60
+ return new WP_Error( 'Invalid stripe state' );
61
+ }
62
+
63
+ $response = $this->api->get_stripe_oauth_keys( $code );
64
+
65
+ if ( is_wp_error( $response ) ) {
66
+ return $response;
67
+ }
68
+
69
+ return $this->save_stripe_keys( $response );
70
+ }
71
+
72
+ private function save_stripe_keys( $result ) {
73
+ if ( ! isset( $result->accountId, $result->publishableKey, $result->secretKey ) ) {
74
+ return new WP_Error( 'Invalid credentials received from server' );
75
+ }
76
+
77
+ $is_test = false !== strpos( $result->publishableKey, '_test_' );
78
+ $prefix = $is_test ? 'test_' : '';
79
+
80
+ $default_options = $this->get_default_stripe_config();
81
+
82
+ $option_name = 'woocommerce_stripe_settings';
83
+ $options = array_merge( $default_options, get_option( $option_name, array() ) );
84
+ $options[ 'enabled' ] = 'yes';
85
+ $options[ 'testmode' ] = $is_test ? 'yes' : 'no';
86
+ $options[ $prefix . 'account_id' ] = $result->accountId;
87
+ $options[ $prefix . 'publishable_key' ] = $result->publishableKey;
88
+ $options[ $prefix . 'secret_key' ] = $result->secretKey;
89
+
90
+ update_option( $option_name, $options );
91
+ return $result;
92
+ }
93
+
94
+ private function get_default_stripe_config() {
95
+ if ( ! class_exists( 'WC_Gateway_Stripe' ) ) {
96
+ return array();
97
+ }
98
+
99
+ $result = array();
100
+ $gateway = new WC_Gateway_Stripe();
101
+ foreach ( $gateway->form_fields as $key => $value ) {
102
+ if ( isset( $value['default'] ) ) {
103
+ $result[ $key ] = $value['default'];
104
+ }
105
+ }
106
+
107
+ return $result;
108
+ }
109
+ }
110
+ }
classes/class-wc-connect-taxjar-integration.php CHANGED
@@ -8,80 +8,783 @@ class WC_Connect_TaxJar_Integration {
8
public $api_client;
9
10
/**
11
- * @var WC_Taxjar_Integration
12
*/
13
- protected $taxjar_integration;
14
15
- const TAXJAR_URL = 'https://api.taxjar.com';
16
- const PROXY_PATH = 'taxjar';
17
- const FAKE_TOKEN = '[Managed by WooCommerce Services]';
18
19
- public function __construct( WC_Connect_API_Client $api_client ) {
20
$this->api_client = $api_client;
21
}
22
23
public function init() {
24
- add_filter( 'default_option_woocommerce_taxjar-integration_settings', array( $this, 'override_taxjar_settings' ) );
25
- add_filter( 'option_woocommerce_taxjar-integration_settings', array( $this, 'check_taxjar_settings' ) );
26
}
27
28
- public function check_taxjar_settings( $settings ) {
29
- if (
30
- isset( $settings['api_token'] ) &&
31
- ( $settings['api_token'] === strtolower( self::FAKE_TOKEN ) )
32
- ) {
33
- return $this->override_taxjar_settings( $settings );
34
}
35
36
- return $settings;
37
}
38
39
- public function override_taxjar_settings( $settings ) {
40
- $store_city = get_option( 'woocommerce_store_city' );
41
- $store_postcode = get_option( 'woocommerce_store_postcode' );
42
43
- // Check for store address before hijacking requests.
44
- if ( empty( $store_city ) || empty( $store_postcode ) ) {
45
- return $settings;
46
}
47
48
- // Attach proxy filter.
49
- add_filter( 'pre_http_request', array( $this, 'proxy_taxjar_requests' ), 10, 3 );
50
51
- if ( ! is_array( $settings ) ) {
52
- $settings = array();
53
}
54
55
- $settings = array_merge( $settings, array(
56
- 'api_token' => self::FAKE_TOKEN,
57
- 'enabled' => 'yes',
58
- 'store_city' => $store_city,
59
- 'store_zip' => $store_postcode,
60
) );
61
62
- return $settings;
63
}
64
65
- public function proxy_taxjar_requests( $pre, $r, $url ) {
66
- // TODO: get verification requests working through proxy
67
- if ( 'https://api.taxjar.com/v2/verify' === $url ) {
68
- return array(
69
- 'response' => array(
70
- 'code' => 200,
71
- ),
72
- 'body' => '',
73
);
74
}
75
76
- // Proxy all TaxJar requests through the WCS server
77
- if ( strpos( $url, self::TAXJAR_URL ) === 0 ) {
78
- $taxjar_url = trailingslashit( self::TAXJAR_URL );
79
- $wcs_path = trailingslashit( self::PROXY_PATH );
80
- $proxy_path = str_replace( $taxjar_url, $wcs_path, $url );
81
82
- return $this->api_client->proxy_request( $proxy_path, $r );
83
}
84
85
- return $pre;
86
}
87
}
8
public $api_client;
9
10
/**
11
+ * @var WC_Connect_Logger
12
*/
13
+ public $logger;
14
15
+ const PROXY_PATH = 'taxjar/v2';
16
+ const ENV_SETUP_FLAG = 'needs_tax_environment_setup';
17
+ const OPTION_NAME = 'wc_connect_taxes_enabled';
18
+ const SETUP_WIZARD_OPTION_NAME = 'woocommerce_setup_automated_taxes';
19
20
+ public function __construct(
21
+ WC_Connect_API_Client $api_client,
22
+ WC_Connect_Logger $logger
23
+ ) {
24
$this->api_client = $api_client;
25
+ $this->logger = $logger;
26
}
27
28
public function init() {
29
+ // Only enable WCS TaxJar integration if the official TaxJar plugin isn't active.
30
+ if ( class_exists( 'WC_Taxjar' ) ) {
31
+ return;
32
+ }
33
+
34
+ $store_settings = $this->get_store_settings();
35
+ $store_country = $store_settings['store_country_setting'];
36
+
37
+ // TaxJar supports USA, Canada, Australia, and the European Union
38
+ if ( ! $this->is_supported_country( $store_country ) ) {
39
+ return;
40
+ }
41
+
42
+ // Add toggle for automated taxes to the core settings page
43
+ add_filter( 'woocommerce_tax_settings', array( $this, 'add_tax_settings' ) );
44
+
45
+ // Bow out if we're not wanted
46
+ if ( ! $this->is_enabled() ) {
47
+ return;
48
+ }
49
+
50
+ $this->setup_environment();
51
+
52
+ // Calculate Taxes at Cart / Checkout
53
+ add_action( 'woocommerce_calculate_totals', array( $this, 'calculate_totals' ), 20 );
54
+
55
+ // Calculate Taxes for Backend Orders (Woo 2.6+)
56
+ add_action( 'woocommerce_before_save_order_items', array( $this, 'calculate_backend_totals' ), 20 );
57
+
58
+ // Set customer taxable location for local pickup
59
+ add_filter( 'woocommerce_customer_taxable_address', array( $this, 'append_base_address_to_customer_taxable_address' ), 10, 1 );
60
}
61
62
+ /**
63
+ * Are automated taxes enabled?
64
+ *
65
+ * @return bool
66
+ */
67
+ public function is_enabled() {
68
+ // Migrate automated taxes selection from the setup wizard
69
+ if ( get_option( self::SETUP_WIZARD_OPTION_NAME ) ) {
70
+ update_option( self::OPTION_NAME, 'yes' );
71
+ delete_option( self::SETUP_WIZARD_OPTION_NAME );
72
+
73
+ return true;
74
}
75
76
+ return ( 'yes' === get_option( self::OPTION_NAME ) );
77
}
78
79
+ /**
80
+ * Add our "automated taxes" setting to the core group.
81
+ *
82
+ * @param array $tax_settings WooCommerce Tax Settings
83
+ *
84
+ * @return array
85
+ */
86
+ public function add_tax_settings( $tax_settings ) {
87
+ $automated_taxes = array(
88
+ 'title' => __( 'Automated taxes', 'woocommerce-services' ),
89
+ 'id' => self::OPTION_NAME, // TODO: save in `wc_connect_options`?
90
+ 'desc_tip' => __( 'Automate your sales tax calculations with WooCommerce Services, powered by Jetpack.', 'woocommerce-services' ),
91
+ 'default' => 'no',
92
+ 'type' => 'select',
93
+ 'class' => 'wc-enhanced-select',
94
+ 'options' => array(
95
+ 'no' => __( 'Disable automated taxes', 'woocommerce-services' ),
96
+ 'yes' => __( 'Enable automated taxes', 'woocommerce-services' ),
97
+ ),
98
+ );
99
+
100
+ // Insert the "automated taxes" setting at the top (under the section title)
101
+ array_splice( $tax_settings, 1, 0, array( $automated_taxes ) );
102
103
+ return $tax_settings;
104
+ }
105
+
106
+ /**
107
+ * Put the WooCommerce tax settings in a known-good initial configuration.
108
+ */
109
+ public function setup_environment() {
110
+ $needs_setup = WC_Connect_Options::get_option( self::ENV_SETUP_FLAG, true );
111
+
112
+ if ( ! $needs_setup ) {
113
+ return;
114
}
115
116
+ $this->configure_tax_settings();
117
+ $this->backup_existing_tax_rates();
118
119
+ WC_Connect_Options::update_option( self::ENV_SETUP_FLAG, false );
120
+ }
121
+
122
+ /**
123
+ * TaxJar supports USA, Canada, Australia, and the European Union
124
+ * See: https://developers.taxjar.com/api/reference/#countries
125
+ *
126
+ * @return array Countries supported by TaxJar.
127
+ */
128
+ public function get_supported_countries() {
129
+ $supported_countries = array_merge(
130
+ array(
131
+ 'US',
132
+ 'CA',
133
+ 'AU',
134
+ ),
135
+ WC()->countries->get_european_union_countries()
136
+ );
137
+
138
+ return $supported_countries;
139
+ }
140
+
141
+ /**
142
+ * Check if a given country is supported by TaxJar.
143
+ *
144
+ * @param $country Two character country code.
145
+ *
146
+ * @return bool Whether or not the country is supported by TaxJar.
147
+ */
148
+ public function is_supported_country( $country ) {
149
+ return in_array( $country, $this->get_supported_countries() );
150
+ }
151
+
152
+ /**
153
+ * Gets the store's location settings.
154
+ *
155
+ * Modified version of TaxJar's plugin.
156
+ * See: https://github.com/taxjar/taxjar-woocommerce-plugin/blob/82bf7c58/includes/class-wc-taxjar-integration.php#L796
157
+ *
158
+ * @return array
159
+ */
160
+ public function get_store_settings() {
161
+ $store_settings = array(
162
+ 'taxjar_zip_code_setting' => WC()->countries->get_base_postcode(),
163
+ 'store_state_setting' => WC()->countries->get_base_state(),
164
+ 'store_country_setting' => WC()->countries->get_base_country(),
165
+ 'taxjar_city_setting' => WC()->countries->get_base_city(),
166
+ );
167
+
168
+ return $store_settings;
169
+ }
170
+
171
+ /**
172
+ * @param $message
173
+ */
174
+ public function _log( $message ) {
175
+ $formatted_message = is_scalar( $message ) ? $message : json_encode( $message );
176
+
177
+ $this->logger->debug( $formatted_message, 'WCS Tax' );
178
+ }
179
+
180
+ /**
181
+ * Calculate tax / totals using TaxJar at checkout
182
+ *
183
+ * Unchanged from the TaxJar plugin.
184
+ * See: https://github.com/taxjar/taxjar-woocommerce-plugin/blob/82bf7c587/includes/class-wc-taxjar-integration.php#L475
185
+ *
186
+ * @return void
187
+ */
188
+ public function calculate_totals( $wc_cart_object ) {
189
+ global $woocommerce;
190
+
191
+ // Get all of the required customer params
192
+ $taxable_address = $woocommerce->customer->get_taxable_address(); // returns unassociated array
193
+ $taxable_address = is_array( $taxable_address ) ? $taxable_address : array();
194
+
195
+ $to_country = isset( $taxable_address[0] ) && ! empty( $taxable_address[0] ) ? $taxable_address[0] : false;
196
+ $to_state = isset( $taxable_address[1] ) && ! empty( $taxable_address[1] ) ? $taxable_address[1] : false;
197
+ $to_zip = isset( $taxable_address[2] ) && ! empty( $taxable_address[2] ) ? $taxable_address[2] : false;
198
+ $to_city = isset( $taxable_address[3] ) && ! empty( $taxable_address[3] ) ? $taxable_address[3] : false;
199
+ $line_items = array();
200
+ $cart_taxes = array();
201
+
202
+ foreach ( $wc_cart_object->get_cart() as $cart_item_key => $cart_item ) {
203
+ $product = $cart_item['data'];
204
+ $id = $product->get_id();
205
+ $quantity = $cart_item['quantity'];
206
+ $unit_price = $product->get_price();
207
+ $line_subtotal = $cart_item['line_subtotal'];
208
+ $discount = $line_subtotal - $cart_item['line_total'];
209
+ $tax_class = explode( '-', $product->get_tax_class() );
210
+ $tax_code = '';
211
+
212
+ if ( ! $product->is_taxable() ) {
213
+ $tax_code = '99999';
214
+ }
215
+
216
+ if ( isset( $tax_class[1] ) && is_numeric( $tax_class[1] ) ) {
217
+ $tax_code = $tax_class[1];
218
+ }
219
+
220
+ if ( $unit_price && $line_subtotal ) {
221
+ array_push($line_items, array(
222
+ 'id' => $id,
223
+ 'quantity' => $quantity,
224
+ 'product_tax_code' => $tax_code,
225
+ 'unit_price' => $unit_price,
226
+ 'discount' => $discount,
227
+ ));
228
+ }
229
+ }
230
+
231
+ $this->calculate_tax( array(
232
+ 'to_city' => $to_city,
233
+ 'to_state' => $to_state,
234
+ 'to_country' => $to_country,
235
+ 'to_zip' => $to_zip,
236
+ 'shipping_amount' => $woocommerce->shipping->shipping_total,
237
+ 'line_items' => $line_items,
238
+ ) );
239
+
240
+ foreach ( $this->line_items as $product_id => $line_item ) {
241
+ if ( isset( $cart_taxes[ $this->rate_ids[ $product_id ] ] ) ) {
242
+ $cart_taxes[ $this->rate_ids[ $product_id ] ] += $line_item->tax_collectable;
243
+ } else {
244
+ $cart_taxes[ $this->rate_ids[ $product_id ] ] = $line_item->tax_collectable;
245
+ }
246
+ }
247
+
248
+ // Store the rate ID and the amount on the cart's totals
249
+ $wc_cart_object->tax_total = $this->item_collectable;
250
+ $wc_cart_object->shipping_tax_total = $this->shipping_collectable;
251
+ $wc_cart_object->taxes = $cart_taxes;
252
+
253
+ if ( isset( $this->rate_ids['shipping'] ) ) {
254
+ $wc_cart_object->shipping_taxes = array(
255
+ $this->rate_ids['shipping'] => $this->shipping_collectable,
256
+ );
257
+ }
258
+
259
+ foreach ( $wc_cart_object->get_cart() as $cart_item_key => $cart_item ) {
260
+ $product = $cart_item['data'];
261
+ if ( isset( $this->line_items[ $product->get_id() ] ) ) {
262
+ $wc_cart_object->cart_contents[ $cart_item_key ]['line_tax'] = $this->line_items[ $product->get_id() ]->tax_collectable;
263
+ }
264
+ }
265
+ }
266
+
267
+ /**
268
+ * Calculate tax / totals using TaxJar for backend orders
269
+ *
270
+ * Unchanged from the TaxJar plugin.
271
+ * See: https://github.com/taxjar/taxjar-woocommerce-plugin/blob/82bf7c587/includes/class-wc-taxjar-integration.php#L569
272
+ *
273
+ * @return void
274
+ */
275
+ public function calculate_backend_totals( $order_id ) {
276
+ $order = wc_get_order( $order_id );
277
+ $to_country = isset( $_POST['country'] ) ? strtoupper( wc_clean( $_POST['country'] ) ) : false;
278
+ $to_state = isset( $_POST['state'] ) ? strtoupper( wc_clean( $_POST['state'] ) ) : false;
279
+ $to_zip = isset( $_POST['postcode'] ) ? strtoupper( wc_clean( $_POST['postcode'] ) ) : false;
280
+ $to_city = isset( $_POST['city'] ) ? strtoupper( wc_clean( $_POST['city'] ) ) : false;
281
+ $line_items = array();
282
+
283
+ if ( method_exists( $order, 'get_shipping_total' ) ) {
284
+ $shipping = $order->get_shipping_total(); // Woo 3.0+
285
+ } else {
286
+ $shipping = $order->get_total_shipping(); // Woo 2.6
287
}
288
289
+ foreach ( $order->get_items() as $item ) {
290
+ if ( is_object( $item ) ) { // Woo 3.0+
291
+ $id = $item->get_product_id();
292
+ $quantity = $item->get_quantity();
293
+ $discount = floatval( wc_format_decimal( ( $item->get_subtotal() - $item->get_total() ) / $quantity ) );
294
+ $tax_class = explode( '-', $item->get_tax_class() );
295
+ } else { // Woo 2.6
296
+ $id = $item['product_id'];
297
+ $quantity = $item['qty'];
298
+ $discount = floatval( wc_format_decimal( ( $item['line_subtotal'] - $item['line_total'] ) / $quantity ) );
299
+ $tax_class = explode( '-', $item['tax_class'] );
300
+ }
301
+
302
+ $product = wc_get_product( $id );
303
+ $unit_price = $product->get_price();
304
+ $tax_code = '';
305
+
306
+ if ( ! $product->is_taxable() ) {
307
+ $tax_code = '99999';
308
+ }
309
+
310
+ if ( isset( $tax_class[1] ) && is_numeric( $tax_class[1] ) ) {
311
+ $tax_code = $tax_class[1];
312
+ }
313
+
314
+ if ( $unit_price ) {
315
+ array_push($line_items, array(
316
+ 'id' => $id,
317
+ 'quantity' => $quantity,
318
+ 'product_tax_code' => $tax_code,
319
+ 'unit_price' => $unit_price,
320
+ 'discount' => $discount,
321
+ ));
322
+ }
323
+ }
324
+
325
+ $this->calculate_tax( array(
326
+ 'to_city' => $to_city,
327
+ 'to_state' => $to_state,
328
+ 'to_country' => $to_country,
329
+ 'to_zip' => $to_zip,
330
+ 'shipping_amount' => $shipping,
331
+ 'line_items' => $line_items,
332
) );
333
334
+ // Add tax rates manually for Woo 3.0+
335
+ // Woo 2.6 adds the rates automatically
336
+ foreach ( $order->get_items() as $item ) {
337
+ if ( is_object( $item ) ) { // Woo 3.0+
338
+ $product_id = $item->get_product_id();
339
+ }
340
+
341
+ if ( isset( $this->rate_ids[ $product_id ] ) ) {
342
+ $rate_id = $this->rate_ids[ $product_id ];
343
+
344
+ if ( class_exists( 'WC_Order_Item_Tax' ) ) { // Woo 3.0+
345
+ $item_tax = new WC_Order_Item_Tax();
346
+ $item_tax->set_rate( $rate_id );
347
+ $item_tax->set_order_id( $order_id );
348
+ $item_tax->save();
349
+ }
350
+ }
351
+ }
352
+ }
353
+
354
+ /**
355
+ * Set customer zip code and state to store if local shipping option set
356
+ *
357
+ * Unchanged from the TaxJar plugin.
358
+ * See: https://github.com/taxjar/taxjar-woocommerce-plugin/blob/82bf7c587/includes/class-wc-taxjar-integration.php#L653
359
+ *
360
+ * @return array
361
+ */
362
+ public function append_base_address_to_customer_taxable_address( $address ) {
363
+ $store_settings = $this->get_store_settings();
364
+ $tax_based_on = '';
365
+
366
+ list( $country, $state, $postcode, $city ) = $address;
367
+
368
+ // See WC_Customer get_taxable_address()
369
+ // wc_get_chosen_shipping_method_ids() available since Woo 2.6.2+
370
+ if ( function_exists( 'wc_get_chosen_shipping_method_ids' ) ) {
371
+ if ( true === apply_filters( 'woocommerce_apply_base_tax_for_local_pickup', true ) && sizeof( array_intersect( wc_get_chosen_shipping_method_ids(), apply_filters( 'woocommerce_local_pickup_methods', array( 'legacy_local_pickup', 'local_pickup' ) ) ) ) > 0 ) {
372
+ $tax_based_on = 'base';
373
+ }
374
+ } else {
375
+ if ( true === apply_filters( 'woocommerce_apply_base_tax_for_local_pickup', true ) && sizeof( array_intersect( WC()->session->get( 'chosen_shipping_methods', array() ), apply_filters( 'woocommerce_local_pickup_methods', array( 'legacy_local_pickup', 'local_pickup' ) ) ) ) > 0 ) {
376
+ $tax_based_on = 'base';
377
+ }
378
+ }
379
+
380
+ if ( 'base' == $tax_based_on ) {
381
+ $postcode = $store_settings['taxjar_zip_code_setting'];
382
+ $city = strtoupper( $store_settings['taxjar_city_setting'] );
383
+ }
384
+
385
+ return array( $country, $state, $postcode, $city );
386
}
387
388
+ /**
389
+ * Calculate sales tax using SmartCalcs
390
+ *
391
+ * Direct from the TaxJar plugin, without Nexus check.
392
+ * See: https://github.com/taxjar/taxjar-woocommerce-plugin/blob/82bf7c587/includes/class-wc-taxjar-integration.php#L256
393
+ *
394
+ *
395
+ * @return void
396
+ */
397
+ public function calculate_tax( $options = array() ) {
398
+ global $woocommerce;
399
+
400
+ $this->_log( ':::: TaxJar Plugin requested ::::' );
401
+
402
+ // Process $options array and turn them into variables
403
+ $options = is_array( $options ) ? $options : array();
404
+
405
+ extract( array_replace_recursive(array(
406
+ 'to_country' => null,
407
+ 'to_state' => null,
408
+ 'to_zip' => null,
409
+ 'to_city' => null,
410
+ 'shipping_amount' => null, // $woocommerce->shipping->shipping_total
411
+ 'line_items' => null
412
+ ), $options) );
413
+
414
+ // Initalize some variables & properties
415
+ $store_settings = $this->get_store_settings();
416
+ $customer = $woocommerce->customer;
417
+
418
+ $this->tax_rate = 0;
419
+ $this->amount_to_collect = 0;
420
+ $this->item_collectable = 0;
421
+ $this->shipping_collectable = 0;
422
+ $this->freight_taxable = 1;
423
+ $this->line_items = array();
424
+ $this->has_nexus = 0;
425
+ $this->tax_source = 'origin';
426
+ $this->rate_ids = array();
427
+
428
+ // Strict conditions to be met before API call can be conducted
429
+ if ( empty( $to_country ) || empty( $to_zip ) || $customer->is_vat_exempt() ) {
430
+ return false;
431
+ }
432
+
433
+ // Setup Vars for API call
434
+ $to_zip = explode( ',' , $to_zip );
435
+ $to_zip = array_shift( $to_zip );
436
+
437
+ $from_country = $store_settings['store_country_setting'];
438
+ $from_state = $store_settings['store_state_setting'];
439
+ $from_zip = $store_settings['taxjar_zip_code_setting'];
440
+ $from_city = $store_settings['taxjar_city_setting'];
441
+ $shipping_amount = is_null( $shipping_amount ) ? 0.0 : $shipping_amount;
442
+
443
+ $this->_log( ':::: TaxJar API called ::::' );
444
+
445
+ $body = array(
446
+ 'from_country' => $from_country,
447
+ 'from_state' => $from_state,
448
+ 'from_city' => $from_city,
449
+ 'from_zip' => $from_zip,
450
+ 'to_country' => $to_country,
451
+ 'to_state' => $to_state,
452
+ 'to_city' => $to_city,
453
+ 'to_zip' => $to_zip,
454
+ 'shipping' => $shipping_amount,
455
+ 'line_items' => $line_items,
456
+ 'plugin' => 'woo',
457
+ );
458
+
459
+ $response = $this->smartcalcs_cache_request( wp_json_encode( $body ) );
460
+
461
+ if ( isset( $response ) ) {
462
+ // Log the response
463
+ $this->_log( 'Received: ' . $response['body'] );
464
+
465
+ // Decode Response
466
+ $taxjar_response = json_decode( $response['body'] );
467
+ $taxjar_response = $taxjar_response->tax;
468
+
469
+ // Update Properties based on Response
470
+ $this->has_nexus = (int) $taxjar_response->has_nexus;
471
+ $this->tax_source = empty( $taxjar_response->tax_source ) ? 'origin' : $taxjar_response->tax_source;
472
+ $this->amount_to_collect = $taxjar_response->amount_to_collect;
473
+ $this->tax_rate = $taxjar_response->rate;
474
+ $this->freight_taxable = (int) $taxjar_response->freight_taxable;
475
+
476
+ if ( ! empty( $taxjar_response->breakdown ) ) {
477
+ if ( ! empty( $taxjar_response->breakdown->shipping ) ) {
478
+ $this->shipping_collectable = $taxjar_response->breakdown->shipping->tax_collectable;
479
+ }
480
+
481
+ if ( ! empty( $taxjar_response->breakdown->line_items ) ) {
482
+ $line_items = array();
483
+ foreach ( $taxjar_response->breakdown->line_items as $line_item ) {
484
+ $line_items[ $line_item->id ] = $line_item;
485
+ }
486
+ $this->line_items = $line_items;
487
+ }
488
+ }
489
+
490
+ $this->item_collectable = $this->amount_to_collect - $this->shipping_collectable;
491
+ }
492
+
493
+ // Remove taxes if they are set somehow and customer is exempt
494
+ if ( $customer->is_vat_exempt() ) {
495
+ $wc_cart_object->remove_taxes();
496
+ } elseif ( $this->has_nexus ) {
497
+ // Use Woo core to find matching rates for taxable address
498
+ $source_zip = 'destination' == $this->tax_source ? $to_zip : $from_zip;
499
+ $source_city = 'destination' == $this->tax_source ? $to_city : $from_city;
500
+
501
+ if ( strtoupper( $to_city ) == strtoupper( $from_city ) ) {
502
+ $source_city = $to_city;
503
+ }
504
+
505
+ $location = array(
506
+ 'to_country' => $to_country,
507
+ 'to_state' => $to_state,
508
+ 'to_zip' => $source_zip,
509
+ 'to_city' => $source_city,
510
);
511
+
512
+ // Add line item tax rates
513
+ foreach ( $this->line_items as $product_id => $line_item ) {
514
+ $product = wc_get_product( $product_id );
515
+ $tax_class = $product->get_tax_class();
516
+ $this->create_or_update_tax_rate( $product_id, $location, $line_item->combined_tax_rate * 100, $tax_class );
517
+ }
518
+
519
+ // Add shipping tax rate
520
+ $this->create_or_update_tax_rate( 'shipping', $location, $this->tax_rate * 100 );
521
+ } // End if().
522
+ } // End calculate_tax().
523
+
524
+ /**
525
+ * Add or update a native WooCommerce tax rate
526
+ *
527
+ * Unchanged from the TaxJar plugin.
528
+ * See: https://github.com/taxjar/taxjar-woocommerce-plugin/blob/82bf7c587/includes/class-wc-taxjar-integration.php#L396
529
+ *
530
+ * @return void
531
+ */
532
+ public function create_or_update_tax_rate( $product_id, $location, $rate, $tax_class = '' ) {
533
+ $tax_rate = array(
534
+ 'tax_rate_country' => $location['to_country'],
535
+ 'tax_rate_state' => $location['to_state'],
536
+ 'tax_rate_name' => sprintf( "%s Tax", $location['to_state'] ),
537
+ 'tax_rate_priority' => 1,
538
+ 'tax_rate_compound' => false,
539
+ 'tax_rate_shipping' => $this->freight_taxable,
540
+ 'tax_rate' => $rate,
541
+ 'tax_rate_class' => $tax_class,
542
+ );
543
+
544
+ $wc_rate = WC_Tax::find_rates( array(
545
+ 'country' => $location['to_country'],
546
+ 'state' => $location['to_state'],
547
+ 'postcode' => $location['to_zip'],
548
+ 'city' => $location['to_city'],
549
+ 'tax_class' => $tax_class,
550
+ ) );
551
+
552
+ if ( ! empty( $wc_rate ) ) {
553
+ $this->_log( ':: Tax Rate Found ::' );
554
+ $this->_log( $wc_rate );
555
+
556
+ // Get the existing ID
557
+ $rate_id = key( $wc_rate );
558
+
559
+ // Update Tax Rates with TaxJar rates ( rates might be coming from a cached taxjar rate )
560
+ $this->_log( ':: Updating Tax Rate To ::' );
561
+ $this->_log( $tax_rate );
562
+
563
+ WC_Tax::_update_tax_rate( $rate_id, $tax_rate );
564
+ } else {
565
+ // Insert a rate if we did not find one
566
+ $this->_log( ':: Adding New Tax Rate ::' );
567
+ $rate_id = WC_Tax::_insert_tax_rate( $tax_rate );
568
+ WC_Tax::_update_tax_rate_postcodes( $rate_id, wc_clean( $location['to_zip'] ) );
569
+ WC_Tax::_update_tax_rate_cities( $rate_id, wc_clean( $location['to_city'] ) );
570
+ }
571
+
572
+ $this->_log( 'Tax Rate ID Set for ' . $product_id . ': ' . $rate_id );
573
+ $this->rate_ids[ $product_id ] = $rate_id;
574
+ }
575
+
576
+ /**
577
+ * Wrap SmartCalcs API requests in a transient-based caching layer.
578
+ *
579
+ * Modified from TaxJar's plugin (removed use of TLC Transients)
580
+ * See: https://github.com/taxjar/taxjar-woocommerce-plugin/blob/82bf7c58/includes/class-wc-taxjar-integration.php#L463
581
+ *
582
+ * @param $json
583
+ *
584
+ * @return mixed|WP_Error
585
+ */
586
+ public function smartcalcs_cache_request( $json ) {
587
+ $cache_key = 'wcs_tax_' . hash( 'md5', $json );
588
+ $response = get_transient( $cache_key );
589
+
590
+ if ( false === $response ) {
591
+ $response = $this->smartcalcs_request( $json );
592
+
593
+ if ( 200 == wp_remote_retrieve_response_code( $response ) ) {
594
+ set_transient( $cache_key, $response, HOUR_IN_SECONDS );
595
+ }
596
}
597
598
+ return $response;
599
+ }
600
+
601
+ /**
602
+ * Make a TaxJar SmartCalcs API request through the WCS proxy.
603
+ *
604
+ * Modified from TaxJar's plugin.
605
+ * See: https://github.com/taxjar/taxjar-woocommerce-plugin/blob/82bf7c58/includes/class-wc-taxjar-integration.php#L440
606
+ *
607
+ * @param $json
608
+ *
609
+ * @return array|WP_Error
610
+ */
611
+ public function smartcalcs_request( $json ) {
612
+ $path = trailingslashit( self::PROXY_PATH ) . 'taxes';
613
+
614
+ $this->_log( 'Requesting: ' . $path . ' - ' . $json );
615
+
616
+ $response = $this->api_client->proxy_request( $path, array(
617
+ 'method' => 'POST',
618
+ 'headers' => array(
619
+ 'Content-Type' => 'application/json',
620
+ ),
621
+ 'body' => $json,
622
+ ) );
623
624
+ if ( is_wp_error( $response ) ) {
625
+ return new WP_Error( 'request', __( 'There was an error retrieving the tax rates. Please check your server configuration.' ) );
626
+ } elseif ( 200 == $response['response']['code'] ) {
627
+ return $response;
628
+ } else {
629
+ $this->_log( 'Received (' . $response['response']['code'] . '): ' . $response['body'] );
630
}
631
+ }
632
+
633
+ /**
634
+ * Configure WooCommerce core tax settings for TaxJar integration.
635
+ *
636
+ * Ported from TaxJar's plugin.
637
+ * See: https://github.com/taxjar/taxjar-woocommerce-plugin/blob/82bf7c58/includes/class-wc-taxjar-integration.php#L66-L91
638
+ */
639
+ public function configure_tax_settings() {
640
+ // If TaxJar is enabled and a user disables taxes we renable them
641
+ update_option( 'woocommerce_calc_taxes', 'yes' );
642
+
643
+ // Users can set either billing or shipping address for tax rates but not shop
644
+ update_option( 'woocommerce_tax_based_on', 'shipping' );
645
+
646
+ // Rate calculations assume tax not included
647
+ update_option( 'woocommerce_prices_include_tax', 'no' );
648
+
649
+ // Don't ever set a default customer address
650
+ update_option( 'woocommerce_default_customer_address', '' );
651
+
652
+ // Use no special handling on shipping taxes, our API handles that
653
+ update_option( 'woocommerce_shipping_tax_class', '' );
654
+
655
+ // API handles rounding precision
656
+ update_option( 'woocommerce_tax_round_at_subtotal', 'no' );
657
+
658
+ // Rates are calculated in the cart assuming tax not included
659
+ update_option( 'woocommerce_tax_display_shop', 'excl' );
660
+
661
+ // TaxJar returns one total amount, not line item amounts
662
+ update_option( 'woocommerce_tax_display_cart', 'excl' );
663
+
664
+ // TaxJar returns one total amount, not line item amounts
665
+ update_option( 'woocommerce_tax_total_display', 'single' );
666
+ }
667
+
668
+ /**
669
+ * Exports existing tax rates to a CSV and clears the table.
670
+ *
671
+ * Ported from TaxJar's plugin.
672
+ * See: https://github.com/taxjar/taxjar-woocommerce-plugin/blob/42cd4cd0/taxjar-woocommerce.php#L75
673
+ */
674
+ public function backup_existing_tax_rates() {
675
+ global $wpdb;
676
+
677
+ // Export Tax Rates
678
+ $rates = $wpdb->get_results( $wpdb->prepare(
679
+ "SELECT * FROM {$wpdb->prefix}woocommerce_tax_rates
680
+ ORDER BY tax_rate_order
681
+ LIMIT %d, %d
682
+ ",
683
+ 0,
684
+ 10000
685
+ ) );
686
+
687
+ ob_start();
688
+ $header =
689
+ __( 'Country Code', 'woocommerce' ) . ',' .
690
+ __( 'State Code', 'woocommerce' ) . ',' .
691
+ __( 'ZIP/Postcode', 'woocommerce' ) . ',' .
692
+ __( 'City', 'woocommerce' ) . ',' .
693
+ __( 'Rate %', 'woocommerce' ) . ',' .
694
+ __( 'Tax Name', 'woocommerce' ) . ',' .
695
+ __( 'Priority', 'woocommerce' ) . ',' .
696
+ __( 'Compound', 'woocommerce' ) . ',' .
697
+ __( 'Shipping', 'woocommerce' ) . ',' .
698
+ __( 'Tax Class', 'woocommerce' ) . "\n";
699
+
700
+ echo $header;
701
+
702
+ foreach ( $rates as $rate ) {
703
+ if ( $rate->tax_rate_country ) {
704
+ echo esc_attr( $rate->tax_rate_country );
705
+ } else {
706
+ echo '*';
707
+ }
708
+
709
+ echo ',';
710
+
711
+ if ( $rate->tax_rate_state ) {
712
+ echo esc_attr( $rate->tax_rate_state );
713
+ } else {
714
+ echo '*';
715
+ }
716
+
717
+ echo ',';
718
+
719
+ $locations = $wpdb->get_col( $wpdb->prepare( "SELECT location_code FROM {$wpdb->prefix}woocommerce_tax_rate_locations WHERE location_type='postcode' AND tax_rate_id = %d ORDER BY location_code", $rate->tax_rate_id ) );
720
+
721
+ if ( $locations ) {
722
+ echo esc_attr( implode( '; ', $locations ) );
723
+ } else {
724
+ echo '*';
725
+ }
726
+
727
+ echo ',';
728
+
729
+ $locations = $wpdb->get_col( $wpdb->prepare( "SELECT location_code FROM {$wpdb->prefix}woocommerce_tax_rate_locations WHERE location_type='city' AND tax_rate_id = %d ORDER BY location_code", $rate->tax_rate_id ) );
730
+ if ( $locations ) {
731
+ echo esc_attr( implode( '; ', $locations ) );
732
+ } else {
733
+ echo '*';
734
+ }
735
+
736
+ echo ',';
737
+
738
+ if ( $rate->tax_rate ) {
739
+ echo esc_attr( $rate->tax_rate );
740
+ } else {
741
+ echo '0';
742
+ }
743
+
744
+ echo ',';
745
+
746
+ if ( $rate->tax_rate_name ) {
747
+ echo esc_attr( $rate->tax_rate_name );
748
+ } else {
749
+ echo '*';
750
+ }
751
+
752
+ echo ',';
753
+
754
+ if ( $rate->tax_rate_priority ) {
755
+ echo esc_attr( $rate->tax_rate_priority );
756
+ } else {
757
+ echo '1';
758
+ }
759
+
760
+ echo ',';
761
+
762
+ if ( $rate->tax_rate_compound ) {
763
+ echo esc_attr( $rate->tax_rate_compound );
764
+ } else {
765
+ echo '0';
766
+ }
767
+
768
+ echo ',';
769
+
770
+ if ( $rate->tax_rate_shipping ) {
771
+ echo esc_attr( $rate->tax_rate_shipping );
772
+ } else {
773
+ echo '0';
774
+ }
775
+
776
+ echo ',';
777
+
778
+ echo "\n";
779
+ } // End foreach().
780
+
781
+ $csv = ob_get_contents();
782
+ ob_end_clean();
783
+ $upload_dir = wp_upload_dir();
784
+ file_put_contents( $upload_dir['basedir'] . '/taxjar-wc_tax_rates-' . date( 'm-d-Y' ) . '-' . time() . '.csv', $csv );
785
786
+ // Delete all tax rates
787
+ $wpdb->query( 'TRUNCATE ' . $wpdb->prefix . 'woocommerce_tax_rates' );
788
+ $wpdb->query( 'TRUNCATE ' . $wpdb->prefix . 'woocommerce_tax_rate_locations' );
789
}
790
}
classes/class-wc-rest-connect-stripe-account-controller.php ADDED
@@ -0,0 +1,39 @@
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ if ( class_exists( 'WC_REST_Connect_Stripe_Account_Controller' ) ) {
8
+ return;
9
+ }
10
+
11
+ class WC_REST_Connect_Stripe_Account_Controller extends WC_REST_Connect_Base_Controller {
12
+ protected $rest_base = 'connect/stripe/account';
13
+ private $stripe;
14
+
15
+ public function __construct( WC_Connect_Stripe $stripe, WC_Connect_API_Client $api_client, WC_Connect_Service_Settings_Store $settings_store, WC_Connect_Logger $logger ) {
16
+ parent::__construct( $api_client, $settings_store, $logger );
17
+ $this->stripe = $stripe;
18
+ }
19
+
20
+ public function post( $request ) {
21
+ $data = $request->get_json_params();
22
+
23
+ $response = $this->stripe->create_account( $data['email'], $data['country'] );
24
+
25
+ if ( is_wp_error( $response ) ) {
26
+ $response->add_data( array(
27
+ 'message' => $response->get_error_message(),
28
+ ), $response->get_error_code() );
29
+
30
+ $this->logger->debug( $response, __CLASS__ );
31
+ return $response;
32
+ }
33
+
34
+ return array(
35
+ 'success' => true,
36
+ 'account_id' => $response->accountId,
37
+ );
38
+ }
39
+ }
classes/class-wc-rest-connect-stripe-oauth-connect-controller.php ADDED
@@ -0,0 +1,39 @@
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ if ( class_exists( 'WC_REST_Connect_Stripe_Oauth_Connect_Controller' ) ) {
8
+ return;
9
+ }
10
+
11
+ class WC_REST_Connect_Stripe_Oauth_Connect_Controller extends WC_REST_Connect_Base_Controller {
12
+ protected $rest_base = 'connect/stripe/oauth/connect';
13
+ private $stripe;
14
+
15
+ public function __construct( WC_Connect_Stripe $stripe, WC_Connect_API_Client $api_client, WC_Connect_Service_Settings_Store $settings_store, WC_Connect_Logger $logger ) {
16
+ parent::__construct( $api_client, $settings_store, $logger );
17
+ $this->stripe = $stripe;
18
+ }
19
+
20
+ public function post( $request ) {
21
+ $data = $request->get_json_params();
22
+
23
+ $response = $this->stripe->connect_oauth( $data['state'], $data['code'] );
24
+
25
+ if ( is_wp_error( $response ) ) {
26
+ $response->add_data( array(
27
+ 'message' => $response->get_error_message(),
28
+ ), $response->get_error_code() );
29
+
30
+ $this->logger->debug( $response, __CLASS__ );
31
+ return $response;
32
+ }
33
+
34
+ return array(
35
+ 'success' => true,
36
+ 'account_id' => $response->accountId,
37
+ );
38
+ }
39
+ }
classes/class-wc-rest-connect-stripe-oauth-init-controller.php ADDED
@@ -0,0 +1,38 @@
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ if ( class_exists( 'WC_REST_Connect_Stripe_Oauth_Init_Controller' ) ) {
8
+ return;
9
+ }
10
+
11
+ class WC_REST_Connect_Stripe_Oauth_Init_Controller extends WC_REST_Connect_Base_Controller {
12
+ protected $rest_base = 'connect/stripe/oauth/init';
13
+ private $stripe;
14
+
15
+ public function __construct( WC_Connect_Stripe $stripe, WC_Connect_API_Client $api_client, WC_Connect_Service_Settings_Store $settings_store, WC_Connect_Logger $logger ) {
16
+ parent::__construct( $api_client, $settings_store, $logger );
17
+ $this->stripe = $stripe;
18
+ }
19
+
20
+ public function post( $request ) {
21
+ $data = $request->get_json_params();
22
+ $response = $this->stripe->get_oauth_url( $data['returnUrl'] );
23
+
24
+ if ( is_wp_error( $response ) ) {
25
+ $response->add_data( array(
26
+ 'message' => $response->get_error_message(),
27
+ ), $response->get_error_code() );
28
+
29
+ $this->logger->debug( $response, __CLASS__ );
30
+ return $response;
31
+ }
32
+
33
+ return array(
34
+ 'success' => true,
35
+ 'oauthUrl' => $response,
36
+ );
37
+ }
38
+ }
dist/woocommerce-services-admin-pointers.js CHANGED
@@ -1 +1 @@
1
- !function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1172)}({1172:function(t,e,n){t.exports=n(602)},313:function(t,e){t.exports=jQuery},602:function(t,e,n){"use strict";var o="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},r=n(313);(0,function(t){return t&&t.__esModule?t:{default:t}}(r).default)(document).ready(function(t){function e(n,r){if(Array.isArray(n)&&n[r]){var i=n[r];if("string"!=typeof i.target||"string"!=typeof i.id||"object"!==o(i.options)||"string"!=typeof i.options.content)return void e(n,r+1);var u=t(i.target),p=t.extend(i.options,{close:function(){t.post(ajaxurl,{pointer:i.id,action:"dismiss-wp-pointer"}),i.dim&&t("#wcs-pointer-page-dimmer").fadeOut(500),e(n,r+1)}});u.pointer(p).pointer("open"),i.dim&&(u.css("z-index",9999),t("body").append('<div id="wcs-pointer-page-dimmer" class="wcs-pointer-page-dimmer"></div>'),t("#wcs-pointer-page-dimmer").fadeIn(500))}}e(wcSevicesAdminPointers,0)})}});
1
+ !function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1173)}({1173:function(t,e,n){t.exports=n(602)},313:function(t,e){t.exports=jQuery},602:function(t,e,n){"use strict";var o="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},r=n(313);(0,function(t){return t&&t.__esModule?t:{default:t}}(r).default)(document).ready(function(t){function e(n,r){if(Array.isArray(n)&&n[r]){var i=n[r];if("string"!=typeof i.target||"string"!=typeof i.id||"object"!==o(i.options)||"string"!=typeof i.options.content)return void e(n,r+1);var u=t(i.target),p=t.extend(i.options,{close:function(){t.post(ajaxurl,{pointer:i.id,action:"dismiss-wp-pointer"}),i.dim&&t("#wcs-pointer-page-dimmer").fadeOut(500),e(n,r+1)}});u.pointer(p).pointer("open"),i.dim&&(u.css("z-index",9999),t("body").append('<div id="wcs-pointer-page-dimmer" class="wcs-pointer-page-dimmer"></div>'),t("#wcs-pointer-page-dimmer").fadeIn(500))}}e(wcSevicesAdminPointers,0)})}});
dist/woocommerce-services-banner.js CHANGED
@@ -1 +1 @@
1
- !function(n){function t(r){if(e[r])return e[r].exports;var c=e[r]={i:r,l:!1,exports:{}};return n[r].call(c.exports,c,c.exports,t),c.l=!0,c.exports}var e={};t.m=n,t.c=e,t.i=function(n){return n},t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=1173)}({1173:function(n,t,e){n.exports=e(603)},313:function(n,t){n.exports=jQuery},603:function(n,t,e){"use strict";var r=e(313),c=function(n){return n&&n.__esModule?n:{default:n}}(r);e(853),(0,c.default)(document).ready(function(n){n(".woocommerce-services__connect-jetpack").one("click",function(t){function e(){return"installed"===wcs_nux_notice.initial_install_status||"uninstalled"===wcs_nux_notice.initial_install_status?n.when().then(function(){return c.html(wcs_nux_notice.translations.activating),n.post(ajaxurl,{action:"woocommerce_services_activate_jetpack",_ajax_nonce:wcs_nux_notice.nonce})}).then(function(t){if("success"!==t)return n.Deferred().reject(t)}):n.Deferred().resolve()}function r(){return n.when().then(function(){return c.html(wcs_nux_notice.translations.connecting),n.post(ajaxurl,{action:"woocommerce_services_get_jetpack_connect_url",_ajax_nonce:wcs_nux_notice.nonce,redirect_url:wcs_nux_notice.redirect_url})}).then(function(n){window.location.href=n})}t.preventDefault();var c=n(this);c.addClass("disabled"),function(){return"uninstalled"===wcs_nux_notice.initial_install_status?n.when().then(function(){return c.html(wp.updates.l10n.installing),wp.updates.installPlugin({slug:"jetpack"})}):n.Deferred().resolve()}().then(e).then(r).fail(function(t){var e=t;t||(e=wcs_nux_notice.translations.defaultError),t&&t.install&&"plugin"===t.install&&(e=wcs_nux_notice.translations.installError),n("<p/>",{class:"woocommerce-services__jetpack-install-error-message",text:e}).insertAfter(c),c.remove()})})})},853:function(n,t){}});
1
+ !function(n){function t(r){if(e[r])return e[r].exports;var c=e[r]={i:r,l:!1,exports:{}};return n[r].call(c.exports,c,c.exports,t),c.l=!0,c.exports}var e={};t.m=n,t.c=e,t.i=function(n){return n},t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=1174)}({1174:function(n,t,e){n.exports=e(603)},313:function(n,t){n.exports=jQuery},603:function(n,t,e){"use strict";var r=e(313),c=function(n){return n&&n.__esModule?n:{default:n}}(r);e(853),(0,c.default)(document).ready(function(n){n(".woocommerce-services__connect-jetpack").one("click",function(t){function e(){return"installed"===wcs_nux_notice.initial_install_status||"uninstalled"===wcs_nux_notice.initial_install_status?n.when().then(function(){return c.html(wcs_nux_notice.translations.activating),n.post(ajaxurl,{action:"woocommerce_services_activate_jetpack",_ajax_nonce:wcs_nux_notice.nonce})}).then(function(t){if("success"!==t)return n.Deferred().reject(t)}):n.Deferred().resolve()}function r(){return n.when().then(function(){return c.html(wcs_nux_notice.translations.connecting),n.post(ajaxurl,{action:"woocommerce_services_get_jetpack_connect_url",_ajax_nonce:wcs_nux_notice.nonce,redirect_url:wcs_nux_notice.redirect_url})}).then(function(n){window.location.href=n})}t.preventDefault();var c=n(this);c.addClass("disabled"),function(){return"uninstalled"===wcs_nux_notice.initial_install_status?n.when().then(function(){return c.html(wp.updates.l10n.installing),wp.updates.installPlugin({slug:"jetpack"})}):n.Deferred().resolve()}().then(e).then(r).fail(function(t){var e=t;t||(e=wcs_nux_notice.translations.defaultError),t&&t.install&&"plugin"===t.install&&(e=wcs_nux_notice.translations.installError),n("<p/>",{class:"woocommerce-services__jetpack-install-error-message",text:e}).insertAfter(c),c.remove()})})})},853:function(n,t){}});
dist/woocommerce-services.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1174)}([function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return Ar.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t;for(t in e)return!1;return!0}function i(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Tt(e,t,n,r,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function _(e){return null==e._pf&&(e._pf=p()),e._pf}function h(e){if(null==e._isValid){var t=_(e),n=vr.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function m(e){var t=f(NaN);return null!=e?d(_(t),e):_(t).userInvalidated=!0,t}function M(e,t){var n,r,a;if(i(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),i(t._i)||(e._i=t._i),i(t._f)||(e._f=t._f),i(t._l)||(e._l=t._l),i(t._strict)||(e._strict=t._strict),i(t._tzm)||(e._tzm=t._tzm),i(t._isUTC)||(e._isUTC=t._isUTC),i(t._offset)||(e._offset=t._offset),i(t._pf)||(e._pf=_(t)),i(t._locale)||(e._locale=t._locale),Sr.length>0)for(n=0;n<Sr.length;n++)r=Sr[n],a=t[r],i(a)||(e[r]=a);return e}function E(e){M(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===gr&&(gr=!0,t.updateOffset(this),gr=!1)}function T(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function A(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=A(t)),n}function v(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&b(e[r])!==b(t[r]))&&i++;return i+o}function S(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function g(e,n){var r=!0;return d(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){for(var a,o=[],i=0;i<arguments.length;i++){if(a="","object"==typeof arguments[i]){a+="\n["+i+"] ";for(var c in arguments[0])a+=c+": "+arguments[0][c]+", ";a=a.slice(0,-2)}else a=arguments[i];o.push(a)}S(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+Error().stack),r=!1}return n.apply(this,arguments)},n)}function y(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),yr[e]||(S(n),yr[e]=!0)}function L(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){var t,n;for(n in e)t=e[n],L(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function N(e,t){var n,r=d({},e);for(n in t)l(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&a(e[n])&&(r[n]=d({},r[n]));return r}function C(e){null!=e&&this.set(e)}function R(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r}function w(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function z(){return this._invalidDate}function I(e){return this._ordinal.replace("%d",e)}function D(e,t,n,r){var a=this._relativeTime[n];return L(a)?a(e,t,n,r):a.replace(/%d/i,e)}function P(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)}function k(e,t){var n=e.toLowerCase();Ir[n]=Ir[n+"s"]=Ir[t]=e}function x(e){return"string"==typeof e?Ir[e]||Ir[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)l(e,n)&&(t=x(n))&&(r[t]=e[n]);return r}function Y(e,t){Dr[e]=t}function $(e){var t=[];for(var n in e)t.push({unit:n,priority:Dr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function W(e,n){return function(r){return null!=r?(q(this,e,r),t.updateOffset(this,n),this):H(this,e)}}function H(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function B(e){return e=x(e),L(this[e])?this[e]():this}function j(e,t){if("object"==typeof e){e=U(e);for(var n=$(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=x(e),L(this[e]))return this[e](t);return this}function F(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+(""+Math.pow(10,Math.max(0,a))).substr(1)+r}function X(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(Ur[e]=a),t&&(Ur[t[0]]=function(){return F(a.apply(this,arguments),t[1],t[2])}),n&&(Ur[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]#x2F;g,""):e.replace(/\\/g,"")}function G(e){var t,n,r=e.match(Pr);for(t=0,n=r.length;t<n;t++)Ur[r[t]]?r[t]=Ur[r[t]]:r[t]=V(r[t]);return function(t){var a,o="";for(a=0;a<n;a++)o+=L(r[a])?r[a].call(t,e):r[a];return o}}function Q(e,t){return e.isValid()?(t=K(t,e.localeData()),xr[t]=xr[t]||G(t),xr[t](e)):e.localeData().invalidDate()}function K(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(kr.lastIndex=0;r>=0&&kr.test(e);)e=e.replace(kr,n),kr.lastIndex=0,r-=1;return e}function J(e,t,n){na[e]=L(t)?t:function(e,r){return e&&n?n:t}}function Z(e,t){return l(na,e)?na[e](t._strict,t._locale):RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\amp;")}function ne(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=b(e)}),n=0;n<e.length;n++)ra[e[n]]=r}function re(e,t){ne(e,function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)})}function ae(e,t,n){null!=t&&l(ra,e)&&ra[e](t,n._a,n,e)}function oe(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ie(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_a).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone}function ce(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_a.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function se(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(a=pa.call(this._shortMonthsParse,i),-1!==a?a:null):(a=pa.call(this._longMonthsParse,i),-1!==a?a:null):"MMM"===t?-1!==(a=pa.call(this._shortMonthsParse,i))?a:(a=pa.call(this._longMonthsParse,i),-1!==a?a:null):-1!==(a=pa.call(this._longMonthsParse,i))?a:(a=pa.call(this._shortMonthsParse,i),-1!==a?a:null)}function ue(e,t,n){var r,a,o;if(this._monthsParseExact)return se.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=RegExp("^"+this.months(a,"").replace(".","")+"quot;,"i"),this._shortMonthsParse[r]=RegExp("^"+this.monthsShort(a,"").replace(".","")+"quot;,"i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function le(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+#x2F;.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),!c(t))return e;return n=Math.min(e.date(),oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function de(e){return null!=e?(le(this,e),t.updateOffset(this,!0),this):H(this,"Month")}function fe(){return oe(this.year(),this.month())}function pe(e){return this._monthsParseExact?(l(this,"_monthsRegex")||he.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Ma),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function _e(e){return this._monthsParseExact?(l(this,"_monthsRegex")||he.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Ea),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function he(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=te(r[t]),a[t]=te(a[t]);for(t=0;t<24;t++)o[t]=te(o[t]);this._monthsRegex=RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+r.join("|")+")","i")}function me(e){return Me(e)?366:365}function Me(e){return e%4==0&&e%100!=0||e%400==0}function Ee(){return Me(this.year())}function Te(e,t,n,r,a,o,i){var c=new Date(e,t,n,r,a,o,i);return e<100&&e>=0&&isFinite(c.getFullYear())&&c.setFullYear(e),c}function Ae(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function be(e,t,n){var r=7+t-n;return-(7+Ae(e,0,r).getUTCDay()-t)%7+r-1}function ve(e,t,n,r,a){var o,i,c=(7+n-r)%7,s=be(e,r,a),u=1+7*(t-1)+c+s;return u<=0?(o=e-1,i=me(o)+u):u>me(e)?(o=e+1,i=u-me(e)):(o=e,i=u),{year:o,dayOfYear:i}}function Se(e,t,n){var r,a,o=be(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?(a=e.year()-1,r=i+ge(a,t,n)):i>ge(e.year(),t,n)?(r=i-ge(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function ge(e,t,n){var r=be(e,t,n),a=be(e+1,t,n);return(me(e)-r+a)/7}function ye(e){return Se(e,this._week.dow,this._week.doy).week}function Le(){return this._week.dow}function Oe(){return this._week.doy}function Ne(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ce(e){var t=Se(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Re(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function we(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ze(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone}function Ie(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function De(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Pe(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(a=pa.call(this._weekdaysParse,i),-1!==a?a:null):"ddd"===t?(a=pa.call(this._shortWeekdaysParse,i),-1!==a?a:null):(a=pa.call(this._minWeekdaysParse,i),-1!==a?a:null):"dddd"===t?-1!==(a=pa.call(this._weekdaysParse,i))?a:-1!==(a=pa.call(this._shortWeekdaysParse,i))?a:(a=pa.call(this._minWeekdaysParse,i),-1!==a?a:null):"ddd"===t?-1!==(a=pa.call(this._shortWeekdaysParse,i))?a:-1!==(a=pa.call(this._weekdaysParse,i))?a:(a=pa.call(this._minWeekdaysParse,i),-1!==a?a:null):-1!==(a=pa.call(this._minWeekdaysParse,i))?a:-1!==(a=pa.call(this._weekdaysParse,i))?a:(a=pa.call(this._shortWeekdaysParse,i),-1!==a?a:null)}function ke(e,t,n){var r,a,o;if(this._weekdaysParseExact)return Pe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=RegExp("^"+this.weekdays(a,"").replace(".",".?")+"quot;,"i"),this._shortWeekdaysParse[r]=RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"quot;,"i"),this._minWeekdaysParse[r]=RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"quot;,"i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function xe(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Re(e,this.localeData()),this.add(e-t,"d")):t}function Ue(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ye(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=we(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function $e(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=ga),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function We(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ya),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function He(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=La),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qe(){function e(e,t){return t.length-e.length}var t,n,r,a,o,i=[],c=[],s=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),o=this.weekdays(n,""),i.push(r),c.push(a),s.push(o),u.push(r),u.push(a),u.push(o);for(i.sort(e),c.sort(e),s.sort(e),u.sort(e),t=0;t<7;t++)c[t]=te(c[t]),s[t]=te(s[t]),u[t]=te(u[t]);this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+i.join("|")+")","i")}function Be(){return this.hours()%12||12}function je(){return this.hours()||24}function Fe(e,t){X(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Xe(e,t){return t._meridiemParse}function Ve(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ge(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ke(e){for(var t,n,r,a,o=0;o<e.length;){for(a=Qe(e[o]).split("-"),t=a.length,n=Qe(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=Je(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&v(a,n,!0)>=t-1)break;t--}o++}return null}function Je(t){var r=null;if(!wa[t]&&void 0!==e&&e&&e.exports)try{r=Oa._abbr,n(1043)("./"+t),Ze(r)}catch(e){}return wa[t]}function Ze(e,t){var n;return e&&(n=i(t)?nt(e):et(e,t))&&(Oa=n),Oa._abbr}function et(e,t){if(null!==t){var n=Ra;if(t.abbr=e,null!=wa[e])y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=wa[e]._config;else if(null!=t.parentLocale){if(null==wa[t.parentLocale])return za[t.parentLocale]||(za[t.parentLocale]=[]),za[t.parentLocale].push({name:e,config:t}),null;n=wa[t.parentLocale]._config}return wa[e]=new C(N(n,t)),za[e]&&za[e].forEach(function(e){et(e.name,e.config)}),Ze(e),wa[e]}return delete wa[e],null}function tt(e,t){if(null!=t){var n,r=Ra;null!=wa[e]&&(r=wa[e]._config),t=N(r,t),n=new C(t),n.parentLocale=wa[e],wa[e]=n,Ze(e)}else null!=wa[e]&&(null!=wa[e].parentLocale?wa[e]=wa[e].parentLocale:null!=wa[e]&&delete wa[e]);return wa[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Oa;if(!r(e)){if(t=Je(e))return t;e=[e]}return Ke(e)}function rt(){return Nr(wa)}function at(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[oa]<0||n[oa]>11?oa:n[ia]<1||n[ia]>oe(n[aa],n[oa])?ia:n[ca]<0||n[ca]>24||24===n[ca]&&(0!==n[sa]||0!==n[ua]||0!==n[la])?ca:n[sa]<0||n[sa]>59?sa:n[ua]<0||n[ua]>59?ua:n[la]<0||n[la]>999?la:-1,_(e)._overflowDayOfYear&&(t<aa||t>ia)&&(t=ia),_(e)._overflowWeeks&&-1===t&&(t=da),_(e)._overflowWeekday&&-1===t&&(t=fa),_(e).overflow=t),e}function ot(e){var t,n,r,a,o,i,c=e._i,s=Ia.exec(c)||Da.exec(c);if(s){for(_(e).iso=!0,t=0,n=ka.length;t<n;t++)if(ka[t][1].exec(s[1])){a=ka[t][0],r=!1!==ka[t][2];break}if(null==a)return void(e._isValid=!1);if(s[3]){for(t=0,n=xa.length;t<n;t++)if(xa[t][1].exec(s[3])){o=(s[2]||" ")+xa[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(s[4]){if(!Pa.exec(s[4]))return void(e._isValid=!1);i="Z"}e._f=a+(o||"")+(i||""),ft(e)}else e._isValid=!1}function it(e){var t,n,r,a,o,i,c,s,u={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},l="YXWVUTSRQPONZABCDEFGHIKLM";if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s#x2F;g,""),n=Ya.exec(t)){if(r=n[1]?"ddd"+(5===n[1].length?", ":" "):"",a="D MMM "+(n[2].length>10?"YYYY ":"YY "),o="HH:mm"+(n[4]?":ss":""),n[1]){var d=new Date(n[2]),f=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][d.getDay()];if(n[1].substr(0,3)!==f)return _(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===s?c=" +0000":(s=l.indexOf(n[5][1].toUpperCase())-12,c=(s<0?" -":" +")+(""+s).replace(/^-?/,"0").match(/..#x2F;)[0]+"00");break;case 4:c=u[n[5]];break;default:c=" +0000"}n[5]=c,e._i=n.splice(1).join(""),i=" ZZ",e._f=r+a+o+i,ft(e),_(e).rfc2822=!0}else e._isValid=!1}function ct(e){var n=Ua.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));ot(e),!1===e._isValid&&(delete e._isValid,it(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function st(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function lt(e){var t,n,r,a,o=[];if(!e._d){for(r=ut(e),e._w&&null==e._a[ia]&&null==e._a[oa]&&dt(e),null!=e._dayOfYear&&(a=st(e._a[aa],r[aa]),(e._dayOfYear>me(a)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=Ae(a,0,e._dayOfYear),e._a[oa]=n.getUTCMonth(),e._a[ia]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ca]&&0===e._a[sa]&&0===e._a[ua]&&0===e._a[la]&&(e._nextDay=!0,e._a[ca]=0),e._d=(e._useUTC?Ae:Te).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ca]=24)}}function dt(e){var t,n,r,a,o,i,c,s;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,i=4,n=st(t.GG,e._a[aa],Se(At(),1,4).year),r=st(t.W,1),((a=st(t.E,1))<1||a>7)&&(s=!0);else{o=e._locale._week.dow,i=e._locale._week.doy;var u=Se(At(),o,i);n=st(t.gg,e._a[aa],u.year),r=st(t.w,u.week),null!=t.d?((a=t.d)<0||a>6)&&(s=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(s=!0)):a=o}r<1||r>ge(n,o,i)?_(e)._overflowWeeks=!0:null!=s?_(e)._overflowWeekday=!0:(c=ve(n,r,a,o,i),e._a[aa]=c.year,e._dayOfYear=c.dayOfYear)}function ft(e){if(e._f===t.ISO_8601)return void ot(e);if(e._f===t.RFC_2822)return void it(e);e._a=[],_(e).empty=!0;var n,r,a,o,i,c=""+e._i,s=c.length,u=0;for(a=K(e._f,e._locale).match(Pr)||[],n=0;n<a.length;n++)o=a[n],r=(c.match(Z(o,e))||[])[0],r&&(i=c.substr(0,c.indexOf(r)),i.length>0&&_(e).unusedInput.push(i),c=c.slice(c.indexOf(r)+r.length),u+=r.length),Ur[o]?(r?_(e).empty=!1:_(e).unusedTokens.push(o),ae(o,r,e)):e._strict&&!r&&_(e).unusedTokens.push(o);_(e).charsLeftOver=s-u,c.length>0&&_(e).unusedInput.push(c),e._a[ca]<=12&&!0===_(e).bigHour&&e._a[ca]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[ca]=pt(e._locale,e._a[ca],e._meridiem),lt(e),at(e)}function pt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function _t(e){var t,n,r,a,o;if(0===e._f.length)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)o=0,t=M({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],ft(t),h(t)&&(o+=_(t).charsLeftOver,o+=10*_(t).unusedTokens.length,_(t).score=o,(null==r||o<r)&&(r=o,n=t));d(e,n||t)}function ht(e){if(!e._d){var t=U(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}function mt(e){var t=new E(at(Mt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Mt(e){var t=e._i,n=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),T(t)?new E(at(t)):(s(t)?e._d=t:r(n)?_t(e):n?ft(e):Et(e),h(e)||(e._d=null),e))}function Et(e){var n=e._i;i(n)?e._d=new Date(t.now()):s(n)?e._d=new Date(n.valueOf()):"string"==typeof n?ct(e):r(n)?(e._a=u(n.slice(0),function(e){return parseInt(e,10)}),lt(e)):a(n)?ht(e):c(n)?e._d=new Date(n):t.createFromInputFallback(e)}function Tt(e,t,n,i,c){var s={};return!0!==n&&!1!==n||(i=n,n=void 0),(a(e)&&o(e)||r(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=c,s._l=n,s._i=e,s._f=t,s._strict=i,mt(s)}function At(e,t,n,r){return Tt(e,t,n,r,!1)}function bt(e,t){var n,a;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return At();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}function vt(){return bt("isBefore",[].slice.call(arguments,0))}function St(){return bt("isAfter",[].slice.call(arguments,0))}function gt(e){for(var t in e)if(-1===qa.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<qa.length;++r)if(e[qa[r]]){if(n)return!1;parseFloat(e[qa[r]])!==b(e[qa[r]])&&(n=!0)}return!0}function yt(){return this._isValid}function Lt(){return jt(NaN)}function Ot(e){var t=U(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||0,i=t.day||0,c=t.hour||0,s=t.minute||0,u=t.second||0,l=t.millisecond||0;this._isValid=gt(t),this._milliseconds=+l+1e3*u+6e4*s+1e3*c*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=nt(),this._bubble()}function Nt(e){return e instanceof Ot}function Ct(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,t){X(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)})}function wt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],a=(r+"").match(Ba)||["-",0,0],o=60*a[1]+b(a[2]);return 0===o?0:"+"===a[0]?o:-o}function zt(e,n){var r,a;return n._isUTC?(r=n.clone(),a=(T(e)||s(e)?e.valueOf():At(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+a),t.updateOffset(r,!1),r):At(e).local()}function It(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Dt(e,n,r){var a,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=wt(Zr,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&n&&(a=It(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),o!==e&&(!n||this._changeInProgress?Qt(this,jt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:It(this)}function Pt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function kt(e){return this.utcOffset(0,e)}function xt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(It(this),"m")),this}function Ut(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=wt(Jr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Yt(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function $t(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Wt(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(M(e,this),e=Mt(e),e._a){var t=e._isUTC?f(e._a):At(e._a);this._isDSTShifted=this.isValid()&&v(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ht(){return!!this.isValid()&&!this._isUTC}function qt(){return!!this.isValid()&&this._isUTC}function Bt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function jt(e,t){var n,r,a,o=e,i=null;return Nt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)?(o={},t?o[t]=e:o.milliseconds=e):(i=ja.exec(e))?(n="-"===i[1]?-1:1,o={y:0,d:b(i[ia])*n,h:b(i[ca])*n,m:b(i[sa])*n,s:b(i[ua])*n,ms:b(Ct(1e3*i[la]))*n}):(i=Fa.exec(e))?(n="-"===i[1]?-1:1,o={y:Ft(i[2],n),M:Ft(i[3],n),w:Ft(i[4],n),d:Ft(i[5],n),h:Ft(i[6],n),m:Ft(i[7],n),s:Ft(i[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(a=Vt(At(o.from),At(o.to)),o={},o.ms=a.milliseconds,o.M=a.months),r=new Ot(o),Nt(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function Ft(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Xt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(e,t){var n;return e.isValid()&&t.isValid()?(t=zt(t,e),e.isBefore(t)?n=Xt(e,t):(n=Xt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Gt(e,t){return function(n,r){var a,o;return null===r||isNaN(+r)||(y(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,a=jt(n,r),Qt(this,a,e),this}}function Qt(e,n,r,a){var o=n._milliseconds,i=Ct(n._days),c=Ct(n._months);e.isValid()&&(a=null==a||a,o&&e._d.setTime(e._d.valueOf()+o*r),i&&q(e,"Date",H(e,"Date")+i*r),c&&le(e,H(e,"Month")+c*r),a&&t.updateOffset(e,i||c))}function Kt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Jt(e,n){var r=e||At(),a=zt(r,this).startOf("day"),o=t.calendarFormat(this,a)||"sameElse",i=n&&(L(n[o])?n[o].call(this,r):n[o]);return this.format(i||this.localeData().calendar(o,this,At(r)))}function Zt(){return new E(this)}function en(e,t){var n=T(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&(t=x(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function tn(e,t){var n=T(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&(t=x(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function nn(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function rn(e,t){var n,r=T(e)?e:At(e);return!(!this.isValid()||!r.isValid())&&(t=x(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function an(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function on(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function cn(e,t,n){var r,a,o,i;return this.isValid()?(r=zt(e,this),r.isValid()?(a=6e4*(r.utcOffset()-this.utcOffset()),t=x(t),"year"===t||"month"===t||"quarter"===t?(i=sn(this,r),"quarter"===t?i/=3:"year"===t&&(i/=12)):(o=this-r,i="second"===t?o/1e3:"minute"===t?o/6e4:"hour"===t?o/36e5:"day"===t?(o-a)/864e5:"week"===t?(o-a)/6048e5:o),n?i:A(i)):NaN):NaN}function sn(e,t){var n,r,a=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(a,"months");return t-o<0?(n=e.clone().add(a-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(a+1,"months"),r=(t-o)/(n-o)),-(a+r)||0}function un(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ln(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?Q(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):L(Date.prototype.toISOString)?this.toDate().toISOString():Q(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function dn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+a)}function fn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=Q(this,e);return this.localeData().postformat(n)}function pn(e,t){return this.isValid()&&(T(e)&&e.isValid()||At(e).isValid())?jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _n(e){return this.from(At(),e)}function hn(e,t){return this.isValid()&&(T(e)&&e.isValid()||At(e).isValid())?jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mn(e){return this.to(At(),e)}function Mn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function En(){return this._locale}function Tn(e){switch(e=x(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function An(e){return void 0===(e=x(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function bn(){return this._d.valueOf()-6e4*(this._offset||0)}function vn(){return Math.floor(this.valueOf()/1e3)}function Sn(){return new Date(this.valueOf())}function gn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function yn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ln(){return this.isValid()?this.toISOString():null}function On(){return h(this)}function Nn(){return d({},_(this))}function Cn(){return _(this).overflow}function Rn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function wn(e,t){X(0,[e,e.length],0,t)}function zn(e){return kn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function In(e){return kn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Dn(){return ge(this.year(),1,4)}function Pn(){var e=this.localeData()._week;return ge(this.year(),e.dow,e.doy)}function kn(e,t,n,r,a){var o;return null==e?Se(this,r,a).year:(o=ge(e,r,a),t>o&&(t=o),xn.call(this,e,t,n,r,a))}function xn(e,t,n,r,a){var o=ve(e,t,n,r,a),i=Ae(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Un(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Yn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function $n(e,t){t[la]=b(1e3*("0."+e))}function Wn(){return this._isUTC?"UTC":""}function Hn(){return this._isUTC?"Coordinated Universal Time":""}function qn(e){return At(1e3*e)}function Bn(){return At.apply(null,arguments).parseZone()}function jn(e){return e}function Fn(e,t,n,r){var a=nt(),o=f().set(r,t);return a[n](o,e)}function Xn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return Fn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Fn(e,r,n,"month");return a}function Vn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var a=nt(),o=e?a._week.dow:0;if(null!=n)return Fn(t,(n+o)%7,r,"day");var i,s=[];for(i=0;i<7;i++)s[i]=Fn(t,(i+o)%7,r,"day");return s}function Gn(e,t){return Xn(e,t,"months")}function Qn(e,t){return Xn(e,t,"monthsShort")}function Kn(e,t,n){return Vn(e,t,n,"weekdays")}function Jn(e,t,n){return Vn(e,t,n,"weekdaysShort")}function Zn(e,t,n){return Vn(e,t,n,"weekdaysMin")}function er(){var e=this._data;return this._milliseconds=ro(this._milliseconds),this._days=ro(this._days),this._months=ro(this._months),e.milliseconds=ro(e.milliseconds),e.seconds=ro(e.seconds),e.minutes=ro(e.minutes),e.hours=ro(e.hours),e.months=ro(e.months),e.years=ro(e.years),this}function tr(e,t,n,r){var a=jt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function nr(e,t){return tr(this,e,t,1)}function rr(e,t){return tr(this,e,t,-1)}function ar(e){return e<0?Math.floor(e):Math.ceil(e)}function or(){var e,t,n,r,a,o=this._milliseconds,i=this._days,c=this._months,s=this._data;return o>=0&&i>=0&&c>=0||o<=0&&i<=0&&c<=0||(o+=864e5*ar(cr(c)+i),i=0,c=0),s.milliseconds=o%1e3,e=A(o/1e3),s.seconds=e%60,t=A(e/60),s.minutes=t%60,n=A(t/60),s.hours=n%24,i+=A(n/24),a=A(ir(i)),c+=a,i-=ar(cr(a)),r=A(c/12),c%=12,s.days=i,s.months=c,s.years=r,this}function ir(e){return 4800*e/146097}function cr(e){return 146097*e/4800}function sr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=x(e))||"year"===e)return t=this._days+r/864e5,n=this._months+ir(t),"month"===e?n:n/12;switch(t=this._days+Math.round(cr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw Error("Unknown unit "+e)}}function ur(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function lr(e){return function(){return this.as(e)}}function dr(e){return e=x(e),this.isValid()?this[e+"s"]():NaN}function fr(e){return function(){return this.isValid()?this._data[e]:NaN}}function pr(){return A(this.days()/7)}function _r(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function hr(e,t,n){var r=jt(e).abs(),a=Ao(r.as("s")),o=Ao(r.as("m")),i=Ao(r.as("h")),c=Ao(r.as("d")),s=Ao(r.as("M")),u=Ao(r.as("y")),l=a<=bo.ss&&["s",a]||a<bo.s&&["ss",a]||o<=1&&["m"]||o<bo.m&&["mm",o]||i<=1&&["h"]||i<bo.h&&["hh",i]||c<=1&&["d"]||c<bo.d&&["dd",c]||s<=1&&["M"]||s<bo.M&&["MM",s]||u<=1&&["y"]||["yy",u];return l[2]=t,l[3]=+e>0,l[4]=n,_r.apply(null,l)}function mr(e){return void 0===e?Ao:"function"==typeof e&&(Ao=e,!0)}function Mr(e,t){return void 0!==bo[e]&&(void 0===t?bo[e]:(bo[e]=t,"s"===e&&(bo.ss=t-1),!0))}function Er(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=hr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Tr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=vo(this._milliseconds)/1e3,a=vo(this._days),o=vo(this._months);e=A(r/60),t=A(e/60),r%=60,e%=60,n=A(o/12),o%=12;var i=n,c=o,s=a,u=t,l=e,d=r,f=this.asSeconds();return f?(f<0?"-":"")+"P"+(i?i+"Y":"")+(c?c+"M":"")+(s?s+"D":"")+(u||l||d?"T":"")+(u?u+"H":"")+(l?l+"M":"")+(d?d+"S":""):"P0D"}var Ar,br;br=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var vr=br,Sr=t.momentProperties=[],gr=!1,yr={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Lr;Lr=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var Or,Nr=Lr,Cr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Rr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},wr=/\d{1,2}/,zr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ir={},Dr={},Pr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,kr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,xr={},Ur={},Yr=/\d/,$r=/\d\d/,Wr=/\d{3}/,Hr=/\d{4}/,qr=/[+-]?\d{6}/,Br=/\d\d?/,jr=/\d\d\d\d?/,Fr=/\d\d\d\d\d\d?/,Xr=/\d{1,3}/,Vr=/\d{1,4}/,Gr=/[+-]?\d{1,6}/,Qr=/\d+/,Kr=/[+-]?\d+/,Jr=/Z|[+-]\d\d:?\d\d/gi,Zr=/Z|[+-]\d\d(?::?\d\d)?/gi,ea=/[+-]?\d+(\.\d{1,3})?/,ta=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,na={},ra={},aa=0,oa=1,ia=2,ca=3,sa=4,ua=5,la=6,da=7,fa=8;Or=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};var pa=Or;X("M",["MM",2],"Mo",function(){return this.month()+1}),X("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),X("MMMM",0,0,function(e){return this.localeData().months(this,e)}),k("month","M"),Y("month",8),J("M",Br),J("MM",Br,$r),J("MMM",function(e,t){return t.monthsShortRegex(e)}),J("MMMM",function(e,t){return t.monthsRegex(e)}),ne(["M","MM"],function(e,t){t[oa]=b(e)-1}),ne(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[oa]=a:_(n).invalidMonth=e});var _a=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ha="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ma="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ma=ta,Ea=ta;X("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),X(0,["YY",2],0,function(){return this.year()%100}),X(0,["YYYY",4],0,"year"),X(0,["YYYYY",5],0,"year"),X(0,["YYYYYY",6,!0],0,"year"),k("year","y"),Y("year",1),J("Y",Kr),J("YY",Br,$r),J("YYYY",Vr,Hr),J("YYYYY",Gr,qr),J("YYYYYY",Gr,qr),ne(["YYYYY","YYYYYY"],aa),ne("YYYY",function(e,n){n[aa]=2===e.length?t.parseTwoDigitYear(e):b(e)}),ne("YY",function(e,n){n[aa]=t.parseTwoDigitYear(e)}),ne("Y",function(e,t){t[aa]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var Ta=W("FullYear",!0);X("w",["ww",2],"wo","week"),X("W",["WW",2],"Wo","isoWeek"),k("week","w"),k("isoWeek","W"),Y("week",5),Y("isoWeek",5),J("w",Br),J("ww",Br,$r),J("W",Br),J("WW",Br,$r),re(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=b(e)});var Aa={dow:0,doy:6};X("d",0,"do","day"),X("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),X("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),X("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),X("e",0,0,"weekday"),X("E",0,0,"isoWeekday"),k("day","d"),k("weekday","e"),k("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),J("d",Br),J("e",Br),J("E",Br),J("dd",function(e,t){return t.weekdaysMinRegex(e)}),J("ddd",function(e,t){return t.weekdaysShortRegex(e)}),J("dddd",function(e,t){return t.weekdaysRegex(e)}),re(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:_(n).invalidWeekday=e}),re(["d","e","E"],function(e,t,n,r){t[r]=b(e)});var ba="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),va="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Sa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ga=ta,ya=ta,La=ta;X("H",["HH",2],0,"hour"),X("h",["hh",2],0,Be),X("k",["kk",2],0,je),X("hmm",0,0,function(){return""+Be.apply(this)+F(this.minutes(),2)}),X("hmmss",0,0,function(){return""+Be.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),X("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),X("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),Fe("a",!0),Fe("A",!1),k("hour","h"),Y("hour",13),J("a",Xe),J("A",Xe),J("H",Br),J("h",Br),J("k",Br),J("HH",Br,$r),J("hh",Br,$r),J("kk",Br,$r),J("hmm",jr),J("hmmss",Fr),J("Hmm",jr),J("Hmmss",Fr),ne(["H","HH"],ca),ne(["k","kk"],function(e,t,n){var r=b(e);t[ca]=24===r?0:r}),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[ca]=b(e),_(n).bigHour=!0}),ne("hmm",function(e,t,n){var r=e.length-2;t[ca]=b(e.substr(0,r)),t[sa]=b(e.substr(r)),_(n).bigHour=!0}),ne("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ca]=b(e.substr(0,r)),t[sa]=b(e.substr(r,2)),t[ua]=b(e.substr(a)),_(n).bigHour=!0}),ne("Hmm",function(e,t,n){var r=e.length-2;t[ca]=b(e.substr(0,r)),t[sa]=b(e.substr(r))}),ne("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ca]=b(e.substr(0,r)),t[sa]=b(e.substr(r,2)),t[ua]=b(e.substr(a))});var Oa,Na=/[ap]\.?m?\.?/i,Ca=W("Hours",!0),Ra={calendar:Cr,longDateFormat:Rr,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:wr,relativeTime:zr,months:ha,monthsShort:ma,week:Aa,weekdays:ba,weekdaysMin:Sa,weekdaysShort:va,meridiemParse:Na},wa={},za={},Ia=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?#x2F;,Da=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?#x2F;,Pa=/Z|[+-]\d\d(?::?\d\d)?/,ka=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],xa=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ua=/^\/?Date\((\-?\d+)/i,Ya=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))#x2F;;t.createFromInputFallback=g("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var $a=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Wa=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}),Ha=function(){return Date.now?Date.now():+new Date},qa=["year","quarter","month","week","day","hour","minute","second","millisecond"];Rt("Z",":"),Rt("ZZ",""),J("Z",Zr),J("ZZ",Zr),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=wt(Zr,e)});var Ba=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var ja=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?#x2F;,Fa=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?#x2F;;jt.fn=Ot.prototype,jt.invalid=Lt;var Xa=Gt(1,"add"),Va=Gt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ga=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});X(0,["gg",2],0,function(){return this.weekYear()%100}),X(0,["GG",2],0,function(){return this.isoWeekYear()%100}),wn("gggg","weekYear"),wn("ggggg","weekYear"),wn("GGGG","isoWeekYear"),wn("GGGGG","isoWeekYear"),k("weekYear","gg"),k("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),J("G",Kr),J("g",Kr),J("GG",Br,$r),J("gg",Br,$r),J("GGGG",Vr,Hr),J("gggg",Vr,Hr),J("GGGGG",Gr,qr),J("ggggg",Gr,qr),re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=b(e)}),re(["gg","GG"],function(e,n,r,a){n[a]=t.parseTwoDigitYear(e)}),X("Q",0,"Qo","quarter"),k("quarter","Q"),Y("quarter",7),J("Q",Yr),ne("Q",function(e,t){t[oa]=3*(b(e)-1)}),X("D",["DD",2],"Do","date"),k("date","D"),Y("date",9),J("D",Br),J("DD",Br,$r),J("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ne(["D","DD"],ia),ne("Do",function(e,t){t[ia]=b(e.match(Br)[0],10)});var Qa=W("Date",!0);X("DDD",["DDDD",3],"DDDo","dayOfYear"),k("dayOfYear","DDD"),Y("dayOfYear",4),J("DDD",Xr),J("DDDD",Wr),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),X("m",["mm",2],0,"minute"),k("minute","m"),Y("minute",14),J("m",Br),J("mm",Br,$r),ne(["m","mm"],sa);var Ka=W("Minutes",!1);X("s",["ss",2],0,"second"),k("second","s"),Y("second",15),J("s",Br),J("ss",Br,$r),ne(["s","ss"],ua);var Ja=W("Seconds",!1);X("S",0,0,function(){return~~(this.millisecond()/100)}),X(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),X(0,["SSS",3],0,"millisecond"),X(0,["SSSS",4],0,function(){return 10*this.millisecond()}),X(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),X(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),X(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),X(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),X(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),k("millisecond","ms"),Y("millisecond",16),J("S",Xr,Yr),J("SS",Xr,$r),J("SSS",Xr,Wr);var Za;for(Za="SSSS";Za.length<=9;Za+="S")J(Za,Qr);for(Za="S";Za.length<=9;Za+="S")ne(Za,$n);var eo=W("Milliseconds",!1);X("z",0,0,"zoneAbbr"),X("zz",0,0,"zoneName");var to=E.prototype;to.add=Xa,to.calendar=Jt,to.clone=Zt,to.diff=cn,to.endOf=An,to.format=fn,to.from=pn,to.fromNow=_n,to.to=hn,to.toNow=mn,to.get=B,to.invalidAt=Cn,to.isAfter=en,to.isBefore=tn,to.isBetween=nn,to.isSame=rn,to.isSameOrAfter=an,to.isSameOrBefore=on,to.isValid=On,to.lang=Ga,to.locale=Mn,to.localeData=En,to.max=Wa,to.min=$a,to.parsingFlags=Nn,to.set=j,to.startOf=Tn,to.subtract=Va,to.toArray=gn,to.toObject=yn,to.toDate=Sn,to.toISOString=ln,to.inspect=dn,to.toJSON=Ln,to.toString=un,to.unix=vn,to.valueOf=bn,to.creationData=Rn,to.year=Ta,to.isLeapYear=Ee,to.weekYear=zn,to.isoWeekYear=In,to.quarter=to.quarters=Un,to.month=de,to.daysInMonth=fe,to.week=to.weeks=Ne,to.isoWeek=to.isoWeeks=Ce,to.weeksInYear=Pn,to.isoWeeksInYear=Dn,to.date=Qa,to.day=to.days=xe,to.weekday=Ue,to.isoWeekday=Ye,to.dayOfYear=Yn,to.hour=to.hours=Ca,to.minute=to.minutes=Ka,to.second=to.seconds=Ja,to.millisecond=to.milliseconds=eo,to.utcOffset=Dt,to.utc=kt,to.local=xt,to.parseZone=Ut,to.hasAlignedHourOffset=Yt,to.isDST=$t,to.isLocal=Ht,to.isUtcOffset=qt,to.isUtc=Bt,to.isUTC=Bt,to.zoneAbbr=Wn,to.zoneName=Hn,to.dates=g("dates accessor is deprecated. Use date instead.",Qa),to.months=g("months accessor is deprecated. Use month instead",de),to.years=g("years accessor is deprecated. Use year instead",Ta),to.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Pt),to.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Wt);var no=C.prototype;no.calendar=R,no.longDateFormat=w,no.invalidDate=z,no.ordinal=I,no.preparse=jn,no.postformat=jn,no.relativeTime=D,no.pastFuture=P,no.set=O,no.months=ie,no.monthsShort=ce,no.monthsParse=ue,no.monthsRegex=_e,no.monthsShortRegex=pe,no.week=ye,no.firstDayOfYear=Oe,no.firstDayOfWeek=Le,no.weekdays=ze,no.weekdaysMin=De,no.weekdaysShort=Ie,no.weekdaysParse=ke,no.weekdaysRegex=$e,no.weekdaysShortRegex=We,no.weekdaysMinRegex=He,no.isPM=Ve,no.meridiem=Ge,Ze("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=g("moment.lang is deprecated. Use moment.locale instead.",Ze),t.langData=g("moment.langData is deprecated. Use moment.localeData instead.",nt);var ro=Math.abs,ao=lr("ms"),oo=lr("s"),io=lr("m"),co=lr("h"),so=lr("d"),uo=lr("w"),lo=lr("M"),fo=lr("y"),po=fr("milliseconds"),_o=fr("seconds"),ho=fr("minutes"),mo=fr("hours"),Mo=fr("days"),Eo=fr("months"),To=fr("years"),Ao=Math.round,bo={ss:44,s:45,m:45,h:22,d:26,M:11},vo=Math.abs,So=Ot.prototype;return So.isValid=yt,So.abs=er,So.add=nr,So.subtract=rr,So.as=sr,So.asMilliseconds=ao,So.asSeconds=oo,So.asMinutes=io,So.asHours=co,So.asDays=so,So.asWeeks=uo,So.asMonths=lo,So.asYears=fo,So.valueOf=ur,So._bubble=or,So.get=dr,So.milliseconds=po,So.seconds=_o,So.minutes=ho,So.hours=mo,So.days=Mo,So.weeks=pr,So.months=Eo,So.years=To,So.humanize=Er,So.toISOString=Tr,So.toString=Tr,So.toJSON=Tr,So.locale=Mn,So.localeData=En,So.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Tr),So.lang=Ga,X("X",0,0,"unix"),X("x",0,0,"valueOf"),J("x",Kr),J("X",ea),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(b(e))}),t.version="2.18.1",function(e){Ar=e}(At),t.fn=to,t.min=vt,t.max=St,t.now=Ha,t.utc=f,t.unix=qn,t.months=Gn,t.isDate=s,t.locale=Ze,t.invalid=m,t.duration=jt,t.isMoment=T,t.weekdays=Kn,t.parseZone=Bn,t.localeData=nt,t.isDuration=Nt,t.monthsShort=Qn,t.weekdaysMin=Zn,t.defineLocale=et,t.updateLocale=tt,t.locales=rt,t.weekdaysShort=Jn,t.normalizeUnits=x,t.relativeTimeRounding=mr,t.relativeTimeThreshold=Mr,t.calendarFormat=Kt,t.prototype=to,t})}).call(t,n(201)(e))},function(e,t,n){"use strict";e.exports=n(115)},function(e,t,n){var r=n(13),a=n(124),o=n(36),i=n(60),c=n(46),s=function(e,t,n){var u,l,d,f,p=e&s.F,_=e&s.G,h=e&s.S,m=e&s.P,M=e&s.B,E=_?r:h?r[t]||(r[t]={}):(r[t]||{}).prototype,T=_?a:a[t]||(a[t]={}),A=T.prototype||(T.prototype={});_&&(n=t);for(u in n)l=!p&&E&&void 0!==E[u],d=(l?E:n)[u],f=M&&l?c(d,r):m&&"function"==typeof d?c(Function.call,d):d,E&&i(E,u,d,e&s.U),T[u]!=d&&o(T,u,f),m&&A[u]!=d&&(A[u]=d)};r.core=a,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(870),a=new r;e.exports={moment:a.moment,numberFormat:a.numberFormat.bind(a),translate:a.translate.bind(a),configure:a.configure.bind(a),setLocale:a.setLocale.bind(a),getLocale:a.getLocale.bind(a),getLocaleSlug:a.getLocaleSlug.bind(a),addTranslations:a.addTranslations.bind(a),reRenderTranslations:a.reRenderTranslations.bind(a),registerComponentUpdateHook:a.registerComponentUpdateHook.bind(a),registerTranslateHook:a.registerTranslateHook.bind(a),state:a.state,stateObserver:a.stateObserver,on:a.stateObserver.on.bind(a.stateObserver),off:a.stateObserver.removeListener.bind(a.stateObserver),emit:a.stateObserver.emit.bind(a.stateObserver),mixin:n(872)(a),localize:n(871)(a),$this:a,I18N:r}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,c,s){if(a(t),!e){var u;if(void 0===t)u=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,c,s],d=0;u=Error(t.replace(/%s/g,function(){return l[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var a=function(e){};e.exports=r},function(e,t,n){var r,a;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===a)for(var i in r)o.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}var o={}.hasOwnProperty;void 0!==e&&e.exports?e.exports=n:(r=[],void 0!==(a=function(){return n}.apply(t,r))&&(e.exports=a))}()},function(e,t,n){"use strict";var r=n(29),a=r;e.exports=a},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var a=Error(n);throw a.name="Invariant Violation",a.framesToPop=1,a}e.exports=r},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1120),a=n(585),o=n(1121);n.d(t,"Provider",function(){return r.a}),n.d(t,"createProvider",function(){return r.b}),n.d(t,"connectAdvanced",function(){return a.a}),n.d(t,"connect",function(){return o.a})},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,s=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var l in n)o.call(n,l)&&(s[l]=n[l]);if(a){c=a(n);for(var d=0;d<c.length;d++)i.call(n,c[d])&&(s[c[d]]=n[c[d]])}}return s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(595),a=n(1144),o=n(1143),i=n(1142),c=n(594);n(596);n.d(t,"createStore",function(){return r.a}),n.d(t,"combineReducers",function(){return a.a}),n.d(t,"bindActionCreators",function(){return o.a}),n.d(t,"applyMiddleware",function(){return i.a}),n.d(t,"compose",function(){return c.a})},function(e,t,n){var r=n(14);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=e.exports=window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";function r(e,t){return 1===e.nodeType&&e.getAttribute(_)===t+""||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function a(e){for(var t;t=e._renderedComponent;)e=t;return e}function o(e,t){var n=a(e);n._hostNode=t,t[m]=n}function i(e){var t=e._hostNode;t&&(delete t[m],e._hostNode=null)}function c(e,t){if(!(e._flags&h.hasCachedChildNodes)){var n=e._renderedChildren,i=t.firstChild;e:for(var c in n)if(n.hasOwnProperty(c)){var s=n[c],u=a(s)._domID;if(0!==u){for(;null!==i;i=i.nextSibling)if(r(i,u)){o(s,i);continue e}d("32",u)}}e._flags|=h.hasCachedChildNodes}}function s(e){if(e[m])return e[m];for(var t=[];!e[m];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[m]);e=t.pop())n=r,t.length&&c(r,e);return n}function u(e){var t=s(e);return null!=t&&t._hostNode===e?t:null}function l(e){if(void 0===e._hostNode&&d("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||d("34"),e=e._hostParent;for(;t.length;e=t.pop())c(e,e._hostNode);return e._hostNode}var d=n(7),f=n(113),p=n(567),_=(n(4),f.ID_ATTRIBUTE_NAME),h=p,m="__reactInternalInstancequot;+Math.random().toString(36).slice(2),M={getClosestInstanceFromNode:s,getInstanceFromNode:u,getNodeFromInstance:l,precacheChildNodes:c,precacheNode:o,uncacheNode:i};e.exports=M},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.confirmReprint=t.closeReprintDialog=t.openReprintDialog=t.confirmRefund=t.closeRefundDialog=t.fetchLabelsStatus=t.openRefundDialog=t.confirmPrintLabel=t.purchaseLabel=t.updatePaperSize=t.updateRate=t.confirmPackages=t.removeItem=t.savePackages=t.setPackageType=t.removePackage=t.addPackage=t.addItems=t.setAddedItem=t.closeAddItem=t.openAddItem=t.setTargetPackage=t.closeItemMove=t.moveItem=t.openItemMove=t.openPackage=t.updatePackageWeight=t.submitAddressForNormalization=t.confirmAddressSuggestion=t.removeIgnoreValidation=t.editAddress=t.selectNormalizedAddress=t.updateAddressValue=t.exitPrintingFlow=t.openPrintingFlow=t.clearAvailableRates=t.submitStep=t.toggleStep=t.fetchLabelsData=t.ADD_ITEMS=t.SET_ADDED_ITEM=t.CLOSE_ADD_ITEM=t.OPEN_ADD_ITEM=t.SAVE_PACKAGES=t.SET_PACKAGE_TYPE=t.REMOVE_PACKAGE=t.ADD_PACKAGE=t.SET_TARGET_PACKAGE=t.CLOSE_ITEM_MOVE=t.MOVE_ITEM=t.OPEN_ITEM_MOVE=t.OPEN_PACKAGE=t.CONFIRM_REPRINT=t.CLOSE_REPRINT_DIALOG=t.OPEN_REPRINT_DIALOG=t.REFUND_RESPONSE=t.REFUND_REQUEST=t.LABEL_STATUS_RESPONSE=t.CLOSE_REFUND_DIALOG=t.OPEN_REFUND_DIALOG=t.CLEAR_AVAILABLE_RATES=t.RATES_RETRIEVAL_COMPLETED=t.SET_RATES=t.RATES_RETRIEVAL_IN_PROGRESS=t.SHOW_PRINT_CONFIRMATION=t.PURCHASE_LABEL_RESPONSE=t.PURCHASE_LABEL_REQUEST=t.UPDATE_PAPER_SIZE=t.UPDATE_RATE=t.UPDATE_PACKAGE_WEIGHT=t.CONFIRM_ADDRESS_SUGGESTION=t.EDIT_ADDRESS=t.SELECT_NORMALIZED_ADDRESS=t.ADDRESS_NORMALIZATION_COMPLETED=t.SET_NORMALIZED_ADDRESS=t.ADDRESS_NORMALIZATION_IN_PROGRESS=t.REMOVE_IGNORE_VALIDATION=t.UPDATE_ADDRESS_VALUE=t.TOGGLE_STEP=t.EXIT_PRINTING_FLOW=t.OPEN_PRINTING_FLOW=t.SET_FETCH_ERROR=t.SET_IS_FETCHING=t.INIT_LABELS=void 0;var o=n(1018),i=a(o),c=n(289),s=a(c),u=n(434),l=a(u),d=n(288),f=a(d),p=n(63),_=a(p),h=n(109),m=a(h),M=n(43),E=a(M),T=n(107),A=a(T),b=n(1023),v=a(b),S=n(191),g=a(S),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L=n(3),O=n(54),N=r(O),C=n(333),R=a(C),w=n(152),z=a(w),I=n(69),D=r(I),P=n(39),k=a(P),x=n(88),U=n(648),Y=a(U),$=n(647),W=a($),H=n(87),q=t.INIT_LABELS="INIT_LABELS",B=t.SET_IS_FETCHING="SET_IS_FETCHING",j=t.SET_FETCH_ERROR="SET_FETCH_ERROR",F=t.OPEN_PRINTING_FLOW="OPEN_PRINTING_FLOW",X=t.EXIT_PRINTING_FLOW="EXIT_PRINTING_FLOW",V=t.TOGGLE_STEP="TOGGLE_STEP",G=t.UPDATE_ADDRESS_VALUE="UPDATE_ADDRESS_VALUE",Q=t.REMOVE_IGNORE_VALIDATION="REMOVE_IGNORE_VALIDATION",K=(t.ADDRESS_NORMALIZATION_IN_PROGRESS="ADDRESS_NORMALIZATION_IN_PROGRESS",t.SET_NORMALIZED_ADDRESS="SET_NORMALIZED_ADDRESS",t.ADDRESS_NORMALIZATION_COMPLETED="ADDRESS_NORMALIZATION_COMPLETED",t.SELECT_NORMALIZED_ADDRESS="SELECT_NORMALIZED_ADDRESS"),J=t.EDIT_ADDRESS="EDIT_ADDRESS",Z=t.CONFIRM_ADDRESS_SUGGESTION="CONFIRM_ADDRESS_SUGGESTION",ee=t.UPDATE_PACKAGE_WEIGHT="UPDATE_PACKAGE_WEIGHT",te=t.UPDATE_RATE="UPDATE_RATE",ne=t.UPDATE_PAPER_SIZE="UPDATE_PAPER_SIZE",re=t.PURCHASE_LABEL_REQUEST="PURCHASE_LABEL_REQUEST",ae=t.PURCHASE_LABEL_RESPONSE="PURCHASE_LABEL_RESPONSE",oe=t.SHOW_PRINT_CONFIRMATION="SHOW_PRINT_CONFIRMATION",ie=(t.RATES_RETRIEVAL_IN_PROGRESS="RATES_RETRIEVAL_IN_PROGRESS",t.SET_RATES="SET_RATES",t.RATES_RETRIEVAL_COMPLETED="RATES_RETRIEVAL_COMPLETED",t.CLEAR_AVAILABLE_RATES="CLEAR_AVAILABLE_RATES"),ce=t.OPEN_REFUND_DIALOG="OPEN_REFUND_DIALOG",se=t.CLOSE_REFUND_DIALOG="CLOSE_REFUND_DIALOG",ue=t.LABEL_STATUS_RESPONSE="LABEL_STATUS_RESPONSE",le=t.REFUND_REQUEST="REFUND_REQUEST",de=t.REFUND_RESPONSE="REFUND_RESPONSE",fe=t.OPEN_REPRINT_DIALOG="OPEN_REPRINT_DIALOG",pe=t.CLOSE_REPRINT_DIALOG="CLOSE_REPRINT_DIALOG",_e=t.CONFIRM_REPRINT="CONFIRM_REPRINT",he=t.OPEN_PACKAGE="OPEN_PACKAGE",me=t.OPEN_ITEM_MOVE="OPEN_ITEM_MOVE",Me=t.MOVE_ITEM="MOVE_ITEM",Ee=t.CLOSE_ITEM_MOVE="CLOSE_ITEM_MOVE",Te=t.SET_TARGET_PACKAGE="SET_TARGET_PACKAGE",Ae=t.ADD_PACKAGE="ADD_PACKAGE",be=t.REMOVE_PACKAGE="REMOVE_PACKAGE",ve=t.SET_PACKAGE_TYPE="SET_PACKAGE_TYPE",Se=t.SAVE_PACKAGES="SAVE_PACKAGES",ge=t.OPEN_ADD_ITEM="OPEN_ADD_ITEM",ye=t.CLOSE_ADD_ITEM="CLOSE_ADD_ITEM",Le=t.SET_ADDED_ITEM="SET_ADDED_ITEM",Oe=t.ADD_ITEMS="ADD_ITEMS",Ne=["origin","destination","packages","rates"],Ce=(t.fetchLabelsData=function(){return function(e,t,n){var r=n.orderId;e({type:B,isFetching:!0}),N.get(N.url.orderLabels(r)).then(function(t){var n=t.formData,r=t.labelsData,a=t.paperSize,o=t.storeOptions,i=t.paymentMethod,c=t.numPaymentMethods;e({type:q,formData:n,labelsData:r,paperSize:a,storeOptions:o,paymentMethod:i,numPaymentMethods:c})}).catch(function(t){e({type:j,error:!0}),console.error(t)}).then(function(){return e({type:B,isFetching:!1})})}},t.toggleStep=function(e){return{type:V,stepName:e}}),Re=function(e){return Promise.all(e.map(function(e){return e.catch(function(e){return e})}))},we=function(e,t,n){var r=Ne[Ne.indexOf(n)+1],a=e.shippingLabel.form;switch(r){case"origin":if(!a.origin.isNormalized||!(0,g.default)(a.origin.values,a.origin.normalized))return"origin";case"destination":if(!a.destination.isNormalized||!(0,g.default)(a.destination.values,a.destination.normalized))return"destination";case"packages":if((0,x.hasNonEmptyLeaves)(t.packages)||!a.packages.all||!Object.keys(a.packages.all).length)return"packages";case"rates":if((0,x.hasNonEmptyLeaves)(t.rates))return"rates"}return null},ze=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=we(t(),(0,k.default)(t(),n),r);a&&!t().shippingLabel.form[a].expanded&&e(Ce(a))},Ie=(t.submitStep=function(e){return function(t,n){var r=n().shippingLabel,a=r.storeOptions;t({type:V,stepName:e}),ze(t,n,a,e)}},function(e){return(0,v.default)(e,["id","box_id","service_id","length","width","height","weight"])}),De=t.clearAvailableRates=function(){return{type:ie}},Pe=function(e,t,n,r){var a=r.orderId,o=t().shippingLabel.form,i=o.origin,c=o.destination,s=o.packages;return(0,W.default)(e,i.values,c.values,(0,A.default)(s.selected,Ie),a).then(n).catch(function(t){console.error(t),e(D.errorNotice(""+t))})},ke=(t.openPrintingFlow=function(){return function(e,t,n){var r=n.orderId,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k.default,o=t().shippingLabel,i=o.storeOptions,c=o.form,s=c,u=s.origin,l=s.destination,d=a(t(),i),f=[];u.ignoreValidation||(0,x.hasNonEmptyLeaves)(d.origin)||u.isNormalized||u.normalizationInProgress||f.push((0,Y.default)(e,u.values,"origin")),(u.ignoreValidation||(0,x.hasNonEmptyLeaves)(d.origin))&&e(Ce("origin")),l.ignoreValidation||(0,x.hasNonEmptyLeaves)(d.destination)||l.isNormalized||l.normalizationInProgress||f.push((0,Y.default)(e,l.values,"destination")),(l.ignoreValidation||(0,x.hasNonEmptyLeaves)(d.destination))&&e(Ce("destination")),Re(f).then(function(){c=t().shippingLabel.form;var n=function(){ze(e,t,i)};if(c.origin.isNormalized&&(0,g.default)(c.origin.values,c.origin.normalized)&&c.destination.isNormalized&&(0,g.default)(c.destination.values,c.destination.normalized)&&(0,E.default)(c.rates.available)&&c.packages.all&&Object.keys(c.packages.all).length&&!(0,x.hasNonEmptyLeaves)(d.packages))return Pe(e,t,n,{orderId:r});(0,m.default)(Ne.map(function(e){return c[e].expanded}))||n()}),e({type:F})}},t.exitPrintingFlow=function(e){return function(t,n){t({type:X,force:e}),n().shippingLabel.form.needsPrintConfirmation&&t(De())}}),xe=(t.updateAddressValue=function(e,t,n){return{type:G,group:e,name:t,value:n}},t.selectNormalizedAddress=function(e,t){return{type:K,group:e,selectNormalized:t}},t.editAddress=function(e){return{type:J,group:e}},t.removeIgnoreValidation=function(e){return{type:Q,group:e}}),Ue=(t.confirmAddressSuggestion=function(e){return function(t,n,r){var a=r.orderId,o=n().shippingLabel.storeOptions;t({type:Z,group:e});var i=function(){ze(t,n,o,e)},c=n(),s=(0,k.default)(c,o);(0,x.hasNonEmptyLeaves)(s.origin)||(0,x.hasNonEmptyLeaves)(s.destination)||(0,x.hasNonEmptyLeaves)(s.packages)||Pe(t,n,i,{orderId:a})}},t.submitAddressForNormalization=function(e){return function(t,n,r){var a=r.orderId,o=n().shippingLabel.storeOptions,i=function(r){if(r){var i=n().shippingLabel.form[e],c=i.values,s=i.normalized,u=i.expanded;if((0,g.default)(c,s)){u&&t(Ce(e));var l=function(){ze(t,n,o,e)},d=(0,k.default)(n(),o);if((0,x.hasNonEmptyLeaves)(d.origin)||(0,x.hasNonEmptyLeaves)(d.destination)||(0,x.hasNonEmptyLeaves)(d.packages))return;Pe(t,n,l,{orderId:a})}}},c=n().shippingLabel.form[e];if(c.ignoreValidation){t(xe(e));var s=(0,k.default)(n(),o);if((0,x.hasNonEmptyLeaves)(s[e]))return;c=n().shippingLabel.form[e]}if(c.isNormalized&&(0,g.default)(c.values,c.normalized))return void i(!0);(0,Y.default)(t,n().shippingLabel.form[e].values,e).then(i).catch(function(e){console.error(e),t(D.errorNotice(""+e))})}},t.updatePackageWeight=function(e,t){return{type:ee,packageId:e,value:t}},t.openPackage=function(e){return{type:he,openedPackageId:e}}),Ye=(t.openItemMove=function(e){return{type:me,movedItemIndex:e}},t.moveItem=function(e,t,n){return{type:Me,originPackageId:e,movedItemIndex:t,targetPackageId:n}}),$e=(t.closeItemMove=function(){return{type:Ee}},t.setTargetPackage=function(e){return{type:Te,targetPackageId:e}},t.openAddItem=function(){return{type:ge}},t.closeAddItem=function(){return{type:ye}},t.setAddedItem=function(e,t,n){return{type:Le,sourcePackageId:e,movedItemIndex:t,added:n}},t.addItems=function(e){return{type:Oe,targetPackageId:e}},t.addPackage=function(){return{type:Ae}},t.removePackage=function(e){return{type:be,packageId:e}}),We=(t.setPackageType=function(e,t){return{type:ve,packageId:e,boxTypeId:t}},t.savePackages=function(){return{type:Se}}),He=(t.removeItem=function(e,t){return function(n,r){n(Ye(e,t,""));var a=r().shippingLabel.form.packages.selected;a[e]&&"individual"===a[e].box_id&&(n($e(e)),n(Ue("")))}},t.confirmPackages=function(){return function(e,t,n){var r=n.orderId,a=t().shippingLabel.storeOptions;e(Ce("packages")),e(We()),Pe(e,t,function(){ze(e,t,a,"packages")},{orderId:r})}},t.updateRate=function(e,t){return{type:te,packageId:e,value:t}},t.updatePaperSize=function(e){return{type:ne,value:e}},function(e,t){return{type:ae,response:e,error:t}}),qe=function(e,t,n,r){e(He(null,!0)),"rest_cookie_invalid_nonce"===n?e(ke(!0)):(e(D.errorNotice(n)),e(De()),Pe(e,t,_.default,{orderId:r}))},Be=function e(t,n,r,a){var o=(0,f.default)(a,{status:"PURCHASE_ERROR"});if(o)return void qe(t,n,o.error,r);if(!(0,l.default)(a,{status:"PURCHASED"}))return void setTimeout(function(){var o=a.map(function(e){return N.get(N.url.labelStatus(r,e.label_id)).then(function(e){return e.label})});Promise.all(o).then(function(a){return e(t,n,r,a)}).catch(function(e){return qe(t,n,e,r)})},1e3);t(He(a,!1));var i=a.map(function(e,t){return{caption:(0,L.translate)("PACKAGE %(num)d (OF %(total)d)",{args:{num:t+1,total:a.length}}),labelId:e.label_id}}),c=n().shippingLabel,s=(0,H.getPrintURL)(c.paperSize,i);"addon"===(0,z.default)()?t({type:oe,printUrl:s}):(0,R.default)(s).then(function(){t(D.successNotice((0,L.translate)("Your shipping label was purchased successfully","Your %(count)d shipping labels were purchased successfully",{count:a.length,args:{count:a.length}})))}).catch(function(e){console.error(e),t(D.errorNotice(""+e))}).then(function(){t(ke(!0)),t(De())})},je=(t.purchaseLabel=function(){return function(e,t,n){var r=n.orderId,a=null,o=null,c=function(e){return a=e},u=function(e){o=e.labels},d=function(n){n?e({type:re}):a?qe(e,t,a,r):Be(e,t,r,o)},p=t().shippingLabel.form,_=[];if(!p.origin.isNormalized){var h=(0,Y.default)(e,p.origin.values,"origin");_.push(h)}if(!p.destination.isNormalized){var m=(0,Y.default)(e,p.destination.values,"destination");_.push(m)}Promise.all(_).then(function(e){if((0,l.default)(e)){var n=t().shippingLabel;p=n.form;var a={async:!0,origin:p.origin.selectNormalized?p.origin.normalized:p.origin.values,destination:p.destination.selectNormalized?p.destination.normalized:p.destination.values,packages:(0,A.default)(p.packages.selected,function(e,t){var n=(0,f.default)(p.rates.available[t].rates,{service_id:p.rates.values[t]});return y({},Ie(e),{shipment_id:p.rates.available[t].shipment_id,rate_id:n.rate_id,service_id:p.rates.values[t],carrier_id:n.carrier_id,service_name:n.title,products:(0,s.default)(e.items.map(function(e){return(0,i.default)(Array(e.quantity),e.product_id)}))})})};d(!0),N.post(N.url.orderLabels(r),a).then(u).catch(c).then(function(){return d(!1)})}}).catch(function(t){console.error(t),e(D.errorNotice(""+t))})}},t.confirmPrintLabel=function(e){return function(t){(0,R.default)(e).then(function(){t(ke(!0)),t(De())}).catch(function(e){return t(D.errorNotice(""+e))})}},t.openRefundDialog=function(e){return{type:ce,labelId:e}},t.fetchLabelsStatus=function(){return function(e,t,n){var r=n.orderId;t().shippingLabel.labels.forEach(function(t){if(!t.statusUpdated){var n=t.label_id,a=null,o=null,i=function(e){return a=e},c=function(e){o=e.label},s=function(t){t||(e({type:ue,labelId:n,response:o,error:a}),a&&e(D.errorNotice(""+a)))};s(!0),N.get(N.url.labelStatus(r,n)).then(c).catch(i).then(function(){return s(!1)})}})}},t.closeRefundDialog=function(){return{type:se}},t.confirmRefund=function(){return function(e,t,n){var r=n.orderId,a=t().shippingLabel.refundDialog.labelId,o=null,i=null,c=function(e){o=e},s=function(e){i=e.refund},u=function(t){t?e({type:le}):(e({type:de,response:i,error:o}),e(o?D.errorNotice(""+o):D.successNotice((0,L.translate)("The refund request has been sent successfully."),{duration:5e3})))};u(!0),N.post(N.url.labelRefund(r,a)).then(s).catch(c).then(function(){return u(!1)})}},t.openReprintDialog=function(e){return{type:fe,labelId:e}},t.closeReprintDialog=function(){return{type:pe}});t.confirmReprint=function(){return function(e,t){e({type:_e});var n=t().shippingLabel,r=n.reprintDialog.labelId;(0,R.default)((0,H.getPrintURL)(t().shippingLabel.paperSize,[{labelId:r}])).catch(function(t){console.error(t),e(D.errorNotice(""+t))}).then(function(){return e(je())})}}},function(e,t,n){var r=n(249)("wks"),a=n(77),o=n(13).Symbol,i="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=i&&o[e]||(i?o:a)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){var r=n(12),a=n(361),o=n(130),i=Object.defineProperty;t.f=n(30)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),a)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(695),o=r(a),i=n(336),c=r(i),s=n(337),u=r(s),l=n(701),d=r(l),f=n(700),p=r(f),_=n(1),h=r(_);Object.defineProperty(t,"__esModule",{value:!0});var m=function(e){function t(){return(0,c.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"needsOffset",value:function(e,t){return!!(0<=["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle","gridicons-reader-follow","gridicons-reader-following"].indexOf(e))&&0==t%18}},{key:"needsOffsetX",value:function(e,t){return!!(0<=["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"].indexOf(e))&&0==t%18}},{key:"needsOffsetY",value:function(e,t){return!!(0<=["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"].indexOf(e))&&0==t%18}},{key:"render",value:function(){var e=this.props,t=e.size,n=e.onClick,r=e.icon,a="gridicons-"+r,o=this.needsOffset(a,t),i=this.needsOffsetX(a,t),c=this.needsOffsetY(a,t),s=void 0,u=["gridicon",a,this.props.className,!!o&&"needs-offset",!!i&&"needs-offset-x",!!c&&"needs-offset-y"].filter(Boolean).join(" ");switch(a){default:s=h.default.createElement("svg",{height:t,width:t});break;case"gridicons-add-image":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M23 4v2h-3v3h-2V6h-3V4h3V1h2v3h3zm-8.5 7c.828 0 1.5-.672 1.5-1.5S15.328 8 14.5 8 13 8.672 13 9.5s.672 1.5 1.5 1.5zm3.5 3.234l-.513-.57c-.794-.885-2.18-.885-2.976 0l-.655.73L9 9l-3 3.333V6h7V4H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-7h-2v3.234z"})));break;case"gridicons-add-outline":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})));break;case"gridicons-add":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})));break;case"gridicons-align-center":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M11 4v12.17l-5.59-5.59L4 12l8 8 8-8-1.41-1.41L13 16.17V4h-2z"})));break;case"gridicons-arrow-left":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})));break;case"gridicons-arrow-right":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})));break;case"gridicons-arrow-up":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})));break;case"gridicons-aside":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M14 20l6-6V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h8zM6 6h12v6h-4c-1.105 0-2 .895-2 2v4H6V6zm10 4H8V8h8v2z"})));break;case"gridicons-attachment":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M14 1c-2.762 0-5 2.238-5 5v10c0 1.657 1.343 3 3 3s2.99-1.343 2.99-3V6H13v10c0 .553-.447 1-1 1-.553 0-1-.447-1-1V6c0-1.657 1.343-3 3-3s3 1.343 3 3v10.125C17 18.887 14.762 21 12 21s-5-2.238-5-5v-5H5v5c0 3.866 3.134 7 7 7s6.99-3.134 6.99-7V6c0-2.762-2.228-5-4.99-5z"})));break;case"gridicons-audio":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})));break;case"gridicons-bell":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M6.14 14.97l2.828 2.827c-.362.362-.862.586-1.414.586-1.105 0-2-.895-2-2 0-.552.224-1.052.586-1.414zm8.867 5.324L14.3 21 3 9.7l.706-.707 1.102.157c.754.108 1.69-.122 2.077-.51l3.885-3.884c2.34-2.34 6.135-2.34 8.475 0s2.34 6.135 0 8.475l-3.885 3.886c-.388.388-.618 1.323-.51 2.077l.157 1.1z"})));break;case"gridicons-block":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})));break;case"gridicons-bold":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M7 5.01h4.547c2.126 0 3.67.302 4.632.906.96.605 1.44 1.567 1.44 2.887 0 .896-.21 1.63-.63 2.205-.42.574-.98.92-1.678 1.036v.103c.95.212 1.637.608 2.057 1.19.42.58.63 1.35.63 2.315 0 1.367-.494 2.434-1.482 3.2-.99.765-2.332 1.148-4.027 1.148H7V5.01zm3 5.936h2.027c.862 0 1.486-.133 1.872-.4.386-.267.578-.708.578-1.323 0-.574-.21-.986-.63-1.236-.42-.25-1.087-.374-1.996-.374H10v3.333zm0 2.523v3.905h2.253c.876 0 1.52-.167 1.94-.502.416-.335.625-.848.625-1.54 0-1.243-.89-1.864-2.668-1.864H10z"})));break;case"gridicons-book":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M4 3h2v18H4zM18 3H7v18h11c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-6V8h6v1zm0-2h-6V6h6v1z"})));break;case"gridicons-bookmark-outline":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M17 5v12.554l-5-2.857-5 2.857V5h10m0-2H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-bookmark":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-briefcase":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M14 15h-4v-2H2v6c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2v-6h-8v2zm6-9h-2V4c0-1.105-.895-2-2-2H8c-1.105 0-2 .895-2 2v2H4c-1.105 0-2 .895-2 2v4h20V8c0-1.105-.895-2-2-2zm-4 0H8V4h8v2z"})));break;case"gridicons-calendar":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})));break;case"gridicons-camera":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M17 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm5-5v11c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2V4h4v1h2l1-2h6l1 2h2c1.1 0 2 .9 2 2zM7.5 9c0-.8-.7-1.5-1.5-1.5S4.5 8.2 4.5 9s.7 1.5 1.5 1.5S7.5 9.8 7.5 9zM19 12c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z"})));break;case"gridicons-caption":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 15l2-2v5c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h13l-2 2H4v12h16v-3zm2.44-8.56l-.88-.88c-.586-.585-1.534-.585-2.12 0L12 13v2H6v2h9v-1l7.44-7.44c.585-.586.585-1.534 0-2.12z"})));break;case"gridicons-cart":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})));break;case"gridicons-chat":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 4h-8c-1.1 0-2 .9-2 2v2h2c1.7 0 3 1.3 3 3v2h2v3.5l3.3-2.3c1.1-.8 1.7-2 1.7-3.3V6c0-1.1-.9-2-2-2z"}),h.default.createElement("path",{d:"M14 11v5c0 1.1-.9 2-2 2H7v3.5l-3.3-2.3c-1.1-.8-1.7-2-1.7-3.3V11c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2z"})));break;case"gridicons-checkmark-circle":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})));break;case"gridicons-checkmark":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})));break;case"gridicons-chevron-down":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M10.837 10.163l-4.6 4.6L10 4h4l.777 2.223-2.144 2.144-.627-2.092-1.17 3.888zm5.495.506L19.244 19H15.82l-1.05-3.5H11.5L5 22l-1.5-1.5 17-17L22 5l-5.668 5.67zm-2.31 2.31l-.032.03.032-.01v-.02z"})));break;case"gridicons-clipboard":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M16 18H8v-2h8v2zm0-6H8v2h8v-2zm2-9h-2v2h2v15H6V5h2V3H6c-1.105 0-2 .895-2 2v15c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-4 2V4c0-1.105-.895-2-2-2s-2 .895-2 2v1c-1.105 0-2 .895-2 2v1h8V7c0-1.105-.895-2-2-2z"})));break;case"gridicons-cloud-download":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-6 7l-4-5h3V8h2v3h3l-4 5z"})));break;case"gridicons-cloud-outline":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M11.5 5c2.336 0 4.304 1.825 4.48 4.154l.142 1.86 1.867-.012h.092C19.698 11.043 21 12.37 21 14c0 .748-.28 1.452-.783 2H3.28c-.156-.256-.28-.59-.28-1 0-1.074.85-1.953 1.915-1.998.06.007.118.012.178.015l2.66.124-.622-2.587C7.044 10.186 7 9.843 7 9.5 7 7.02 9.02 5 11.5 5m0-2C7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5l-.025.002C17.72 5.646 14.922 3 11.5 3z"})));break;case"gridicons-cloud-upload":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})));break;case"gridicons-cloud":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5z"})));break;case"gridicons-code":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M4.83 12l4.58 4.59L8 18l-6-6 6-6 1.41 1.41L4.83 12zm9.76 4.59L16 18l6-6-6-6-1.41 1.41L19.17 12l-4.58 4.59z"})));break;case"gridicons-cog":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 12c0-.568-.06-1.122-.174-1.656l1.834-1.612-2-3.464-2.322.786c-.82-.736-1.787-1.308-2.86-1.657L14 2h-4l-.48 2.396c-1.07.35-2.04.92-2.858 1.657L4.34 5.268l-2 3.464 1.834 1.612C4.06 10.878 4 11.432 4 12s.06 1.122.174 1.656L2.34 15.268l2 3.464 2.322-.786c.82.736 1.787 1.308 2.86 1.657L10 22h4l.48-2.396c1.07-.35 2.038-.92 2.858-1.657l2.322.786 2-3.464-1.834-1.613c.113-.535.174-1.09.174-1.657zm-8 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})));break;case"gridicons-comment":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"})));break;case"gridicons-computer":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})));break;case"gridicons-coupon":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M13 16v2h-2v-2h2zm3-3h2v-2h-2v2zm2 8h-2v2h2v-2zm3-5v2h2v-2h-2zm-1-3c.552 0 1 .448 1 1h2c0-1.657-1.343-3-3-3v2zm1 7c0 .552-.448 1-1 1v2c1.657 0 3-1.343 3-3h-2zm-7 1c-.552 0-1-.448-1-1h-2c0 1.657 1.343 3 3 3v-2zm3.21-5.21c-.78.78-2.047.782-2.828.002l-.002-.002L10 11.41l-1.43 1.44c.28.506.427 1.073.43 1.65C9 16.433 7.433 18 5.5 18S2 16.433 2 14.5 3.567 11 5.5 11c.577.003 1.144.15 1.65.43L8.59 10 7.15 8.57c-.506.28-1.073.427-1.65.43C3.567 9 2 7.433 2 5.5S3.567 2 5.5 2 9 3.567 9 5.5c-.003.577-.15 1.144-.43 1.65L10 8.59l3.88-3.88c.78-.78 2.047-.782 2.828-.002l.002.002-5.3 5.29 5.8 5.79zM5.5 7C6.328 7 7 6.328 7 5.5S6.328 4 5.5 4 4 4.672 4 5.5 4.672 7 5.5 7zM7 14.5c0-.828-.672-1.5-1.5-1.5S4 13.672 4 14.5 4.672 16 5.5 16 7 15.328 7 14.5z"})));break;case"gridicons-create":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M21 11v8c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h8l-2 2H5v14h14v-6l2-2zM7 17h3l7.5-7.5-3-3L7 14v3zm9.94-12.94L15.5 5.5l3 3 1.44-1.44c.585-.585.585-1.535 0-2.12l-.88-.88c-.585-.585-1.535-.585-2.12 0z"})));break;case"gridicons-credit-card":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})));break;case"gridicons-crop":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M22 16h-4V8c0-1.105-.895-2-2-2H8V2H6v4H2v2h4v8c0 1.105.895 2 2 2h8v4h2v-4h4v-2zM8 16V8h8v8H8z"})));break;case"gridicons-cross-circle":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M19.1 4.9C15.2 1 8.8 1 4.9 4.9S1 15.2 4.9 19.1s10.2 3.9 14.1 0 4-10.3.1-14.2zm-4.3 11.3L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8 2.8 2.8-1.4 1.4z"})));break;case"gridicons-cross-small":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})));break;case"gridicons-cross":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("title",null,"gridicons-cross"),h.default.createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"})));break;case"gridicons-custom-post-type":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"})));break;case"gridicons-customize":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M2 6c0-1.505.78-3.08 2-4 0 .845.69 2 2 2 1.657 0 3 1.343 3 3 0 .386-.08.752-.212 1.09.74.594 1.476 1.19 2.19 1.81L8.9 11.98c-.62-.716-1.214-1.454-1.807-2.192C6.753 9.92 6.387 10 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.34-1.34c.607.304 1.283.492 2.008.492 2.485 0 4.5-2.015 4.5-4.5 0-.725-.188-1.4-.493-2.007L18 9l-2-2 3.507-3.507C18.9 3.188 18.225 3 17.5 3 15.015 3 13 5.015 13 7.5c0 .725.188 1.4.493 2.007L3 20l2 2 6.848-6.848c1.885 1.928 3.874 3.753 5.977 5.45l1.425 1.148 1.5-1.5-1.15-1.425c-1.695-2.103-3.52-4.092-5.448-5.977z"})));break;case"gridicons-domains":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm6.918 6h-3.215c-.188-1.424-.42-2.65-.565-3.357 1.593.682 2.916 1.87 3.78 3.357zm-5.904-3.928c.068.352.387 2.038.645 3.928h-3.32c.26-1.89.578-3.576.646-3.928C11.32 4.03 11.656 4 12 4s.68.03 1.014.072zM14 12c0 .598-.043 1.286-.11 2h-3.78c-.067-.714-.11-1.402-.11-2s.043-1.286.11-2h3.78c.067.714.11 1.402.11 2zM8.862 4.643C8.717 5.35 8.485 6.576 8.297 8H5.082c.864-1.487 2.187-2.675 3.78-3.357zM4.262 10h3.822c-.05.668-.084 1.344-.084 2s.033 1.332.085 2H4.263C4.097 13.36 4 12.692 4 12s.098-1.36.263-2zm.82 6h3.215c.188 1.424.42 2.65.565 3.357-1.593-.682-2.916-1.87-3.78-3.357zm5.904 3.928c-.068-.353-.388-2.038-.645-3.928h3.32c-.26 1.89-.578 3.576-.646 3.928-.333.043-.67.072-1.014.072s-.68-.03-1.014-.072zm4.152-.57c.145-.708.377-1.934.565-3.358h3.215c-.864 1.487-2.187 2.675-3.78 3.357zm4.6-5.358h-3.822c.05-.668.084-1.344.084-2s-.033-1.332-.085-2h3.82c.167.64.265 1.308.265 2s-.097 1.36-.263 2z"})));break;case"gridicons-dropdown":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis-circle":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM7.5 13.5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5S9 11.2 9 12s-.7 1.5-1.5 1.5zm4.5 0c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm4.5 0c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5z"})));break;case"gridicons-ellipsis":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M7 12c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2zm12-2c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-7 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2z"})));break;case"gridicons-external":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})));break;case"gridicons-filter":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18.595 4H5.415c-.552-.003-1.003.442-1.006.994-.002.27.104.527.295.716l5.3 5.29v6l4 4V11l5.29-5.29c.392-.39.395-1.022.006-1.414-.186-.188-.44-.295-.705-.296z"})));break;case"gridicons-flag":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})));break;case"gridicons-flip-horizontal":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 18v-5h3v-2h-3V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v5H1v2h3v5c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2zM6 6h12v5H6V6z"})));break;case"gridicons-flip-vertical":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 4h-5V1h-2v3H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h5v3h2v-3h5c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 18V6h5v12H6z"})));break;case"gridicons-folder-multiple":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M4 8c-1.105 0-2 .895-2 2v10c0 1.1.9 2 2 2h14c1.105 0 2-.895 2-2H4V8zm16 10H8c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2h7c1.105 0 2 .895 2 2v8c0 1.105-.895 2-2 2z"})));break;case"gridicons-folder":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})));break;case"gridicons-fullscreen-exit":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("title",null,"gridicons-fullscreen-exit"),h.default.createElement("path",{d:"M14 10V4h2v2.59l3.29-3.29 1.41 1.41L17.41 8H20v2zM4 10V8h2.59l-3.3-3.29 1.42-1.42L8 6.59V4h2v6zm16 4v2h-2.59l3.29 3.29-1.41 1.41L16 17.41V20h-2v-6zm-10 0v6H8v-2.59l-3.29 3.3-1.42-1.42L6.59 16H4v-2z"})));break;case"gridicons-fullscreen":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("title",null,"gridicons-fullscreen"),h.default.createElement("path",{d:"M21 3v6h-2V6.41l-3.29 3.3-1.42-1.42L17.59 5H15V3zM3 3v6h2V6.41l3.29 3.3 1.42-1.42L6.41 5H9V3zm18 18v-6h-2v2.59l-3.29-3.29-1.41 1.41L17.59 19H15v2zM9 21v-2H6.41l3.29-3.29-1.41-1.42L5 17.59V15H3v6z"})));break;case"gridicons-globe":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.93c-3.94-.494-7-3.858-7-7.93l1 1h2v-2h2l3-3V6h-2L9 5v-.41C9.927 4.21 10.94 4 12 4s2.073.212 3 .59V6l-1 1v2l1 1 3.13-3.13c.752.897 1.304 1.964 1.606 3.13H18l-2 2v2l1 1h2l.286.286C18.03 18.06 15.24 20 12 20z"})));break;case"gridicons-grid":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M8 8H4V4h4v4zm6-4h-4v4h4V4zm6 0h-4v4h4V4zM8 10H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4zM8 16H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4z"})));break;case"gridicons-heading":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-heart":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M16.5 3c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-help-outline":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 8c0-2.21-1.79-4-4-4s-4 1.79-4 4h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2c-.552 0-1 .448-1 1v2h2v-1.14c1.722-.447 3-1.998 3-3.86zm-3 6h-2v2h2v-2z"})));break;case"gridicons-help":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 16h-2v-2h2v2zm0-4.14V15h-2v-2c0-.552.448-1 1-1 1.103 0 2-.897 2-2s-.897-2-2-2-2 .897-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.862-1.278 3.413-3 3.86z"})));break;case"gridicons-history":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M2.12 13.526c.742 4.78 4.902 8.47 9.88 8.47 5.5 0 10-4.5 10-9.998S17.5 2 12 2C8.704 2 5.802 3.6 4 6V2H2.003L2 9h7V7H5.8c1.4-1.8 3.702-3 6.202-3C16.4 4 20 7.6 20 11.998s-3.6 8-8 8c-3.877 0-7.13-2.795-7.848-6.472H2.12z"}),h.default.createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})));break;case"gridicons-image-multiple":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})));break;case"gridicons-image":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"})));break;case"gridicons-indent-left":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 20h2V4h-2v16zM2 11h10.172l-2.086-2.086L11.5 7.5 16 12l-4.5 4.5-1.414-1.414L12.172 13H2v-2z"})));break;case"gridicons-indent-right":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M6 4H4v16h2V4zm16 9H11.828l2.086 2.086L12.5 16.5 8 12l4.5-4.5 1.414 1.414L11.828 11H22v2z"})));break;case"gridicons-info-outline":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})));break;case"gridicons-info":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})));break;case"gridicons-ink":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M5 15c0 3.866 3.134 7 7 7s7-3.134 7-7c0-1.387-.41-2.677-1.105-3.765h.007L12 2l-5.903 9.235h.007C5.41 12.323 5 13.613 5 15z"})));break;case"gridicons-institution":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M10.536 5l-.427 2h1.5L9.262 18h-1.5l-.427 2h6.128l.426-2h-1.5l2.347-11h1.5l.427-2"})));break;case"gridicons-layout-blocks":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M21 7h-2V3c0-1.105-.895-2-2-2H7c-1.105 0-2 .895-2 2v2H3c-1.105 0-2 .895-2 2v4c0 1.105.895 2 2 2h2v8c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-2h2c1.105 0 2-.895 2-2V9c0-1.105-.895-2-2-2zm-4 14H7v-8h2c1.105 0 2-.895 2-2V7c0-1.105-.895-2-2-2H7V3h10v4h-2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h2v2zm4-4h-6V9h6v8z"})));break;case"gridicons-layout":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M8 20H5c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2v12c0 1.105-.895 2-2 2zm8-10h4c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2h-4c-1.105 0-2 .895-2 2v3c0 1.105.895 2 2 2zm5 10v-6c0-1.105-.895-2-2-2h-5c-1.105 0-2 .895-2 2v6c0 1.105.895 2 2 2h5c1.105 0 2-.895 2-2z"})));break;case"gridicons-link-break":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M10 11l-2 2H7v-2h3zm9.64-3.64L22 5l-1.5-1.5-17 17L5 22l9-9h3v-2h-1l2-2c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-1.623-.97-3.013-2.36-3.64zM4.36 16.64L6 15c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4v2c0 1.623.97 3.013 2.36 3.64z"})));break;case"gridicons-link":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M17 13H7v-2h10v2zm1-6h-1c-1.63 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-2.21-1.79-4-4-4zM2 11v2c0 2.21 1.79 4 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4z"})));break;case"gridicons-list-checkmark":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M9.5 15.5L5 20l-2.5-2.5 1.06-1.06L5 17.88l3.44-3.44L9.5 15.5zM10 5v2h11V5H10zm0 14h11v-2H10v2zm0-6h11v-2H10v2zM8.44 8.44L5 11.88l-1.44-1.44L2.5 11.5 5 14l4.5-4.5-1.06-1.06zm0-6L5 5.88 3.56 4.44 2.5 5.5 5 8l4.5-4.5-1.06-1.06z"})));break;case"gridicons-list-ordered":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M8 19h13v-2H8v2zm0-6h13v-2H8v2zm0-8v2h13V5H8zm-4.425.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H3.96L2.487 4.915l.6.738.487-.4zm.334 7.764c.474-.426.784-.715.93-.867.145-.153.26-.298.35-.436.087-.138.152-.278.194-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608s-.29-.32-.507-.417c-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067s-.34.11-.49.195c-.15.085-.337.226-.558.423l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.032.304.097.073.064.11.152.11.264 0 .09-.02.176-.055.258-.036.082-.1.18-.192.294-.092.114-.287.328-.586.64L2.42 13.238V14h3.11v-.955H3.91v-.03zm.53 4.746v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.176-.6-.264-1.043-.264-.307 0-.58.033-.816.1s-.47.178-.696.334l.48.773c.293-.183.576-.274.85-.274.147 0 .263.027.35.082s.13.14.13.252c0 .3-.294.45-.882.45h-.27v.87h.264c.217 0 .393.017.527.05.136.03.233.08.294.143.06.064.09.154.09.27 0 .153-.057.265-.173.337-.115.07-.3.106-.554.106-.164 0-.343-.022-.538-.07-.194-.044-.385-.115-.573-.21v.96c.228.088.44.148.637.182.196.033.41.05.64.05.56 0 .998-.114 1.314-.343.315-.228.473-.542.473-.94.002-.585-.356-.923-1.07-1.013z"})));break;case"gridicons-list-unordered":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-location":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M19 9c0-3.866-3.134-7-7-7S5 5.134 5 9c0 1.387.41 2.677 1.105 3.765h-.008C8.457 16.46 12 22 12 22l5.903-9.235h-.007C18.59 11.677 19 10.387 19 9zm-7 3c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})));break;case"gridicons-lock":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 8h-1V7c0-2.757-2.243-5-5-5S7 4.243 7 7v1H6c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V10c0-1.105-.895-2-2-2zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v1H9V7zm4 8.723V18h-2v-2.277c-.595-.346-1-.984-1-1.723 0-1.105.895-2 2-2s2 .895 2 2c0 .738-.405 1.376-1 1.723z"})));break;case"gridicons-mail":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"gridicons-mention":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("title",null,"gridicons-mention"),h.default.createElement("path",{d:"M12 2a10 10 0 0 0 0 20v-2a8 8 0 1 1 8-8v.5a1.5 1.5 0 0 1-3 0V7h-2v1a5 5 0 1 0 1 7 3.5 3.5 0 0 0 6-2.46V12A10 10 0 0 0 12 2zm0 13a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"})));break;case"gridicons-menu":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M9 19h10v-2H9v2zm0-6h6v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-microphone":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("title",null,"gridicons-microphone"),h.default.createElement("path",{d:"M19 9v1a7 7 0 0 1-6 6.92V20h3v2H8v-2h3v-3.08A7 7 0 0 1 5 10V9h2v1a5 5 0 0 0 10 0V9zm-7 4a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v5a3 3 0 0 0 3 3z"})));break;case"gridicons-minus-small":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-money":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M2 5v14h20V5H2zm5 12c0-1.657-1.343-3-3-3v-4c1.657 0 3-1.343 3-3h10c0 1.657 1.343 3 3 3v4c-1.657 0-3 1.343-3 3H7zm5-8c1.1 0 2 1.3 2 3s-.9 3-2 3-2-1.3-2-3 .9-3 2-3z"})));break;case"gridicons-my-sites-horizon":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M10.986 13.928l.762-2.284-1.324-3.63c-.458-.026-.892-.08-.892-.08-.458-.027-.405-.727.054-.7 0 0 1.403.107 2.24.107.888 0 2.265-.107 2.265-.107.46-.027.513.646.055.7 0 0-.46.055-.973.082l2.006 5.966c-.875-.034-1.74-.053-2.6-.06l-.428-1.177-.403 1.17c-.252.002-.508.01-.76.015zm-7.156.393c-.21-.737-.33-1.514-.33-2.32 0-1.232.264-2.402.736-3.46l2.036 5.58c.85-.06 1.69-.104 2.526-.138L6.792 8.015c.512-.027.973-.08.973-.08.458-.055.404-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.036-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .674-.244 1.463-.572 2.51.3.02.604.043.907.066l.798-2.307c.486-1.212.647-2.18.647-3.043 0-.313-.02-.603-.057-.874.662 1.21 1.04 2.6 1.04 4.077 0 .807-.128 1.58-.34 2.32.5.05 1.006.112 1.51.17.205-.798.33-1.628.33-2.49 0-5.523-4.477-10-10-10S2 6.477 2 12c0 .862.125 1.692.33 2.49.5-.057 1.003-.12 1.5-.17zm14.638 3.168C16.676 19.672 14.118 20.5 12 20.5c-1.876 0-4.55-.697-6.463-3.012-.585.048-1.174.1-1.77.16C5.572 20.272 8.578 22 12 22c3.422 0 6.43-1.73 8.232-4.35-.593-.063-1.18-.114-1.764-.162zM12 15.01c-3.715 0-7.368.266-10.958.733.18.41.35.825.506 1.247 3.427-.43 6.91-.68 10.452-.68s7.025.25 10.452.68c.156-.422.327-.836.506-1.246-3.59-.467-7.243-.734-10.958-.734z"})));break;case"gridicons-my-sites":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM3.5 12c0-1.232.264-2.402.736-3.46L8.29 19.65C5.456 18.272 3.5 15.365 3.5 12zm8.5 8.5c-.834 0-1.64-.12-2.4-.345l2.55-7.41 2.613 7.157c.017.042.038.08.06.117-.884.31-1.833.48-2.823.48zm1.172-12.485c.512-.027.973-.08.973-.08.458-.055.404-.728-.054-.702 0 0-1.376.108-2.265.108-.835 0-2.24-.107-2.24-.107-.458-.026-.51.674-.053.7 0 0 .434.055.892.082l1.324 3.63-1.86 5.578-3.096-9.208c.512-.027.973-.08.973-.08.458-.055.403-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.037-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .727-.28 1.572-.646 2.748l-.848 2.833-3.072-9.138zm3.1 11.332l2.597-7.506c.484-1.212.645-2.18.645-3.044 0-.313-.02-.603-.057-.874.664 1.21 1.042 2.6 1.042 4.078 0 3.136-1.7 5.874-4.227 7.347z"})));break;case"gridicons-not-visible":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M1 12s4.188-6 11-6c.947 0 1.84.12 2.678.322L8.36 12.64C8.133 12.14 8 11.586 8 11c0-.937.335-1.787.875-2.47C6.483 9.344 4.66 10.917 3.62 12c.68.707 1.696 1.62 2.98 2.398L5.15 15.85C2.498 14.13 1 12 1 12zm22 0s-4.188 6-11 6c-.946 0-1.836-.124-2.676-.323L5 22l-1.5-1.5 17-17L22 5l-3.147 3.147C21.5 9.87 23 12 23 12zm-2.615.006c-.678-.708-1.697-1.624-2.987-2.403L16 11c0 2.21-1.79 4-4 4l-.947.947c.31.03.624.053.947.053 3.978 0 6.943-2.478 8.385-3.994z"})));break;case"gridicons-notice-outline":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})));break;case"gridicons-notice":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-offline":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("title",null,"gridicons-offline"),h.default.createElement("path",{d:"M10 3h8l-4 6h4L6 21l4-9H6l4-9"})));break;case"gridicons-pages":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})));break;case"gridicons-pause":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"})));break;case"gridicons-pencil":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M13 6l5 5-9.507 9.507c-.686-.686-.69-1.794-.012-2.485l-.002-.003c-.69.676-1.8.673-2.485-.013-.677-.677-.686-1.762-.036-2.455l-.008-.008c-.694.65-1.78.64-2.456-.036L13 6zm7.586-.414l-2.172-2.172c-.78-.78-2.047-.78-2.828 0L14 5l5 5 1.586-1.586c.78-.78.78-2.047 0-2.828zM3 18v3h3c0-1.657-1.343-3-3-3z"})));break;case"gridicons-phone":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})));break;case"gridicons-plugins":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M16 8V3c0-.552-.448-1-1-1s-1 .448-1 1v5h-4V3c0-.552-.448-1-1-1s-1 .448-1 1v5H5v4c0 2.79 1.637 5.193 4 6.317V22h6v-3.683c2.363-1.124 4-3.527 4-6.317V8h-3z"})));break;case"gridicons-plus-small":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("title",null,"gridicons-plus"),h.default.createElement("path",{d:"M21 13h-8v8h-2v-8H3v-2h8V3h2v8h8v2z"})));break;case"gridicons-popout":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M6 7V5c0-1.105.895-2 2-2h11c1.105 0 2 .895 2 2v14c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2v-2h2v2h11V5H8v2H6zm5.5-.5l-1.414 1.414L13.172 11H3v2h10.172l-3.086 3.086L11.5 17.5 17 12l-5.5-5.5z"})));break;case"gridicons-posts":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3c0 1.105-.895 2-2 2H7c-1.105 0-2-.895-2-2v-3H2V9c0-1.105.895-2 2-2h1V5c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2v2h1c1.105 0 2 .895 2 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5z"})));break;case"gridicons-product-downloadable":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zm-6-10v5.17l2.59-2.58L17 14l-5 5-5-5 1.41-1.42L11 15.17V10h2z"})));break;case"gridicons-product-external":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zm-2-9v6h-2v-2.59l-3.29 3.29-1.41-1.41L13.59 13H11v-2h6z"})));break;case"gridicons-product-virtual":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zM7 16.45c0-1.005.815-1.82 1.82-1.82h.09c-.335-1.59.68-3.148 2.27-3.483s3.148.68 3.483 2.27c.02.097.036.195.046.293 1.252-.025 2.29.97 2.314 2.224.017.868-.462 1.67-1.235 2.066H7.87c-.54-.33-.87-.917-.87-1.55z"})));break;case"gridicons-product":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zM9 11h6c0 1.105-.895 2-2 2h-2c-1.105 0-2-.895-2-2z"})));break;case"gridicons-quote":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.77-.692-1.327-.817-.56-.124-1.074-.13-1.54-.022-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1-.345 2.04-.217 3.1.165 1.4.615 2.52 1.35 3.35.732.833 1.646 1.25 2.742 1.25.967 0 1.768-.29 2.402-.876.627-.576.942-1.365.942-2.368v.01z"})));break;case"gridicons-read-more":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M3 5h18v4H3V5zm0 14h18v-4H3v4zm6-6h6v-2H9v2zm-6 0h4v-2H3v2zm14 0h4v-2h-4v2z"})));break;case"gridicons-reader-follow":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M23 16v2h-3v3h-2v-3h-3v-2h3v-3h2v3h3zM20 2v9h-4v3h-3v4H4c-1.1 0-2-.9-2-2V2h18zM8 13v-1H4v1h4zm3-3H4v1h7v-1zm0-2H4v1h7V8zm7-4H4v2h14V4z"})));break;case"gridicons-reader-following":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M23 13.482L15.508 21 12 17.4l1.412-1.388 2.106 2.188 6.094-6.094L23 13.482zm-7.455 1.862L20 10.89V2H2v14c0 1.1.9 2 2 2h4.538l4.913-4.832 2.095 2.176zM8 13H4v-1h4v1zm3-2H4v-1h7v1zm0-2H4V8h7v1zm7-3H4V4h14v2z"})));break;case"gridicons-reader":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M3 4v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4H3zm7 11H5v-1h5v1zm2-2H5v-1h7v1zm0-2H5v-1h7v1zm7 4h-5v-5h5v5zm0-7H5V6h14v2z"})));break;case"gridicons-reblog":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M22.086 9.914L20 7.828V18c0 1.105-.895 2-2 2h-7v-2h7V7.828l-2.086 2.086L14.5 8.5 19 4l4.5 4.5-1.414 1.414zM6 16.172V6h7V4H6c-1.105 0-2 .895-2 2v10.172l-2.086-2.086L.5 15.5 5 20l4.5-4.5-1.414-1.414L6 16.172z"})));break;case"gridicons-redo":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 6v3.586L14.343 5.93C13.17 4.756 11.636 4.17 10.1 4.17s-3.07.585-4.242 1.757c-2.343 2.342-2.343 6.14 0 8.484l5.364 5.364 1.414-1.414L7.272 13c-1.56-1.56-1.56-4.097 0-5.657.755-.755 1.76-1.172 2.828-1.172 1.068 0 2.073.417 2.828 1.173L16.586 11H13v2h7V6h-2z"})));break;case"gridicons-refresh":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"})));break;case"gridicons-refund":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M13.91 2.91L11.83 5H14c4.418 0 8 3.582 8 8h-2c0-3.314-2.686-6-6-6h-2.17l2.09 2.09-1.42 1.41L8 6l1.41-1.41L12.5 1.5l1.41 1.41zM2 12v10h16V12H2zm2 6.56v-3.11c.6-.35 1.1-.85 1.45-1.45h9.1c.35.6.85 1.1 1.45 1.45v3.11c-.593.35-1.085.845-1.43 1.44H5.45c-.35-.597-.85-1.094-1.45-1.44zm6 .44c.828 0 1.5-.895 1.5-2s-.672-2-1.5-2-1.5.895-1.5 2 .672 2 1.5 2z"})));break;case"gridicons-reply":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M14 8H6.828l2.586-2.586L8 4 3 9l5 5 1.414-1.414L6.828 10H14c2.206 0 4 1.794 4 4s-1.794 4-4 4h-2v2h2c3.314 0 6-2.686 6-6s-2.686-6-6-6z"})));break;case"gridicons-resize":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("title",null,"gridicons-resize"),h.default.createElement("path",{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));break;case"gridicons-rotate":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 14v6c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-6c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2zM13.914 2.914L11.828 5H14c4.418 0 8 3.582 8 8h-2c0-3.308-2.692-6-6-6h-2.172l2.086 2.086L12.5 10.5 8 6l1.414-1.414L12.5 1.5l1.414 1.414z"})));break;case"gridicons-scheduled":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M10.498 18l-3.705-3.704 1.415-1.415 2.294 2.295 5.293-5.293 1.415 1.415L10.498 18zM21 6v13c0 1.104-.896 2-2 2H5c-1.104 0-2-.896-2-2V6c0-1.104.896-2 2-2h1V2h2v2h8V2h2v2h1c1.104 0 2 .896 2 2zm-2 2H5v11h14V8z"})));break;case"gridicons-search":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})));break;case"gridicons-share-ios":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M17 8h2c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-9c0-1.105.895-2 2-2h2v2H5v9h14v-9h-2V8zM6.5 5.5l1.414 1.414L11 3.828V14h2V3.828l3.086 3.086L17.5 5.5 12 0 6.5 5.5z"})));break;case"gridicons-share":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 16c-.788 0-1.5.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118c-.053.223-.088.453-.088.692 0 1.657 1.343 3 3 3s3-1.343 3-3-1.343-3-3-3z"})));break;case"gridicons-shipping":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 8h-2V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10h2c0 1.657 1.343 3 3 3s3-1.343 3-3h4c0 1.657 1.343 3 3 3s3-1.343 3-3h2v-5l-4-4zM7 18.5c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5zM4 14V7h10v7H4zm13 4.5c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5z"})));break;case"gridicons-sign-out":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M16 17v2c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v2h-2V5H5v14h9v-2h2zm2.5-10.5l-1.414 1.414L20.172 11H10v2h10.172l-3.086 3.086L18.5 17.5 24 12l-5.5-5.5z"})));break;case"gridicons-spam":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-speaker":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M19 8v6c1.7 0 3-1.3 3-3s-1.3-3-3-3zM11 7H4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h1v3c0 1.1.9 2 2 2h2v-5h2l4 4h2V3h-2l-4 4z"})));break;case"gridicons-special-character":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12.005 7.418c-1.237 0-2.19.376-2.86 1.128s-1.005 1.812-1.005 3.18c0 1.387.226 2.513.677 3.377.45.865 1.135 1.543 2.05 2.036V20H5v-2.666h3.12c-1.04-.636-1.842-1.502-2.405-2.6-.564-1.097-.846-2.322-.846-3.676 0-1.258.29-2.363.875-3.317.585-.952 1.417-1.685 2.497-2.198s2.334-.77 3.763-.77c2.18 0 3.915.572 5.204 1.713s1.932 2.673 1.932 4.594c0 1.353-.283 2.57-.852 3.65-.567 1.08-1.38 1.947-2.44 2.603H19V20h-5.908v-2.86c.95-.493 1.65-1.18 2.102-2.062s.677-2.006.677-3.374c0-1.36-.336-2.415-1.01-3.164-.672-.747-1.624-1.122-2.855-1.122z"})));break;case"gridicons-star-outline":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})));break;case"gridicons-star":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})));break;case"gridicons-stats-alt":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2V7h2v10zm4 0h-2v-7h2v7z"})));break;case"gridicons-status":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM7.55 13c-.02.166-.05.33-.05.5 0 2.485 2.015 4.5 4.5 4.5s4.5-2.015 4.5-4.5c0-.17-.032-.334-.05-.5h-8.9zM10 10V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1zm6 0V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1z"})));break;case"gridicons-strikethrough":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"})));break;case"gridicons-sync":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"})));break;case"gridicons-tablet":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 2H6c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h12c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-5 19h-2v-1h2v1zm5-2H6V5h12v14z"})));break;case"gridicons-tag":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})));break;case"gridicons-text-color":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M3 19h18v3H3v-3zM15.82 17h3.424L14 3h-4L4.756 17H8.18l1.067-3.5h5.506L15.82 17zm-1.952-6h-3.73l1.868-5.725L13.868 11z"})));break;case"gridicons-themes":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"})));break;case"gridicons-thumbs-up":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M6.7 22H2v-9h2l2.7 9zM20 9h-6V5c0-1.657-1.343-3-3-3h-1v4L7.1 9.625c-.712.89-1.1 1.996-1.1 3.135V14l2.1 7h8.337c1.836 0 3.435-1.25 3.88-3.03l1.622-6.485C22.254 10.223 21.3 9 20 9z"})));break;case"gridicons-time":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.8 13.4L13 11.667V7h-2v5.333l3.2 4.266 1.6-1.2z"})));break;case"gridicons-trash":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})));break;case"gridicons-trophy":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18 5.062V3H6v2.062H2V8c0 2.525 1.89 4.598 4.324 4.932.7 2.058 2.485 3.61 4.676 3.978V18c0 1.105-.895 2-2 2H8v2h8v-2h-1c-1.105 0-2-.895-2-2v-1.09c2.19-.368 3.976-1.92 4.676-3.978C20.11 12.598 22 10.525 22 8V5.062h-4zM4 8v-.938h2v3.766C4.836 10.416 4 9.304 4 8zm16 0c0 1.304-.836 2.416-2 2.83V7.06h2V8z"})));break;case"gridicons-types":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M22 17c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585c.433-2.783 2.632-4.982 5.415-5.415z"})));break;case"gridicons-underline":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M4 19v2h16v-2H4zM18 3v8c0 3.314-2.686 6-6 6s-6-2.686-6-6V3h3v8c0 1.654 1.346 3 3 3s3-1.346 3-3V3h3z"})));break;case"gridicons-undo":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M18.142 5.93C16.97 4.756 15.435 4.17 13.9 4.17s-3.072.586-4.244 1.757L6 9.585V6H4v7h7v-2H7.414l3.657-3.657c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657l-5.364 5.364 1.414 1.414 5.364-5.364c2.345-2.343 2.345-6.142.002-8.485z"})));break;case"gridicons-user-add":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("title",null,"gridicons-user-add"),h.default.createElement("g",{dataName:"Artwork"},h.default.createElement("g",{dataName:"Artwork"},h.default.createElement("circle",{cx:"15",cy:"8",r:"4"}),h.default.createElement("path",{d:"M15 20s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})),h.default.createElement("path",{d:"M6 10V7H4v3H1v2h3v3h2v-3h3v-2z"}))));break;case"gridicons-user-circle":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18.5c-4.694 0-8.5-3.806-8.5-8.5S7.306 3.5 12 3.5s8.5 3.806 8.5 8.5-3.806 8.5-8.5 8.5zm0-8c-3.038 0-5.5 1.728-5.5 3.5s2.462 3.5 5.5 3.5 5.5-1.728 5.5-3.5-2.462-3.5-5.5-3.5zm0-.5c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z"})));break;case"gridicons-user":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm0 16s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})));break;case"gridicons-video-camera":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M17 9V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h11c1.105 0 2-.895 2-2v-2l5 4V5l-5 4z"})));break;case"gridicons-video":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"})));break;case"gridicons-visible":s=h.default.createElement("svg",{className:u,height:t,width:t,onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h.default.createElement("g",null,h.default.createElement("path",{d:"M12 6C5.188 6 1 12 1 12s4.188 6 11 6 11-6 11-6-4.188-6-11-6zm0 10c-3.943 0-6.926-2.484-8.38-4 1.04-1.085 2.863-2.657 5.255-3.47C8.335 9.214 8 10.064 8 11c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.937-.335-1.787-.875-2.47 2.393.813 4.216 2.386 5.254 3.47-1.456 1.518-4.438 4-8.38 4z"})))}return s}}]),t}(_.PureComponent);m.defaultProps={size:24},m.propTypes={icon:_.PropTypes.string.isRequired,size:_.PropTypes.number,onClick:_.PropTypes.func,className:_.PropTypes.string},t.default=m,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),c=r(i),s=n(5),u=r(s),l=function(e){var t=e.className,n=e.children,r=a(e,["className","children"]);return c.default.createElement("fieldset",o({},r,{className:(0,u.default)(t,"form-fieldset")}),n)};t.default=l,e.exports=t.default},function(e,t,n){var r=n(75),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=!(!window.document||!window.document.createElement),a={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=a},function(e,t,n){function r(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?c(e)?o(e[0],e[1]):a(e):s(e)}var a=n(918),o=n(919),i=n(83),c=n(8),s=n(1024);e.exports=r},function(e,t,n){var r=n(416),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},function(e,t,n){var r=n(78),a=n(906),o=n(932),i=n(105),c=n(81),s=n(960),u=n(278),l=n(279),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=i(t,e),u||(u=t.length>1),t}),c(e,l(e),n),u&&(n=a(n,7,s));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},function(e,t){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){e.exports=!n(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(852);t.default=function(e){return{__html:(0,r.sanitize)(e,{ALLOWED_TAGS:["a","strong","em","u","tt","s"],ALLOWED_ATTR:["target","href"]})}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var o=n(27),i=r(o),c=n(19),s=r(c),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(1),d=r(l),f=n(51),p=(r(f),n(5)),_=r(p),h=n(3),m=function(e){return d.default.createElement("small",{className:"form-label__required"},e("Required"))},M=function(e){return e.map(function(e,t){return(0,s.default)(e)?u({},e,{key:t}):e})},E=function(e){var t=e.children,n=e.required,r=e.translate,o=e.className,c=a(e,["children","required","translate","className"]);return t=d.default.Children.toArray(t)||[],n&&t.push(m(r)),d.default.createElement("label",u({},(0,i.default)(c,"moment","numberFormat"),{className:(0,_.default)(o,"form-label")}),t.length?M(t):null)};t.default=(0,h.localize)(E),e.exports=t.default},function(e,t,n){var r=n(41),a=n(28),o=n(90),i=n(57),c=function(e,t,n){var s,u,l,d=e&c.F,f=e&c.G,p=e&c.S,_=e&c.P,h=e&c.B,m=e&c.W,M=f?a:a[t]||(a[t]={}),E=M.prototype,T=f?r:p?r[t]:(r[t]||{}).prototype;f&&(n=t);for(s in n)(u=!d&&T&&void 0!==T[s])&&s in M||(l=u?T[s]:n[s],M[s]=f&&"function"!=typeof T[s]?n[s]:h&&u?o(l,r):m&&T[s]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(l):_&&"function"==typeof l?o(Function.call,l):l,_&&((M.virtual||(M.virtual={}))[s]=l,e&c.R&&E&&!E[s]&&i(E,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(228)("wks"),a=n(164),o=n(41).Symbol,i="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=i&&o[e]||(i?o:a)("Symbol."+e))}).store=r},function(e,t,n){var r=n(20),a=n(74);e.exports=n(30)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){function r(e){return null!=e&&o(e.length)&&!a(e)}var a=n(291),o=n(292);e.exports=r},function(e,t,n){"use strict";var r=null;e.exports={debugTool:r}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.getRatesErrors=void 0;var a=n(108),o=r(a),i=n(43),c=r(i),s=n(200),u=n(3),l=n(332),d=function(e,t){var n=e.values,r=e.isNormalized,a=e.normalized,o=e.selectNormalized,i=e.ignoreValidation;if(r&&!a)return{address:(0,u.translate)("This address is not recognized. Please try another.")};var s=r&&o?a:n,d=s.phone,f=s.postcode,p=s.state,_=s.country,h=["name","phone","address","city","postcode","country"],m={};if(h.forEach(function(e){n[e]||(m[e]=(0,u.translate)("This field is required"))}),t[_]){switch((0,l.isValidPhone)(d,_)||(m.phone=(0,u.translate)("Invalid phone number for %(country)s",{args:{country:t[_].name}})),_){case"US":/^\d{5}(?:-\d{4})?#x2F;.test(f)||(m.postcode=(0,u.translate)("Invalid ZIP code format"))}(0,c.default)(t[_].states)||p||(m.state=(0,u.translate)("This field is required"))}return i&&Object.keys(m).forEach(function(e){i[e]&&delete m[e]}),m},f=function(e){return(0,o.default)(e,function(e){var t={};return"not_selected"===e.box_id&&(t.box_id=(0,u.translate)("Please select a package")),(!e.weight||"number"!=typeof e.weight||0>e.weight)&&(t.weight=(0,u.translate)("Invalid weight")),t})},p=t.getRatesErrors=function(e){var t=e.values,n=e.available;return{server:(0,o.default)(n,function(e){if(e.errors)return e.errors.map(function(e){return e.userMessage||e.message||(0,u.translate)("We couldn't get a rate for this package, please try again.")})}),form:(0,o.default)(t,function(e){return e?null:(0,u.translate)("Please choose a rate")})}},_=function(e){var t={};return e||(t.paperSize=(0,u.translate)("This field is required")),t};t.default=(0,s.createSelector)(function(e){return e.shippingLabel},function(e,t){return t.countriesData},function(e,t){var n=e.form,r=e.paperSize;if(!(0,c.default)(n))return{origin:d(n.origin,t),destination:d(n.destination,t),packages:f(n.packages.selected),rates:p(n.rates),sidebar:_(r)}})},function(e,t,n){e.exports=!n(70)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=e.exports=window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,n){var r=n(56),a=n(345),o=n(231),i=Object.defineProperty;t.f=n(40)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),a)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){function r(e){if(null==e)return!0;if(s(e)&&(c(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||d(e)||i(e)))return!e.length;var t=o(e);if(t==f||t==p)return!e.size;if(l(e))return!a(e).length;for(var n in e)if(h.call(e,n))return!1;return!0}var a=n(273),o=n(186),i=n(138),c=n(8),s=n(37),u=n(139),l=n(136),d=n(192),f="[object Map]",p="[object Set]",_=Object.prototype,h=_.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(){O.ReactReconcileTransaction&&b||l("123")}function a(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=f.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled(!0)}function o(e,t,n,a,o,i){return r(),b.batchedUpdates(e,t,n,a,o,i)}function i(e,t){return e._mountOrder-t._mountOrder}function c(e){var t=e.dirtyComponentsLength;t!==M.length&&l("124",t,M.length),M.sort(i),E++;for(var n=0;n<t;n++){var r=M[n],a=r._pendingCallbacks;r._pendingCallbacks=null;var o;if(_.logTopLevelRenders){var c=r;r._currentElement.type.isReactTopLevelWrapper&&(c=r._renderedComponent),o="React update: "+c.getName(),console.time(o)}if(h.performUpdateIfNecessary(r,e.reconcileTransaction,E),o&&console.timeEnd(o),a)for(var s=0;s<a.length;s++)e.callbackQueue.enqueue(a[s],r.getPublicInstance())}}function s(e){if(r(),!b.isBatchingUpdates)return void b.batchedUpdates(s,e);M.push(e),null==e._updateBatchNumber&&(e._updateBatchNumber=E+1)}function u(e,t){b.isBatchingUpdates||l("125"),T.enqueue(e,t),A=!0}var l=n(7),d=n(10),f=n(565),p=n(84),_=n(570),h=n(114),m=n(197),M=(n(4),[]),E=0,T=f.getPooled(),A=!1,b=null,v={initialize:function(){this.dirtyComponentsLength=M.length},close:function(){this.dirtyComponentsLength!==M.length?(M.splice(0,this.dirtyComponentsLength),y()):M.length=0}},S={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},g=[v,S];d(a.prototype,m,{getTransactionWrappers:function(){return g},destructor:function(){this.dirtyComponentsLength=null,f.release(this.callbackQueue),this.callbackQueue=null,O.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return m.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(a);var y=function(){for(;M.length||A;){if(M.length){var e=a.getPooled();e.perform(c,null,e),a.release(e)}if(A){A=!1;var t=T;T=f.getPooled(),t.notifyAll(),f.release(t)}}},L={injectReconcileTransaction:function(e){e||l("126"),O.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e||l("127"),"function"!=typeof e.batchedUpdates&&l("128"),"boolean"!=typeof e.isBatchingUpdates&&l("129"),b=e}},O={ReactReconcileTransaction:null,batchedUpdates:o,enqueueUpdate:s,flushBatchedUpdates:y,injection:L,asap:u};e.exports=O},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),c=r(i),s=n(5),u=r(s),l=function(e){var t=e.className,n=e.children,r=a(e,["className","children"]);return c.default.createElement("legend",o({},r,{className:(0,u.default)(t,"form-legend")}),n)};t.default=l,e.exports=t.default},function(e,t,n){var r=n(72);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(243),a=n(73);e.exports=function(e){return r(a(e))}},function(e,t,n){"use strict";if(n(30)){var r=n(96),a=n(13),o=n(18),i=n(2),c=n(253),s=n(378),u=n(46),l=n(93),d=n(74),f=n(36),p=n(98),_=n(75),h=n(23),m=n(377),M=n(100),E=n(130),T=n(31),A=n(238),b=n(14),v=n(76),S=n(244),g=n(126),y=n(128),L=n(127).f,O=n(254),N=n(77),C=n(17),R=n(123),w=n(237),z=n(250),I=n(255),D=n(95),P=n(168),k=n(170),x=n(236),U=n(357),Y=n(20),$=n(59),W=Y.f,H=$.f,q=a.RangeError,B=a.TypeError,j=a.Uint8Array,F=Array.prototype,X=s.ArrayBuffer,V=s.DataView,G=R(0),Q=R(2),K=R(3),J=R(4),Z=R(5),ee=R(6),te=w(!0),ne=w(!1),re=I.values,ae=I.keys,oe=I.entries,ie=F.lastIndexOf,ce=F.reduce,se=F.reduceRight,ue=F.join,le=F.sort,de=F.slice,fe=F.toString,pe=F.toLocaleString,_e=C("iterator"),he=C("toStringTag"),me=N("typed_constructor"),Me=N("def_constructor"),Ee=c.CONSTR,Te=c.TYPED,Ae=c.VIEW,be=R(1,function(e,t){return Le(z(e,e[Me]),t)}),ve=o(function(){return 1===new j(new Uint16Array([1]).buffer)[0]}),Se=!!j&&!!j.prototype.set&&o(function(){new j(1).set({})}),ge=function(e,t){var n=_(e);if(n<0||n%t)throw q("Wrong offset!");return n},ye=function(e){if(b(e)&&Te in e)return e;throw B(e+" is not a typed array!")},Le=function(e,t){if(!(b(e)&&me in e))throw B("It is not a typed array constructor!");return new e(t)},Oe=function(e,t){return Ne(z(e,e[Me]),t)},Ne=function(e,t){for(var n=0,r=t.length,a=Le(e,r);r>n;)a[n]=t[n++];return a},Ce=function(e,t,n){W(e,t,{get:function(){return this._d[n]}})},Re=function(e){var t,n,r,a,o,i,c=v(e),s=arguments.length,l=s>1?arguments[1]:void 0,d=void 0!==l,f=O(c);if(void 0!=f&&!S(f)){for(i=f.call(c),r=[],t=0;!(o=i.next()).done;t++)r.push(o.value);c=r}for(d&&s>2&&(l=u(l,arguments[2],2)),t=0,n=h(c.length),a=Le(this,n);n>t;t++)a[t]=d?l(c[t],t):c[t];return a},we=function(){for(var e=0,t=arguments.length,n=Le(this,t);t>e;)n[e]=arguments[e++];return n},ze=!!j&&o(function(){pe.call(new j(1))}),Ie=function(){return pe.apply(ze?de.call(ye(this)):ye(this),arguments)},De={copyWithin:function(e,t){return U.call(ye(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(ye(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return x.apply(ye(this),arguments)},filter:function(e){return Oe(this,Q(ye(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Z(ye(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(ye(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){G(ye(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(ye(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(ye(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(ye(this),arguments)},lastIndexOf:function(e){return ie.apply(ye(this),arguments)},map:function(e){return be(ye(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ce.apply(ye(this),arguments)},reduceRight:function(e){return se.apply(ye(this),arguments)},reverse:function(){for(var e,t=this,n=ye(t).length,r=Math.floor(n/2),a=0;a<r;)e=t[a],t[a++]=t[--n],t[n]=e;return t},some:function(e){return K(ye(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return le.call(ye(this),e)},subarray:function(e,t){var n=ye(this),r=n.length,a=M(e,r);return new(z(n,n[Me]))(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,h((void 0===t?r:M(t,r))-a))}},Pe=function(e,t){return Oe(this,de.call(ye(this),e,t))},ke=function(e){ye(this);var t=ge(arguments[1],1),n=this.length,r=v(e),a=h(r.length),o=0;if(a+t>n)throw q("Wrong length!");for(;o<a;)this[t+o]=r[o++]},xe={entries:function(){return oe.call(ye(this))},keys:function(){return ae.call(ye(this))},values:function(){return re.call(ye(this))}},Ue=function(e,t){return b(e)&&e[Te]&&"symbol"!=typeof t&&t in e&&+t+""==t+""},Ye=function(e,t){return Ue(e,t=E(t,!0))?d(2,e[t]):H(e,t)},$e=function(e,t,n){return!(Ue(e,t=E(t,!0))&&b(n)&&T(n,"value"))||T(n,"get")||T(n,"set")||n.configurable||T(n,"writable")&&!n.writable||T(n,"enumerable")&&!n.enumerable?W(e,t,n):(e[t]=n.value,e)};Ee||($.f=Ye,Y.f=$e),i(i.S+i.F*!Ee,"Object",{getOwnPropertyDescriptor:Ye,defineProperty:$e}),o(function(){fe.call({})})&&(fe=pe=function(){return ue.call(this)});var We=p({},De);p(We,xe),f(We,_e,xe.values),p(We,{slice:Pe,set:ke,constructor:function(){},toString:fe,toLocaleString:Ie}),Ce(We,"buffer","b"),Ce(We,"byteOffset","o"),Ce(We,"byteLength","l"),Ce(We,"length","e"),W(We,he,{get:function(){return this[Te]}}),e.exports=function(e,t,n,s){s=!!s;var u=e+(s?"Clamped":"")+"Array",d="get"+e,p="set"+e,_=a[u],M=_||{},E=_&&y(_),T=!_||!c.ABV,v={},S=_&&_.prototype,O=function(e,n){var r=e._d;return r.v[d](n*t+r.o,ve)},N=function(e,n,r){var a=e._d;s&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),a.v[p](n*t+a.o,r,ve)},C=function(e,t){W(e,t,{get:function(){return O(this,t)},set:function(e){return N(this,t,e)},enumerable:!0})};T?(_=n(function(e,n,r,a){l(e,_,u,"_d");var o,i,c,s,d=0,p=0;if(b(n)){if(!(n instanceof X||"ArrayBuffer"==(s=A(n))||"SharedArrayBuffer"==s))return Te in n?Ne(_,n):Re.call(_,n);o=n,p=ge(r,t);var M=n.byteLength;if(void 0===a){if(M%t)throw q("Wrong length!");if((i=M-p)<0)throw q("Wrong length!")}else if((i=h(a)*t)+p>M)throw q("Wrong length!");c=i/t}else c=m(n),i=c*t,o=new X(i);for(f(e,"_d",{b:o,o:p,l:i,e:c,v:new V(o)});d<c;)C(e,d++)}),S=_.prototype=g(We),f(S,"constructor",_)):o(function(){_(1)})&&o(function(){new _(-1)})&&P(function(e){new _,new _(null),new _(1.5),new _(e)},!0)||(_=n(function(e,n,r,a){l(e,_,u);var o;return b(n)?n instanceof X||"ArrayBuffer"==(o=A(n))||"SharedArrayBuffer"==o?void 0!==a?new M(n,ge(r,t),a):void 0!==r?new M(n,ge(r,t)):new M(n):Te in n?Ne(_,n):Re.call(_,n):new M(m(n))}),G(E!==Function.prototype?L(M).concat(L(E)):L(M),function(e){e in _||f(_,e,M[e])}),_.prototype=S,r||(S.constructor=_));var R=S[_e],w=!!R&&("values"==R.name||void 0==R.name),z=xe.values;f(_,me,!0),f(S,Te,u),f(S,Ae,!0),f(S,Me,_),(s?new _(1)[he]==u:he in S)||W(S,he,{get:function(){return u}}),v[u]=_,i(i.G+i.W+i.F*(_!=M),v),i(i.S,u,{BYTES_PER_ELEMENT:t}),i(i.S+i.F*o(function(){M.of.call(_,1)}),u,{from:Re,of:we}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",t),i(i.P,u,De),k(u),i(i.P+i.F*Se,u,{set:ke}),i(i.P+i.F*!w,u,xe),r||S.toString==fe||(S.toString=fe),i(i.P+i.F*o(function(){new _(1).slice()}),u,{slice:Pe}),i(i.P+i.F*(o(function(){return[1,2].toLocaleString()!=new _([1,2]).toLocaleString()})||!o(function(){S.toLocaleString.call([1,2])})),u,{toLocaleString:Ie}),D[u]=w?R:z,r||w||f(S,_e,z)}}else e.exports=function(){}},function(e,t,n){function r(e,t,n){var r=null==e?void 0:a(e,t);return void 0===r?n:r}var a=n(181);e.exports=r},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){e.exports=n(1049)()},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var a=this.constructor.Interface;for(var o in a)if(a.hasOwnProperty(o)){var c=a[o];c?this[o]=c(n):"target"===o?this.target=r:this[o]=n[o]}var s=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;return this.isDefaultPrevented=s?i.thatReturnsTrue:i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse,this}var a=n(10),o=n(84),i=n(29),c=(n(6),["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),s={type:null,target:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};a(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n<c.length;n++)this[c[n]]=null}}),r.Interface=s,r.augmentClass=function(e,t){var n=this,r=function(){};r.prototype=n.prototype;var i=new r;a(i,e.prototype),e.prototype=i,e.prototype.constructor=e,e.Interface=a({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.fourArgumentPooler)},o.addPoolingTo(r,o.fourArgumentPooler),e.exports=r},function(e,t,n){"use strict";var r={current:null};e.exports=r},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0,t.createGetUrlWithNonce=t.get=t.post=t.url=void 0;var a=n(314),o=r(a),i=n(605),c=r(i);t.url=c;var s=function(e){if(e.data.message)throw e.data.message;throw JSON.stringify(e)};t.post=function(e,t){return o.post(e,t).catch(s)},t.get=function(e){return o.get(e).catch(s)},t.createGetUrlWithNonce=function(e,t){return o.createGetUrlWithNonce(e,t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),o=r(a),i=n(215),c=r(i),s=n(32),u=r(s),l=function(e){var t=e.text;return t?o.default.createElement(c.default,{dangerouslySetInnerHTML:(0,u.default)(t)}):null};t.default=l,e.exports=t.default},function(e,t,n){var r=n(58);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(42),a=n(161);e.exports=n(40)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(129),a=n(74),o=n(47),i=n(130),c=n(31),s=n(361),u=Object.getOwnPropertyDescriptor;t.f=n(30)?u:function(e,t){if(e=o(e),t=i(t,!0),s)try{return u(e,t)}catch(e){}if(c(e,t))return a(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(13),a=n(36),o=n(31),i=n(77)("src"),c=Function.toString,s=(""+c).split("toString");n(124).inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,c){var u="function"==typeof n;u&&(o(n,"name")||a(n,"name",t)),e[t]!==n&&(u&&(o(n,i)||a(n,i,e[t]?""+e[t]:s.join(t+""))),e===r?e[t]=n:c?e[t]?e[t]=n:a(e,t,n):(delete e[t],a(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||c.call(this)})},function(e,t,n){(function(r){function a(){return!(!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var a=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(a++,"%c"===e&&(o=a))}),e.splice(o,0,r)}}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function c(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function s(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=n(851),t.log=i,t.formatArgs=o,t.save=c,t.load=s,t.useColors=a,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(s())}).call(t,n(111))},function(e,t,n){function r(e){return i(e)?a(e):o(e)}var a=n(392),o=n(273),i=n(37);e.exports=r},function(e,t){function n(){}e.exports=n},function(e,t,n){function r(e){var t=a(e),n=t%1;return t===t?n?t-n:t:0}var a=n(1033);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),o=r(a),i=n(22),c=r(i),s=n(153),u=r(s),l=n(45),d=r(l),f=n(66),p=r(f),_=n(32),h=r(_),m=n(55),M=r(m),E=function(e){var t=e.id,n=e.valuesMap,r=e.title,a=e.description,i=e.value,s=e.updateValue,l=e.error,f=e.disabled,_=e.className,m=function(e){return s(e.target.value)};return o.default.createElement(c.default,{className:_},o.default.createElement(d.default,{dangerouslySetInnerHTML:(0,h.default)(r)}),o.default.createElement(u.default,{id:t,name:t,value:i,onChange:m,disabled:!!f,isError:!!l},Object.keys(n).map(function(e){return o.default.createElement("option",{key:e,value:e},n[e])})),l?o.default.createElement(p.default,{text:l}):o.default.createElement(M.default,{text:a}))};t.default=E,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),o=r(a),i=n(21),c=r(i),s=n(5),u=r(s),l=n(32),d=r(l),f=function(e){var t=e.text,n=e.type,r=void 0===n?"input-validation":n;return o.default.createElement("div",{className:(0,u.default)("is-error","form-"+r)},o.default.createElement(c.default,{size:24,icon:"notice-outline"})," ",o.default.createElement("span",{dangerouslySetInnerHTML:(0,d.default)(t)}))};t.default=f,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),o=r(a),i=n(679),c=r(i),s=function(e){var t=e.inline,n=o.default.createElement(c.default,{size:24});return t?n:o.default.createElement("div",{className:"loading-spinner"},n)};t.default=s,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),c=r(i),s=n(5),u=r(s),l=function(e){var t=e.className,n=e.children,r=a(e,["className","children"]);return c.default.createElement("h3",o({},r,{className:(0,u.default)(t,"form-section-heading")}),n)};t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return{noticeId:e,type:c.NOTICE_REMOVE}}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={noticeId:n.id||(0,i.default)(),duration:n.duration,showDismiss:"boolean"!=typeof n.showDismiss||n.showDismiss,isPersistent:n.isPersistent||!1,displayOnNextPage:n.displayOnNextPage||!1,status:e,text:t,button:n.button,href:n.href,onClick:n.onClick};return{type:c.NOTICE_CREATE,notice:r}}t.__esModule=!0,t.plainNotice=t.warningNotice=t.infoNotice=t.errorNotice=t.successNotice=void 0;var o=n(446),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.removeNotice=r,t.createNotice=a;var c=n(217);t.successNotice=a.bind(null,"is-success"),t.errorNotice=a.bind(null,"is-error"),t.infoNotice=a.bind(null,"is-info"),t.warningNotice=a.bind(null,"is-warning"),t.plainNotice=a.bind(null,"is-plain")},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(73);e.exports=function(e){return Object(r(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}e.exports=n},function(e,t,n){var r=n(399),a=n(950),o=a(r);e.exports=o},function(e,t,n){function r(e){return null==e?void 0===e?s:c:u&&u in Object(e)?o(e):i(e)}var a=n(103),o=n(964),i=n(994),c="[object Null]",s="[object Undefined]",u=a?a.toStringTag:void 0;e.exports=r},function(e,t,n){function r(e,t,n,r){var i=!n;n||(n={});for(var c=-1,s=t.length;++c<s;){var u=t[c],l=r?r(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),i?o(n,u,l):a(n,u,l)}return n}var a=n(177),o=n(132);e.exports=r},function(e,t,n){function r(e,t){var n=o(e,t);return a(n)?n:void 0}var a=n(915),o=n(965);e.exports=r},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){"use strict";var r=n(7),a=(n(4),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),o=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},i=function(e,t,n){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n),a}return new r(e,t,n)},c=function(e,t,n,r){var a=this;if(a.instancePool.length){var o=a.instancePool.pop();return a.call(o,e,t,n,r),o}return new a(e,t,n,r)},s=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},u=a,l=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||u,n.poolSize||(n.poolSize=10),n.release=s,n},d={addPoolingTo:l,oneArgumentPooler:a,twoArgumentPooler:o,threeArgumentPooler:i,fourArgumentPooler:c};e.exports=d},function(e,t,n){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){r=window}e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),o=r(a),i=n(119),c=r(i),s=n(668),u=r(s),l=function(e){var t=e.buttons,n=e.className;return o.default.createElement(u.default,{className:n},t.map(function(e,t){return o.default.createElement(c.default,{type:"button",key:t,disabled:e.isDisabled,onClick:e.onClick,isPrimary:!!e.isPrimary},e.label)}))};t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.getPreviewURL=t.getPrintURL=t.getPaperSizes=void 0;var a=n(107),o=r(a),i=n(190),c=r(i),s=n(141),u=r(s),l=n(3),d=n(1055),f=r(d),p=n(54),_=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(p),h=n(152),m=r(h),M={a4:{name:(0,l.translate)("A4"),exclude:function(e){return["US","CA","MX","DO"].includes(e)}},label:{name:(0,l.translate)('Label (4"x6")')},legal:{name:(0,l.translate)("Legal")},letter:{name:(0,l.translate)("Letter")}},E=(t.getPaperSizes=function(e){return(0,u.default)(M,function(t,n,r){var a=n.name,o=n.exclude;return o&&o(e)||(t[r]=a),t},{})},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!M[e])throw Error("Invalid paper size: "+e);var r={paper_size:e,label_id_csv:(0,c.default)((0,o.default)(t,"labelId")).join(","),caption_csv:(0,c.default)((0,o.default)(t,function(e){return e.caption?encodeURIComponent(e.caption):null})).join(",")},a=n?_.url.labelTestPrint():_.url.labelsPrint();return _.createGetUrlWithNonce(a,f.default.stringify(r))});t.getPrintURL=function(e,t){return E(e,t)},t.getPreviewURL=function(e,t){return(0,m.default)()?E(e,t,!0):null}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.hasNonEmptyLeaves=void 0;var a=n(295),o=r(a),i=n(293),c=r(i),s=n(109),u=r(s),l=n(8),d=r(l);t.hasNonEmptyLeaves=function e(t){return!!t&&((0,d.default)(t)?(0,u.default)(t,e):!(0,c.default)(t)||(0,u.default)((0,o.default)(t),e))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var c=n(1013),s=r(c),u=n(445),l=r(u),d=n(27),f=r(d),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=n(1),h=n(51),m=(r(h),n(5)),M=r(m),E=function(e){function t(){return a(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=["compact","primary","scary","busy","borderless"],t=void 0;this.props.href?(t="a",e.push("type")):(t="button",e.push("target","rel"));var n=(0,f.default)(this.props,e);return n.target&&(n.rel=(0,l.default)((0,s.default)([].concat((n.rel||"").split(" "),["noopener","noreferrer"]))).join(" ")),(0,_.createElement)(t,p({},n,{className:(0,M.default)("button",this.props.className,{"is-compact":this.props.compact,"is-primary":this.props.primary,"is-scary":this.props.scary,"is-busy":this.props.busy,"is-borderless":this.props.borderless})}))},t}(_.PureComponent);E.defaultProps={type:"button"},t.default=E,e.exports=t.default},function(e,t,n){var r=n(341);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(222),a=n(220);e.exports=function(e){return r(a(e))}},function(e,t,n){var r=n(17)("unscopables"),a=Array.prototype;void 0==a[r]&&n(36)(a,r,{}),e.exports=function(e){a[r][e]=!0}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports={}},function(e,t){e.exports=!1},function(e,t,n){var r=n(372),a=n(241);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t,n){var r=n(60);e.exports=function(e,t,n){for(var a in t)r(e,a,t[a],n);return e}},function(e,t,n){var r=n(20).f,a=n(31),o=n(17)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(75),a=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?a(e+t,0):o(e,t)}},function(e,t,n){var r=n(14);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){var r=n(26),a=r.Symbol;e.exports=a},function(e,t,n){function r(e,t){return i(o(e,t,a),e+"")}var a=n(83),o=n(428),i=n(285);e.exports=r},function(e,t,n){function r(e,t){return a(e)?e:o(e,t)?[e]:i(c(e))}var a=n(8),o=n(284),i=n(1008),c=n(110);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e||a(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}var a=n(140),o=1/0;e.exports=r},function(e,t,n){function r(e,t){return(c(e)?a:i)(e,o(t,3))}var a=n(78),o=n(25),i=n(401),c=n(8);e.exports=r},function(e,t,n){function r(e,t){var n={};return t=i(t,3),o(e,function(e,r,o){a(n,r,t(e,r,o))}),n}var a=n(132),o=n(399),i=n(25);e.exports=r},function(e,t,n){function r(e,t,n){var r=c(e)?a:i;return n&&s(e,t,n)&&(t=void 0),r(e,o(t,3))}var a=n(393),o=n(25),i=n(928),c=n(8),s=n(135);e.exports=r},function(e,t,n){function r(e){return null==e?"":a(e)}var a=n(183);e.exports=r},function(e,t){function n(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function a(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function i(){h&&p&&(h=!1,p.length?_=p.concat(_):m=-1,_.length&&c())}function c(){if(!h){var e=a(i);h=!0;for(var t=_.length;t;){for(p=_,_=[];++m<t;)p&&p[m].run();m=-1,t=_.length}p=null,h=!1,o(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}var l,d,f=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{d="function"==typeof clearTimeout?clearTimeout:r}catch(e){d=r}}();var p,_=[],h=!1,m=-1;f.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];_.push(new s(e,t)),1!==_.length||h||a(c)},s.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(e){return[]},f.binding=function(e){throw Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){if(_){var t=e.node,n=e.children;if(n.length)for(var r=0;r<n.length;r++)h(t,n[r],null);else null!=e.html?d(t,e.html):null!=e.text&&p(t,e.text)}}function a(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function o(e,t){_?e.children.push(t):e.node.appendChild(t.node)}function i(e,t){_?e.html=t:d(e.node,t)}function c(e,t){_?e.text=t:p(e.node,t)}function s(){return this.node.nodeName}function u(e){return{node:e,children:[],html:null,text:null,toString:s}}var l=n(297),d=n(199),f=n(305),p=n(583),_="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),h=f(function(e,t,n){11===t.node.nodeType||1===t.node.nodeType&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===l.html)?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});u.insertTreeBefore=h,u.replaceChildWithTree=a,u.queueChild=o,u.queueHTML=i,u.queueText=c,e.exports=u},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var a=n(7),o=(n(4),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=o,n=e.Properties||{},i=e.DOMAttributeNamespaces||{},s=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},l=e.DOMMutationMethods||{};e.isCustomAttribute&&c._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var d in n){c.properties.hasOwnProperty(d)&&a("48",d);var f=d.toLowerCase(),p=n[d],_={attributeName:f,attributeNamespace:null,propertyName:d,mutationMethod:null,mustUseProperty:r(p,t.MUST_USE_PROPERTY),hasBooleanValue:r(p,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(p,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(p,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(p,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(_.hasBooleanValue+_.hasNumericValue+_.hasOverloadedBooleanValue<=1||a("50",d),s.hasOwnProperty(d)){var h=s[d];_.attributeName=h}i.hasOwnProperty(d)&&(_.attributeNamespace=i[d]),u.hasOwnProperty(d)&&(_.propertyName=u[d]),l.hasOwnProperty(d)&&(_.mutationMethod=l[d]),c.properties[d]=_}}}),i=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",c={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:i,ATTRIBUTE_NAME_CHAR:i+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<c._isCustomAttributeFunctions.length;t++){if((0,c._isCustomAttributeFunctions[t])(e))return!0}return!1},injection:o};e.exports=c},function(e,t,n){"use strict";function r(){a.attachRefs(this,this._currentElement)}var a=n(1093),o=(n(38),n(6),{mountComponent:function(e,t,n,a,o,i){var c=e.mountComponent(t,n,a,o,i);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),c},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){a.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,o){var i=e._currentElement;if(t!==i||o!==e._context){var c=a.shouldUpdateRefs(i,t);c&&a.detachRefs(e,i),e.receiveComponent(t,n,o),c&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t,n){e._updateBatchNumber===n&&e.performUpdateIfNecessary(t)}});e.exports=o},function(e,t,n){"use strict";var r=n(10),a=n(589),o=n(1131),i=n(1132),c=n(116),s=n(1133),u=n(1134),l=n(1135),d=n(1139),f=c.createElement,p=c.createFactory,_=c.cloneElement,h=r,m=function(e){return e},M={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:d},Component:a.Component,PureComponent:a.PureComponent,createElement:f,cloneElement:_,isValidElement:c.isValidElement,PropTypes:s,createClass:l,createFactory:p,createMixin:m,DOM:i,version:u,__spread:h};e.exports=M},function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function a(e){return void 0!==e.key}var o=n(10),i=n(53),c=(n(6),n(593),Object.prototype.hasOwnProperty),s=n(591),u={key:!0,ref:!0,__self:!0,__source:!0},l=function(e,t,n,r,a,o,i){var c={$typeof:s,type:e,key:t,ref:n,props:i,_owner:o};return c};l.createElement=function(e,t,n){var o,s={},d=null,f=null;if(null!=t){r(t)&&(f=t.ref),a(t)&&(d=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(o in t)c.call(t,o)&&!u.hasOwnProperty(o)&&(s[o]=t[o])}var p=arguments.length-2;if(1===p)s.children=n;else if(p>1){for(var _=Array(p),h=0;h<p;h++)_[h]=arguments[h+2];s.children=_}if(e&&e.defaultProps){var m=e.defaultProps;for(o in m)void 0===s[o]&&(s[o]=m[o])}return l(e,d,f,0,0,i.current,s)},l.createFactory=function(e){var t=l.createElement.bind(null,e);return t.type=e,t},l.cloneAndReplaceKey=function(e,t){return l(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},l.cloneElement=function(e,t,n){var s,d=o({},e.props),f=e.key,p=e.ref,_=(e._self,e._source,e._owner);if(null!=t){r(t)&&(p=t.ref,_=i.current),a(t)&&(f=""+t.key);var h;e.type&&e.type.defaultProps&&(h=e.type.defaultProps);for(s in t)c.call(t,s)&&!u.hasOwnProperty(s)&&(void 0===t[s]&&void 0!==h?d[s]=h[s]:d[s]=t[s])}var m=arguments.length-2;if(1===m)d.children=n;else if(m>1){for(var M=Array(m),E=0;E<m;E++)M[E]=arguments[E+2];d.children=M}return l(e.type,f,p,0,0,_,d)},l.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$typeof===s},e.exports=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(27),o=r(a),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=n(1),s=r(c),u=n(5),l=r(u),d=n(21),f=r(d),p=function(e){var t=e.className,n=e.disabled,r=e.checked,a=e.partialChecked,c=(0,o.default)(e,["className","partialChecked"]);return s.default.createElement("span",{className:(0,l.default)(t,"form-checkbox",{"is-disabled":n})},s.default.createElement("input",i({},c,{type:"checkbox"})),r&&s.default.createElement(f.default,{icon:"checkmark",size:14}),!r&&a&&s.default.createElement(f.default,{icon:"minus-small",size:16}))};t.default=p,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(286),o=r(a),i=n(1),c=r(i),s=n(5),u=r(s),l=n(850),d=r(l),f=n(334),p=r(f);t.default=(0,d.default)({displayName:"CompactCard",render:function(){var e=(0,o.default)({},this.props,{className:(0,u.default)(this.props.className,"is-compact")});return c.default.createElement(p.default,e,this.props.children)}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(27),u=r(s),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(5),f=r(d),p=n(3),_=n(1),h=r(_),m=n(89),M=r(m),E=function(e){function t(){var n,r,a;o(this,t);for(var c=arguments.length,s=Array(c),u=0;u<c;u++)s[u]=arguments[u];return n=r=i(this,e.call.apply(e,[this].concat(s))),r.getDefaultButtonAction=function(){return r.props.isSubmitting?r.props.translate("Saving…"):r.props.translate("Save Settings")},a=n,i(r,a)}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=e.isPrimary,o=a(e,["children","className","isPrimary"]),i=(0,f.default)(n,"form-button");return h.default.createElement(M.default,l({},(0,u.default)(o,["isSubmitting","moment","numberFormat","translate"]),{primary:r,className:i}),_.Children.count(t)?t:this.getDefaultButtonAction())},t}(h.default.Component);E.defaultProps={isSubmitting:!1,isPrimary:!0,type:"submit"},t.default=(0,p.localize)(E),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(61)("calypso:notices"),a=n(684);r("initializing notices");var o={containerNames:{}};a(o);var i=[],c={new:function(e,t,n){var a=t.overlay?"overlay-notices":"notices";o.containerNames[a]=a,r("creating notice",e,t,n),o[a]=[];var s={type:t.type||"message",status:n,text:e,duration:t.duration,container:a,button:t.button,href:t.href,onClick:function(e){if("function"==typeof t.onClick){var n=c.removeNotice.bind(c,s);return t.onClick(e,n)}},onRemoveCallback:t.onRemoveCallback||function(){},arrow:t.arrow,isCompact:t.isCompact,showDismiss:t.showDismiss,persistent:t.persistent};return t.displayOnNextPage?i.push(s):o[a].push(s),o.emit("change"),s},success:function(e,t){return t=t||{},this.new(e,t,"is-success")},error:function(e,t){return t=t||{},this.new(e,t,"is-error")},info:function(e,t){return t=t||{},this.new(e,t,"is-info")},warning:function(e,t){return t=t||{},this.new(e,t,"is-warning")},list:o,removeNotice:function(e){if(e.container){var t=o[e.container],n=t.indexOf(e);-1!==n&&(t.splice(n,1),o.emit("change"))}},clearNoticesOnNavigation:function(e,t){r("clearNoticesOnNavigation");var n,a,c=!1,s=function(e){return e.persistent};for(a in o.containerNames)n=o[a].length,o[a]=o[a].filter(s),n!==o[a].length&&(c=!0);i.length&&(i.forEach(function(e){o[e.container]=[],o[e.container].push(e)}),i=[]),c&&o.emit("change"),t()},clearNotices:function(e){o[e]=[],o.emit("change")},getStatusHelper:function(e){return e.error?"is-error":e.warning?"is-warning":e.info?"is-info":e.success?"is-success":void 0}};t.default=c,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e.raw=t,e}function o(e,t){var n=(0,O.default)(t),r=n(e);return r||(0,I.default)("state validation failed for state:",e,"with reason:",n.errors),r}function i(e,t){return"function"!=typeof e?(0,A.default)({},e,t):function(n){var r=(0,E.default)((0,m.default)(i,t),n);return e(r)}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=void 0;if(n){var a;a={},a[w.SERIALIZE]=function(e){return e},a[w.DESERIALIZE]=function(r){return o(r,n)?r:((0,I.default)("state validation failed - check schema used for:",t),e)},r=a}else{var i;i={},i[w.SERIALIZE]=function(){return e},i[w.DESERIALIZE]=function(){return e},r=i}var c=b({},r,t);if(t[w.SERIALIZE]){var s=void 0,u=void 0;c[w.SERIALIZE]=function(e,n){if(e===s)return u;var r=t[w.SERIALIZE](e,n);return s=e,u=r,r}}var l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=arguments[1],r=n.type;return c.hasOwnProperty(r)?c[r](t,n):t};return l.hasCustomPersistence=!0,l}function s(e){var t=(0,_.default)(e,function(e,t,n){var r,a=t.schema,o=t.hasCustomPersistence;return b({},e,(r={},r[n]=o?t:D(a,t),r))},{}),n=(0,N.combineReducers)(t);return n.hasCustomPersistence=!0,n}t.__esModule=!0,t.cachingActionCreatorFactory=t.withoutPersistence=t.withSchemaValidation=t.keyedReducer=void 0;var u=n(27),l=r(u),d=n(191),f=r(d),p=n(141),_=r(p),h=n(1022),m=r(h),M=n(1019),E=r(M),T=n(1021),A=r(T),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=a([" must be a string but I detected a ",""],[" must be a string but I detected a ",""]),g=a(["keyedReducer"],["keyedReducer"]),y=a([" must be a function but I detected a ",""],[" must be a function but I detected a ",""]);t.isValidStateWithSchema=o,t.extendAction=i,t.createReducer=c,t.combineReducers=s;var L=n(258),O=r(L),N=n(11),C=n(1038),R=r(C),w=n(217),z=n(686),I=r(z),D=(t.keyedReducer=function(e,t){if("string"!=typeof e)throw new TypeError("Key name passed into "(g)(S,void 0===e?"undefined":v(e)));if(!e.length)throw new TypeError("Key name passed into `keyedReducer` must have a non-zero length but I detected an empty string");if("function"!=typeof t)throw new TypeError("Reducer passed into "(g)(y,void 0===t?"undefined":v(t)));return function(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments[1];if(!a.hasOwnProperty(e))return r;var o=a[e];if(null===o||void 0===o)return r;var i=t(void 0,{type:"@@calypso/INIT"}),c=r[o],s=t(c,a);return s===c?r:void 0===s||(0,f.default)(s,i)?r.hasOwnProperty(o)?(0,l.default)(r,o):r:b({},r,(n={},n[o]=s,n))}},t.withSchemaValidation=function(e,t){var n=function(n,r){return w.SERIALIZE===r.type?e?t(n,r):t(void 0,{type:"@@calypso/INIT"}):w.DESERIALIZE===r.type?e&&n&&o(n,e)?n:t(void 0,{type:"@@calypso/INIT"}):t(n,r)};return n.hasCustomPersistence=!0,n});t.withoutPersistence=function(e){return function(t,n){return w.DESERIALIZE===n.type?e(void 0,{type:"@@calypso/INIT"}):w.SERIALIZE===n.type?null:e(t,n)}},t.cachingActionCreatorFactory=function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e){return e.join("")},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{max:100,maxAge:7200},i=new R.default(o);return function(){for(var o=arguments.length,c=Array(o),s=0;s<o;s++)c[s]=arguments[s];return function(o){t(o).apply(void 0,c);var s=a(c),u=i.get(s);return(u?Promise.resolve(u):e.apply(void 0,c)).then(function(e){return i.set(s,e),n(o)(e)},r(o))}}}},function(e,t){e.exports={}},function(e,t,n){var r=n(46),a=n(243),o=n(76),i=n(23),c=n(751);e.exports=function(e,t){var n=1==e,s=2==e,u=3==e,l=4==e,d=6==e,f=5==e||d,p=t||c;return function(t,c,_){for(var h,m,M=o(t),E=a(M),T=r(c,_,3),A=i(E.length),b=0,v=n?p(t,A):s?p(t,0):void 0;A>b;b++)if((f||b in E)&&(h=E[b],m=T(h,b,M),e))if(n)v[b]=m;else if(m)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:v.push(h)}else if(l)return!1;return d?-1:u||l?l:v}}},function(e,t){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(77)("meta"),a=n(14),o=n(31),i=n(20).f,c=0,s=Object.isExtensible||function(){return!0},u=!n(18)(function(){return s(Object.preventExtensions({}))}),l=function(e){i(e,r,{value:{i:"O"+ ++c,w:{}}})},d=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!s(e))return"F";if(!t)return"E";l(e)}return e[r].i},f=function(e,t){if(!o(e,r)){if(!s(e))return!0;if(!t)return!1;l(e)}return e[r].w},p=function(e){return u&&_.NEED&&s(e)&&!o(e,r)&&l(e),e},_=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:f,onFreeze:p}},function(e,t,n){var r=n(12),a=n(759),o=n(241),i=n(248)("IE_PROTO"),c=function(){},s=function(){var e,t=n(240)("iframe"),r=o.length;for(t.style.display="none",n(360).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[o[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[i]=e):n=s(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(372),a=n(241).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},function(e,t,n){var r=n(31),a=n(76),o=n(248)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(14);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";function r(e,t,r){var o=h(e,t,r),s=o.text,f=o.options,p=o.metadata;if(f||(f=T()({},x)),f.country.default&&!p.countries[f.country.default])throw Error("Unknown country code: "+f.country.default);if(f.country.restrict&&!p.countries[f.country.restrict])throw Error("Unknown country code: "+f.country.restrict);var m=c(s);if(!i(m))return{};var M=u(m,p),E=M.country_phone_code,v=M.number;if(!E&&!v)return{};var S=void 0,g=void 0,y=!1;if(E){if(y=!0,f.country.restrict&&E!==n.i(b.k)(p.countries[f.country.restrict]))return{};g=n.i(b.f)(E,p)}else(f.country.restrict||f.country.default)&&(S=f.country.restrict||f.country.default,g=p.countries[S],v=a(s));if(!g)return{};var L=l(v,g),O=L!==v;if(!y&&!O&&_(L,g))return{};if(!S){if(!(S=d(E,L,p)))return{};g=p.countries[S]}if(L.length>P)return{};var N=RegExp(n.i(b.l)(g));return n.i(A.a)(L,N)?{country:S,phone:L}:{}}function a(e){return o(e,z)}function o(e,t){var n="",r=!0,a=!1,o=void 0;try{for(var i,c=M()(e);!(r=(i=c.next()).done);r=!0){var s=i.value,u=t[s.toUpperCase()];void 0!==u&&(n+=u)}}catch(e){a=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}function i(e){return e.length>=D&&n.i(A.a)(e,N)}function c(e){if(!e||e.length>k)return"";var t=e.search(C);return t<0?"":e.slice(t).replace(R,"")}function s(e){if(!e)return"";var t=w.test(e);return e=a(e),t?"+"+e:e}function u(e,t){if(!(e=s(e)))return{};if("+"!==e[0])return{number:e};if(e=e.slice(1),"0"===e[0])return{};for(var n=1;n<=I&&n<=e.length;){var r=e.slice(0,n);if(t.country_phone_code_to_countries[r])return{country_phone_code:r,number:e.slice(n)};n++}return{}}function l(e,t){var r=n.i(b.g)(t);if(!e||!r)return e;var a=RegExp("^(?:"+r+")"),o=a.exec(e);if(!o)return e;var i=n.i(b.m)(t),c=void 0,s=o[o.length-1];c=i&&s?e.replace(a,i):e.slice(o[0].length);var u=RegExp(n.i(b.l)(t));return n.i(A.a)(e,u)&&!n.i(A.a)(c,u)?e:c}function d(e,t,r){var a=r.country_phone_code_to_countries[e];if(1===a.length)return a[0];var o=!0,i=!1,c=void 0;try{for(var s,u=M()(a);!(o=(s=u.next()).done);o=!0){var l=s.value,d=r.countries[l];if(n.i(b.n)(d)){if(t&&0===t.search(n.i(b.n)(d)))return l}else if(f(t,l,r))return l}}catch(e){i=!0,c=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw c}}}function f(e,t,r){var a=r.countries[t];if(p(e,n.i(b.l)(a)))return p(e,n.i(b.o)(a))?n.i(b.p)(a)&&n.i(b.p)(a)!==n.i(b.o)(a)?"MOBILE":"FIXED_LINE_OR_MOBILE":p(e,n.i(b.p)(a))?n.i(b.o)(a)&&n.i(b.o)(a)!==n.i(b.p)(a)?"FIXED_LINE":"FIXED_LINE_OR_MOBILE":p(e,n.i(b.q)(a))?"TOLL_FREE":p(e,n.i(b.r)(a))?"PREMIUM_RATE":p(e,n.i(b.s)(a))?"PERSONAL_NUMBER":p(e,n.i(b.t)(a))?"VOICEMAIL":p(e,n.i(b.u)(a))?"UAN":p(e,n.i(b.v)(a))?"PAGER":p(e,n.i(b.w)(a))?"VOIP":p(e,n.i(b.x)(a))?"SHARED_COST":void 0}function p(e,t){return n.i(A.a)(e,t)}function _(e,t){var r=n.i(v.e)(n.i(b.a)(t),e);if(r)return n.i(b.h)(r,t)}function h(e,t,n){var r=void 0,a=void 0,o=void 0;if("string"==typeof e&&(r=e),"string"==typeof t){var i=t;a=T()({},x,{country:{restrict:i}}),o=n}else t&&t.countries?o=t:(a=t,o=n);if(!o)throw Error("Metadata not passed");return{text:r,options:a,metadata:o}}n.d(t,"d",function(){return S}),n.d(t,"e",function(){return g}),n.d(t,"c",function(){return y}),t.a=r,t.j=i,t.f=c,t.g=s,t.h=u,t.i=d,t.b=f;var m=n(218),M=n.n(m),E=n(699),T=n.n(E),A=n(259),b=n(172),v=n(171),S="++",g="0-90-9٠-٩۰-۹",y="-‐-―−ー-//..  ­​⁠ ()()[]\\[\\]~⁓∼~",L="["+g+"]{"+D+"}",O="["+S+"]{0,1}(?:["+y+"]*["+g+"]){3,}["+y+g+"]*",N=RegExp("^"+L+"$|^"+O+"quot;,"i"),C=RegExp("["+S+g+"]"),R=RegExp("[^"+g+"]+quot;),w=RegExp("^["+S+"]+"),z={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"},I=3,D=2,P=17,k=250,x={country:{}}},function(e,t,n){function r(e,t,n){"__proto__"==t&&a?a(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var a=n(414);e.exports=r},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n},function(e,t){function n(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,a=/^(?:0|[1-9]\d*)#x2F;;e.exports=n},function(e,t,n){function r(e,t,n){if(!c(n))return!1;var r=typeof t;return!!("number"==r?o(n)&&i(t,n.length):"string"==r&&t in n)&&a(n[t],e)}var a=n(137),o=n(37),i=n(134),c=n(19);e.exports=r},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){var r=n(911),a=n(50),o=Object.prototype,i=o.hasOwnProperty,c=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return a(e)&&i.call(e,"callee")&&!c.call(e,"callee")};e.exports=s},function(e,t,n){(function(e){var r=n(26),a=n(1030),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,c=i&&i.exports===o,s=c?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||a;e.exports=l}).call(t,n(201)(e))},function(e,t,n){function r(e){return"symbol"==typeof e||o(e)&&a(e)==i}var a=n(80),o=n(50),i="[object Symbol]";e.exports=r},function(e,t,n){function r(e,t,n){var r=s(e)?a:c,u=arguments.length<3;return r(e,i(t,4),n,u,o)}var a=n(270),o=n(79),i=n(25),c=n(925),s=n(8);e.exports=r},function(e,t,n){function r(e,t,n){if((e=u(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=a(t)))return e;var r=s(e),d=s(t),f=c(r,d),p=i(r,d)+1;return o(r,f,p).join("")}var a=n(183),o=n(935),i=n(936),c=n(937),s=n(1007),u=n(110),l=/^\s+|\s+#x2F;g;e.exports=r},function(e,t,n){"use strict";e.exports=n(1070)},function(e,t,n){"use strict";function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function a(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(t));default:return!1}}var o=n(7),i=n(298),c=n(299),s=n(303),u=n(576),l=n(577),d=(n(4),{}),f=null,p=function(e,t){e&&(c.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},_=function(e){return p(e,!0)},h=function(e){return p(e,!1)},m=function(e){return"."+e._rootNodeID},M={injection:{injectEventPluginOrder:i.injectEventPluginOrder,injectEventPluginsByName:i.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n&&o("94",t,typeof n);var r=m(e);(d[t]||(d[t]={}))[r]=n;var a=i.registrationNameModules[t];a&&a.didPutListener&&a.didPutListener(e,t,n)},getListener:function(e,t){var n=d[t];if(a(t,e._currentElement.type,e._currentElement.props))return null;var r=m(e);return n&&n[r]},deleteListener:function(e,t){var n=i.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=d[t];if(r){delete r[m(e)]}},deleteAllListeners:function(e){var t=m(e);for(var n in d)if(d.hasOwnProperty(n)&&d[n][t]){var r=i.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete d[n][t]}},extractEvents:function(e,t,n,r){for(var a,o=i.plugins,c=0;c<o.length;c++){var s=o[c];if(s){var l=s.extractEvents(e,t,n,r);l&&(a=u(a,l))}}return a},enqueueEvents:function(e){e&&(f=u(f,e))},processEventQueue:function(e){var t=f;f=null,e?l(t,_):l(t,h),f&&o("95"),s.rethrowCaughtError()},__purge:function(){d={}},__getListenerBank:function(){return d}};e.exports=M},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return M(e,r)}function a(e,t,n){var a=r(e,n,t);a&&(n._dispatchListeners=h(n._dispatchListeners,a),n._dispatchInstances=h(n._dispatchInstances,e))}function o(e){e&&e.dispatchConfig.phasedRegistrationNames&&_.traverseTwoPhase(e._targetInst,a,e)}function i(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?_.getParentInstance(t):null;_.traverseTwoPhase(n,a,e)}}function c(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,a=M(e,r);a&&(n._dispatchListeners=h(n._dispatchListeners,a),n._dispatchInstances=h(n._dispatchInstances,e))}}function s(e){e&&e.dispatchConfig.registrationName&&c(e._targetInst,null,e)}function u(e){m(e,o)}function l(e){m(e,i)}function d(e,t,n,r){_.traverseEnterLeave(n,r,c,e,t)}function f(e){m(e,s)}var p=n(144),_=n(299),h=n(576),m=n(577),M=(n(6),p.getListener),E={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:f,accumulateEnterLeaveDispatches:d};e.exports=E},function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(52),o=n(308),i={view:function(e){if(e.view)return e.view;var t=o(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};a.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var a=Error(n);throw a.name="Invariant Violation",a.framesToPop=1,a}e.exports=r},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0,t.dismissNotice=t.setAllPristine=t.fetchForm=t.setFormProperty=t.DISMISS_NOTICE=t.SET_ALL_PRISTINE=t.SET_FORM_PROPERTY=t.INIT_FORM=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(3),i=n(54),c=r(i),s=n(69),u=r(s),l=t.INIT_FORM="INIT_FORM",d=t.SET_FORM_PROPERTY="SET_FORM_PROPERTY",f=t.SET_ALL_PRISTINE="SET_ALL_PRISTINE",p=t.DISMISS_NOTICE="DISMISS_NOTICE",_=function(e){return a({type:l},e)},h=t.setFormProperty=function(e,t){return{type:d,field:e,value:t}};t.fetchForm=function(){return function(e,t,n){var r=n.methodId,a=n.instanceId,i=n.formType;return e(h("isFetching",!0)),c.get(c.url.settingsForm(i,r,a)).then(function(t){e(_(t))}).catch(function(){u.errorNotice((0,o.translate)("Error while loading the settings. Please refresh the page to try again.")),e(h("fetchError",!1))}).then(function(){e(h("isFetching",!1))})}},t.setAllPristine=function(e){return{type:f,pristineValue:e}},t.dismissNotice=function(){return c.post(c.url.dismissShippingSettingsNuxNotice()),{type:p}}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(108),a=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(3);t.default=function(e,t,n){var r=0;return(0,a.default)(e,function(e){if("individual"===e.box_id)return e.items[0].name;r++;var a=t[e.box_id],i=a&&a.is_letter,c=!(!n||!a)&&a.name;return i?c?(0,o.translate)("Envelope %d: %s",{args:[r,c]}):(0,o.translate)("Envelope %d",{args:[r]}):c?(0,o.translate)("Package %d: %s",{args:[r,c]}):(0,o.translate)("Package %d",{args:[r]})})},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(1),i=r(o),c=n(702),s=r(c),u=n(5),l=r(u),d=n(212),f=r(d),p=function(e){var t=function(e){return!(0,s.default)(e.target,".dialog__backdrop",!0)};return i.default.createElement(f.default,a({},e,{isFullScreen:!0,additionalClassNames:(0,l.default)(e.additionalClassNames,"wcc-root"),onClickOutside:t}))};t.default=p,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(194),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=(0,a.default)(function(){if(navigator.userAgent.includes("Firefox"))return"addon";if(navigator.mimeTypes["application/pdf"])return"native";var e=function(e){try{return new ActiveXObject(e)}catch(e){}};return!(!e("AcroPDF.PDF")&&!e("PDF.PdfCtrl"))&&"addon"}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1),l=r(u),d=n(5),f=r(d),p=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.inputRef,n=e.className,r=e.isError,o=a(e,["inputRef","className","isError"]),i=(0,f.default)(n,"form-select",{"is-error":r});return l.default.createElement("select",s({},o,{ref:t,className:i}),this.props.children)},t}(l.default.Component);p.defaultProps={isError:!1},t.default=p,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),o=r(a),i=n(61),c=r(i),s=n(155),u=r(s),l=n(674),d=r(l),f=n(120),p=r(f),_=n(683),h=r(_),m=n(9),M=n(69),E=n(688),T=(0,c.default)("calypso:notices"),A=o.default.createClass({displayName:"NoticesList",mixins:[(0,h.default)("notices")],getDefaultProps:function(){return{id:"overlay-notices",notices:Object.freeze([])}},componentWillMount:function(){T("Mounting Global Notices React component.")},removeNotice:function(e){e&&p.default.removeNotice(e)},render:function(){var e=this.props.notices[this.props.id]||[],t=e.map(function(e,t){return o.default.createElement(u.default,{key:"notice-old-"+t,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.removeNotice.bind(this,e),showDismiss:e.showDismiss},e.button&&o.default.createElement(d.default,{href:e.href,onClick:e.onClick},e.button))},this);return t=t.concat(this.props.storeNotices.map(function(e){return o.default.createElement(u.default,{key:"notice-"+e.noticeId,status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.props.removeNotice.bind(this,e.noticeId),text:e.text},e.button&&o.default.createElement(d.default,{href:e.href,onClick:e.onClick},e.button))},this)),t.length?o.default.createElement("div",{id:this.props.id,className:"global-notices"},t):null}});t.default=(0,m.connect)(function(e){return{storeNotices:(0,E.getNotices)(e)}},{removeNotice:M.removeNotice})(A),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.Notice=void 0;var c=n(63),s=r(c),u=n(1),l=r(u),d=n(5),f=r(d),p=n(3),_=n(21),h=r(_),m=t.Notice=function(e){function t(){var n,r,i;a(this,t);for(var c=arguments.length,s=Array(c),u=0;u<c;u++)s[u]=arguments[u];return n=r=o(this,e.call.apply(e,[this].concat(s))),r.dismissTimeout=null,i=n,o(r,i)}return i(t,e),t.prototype.componentDidMount=function(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))},t.prototype.componentWillUnmount=function(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)},t.prototype.getIcon=function(){var e=void 0;switch(this.props.status){case"is-info":e="info";break;case"is-success":e="checkmark";break;case"is-error":case"is-warning":e="notice";break;default:e="info"}return e},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=e.icon,a=e.isCompact,o=e.onDismissClick,i=e.showDismiss,c=void 0===i?!a:i,s=e.status,u=e.text,d=e.translate,p=(0,f.default)("notice",s,n,{"is-compact":a,"is-dismissable":c});return l.default.createElement("div",{className:p},l.default.createElement(h.default,{className:"notice__icon",icon:r||this.getIcon(),size:24}),l.default.createElement("span",{className:"notice__content"},l.default.createElement("span",{className:"notice__text"},u||t)),u?t:null,c&&l.default.createElement("span",{tabIndex:"0",className:"notice__dismiss",onClick:o},l.default.createElement(h.default,{icon:"cross",size:24}),l.default.createElement("span",{className:"notice__screen-reader-text screen-reader-text"},d("Dismiss"))))},t}(u.Component);m.defaultProps={className:"",duration:0,icon:null,isCompact:!1,onDismissClick:s.default,status:null,text:null},t.default=(0,p.localize)(m)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.lastTimeShown=t.items=void 0;var a,o,i=n(141),c=r(i),s=n(27),u=r(s),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(217),f=n(121),p=t.items=(0,f.createReducer)({},(a={},a[d.NOTICE_CREATE]=function(e,t){var n,r=t.notice;return l({},e,(n={},n[r.noticeId]=r,n))},a[d.NOTICE_REMOVE]=function(e,t){var n=t.noticeId;return e.hasOwnProperty(n)?(0,u.default)(e,n):e},a[d.ROUTE_SET]=function(e){return(0,c.default)(e,function(e,t,n){if(!t.isPersistent&&!t.displayOnNextPage)return e;var r=t;return r.displayOnNextPage&&(r=l({},r,{displayOnNextPage:!1})),e[n]=r,e},{})},a)),_=t.lastTimeShown=(0,f.createReducer)({},(o={},o[d.NOTICE_CREATE]=function(e,t){var n,r=t.notice;return l({},e,(n={},n[r.noticeId]=Date.now(),n))},o));t.default=(0,f.combineReducers)({items:p,lastTimeShown:_})},function(e,t,n){var r=n(90),a=n(724),o=n(723),i=n(56),c=n(230),s=n(355),u={},l={},t=e.exports=function(e,t,n,d,f){var p,_,h,m,M=f?function(){return e}:s(e),E=r(n,d,t?2:1),T=0;if("function"!=typeof M)throw TypeError(e+" is not iterable!");if(o(M)){for(p=c(e.length);p>T;T++)if((m=t?E(i(_=e[T])[0],_[1]):E(e[T]))===u||m===l)return m}else for(h=M.call(e);!(_=h.next()).done;)if((m=a(h,E,_.value,t))===u||m===l)return m};t.BREAK=u,t.RETURN=l},function(e,t,n){var r=n(56),a=n(727),o=n(221),i=n(227)("IE_PROTO"),c=function(){},s=function(){var e,t=n(344)("iframe"),r=o.length;for(t.style.display="none",n(722).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[o[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[i]=e):n=s(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(351),a=n(221);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(42).f,a=n(71),o=n(35)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(220);e.exports=function(e){return Object(r(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";var r=n(13),a=n(2),o=n(60),i=n(98),c=n(125),s=n(167),u=n(93),l=n(14),d=n(18),f=n(168),p=n(99),_=n(755);e.exports=function(e,t,n,h,m,M){var E=r[e],T=E,A=m?"set":"add",b=T&&T.prototype,v={},S=function(e){var t=b[e];o(b,e,"delete"==e?function(e){return!(M&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(M&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return M&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof T&&(M||b.forEach&&!d(function(){(new T).entries().next()}))){var g=new T,y=g[A](M?{}:-0,1)!=g,L=d(function(){g.has(1)}),O=f(function(e){new T(e)}),N=!M&&d(function(){for(var e=new T,t=5;t--;)e[A](t,t);return!e.has(-0)});O||(T=t(function(t,n){u(t,T,e);var r=_(new E,t,T);return void 0!=n&&s(n,m,r[A],r),r}),T.prototype=b,b.constructor=T),(L||N)&&(S("delete"),S("has"),m&&S("get")),(N||y)&&S(A),M&&b.clear&&delete b.clear}else T=h.getConstructor(t,e,m,A),i(T.prototype,n),c.NEED=!0;return p(T,e),v[e]=T,a(a.G+a.W+a.F*(T!=E),v),M||h.setStrong(T,e,m),T}},function(e,t,n){"use strict";var r=n(36),a=n(60),o=n(18),i=n(73),c=n(17);e.exports=function(e,t,n){var s=c(e),u=n(i,s,""[e]),l=u[0],d=u[1];o(function(){var t={};return t[s]=function(){return 7},7!=""[e](t)})&&(a(String.prototype,e,l),r(RegExp.prototype,s,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},function(e,t,n){var r=n(46),a=n(366),o=n(244),i=n(12),c=n(23),s=n(254),u={},l={},t=e.exports=function(e,t,n,d,f){var p,_,h,m,M=f?function(){return e}:s(e),E=r(n,d,t?2:1),T=0;if("function"!=typeof M)throw TypeError(e+" is not iterable!");if(o(M)){for(p=c(e.length);p>T;T++)if((m=t?E(i(_=e[T])[0],_[1]):E(e[T]))===u||m===l)return m}else for(h=M.call(e);!(_=h.next()).done;)if((m=a(h,E,_.value,t))===u||m===l)return m};t.BREAK=u,t.RETURN=l},function(e,t,n){var r=n(17)("iterator"),a=!1;try{var o=[7][r]();o.return=function(){a=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var o=[7],i=o[r]();i.next=function(){return{done:n=!0}},o[r]=function(){return i},e(o)}catch(e){}return n}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(13),a=n(20),o=n(30),i=n(17)("species");e.exports=function(e){var t=r[e];o&&t&&!t[i]&&a.f(t,i,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";function r(e,t,r,a){var i=s(e,t,r,a),c=i.input,u=i.format_type,l=i.metadata,d=void 0;c.country&&(d=l.countries[c.country]);var _=n.i(f.h)(c.phone,l),h=_.country_phone_code,m=_.number;if(h){if(c.country&&d&&h!==n.i(p.k)(d))return c.phone;d=n.i(p.f)(h,l)}if(!d)return c.phone;switch(u){case"International":if(!m)return"+"+n.i(p.k)(d);var M=o(m,"International",!1,d);return"+"+n.i(p.k)(d)+" "+M;case"International_plaintext":return"+"+n.i(p.k)(d)+c.phone;case"National":return m?o(m,"National",!1,d):""}}function a(e,t,r,a,o){var i=RegExp(n.i(p.d)(t)),s=n.i(p.i)(t,o),u=!s||s&&n.i(p.e)(t,o)&&!a;if(!r&&!u)return e.replace(i,n.i(p.j)(t).replace(_,s));var l=e.replace(i,r?n.i(p.b)(t):n.i(p.j)(t));return r?c(l):l}function o(e,t,r,o){var c=i(n.i(p.a)(o),e);return c?a(e,c,"International"===t,r,o):e}function i(e,t){var r=!0,a=!1,o=void 0;try{for(var i,c=l()(e);!(r=(i=c.next()).done);r=!0){var s=i.value;if(n.i(p.c)(s).length>0){var u=n.i(p.c)(s)[n.i(p.c)(s).length-1];if(0!==t.search(u))continue}if(n.i(d.a)(t,RegExp(n.i(p.d)(s))))return s}}catch(e){a=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}}function c(e){return e.replace(/[\(\)]/g,"").replace(/\-/g," ").trim()}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=arguments[2],r=arguments[3],a=void 0,o=void 0,i=void 0;if("string"==typeof e)if("string"==typeof n)a={phone:e,country:t},o=n,i=r;else{if(a={phone:e},"string"!=typeof t)throw Error("Format type argument not passed for `format()`");o=t,i=n}else a=e,o=t,i=n;if(!i)throw Error("Metadata not passed");switch(o){case"International":case"International_plaintext":case"National":break;default:throw Error('Unknown format type argument passed to "format()": "'+o+'"')}return{input:a,format_type:o,metadata:i}}t.a=r,n.d(t,"c",function(){return _}),t.b=a,t.e=i,t.d=c;var u=n(218),l=n.n(u),d=n(259),f=n(131),p=n(172),_=/(\$\d)/},function(e,t,n){"use strict";function r(e){return e[0]}function a(e){return e[1]}function o(e){return e[2]||[]}function i(e){return e[3]}function c(e){return e[4]}function s(e){var t=e[5];return t||(t=i(e)),t}function u(e){return e[6]}function l(e){return e[7]}function d(e){return e[8]}function f(e){return e[0]}function p(e){return e[1]}function _(e){return e[2]||[]}function h(e,t){return e[3]||c(t)}function m(e,t){return e[4]||l(t)}function M(e,t){var n=h(e,t);return n&&"$1"!==n&&/\d/.test(n.replace("$1",""))&&!m(e,t)}function E(e){return e[5]||p(e)}function T(e,t){var n=t.country_phone_code_to_countries[e][0];return t.countries[n]}function A(e){return e[9]}function b(e,t){return A(e)?A(e)[t]:void 0}function v(e){return b(e,0)}function S(e){return b(e,1)}function g(e){return b(e,2)}function y(e){return b(e,3)}function L(e){return b(e,4)}function O(e){return b(e,5)}function N(e){return b(e,6)}function C(e){return b(e,7)}function R(e){return b(e,8)}function w(e){return b(e,9)}t.k=r,t.l=a,t.a=o,t.g=s,t.m=u,t.n=d,t.d=f,t.j=p,t.c=_,t.i=h,t.e=m,t.h=M,t.b=E,t.f=T,t.y=A,t.p=v,t.o=S,t.q=g,t.r=y,t.s=L,t.t=O,t.u=N,t.v=C,t.w=R,t.x=w},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function a(e,t){var n=I(e)||p(e)?r(e.length,String):[],a=n.length,o=!!a;for(var i in e)!t&&!O.call(e,i)||o&&("length"==i||u(i,a))||n.push(i);return n}function o(e,t,n){var r=e[t];O.call(e,t)&&f(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function i(e){if(!d(e))return R(e);var t=[];for(var n in Object(e))O.call(e,n)&&"constructor"!=n&&t.push(n);return t}function c(e,t){return t=w(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,o=w(r.length-t,0),i=Array(o);++a<o;)i[a]=r[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=r[a];return c[t]=i,n(e,this,c)}}function s(e,t,n,r){n||(n={});for(var a=-1,i=t.length;++a<i;){var c=t[a],s=r?r(n[c],e[c],c,n,e):void 0;o(n,c,void 0===s?e[c]:s)}return n}function u(e,t){return!!(t=null==t?b:t)&&("number"==typeof e||y.test(e))&&e>-1&&e%1==0&&e<t}function l(e,t,n){if(!E(n))return!1;var r=typeof t;return!!("number"==r?_(n)&&u(t,n.length):"string"==r&&t in n)&&f(n[t],e)}function d(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||L)}function f(e,t){return e===t||e!==e&&t!==t}function p(e){return h(e)&&O.call(e,"callee")&&(!C.call(e,"callee")||N.call(e)==v)}function _(e){return null!=e&&M(e.length)&&!m(e)}function h(e){return T(e)&&_(e)}function m(e){var t=E(e)?N.call(e):"";return t==S||t==g}function M(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=b}function E(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function T(e){return!!e&&"object"==typeof e}function A(e){return _(e)?a(e):i(e)}var b=9007199254740991,v="[object Arguments]",S="[object Function]",g="[object GeneratorFunction]",y=/^(?:0|[1-9]\d*)#x2F;,L=Object.prototype,O=L.hasOwnProperty,N=L.toString,C=L.propertyIsEnumerable,R=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),w=Math.max,z=!C.call({valueOf:1},"valueOf"),I=Array.isArray,D=function(e){return c(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,i&&l(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,o)}return t})}(function(e,t){if(z||d(t)||_(t))return void s(t,A(t),e);for(var n in t)O.call(t,n)&&o(e,n,t[n])});e.exports=D},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var a=n(979),o=n(980),i=n(981),c=n(982),s=n(983);r.prototype.clear=a,r.prototype.delete=o,r.prototype.get=i,r.prototype.has=c,r.prototype.set=s,e.exports=r},function(e,t,n){function r(e){var t=this.__data__=new a(e);this.size=t.size}var a=n(174),o=n(1e3),i=n(1001),c=n(1002),s=n(1003),u=n(1004);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=c,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}e.exports=n},function(e,t,n){function r(e,t,n){var r=e[t];c.call(e,t)&&o(r,n)&&(void 0!==n||t in e)||a(e,t,n)}var a=n(132),o=n(137),i=Object.prototype,c=i.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}var a=n(137);e.exports=r},function(e,t,n){var r=n(19),a=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){function r(e,t,n,i,c){var s=-1,u=e.length;for(n||(n=o),c||(c=[]);++s<u;){var l=e[s];t>0&&n(l)?t>1?r(l,t-1,n,i,c):a(c,l):i||(c[c.length]=l)}return c}var a=n(176),o=n(976);e.exports=r},function(e,t,n){function r(e,t){t=a(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[o(t[n++])];return n&&n==r?e:void 0}var a=n(105),o=n(106);e.exports=r},function(e,t,n){function r(e,t,n){return t===t?i(e,t,n):a(e,o,n)}var a=n(397),o=n(914),i=n(1005);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e)return e;if(i(e))return o(e,r)+"";if(c