diff --git a/action/supprimer_chapitre.php b/action/supprimer_chapitre.php new file mode 100644 index 0000000..6a07569 --- /dev/null +++ b/action/supprimer_chapitre.php @@ -0,0 +1,118 @@ +, + * #URL_ACTION_AUTEUR{supprimer_chapitre, #ID_CHAPITRE, #URL_ECRIRE{chapitres}}, + * danger, <:chapitre:confirmer_supprimer_chapitre:/>})] + * ] + * ``` + * + * @example + * ``` + * [(#AUTORISER{supprimer, chapitre, #ID_CHAPITRE}|oui) + * [(#BOUTON_ACTION{ + * [(#CHEMIN_IMAGE{chapitre-del-24.png}|balise_img{<:chapitre:supprimer_chapitre:/>}|concat{' ',#VAL{<:chapitre:supprimer_chapitre:/>}|wrap{}}|trim)], + * #URL_ACTION_AUTEUR{supprimer_chapitre, #ID_CHAPITRE, #URL_ECRIRE{chapitres}}, + * icone s24 horizontale danger chapitre-del-24, <:chapitre:confirmer_supprimer_chapitre:/>})] + * ] + * ``` + * + * @example + * ``` + * if (autoriser('supprimer', 'chapitre', $id_chapitre)) { + * $supprimer_chapitre = charger_fonction('supprimer_chapitre', 'action'); + * $supprimer_chapitre($id_chapitre); + * } + * ``` + * + * @param null|int $arg + * Identifiant à supprimer. + * En absence de id utilise l'argument de l'action sécurisée. +**/ +function action_supprimer_chapitre_dist($arg=null) { + $need_confirm = false; + if (is_null($arg)){ + $securiser_action = charger_fonction('securiser_action', 'inc'); + $arg = $securiser_action(); + $need_confirm = true; + } + $arg = intval($arg); + + if ($need_confirm){ + $ok = confirmer_supprimer_chapitre_avant_action(_T('chapitre:confirmer_supprimer_chapitre'), _T('item_oui') . '! ' . _T('chapitre:supprimer_chapitre')); + } + + // cas suppression + if (autoriser('supprimer', 'chapitre', $arg)) { + if ($arg) { + $objet = sql_fetsel('*', 'spip_chapitres', 'id_chapitre=' . sql_quote($arg)); + $qui = (!empty($GLOBALS['visiteur_session']['id_auteur']) ? 'auteur #' . $GLOBALS['visiteur_session']['id_auteur'] : 'IP ' . $GLOBALS['ip']); + spip_log("SUPPRESSION chapitre#$arg par $qui : " . json_encode($objet), "suppressions" . _LOG_INFO_IMPORTANTE); + + sql_delete('spip_chapitres', 'id_chapitre=' . sql_quote($arg)); + + // invalider le cache + include_spip('inc/invalideur'); + suivre_invalideur("id='chapitre/$arg'"); + + } + else { + spip_log("action_supprimer_chapitre_dist $arg pas compris"); + } + } +} + +/** + * Confirmer avant suppression si on arrive par un bouton action + * @param string $titre + * @param string $titre_bouton + * @param string|null $url_action + * @return bool + */ +function confirmer_supprimer_chapitre_avant_action($titre, $titre_bouton, $url_action=null) { + + if (!$url_action) { + $url_action = self(); + $action = _request('action'); + $url_action = parametre_url($url_action, 'action', $action, '&'); + } + else { + $action = parametre_url($url_action, 'action'); + } + $arg = parametre_url($url_action, 'arg'); + $confirm = md5("$action:$arg:".realpath(__FILE__)); + if (_request('confirm_action') === $confirm) { + return true; + } + + $url_confirm = parametre_url($url_action, "confirm_action", $confirm, '&'); + include_spip("inc/filtres"); + $bouton_action = bouton_action($titre_bouton, $url_confirm); + $corps = "
$bouton_action
"; + + include_spip("inc/minipres"); + echo minipres($titre,$corps); + exit; +} diff --git a/base/libreavous.php b/base/libreavous.php new file mode 100644 index 0000000..22fc78c --- /dev/null +++ b/base/libreavous.php @@ -0,0 +1,216 @@ + 'input', + 'options' => array( + 'nom' => 'podcast_code', + 'label' => 'Code', + 'type' => 'text', + 'size' => '40', + 'autocomplete' => 'defaut', + 'sql' => 'text DEFAULT \'\' NOT NULL', + ), + 'verifier' => array( + ), + ); + + $champs['spip_articles']['podcast_duree'] = array( + 'saisie' => 'input', + 'options' => array( + 'nom' => 'podcast_duree', + 'label' => 'Durée', + 'type' => 'text', + 'size' => '40', + 'autocomplete' => 'defaut', + 'sql' => 'text DEFAULT \'\' NOT NULL', + ), + 'verifier' => array( + ), + ); + + $champs['spip_articles']['podcast_mp3'] = array( + 'saisie' => 'input', + 'options' => array( + 'nom' => 'podcast_mp3', + 'label' => 'Taille mp3', + 'type' => 'text', + 'size' => '40', + 'autocomplete' => 'defaut', + 'sql' => 'text DEFAULT \'\' NOT NULL', + ), + 'verifier' => array( + ), + ); + + $champs['spip_articles']['podcast_ogg'] = array( + 'saisie' => 'input', + 'options' => array( + 'nom' => 'podcast_ogg', + 'label' => 'Taille Ogg', + 'type' => 'text', + 'size' => '40', + 'autocomplete' => 'defaut', + 'sql' => 'text DEFAULT \'\' NOT NULL', + ), + 'verifier' => array( + ), + ); + + $champs['spip_articles']['podcast_transcription'] = array( + 'saisie' => 'input', + 'options' => array( + 'nom' => 'podcast_transcription', + 'label' => 'Lien transcription', + 'type' => 'text', + 'size' => '40', + 'autocomplete' => 'defaut', + 'sql' => 'text DEFAULT \'\' NOT NULL', + ), + 'verifier' => array( + ), + ); + + $champs['spip_articles']['podcast_personnes'] = array( + 'saisie' => 'textarea', + 'options' => array( + 'nom' => 'podcast_personnes', + 'label' => 'Personnes participantes', + 'rows' => '5', + 'cols' => '40', + 'sql' => 'text DEFAULT \'\' NOT NULL', + ), + 'verifier' => array( + ), + ); + + $champs['spip_articles']['podcast_galeriephotos'] = array( + 'saisie' => 'textarea', + 'options' => array( + 'nom' => 'podcast_galeriephotos', + 'label' => 'Galerie Photos', + 'rows' => '5', + 'cols' => '40', + 'sql' => 'text DEFAULT \'\' NOT NULL', + ), + 'verifier' => array( + ), + ); + + $champs['spip_articles']['podcast_musique'] = array( + 'saisie' => 'textarea', + 'options' => array( + 'nom' => 'podcast_musique', + 'label' => 'Pauses musicales', + 'rows' => '5', + 'cols' => '40', + 'sql' => 'text DEFAULT \'\' NOT NULL', + ), + 'verifier' => array( + ), + ); + + $champs['spip_articles']['drupal_guid'] = array( + 'saisie' => 'input', + 'options' => array( + 'nom' => 'drupal_guid', + 'label' => 'GUID Drupral', + 'type' => 'text', + 'size' => '40', + 'autocomplete' => 'defaut', + 'sql' => 'text DEFAULT \'\' NOT NULL', + ), + 'verifier' => array( + ), + ); + + $champs['spip_articles']['drupal_pubdate'] = array( + 'saisie' => 'input', + 'options' => array( + 'nom' => 'drupal_pubdate', + 'label' => 'PubDate Drupal', + 'type' => 'text', + 'size' => '40', + 'autocomplete' => 'defaut', + 'sql' => 'text DEFAULT \'\' NOT NULL', + ), + 'verifier' => array( + ), + ); + + return $champs; +} + +// un nouvel objet chapitre +/** + * Déclaration des alias de tables et filtres automatiques de champs + * + * @pipeline declarer_tables_interfaces + * @param array $interfaces + * Déclarations d'interface pour le compilateur + * @return array + * Déclarations d'interface pour le compilateur + */ +function libreavous_declarer_tables_interfaces($interfaces) { + + $interfaces['table_des_tables']['chapitres'] = 'chapitres'; + + return $interfaces; +} + + +/** + * Déclaration des objets éditoriaux + * + * @pipeline declarer_tables_objets_sql + * @param array $tables + * Description des tables + * @return array + * Description complétée des tables + */ +function libreavous_declarer_tables_objets_sql($tables) { + + $tables['spip_chapitres'] = array( + 'type' => 'chapitre', + 'principale' => 'oui', + 'field'=> array( + 'id_chapitre' => 'bigint(21) NOT NULL', + 'id_article' => 'bigint(21) NOT NULL DEFAULT 0', + 'titre' => 'tinytext NOT NULL DEFAULT ""', + 'code' => 'tinytext NOT NULL DEFAULT ""', + 'code_fichier' => 'tinytext NOT NULL DEFAULT ""', + 'code_podcast' => 'varchar(255) NOT NULL DEFAULT ""', + 'debut' => 'varchar(25) NOT NULL DEFAULT ""', + 'fin' => 'varchar(25) NOT NULL DEFAULT ""', + 'type_sujet' => 'varchar(25) NOT NULL DEFAULT ""', + 'chronique' => 'varchar(255) NOT NULL DEFAULT ""', + 'mp3' => 'varchar(255) NOT NULL DEFAULT ""', + 'ogg' => 'varchar(255) NOT NULL DEFAULT ""', + 'drupal_guid' => 'varchar(255) NOT NULL DEFAULT ""', + 'drupal_pubdate' => 'varchar(255) NOT NULL DEFAULT ""', + 'maj' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP' + ), + 'key' => array( + 'PRIMARY KEY' => 'id_chapitre', + 'KEY id_article' => 'id_article', + ), + 'titre' => 'titre AS titre, "" AS lang', + #'date' => '', + 'champs_editables' => array('titre', 'code', 'code_fichier', 'code_podcast', 'debut', 'fin', 'type_sujet', 'chronique', 'mp3', 'ogg', 'drupal_guid', 'drupal_pubdate', 'id_article'), + 'champs_versionnes' => array('titre', 'code', 'code_fichier', 'code_podcast', 'debut', 'fin', 'type_sujet', 'chronique', 'mp3', 'ogg', 'drupal_guid', 'drupal_pubdate', 'id_article'), + 'rechercher_champs' => array("titre" => 5), + 'tables_jointures' => array(), + + + ); + + return $tables; +} diff --git a/formulaires/editer_chapitre.html b/formulaires/editer_chapitre.html new file mode 100644 index 0000000..72c1379 --- /dev/null +++ b/formulaires/editer_chapitre.html @@ -0,0 +1,66 @@ +
+ [

(#ENV**{message_ok})

] + [

(#ENV*{message_erreur})

] + + [(#ENV{editable}) +
+ #ACTION_FORMULAIRE + + +
+ + + [(#SAISIE{input, titre, obligatoire=oui, + label=<:chapitre:champ_titre_label:/>, + explication=<:chapitre:champ_titre_explication:/> })] + + [(#SAISIE{input, code, + label=<:chapitre:champ_code_label:/>, + explication=<:chapitre:champ_code_explication:/> })] + + [(#SAISIE{input, code_fichier, + label=<:chapitre:champ_code_fichier_label:/>})] + + [(#SAISIE{input, code_podcast, + label=<:chapitre:champ_code_podcast_label:/>, + explication=<:chapitre:champ_code_podcast_explication:/> })] + + [(#SAISIE{input, debut, + label=<:chapitre:champ_debut_label:/>, + explication=<:chapitre:champ_debut_explication:/> })] + + [(#SAISIE{input, fin, + label=<:chapitre:champ_fin_label:/>, + explication=<:chapitre:champ_fin_explication:/> })] + + [(#SAISIE{input, type_sujet, + label=<:chapitre:champ_type_sujet_label:/>, + explication=<:chapitre:champ_type_sujet_explication:/> })] + + [(#SAISIE{input, chronique, + label=<:chapitre:champ_chronique_label:/>})] + + [(#SAISIE{input, mp3, + label=<:chapitre:champ_mp3_label:/>, + explication=<:chapitre:champ_mp3_explication:/> })] + + [(#SAISIE{input, ogg, + label=<:chapitre:champ_ogg_label:/>, + explication=<:chapitre:champ_ogg_explication:/> })] + + [(#SAISIE{input, drupal_guid, + label=<:chapitre:champ_drupal_guid_label:/>, + explication=<:chapitre:champ_drupal_guid_explication:/> })] + + [(#SAISIE{input, drupal_pubdate, + label=<:chapitre:champ_drupal_pubdate_label:/>, + explication=<:chapitre:champ_drupal_pubdate_explication:/> })] + + +
+ [(#REM) ajouter les saisies supplementaires : extra et autre, a cet endroit ] + +

+
+ ] +
diff --git a/formulaires/editer_chapitre.php b/formulaires/editer_chapitre.php new file mode 100644 index 0000000..6047c4e --- /dev/null +++ b/formulaires/editer_chapitre.php @@ -0,0 +1,137 @@ + 'Ajouter ce chapitre', + + // C + 'champ_chronique_label' => 'Chronique', + 'champ_code_explication' => 'dans le json = short_chapter_name', + 'champ_code_fichier_label' => 'Code du fichier', + 'champ_code_label' => 'code', + 'champ_code_podcast_explication' => 'Même valeur que le champ \"podcast_code\" d\'un article/émission.', + 'champ_code_podcast_label' => 'Code du podcast', + 'champ_debut_explication' => 'Début du chapitre (sous la forme 00:00:00.000) (dans le json = start_timestamp)', + 'champ_debut_label' => 'debut', + 'champ_drupal_guid_explication' => 'GUID du flux RSS Drupal', + 'champ_drupal_guid_label' => 'Drupal GUID', + 'champ_drupal_pubdate_explication' => 'pubDate du flux RSS actuel', + 'champ_drupal_pubdate_label' => 'Drupal pubdate', + 'champ_fin_explication' => 'Fin du chapitre (sous la forme 00:00:00.000) (dans le json = end_timestamp)', + 'champ_fin_label' => 'fin', + 'champ_mp3_explication' => 'Taille du fichier mp3', + 'champ_mp3_label' => 'MP3', + 'champ_ogg_explication' => 'Taille du fichier ogg', + 'champ_ogg_label' => 'OGG', + 'champ_titre_explication' => 'dans le json = chapter_title', + 'champ_titre_label' => 'titre', + 'champ_type_sujet_explication' => 'Nomenclature de deux lettres : SL, SC, CH, AN', + 'champ_type_sujet_label' => 'Type de sujet', + 'confirmer_supprimer_chapitre' => 'Confirmez-vous la suppression de ce chapitre ?', + + // I + 'icone_creer_chapitre' => 'Créer un chapitre', + 'icone_modifier_chapitre' => 'Modifier ce chapitre', + 'info_1_chapitre' => 'Un chapitre', + 'info_aucun_chapitre' => 'Aucun chapitre', + 'info_chapitres_auteur' => 'Les chapitres de cet auteur', + 'info_nb_chapitres' => '@nb@ chapitres', + + // R + 'retirer_lien_chapitre' => 'Retirer ce chapitre', + 'retirer_tous_liens_chapitres' => 'Retirer tous les chapitres', + + // S + 'supprimer_chapitre' => 'Supprimer ce chapitre', + + // T + 'texte_ajouter_chapitre' => 'Ajouter un chapitre', + 'texte_changer_statut_chapitre' => 'Ce chapitre est :', + 'texte_creer_associer_chapitre' => 'Créer et associer un chapitre', + 'texte_definir_comme_traduction_chapitre' => 'Ce chapitre est une traduction du chapitre numéro :', + 'titre_chapitre' => 'Chapitre', + 'titre_chapitres' => 'Chapitres', + 'titre_chapitres_rubrique' => 'Chapitres de la rubrique', + 'titre_langue_chapitre' => 'Langue de ce chapitre', + 'titre_logo_chapitre' => 'Logo de ce chapitre', + 'titre_objets_lies_chapitre' => 'Liés à ce chapitre', + 'titre_page_chapitres' => 'Les chapitres', +); diff --git a/lang/paquet-libreavous_fr.php b/lang/paquet-libreavous_fr.php new file mode 100644 index 0000000..6fd4150 --- /dev/null +++ b/lang/paquet-libreavous_fr.php @@ -0,0 +1,14 @@ + '', + 'libreavous_nom' => '+ Libre à vous !', + 'libreavous_slogan' => ' ', +); diff --git a/libreavous_administrations.php b/libreavous_administrations.php new file mode 100644 index 0000000..c105319 --- /dev/null +++ b/libreavous_administrations.php @@ -0,0 +1,99 @@ + "Texte de l'exemple")) + #); + # + # $maj['1.1.0'] = array(array('sql_alter','TABLE spip_xx RENAME TO spip_yy')); + # $maj['1.2.0'] = array(array('sql_alter','TABLE spip_xx DROP COLUMN id_auteur')); + # $maj['1.3.0'] = array( + # array('sql_alter','TABLE spip_xx CHANGE numero numero int(11) default 0 NOT NULL'), + # array('sql_alter','TABLE spip_xx CHANGE texte petit_texte mediumtext NOT NULL default \'\''), + # ); + # ... + + cextras_api_upgrade(libreavous_declarer_champs_extras(), $maj['0.0.1']); + + $maj['0.1.0'] = array(array('maj_tables', array('spip_chapitres'))); + + include_spip('base/upgrade'); + maj_plugin($nom_meta_base_version, $version_cible, $maj); +} + + +/** + * Fonction de désinstallation du plugin chapitre. + * + * Vous devez : + * + * - nettoyer toutes les données ajoutées par le plugin et son utilisation + * - supprimer les tables et les champs créés par le plugin. + * + * @param string $nom_meta_base_version + * Nom de la meta informant de la version du schéma de données du plugin installé dans SPIP + * @return void +**/ +function libreavous_vider_tables($nom_meta_base_version) { + # quelques exemples + # (que vous pouvez supprimer !) + # sql_drop_table('spip_xx'); + # sql_drop_table('spip_xx_liens'); + + cextras_api_vider_tables(libreavous_declarer_champs_extras()); + + sql_drop_table('spip_chapitres'); + + # Nettoyer les liens courants (le génie optimiser_base_disparus se chargera de nettoyer toutes les tables de liens) + sql_delete('spip_documents_liens', sql_in('objet', array('chapitre'))); + sql_delete('spip_mots_liens', sql_in('objet', array('chapitre'))); + sql_delete('spip_auteurs_liens', sql_in('objet', array('chapitre'))); + # Nettoyer les versionnages et forums + sql_delete('spip_versions', sql_in('objet', array('chapitre'))); + sql_delete('spip_versions_fragments', sql_in('objet', array('chapitre'))); + sql_delete('spip_forum', sql_in('objet', array('chapitre'))); + + effacer_meta($nom_meta_base_version); +} diff --git a/libreavous_autorisations.php b/libreavous_autorisations.php index 8cf5113..178a83d 100644 --- a/libreavous_autorisations.php +++ b/libreavous_autorisations.php @@ -12,3 +12,124 @@ function libreavous_autoriser() { } + + +/* Exemple +function autoriser_chapitre_configurer_dist($faire, $type, $id, $qui, $opt) { + // type est un objet (la plupart du temps) ou une chose. + // autoriser('configurer', '_chapitre') => $type = 'chapitre' + // au choix : + return autoriser('webmestre', $type, $id, $qui, $opt); // seulement les webmestres + return autoriser('configurer', '', $id, $qui, $opt); // seulement les administrateurs complets + return $qui['statut'] == '0minirezo'; // seulement les administrateurs (même les restreints) + // ... +} +*/ + + + +// restreindre les champs 'array(...)' sur les articles qui portent la composition 'emission' +restreindre_extras('article', array( + 'podcast_code', + 'podcast_duree', + 'podcast_mp3', + 'podcast_ogg', + 'podcast_transcription', + 'podcast_personnes', + 'podcast_galeriephotos', + 'podcast_musique', + 'drupal_guid', + 'drupal_pubdate' +), 'emission', 'composition'); + + +// ----------------- +// Objet chapitres + + + + +/** +* Autorisation de voir (chapitres) +* +* @param string $faire Action demandée +* @param string $type Type d'objet sur lequel appliquer l'action +* @param int $id Identifiant de l'objet +* @param array $qui Description de l'auteur demandant l'autorisation +* @param array $opt Options de cette autorisation +* @return bool true s'il a le droit, false sinon +**/ +function autoriser_chapitres_voir_dist($faire, $type, $id, $qui, $opt) { + return true; +} + +/** +* Autorisation de voir (chapitre) +* +* @param string $faire Action demandée +* @param string $type Type d'objet sur lequel appliquer l'action +* @param int $id Identifiant de l'objet +* @param array $qui Description de l'auteur demandant l'autorisation +* @param array $opt Options de cette autorisation +* @return bool true s'il a le droit, false sinon +**/ +function autoriser_chapitre_voir_dist($faire, $type, $id, $qui, $opt) { + return true; +} + +/** + * Autorisation de créer (chapitre) + * + * @param string $faire Action demandée + * @param string $type Type d'objet sur lequel appliquer l'action + * @param int $id Identifiant de l'objet + * @param array $qui Description de l'auteur demandant l'autorisation + * @param array $opt Options de cette autorisation + * @return bool true s'il a le droit, false sinon +**/ +function autoriser_chapitre_creer_dist($faire, $type, $id, $qui, $opt) { + return in_array($qui['statut'], array('0minirezo', '1comite')); +} + +/** + * Autorisation de modifier (chapitre) + * + * @param string $faire Action demandée + * @param string $type Type d'objet sur lequel appliquer l'action + * @param int $id Identifiant de l'objet + * @param array $qui Description de l'auteur demandant l'autorisation + * @param array $opt Options de cette autorisation + * @return bool true s'il a le droit, false sinon +**/ +function autoriser_chapitre_modifier_dist($faire, $type, $id, $qui, $opt) { + return in_array($qui['statut'], array('0minirezo', '1comite')); +} + +/** + * Autorisation de supprimer (chapitre) + * + * @param string $faire Action demandée + * @param string $type Type d'objet sur lequel appliquer l'action + * @param int $id Identifiant de l'objet + * @param array $qui Description de l'auteur demandant l'autorisation + * @param array $opt Options de cette autorisation + * @return bool true s'il a le droit, false sinon +**/ +function autoriser_chapitre_supprimer_dist($faire, $type, $id, $qui, $opt) { + return in_array($qui['statut'], array('0minirezo', '1comite')); +} + + +/** + * Autorisation de créer l'élément (chapitre) dans un articles + * + * @param string $faire Action demandée + * @param string $type Type d'objet sur lequel appliquer l'action + * @param int $id Identifiant de l'objet + * @param array $qui Description de l'auteur demandant l'autorisation + * @param array $opt Options de cette autorisation + * @return bool true s'il a le droit, false sinon +**/ +function autoriser_article_creerchapitredans_dist($faire, $type, $id, $qui, $opt) { + return ($id and autoriser('voir', 'articles', $id) and autoriser('creer', 'chapitre')); +} diff --git a/libreavous_fonctions.php b/libreavous_fonctions.php index a4c6d56..11cefee 100644 --- a/libreavous_fonctions.php +++ b/libreavous_fonctions.php @@ -1,7 +1,190 @@
\n", $texte))); +} + +function filtre_decode_html($texte) { + return html_entity_decode($texte); +} + +function filtre_mes_supp_numero($texte) { + $idx = strpos($texte, "-"); + return trim(substr($texte, $idx +1)); +} + +function balise_MES_IMPORT($p) { +$id_rubrique = "''"; +$id_secteur = "''"; + if (($v = interprete_argument_balise(1,$p))!==NULL){ + $id_rubrique = $v; + if (($v = interprete_argument_balise(2,$p))!==NULL) { + $id_secteur = $v; + } + } + $p->code = "mes_Import()"; + return $p; +} + +function mes_Import_Historique() { + $historique = simplexml_load_file ("/var/www/exemole.fr/libreavous/historique.xml"); + foreach ($historique->item as $item) { + $code = $item['code']; + $array = array( + 'drupal_guid' => $item['guid'], + 'drupal_pubdate' => $item['pubdate'] + ); + $type = $item['type']; + if ($type == 'emission') { + $existant = sql_select("id_article","spip_articles","podcast_code=".sql_quote($code)); + if ($existant and sql_count($existant)>0) { + $r = sql_fetch($existant); + $id_article = $r["id_article"]; + sql_updateq("spip_articles", $array, "id_article=".$id_article); + } else { + echo "Émission inconnue = $code
" ; + } + } else { + $chapitreExistant = sql_select("id_chapitre","spip_chapitres",array("code_podcast=".sql_quote($code), "code_fichier=".sql_quote($item['chapitre']))); + if ($chapitreExistant and sql_count($chapitreExistant)>0) { + $r = sql_fetch($chapitreExistant); + $id_chapitre = $r["id_chapitre"]; + sql_updateq("spip_chapitres", $array, "id_chapitre=".$id_chapitre); + } else { + echo "Chapitre inconnu = $code / fichier = ".$item['chapitre']."
" ; + } + } + } +} + +function mes_Import($id_rubrique, $id_secteur) { + $emissions = simplexml_load_file ("/var/www/exemole.fr/libreavous/verspip.xml"); + foreach ($emissions->emission as $emission) { + $code = $emission["code"]; + $emissionArray = array( + 'lang' => 'fr', + 'surtitre' => $emission["numero"], + 'titre' => $emission["numero"].' - '.$emission["titre"], + 'soustitre' => "", + 'id_rubrique' => $id_rubrique, + 'id_secteur' => $id_secteur, + 'descriptif' => $emission["description"], + 'chapo' => $emission["programme"], + 'texte' => $emission["references"], + 'ps' => "", + 'statut' => 'publie', + 'accepter_forum' => 'non', + 'date' => mes_toDateIso($emission["code"]), + 'podcast_code' => $emission["code"], + 'podcast_duree' => $emission["duree"], + 'podcast_mp3' => $emission["mp3"], + 'podcast_ogg' => $emission["ogg"], + 'podcast_transcription' => $emission["transcription"], + 'podcast_personnes' => $emission["personnes"], + 'podcast_galeriephotos' => $emission["galeriephotos"], + 'podcast_musique' => $emission["musique"] + ); + $existant = sql_select("id_article","spip_articles","podcast_code=".sql_quote($code)); + if ($existant and sql_count($existant)>0) { + $r = sql_fetch($existant); + $id_article = $r["id_article"]; + sql_updateq("spip_articles", $emissionArray, "id_article=".$id_article); + } else { + $id_article = sql_insertq("spip_articles", $emissionArray); + } + foreach ($emission->chapitre as $chapitre) { + $code_chapitre = $chapitre["code"]; + $chapitreArray = array( + 'titre' => $chapitre["titre"], + 'code' => $chapitre["code"], + 'id_article' => $id_article, + 'code_fichier' => $chapitre["fichier"], + 'code_podcast' => $emission["code"], + 'debut' => $chapitre["debut"], + 'fin' => $chapitre["fin"], + 'type_sujet' => $chapitre["type"], + 'chronique' => $chapitre["chronique"], + 'mp3' => $chapitre["mp3"], + 'ogg' => $chapitre["ogg"], + 'references_sujet' => $chapitre["references"] + ); + $chapitreExistant = sql_select("id_chapitre","spip_chapitres",array("id_article=".$id_article, "code=".sql_quote($code_chapitre))); + if ($chapitreExistant and sql_count($chapitreExistant)>0) { + $r = sql_fetch($chapitreExistant); + $id_chapitre = $r["id_chapitre"]; + sql_updateq("spip_chapitres", $chapitreArray, "id_chapitre=".$id_chapitre); + } else { + $id_nouveau_chapitre = sql_insertq("spip_chapitres", $chapitreArray); + } + + } + } +} + +function mes_toDateIso($code) { + $texte = substr($code, 0, 4)."-".substr($code,4,2)."-".substr($code,6,2)." 15:30:00"; + return $texte; +} + +function filtre_mes_mio($number) { + $mio = round($number / (1024 * 1024), 1); + if ($mio < 10) { + $mio = round($mio, 2); + return number_format($mio, 2, ',', ' '); + } else if ($mio < 100) { + $mio = round($mio, 1); + return number_format($mio, 1, ',', ' '); + } else { + $mio = round($mio, 0); + return number_format($mio, 0, ',', ' '); + } + return $mio; +} + +function filtre_mes_conversionDrupal($shortdate) { + $annee = substr($shortdate, 0, 4); + $mois = substr($shortdate, 4, 2); + $jour = substr($shortdate, 6, 2); + if (substr($jour, 0, 1) == "0") { + $jour = substr($jour, 1, 1); + } + return $jour."-".mes_conversionMoisDrupal($mois)."-".$annee; +} + +function mes_conversionMoisDrupal($mois) { + switch($mois) { + case "01": + return "janvier"; + case "02": + return "fevrier"; + case "03": + return "mars"; + case "04": + return "avril"; + case "05": + return "mai"; + case "06": + return "juin"; + case "07": + return "juillet"; + case "08": + return "aout"; + case "09": + return "septembre"; + case "10": + return "octobre"; + case "11": + return "novembre"; + case "12": + return "decembre"; + default: + return "XX"; + } +} + + diff --git a/libreavous_pipelines.php b/libreavous_pipelines.php new file mode 100644 index 0000000..e4c64c4 --- /dev/null +++ b/libreavous_pipelines.php @@ -0,0 +1,99 @@ + _T('chapitre:titre_chapitres'), + 'id_article' => $id_objet + ) + ); + + if (autoriser('creerchapitredans', 'articles', $id_objet)) { + include_spip('inc/presentation'); + $flux['data'] .= icone_verticale( + _T('chapitre:icone_creer_chapitre'), + generer_url_ecrire('chapitre_edit', "id_article=$id_objet"), + 'chapitre-24.png', + 'new', + 'right' + ) . "
"; + } + } + } + return $flux; +} + +/** + * Afficher le nombre d'éléments dans les parents + * + * @pipeline boite_infos + * @param array $flux Données du pipeline + * @return array Données du pipeline +**/ +function libreavous_boite_infos($flux) { + if (isset($flux['args']['type']) and isset($flux['args']['id']) and $id = intval($flux['args']['id'])) { + $texte = ''; + if ($flux['args']['type'] == 'article' and $nb = sql_countsel('spip_chapitres', array('id_article=' . $id))) { + $texte .= '
' . singulier_ou_pluriel($nb, 'chapitre:info_1_chapitre', 'chapitre:info_nb_chapitres') . "
\n"; + } + if ($texte and $p = strpos($flux['data'], '')) { + $flux['data'] = substr_replace($flux['data'], $texte, $p, 0); + } + } + return $flux; +} + + +/** + * Compter les enfants d'un objet + * + * @pipeline objets_compte_enfants + * @param array $flux Données du pipeline + * @return array Données du pipeline +**/ +function libreavous_objet_compte_enfants($flux) { + if ($flux['args']['objet'] == 'article' and $id_article = intval($flux['args']['id_objet'])) { + $flux['data']['chapitres'] = sql_countsel('spip_chapitres', 'id_article= ' . intval($id_article)); + } + + return $flux; +} diff --git a/paquet.xml b/paquet.xml index c257f46..d312bda 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,10 +1,10 @@ + APRIL - LIBRE À VOUS @@ -13,7 +13,7 @@ - + @@ -21,8 +21,12 @@ - - + + + + + + diff --git a/prive/objets/contenu/chapitre.html b/prive/objets/contenu/chapitre.html new file mode 100644 index 0000000..204e83d --- /dev/null +++ b/prive/objets/contenu/chapitre.html @@ -0,0 +1,62 @@ + +[
+
<:chapitre:champ_titre_label:/> :
+ (#TITRE) +
] + +[
+
<:chapitre:champ_code_label:/> :
+ (#CODE) +
] + +[
+
<:chapitre:champ_code_fichier_label:/> :
+ (#CODE_FICHIER) +
] + +[
+
<:chapitre:champ_code_podcast_label:/> :
+ (#CODE_PODCAST) +
] + +[
+
<:chapitre:champ_debut_label:/> :
+ (#DEBUT) +
] + +[
+
<:chapitre:champ_fin_label:/> :
+ (#FIN) +
] + +[
+
<:chapitre:champ_type_sujet_label:/> :
+ (#TYPE_SUJET) +
] + +[
+
<:chapitre:champ_chronique_label:/> :
+ (#CHRONIQUE) +
] + +[
+
<:chapitre:champ_mp3_label:/> :
+ (#MP3) +
] + +[
+
<:chapitre:champ_ogg_label:/> :
+ (#OGG) +
] + +[
+
<:chapitre:champ_drupal_guid_label:/> :
+ (#DRUPAL_GUID) +
] + +[
+
<:chapitre:champ_drupal_pubdate_label:/> :
+ (#DRUPAL_PUBDATE) +
] + + diff --git a/prive/objets/infos/chapitre.html b/prive/objets/infos/chapitre.html new file mode 100644 index 0000000..d3c7980 --- /dev/null +++ b/prive/objets/infos/chapitre.html @@ -0,0 +1,22 @@ + +
+[(#SET{texte_objet,<:chapitre:titre_chapitre:/>})] +
<:titre_cadre_numero_objet{objet=#GET{texte_objet}}:/>

#ID_CHAPITRE

+ +
+ + [(#VAL{redirect} + |generer_url_action{type=chapitre&id=#ID_CHAPITRE} + |parametre_url{var_mode,calcul} + |icone_horizontale{<:icone_voir_en_ligne:>,racine})] + + [(#AUTORISER{supprimer, chapitre, #ID_CHAPITRE}|oui) +
+ [(#BOUTON_ACTION{ + [(#CHEMIN_IMAGE{chapitre-del-24.png}|balise_img{<:chapitre:supprimer_chapitre:/>}|concat{' ',#VAL{<:chapitre:supprimer_chapitre:/>}|wrap{}}|trim)], + #URL_ACTION_AUTEUR{supprimer_chapitre, #ID_CHAPITRE, #URL_ECRIRE{chapitres}}, + icone s24 horizontale danger chapitre-del-24, <:chapitre:confirmer_supprimer_chapitre:/>})] + ] + +
+ diff --git a/prive/objets/liste/chapitres.html b/prive/objets/liste/chapitres.html new file mode 100644 index 0000000..fab3443 --- /dev/null +++ b/prive/objets/liste/chapitres.html @@ -0,0 +1,34 @@ +[(#SET{defaut_tri,#ARRAY{ + titre,1, + id_chapitre,1, + points,-1 +}})] +#ANCRE_PAGINATION +
+ + [] + + + + + + + + + + + + + + + + +
(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{chapitre:info_1_chapitre,chapitre:info_nb_chapitres}})
[(#TRI{titre,<:chapitre:champ_titre_label:/>,ajax})][(#TRI{id_chapitre,<:info_numero_abbreviation:/>,ajax})]
[(#CHEMIN_IMAGE{chapitre-16.png}|balise_img)][(#LOGO_CHAPITRE|image_reduire{20,26})][(#RANG). ]#TITRE[(#AUTORISER{modifier,chapitre,#ID_CHAPITRE}|?{ + #ID_CHAPITRE, + #ID_CHAPITRE + })]
+[] +
+
[ +
(#ENV*{sinon,''})
+] diff --git a/prive/squelettes/contenu/chapitre.html b/prive/squelettes/contenu/chapitre.html new file mode 100644 index 0000000..7a5e70f --- /dev/null +++ b/prive/squelettes/contenu/chapitre.html @@ -0,0 +1,56 @@ +[(#AUTORISER{voir,chapitre,#ID_CHAPITRE}|sinon_interdire_acces)] +[(#SET{url_voir,#VAL{chapitre}|objet_info{url_voir}})] +[(#SET{url_edit,#VAL{chapitre}|objet_info{url_edit}})] + +[(#BOITE_OUVRIR{[ + [(#AUTORISER{modifier,chapitre,#ID_CHAPITRE}) + [(#ID_CHAPITRE|afficher_qui_edite{chapitre}|non) + [(#URL_ECRIRE{#GET{url_edit},id_chapitre=#ID_CHAPITRE}|icone_verticale{<:chapitre:icone_modifier_chapitre:/>,chapitre,edit,right ajax preload})] + ] + [(#ID_CHAPITRE|afficher_qui_edite{chapitre}|oui) + [(#URL_ECRIRE{#GET{url_edit},id_chapitre=#ID_CHAPITRE}|icone_verticale{#ID_CHAPITRE|afficher_qui_edite{chapitre},warning-24,'',right edition_deja ajax preload})] + ] + ] + +

[(#RANG). ](#TITRE|sinon{<:info_sans_titre:/>})[(#CHEMIN_IMAGE{chapitre-24.png}|balise_img{chapitre,cadre-icone})]

+ +],simple fiche_objet})] + +
+ #FORMULAIRE_DATER{chapitre,#ID_CHAPITRE} +
+ + + +
+ +
+ +
+ +[(#AUTORISER{modifier,chapitre,#ID_CHAPITRE}) + [(#ID_CHAPITRE|afficher_qui_edite{chapitre}|non) + [(#URL_ECRIRE{#GET{url_edit},id_chapitre=#ID_CHAPITRE}|icone_verticale{<:chapitre:icone_modifier_chapitre:/>,chapitre,edit,right ajax preload})] + ] + [(#ID_CHAPITRE|afficher_qui_edite{chapitre}|oui) + [(#URL_ECRIRE{#GET{url_edit},id_chapitre=#ID_CHAPITRE}|icone_verticale{#ID_CHAPITRE|afficher_qui_edite{chapitre},warning-24,'',right edition_deja ajax preload})] + ] +] + +#PIPELINE{afficher_complement_objet,#ARRAY{args,#ARRAY{type,chapitre,id,#ID_CHAPITRE},data,'
'}} + +#BOITE_FERMER + + +#SET{enfants,''} +[(#VAL{prive/objets/contenu/chapitre-enfants}|trouver_fond|oui) + [(#SET{enfants,[(#INCLURE{fond=prive/objets/contenu/chapitre-enfants,id_chapitre,env})]})] +] +[(#PIPELINE{affiche_enfants,[(#ARRAY{args,#ARRAY{exec,chapitre,id_chapitre,#ID_CHAPITRE,objet,chapitre,id_objet,#ID_CHAPITRE},data,#GET{enfants}})]})] + +[(#CONST{_AJAX}|oui) + +] + +[(#ENV**{exec}|=={#GET{url_edit}}|?{#INCLURE{fond=prive/squelettes/contenu/#GET{url_edit},redirect='',env,retourajax=oui},#REM|sinon_interdire_acces})] + diff --git a/prive/squelettes/contenu/chapitre_edit.html b/prive/squelettes/contenu/chapitre_edit.html new file mode 100644 index 0000000..2757ddd --- /dev/null +++ b/prive/squelettes/contenu/chapitre_edit.html @@ -0,0 +1,36 @@ +[(#ID_CHAPITRE|oui) + [(#AUTORISER{modifier,chapitre,#ID_CHAPITRE}|sinon_interdire_acces)] + [(#SET{id_parent,#INFO_ID_ARTICLE{chapitre,#ID_CHAPITRE}})] +] + +[(#ID_CHAPITRE|non) + #SET{id_parent,#ENV{id_article,#ENV{id_parent}}} + [(#GET{id_parent}|non|ou{[(#AUTORISER{creerchapitredans, article, #GET{id_parent}})]}|sinon_interdire_acces)] +] + +#SET{redirect,#ENV{redirect}|sinon{#ID_CHAPITRE|?{#ID_CHAPITRE|generer_url_entite{chapitre},#GET{id_parent}|?{#GET{id_parent}|generer_url_entite{article},#URL_ECRIRE{articles}}}}} + + + +
+
+ [(#ID_CHAPITRE|oui) + [(#GET{redirect}|icone_verticale{<:icone_retour:/>,chapitre,'',left retour[(#ENV{retourajax,''}|oui)ajax preload]})] + ] + [ + [(#ID_CHAPITRE|?{<:chapitre:icone_modifier_chapitre:/>,<:chapitre:icone_creer_chapitre:/>})] +

(#ENV*{titre,#INFO_TITRE{chapitre,#ID_CHAPITRE}|sinon{<:info_sans_titre:/>}})

+ ] +
+ +#SET{redirect,#ENV{redirect,#ID_CHAPITRE|generer_url_entite{chapitre}}} +[(#ENV{retourajax,''}|oui) + #SET{redirect,'javascript:if (window.jQuery) jQuery(".entete-formulaire .retour a").followLink();'} +
+] + [(#FORMULAIRE_EDITER_CHAPITRE{#ENV{id_chapitre,oui}, #GET{id_parent}, #GET{redirect}})] +[(#ENV{retourajax,''}|oui) +
+ +] +
diff --git a/prive/squelettes/hierarchie/chapitre.html b/prive/squelettes/hierarchie/chapitre.html new file mode 100644 index 0000000..04e46ea --- /dev/null +++ b/prive/squelettes/hierarchie/chapitre.html @@ -0,0 +1,10 @@ + +<:chapitre:titre_chapitres:/> + +> [(#URL_ECRIRE{article,id_article=#ID_ARTICLE}|lien_ou_expose{#INFO_TITRE{articles,#ID_ARTICLE},''})] +> #TITRE + +[(#ENV{id_article}|oui) + > [(#URL_ECRIRE{article,id_article=#ID_ARTICLE}|lien_ou_expose{#INFO_TITRE{articles,#ID_ARTICLE},''})] +]> <:ecrire:info_sans_titre:/> + diff --git a/prive/squelettes/hierarchie/chapitre_edit.html b/prive/squelettes/hierarchie/chapitre_edit.html new file mode 100644 index 0000000..a1e7ee3 --- /dev/null +++ b/prive/squelettes/hierarchie/chapitre_edit.html @@ -0,0 +1 @@ + diff --git a/saisies-vues/chapitres.html b/saisies-vues/chapitres.html new file mode 100644 index 0000000..739962a --- /dev/null +++ b/saisies-vues/chapitres.html @@ -0,0 +1,20 @@ + + [(#SET{valeur,[(#ENV*{valeur}|is_array|?{[(#ENV*{valeur})],[(#ENV*{valeur}|explode{','})]})]})] + +
    + +
  • #TITRE (#ID_CHAPITRE)
  • + +
+
+ [(#ENV*{sans_reponse}|propre)] + + + +

#TITRE (#ID_CHAPITRE)

+ + [(#ENV*{sans_reponse}|propre)] + + diff --git a/saisies/chapitres.html b/saisies/chapitres.html new file mode 100644 index 0000000..c6f1f0a --- /dev/null +++ b/saisies/chapitres.html @@ -0,0 +1,13 @@ +[(#ENV{multiple}|oui) + [(#SET{valeur,[(#ENV*{valeur}|is_array|?{[(#ENV*{valeur})],[(#ENV*{valeur}|explode{','})]})]})] +] + diff --git a/squelettes/content/article-chronique.html b/squelettes/content/article-chronique.html new file mode 100644 index 0000000..db563a3 --- /dev/null +++ b/squelettes/content/article-chronique.html @@ -0,0 +1,69 @@ + +
+ +
+ + [

#(#SURTITRE)

] +

#TITRE[ + (#SOUSTITRE) + ]

+ + + + + +
+ +
+ + [
(#CHAPO|adaptive_images{#CONST{_CONTENT_WIDTH},0})
] + + [
(#TEXTE|adaptive_images{#CONST{_CONTENT_WIDTH},0})
] + + + +

#TITRE

+

+ Dans + #[(#SURTITRE)] - [(#TITRE|mes_supp_numero)] + +

+ [

Références

+ (#REFERENCES_SUJET|propre)] +

Fichiers

+ + + +
+ + [] + + + +
+ diff --git a/squelettes/content/article-emission.html b/squelettes/content/article-emission.html new file mode 100644 index 0000000..5e29adf --- /dev/null +++ b/squelettes/content/article-emission.html @@ -0,0 +1,108 @@ + + +
+ +
+ +

+ + +

Page originale sur le site de l'April

+ +

#[(#SURTITRE)] - [(#TITRE|mes_supp_numero)][ + (#SOUSTITRE) + ]

+ + + + + +
+ +
+ + + [
(#CHAPO)
] + + [

Transcription

(#PODCAST_TRANSCRIPTION)

] + + +

Écouter

+
+
+ + + + [

Galerie photos

+
(#PODCAST_GALERIEPHOTOS|propre)
+ ] + [

Personnes participantes

+
(#PODCAST_PERSONNES|propre)
+ ] + [

Pauses musicales

+
(#PODCAST_MUSIQUE|propre)
+ ] +

Références

+
+ [(#TEXTE)] +
+ +

Références des chroniques

+ + [

#TITRE

+ (#REFERENCES_SUJET|propre)] + + + +

Télécharger

+ + +

Chapitres

+ + +
+ + [] + + + +
+ + + diff --git a/squelettes/content/article-emission.xml b/squelettes/content/article-emission.xml new file mode 100644 index 0000000..b56db65 --- /dev/null +++ b/squelettes/content/article-emission.xml @@ -0,0 +1,5 @@ + + Article d'une émission + Pour chaque émission (composition héritée) + images/article-emission.png + diff --git a/squelettes/content/article.html b/squelettes/content/article.html index 36150d5..b8816a9 100644 --- a/squelettes/content/article.html +++ b/squelettes/content/article.html @@ -1,5 +1,4 @@ -
@@ -35,29 +34,6 @@ [
(#TEXTE|adaptive_images{#CONST{_CONTENT_WIDTH},0})
] -

Podcast

- -

code = #CODE

-
    -
  • fichier (url) = [(#FICHIER**)]
  • -
  • durée = #DUREE
  • -
  • Chapitres : -
      - -
    • titre (chapter_title) = #TITRE

      -
        -
      • nom identifiant (short_chapter_name) = #NOM_IDENTIFIANT
      • -
      • sujet principal = #SUJET_PRINCIPAL
      • -
      • debut (start_timestamp) = #DEBUT
      • -
      • fin (end_timestamp) = #FIN
      • -
      -
    • - -
    -
  • -
- - [
- diff --git a/squelettes/content/chronique.html b/squelettes/content/chronique.html new file mode 100644 index 0000000..1d8b8da --- /dev/null +++ b/squelettes/content/chronique.html @@ -0,0 +1,24 @@ +#SET{chronique, #ENV{chronique}} + + +

#TITRE

+#TEXTE + +

#GET{chronique}

+ + + +

#TITRE

+

+Dans + #[(#SURTITRE)] - [(#TITRE|mes_supp_numero)] + +

+[

Références

+(#REFERENCES_SUJET|propre)] +

Fichiers

+ + diff --git a/squelettes/content/importer.html b/squelettes/content/importer.html new file mode 100644 index 0000000..5a44e80 --- /dev/null +++ b/squelettes/content/importer.html @@ -0,0 +1,14 @@ + + + + +[(#TITRE|couper{80}|textebrut) - ][(#NOM_SITE_SPIP|textebrut)] + + + + +

Importation vers : #TITRE

+#MES_IMPORT{#ID_RUBRIQUE,#ID_SECTEUR} + + + diff --git a/squelettes/content/rubrique-chroniques.html b/squelettes/content/rubrique-chroniques.html new file mode 100644 index 0000000..609160b --- /dev/null +++ b/squelettes/content/rubrique-chroniques.html @@ -0,0 +1,3 @@ + + + diff --git a/squelettes/content/rubrique-chroniques.xml b/squelettes/content/rubrique-chroniques.xml new file mode 100644 index 0000000..01e56ff --- /dev/null +++ b/squelettes/content/rubrique-chroniques.xml @@ -0,0 +1,6 @@ + + Rubrique des chroniques + Pour toutes les chroniques + images/rubrique-chroniques.png + + diff --git a/squelettes/content/rubrique-emission.xml b/squelettes/content/rubrique-emission.xml new file mode 100644 index 0000000..7c73192 --- /dev/null +++ b/squelettes/content/rubrique-emission.xml @@ -0,0 +1,6 @@ + + Rubrique des émissions + Pour toutes les émissions + images/rubrique-emissions.png + + diff --git a/squelettes/content/rubrique-emissions.html b/squelettes/content/rubrique-emissions.html new file mode 100644 index 0000000..609160b --- /dev/null +++ b/squelettes/content/rubrique-emissions.html @@ -0,0 +1,3 @@ + + + diff --git a/squelettes/content/rubrique-emissions.xml b/squelettes/content/rubrique-emissions.xml new file mode 100644 index 0000000..7c73192 --- /dev/null +++ b/squelettes/content/rubrique-emissions.xml @@ -0,0 +1,6 @@ + + Rubrique des émissions + Pour toutes les émissions + images/rubrique-emissions.png + + diff --git a/squelettes/head/article-emission.html b/squelettes/head/article-emission.html new file mode 100644 index 0000000..567b778 --- /dev/null +++ b/squelettes/head/article-emission.html @@ -0,0 +1,7 @@ + +[(#TITRE|textebrut)][ - (#NOM_SITE_SPIP|textebrut)] +[] +[] + + +[] diff --git a/squelettes/javascript/podlove/embed.js b/squelettes/javascript/podlove/embed.js new file mode 100644 index 0000000..db5a59d --- /dev/null +++ b/squelettes/javascript/podlove/embed.js @@ -0,0 +1,3 @@ +// [AIV_SHORT] Build version: 4.5.13 - Monday, April 13th, 2020, 12:48:56 PM + !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=94)}([function(t,e,n){"use strict";n.d(e,"K",function(){return r}),n.d(e,"M",function(){return o}),n.d(e,"ib",function(){return i}),n.d(e,"mb",function(){return a}),n.d(e,"hb",function(){return c}),n.d(e,"nb",function(){return u}),n.d(e,"jb",function(){return s}),n.d(e,"fb",function(){return l}),n.d(e,"gb",function(){return f}),n.d(e,"Z",function(){return d}),n.d(e,"db",function(){return h}),n.d(e,"cb",function(){return p}),n.d(e,"Y",function(){return m}),n.d(e,"eb",function(){return b}),n.d(e,"bb",function(){return g}),n.d(e,"ab",function(){return v}),n.d(e,"kb",function(){return y}),n.d(e,"ob",function(){return O}),n.d(e,"pb",function(){return w}),n.d(e,"lb",function(){return E}),n.d(e,"W",function(){return j}),n.d(e,"X",function(){return T}),n.d(e,"p",function(){return _}),n.d(e,"t",function(){return S}),n.d(e,"n",function(){return A}),n.d(e,"u",function(){return N}),n.d(e,"q",function(){return M}),n.d(e,"o",function(){return x}),n.d(e,"l",function(){return R}),n.d(e,"m",function(){return L}),n.d(e,"k",function(){return I}),n.d(e,"r",function(){return k}),n.d(e,"v",function(){return P}),n.d(e,"w",function(){return C}),n.d(e,"s",function(){return F}),n.d(e,"j",function(){return D}),n.d(e,"Ab",function(){return z}),n.d(e,"yb",function(){return H}),n.d(e,"zb",function(){return B}),n.d(e,"xb",function(){return Y}),n.d(e,"Bb",function(){return U}),n.d(e,"Cb",function(){return W}),n.d(e,"ub",function(){return q}),n.d(e,"wb",function(){return V}),n.d(e,"tb",function(){return G}),n.d(e,"vb",function(){return $}),n.d(e,"sb",function(){return K}),n.d(e,"qb",function(){return X}),n.d(e,"rb",function(){return J}),n.d(e,"H",function(){return Q}),n.d(e,"F",function(){return Z}),n.d(e,"G",function(){return tt}),n.d(e,"E",function(){return et}),n.d(e,"I",function(){return nt}),n.d(e,"J",function(){return rt}),n.d(e,"B",function(){return ot}),n.d(e,"D",function(){return it}),n.d(e,"A",function(){return at}),n.d(e,"C",function(){return ct}),n.d(e,"z",function(){return ut}),n.d(e,"x",function(){return st}),n.d(e,"y",function(){return lt}),n.d(e,"d",function(){return ft}),n.d(e,"Db",function(){return dt}),n.d(e,"O",function(){return ht}),n.d(e,"h",function(){return pt}),n.d(e,"N",function(){return mt}),n.d(e,"g",function(){return bt}),n.d(e,"Q",function(){return gt}),n.d(e,"a",function(){return vt}),n.d(e,"f",function(){return yt}),n.d(e,"e",function(){return Ot}),n.d(e,"c",function(){return wt}),n.d(e,"b",function(){return Et}),n.d(e,"i",function(){return jt}),n.d(e,"P",function(){return Tt}),n.d(e,"L",function(){return _t}),n.d(e,"T",function(){return St}),n.d(e,"U",function(){return At}),n.d(e,"R",function(){return Nt}),n.d(e,"V",function(){return Mt}),n.d(e,"S",function(){return xt}),n.d(e,"Eb",function(){return Rt});var r="PLAYER_INIT",o="PLAYER_READY",i="PLAYER_SHOW_COMPONENT_INFO",a="PLAYER_SHOW_COMPONENT_SHOW_TITLE",c="PLAYER_SHOW_COMPONENT_EPISODE_TITLE",u="PLAYER_SHOW_COMPONENT_SUBTITLE",s="PLAYER_SHOW_COMPONENT_INFO_POSTER",l="PLAYER_SHOW_COMPONENT_CONTROLS_CHAPTERS",f="PLAYER_SHOW_COMPONENT_CONTROLS_STEPPERS",d="PLAYER_SHOW_COMPONENT_CONTROLS_BUTTON_LOADING",h="PLAYER_SHOW_COMPONENT_CONTROLS_BUTTON_REPLAY",p="PLAYER_SHOW_COMPONENT_CONTROLS_BUTTON_REMAINING",m="PLAYER_SHOW_COMPONENT_CONTROLS_BUTTON_DURATION",b="PLAYER_SHOW_COMPONENT_CONTROLS_BUTTON_RETRY",g="PLAYER_SHOW_COMPONENT_CONTROLS_BUTTON_PLAYING",v="PLAYER_SHOW_COMPONENT_CONTROLS_BUTTON_PAUSE",y="PLAYER_SHOW_COMPONENT_PROGRESSBAR",O="PLAYER_SHOW_COMPONENT_TAB",w="PLAYER_SHOW_COMPONENT_VOLUME_SLIDER",E="PLAYER_SHOW_COMPONENT_RATE_SLIDER",j="PLAYER_SHOW_COMPONENT_CHANNELS",T="PLAYER_SHOW_COMPONENT_CONTROLS_BUTTON",_="PLAYER_HIDE_COMPONENT_INFO",S="PLAYER_HIDE_COMPONENT_SHOW_TITLE",A="PLAYER_HIDE_COMPONENT_EPISODE_TITLE",N="PLAYER_HIDE_COMPONENT_SUBTITLE",M="PLAYER_HIDE_COMPONENT_INFO_POSTER",x="PLAYER_HIDE_COMPONENT_ERROR",R="PLAYER_HIDE_COMPONENT_CONTROLS_CHAPTERS",L="PLAYER_HIDE_COMPONENT_CONTROLS_STEPPERS",I="PLAYER_HIDE_COMPONENT_CONTROLS_BUTTON",k="PLAYER_HIDE_COMPONENT_PROGRESSBAR",P="PLAYER_HIDE_COMPONENT_TAB",C="PLAYER_HIDE_COMPONENT_VOLUME_SLIDER",F="PLAYER_HIDE_COMPONENT_RATE_SLIDER",D="PLAYER_HIDE_COMPONENT_CHANNELS",z="PLAYER_SHOW_VISIBLE_COMPONENTS_TAB_INFO",H="PLAYER_SHOW_VISIBLE_COMPONENTS_TAB_CHAPTERS",B="PLAYER_SHOW_VISIBLE_COMPONENTS_TAB_FILES",Y="PLAYER_SHOW_VISIBLE_COMPONENTS_TAB_AUDIO",U="PLAYER_SHOW_VISIBLE_COMPONENTS_TAB_SHARE",W="PLAYER_SHOW_VISIBLE_COMPONENTS_TAB_TRANSCRIPTS",q="PLAYER_SHOW_VISIBLE_COMPONENTS_HEADER_POSTER",V="PLAYER_SHOW_VISIBLE_COMPONENTS_HEADER_TITLE",G="PLAYER_SHOW_VISIBLE_COMPONENTS_HEADER_EPISODE",$="PLAYER_SHOW_VISIBLE_COMPONENTS_HEADER_SUBTITLE",K="PLAYER_SHOW_VISIBLE_COMPONENTS_CONTROLS_STEPPER",X="PLAYER_SHOW_VISIBLE_COMPONENTS_CONTROLS_CHAPTERS",J="PLAYER_SHOW_VISIBLE_COMPONENTS_CONTROLS_PROGRESSBAR",Q="PLAYER_HIDE_VISIBLE_COMPONENTS_TAB_INFO",Z="PLAYER_HIDE_VISIBLE_COMPONENTS_TAB_CHAPTERS",tt="PLAYER_HIDE_VISIBLE_COMPONENTS_TAB_FILES",et="PLAYER_HIDE_VISIBLE_COMPONENTS_TAB_AUDIO",nt="PLAYER_HIDE_VISIBLE_COMPONENTS_TAB_SHARE",rt="PLAYER_HIDE_VISIBLE_COMPONENTS_TAB_TRANSCRIPTS",ot="PLAYER_HIDE_VISIBLE_COMPONENTS_HEADER_POSTER",it="PLAYER_HIDE_VISIBLE_COMPONENTS_HEADER_TITLE",at="PLAYER_HIDE_VISIBLE_COMPONENTS_HEADER_EPISODE",ct="PLAYER_HIDE_VISIBLE_COMPONENTS_HEADER_SUBTITLE",ut="PLAYER_HIDE_VISIBLE_COMPONENTS_CONTROLS_STEPPER",st="PLAYER_HIDE_VISIBLE_COMPONENTS_CONTROLS_CHAPTERS",lt="PLAYER_HIDE_VISIBLE_COMPONENTS_CONTROLS_PROGRESSBAR",ft="PLAYER_BACKEND_ERROR",dt="PLAYER_SIMULATE_PLAYTIME",ht="PLAYER_REQUEST_PLAY",pt="PLAYER_BACKEND_PLAY",mt="PLAYER_REQUEST_PAUSE",bt="PLAYER_BACKEND_PAUSE",gt="PLAYER_REQUEST_RESTART",vt="PLAYER_BACKEND_BUFFER",yt="PLAYER_BACKEND_LOADING_START",Ot="PLAYER_BACKEND_LOADING_END",wt="PLAYER_BACKEND_END",Et="PLAYER_BACKEND_DURATION",jt="PLAYER_BACKEND_PLAYTIME",Tt="PLAYER_REQUEST_PLAYTIME",_t="PLAYER_LOAD_QUANTILES",St="PLAYER_SET_QUANTILE",At="PLAYER_SET_RUNTIME",Nt="PLAYER_SET_LANGUAGE",Mt="PLAYER_SET_VERSION",xt="PLAYER_SET_MODE",Rt="PLAYER_TOGGLE_TAB"},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(3),o=n(4);function i(t){return function e(n,i){switch(arguments.length){case 0:return e;case 1:return Object(o.a)(n)?e:Object(r.a)(function(e){return t(n,e)});default:return Object(o.a)(n)&&Object(o.a)(i)?e:Object(o.a)(n)?Object(r.a)(function(e){return t(e,i)}):Object(o.a)(i)?Object(r.a)(function(e){return t(n,e)}):t(n,i)}}}},function(t,e,n){"use strict";var r=n(21),o=n.n(r),i=n(23),a=n(19),c=function(t){return null===t};function u(t,e,n){void 0===e&&(e=a.a),o()(Object(i.a)(e)||c(e),"Expected payloadCreator to be a function, undefined or null");var r=c(e)||e===a.a?a.a:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;ot?e:t}),m=n(42),b=Object(f.a)(function(t,e){return Object(c.a)(Object(m.a)(t),e)}),g=n(31),v=Object(f.a)(function(t,e){return Object(h.a)(Object(g.a)(p,0,b("length",e)),function(){var n=arguments,r=this;return t.apply(r,Object(d.a)(function(t){return t.apply(r,n)},e))})}),y=Object(l.a)(function(t){return v(function(){return Array.prototype.slice.call(arguments,0)},t)}),O=n(32),w=Object(O.a)(0,"toUpperCase"),E=n(69),j=n(45),T=(r=function(t){return void 0===t},o=Object(l.a)(function(t){return null==t}),function(t){return r(t)||o(t)});i=T;n.d(e,"c",function(){return _}),n.d(e,"b",function(){return S}),n.d(e,"a",function(){return A});var _=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return isNaN(parseInt(t,10))?0:parseInt(t,10)},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return isNaN(parseFloat(t))?0:parseFloat(t)},A=Object(a.a)(function(t,e){return Object(c.a)(function(t){return t(e)},t)}),N=Object(a.a)(function(t,e){return e.startsWith(t)}),M=Object(a.a)(function(t,e){return e.endsWith(t)}),x=Object(a.a)(function(t,e){return N(t,e)?e.slice(t.length):e}),R=Object(a.a)(function(t,e){return M(t,e)?e.slice(0,e.length-t.length):e});Object(a.a)(function(t,e){return x(t,R(t,e))}),Object(u.a)(Object(s.a)(""),y([Object(u.a)(w,E.a),j.a]))},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(3),o=n(1),i=n(4);function a(t){return function e(n,a,c){switch(arguments.length){case 0:return e;case 1:return Object(i.a)(n)?e:Object(o.a)(function(e,r){return t(n,e,r)});case 2:return Object(i.a)(n)&&Object(i.a)(a)?e:Object(i.a)(n)?Object(o.a)(function(e,n){return t(e,a,n)}):Object(i.a)(a)?Object(o.a)(function(e,r){return t(n,e,r)}):Object(r.a)(function(e){return t(n,a,e)});default:return Object(i.a)(n)&&Object(i.a)(a)&&Object(i.a)(c)?e:Object(i.a)(n)&&Object(i.a)(a)?Object(o.a)(function(e,n){return t(e,n,c)}):Object(i.a)(n)&&Object(i.a)(c)?Object(o.a)(function(e,n){return t(e,a,n)}):Object(i.a)(a)&&Object(i.a)(c)?Object(o.a)(function(e,r){return t(n,e,r)}):Object(i.a)(n)?Object(r.a)(function(e){return t(e,a,c)}):Object(i.a)(a)?Object(r.a)(function(e){return t(n,e,c)}):Object(i.a)(c)?Object(r.a)(function(e){return t(n,a,e)}):t(n,a,c)}}}},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(e,t)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";var r=n(3),o=n(7),i=n(36),a=!{toString:null}.propertyIsEnumerable("toString"),c=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],u=function(){return arguments.propertyIsEnumerable("length")}(),s=function(t,e){for(var n=0;n=0;)e=c[n],Object(o.a)(e,t)&&!s(r,e)&&(r[r.length]=e),n-=1;return r}):Object(r.a)(function(t){return Object(t)!==t?[]:Object.keys(t)});e.a=l},function(t,e,n){"use strict";function r(t){return"[object String]"===Object.prototype.toString.call(t)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";e.a=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){t.exports=n(58)},,function(t,e,n){"use strict";function r(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,o){return e.apply(this,arguments)};case 5:return function(t,n,r,o,i){return e.apply(this,arguments)};case 6:return function(t,n,r,o,i,a){return e.apply(this,arguments)};case 7:return function(t,n,r,o,i,a,c){return e.apply(this,arguments)};case 8:return function(t,n,r,o,i,a,c,u){return e.apply(this,arguments)};case 9:return function(t,n,r,o,i,a,c,u,s){return e.apply(this,arguments)};case 10:return function(t,n,r,o,i,a,c,u,s,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";var r=n(13),o=n(3),i=n(1),a=n(4);var c=Object(i.a)(function(t,e){return 1===t?Object(o.a)(e):Object(r.a)(t,function t(e,n,o){return function(){for(var i=[],c=0,u=e,s=0;s=arguments.length)?l=n[s]:(l=arguments[c],c+=1),i[s]=l,Object(a.a)(l)||(u-=1),s+=1}return u<=0?o.apply(this,i):Object(r.a)(u,t(e,i,o))}}(t,[],e))});e.a=c},function(t,e,n){"use strict";function r(t,e){for(var n=0,r=e.length,o=Array(r);n0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),c=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();var u=n(13),s=n(1),l=Object(s.a)(function(t,e){return Object(u.a)(t.length,function(){return t.apply(e,arguments)})});function f(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function d(t,e,n,r){return t["@@transducer/result"](n[r](l(t["@@transducer/step"],t),e))}n.d(e,"a",function(){return p});var h="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function p(t,e,n){if("function"==typeof t&&(t=function(t){return new c(t)}(t)),a(n))return function(t,e,n){for(var r=0,o=n.length;r=0;){if(n[h]===t)return r[h]===e;h-=1}switch(s){case"Map":return t.size===e.size&&f(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&f(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var p=Object(u.a)(t);if(p.length!==Object(u.a)(e).length)return!1;var m=n.concat([t]),b=r.concat([e]);for(h=p.length-1;h>=0;){var g=p[h];if(!Object(a.a)(g,e)||!d(e[g],t[g],m,b))return!1;h-=1}return!0}var h=Object(r.a)(function(t,e){return d(t,e,[],[])});e.a=h},function(t,e,n){"use strict";var r=n(3),o=n(28),i=n(15);function a(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var c=function(t){return(t<10?"0":"")+t},u="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+c(t.getUTCMonth()+1)+"-"+c(t.getUTCDate())+"T"+c(t.getUTCHours())+":"+c(t.getUTCMinutes())+":"+c(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},s=n(8);var l=n(1),f=n(46),d=Object(l.a)(function(t,e){return Object(f.a)((n=t,function(){return!n.apply(this,arguments)}),e);var n});var h=Object(r.a)(function(t){return function t(e,n){var r=function(r){var i=n.concat([e]);return Object(o.a)(r,i)?"":t(r,i)},c=function(t,e){return Object(i.a)(function(e){return a(e)+": "+r(t[e])},e.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Object(i.a)(r,e).join(", ")+"))";case"[object Array]":return"["+Object(i.a)(r,e).concat(c(e,d(function(t){return/^\d+$/.test(t)},Object(s.a)(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):a(u(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":a(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var l=e.toString();if("[object Object]"!==l)return l}return"{"+c(e,Object(s.a)(e)).join(", ")+"}"}}(t,[])});e.a=h},function(t,e,n){"use strict";var r=n(1),o=Object(r.a)(function(t,e){return null!=e&&e.constructor===t||e instanceof t}),i=n(57),a=n(5);n.d(e,"a",function(){return u});var c=new RegExp(/^(?:(\d{1,2}):)?(?:(\d{1,2}):)?(\d{1,2})(?:\.(\d{1,3}))?$/),u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0";if(o(Number,t))return t;var e=c.exec(t||"0");return e?60*parseInt(e[2]?e[1]:0)*60*1e3+60*parseInt(e[2]?e[2]:e[1]||0)*1e3+1e3*parseInt(e[3]||0)+parseInt(e[4]||0):0},s=(Object(i.a)(a.c,function(t){return 1e3*t},a.b),Object(i.a)(a.b,function(t){return t/1e3},a.c));Object(i.a)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return parseInt(t%60)},s),Object(i.a)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return parseInt(t/60)%60},s),Object(i.a)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return parseInt(t/3600)%24},s)},function(t,e,n){"use strict";var r=n(25);function o(t,e){return function(t,e,n){var o,i;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(o=1/e;n=0}n.d(e,"a",function(){return o})},function(t,e,n){"use strict";function r(t,e,n){for(var r=0,o=n.length;r2?n-2:0),a=2;a{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return(t,n,r)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};default:return(t,e,n)=>{void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e=Object.assign({decode:!0,arrayFormat:"none"},e)),r=Object.create(null);if("string"!=typeof t)return r;if(!(t=t.trim().replace(/^[?#&]/,"")))return r;for(const o of t.split("&")){let[t,i]=o.replace(/\+/g," ").split("=");i=void 0===i?null:a(i,e),n(a(t,e),i,r)}return Object.keys(r).sort().reduce((t,e)=>{const n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort((t,e)=>Number(t)-Number(e)).map(t=>e[t]):e}(n):t[e]=n,t},Object.create(null))}e.extract=c,e.parse=u,e.stringify=((t,e)=>{if(!t)return"";const n=function(t){switch(t.arrayFormat){case"index":return(e,n,r)=>null===n?[i(e,t),"[",r,"]"].join(""):[i(e,t),"[",i(r,t),"]=",i(n,t)].join("");case"bracket":return(e,n)=>null===n?[i(e,t),"[]"].join(""):[i(e,t),"[]=",i(n,t)].join("");default:return(e,n)=>null===n?i(e,t):[i(e,t),"=",i(n,t)].join("")}}(e=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},e)),r=Object.keys(t);return!1!==e.sort&&r.sort(e.sort),r.map(r=>{const o=t[r];if(void 0===o)return"";if(null===o)return i(r,e);if(Array.isArray(o)){const t=[];for(const e of o.slice())void 0!==e&&t.push(n(r,e,t.length));return t.join("&")}return i(r,e)+"="+i(o,e)}).filter(t=>t.length>0).join("&")}),e.parseUrl=((t,e)=>{const n=t.indexOf("#");return-1!==n&&(t=t.slice(0,n)),{url:t.split("?")[0]||"",query:u(c(t),e)}})},function(t,e){t.exports=class{constructor(t){this._namespace=t,this._store=window.localStorage,this._sep="\0"}static clear(){window.localStorage.clear()}_notFound(t){const e=new Error(`Not Found [${t}]`);return e.notFound=!0,e.key=t,e}get(t){const e=[this._namespace,t].join(this._sep);if(!this._store[e])return[this._notFound(e)];try{return[null,JSON.parse(this._store[e])]}catch(t){return[t]}}put(t,e){if(void 0===e)return[new Error(`Invalid parameters to put, ('${t}', undefined)`)];try{const n=[this._namespace,t].join(this._sep),r=JSON.stringify(e);return[null,this._store[n]=r]}catch(t){return[t]}}has(t){const e=[this._namespace,t].join(this._sep);return this._store[e]?[null,!0]:[this._notFound(e)]}del(t){if(t){const e=[this._namespace,t].join(this._sep);return this._store[e]?(delete this._store[e],[null]):[this._notFound(e)]}Object.keys(window.localStorage).forEach(t=>{t.split(this._sep)[0]===this._namespace&&delete this._store[t]})}search(t){if(!t)throw new Error("A pattern is required");return[null,Object.keys(this._store).filter(e=>{const[,n]=e.split(this._sep);if(n&&t.test(n))return e}).map(t=>({key:t.split(this._sep)[1],value:this._store[t]}))]}}},function(t,e){e.hashCode=function(){var t=function(t){t=t.toString();var e,n=0;for(e=0;e0&&void 0!==i[0]?i[0]:{},n=i.length>1&&void 0!==i[1]?i[1]:{},t.prev=2,"string"!=typeof e){t.next=9;break}return t.next=6,O(e);case 6:t.t0=t.sent,t.next=10;break;case 9:t.t0=e;case 10:r=t.t0,t.next=16;break;case 13:throw t.prev=13,t.t1=t.catch(2),new Error("Couldn't parse configuration \"".concat(e,'"'));case 16:return t.t2=y,t.t3=Object,t.t4={},t.t5=r,t.t6=w(r),t.t7=E(r),t.next=24,T(r);case 24:return t.t8=t.sent,t.next=27,j(r);case 27:return t.t9=t.sent,t.t10={media:t.t6,files:t.t7,transcripts:t.t8,chapters:t.t9},t.t11=t.t3.assign.call(t.t3,t.t4,t.t5,t.t10),t.t12=n,t.abrupt("return",(0,t.t2)(t.t11,t.t12));case 32:case"end":return t.stop()}},t,null,[[2,13]])}));return function(){return t.apply(this,arguments)}}()},function(t,e,n){"use strict";var r=n(43),o=n.n(r);var i=n(44),a=n(38),c=n(16),u=n(2),s=n(0),l=(Object(u.a)(s.T),Object(u.a)(s.L)),f=n(41),d=n(57),h=n(64),p=n(3),m=n(36),b=n(10),g=n(22),v=n(9),y=Object(p.a)(function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():Object(b.a)(t)?[]:Object(v.a)(t)?"":Object(g.a)(t)?{}:Object(m.a)(t)?function(){return arguments}():void 0}),O=n(25),w=Object(p.a)(function(t){return null!=t&&Object(O.a)(t,y(t))}),E=n(52),j=n.n(E),T=n(53);n.d(e,"a",function(){return N});var _=Object(d.a)(i.a.playtime,Object(h.a)({},"timepiece")),S=Object(h.a)([],"quantiles"),A=Object(h.a)({},"tabs"),N=function(t,e){var n=new j.a("pwp-"),r=Object(T.hashCode)().value(t),i=n.get(r),u=o()(i,2)[1],s=void 0===u?{}:u;if(w(s)||(e.dispatch(Object(c.b)()),e.dispatch(Object(c.d)()),e.dispatch(Object(c.a)()),e.dispatch(Object(c.c)())),s.tabs){var d=Object.keys(s.tabs).find(function(t){return s.tabs[t]});e.dispatch(Object(f.a)(d))}s.playtime&&e.dispatch(Object(a.a)(s.playtime)),s.quantiles&&e.dispatch(l(s.quantiles)),e.subscribe(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=null,o=!0;return function(){var i=this,a=arguments,c=function(){t.apply(i,a),r=null};n&&o&&(o=!1,c()),r||(r=setTimeout(c,e))}}(function(){var t=e.getState(),o=_(t),i=A(t),a=S(t);n.put(r,{playtime:o,tabs:i,quantiles:a})},1e3))}},function(t,e,n){"use strict";var r=n(57),o=n(25),i=n(3);var a=Object(i.a)(function(t){return null!=t&&(e=t.length,"[object Number]"===Object.prototype.toString.call(e))?t.length:NaN;var e}),c=n(28),u=n(1),s=Object(u.a)(c.a),l=n(64),f=n(2),d=n(0),h=Object(f.a)(d.Ab),p=Object(f.a)(d.H),m=Object(f.a)(d.yb),b=Object(f.a)(d.F),g=Object(f.a)(d.zb),v=Object(f.a)(d.G),y=Object(f.a)(d.xb),O=Object(f.a)(d.E),w=Object(f.a)(d.Bb),E=Object(f.a)(d.I),j=Object(f.a)(d.Cb),T=Object(f.a)(d.J),_=Object(f.a)(d.ub),S=Object(f.a)(d.B),A=Object(f.a)(d.wb),N=Object(f.a)(d.D),M=Object(f.a)(d.tb),x=Object(f.a)(d.A),R=Object(f.a)(d.vb),L=Object(f.a)(d.C),I=Object(f.a)(d.qb),k=Object(f.a)(d.x),P=Object(f.a)(d.sb),C=Object(f.a)(d.z),F=Object(f.a)(d.rb),D=Object(f.a)(d.y);n.d(e,"a",function(){return Z});var z=Object(r.a)(Object(o.a)(0),a),H=s("tabInfo"),B=s("tabChapters"),Y=s("tabFiles"),U=s("tabAudio"),W=s("tabShare"),q=s("tabTranscripts"),V=s("poster"),G=s("showTitle"),$=s("episodeTitle"),K=s("subtitle"),X=s("progressbar"),J=s("controlSteppers"),Q=s("controlChapters"),Z=function(t,e){var n=Object(l.a)([],"visibleComponents",t);z(n)||(H(n)?e.dispatch(h()):e.dispatch(p()),B(n)?e.dispatch(m()):e.dispatch(b()),Y(n)?e.dispatch(g()):e.dispatch(v()),U(n)?e.dispatch(y()):e.dispatch(O()),W(n)?e.dispatch(w()):e.dispatch(E()),q(n)?e.dispatch(j()):e.dispatch(T()),V(n)?e.dispatch(_()):e.dispatch(S()),G(n)?e.dispatch(A()):e.dispatch(N()),$(n)?e.dispatch(M()):e.dispatch(x()),K(n)?e.dispatch(R()):e.dispatch(L()),X(n)?e.dispatch(F()):e.dispatch(D()),J(n)?e.dispatch(P()):e.dispatch(C()),Q(n)?e.dispatch(I()):e.dispatch(k()))}},function(t,e,n){"use strict";var r=n(13);function o(t,e){return function(){return e.call(this,t.apply(this,arguments))}}var i=n(31),a=n(45);var c=n(3),u=n(9),s=Object(c.a)(function(t){return Object(u.a)(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});function l(){if(0===arguments.length)throw new Error("compose requires at least one argument");return function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Object(r.a)(arguments[0].length,Object(i.a)(o,arguments[0],Object(a.a)(arguments)))}.apply(this,s(arguments))}n.d(e,"a",function(){return l})},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new A(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=T(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=s(t,e,n);if("normal"===u.type){if(r=n.done?h:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",f="suspendedYield",d="executing",h="completed",p={};function m(){}function b(){}function g(){}var v={};v[i]=function(){return this};var y=Object.getPrototypeOf,O=y&&y(y(N([])));O&&O!==n&&r.call(O,i)&&(v=O);var w=g.prototype=m.prototype=Object.create(v);function E(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function j(t){var e;this._invoke=function(n,o){function i(){return new Promise(function(e,i){!function e(n,o,i,a){var c=s(t[n],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(l).then(function(t){u.value=t,i(u)},function(t){return e("throw",t,i,a)})}a(c.arg)}(n,o,e,i)})}return e=e?e.then(i,i):i()}}function T(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function N(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e,n){"use strict";t.exports=(t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`))},function(t,e,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function i(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],i(n),i(r))}function a(t){try{return decodeURIComponent(t)}catch(o){for(var e=t.match(r),n=1;n1&&(o-=1)),[360*o,100*i,100*s]},a.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[a.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,r))),100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,o=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-o)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=o[t];if(e)return e;var n,i,a,c=1/0;for(var u in r)if(r.hasOwnProperty(u)){var s=r[u],l=(i=t,a=s,Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));l.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],r=e[1],o=e[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(t){var e,n,r,o,i,a=t[0]/360,c=t[1]/100,u=t[2]/100;if(0===c)return[i=255*u,i,i];e=2*u-(n=u<.5?u*(1+c):u+c-u*c),o=[0,0,0];for(var s=0;s<3;s++)(r=a+1/3*-(s-1))<0&&r++,r>1&&r--,i=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,o[s]=255*i;return o},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[e,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),a=255*r*(1-n),c=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,a];case 1:return[c,r,a];case 2:return[a,r,u];case 3:return[a,c,r];case 4:return[u,a,r];case 5:return[r,a,c]}},a.hsv.hsl=function(t){var e,n,r,o=t[0],i=t[1]/100,a=t[2]/100,c=Math.max(a,.01);return r=(2-i)*a,n=i*c,[o,100*(n=(n/=(e=(2-i)*c)<=1?e:2-e)||0),100*(r/=2)]},a.hwb.rgb=function(t){var e,n,r,o,i,a,c,u=t[0]/360,s=t[1]/100,l=t[2]/100,f=s+l;switch(f>1&&(s/=f,l/=f),r=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(r=1-r),o=s+r*((n=1-l)-s),e){default:case 6:case 0:i=n,a=o,c=s;break;case 1:i=o,a=n,c=s;break;case 2:i=s,a=n,c=o;break;case 3:i=s,a=o,c=n;break;case 4:i=o,a=s,c=n;break;case 5:i=n,a=s,c=o}return[255*i,255*a,255*c]},a.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},a.xyz.rgb=function(t){var e,n,r,o=t[0]/100,i=t[1]/100,a=t[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,e=(e=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(t){var e,n,r,o=t[0];e=t[1]/500+(n=(o+16)/116),r=n-t[2]/200;var i=Math.pow(n,3),a=Math.pow(e,3),c=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,r=c>.008856?c:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},a.lab.lch=function(t){var e,n=t[0],r=t[1],o=t[2];return(e=360*Math.atan2(o,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+o*o),e]},a.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],o=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,o=t[2]/255,i=Math.max(Math.max(n,r),o),a=Math.min(Math.min(n,r),o),c=i-a;return e=c<=0?0:i===n?(r-o)/c%6:i===r?2+(o-n)/c:4+(n-r)/c+4,e/=6,[360*(e%=1),100*c,100*(c<1?a/(1-c):0)]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,o=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(o=(n-.5*r)/(1-r)),[t[0],100*r,100*o]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,o=0;return r<1&&(o=(n-r)/(1-r)),[t[0],100*r,100*o]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],a=e%1*6,c=a%1,u=1-c;switch(Math.floor(a)){case 0:i[0]=1,i[1]=c,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=c;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=c,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},a.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,o=0;return r<1&&(o=(n-r)/(1-r)),[t[0],100*r,100*o]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e,n){"use strict";var r=n(1),o=n(9),i=Object(r.a)(function(t,e){var n=t<0?e.length+t:t;return Object(o.a)(e)?e.charAt(n):e[n]})(0);e.a=i},function(t,e,n){t.exports=function(){"use strict";var t=["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"],e=["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"],n=["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"],r=["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmuliscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mpspace","msqrt","mystyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"],o=["#text"],i=["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"],a=["accent-height","accumulate","additivive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"],c=["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"],u=["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"];function s(t,e){for(var n=e.length;n--;)"string"==typeof e[n]&&(e[n]=e[n].toLowerCase()),t[e[n]]=!0;return t}function l(t){var e={},n=void 0;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var f=/\{\{[\s\S]*|[\s\S]*\}\}/gm,d=/<%[\s\S]*|[\s\S]*%>/gm,h=/^data-[\-\w.\u00B7-\uFFFF]/,p=/^aria-[\-\w]+$/,m=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,b=/^(?:\w+script|data):/i,g=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,v="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};function y(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:O(),j=function(t){return w(t)};if(j.version="1.0.8",j.removed=[],!E||!E.document||9!==E.document.nodeType)return j.isSupported=!1,j;var T=E.document,_=!1,S=!1,A=E.document,N=E.DocumentFragment,M=E.HTMLTemplateElement,x=E.Node,R=E.NodeFilter,L=E.NamedNodeMap,I=void 0===L?E.NamedNodeMap||E.MozNamedAttrMap:L,k=E.Text,P=E.Comment,C=E.DOMParser;if("function"==typeof M){var F=A.createElement("template");F.content&&F.content.ownerDocument&&(A=F.content.ownerDocument)}var D=A,z=D.implementation,H=D.createNodeIterator,B=D.getElementsByTagName,Y=D.createDocumentFragment,U=T.importNode,W={};j.isSupported=z&&void 0!==z.createHTMLDocument&&9!==A.documentMode;var q=f,V=d,G=h,$=p,K=b,X=g,J=m,Q=null,Z=s({},[].concat(y(t),y(e),y(n),y(r),y(o))),tt=null,et=s({},[].concat(y(i),y(a),y(c),y(u))),nt=null,rt=null,ot=!0,it=!0,at=!1,ct=!1,ut=!1,st=!1,lt=!1,ft=!1,dt=!1,ht=!1,pt=!1,mt=!0,bt=!0,gt=!1,vt={},yt=s({},["audio","head","math","script","style","template","svg","video"]),Ot=s({},["audio","video","img","source","image"]),wt=s({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Et=null,jt=A.createElement("form"),Tt=function(f){"object"!==(void 0===f?"undefined":v(f))&&(f={}),Q="ALLOWED_TAGS"in f?s({},f.ALLOWED_TAGS):Z,tt="ALLOWED_ATTR"in f?s({},f.ALLOWED_ATTR):et,nt="FORBID_TAGS"in f?s({},f.FORBID_TAGS):{},rt="FORBID_ATTR"in f?s({},f.FORBID_ATTR):{},vt="USE_PROFILES"in f&&f.USE_PROFILES,ot=!1!==f.ALLOW_ARIA_ATTR,it=!1!==f.ALLOW_DATA_ATTR,at=f.ALLOW_UNKNOWN_PROTOCOLS||!1,ct=f.SAFE_FOR_JQUERY||!1,ut=f.SAFE_FOR_TEMPLATES||!1,st=f.WHOLE_DOCUMENT||!1,dt=f.RETURN_DOM||!1,ht=f.RETURN_DOM_FRAGMENT||!1,pt=f.RETURN_DOM_IMPORT||!1,ft=f.FORCE_BODY||!1,mt=!1!==f.SANITIZE_DOM,bt=!1!==f.KEEP_CONTENT,gt=f.IN_PLACE||!1,J=f.ALLOWED_URI_REGEXP||J,ut&&(it=!1),ht&&(dt=!0),vt&&(Q=s({},[].concat(y(o))),tt=[],!0===vt.html&&(s(Q,t),s(tt,i)),!0===vt.svg&&(s(Q,e),s(tt,a),s(tt,u)),!0===vt.svgFilters&&(s(Q,n),s(tt,a),s(tt,u)),!0===vt.mathMl&&(s(Q,r),s(tt,c),s(tt,u))),f.ADD_TAGS&&(Q===Z&&(Q=l(Q)),s(Q,f.ADD_TAGS)),f.ADD_ATTR&&(tt===et&&(tt=l(tt)),s(tt,f.ADD_ATTR)),f.ADD_URI_SAFE_ATTR&&s(wt,f.ADD_URI_SAFE_ATTR),bt&&(Q["#text"]=!0),st&&s(Q,["html","head","body"]),Q.table&&s(Q,["tbody"]),Object&&"freeze"in Object&&Object.freeze(f),Et=f},_t=function(t){j.removed.push({element:t});try{t.parentNode.removeChild(t)}catch(e){t.outerHTML=""}},St=function(t,e){try{j.removed.push({attribute:e.getAttributeNode(t),from:e})}catch(t){j.removed.push({attribute:null,from:e})}e.removeAttribute(t)},At=function(t){var e=void 0;if(ft&&(t=""+t),_)try{e=(new C).parseFromString(t,"text/html")}catch(t){}if(S&&s(nt,["title"]),!e||!e.documentElement){var n=e=z.createHTMLDocument(""),r=n.body;r.parentNode.removeChild(r.parentNode.firstElementChild),r.outerHTML=t}return B.call(e,st?"html":"body")[0]};j.isSupported&&(function(){try{var t=At('

');t.querySelector("svg img")&&(_=!0)}catch(t){}}(),function(){try{var t=At("</title><img>");t.querySelector("title").textContent.match(/<\/title/)&&(S=!0)}catch(t){}}());var Nt=function(t){return H.call(t.ownerDocument||t,t,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT,function(){return R.FILTER_ACCEPT},!1)},Mt=function(t){return"object"===(void 0===x?"undefined":v(x))?t instanceof x:t&&"object"===(void 0===t?"undefined":v(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},xt=function(t,e,n){W[t]&&W[t].forEach(function(t){t.call(j,e,n,Et)})},Rt=function(t){var e,n=void 0;if(xt("beforeSanitizeElements",t,null),!((e=t)instanceof k||e instanceof P||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof I&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute))return _t(t),!0;var r=t.nodeName.toLowerCase();if(xt("uponSanitizeElement",t,{tagName:r,allowedTags:Q}),!Q[r]||nt[r]){if(bt&&!yt[r]&&"function"==typeof t.insertAdjacentHTML)try{t.insertAdjacentHTML("AfterEnd",t.innerHTML)}catch(t){}return _t(t),!0}return!ct||t.firstElementChild||t.content&&t.content.firstElementChild||!/</g.test(t.textContent)||(j.removed.push({element:t.cloneNode()}),t.innerHTML?t.innerHTML=t.innerHTML.replace(/</g,"<"):t.innerHTML=t.textContent.replace(/</g,"<")),ut&&3===t.nodeType&&(n=(n=(n=t.textContent).replace(q," ")).replace(V," "),t.textContent!==n&&(j.removed.push({element:t.cloneNode()}),t.textContent=n)),xt("afterSanitizeElements",t,null),!1},Lt=function(t,e,n){if(mt&&("id"===e||"name"===e)&&(n in A||n in jt))return!1;if(ut&&(n=(n=n.replace(q," ")).replace(V," ")),it&&G.test(e));else if(ot&&$.test(e));else{if(!tt[e]||rt[e])return!1;if(wt[e]);else if(J.test(n.replace(X,"")));else if("src"!==e&&"xlink:href"!==e||"script"===t||0!==n.indexOf("data:")||!Ot[t])if(at&&!K.test(n.replace(X,"")));else if(n)return!1}return!0},It=function(t){var e=void 0,n=void 0,r=void 0,o=void 0,i=void 0;xt("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tt};for(i=a.length;i--;){var u=e=a[i],s=u.name,l=u.namespaceURI;if(n=e.value.trim(),r=s.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,xt("uponSanitizeAttribute",t,c),n=c.attrValue,"name"===r&&"IMG"===t.nodeName&&a.id)o=a.id,a=Array.prototype.slice.apply(a),St("id",t),St(s,t),a.indexOf(o)>i&&t.setAttribute("id",o.value);else{if("INPUT"===t.nodeName&&"type"===r&&"file"===n&&(tt[r]||!rt[r]))continue;"id"===s&&t.setAttribute(s,""),St(s,t)}if(c.keepAttr){var f=t.nodeName.toLowerCase();if(Lt(f,r,n))try{l?t.setAttributeNS(l,s,n):t.setAttribute(s,n),j.removed.pop()}catch(t){}}}xt("afterSanitizeAttributes",t,null)}},kt=function t(e){var n=void 0,r=Nt(e);for(xt("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)xt("uponSanitizeShadowNode",n,null),Rt(n)||(n.content instanceof N&&t(n.content),It(n));xt("afterSanitizeShadowDOM",e,null)};return j.sanitize=function(t,e){var n=void 0,r=void 0,o=void 0,i=void 0,a=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!Mt(t)){if("function"!=typeof t.toString)throw new TypeError("toString is not a function");if("string"!=typeof(t=t.toString()))throw new TypeError("dirty is not a string, aborting")}if(!j.isSupported){if("object"===v(E.toStaticHTML)||"function"==typeof E.toStaticHTML){if("string"==typeof t)return E.toStaticHTML(t);if(Mt(t))return E.toStaticHTML(t.outerHTML)}return t}if(lt||Tt(e),j.removed=[],gt);else if(t instanceof x)n=At("\x3c!--\x3e"),1===(r=n.ownerDocument.importNode(t,!0)).nodeType&&"BODY"===r.nodeName?n=r:n.appendChild(r);else{if(!dt&&!st&&-1===t.indexOf("<"))return t;if(!(n=At(t)))return dt?null:""}n&&ft&&_t(n.firstChild);for(var c=Nt(gt?t:n);o=c.nextNode();)3===o.nodeType&&o===i||Rt(o)||(o.content instanceof N&&kt(o.content),It(o),i=o);if(gt)return t;if(dt){if(ht)for(a=Y.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return pt&&(a=U.call(T,a,!0)),a}return st?n.outerHTML:n.innerHTML},j.setConfig=function(t){Tt(t),lt=!0},j.clearConfig=function(){Et=null,lt=!1},j.isValidAttribute=function(t,e,n){Et||Tt({});var r=t.toLowerCase(),o=e.toLowerCase();return Lt(r,o,n)},j.addHook=function(t,e){"function"==typeof e&&(W[t]=W[t]||[],W[t].push(e))},j.removeHook=function(t){W[t]&&W[t].pop()},j.removeHooks=function(t){W[t]&&(W[t]=[])},j.removeAllHooks=function(){W={}},j}()}()},function(t,e,n){"use strict";t.exports=n(78)},function(t,e){t.exports='/*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v4.0.4 - 2019-03-04\n * Desc: Include this file in any page being loaded into an iframe\n * to force the iframe to resize to the content size.\n * Requires: iframeResizer.min.js on host page.\n * Copyright: (c) 2019 David J. Bradshaw - dave@bradshaw.net\n * License: MIT\n */\n\n!function(l){if("undefined"!=typeof window){var n=!0,o=10,i="",r=0,a="",t=null,u="",c=!1,s={resize:1,click:1},d=128,f=!0,m=1,h="bodyOffset",g=h,p=!0,v="",y={},b=32,e=null,w=!1,T="[iFrameSizer]",E=T.length,O="",S={max:1,min:1,bodyScroll:1,documentElementScroll:1},M="child",I=!0,N=window.parent,A="*",C=0,k=!1,z=null,R=16,x=1,L="scroll",F=L,P=window,D=function(){ue("onMessage function not defined")},j=function(){},q=function(){},H={height:function(){return ue("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ue("Custom width calculation function not defined"),document.body.scrollWidth}},W={},B=!1;try{var U=Object.create({},{passive:{get:function(){B=!0}}});window.addEventListener("test",te,U),window.removeEventListener("test",te,U)}catch(e){}var J,V,K,Q,X,Y,G,Z=Date.now||function(){return(new Date).getTime()},$={bodyOffset:function(){return document.body.offsetHeight+be("marginTop")+be("marginBottom")},offset:function(){return $.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return H.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,Te($))},min:function(){return Math.min.apply(null,Te($))},grow:function(){return $.max()},lowestElement:function(){return Math.max($.bodyOffset()||$.documentElementOffset(),we("bottom",Oe()))},taggedElement:function(){return Ee("bottom","data-iframe-height")}},_={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return H.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(_.bodyScroll(),_.documentElementScroll())},max:function(){return Math.max.apply(null,Te(_))},min:function(){return Math.min.apply(null,Te(_))},rightMostElement:function(){return we("right",Oe())},taggedElement:function(){return Ee("right","data-iframe-width")}},ee=(J=Se,X=null,Y=0,G=function(){Y=Z(),X=null,Q=J.apply(V,K),X||(V=K=null)},function(){var e=Z();Y||(Y=e);var t=R-(e-Y);return V=this,K=arguments,t<=0||R<t?(X&&(clearTimeout(X),X=null),Y=e,Q=J.apply(V,K),X||(V=K=null)):X||(X=setTimeout(G,t)),Q});ne(window,"message",ke),ne(window,"readystatechange",ze),ze()}function te(){}function ne(e,t,n,o){e.addEventListener(t,n,!!B&&(o||{}))}function oe(e,t,n){e.removeEventListener(t,n,!1)}function ie(e){return e.charAt(0).toUpperCase()+e.slice(1)}function re(e){return T+"["+O+"] "+e}function ae(e){w&&"object"==typeof window.console&&console.log(re(e))}function ue(e){"object"==typeof window.console&&console.warn(re(e))}function ce(){var e;!function(){function e(e){return"true"===e}var t=v.substr(E).split(":");O=t[0],r=l!==t[1]?Number(t[1]):r,c=l!==t[2]?e(t[2]):c,w=l!==t[3]?e(t[3]):w,b=l!==t[4]?Number(t[4]):b,n=l!==t[6]?e(t[6]):n,a=t[7],g=l!==t[8]?t[8]:g,i=t[9],u=t[10],C=l!==t[11]?Number(t[11]):C,y.enable=l!==t[12]&&e(t[12]),M=l!==t[13]?t[13]:M,F=l!==t[14]?t[14]:F}(),ae("Initialising iFrame ("+location.href+")"),function(){function e(e,t){return"function"==typeof e&&(ae("Setup custom "+t+"CalcMethod"),H[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(t=window.iFrameResizer,ae("Reading data from page: "+JSON.stringify(t)),Object.keys(t).forEach(se,t),D="onMessage"in t?t.onMessage:D,j="onReady"in t?t.onReady:j,A="targetOrigin"in t?t.targetOrigin:A,g="heightCalculationMethod"in t?t.heightCalculationMethod:g,F="widthCalculationMethod"in t?t.widthCalculationMethod:F,g=e(g,"height"),F=e(F,"width"));var t;ae("TargetOrigin for parent set to: "+A)}(),function(){l===a&&(a=r+"px");de("margin",function(e,t){-1!==t.indexOf("-")&&(ue("Negative CSS value ignored for "+e),t="");return t}("margin",a))}(),de("background",i),de("padding",u),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),he(),ge(),document.documentElement.style.height="",document.body.style.height="",ae(\'HTML & body height set to "auto"\'),ae("Enable public methods"),P.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,pe()):!1===e&&!0===n&&(n=!1,ve()),n},close:function(){Ce(0,0,"close"),ae("Disable outgoing messages"),I=!1,ae("Remove event listener: Message"),oe(window,"message",ke),!0===n&&ve()},getId:function(){return O},getPageInfo:function(e){"function"==typeof e?(q=e,Ce(0,0,"pageInfo")):(q=function(){},Ce(0,0,"pageInfoStop"))},moveToAnchor:function(e){y.findTarget(e)},reset:function(){Ae("parentIFrame.reset")},scrollTo:function(e,t){Ce(t,e,"scrollTo")},scrollToOffset:function(e,t){Ce(t,e,"scrollToOffset")},sendMessage:function(e,t){Ce(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){g=e,he()},setWidthCalculationMethod:function(e){F=e,ge()},setTargetOrigin:function(e){ae("Set targetOrigin: "+e),A=e},size:function(e,t){var n=(e||"")+(t?","+t:"");Me("size","parentIFrame.size("+n+")",e,t)}},pe(),y=function(){function r(e){var t=e.getBoundingClientRect(),n={x:window.pageXOffset!==l?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==l?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(t.left,10)+parseInt(n.x,10),y:parseInt(t.top,10)+parseInt(n.y,10)}}function n(e){var t,n=e.split("#")[1]||e,o=decodeURIComponent(n),i=document.getElementById(o)||document.getElementsByName(o)[0];l!==i?(t=r(i),ae("Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),Ce(t.y,t.x,"scrollToOffset")):(ae("In page link (#"+n+") not found in iFrame, so sending to parent"),Ce(0,0,"inPageLink","#"+n))}function e(){""!==location.hash&&"#"!==location.hash&&n(location.href)}function t(){Array.prototype.forEach.call(document.querySelectorAll(\'a[href^="#"]\'),function(e){function t(e){e.preventDefault(),n(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&ne(e,"click",t)})}y.enable?Array.prototype.forEach&&document.querySelectorAll?(ae("Setting up location.hash handlers"),t(),ne(window,"hashchange",e),setTimeout(e,d)):ue("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):ae("In page linking not enabled");return{findTarget:n}}(),Me("init","Init message from host page"),j()}function se(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],ue("Deprecated: \'"+e+"\' has been renamed \'"+n+"\'. The old method will be removed in the next major version.")}}function de(e,t){l!==t&&""!==t&&"null"!==t&&ae("Body "+e+\' set to "\'+(document.body.style[e]=t)+\'"\')}function le(n){var e={add:function(e){function t(){Me(n.eventName,n.eventType)}W[e]=t,ne(window,e,t,{passive:!0})},remove:function(e){var t=W[e];delete W[e],oe(window,e,t)}};n.eventNames&&Array.prototype.map?(n.eventName=n.eventNames[0],n.eventNames.map(e[n.method])):e[n.method](n.eventName),ae(ie(n.method)+" event listener: "+n.eventType)}function fe(e){le({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),le({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),le({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),le({method:e,eventType:"Input",eventName:"input"}),le({method:e,eventType:"Mouse Up",eventName:"mouseup"}),le({method:e,eventType:"Mouse Down",eventName:"mousedown"}),le({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),le({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),le({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),le({method:e,eventType:"Touch Start",eventName:"touchstart"}),le({method:e,eventType:"Touch End",eventName:"touchend"}),le({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),le({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),le({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),le({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===M&&le({method:e,eventType:"IFrame Resized",eventName:"resize"})}function me(e,t,n,o){return t!==e&&(e in n||(ue(e+" is not a valid option for "+o+"CalculationMethod."),e=t),ae(o+\' calculation method set to "\'+e+\'"\')),e}function he(){g=me(g,h,$,"height")}function ge(){F=me(F,L,_,"width")}function pe(){var e;!0===n?(fe("add"),e=b<0,window.MutationObserver||window.WebKitMutationObserver?e?ye():t=function(){function t(e){function t(e){!1===e.complete&&(ae("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",r,!1),c.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function o(e){var t;ae("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",r,!1),t=e,c.splice(c.indexOf(t),1)}function n(e,t,n){o(e.target),Me(t,n+": "+e.target.src,l,l)}function i(e){n(e,"imageLoad","Image loaded")}function r(e){n(e,"imageLoadFailed","Image load failed")}function e(e){Me("mutationObserver","mutationObserver: "+e[0].target+" "+e[0].type),e.forEach(t)}var a,u,c=[],s=window.MutationObserver||window.WebKitMutationObserver,d=(a=document.querySelector("body"),u={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},d=new s(e),ae("Create body MutationObserver"),d.observe(a,u),d);return{disconnect:function(){"disconnect"in d&&(ae("Disconnect body MutationObserver"),d.disconnect(),c.forEach(o))}}}():(ae("MutationObserver not supported in this browser!"),ye())):ae("Auto Resize disabled")}function ve(){fe("remove"),null!==t&&t.disconnect(),clearInterval(e)}function ye(){0!==b&&(ae("setInterval: "+b+"ms"),e=setInterval(function(){Me("interval","setInterval: "+b)},Math.abs(b)))}function be(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,o)}function we(e,t){for(var n,o=t.length,i=0,r=0,a=ie(e),u=Z(),c=0;c<o;c++)r<(i=t[c].getBoundingClientRect()[e]+be("margin"+a,t[c]))&&(r=i);return u=Z()-u,ae("Parsed "+o+" HTML elements"),ae("Element position calculated in "+u+"ms"),R/2<(n=u)&&ae("Event throttle increased to "+(R=2*n)+"ms"),r}function Te(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function Ee(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(ue("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),we(e,n)}function Oe(){return document.querySelectorAll("body *")}function Se(e,t,n,o){var i,r;!function(){function e(e,t){return!(Math.abs(e-t)<=C)}return i=l!==n?n:$[g](),r=l!==o?o:_[F](),e(m,i)||c&&e(x,r)}()&&"init"!==e?e in{init:1,interval:1,size:1}||!(g in S||c&&F in S)?e in{interval:1}||ae("No change in size detected"):Ae(t):(Ie(),Ce(m=i,x=r,e))}function Me(e,t,n,o){k&&e in s?ae("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||ae("Trigger event: "+t),"init"===e?Se(e,t,n,o):ee(e,t,n,o))}function Ie(){k||(k=!0,ae("Trigger event lock on")),clearTimeout(z),z=setTimeout(function(){k=!1,ae("Trigger event lock off"),ae("--")},d)}function Ne(e){m=$[g](),x=_[F](),Ce(m,x,e)}function Ae(e){var t=g;g=h,ae("Reset trigger event: "+e),Ie(),Ne("reset"),g=t}function Ce(e,t,n,o,i){var r;!0===I&&(l===i?i=A:ae("Message targetOrigin: "+i),ae("Sending message to host page ("+(r=O+":"+e+":"+t+":"+n+(l!==o?":"+o:""))+")"),N.postMessage(T+r,i))}function ke(t){var n={init:function(){v=t.data,N=t.source,ce(),f=!1,setTimeout(function(){p=!1},d)},reset:function(){p?ae("Page reset ignored by init"):(ae("Page size reset by host page"),Ne("resetPage"))},resize:function(){Me("resizeParent","Parent window requested size check")},moveToAnchor:function(){y.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=i();ae("PageInfoFromParent called from parent: "+e),q(JSON.parse(e)),ae(" --")},message:function(){var e=i();ae("onMessage called from parent: "+e),D(JSON.parse(e)),ae(" --")}};function o(){return t.data.split("]")[1].split(":")[0]}function i(){return t.data.substr(t.data.indexOf(":")+1)}function r(){return t.data.split(":")[2]in{true:1,false:1}}function e(){var e=o();e in n?n[e]():("undefined"==typeof module||!module.exports)&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||r()||ue("Unexpected message ("+t.data+")")}T===(""+t.data).substr(0,E)&&(!1===f?e():r()?n.init():ae(\'Ignored message of type "\'+o()+\'". Received before initialization.\'))}function ze(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}();\n//# sourceMappingURL=iframeResizer.contentWindow.map'},function(t,e,n){var r=n(81);t.exports=function(){var t=new r.Template({code:function(t,e,n){var r=this;return r.b(n=n||""),r.b('<script type="text/javascript">window.resourceBaseUrl = \''),r.b(r.v(r.f("base",t,e,0))),r.b("';<\/script><podlove-player></podlove-player> "),r.s(r.f("styles",t,e,1),t,e,0,123,177,"{{ }}")&&(r.rs(t,e,function(t,e,n){n.b(' <link rel="stylesheet" href="'),n.b(n.v(n.f("base",t,e,0))),n.b(n.v(n.d(".",t,e,0))),n.b('.css"> ')}),t.pop()),r.b(" "),r.s(r.f("scripts",t,e,1),t,e,0,201,270,"{{ }}")&&(r.rs(t,e,function(t,e,n){n.b(' <script type="text/javascript" src="'),n.b(n.v(n.f("base",t,e,0))),n.b(n.v(n.d(".",t,e,0))),n.b('.js"><\/script> ')}),t.pop()),r.b(" <script>window.iFrameResizer = {"),r.b("\n"+n),r.b(" heightCalculationMethod: 'documentElementOffset'"),r.b("\n"+n),r.b(" }; "),r.b(r.t(r.f("resizer",t,e,0))),r.b("<\/script> "),r.b(r.t(r.f("loader",t,e,0))),r.fl()},partials:{},subs:{}},'<script type="text/javascript">window.resourceBaseUrl = \'{{ base }}\';<\/script><podlove-player></podlove-player> {{#styles}} <link rel="stylesheet" href="{{ base }}{{ . }}.css"> {{/styles}} {{#scripts}} <script type="text/javascript" src="{{ base }}{{ . }}.js"><\/script> {{/scripts}} <script>window.iFrameResizer = {\n heightCalculationMethod: \'documentElementOffset\'\n }; {{{ resizer }}}<\/script> {{{ loader }}}',r);return t.render.apply(t,arguments)}},function(t,e,n){"use strict";var r=n(84),o=n(87),i=[].slice,a=["keyword","gray","hex"],c={};Object.keys(o).forEach(function(t){c[i.call(o[t].labels).sort().join("")]=t});var u={};function s(t,e){if(!(this instanceof s))return new s(t,e);if(e&&e in a&&(e=null),e&&!(e in o))throw new Error("Unknown model: "+e);var n,l;if(void 0===t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof s)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var f=r.get(t);if(null===f)throw new Error("Unable to parse color from string: "+t);this.model=f.model,l=o[this.model].channels,this.color=f.value.slice(0,l),this.valpha="number"==typeof f.value[l]?f.value[l]:1}else if(t.length){this.model=e||"rgb",l=o[this.model].channels;var h=i.call(t,0,l);this.color=d(h,l),this.valpha="number"==typeof t[l]?t[l]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var p=Object.keys(t);"alpha"in t&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var m=p.sort().join("");if(!(m in c))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=c[m];var b=o[this.model].labels,g=[];for(n=0;n<b.length;n++)g.push(t[b[n]]);this.color=d(g)}if(u[this.model])for(l=o[this.model].channels,n=0;n<l;n++){var v=u[this.model][n];v&&(this.color[n]=v(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function l(t,e,n){return(t=Array.isArray(t)?t:[t]).forEach(function(t){(u[t]||(u[t]=[]))[e]=n}),t=t[0],function(r){var o;return arguments.length?(n&&(r=n(r)),(o=this[t]()).color[e]=r,o):(o=this[t]().color[e],n&&(o=n(o)),o)}}function f(t){return function(e){return Math.max(0,Math.min(t,e))}}function d(t,e){for(var n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}s.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in r.to?this:this.rgb(),n=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return r.to[e.model](n)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),n=1===e.valpha?e.color:e.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=o[this.model].channels,n=o[this.model].labels,r=0;r<e;r++)t[n[r]]=this.color[r];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new s(this.color.map(function(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new s(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:l("rgb",0,f(255)),green:l("rgb",1,f(255)),blue:l("rgb",2,f(255)),hue:l(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:l("hsl",1,f(100)),lightness:l("hsl",2,f(100)),saturationv:l("hsv",1,f(100)),value:l("hsv",2,f(100)),chroma:l("hcg",1,f(100)),gray:l("hcg",2,f(100)),white:l("hwb",1,f(100)),wblack:l("hwb",2,f(100)),cyan:l("cmyk",0,f(100)),magenta:l("cmyk",1,f(100)),yellow:l("cmyk",2,f(100)),black:l("cmyk",3,f(100)),x:l("xyz",0,f(100)),y:l("xyz",1,f(100)),z:l("xyz",2,f(100)),l:l("lab",0,f(100)),a:l("lab",1),b:l("lab",2),keyword:function(t){return arguments.length?new s(t):o[this.model].keyword(this.color)},hex:function(t){return arguments.length?new s(t):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var r=t[n]/255;e[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return s.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n=(n+t)%360)<0?360+n:n,e.color[0]=n,e},mix:function(t,e){var n=t.rgb(),r=this.rgb(),o=void 0===e?.5:e,i=2*o-1,a=n.alpha()-r.alpha(),c=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,u=1-c;return s.rgb(c*n.red()+u*r.red(),c*n.green()+u*r.green(),c*n.blue()+u*r.blue(),n.alpha()*o+r.alpha()*(1-o))}},Object.keys(o).forEach(function(t){if(-1===a.indexOf(t)){var e=o[t].channels;s.prototype[t]=function(){if(this.model===t)return new s(this);if(arguments.length)return new s(arguments,t);var n,r="number"==typeof arguments[e]?e:this.valpha;return new s((n=o[this.model][t].raw(this.color),Array.isArray(n)?n:[n]).concat(r),t)},s[t]=function(n){return"number"==typeof n&&(n=d(i.call(arguments),e)),new s(n,t)}}}),t.exports=s},function(t,e,n){(t.exports=n(89)(!1)).push([t.i,".loader {\n width: 100%;\n height: 100%;\n position: fixed;\n left: 0;\n top: 0;\n z-index: 999;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 1;\n transition: opacity linear 300ms; }\n .loader .dot {\n width: 20px;\n height: 20px;\n margin: 3px;\n border-radius: 100%;\n display: inline-block;\n animation: loader 1.4s ease-in-out 0s infinite both; }\n .loader .bounce1 {\n animation-delay: -0.32s; }\n .loader .bounce2 {\n animation-delay: -0.16s; }\n .loader.done {\n opacity: 0; }\n\n@-webkit-keyframes loader {\n 0%,\n 80%,\n 100% {\n transform: scale(0); }\n 40% {\n transform: scale(1); } }\n\n@keyframes loader {\n 0%,\n 80%,\n 100% {\n transform: scale(0); }\n 40% {\n transform: scale(1); } }\n",""])},,function(t,e,n){"use strict";var r=n(1),o=n(10),i=n(34),a=n(9),c=n(26),u=Object(r.a)(function(t,e){if(Object(o.a)(t)){if(Object(o.a)(e))return t.concat(e);throw new TypeError(Object(c.a)(e)+" is not an array")}if(Object(a.a)(t)){if(Object(a.a)(e))return t+e;throw new TypeError(Object(c.a)(e)+" is not a string")}if(null!=t&&Object(i.a)(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&Object(i.a)(t.concat))return t.concat(e);throw new TypeError(Object(c.a)(t)+' does not have a method named "concat" or "fantasy-land/concat"')});e.a=u},function(t,e,n){e.iframeResizer=n(79),e.iframeResizerContentWindow=n(80)},function(t,e,n){var r,o,i;!function(n){if("undefined"!=typeof window){var a,c=0,u=!1,s=!1,l="message".length,f="[iFrameSizer]",d=f.length,h=null,p=window.requestAnimationFrame,m={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},b={},g=null,v={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClosed:function(){},onInit:function(){},onMessage:function(){A("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},y={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(t){return this.filter("iframe").each(function(e,n){B(n,t)}).end()}):S("","Unable to bind to jQuery, it is not fully loaded.")),o=[],(i="function"==typeof(r=V)?r.apply(e,o):r)===n||(t.exports=i),window.iFrameResize=window.iFrameResize||V()}function O(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(t,e,n){t.addEventListener(e,n,!1)}function E(t,e,n){t.removeEventListener(e,n,!1)}function j(t){return f+"["+function(t){var e="Host page: "+t;return window.top!==window.self&&(e=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),e}(t)+"]"}function T(t){return b[t]?b[t].log:u}function _(t,e){N("log",t,e,T(t))}function S(t,e){N("info",t,e,T(t))}function A(t,e){N("warn",t,e,!0)}function N(t,e,n,r){!0===r&&"object"==typeof window.console&&console[t](j(e),n)}function M(t){function e(){n("Height"),n("Width"),D(function(){F(v),k(O),u("onResized",v)},v,"init")}function n(t){var e=Number(b[O]["max"+t]),n=Number(b[O]["min"+t]),r=t.toLowerCase(),o=Number(v[r]);_(O,"Checking "+r+" is in range "+n+"-"+e),o<n&&(o=n,_(O,"Set "+r+" to min value")),o>e&&(o=e,_(O,"Set "+r+" to max value")),v[r]=""+o}function r(t){return g.substr(g.indexOf(":")+l+t)}function o(t,e){var n,r,o;n=function(){var n,r;z("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=v.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})),t,e)},r=32,y[o=e]||(y[o]=setTimeout(function(){y[o]=null,n()},r))}function i(t){var e=t.getBoundingClientRect();return I(O),{x:Math.floor(Number(e.left)+Number(h.x)),y:Math.floor(Number(e.top)+Number(h.y))}}function a(t){var e=t?i(v.iframe):{x:0,y:0},n={x:Number(v.width)+e.x,y:Number(v.height)+e.y};_(O,"Reposition requested from iFrame (offset x:"+e.x+" y:"+e.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](n.x,n.y):A(O,"Unable to scroll to requested position, window.parentIFrame not found"):(h=n,c(),_(O,"--"))}function c(){!1!==u("onScroll",h)?k(O):P()}function u(t,e){return x(O,t,e)}var s,p,m,g=t.data,v={},O=null;"[iFrameResizerChild]Ready"===g?function(){for(var t in b)z("iFrame requested init",H(t),document.getElementById(t),t)}():f===(""+g).substr(0,d)&&g.substr(d).split(":")[0]in b?(m=g.substr(d).split(":"),v={iframe:b[m[0]]&&b[m[0]].iframe,id:m[0],height:m[1],width:m[2],type:m[3]},O=v.id,b[O]&&(b[O].loaded=!0),(p=v.type in{true:1,false:1,undefined:1})&&_(O,"Ignoring init message from meta parent page"),!p&&function(t){var e=!0;return b[t]||(e=!1,A(v.type+" No settings for "+t+". Message was: "+g)),e}(O)&&(_(O,"Received: "+g),s=!0,null===v.iframe&&(A(O,"IFrame ("+v.id+") not found"),s=!1),s&&function(){var e,n=t.origin,r=b[O]&&b[O].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var t=0,e=!1;for(_(O,"Checking connection is from allowed list of origins: "+r);t<r.length;t++)if(r[t]===n){e=!0;break}return e}():(e=b[O]&&b[O].remoteHost,_(O,"Checking connection is from: "+e),n===e)))throw new Error("Unexpected message received from: "+n+" for "+v.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(b[O]&&b[O].firstRun&&b[O]&&(b[O].firstRun=!1),v.type){case"close":b[O].closeRequeston?x(O,"onCloseRequest",b[O].iframe):L(v.iframe);break;case"message":d=r(6),_(O,"onMessage passed: {iframe: "+v.iframe.id+", message: "+d+"}"),u("onMessage",{iframe:v.iframe,message:JSON.parse(d)}),_(O,"--");break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":o(b[O]&&b[O].iframe,O),function(){function t(t,r){function i(){b[n]?o(b[n].iframe,n):e()}["scroll","resize"].forEach(function(e){_(n,t+e+" listener for sendPageInfo"),r(window,e,i)})}function e(){t("Remove ",E)}var n=O;t("Add ",w),b[n]&&(b[n].stopPageInfo=e)}();break;case"pageInfoStop":b[O]&&b[O].stopPageInfo&&(b[O].stopPageInfo(),delete b[O].stopPageInfo);break;case"inPageLink":t=r(9),s=t.split("#")[1]||"",l=decodeURIComponent(s),(f=document.getElementById(l)||document.getElementsByName(l)[0])?(n=i(f),_(O,"Moving to in page link (#"+s+") at x: "+n.x+" y: "+n.y),h={x:n.x,y:n.y},c(),_(O,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(s):_(O,"In page link #"+s+" not found and window.parentIFrame not found"):_(O,"In page link #"+s+" not found");break;case"reset":C(v);break;case"init":e(),u("onInit",v.iframe);break;default:e()}var t,n,s,l,f,d}())):S(O,"Ignored: "+g)}function x(t,e,n){var r=null,o=null;if(b[t]){if("function"!=typeof(r=b[t][e]))throw new TypeError(e+" on iFrame["+t+"] is not a function");o=r(n)}return o}function R(t){var e=t.id;delete b[e]}function L(t){var e=t.id;_(e,"Removing iFrame: "+e);try{t.parentNode&&t.parentNode.removeChild(t)}catch(t){A(t)}x(e,"onClosed",e),_(e,"--"),R(t)}function I(t){null===h&&_(t,"Get page position: "+(h={x:window.pageXOffset!==n?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==n?window.pageYOffset:document.documentElement.scrollTop}).x+","+h.y)}function k(t){null!==h&&(window.scrollTo(h.x,h.y),_(t,"Set page position: "+h.x+","+h.y),P())}function P(){h=null}function C(t){_(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),I(t.id),D(function(){F(t),z("reset","reset",t.iframe,t.id)},t,"reset")}function F(t){function e(e){s||"0"!==t[e]||(s=!0,_(r,"Hidden iFrame detected, creating visibility listener"),function(){function t(){Object.values(b).forEach(function(t){function e(e){return"0px"===(b[t]&&b[t].iframe.style[e])}b[t]&&(n=b[t].iframe,null!==n.offsetParent)&&(e("height")||e("width"))&&z("Visibility change","resize",b[t].iframe,t);var n})}function e(e){_("window","Mutation observed: "+e[0].target+" "+e[0].type),Y(t,16)}var n=O();n&&(r=document.querySelector("body"),new n(e).observe(r,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var r}())}function n(n){!function(e){t.id?(t.iframe.style[e]=t[e]+"px",_(t.id,"IFrame ("+r+") "+e+" set to "+t[e]+"px")):_("undefined","messageData id not set")}(n),e(n)}var r=t.iframe.id;b[r]&&(b[r].sizeHeight&&n("height"),b[r].sizeWidth&&n("width"))}function D(t,e,n){n!==e.type&&p?(_(e.id,"Requesting animation frame"),p(t)):t()}function z(t,e,n,r,o){var i,a=!1;r=r||n.id,b[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(i=b[r]&&b[r].targetOrigin,_(r,"["+t+"] Sending msg to iframe["+r+"] ("+e+") targetOrigin: "+i),n.contentWindow.postMessage(f+e,i)):A(r,"["+t+"] IFrame("+r+") not found"),o&&b[r]&&b[r].warningTimeout&&(b[r].msgTimeout=setTimeout(function(){!b[r]||b[r].loaded||a||(a=!0,A(r,"IFrame has not responded within "+b[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},b[r].warningTimeout)))}function H(t){return t+":"+b[t].bodyMarginV1+":"+b[t].sizeWidth+":"+b[t].log+":"+b[t].interval+":"+b[t].enablePublicMethods+":"+b[t].autoResize+":"+b[t].bodyMargin+":"+b[t].heightCalculationMethod+":"+b[t].bodyBackground+":"+b[t].bodyPadding+":"+b[t].tolerance+":"+b[t].inPageLinks+":"+b[t].resizeFrom+":"+b[t].widthCalculationMethod}function B(t,e){function r(t){var e=t.split("Callback");if(2===e.length){var n="on"+e[0].charAt(0).toUpperCase()+e[0].slice(1);this[n]=this[t],delete this[t],A(a,"Deprecated: '"+t+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var o,i,a=function(n){var r;return""===n&&(t.id=(r=e&&e.id||v.id+c++,null!==document.getElementById(r)&&(r+=c++),n=r),u=(e||{}).log,_(n,"Added missing iframe ID: "+n+" ("+t.src+")")),n}(t.id);a in b&&"iFrameResizer"in t?A(a,"Ignored iFrame, already setup."):(!function(e){var n;e=e||{},b[a]={firstRun:!0,iframe:t,remoteHost:t.src.split("/").slice(0,3).join("/")},function(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(r,e),function(t){for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&(b[a][e]=Object.prototype.hasOwnProperty.call(t,e)?t[e]:v[e])}(e),b[a]&&(b[a].targetOrigin=!0===b[a].checkOrigin?""===(n=b[a].remoteHost)||"file://"===n?"*":n:"*")}(e),function(){switch(_(a,"IFrame scrolling "+(b[a]&&b[a].scrolling?"enabled":"disabled")+" for "+a),t.style.overflow=!1===(b[a]&&b[a].scrolling)?"hidden":"auto",b[a]&&b[a].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=b[a]?b[a].scrolling:"no"}}(),function(){function e(e){1/0!==b[a][e]&&0!==b[a][e]&&(t.style[e]=b[a][e]+"px",_(a,"Set "+e+" = "+b[a][e]+"px"))}function n(t){if(b[a]["min"+t]>b[a]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(b[a]&&b[a].bodyMargin)&&"0"!==(b[a]&&b[a].bodyMargin)||(b[a].bodyMarginV1=b[a].bodyMargin,b[a].bodyMargin=b[a].bodyMargin+"px"),o=H(a),(i=O())&&function(e){t.parentNode&&new e(function(e){e.forEach(function(e){Array.prototype.slice.call(e.removedNodes).forEach(function(e){e===t&&L(t)})})}).observe(t.parentNode,{childList:!0})}(i),w(t,"load",function(){var e,r;z("iFrame.onload",o,t,n,!0),e=b[a]&&b[a].firstRun,r=b[a]&&b[a].heightCalculationMethod in m,!e&&r&&C({iframe:t,height:0,width:0,type:"init"})}),z("init",o,t,n,!0),b[a]&&(b[a].iframe.iFrameResizer={close:L.bind(null,b[a].iframe),removeListeners:R.bind(null,b[a].iframe),resize:z.bind(null,"Window resize","resize",b[a].iframe),moveToAnchor:function(t){z("Move to anchor","moveToAnchor:"+t,b[a].iframe,a)},sendMessage:function(t){z("Send Message","message:"+(t=JSON.stringify(t)),b[a].iframe,a)}}))}function Y(t,e){null===g&&(g=setTimeout(function(){g=null,t()},e))}function U(){"hidden"!==document.visibilityState&&(_("document","Trigger event: Visiblity change"),Y(function(){W("Tab Visable","resize")},16))}function W(t,e){Object.keys(b).forEach(function(n){(function(t){return b[t]&&"parent"===b[t].resizeFrom&&b[t].autoResize&&!b[t].firstRun})(n)&&z(t,e,document.getElementById(n),n)})}function q(){w(window,"message",M),w(window,"resize",function(){var t;_("window","Trigger event: "+(t="resize")),Y(function(){W("Window "+t,"resize")},16)}),w(document,"visibilitychange",U),w(document,"-webkit-visibilitychange",U)}function V(){function t(t,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),B(n,t),e.push(n))}var e;return function(){var t,e=["moz","webkit","o","ms"];for(t=0;t<e.length&&!p;t+=1)p=window[e[t]+"RequestAnimationFrame"];p||_("setup","RequestAnimationFrame not supported")}(),q(),function(r,o){switch(e=[],function(t){t&&t.enablePublicMethods&&A("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(r),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),t.bind(n,r));break;case"object":t(r,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return e}}}()},function(t,e,n){!function(e){if("undefined"!=typeof window){var n=!0,r=10,o="",i=0,a="",c=null,u="",s=!1,l={resize:1,click:1},f=128,d=!0,h=1,p="bodyOffset",m=p,b=!0,g="",v={},y=32,O=null,w=!1,E="[iFrameSizer]",j=E.length,T="",_={max:1,min:1,bodyScroll:1,documentElementScroll:1},S="child",A=!0,N=window.parent,M="*",x=0,R=!1,L=null,I=16,k=1,P="scroll",C=P,F=window,D=function(){ut("onMessage function not defined")},z=function(){},H=function(){},B={height:function(){return ut("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ut("Custom width calculation function not defined"),document.body.scrollWidth}},Y={},U=!1;try{var W=Object.create({},{passive:{get:function(){U=!0}}});window.addEventListener("test",nt,W),window.removeEventListener("test",nt,W)}catch(t){}var q,V,G,$,K,X,J,Q=Date.now||function(){return(new Date).getTime()},Z={bodyOffset:function(){return document.body.offsetHeight+Ot("marginTop")+Ot("marginBottom")},offset:function(){return Z.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return B.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,Et(Z))},min:function(){return Math.min.apply(null,Et(Z))},grow:function(){return Z.max()},lowestElement:function(){return Math.max(Z.bodyOffset()||Z.documentElementOffset(),wt("bottom",Tt()))},taggedElement:function(){return jt("bottom","data-iframe-height")}},tt={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return B.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(tt.bodyScroll(),tt.documentElementScroll())},max:function(){return Math.max.apply(null,Et(tt))},min:function(){return Math.min.apply(null,Et(tt))},rightMostElement:function(){return wt("right",Tt())},taggedElement:function(){return jt("right","data-iframe-width")}},et=(q=_t,K=null,X=0,J=function(){X=Q(),K=null,$=q.apply(V,G),K||(V=G=null)},function(){var t=Q();X||(X=t);var e=I-(t-X);return V=this,G=arguments,e<=0||e>I?(K&&(clearTimeout(K),K=null),X=t,$=q.apply(V,G),K||(V=G=null)):K||(K=setTimeout(J,e)),$});rt(window,"message",Rt),rt(window,"readystatechange",Lt),Lt()}function nt(){}function rt(t,e,n,r){t.addEventListener(e,n,!!U&&(r||{}))}function ot(t,e,n){t.removeEventListener(e,n,!1)}function it(t){return t.charAt(0).toUpperCase()+t.slice(1)}function at(t){return E+"["+T+"] "+t}function ct(t){w&&"object"==typeof window.console&&console.log(at(t))}function ut(t){"object"==typeof window.console&&console.warn(at(t))}function st(){var t;!function(){function t(t){return"true"===t}var r=g.substr(j).split(":");T=r[0],i=e!==r[1]?Number(r[1]):i,s=e!==r[2]?t(r[2]):s,w=e!==r[3]?t(r[3]):w,y=e!==r[4]?Number(r[4]):y,n=e!==r[6]?t(r[6]):n,a=r[7],m=e!==r[8]?r[8]:m,o=r[9],u=r[10],x=e!==r[11]?Number(r[11]):x,v.enable=e!==r[12]&&t(r[12]),S=e!==r[13]?r[13]:S,C=e!==r[14]?r[14]:C}(),ct("Initialising iFrame ("+location.href+")"),function(){function t(t,e){return"function"==typeof t&&(ct("Setup custom "+e+"CalcMethod"),B[e]=t,t="custom"),t}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e=window.iFrameResizer,ct("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(lt,e),D="onMessage"in e?e.onMessage:D,z="onReady"in e?e.onReady:z,M="targetOrigin"in e?e.targetOrigin:M,m="heightCalculationMethod"in e?e.heightCalculationMethod:m,C="widthCalculationMethod"in e?e.widthCalculationMethod:C,m=t(m,"height"),C=t(C,"width"));var e;ct("TargetOrigin for parent set to: "+M)}(),function(){e===a&&(a=i+"px");ft("margin",function(t,e){-1!==e.indexOf("-")&&(ut("Negative CSS value ignored for "+t),e="");return e}("margin",a))}(),ft("background",o),ft("padding",u),(t=document.createElement("div")).style.clear="both",t.style.display="block",t.style.height="0",document.body.appendChild(t),mt(),bt(),document.documentElement.style.height="",document.body.style.height="",ct('HTML & body height set to "auto"'),ct("Enable public methods"),F.parentIFrame={autoResize:function(t){return!0===t&&!1===n?(n=!0,gt()):!1===t&&!0===n&&(n=!1,vt()),n},close:function(){xt(0,0,"close"),ct("Disable outgoing messages"),A=!1,ct("Remove event listener: Message"),ot(window,"message",Rt),!0===n&&vt()},getId:function(){return T},getPageInfo:function(t){"function"==typeof t?(H=t,xt(0,0,"pageInfo")):(H=function(){},xt(0,0,"pageInfoStop"))},moveToAnchor:function(t){v.findTarget(t)},reset:function(){Mt("parentIFrame.reset")},scrollTo:function(t,e){xt(e,t,"scrollTo")},scrollToOffset:function(t,e){xt(e,t,"scrollToOffset")},sendMessage:function(t,e){xt(0,0,"message",JSON.stringify(t),e)},setHeightCalculationMethod:function(t){m=t,mt()},setWidthCalculationMethod:function(t){C=t,bt()},setTargetOrigin:function(t){ct("Set targetOrigin: "+t),M=t},size:function(t,e){var n=(t||"")+(e?","+e:"");St("size","parentIFrame.size("+n+")",t,e)}},gt(),v=function(){function t(t){var n=t.getBoundingClientRect(),r={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(n.left,10)+parseInt(r.x,10),y:parseInt(n.top,10)+parseInt(r.y,10)}}function n(n){var r=n.split("#")[1]||n,o=decodeURIComponent(r),i=document.getElementById(o)||document.getElementsByName(o)[0];e!==i?function(e){var n=t(e);ct("Moving to in page link (#"+r+") at x: "+n.x+" y: "+n.y),xt(n.y,n.x,"scrollToOffset")}(i):(ct("In page link (#"+r+") not found in iFrame, so sending to parent"),xt(0,0,"inPageLink","#"+r))}function r(){""!==location.hash&&"#"!==location.hash&&n(location.href)}v.enable?Array.prototype.forEach&&document.querySelectorAll?(ct("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(t){"#"!==t.getAttribute("href")&&rt(t,"click",function(t){t.preventDefault(),n(this.getAttribute("href"))})}),rt(window,"hashchange",r),setTimeout(r,f)):ut("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):ct("In page linking not enabled");return{findTarget:n}}(),St("init","Init message from host page"),z()}function lt(t){var e=t.split("Callback");if(2===e.length){var n="on"+e[0].charAt(0).toUpperCase()+e[0].slice(1);this[n]=this[t],delete this[t],ut("Deprecated: '"+t+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function ft(t,n){e!==n&&""!==n&&"null"!==n&&(document.body.style[t]=n,ct("Body "+t+' set to "'+n+'"'))}function dt(t){var e={add:function(e){function n(){St(t.eventName,t.eventType)}Y[e]=n,rt(window,e,n,{passive:!0})},remove:function(t){var e=Y[t];delete Y[t],ot(window,t,e)}};t.eventNames&&Array.prototype.map?(t.eventName=t.eventNames[0],t.eventNames.map(e[t.method])):e[t.method](t.eventName),ct(it(t.method)+" event listener: "+t.eventType)}function ht(t){dt({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),dt({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),dt({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),dt({method:t,eventType:"Input",eventName:"input"}),dt({method:t,eventType:"Mouse Up",eventName:"mouseup"}),dt({method:t,eventType:"Mouse Down",eventName:"mousedown"}),dt({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),dt({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),dt({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),dt({method:t,eventType:"Touch Start",eventName:"touchstart"}),dt({method:t,eventType:"Touch End",eventName:"touchend"}),dt({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),dt({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),dt({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),dt({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===S&&dt({method:t,eventType:"IFrame Resized",eventName:"resize"})}function pt(t,e,n,r){return e!==t&&(t in n||(ut(t+" is not a valid option for "+r+"CalculationMethod."),t=e),ct(r+' calculation method set to "'+t+'"')),t}function mt(){m=pt(m,p,Z,"height")}function bt(){C=pt(C,P,tt,"width")}function gt(){var t;!0===n?(ht("add"),t=0>y,window.MutationObserver||window.WebKitMutationObserver?t?yt():c=function(){function t(t){function e(t){!1===t.complete&&(ct("Attach listeners to "+t.src),t.addEventListener("load",o,!1),t.addEventListener("error",i,!1),u.push(t))}"attributes"===t.type&&"src"===t.attributeName?e(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),e)}function n(t){ct("Remove listeners from "+t.src),t.removeEventListener("load",o,!1),t.removeEventListener("error",i,!1),function(t){u.splice(u.indexOf(t),1)}(t)}function r(t,r,o){n(t.target),St(r,o+": "+t.target.src,e,e)}function o(t){r(t,"imageLoad","Image loaded")}function i(t){r(t,"imageLoadFailed","Image load failed")}function a(e){St("mutationObserver","mutationObserver: "+e[0].target+" "+e[0].type),e.forEach(t)}var c,u=[],s=window.MutationObserver||window.WebKitMutationObserver,l=(c=document.querySelector("body"),l=new s(a),ct("Create body MutationObserver"),l.observe(c,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),l);return{disconnect:function(){"disconnect"in l&&(ct("Disconnect body MutationObserver"),l.disconnect(),u.forEach(n))}}}():(ct("MutationObserver not supported in this browser!"),yt())):ct("Auto Resize disabled")}function vt(){ht("remove"),null!==c&&c.disconnect(),clearInterval(O)}function yt(){0!==y&&(ct("setInterval: "+y+"ms"),O=setInterval(function(){St("interval","setInterval: "+y)},Math.abs(y)))}function Ot(t,e){var n=0;return e=e||document.body,n=null!==(n=document.defaultView.getComputedStyle(e,null))?n[t]:0,parseInt(n,r)}function wt(t,e){for(var n=e.length,r=0,o=0,i=it(t),a=Q(),c=0;c<n;c++)(r=e[c].getBoundingClientRect()[t]+Ot("margin"+i,e[c]))>o&&(o=r);return a=Q()-a,ct("Parsed "+n+" HTML elements"),ct("Element position calculated in "+a+"ms"),function(t){t>I/2&&ct("Event throttle increased to "+(I=2*t)+"ms")}(a),o}function Et(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function jt(t,e){var n=document.querySelectorAll("["+e+"]");return 0===n.length&&(ut("No tagged elements ("+e+") found on page"),document.querySelectorAll("body *")),wt(t,n)}function Tt(){return document.querySelectorAll("body *")}function _t(t,n,r,o){var i,a;!function(){function t(t,e){return!(Math.abs(t-e)<=x)}return i=e!==r?r:Z[m](),a=e!==o?o:tt[C](),t(h,i)||s&&t(k,a)}()&&"init"!==t?t in{init:1,interval:1,size:1}||!(m in _||s&&C in _)?t in{interval:1}||ct("No change in size detected"):Mt(n):(At(),xt(h=i,k=a,t))}function St(t,e,n,r){R&&t in l?ct("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||ct("Trigger event: "+e),"init"===t?_t(t,e,n,r):et(t,e,n,r))}function At(){R||(R=!0,ct("Trigger event lock on")),clearTimeout(L),L=setTimeout(function(){R=!1,ct("Trigger event lock off"),ct("--")},f)}function Nt(t){h=Z[m](),k=tt[C](),xt(h,k,t)}function Mt(t){var e=m;m=p,ct("Reset trigger event: "+t),At(),Nt("reset"),m=e}function xt(t,n,r,o,i){var a;!0===A&&(e===i?i=M:ct("Message targetOrigin: "+i),ct("Sending message to host page ("+(a=T+":"+t+":"+n+":"+r+(e!==o?":"+o:""))+")"),N.postMessage(E+a,i))}function Rt(e){var n={init:function(){g=e.data,N=e.source,st(),d=!1,setTimeout(function(){b=!1},f)},reset:function(){b?ct("Page reset ignored by init"):(ct("Page size reset by host page"),Nt("resetPage"))},resize:function(){St("resizeParent","Parent window requested size check")},moveToAnchor:function(){v.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var t=o();ct("PageInfoFromParent called from parent: "+t),H(JSON.parse(t)),ct(" --")},message:function(){var t=o();ct("onMessage called from parent: "+t),D(JSON.parse(t)),ct(" --")}};function r(){return e.data.split("]")[1].split(":")[0]}function o(){return e.data.substr(e.data.indexOf(":")+1)}function i(){return e.data.split(":")[2]in{true:1,false:1}}function a(){var o=r();o in n?n[o]():!t.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||i()||ut("Unexpected message ("+e.data+")")}E===(""+e.data).substr(0,j)&&(!1===d?a():i()?n.init():ct('Ignored message of type "'+r()+'". Received before initialization.'))}function Lt(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},function(t,e,n){var r=n(82);r.Template=n(83).Template,r.template=r.Template,t.exports=r},function(t,e,n){!function(t){var e=/\S/,n=/\"/g,r=/\n/g,o=/\r/g,i=/\\/g,a=/\u2028/,c=/\u2029/;function u(t){"}"===t.n.substr(t.n.length-1)&&(t.n=t.n.substring(0,t.n.length-1))}function s(t){return t.trim?t.trim():t.replace(/^\s*|\s*$/g,"")}function l(t,e,n){if(e.charAt(n)!=t.charAt(0))return!1;for(var r=1,o=t.length;r<o;r++)if(e.charAt(n+r)!=t.charAt(r))return!1;return!0}t.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},t.scan=function(n,r){var o=n.length,i=0,a=null,c=null,f="",d=[],h=!1,p=0,m=0,b="{{",g="}}";function v(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function y(n,r){if(v(),n&&function(){for(var n=!0,r=m;r<d.length;r++)if(!(n=t.tags[d[r].tag]<t.tags._v||"_t"==d[r].tag&&null===d[r].text.match(e)))return!1;return n}())for(var o,i=m;i<d.length;i++)d[i].text&&((o=d[i+1])&&">"==o.tag&&(o.indent=d[i].text.toString()),d.splice(i,1));else r||d.push({tag:"\n"});h=!1,m=d.length}function O(t,e){var n="="+g,r=t.indexOf(n,e),o=s(t.substring(t.indexOf("=",e)+1,r)).split(" ");return b=o[0],g=o[o.length-1],r+n.length-1}for(r&&(r=r.split(" "),b=r[0],g=r[1]),p=0;p<o;p++)0==i?l(b,n,p)?(--p,v(),i=1):"\n"==n.charAt(p)?y(h):f+=n.charAt(p):1==i?(p+=b.length-1,"="==(a=(c=t.tags[n.charAt(p+1)])?n.charAt(p+1):"_v")?(p=O(n,p),i=0):(c&&p++,i=2),h=p):l(g,n,p)?(d.push({tag:a,n:s(f),otag:b,ctag:g,i:"/"==a?h-b.length:p+g.length}),f="",p+=g.length-1,i=0,"{"==a&&("}}"==g?p++:u(d[d.length-1]))):f+=n.charAt(p);return y(h,!0),d};var f={_t:!0,"\n":!0,$:!0,"/":!0};function d(t,e){for(var n=0,r=e.length;n<r;n++)if(e[n].o==t.n)return t.tag="#",!0}function h(t,e,n){for(var r=0,o=n.length;r<o;r++)if(n[r].c==t&&n[r].o==e)return!0}function p(t){var e=[];for(var n in t.partials)e.push('"'+b(n)+'":{name:"'+b(t.partials[n].name)+'", '+p(t.partials[n])+"}");return"partials: {"+e.join(",")+"}, subs: "+function(t){var e=[];for(var n in t)e.push('"'+b(n)+'": function(c,p,t,i) {'+t[n]+"}");return"{ "+e.join(",")+" }"}(t.subs)}t.stringify=function(e,n,r){return"{code: function (c,p,i) { "+t.wrapMain(e.code)+" },"+p(e)+"}"};var m=0;function b(t){return t.replace(i,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(o,"\\r").replace(a,"\\u2028").replace(c,"\\u2029")}function g(t){return~t.indexOf(".")?"d":"f"}function v(t,e){var n="<"+(e.prefix||"")+t.n+m++;return e.partials[n]={name:t.n,partials:{}},e.code+='t.b(t.rp("'+b(n)+'",c,p,"'+(t.indent||"")+'"));',n}function y(t,e){e.code+="t.b(t.t(t."+g(t.n)+'("'+b(t.n)+'",c,p,0)));'}function O(t){return"t.b("+t+");"}t.generate=function(e,n,r){m=0;var o={code:"",subs:{},partials:{}};return t.walk(e,o),r.asString?this.stringify(o,n,r):this.makeTemplate(o,n,r)},t.wrapMain=function(t){return'var t=this;t.b(i=i||"");'+t+"return t.fl();"},t.template=t.Template,t.makeTemplate=function(t,e,n){var r=this.makePartials(t);return r.code=new Function("c","p","i",this.wrapMain(t.code)),new this.template(r,e,this,n)},t.makePartials=function(t){var e,n={subs:{},partials:t.partials,name:t.name};for(e in n.partials)n.partials[e]=this.makePartials(n.partials[e]);for(e in t.subs)n.subs[e]=new Function("c","p","t","i",t.subs[e]);return n},t.codegen={"#":function(e,n){n.code+="if(t.s(t."+g(e.n)+'("'+b(e.n)+'",c,p,1),c,p,0,'+e.i+","+e.end+',"'+e.otag+" "+e.ctag+'")){t.rs(c,p,function(c,p,t){',t.walk(e.nodes,n),n.code+="});c.pop();}"},"^":function(e,n){n.code+="if(!t.s(t."+g(e.n)+'("'+b(e.n)+'",c,p,1),c,p,1,0,0,"")){',t.walk(e.nodes,n),n.code+="};"},">":v,"<":function(e,n){var r={partials:{},code:"",subs:{},inPartial:!0};t.walk(e.nodes,r);var o=n.partials[v(e,n)];o.subs=r.subs,o.partials=r.partials},$:function(e,n){var r={subs:{},code:"",partials:n.partials,prefix:e.n};t.walk(e.nodes,r),n.subs[e.n]=r.code,n.inPartial||(n.code+='t.sub("'+b(e.n)+'",c,p,i);')},"\n":function(t,e){e.code+=O('"\\n"'+(t.last?"":" + i"))},_v:function(t,e){e.code+="t.b(t.v(t."+g(t.n)+'("'+b(t.n)+'",c,p,0)));'},_t:function(t,e){e.code+=O('"'+b(t.text)+'"')},"{":y,"&":y},t.walk=function(e,n){for(var r,o=0,i=e.length;o<i;o++)(r=t.codegen[e[o].tag])&&r(e[o],n);return n},t.parse=function(e,n,r){return function e(n,r,o,i){var a,c=[],u=null,s=null;for(a=o[o.length-1];n.length>0;){if(s=n.shift(),a&&"<"==a.tag&&!(s.tag in f))throw new Error("Illegal content in < super tag.");if(t.tags[s.tag]<=t.tags.$||d(s,i))o.push(s),s.nodes=e(n,s.tag,o,i);else{if("/"==s.tag){if(0===o.length)throw new Error("Closing tag without opener: /"+s.n);if(u=o.pop(),s.n!=u.n&&!h(s.n,u.n,i))throw new Error("Nesting error: "+u.n+" vs. "+s.n);return u.end=s.i,c}"\n"==s.tag&&(s.last=0==n.length||"\n"==n[0].tag)}c.push(s)}if(o.length>0)throw new Error("missing closing tag: "+o.pop().n);return c}(e,0,[],(r=r||{}).sectionTags||[])},t.cache={},t.cacheKey=function(t,e){return[t,!!e.asString,!!e.disableLambda,e.delimiters,!!e.modelGet].join("||")},t.compile=function(e,n){n=n||{};var r=t.cacheKey(e,n),o=this.cache[r];if(o){var i=o.partials;for(var a in i)delete i[a].instance;return o}return o=this.generate(this.parse(this.scan(e,n.delimiters),e,n),e,n),this.cache[r]=o}}(e)},function(t,e,n){!function(t){function e(t,e,n){var r;return e&&"object"==typeof e&&(void 0!==e[t]?r=e[t]:n&&e.get&&"function"==typeof e.get&&(r=e.get(t))),r}t.Template=function(t,e,n,r){t=t||{},this.r=t.code||this.r,this.c=n,this.options=r||{},this.text=e||"",this.partials=t.partials||{},this.subs=t.subs||{},this.buf=""},t.Template.prototype={r:function(t,e,n){return""},v:function(t){return t=u(t),c.test(t)?t.replace(n,"&").replace(r,"<").replace(o,">").replace(i,"'").replace(a,"""):t},t:u,render:function(t,e,n){return this.ri([t],e||{},n)},ri:function(t,e,n){return this.r(t,e,n)},ep:function(t,e){var n=this.partials[t],r=e[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[t].base=r,n.subs){for(key in e.stackText||(e.stackText={}),n.subs)e.stackText[key]||(e.stackText[key]=void 0!==this.activeSub&&e.stackText[this.activeSub]?e.stackText[this.activeSub]:this.text);r=function(t,e,n,r,o,i){function a(){}function c(){}var u;a.prototype=t,c.prototype=t.subs;var s=new a;for(u in s.subs=new c,s.subsText={},s.buf="",r=r||{},s.stackSubs=r,s.subsText=i,e)r[u]||(r[u]=e[u]);for(u in r)s.subs[u]=r[u];for(u in o=o||{},s.stackPartials=o,n)o[u]||(o[u]=n[u]);for(u in o)s.partials[u]=o[u];return s}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,e.stackText)}return this.partials[t].instance=r,r},rp:function(t,e,n,r){var o=this.ep(t,n);return o?o.ri(e,n,r):""},rs:function(t,e,n){var r=t[t.length-1];if(s(r))for(var o=0;o<r.length;o++)t.push(r[o]),n(t,e,this),t.pop();else n(t,e,this)},s:function(t,e,n,r,o,i,a){var c;return(!s(t)||0!==t.length)&&("function"==typeof t&&(t=this.ms(t,e,n,r,o,i,a)),c=!!t,!r&&c&&e&&e.push("object"==typeof t?t:e[e.length-1]),c)},d:function(t,n,r,o){var i,a=t.split("."),c=this.f(a[0],n,r,o),u=this.options.modelGet,l=null;if("."===t&&s(n[n.length-2]))c=n[n.length-1];else for(var f=1;f<a.length;f++)void 0!==(i=e(a[f],c,u))?(l=c,c=i):c="";return!(o&&!c)&&(o||"function"!=typeof c||(n.push(l),c=this.mv(c,n,r),n.pop()),c)},f:function(t,n,r,o){for(var i=!1,a=!1,c=this.options.modelGet,u=n.length-1;u>=0;u--)if(void 0!==(i=e(t,n[u],c))){a=!0;break}return a?(o||"function"!=typeof i||(i=this.mv(i,n,r)),i):!o&&""},ls:function(t,e,n,r,o){var i=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(u(t.call(e,r)),e,n)),this.options.delimiters=i,!1},ct:function(t,e,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(t,this.options).render(e,n)},b:function(t){this.buf+=t},fl:function(){var t=this.buf;return this.buf="",t},ms:function(t,e,n,r,o,i,a){var c,u=e[e.length-1],s=t.call(u);return"function"==typeof s?!!r||(c=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(s,u,n,c.substring(o,i),a)):s},mv:function(t,e,n){var r=e[e.length-1],o=t.call(r);return"function"==typeof o?this.ct(u(o.call(r)),r,n):o},sub:function(t,e,n,r){var o=this.subs[t];o&&(this.activeSub=t,o(e,n,this,r),this.activeSub=!1)}};var n=/&/g,r=/</g,o=/>/g,i=/\'/g,a=/\"/g,c=/[&<>\"\']/;function u(t){return String(null==t?"":t)}var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}}(e)},function(t,e,n){var r=n(67),o=n(85),i={};for(var a in r)r.hasOwnProperty(a)&&(i[r[a]]=a);var c=t.exports={to:{},get:{}};function u(t,e,n){return Math.min(Math.max(e,t),n)}function s(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}c.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=c.get.hsl(t),n="hsl";break;case"hwb":e=c.get.hwb(t),n="hwb";break;default:e=c.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},c.get.rgb=function(t){if(!t)return null;var e,n,o,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],n=0;n<3;n++){var a=2*n;i[n]=parseInt(e.slice(a,a+2),16)}o&&(i[3]=Math.round(parseInt(o,16)/255*100)/100)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],n=0;n<3;n++)i[n]=parseInt(e[n]+e[n],16);o&&(i[3]=Math.round(parseInt(o+o,16)/255*100)/100)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)i[n]=parseInt(e[n+1],0);e[4]&&(i[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(e=t.match(/(\D+)/))?"transparent"===e[1]?[0,0,0,0]:(i=r[e[1]])?(i[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(i[3]=parseFloat(e[4]))}for(n=0;n<3;n++)i[n]=u(i[n],0,255);return i[3]=u(i[3],0,1),i},c.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},c.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},c.to.hex=function(){var t=o(arguments);return"#"+s(t[0])+s(t[1])+s(t[2])+(t[3]<1?s(Math.round(255*t[3])):"")},c.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},c.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},c.to.keyword=function(t){return i[t.slice(0,3)]}},function(t,e,n){"use strict";var r=n(86),o=Array.prototype.concat,i=Array.prototype.slice,a=t.exports=function(t){for(var e=[],n=0,a=t.length;n<a;n++){var c=t[n];r(c)?e=o.call(e,i.call(c)):e.push(c)}return e};a.wrap=function(t){return function(){return t(a(arguments))}}},function(t,e){t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,e,n){var r=n(68),o=n(88),i={};Object.keys(r).forEach(function(t){i[t]={},Object.defineProperty(i[t],"channels",{value:r[t].channels}),Object.defineProperty(i[t],"labels",{value:r[t].labels});var e=o(t);Object.keys(e).forEach(function(n){var r=e[n];i[t][n]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var r=n.length,o=0;o<r;o++)n[o]=Math.round(n[o]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(r),i[t][n].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)})}),t.exports=i},function(t,e,n){var r=n(68);function o(t){var e=function(){for(var t={},e=Object.keys(r),n=e.length,o=0;o<n;o++)t[e[o]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;)for(var o=n.pop(),i=Object.keys(r[o]),a=i.length,c=0;c<a;c++){var u=i[c],s=e[u];-1===s.distance&&(s.distance=e[o].distance+1,s.parent=o,n.unshift(u))}return e}function i(t,e){return function(n){return e(t(n))}}function a(t,e){for(var n=[e[t].parent,t],o=r[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),o=i(r[e[a].parent][a],o),a=e[a].parent;return o.conversion=n,o}t.exports=function(t){for(var e=o(t),n={},r=Object.keys(e),i=r.length,c=0;c<i;c++){var u=r[c];null!==e[u].parent&&(n[u]=a(u,e))}return n}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},,,,,function(t,e,n){"use strict";n.r(e);var r=n(11),o=n.n(r),i=n(24),a=n.n(i),c=n(49),u=n(48),s=n(69),l=n(65),f=n(57),d=n(46),h=n(3);function p(t){return t}var m=Object(h.a)(p),b=n(66),g=n(28);function v(t,e,n){var r,o=typeof t;switch(o){case"string":case"number":return 0===t&&1/t==-1/0?!!n._items["-0"]||(e&&(n._items["-0"]=!0),!1):null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):o in n._items?t in n._items[o]||(e&&(n._items[o][t]=!0),!1):(e&&(n._items[o]={},n._items[o][t]=!0),!1);case"boolean":if(o in n._items){var i=t?1:0;return!!n._items[o][i]||(e&&(n._items[o][i]=!0),!1)}return e&&(n._items[o]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):o in n._items?!!Object(g.a)(t,n._items[o])||(e&&n._items[o].push(t),!1):(e&&(n._items[o]=[t]),!1);case"undefined":return!!n._items[o]||(e&&(n._items[o]=!0),!1);case"object":if(null===t)return!!n._items.null||(e&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(t))in n._items?!!Object(g.a)(t,n._items[o])||(e&&n._items[o].push(t),!1):(e&&(n._items[o]=[t]),!1)}}var y=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!v(t,!0,this)},t.prototype.has=function(t){return v(t,!1,this)},t}(),O=n(1),w=Object(O.a)(function(t,e){for(var n,r,o=new y,i=[],a=0;a<e.length;)n=t(r=e[a]),o.add(n)&&i.push(r),a+=1;return i})(m),E=n(77),j=(n(70),Object(l.a)(function(t,e){return t.appendChild(e),e})),T=Object(l.a)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=Object.keys(n||{}).map(function(t){return" ".concat(t,'="').concat(n[t],'"')}).join("");return"<".concat(t).concat(r,">").concat(e,"</").concat(t,">")}),_=Object(l.a)(function(t,e){return Object.keys(t).forEach(function(n){e.style[n]=t[n]}),e}),S=(Object(l.a)(function(t,e){(t||[]).forEach(function(t){e.style.removeProperty(t)})}),Object(f.a)(Object(d.a)(m),function(t){return t.className.split(" ")})),A=(Object(l.a)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;return e.className=Object(f.a)(Object(b.a)(" "),w,Object(E.a)(t),S)(e),e}),Object(l.a)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;return e.className=Object(f.a)(Object(b.a)(" "),Object(d.a)(function(e){return!~t.indexOf(e)}),S)(e),e}),Object(l.a)(function(t,e){return Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])}),e})),N=(Object(l.a)(function(t,e){new MutationObserver(e).observe(t,{childList:!0}),window.addEventListener("resize",e)}),function(t){var e=function(t){return"string"==typeof t?Object(s.a)(document.querySelectorAll(t)):t}(t),n=e.innerHTML;return{node:e,init:function(){e.innerHTML=""},reset:function(){e.innerHTML=n}}}),M=n(54),x=n(42),R=Object(f.a)(A({"min-width":"100%",seamless:"",scrolling:"no",frameborder:"0"}),_({height:"auto"}),function(t){return document.createElement(t)}),L=Object(x.a)("contentWindow"),I=Object(f.a)(Object(x.a)("document"),L),k=Object(l.a)(function(t,e){var n=function(){return A({width:t.offsetWidth},e)};return n(),window.addEventListener("load",n),window.addEventListener("resize",n),e}),P=Object(l.a)(function(t,e){return new Promise(function(n){var r=L(e),o=I(e);window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&(r.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__);o.open(),o.write("<!DOCTYPE html>"),o.write("<html>"),o.write('<head><meta charset="utf-8" /></head>'),o.write("<body>"),o.write(t),o.write("</body>"),o.close(),function t(){return"complete"===o.readyState?n(e):setTimeout(t,150)}()})}),C=Object(l.a)(function(t,e){return new Promise(function(t){return t(R("iframe"))}).then(j(t)).then(P(e))}),F=n(71),D=n(72),z=n.n(D),H=n(73),B=n.n(H),Y=n(74),U=n.n(Y),W=n(64),q=n(75),V=T("style",n.n(q).a.toString()),G=T("script","\n var loader = document.getElementById('loader')\n\n window.addEventListener('load', function() {\n setTimeout(function () {\n loader.className += ' done'\n }, 300)\n\n setTimeout(function () {\n loader.parentNode.removeChild(loader)\n }, 600)\n })\n"),$=function(t){return[V,(e=t,n=e.theme,r=Object(W.a)("#2B8AC6","main",n),o=U()(r).luminosity(),i=Object(W.a)(o<.25?"#fff":"#000","highlight",n),'<div class="loader" id="loader" style="background: '.concat(r,'">\n <div class="dot bounce1" style="background: ').concat(i,'"></div>\n <div class="dot bounce2" style="background: ').concat(i,'"></div>\n <div class="dot bounce3" style="background: ').concat(i,'"></div>\n </div>')),G].join("");var e,n,r,o,i},K=Object(l.a)(function(t,e){var n="Podlove Web Player".concat(Object(x.a)("title",t)?": "+Object(x.a)("title",t):"");return A({title:n,"aria-label":n,tabindex:0},e)}),X=function(){var t=a()(o.a.mark(function t(e,n){var r,i,a;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return"//cdn.podlove.org/web-player/",r=B()({base:"".concat("//cdn.podlove.org/web-player/").concat(u.a,"/"),styles:["styles"],scripts:["vendor","styles","runtime","player","bootstrap"],resizer:z.a,loader:$(e)}),t.next=4,C(n,r).then(_({"max-width":"768px","min-height":"230px",transition:"all 500ms"})).then(k(n)).then(_({"min-height":null}));case 4:return i=t.sent,K(e,i),Object(F.iframeResizer)({checkOrigin:!1,log:!1},i),a=Object(x.a)("PODLOVE_STORE",L(i)),t.abrupt("return",a);case 9:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}(),J=n(56),Q=n(41),Z=n(8),tt=Object(f.a)(s.a,Z.a,Object(d.a)(m),Object(W.a)({},"tabs")),et=function(t,e){var n=tt(t);n&&e.dispatch(Object(Q.a)(n))},nt=n(50),rt=n(55),ot=function(){var t=a()(o.a.mark(function t(e,n){var r,i,a,s,l=arguments;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=l.length>2&&void 0!==l[2]?l[2]:{},i=N(e),t.prev=2,i.init(),t.next=6,Object(M.a)(n,r);case 6:return a=t.sent,t.next=9,X(a,i.node);case 9:return(s=t.sent).dispatch(Object(c.a)(a)),Object(J.a)(a,s),et(a,s),Object(rt.a)(a,s),Object(nt.a)(s),t.abrupt("return",s);case 18:t.prev=18,t.t0=t.catch(2),i.reset(),console.group("Can't load Podlove Webplayer ".concat(u.a)),console.error("selector",e),console.error("config",n),console.error(t.t0),console.groupEnd();case 26:case"end":return t.stop()}},t,null,[[2,18]])}));return function(e,n){return t.apply(this,arguments)}}();void 0===window.podlovePlayer&&(window.podlovePlayer=ot)}]); + diff --git a/squelettes/modeles/importer.html b/squelettes/modeles/importer.html new file mode 100644 index 0000000..48be59b --- /dev/null +++ b/squelettes/modeles/importer.html @@ -0,0 +1,6 @@ +<BOUCLE_principale(RUBRIQUES) {id_rubrique}> +<div class="importons"> + <p>Importation vers : #TITRE</p> + #MES_IMPORT{#ID_RUBRIQUE,#ID_SECTEUR} +</div> +</BOUCLE_principale> diff --git a/squelettes/modeles/rubrique_importer.html b/squelettes/modeles/rubrique_importer.html new file mode 100644 index 0000000..5384a39 --- /dev/null +++ b/squelettes/modeles/rubrique_importer.html @@ -0,0 +1,6 @@ +<BOUCLE_principale(RUBRIQUES) {id_rubrique}> +<div class="importons"> + <p>Importation vers : #TITRE</p> + #MES_IMPORT{#ID_RUBRIQUE} +</div> +</BOUCLE_principale> diff --git a/squelettes/scss/styles/_perso.scss b/squelettes/scss/styles/_perso.scss index 61a6d82..ebafc90 100644 --- a/squelettes/scss/styles/_perso.scss +++ b/squelettes/scss/styles/_perso.scss @@ -149,9 +149,13 @@ } .article__texte, .article__chapo { margin-bottom:2rem; + font-weight:400; + strong, i, .btn { + font-size:115%; + } } } .formulaire_spip.formulaire_recherche { - max-width:100%; +/* max-width:100%; */ } }