From: Kilian Saffran Date: Sun, 13 Oct 2019 13:07:44 +0000 (+0200) Subject: new dksnas version X-Git-Url: http://cloud.dks.lu/git/?a=commitdiff_plain;h=1f593c7d69bf27f3a2ce391d4738c93fb3484dbf;p=dksnas.git new dksnas version --- diff --git a/.gitignore b/.gitignore index 2709666..5011be3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ -node_modules/* -.vscode/* +access.log +error.log +OLD/* +bin/tools/* +CGI/api/tools/* +data/* diff --git a/CGI/api/app.cgi b/CGI/api/app.cgi new file mode 100644 index 0000000..8dfde54 --- /dev/null +++ b/CGI/api/app.cgi @@ -0,0 +1,9 @@ +#!/Users/kilian/perl5/perlbrew/perls/perl-5.24.1/bin/perl +use strict; +use FindBin qw($Bin); +# use lib ('CGI/api/lib/perl5'); +# use lib ('CGI/api/lib'); +use lib ($Bin.'/CGI/api/lib/perl5'); +use lib ($Bin.'/CGI/api/lib'); +use CGI; +use CGI::Cookie; \ No newline at end of file diff --git a/CGI/api/audio.cgi b/CGI/api/audio.cgi new file mode 100644 index 0000000..4ee104e --- /dev/null +++ b/CGI/api/audio.cgi @@ -0,0 +1,81 @@ +#!/Users/kilian/perl5/perlbrew/perls/perl-5.24.1/bin/perl +use strict; +use FindBin qw($Bin); + +use CGI; +use CGI::Cookie; +use CGI::Carp qw/fatalsToBrowser/; +use File::Basename; +use Data::Dumper; +use File::Basename; +use JSON::PP; + + +use lib ($Bin.'/CGI/api/lib/perl5'); +use lib ($Bin.'/CGI/api/lib'); +use audio; + +my $cgi = new CGI(); +my $scriptpath = $cgi->url(-absolute => 1); +my $p = (); +my @params = $cgi->param(); +foreach my $pe (@params){ + $p->{$pe} = $cgi->param($pe); +} +my $cfg->{audiopath} = "D:/Music"; +my $html->{result} = (); +# $p->{sid} = $cgi->cookie($sitecfg->{cookiename}); +# my $se = session->new(); +# my $sess = $se->getsession($p->{sid}); +if ($p->{file}){ + $p->{file} = $cfg->{audiopath}.'/'.$p->{file}; +} +if (exists($p->{fn})){ + my $au = audio->new(); + if ($p->{fn} eq "info"){ + #$html->{test} = "1"; + $html->{result} = $au->info($p); + + }elsif ($p->{fn} eq "convert"){ + if (exists($p->{input})){ + $p->{input} = $cfg->{audiopath}.'/new/'.$p->{input}; + } else { + + } + $p->{id3} = ""; + foreach my $px (keys(%{$p})){ + if ($px =~ /^id3_/){ + $p->{id3} .= substr($px,4).'='.$p->{$px}.";"; + } + } + if ($p->{id3} eq ""){ + my $pxx->{file} = $p->{input}; + my $xx = $au->info($pxx); + foreach my $ta (keys(%{$xx->{tag}})){ + if ($xx->{tag}->{$ta} ne ""){ + $p->{id3} .= $ta.'='.$xx->{tag}->{$ta}.";"; + } + } + } + $p->{outpath} = $cfg->{audiopath}.'/converted/'.$p->{outpath}; + $html->{params} = $p; + $html->{result} = $au->convert($p); + + }elsif ($p->{fn} eq "webinfo"){ + $html->{result} = $au->getwebinfo($p); + }elsif ($p->{fn} eq "help"){ + my @helpers = ("?fn=info&input=", + "?fn=convert&file=&gain=<-12 to 12>&outpath=&cutsilence=<0|1>&samplerate=<44100>&bitrate=<64,128,...>&type=&id3_titl=&id3_artist=<artist>", + "?fn=webinfo&title=<title>&artist=<artist>"); + $html->{result} = \@helpers + + } +} +print $cgi->header(-type=> 'application/json', -charset=>"UTF-8"); +my $js = JSON::PP->new(); +$js->allow_blessed(1); +$js->convert_blessed(1); +print $js->utf8->encode($html); + + + diff --git a/CGI/api/db.cgi b/CGI/api/db.cgi new file mode 100644 index 0000000..e65e0b2 --- /dev/null +++ b/CGI/api/db.cgi @@ -0,0 +1,126 @@ +#!/Users/kilian/perl5/perlbrew/perls/perl-5.24.1/bin/perl +use strict; +use FindBin qw($Bin); +# use lib ('CGI/api/lib/perl5'); +# use lib ('CGI/api/lib'); +use lib ($Bin.'/CGI/api/lib/perl5'); +use lib ($Bin.'/CGI/api/lib'); +use CGI; +use CGI::Cookie; +# use CGI::Carp qw/fatalsToBrowser/; +use File::Basename; +use JSON::PP; +use UUID::Tiny ':std'; +use dksconfig qw/$sitecfg/; +use dksdb; + +# use session; +#use sendemail; +my $cgi = new CGI(); +my $scriptpath = $cgi->url(-absolute => 1); +my $p = (); +my @params = $cgi->param(); +foreach my $pe (@params){ + $p->{$pe} = $cgi->param($pe); +} +my $html->{result} = (); +# $p->{sid} = $cgi->cookie($sitecfg->{cookiename}); +# my $se = session->new(); +# my $sess = $se->getsession($p->{sid}); +print $cgi->header(-type=>"application/json", -charset => "utf-8"); +my $dbredirect = {}; +if ($sitecfg->{dbtype} eq "SQLite"){ + if (exists($p->{db})){ + $dbredirect->{dsn} = "DBI:SQLite:dbname=".$sitecfg->{datapath}.'/'.$p->{db}.'.sqlite'; + } +} +$html->{conn} = $dbredirect; +# if ($sess == undef){ +# $html->{error} = "No Authorisation"; +# print JSON::PP::encode_json($html); +# exit(0); +# } +# $html->{p} = $p; +# $html->{sess} =$sess; +#my $datapath = $ENV{"DOCUMENT_ROOT"}.dirname(dirname($scriptpath)).'/data/'; +if (($cgi->request_method() eq "GET") || ($cgi->request_method() eq "POST")){ + + # my @params = $cgi->param(); + # foreach my $pp (@params){ + # $p->{$pp} = $cgi->param($pp); + # } + my $db = dksdb->new($dbredirect); + if (exists($p->{get})){ + my $sql = "select * from vw_".$p->{get}; + if (exists($p->{fields}) ){ + $sql = "select ".$p->{fields}." from vw_".$p->{get}; + } + if (exists($p->{filter})){ + $sql .= " WHERE ".$p->{filter}.";"; + } + $html->{result}->{sqldata} = $db->query($sql); + } + elsif (exists($p->{set})){ + my $type = "ins"; + foreach my $x (keys(%{$p})){ + if ($x =~ /^ident_/ ){ + if ($p->{$x} ne ""){ + $type = "upd"; + } else { + my $uuid = create_uuid(UUID_TIME); + my $uuid_str=uuid_to_string($uuid); + $p->{$x} = $uuid_str; + } + + } + } + + my $x = $p; + delete $x->{sid}; + delete $x->{set}; + my @sql = (); + + if ($type eq "ins"){ + + @sql = $db->create_ddl_insert($x); + }else { + @sql = $db->create_ddl_update($x); + } + if (scalar(@sql) > 0 ){ + my $rid = $db->query($sql[0]); + if (keys(%{$rid}) > 0 ){ + $html->{result} = $rid->{0}; + } + } + } + elsif (exists($p->{del})){ + my $x = $p; + delete $x->{sid}; + delete $x->{del}; + my @sql = $db->create_ddl_delete($x); + if (scalar(@sql) > 0 ){ + my $rid = $db->exec($sql[0]); + if (keys(%{$rid}) > 0 ){ + $html->{result} = $rid->{0}; + } + } + } + elsif (exists($p->{sql})){ + if (exists($p->{key})){ + $html->{result} = $db->querybykey($p->{key},$p->{sql}); + } + elsif ((uc($p->{sql}) =~ /^[INSERT|UPDATE|DELETE]/) && (!$p->{return})) { + $html->{result} = $db->exec($p->{sql}); + } + else { + $html->{result} = $db->query($p->{sql}); + } + } + elsif (exists($p->{ddl})){ + $html->{result} = $db->exec($p->{sql}); + } +} +print JSON::PP::encode_json($html); +# for my $e ( keys %ENV ) { +# print "$e: $ENV{$e}<br/>"; +# } \ No newline at end of file diff --git a/CGI/api/lib/audio.pm b/CGI/api/lib/audio.pm new file mode 100644 index 0000000..b61a8bd --- /dev/null +++ b/CGI/api/lib/audio.pm @@ -0,0 +1,818 @@ +package audio; + +use strict; +use File::Basename; +use File::Path qw(make_path); +use Ogg::Vorbis::Header::PurePerl; +use MP3::Info; +use MP4::Info; +use Audio::FLAC::Header; +use Text::Unidecode; +use XML::Simple; +use LWP::Simple qw(getstore); +use LWP::UserAgent; + + +sub new { + my $class = shift; + my $param = shift; + my $self = bless {}, $class; + #if ($^O eq "MSWin32") { + $self->{binpath} = dirname($0).'/tools'; + $self->{gracenote}->{clientid} = "12135680-F83BAC36E126A57612907550113A9FF9"; + $self->{gracenote}->{url} = 'https://c12135680.web.cddbp.net/webapi/xml/1.0/'; + #} + +# foreach my $p (keys %{$param}){ +# $self->{$p} = $param->{$p}; +# } + return $self; +} + +sub info() { + my $self = shift; + my $req = shift; + my $html = (); + my $audiofile = $req->{file}; + my ($info,$tagdata) = $self->getaudioinfo($audiofile); + $html->{info} = $info; + $html->{tag}= $tagdata; + $html->{file} = $audiofile; + $html->{binpath} = $self->{binpath}; + return $html; +} + +sub getwebinfo() { + my $self = shift; + my $req = shift; + my $html = (); + ; + my $title = $req->{title}; + my $artist = $req->{artist}; + print "Search: ".$artist." - ".$title."\n"; + $self->get_server_cfg(); + if ((!exists($self->{gracenote}->{userid})) || ($self->{gracenote}->{userid} eq "")){ + $self->{gracenote}->{userid} = $self->gracenote_register(); + if (defined($self->{gracenote}->{userid})){ + #$self->write_server_cfg(); + } + } + my $data = $self->gracenote_query($artist,$title); + $html = $data; + return $html; + +} + +sub convert() { + my $self = shift; + my $req = shift; + my $html = (); + + my $i = $req->{input}; #i=input file + my $o = $req->{outpath}; #o=output path + my $id3 = $req->{id3}; #id3='title=...;artist=...;genre=...;comment=...;album=...,track=...' + my $t = $req->{type}; #t=outputtype (ogg,mp3,m4a,acc,flac) + my $g = $req->{gain}; #g=gain (-12.0 - 12.0) + my $b = $req->{bitrate}; #b=bitrate + my $r = $req->{samplerate}; #r=samplarate + my $s = $req->{cutsilence}; #s=cut silence 0|1 + $html->{params}->{input} = $i; + $html->{params}->{outpath} = $o; + $html->{params}->{id3} = $id3; + $html->{params}->{type} = $t; + $html->{params}->{gain} = $g; + $html->{params}->{bitrate} = $b; + $html->{params}->{samplerate} = $r; + $html->{params}->{cutsilence} = $s; + my $outfile = ""; + my $bitratetouse = undef; + my $sampleratetouse = undef; + $i =~ s/\/+/\\/g; + $o =~ s/\/+/\\/g; + if (! -f $i ) { + $html->{error} = "Input-file '$i' NOT found!"; + } else { + + my ($info,$tagdata) = $self->getaudioinfo($i); + if ($o eq ""){ + $o = dirname($i); + } + if (! -d ($o)){ + + make_path($o); + } + + my $wav = $self->createwavefile($i,$o); + + if ((-e $wav) && ($s == 1)) { $wav = $self->cutsilences($wav);} + if ((-e $wav) && ($g ne "")) {$wav = $self->setgain($wav,$g);} + if (-e $wav) { + + $bitratetouse = $info->{bitrate}; + $sampleratetouse=$info->{samplerate}; + if (defined($b)){$bitratetouse = $b;} + if (defined($r)){$sampleratetouse=$r;} + + } + if ($id3 ne "") { + my @spl = split(";",$id3); + $tagdata = (); + foreach my $x (@spl){ + #print $x; + my ($k,$v) = $x =~ m/^(\w+)=(.+)$/; + $tagdata->{$k} = $v; + } + + #$tagdata = JSON::PP::decode_json($id3); + # print "tags set:\n"; + # print Dumper($tagdata); + } + $html->{tag} = $tagdata; + $html->{wav} = $wav; + $html->{samplerate} = $sampleratetouse; + $html->{bitrate} = $bitratetouse; + if ($t eq "ogg") { $outfile = $self->createoggfile($wav,$tagdata,$sampleratetouse,$bitratetouse); + } elsif ($t eq "mp3"){ $outfile = $self->createmp3file($wav,$tagdata,$sampleratetouse,$bitratetouse); + } elsif ($t eq "flac"){ $outfile = $self->createflacfile($wav,$tagdata,$sampleratetouse); + } elsif ($t eq "aac"){ $outfile = $self->createaacfile($wav,$tagdata,$sampleratetouse,$bitratetouse); + } elsif ($t eq "m4a"){ $outfile = $self->createm4afile($wav,$tagdata); + } + if (-e $outfile){ + $html->{convertfile} = $outfile; + } + } + return $html; +} + +sub gracenote_register(){ + my $self = shift; + my $reg = '<QUERIES> +<QUERY CMD="REGISTER"> +<CLIENT>'.$self->{gracenote}->{clientid}.'</CLIENT> +</QUERY> +</QUERIES>'; + my $xcontent = $self->gracenote_request( $self->{gracenote}->{url}, $reg); + + + my $xml = XMLin($xcontent,'ForceContent' => 1); + my $ret_val= ""; + if (exists($xml->{RESPONSE}->{USER})) { + $ret_val = $xml->{RESPONSE}->{USER}->{content}; + } + + return $ret_val; +} + +sub gracenote_request(){ + my $self = shift; + my $url = shift; + my $data = shift; + + my $request = HTTP::Request->new( POST => $url ); + $request->content($data); + $request->header( 'Content-type' => 'text/xml' ); + #return $request if $params->{'return_request'}; + my $ua = LWP::UserAgent->new; + $ua->agent("Coloradio GraceNote Client 20190810"); + $ua->timeout(20); + # Execute the request + my $response = $ua->request($request); + if ($response->is_success) { + #print "\n---\n".$response->content."\n---\n"; + return $response->content; + } + + #else { + # print $response->status_line; + #} + return '<DATA><ERROR></ERROR></DATA>'; +} + +sub gracenote_query() { + my $self = shift; + my $artist = shift; + my $title = shift; + $artist =~ s/&/&/g; + $artist =~ s/\'//g; + $title =~ s/\'//g; + my $qb = '<QUERIES> +<AUTH> +<CLIENT>'.$self->{gracenote}->{clientid}.'</CLIENT> +<USER>'.$self->{gracenote}->{userid}.'</USER> +</AUTH> +<QUERY CMD="ALBUM_SEARCH"> +<MODE>SINGLE_BEST_COVER</MODE> +'.(($artist ne "")?'<TEXT TYPE="ARTIST">'.$artist.'</TEXT>':"").' +'.(($title ne "")?'<TEXT TYPE="TRACK_TITLE">'.$title.'</TEXT>':"").' +<OPTION> +<PARAMETER>SELECT_EXTENDED</PARAMETER> +<VALUE>COVER,REVIEW,ARTIST_BIOGRAPHY,ARTIST_IMAGE,ARTIST_OET,MOOD,TEMPO</VALUE> +</OPTION> +<OPTION> +<PARAMETER>SELECT_DETAIL</PARAMETER> +<VALUE>GENRE:3LEVEL,MOOD:2LEVEL,TEMPO:3LEVEL,ARTIST_ORIGIN:4LEVEL,ARTIST_ERA:2LEVEL,ARTIST_TYPE:2LEVEL</VALUE> +</OPTION> +<OPTION> +<PARAMETER>COVER_SIZE</PARAMETER> +<VALUE>MEDIUM</VALUE> +</OPTION> +</QUERY> +</QUERIES>'; +my $data->{image}->{url} = ""; + $data->{image}->{filetype} = ""; + $data->{image}->{data} = ""; + $data->{year} = ""; + $data->{title} = $title; + $data->{artist} = $artist; + $data->{mood} = (); + $data->{tempo} = (); + $data->{genre} = (); + + my $xcontent = $self->gracenote_request( $self->{gracenote}->{url}, $qb); + if (!defined($xcontent)) { + return $data; + } + + +my $xml = XMLin($xcontent,'ForceContent' => 1); +#print Dumper($xml->{RESPONSE}->{ALBUM}); + +if ($xml->{RESPONSE}->{STATUS} eq "OK") { + #print Dumper($xml->{RESPONSE}->{ALBUM}); + #if (ref($xml->{RESPONSE}->{ALBUM}->{TRACK}) eq 'ARRAY') { + # #$self->query($artist,) + # print Dumper($xml->{RESPONSE}->{ALBUM}); + # print "multi track response\n"; + # return; + #} + + if (exists($xml->{RESPONSE}->{ALBUM}->{URL})){ + my $url = $xml->{RESPONSE}->{ALBUM}->{URL}; + if (ref($url) eq 'ARRAY') { + foreach my $u (@$url){ + if ($u->{TYPE} eq "ARTIST_IMAGE") { + $data->{image}->{url} = $u->{content}; + } + } + }else { + if ($url->{TYPE} eq "ARTIST_IMAGE") { + $data->{image}->{url} = $url->{content}; + } + } + } + if (exists($xml->{RESPONSE}->{ALBUM}->{DATE})){ + $data->{year} = $xml->{RESPONSE}->{ALBUM}->{DATE}->{content}; + } + #if (exists($xml->{RESPONSE}->{ALBUM}->{ARTIST})){ + # $data->{artist} = $xml->{RESPONSE}->{ALBUM}->{ARTIST}->{content}; + #} + #print Dumper($xml->{RESPONSE}->{ALBUM}->{TRACK}->{TITLE}); + #if (exists($xml->{RESPONSE}->{ALBUM}->{TRACK}->{TITLE})){ + # $data->{title}= $xml->{RESPONSE}->{ALBUM}->{TRACK}->{TITLE}->{content}; + #} + if (exists($xml->{RESPONSE}->{ALBUM}->{TRACK}->{TEMPO})){ + my $dd = $xml->{RESPONSE}->{ALBUM}->{TRACK}->{TEMPO}; + my @newa = (); + if (ref($dd) eq 'ARRAY') { + foreach my $d (@$dd){ + push(@newa,$d->{content}); + } + }else { + push(@newa,$dd->{content}); + } + $data->{tempo} = \@newa; + + } + if (exists($xml->{RESPONSE}->{ALBUM}->{TRACK}->{MOOD})){ + my $dd = $xml->{RESPONSE}->{ALBUM}->{TRACK}->{MOOD}; + my @newa = (); + if (ref($dd) eq 'ARRAY') { + foreach my $d (@$dd){ + push(@newa,$d->{content}); + } + }else { + push(@newa,$dd->{content}); + } + $data->{mood} = \@newa; + } + if (exists($xml->{RESPONSE}->{ALBUM}->{GENRE})){ + my $dd = $xml->{RESPONSE}->{ALBUM}->{GENRE}; + my @newa = (); + if (ref($dd) eq 'ARRAY') { + foreach my $d (@$dd){ + push(@newa,$d->{content}); + } + }else { + push(@newa,$dd->{content}); + } + $data->{genre} = \@newa; + } +} +else { + #print 'ERROR->'.$artist.'->'.$title."\n"; + $data->{error} = 'ERROR'; +} + return $data; +} + +# sub write_server_cfg(){ +# my $self = shift; +# open(CFG,$self->{cfgpath}); +# my $strgcfg = ""; +# while (my $l = <CFG>){ +# chomp($l); +# $strgcfg .= $l; +# } +# close(CFG); +# my $gcfg = JSON::PP::decode_json($strgcfg); +# $gcfg->{audio}->{gracenote} = $self->{gracenote}; +# open(CFG,">".$self->{cfgpath}); +# print CFG JSON::PP::encode_json($gcfg); +# close(CFG); +# } + +# sub get_server_cfg(){ +# my $self = shift; +# open(CFG,$self->{cfgpath}); +# my $strgcfg = ""; +# while (my $l = <CFG>){ +# chomp($l); +# $strgcfg .= $l; +# } +# close(CFG); +# my $gcfg = JSON::PP::decode_json($strgcfg); +# foreach my $g (keys(%{$gcfg->{audio}->{gracenote}})){ +# $self->{gracenote}->{$g} = $gcfg->{audio}->{gracenote}->{$g}; +# } +# } + +sub getaudioinfo(){ + my $self = shift; + my $audiofile = shift; + my $tmp = rindex($audiofile,'.'); + my $sfx = lc(substr($audiofile,rindex($audiofile,'.')+1)); + my $tagdata = (); + my $info = (); + my $ftype=""; + if (lc($sfx) eq 'ogg'){ + #print "get ogginfo from ".$oggin."<br/>"; + $info->{filetype}="audio/ogg"; + my $oggx = Ogg::Vorbis::Header::PurePerl->new($audiofile); + if (defined($oggx)) { + my $inf = $oggx->info(); + for my $i (keys (%{$inf})){ + if ($i eq 'rate') { + $info->{samplerate} = int($inf->{$i}); + } + if ($i eq 'length') { + $info->{duration} = int($inf->{$i}); + } + if ($i eq 'bitrate_average') { + $info->{bitrate} = int($inf->{$i} / 1000); + } + } + foreach my $com ($oggx->comment_tags) { + foreach my $cc ($oggx->comment($com)){ + if (lc($com) eq 'title') { + $tagdata->{'title'} = $cc; + } + if (lc($com) eq 'album') { $tagdata->{'album'} = $cc;} + if (lc($com) eq 'artist') { + $tagdata->{'artist'} = $cc; + } + if (lc($com) eq 'year') { $tagdata->{'year'} = $cc;} + if (lc($com) eq 'genre'){ $tagdata->{'genre'} = $cc;} + if (lc($com) eq "date") { $tagdata->{'year'} = substr($cc,0,4); } + } + } + } + } + if (lc($sfx) eq 'mp3'){ + $info->{filetype}="audio/mpeg"; + my $tag = MP3::Info::get_mp3tag($audiofile); + if (defined($tag)) { + foreach my $t (keys(%{$tag})){ + if ((lc($t) eq 'title') || + (lc($t) eq 'album') || + (lc($t) eq 'artist') || + (lc($t) eq 'year') || + (lc($t) eq 'genre') + ){ + $tagdata->{lc($t)} = $tag->{$t}; + } + } + } + my $inf = MP3::Info::get_mp3info($audiofile); + if (defined($inf)) { + for my $i (keys(%{$inf})){ + if (lc($i) eq 'bitrate') { + $info->{bitrate} = int($inf->{$i}); + } + if (lc($i) eq 'frequency') { + $info->{samplerate} = int($inf->{$i} * 1000); + } + if (lc($i) eq 'secs') { + $info->{duration} = int($inf->{$i}) + } + } + } + } + if (lc($sfx) eq 'm4a'){ + $info->{filetype}="audio/mp4"; + my $tag = MP4::Info::get_mp4tag($audiofile); + if (defined($tag)) { + foreach my $t (keys(%{$tag})){ + if (lc($t) eq 'alb') { $tagdata->{album} = $tag->{$t}; } + if (lc($t) eq 'nam') { $tagdata->{title} = $tag->{$t}; } + if (lc($t) eq 'art') { $tagdata->{artist} = $tag->{$t}; } + if (lc($t) eq 'day') { $tagdata->{year} = $tag->{$t}; } + if (lc($t) eq 'gnre') { $tagdata->{genre} = $tag->{$t}; } + } + } + my $inf = MP4::Info::get_mp4info($audiofile); + if (defined($inf)) { + $info->{bitrate} = $inf->{BITRATE}; + $info->{samplerate} = int($inf->{FREQUENCY} * 1000); + $info->{duration} = $inf->{SECS}; + } + } + if (lc($sfx) eq 'flac'){ + $info->{filetype}="audio/flac"; + my $flac = Audio::FLAC::Header->new($audiofile); + my $tag = $flac->tags(); + if (defined($tag)) { + foreach my $t (keys(%{$tag})){ + if ((lc($t) eq 'title') || + (lc($t) eq 'album') || + (lc($t) eq 'artist') || + (lc($t) eq 'genre') + ){ + $tagdata->{lc($t)} = $tag->{$t}; + } + if (lc($t) eq 'date') { + $tagdata->{year} = substr($tag->{$t},0,4); + } + + } + } + my $inf = $flac->info(); + if (defined($inf)){ + $info->{duration} = int($flac->{trackTotalLengthSeconds}); + $info->{bitrate} = int($flac->{bitRate}); + $info->{samplerate} = int($inf->{SAMPLERATE}); + } + } + return ($info,$tagdata); +} + +sub createwavefile(){ + my $self = shift; + my $in = shift; + my $outpath = shift; + my $fname = basename($in); + $fname = substr($fname,0,rindex($fname,'.')).'.wav'; + #print "Create WAV: from:".$in." to: ".$outpath."\n\n\n"; + if (! -d $outpath){ + make_path($outpath); + } + if (($outpath !~ /\/$/) && ($outpath !~ /\\$/)){ + $outpath = $outpath."/"; + } + $in =~ s/\\\\/\\/g; + if (-e $outpath.$fname) { + unlink($outpath.$fname); + } + my $st = undef; + my $cmd = ""; + my $dec = ""; + if (lc($in) =~ /\.ogg$/) { + $dec = $self->{binpath}.'/oggdec'; + } elsif (lc($in) =~ /\.mp3$/){ + $dec = $self->{binpath}.'/lame'; + } elsif ((lc($in) =~ /\.m4a/) || (lc($fname) =~ /\.aac/)) { + $dec = $self->{binpath}.'/faad'; + } elsif (lc($in) =~ /\.flac/){ + $dec = $self->{binpath}.'/flac'; + } else { + $dec = $self->{binpath}.'/ffmpeg'; + } + if ($^O eq "MSWin32"){ + $dec = $dec.".exe"; + $dec =~ s/\/+/\\/g; + } + $dec = '"'.$dec.'"'; + if (lc($in) =~ /\.ogg$/) { + $cmd = $dec.' -w "'.$outpath.$fname.'" "'.$in.'"'; + }elsif (lc($in) =~ /\.mp3$/){ + $cmd = $dec.' --silent --decode "'.$in.'" "'.$outpath.$fname.'"'; + }elsif ((lc($in) =~ /\.m4a/) || (lc($fname) =~ /\.aac/)){ + $cmd = $dec.' -o "'.$outpath.$fname.'" "'.$in.'"'; + }elsif (lc($in) =~ /\.flac/){ + $cmd = $dec.' -d -o "'.$outpath.$fname.'" -F "'.$in.'"'; + } else { + $cmd = $dec.' -i "'.$in.'" "'.$outpath.$fname.'"'; + } + #print "$cmd\n"; + if ($cmd ne "") { + $st = system($cmd); + if ($st > 0){ + return ""; + } + } + my $ret = $outpath.'/'.$fname; + if ($^O eq "MSWin32") { + $ret =~ s/\/+/\\/g; + } + return $ret; +} + +sub cutsilences(){ + my $self = shift; + my $wav = shift; + my $nwav = substr($wav,0,-4); + my $sox = $self->{binpath}.'/sox'; + if ($^O eq "MSWin32"){ + $sox = $sox.".exe"; + $sox =~ s/\/+/\\/g; + } + #print "Cut silences\n"; + $sox = '"'.$sox.'"'; + ##Win32::SetChildShowWindow(0); + system($sox.' "'.$wav.'" "'.$nwav.'.sox0.wav" silence 1 0 -40d'); + #### Reverse file to trim the end + #Win32::SetChildShowWindow(0); + system($sox.' "'.$nwav.'.sox0.wav" "'.$nwav.'.sox1.wav" reverse' ); + #### Trim the end + #Win32::SetChildShowWindow(0); + system($sox.' "'.$nwav.'.sox1.wav" "'.$nwav.'.sox0.wav" silence 1 0 -40d' ); + #### Reverse back to original direction + #Win32::SetChildShowWindow(0); + system($sox.' "'.$nwav.'.sox0.wav" "'.$wav.'" reverse'); + unlink($nwav.'.sox0.wav'); + unlink($nwav.'.sox1.wav'); + return $wav; +} + +sub setgain(){ + my $self = shift; + my $wavfile = shift; + my $gain = shift; + my $cwd = dirname($wavfile); + my $wavegain = $self->{binpath}.'/wavegain'; + if ($^O eq "MSWin32"){ + $wavegain = $wavegain.".exe"; + $wavegain =~ s/\/+/\\/g; + } + $wavegain = '"'.$wavegain.'"'; + #print "Set Gain: ".$gain."\n"; + #if ($^O eq "MSWin32") + my $cmd = $wavegain.' -g '.$gain.'.0 -a -y "'.$wavfile.'" -l -f "'.$ENV{TMP}.'/wavegain.log"'; + #Win32::SetChildShowWindow(0); + my $st = system($cmd); + #print $st."\n"; + #open(NORM,"$cmd 2>&1 |") or die "cannot execute $cmd"; + #while (my $l =<NORM>){ + # $l =~ s/\r//g; + # $l =~ s/\n/<br\/>/g; + # #print $l; + ## print ""; + #} + #close(NORM); + return $wavfile; +} + +sub createoggfile(){ + my $self = shift; + my $wavin = shift; + my $tags = shift; + my $samplerate = shift; + my $bitrate = shift; + my $oggenc = $self->{binpath}.'/oggenc2'; + if ($^O eq "MSWin32"){ + $oggenc = $oggenc.".exe"; + $oggenc =~ s/\/+/\\/g; + } + $oggenc = '"'.$oggenc.'"'; +my $q = ""; + #print "Crate OGG file from: $wavin\n"; + if ($bitrate ne ""){ + $q = "-b ".$bitrate; + } + my @tagdata = ""; + if (exists($tags->{title})) { + push @tagdata ,'-t "'.$tags->{title}.'"'; + } + if (exists($tags->{artist})){ + push @tagdata ,'-a "'.$tags->{artist}.'"'; + } + if (exists($tags->{album})){ + push @tagdata ,'-l "'.$tags->{album}.'"'; + } + if (exists($tags->{genre})){ + push @tagdata ,'-G "'.$tags->{genre}.'"'; + } + if (exists($tags->{year})){ + push @tagdata ,'-d "'.$tags->{year}.'"'; + } + my $oggout = substr($wavin,0,-3).'ogg'; + if (-e $oggout) { + unlink($oggout); + } + + #print '/usr/local/bin/oggenc -b '.$bitrate.' -o "'.$oggout.'" -t "'.$t.'" -a "'.$a.'" "'.$wavin.'"'; + #Win32::SetChildShowWindow(0); + #print "CMD:".$oggenc.' -Q '.$q.' --resample '.$samplerate.' -o "'.$oggout.'" '.join(' ',@tagdata).' "'.$wavin.'"'."\n"; + my $st = system($oggenc.' -Q '.$q.' --resample '.$samplerate.' -o "'.$oggout.'" '.join(' ',@tagdata).' "'.$wavin.'"'); + + if ($st > 0){ + print "cannot create $oggout"; + return ""; + } + unlink($wavin); + return $oggout; +} + +sub createmp3file(){ + my $self = shift; + my $wavin = shift; + my $tags = shift; + my $samplerate = shift; + my $bitrate = shift; + my $q = ""; + my $mp3enc = $self->{binpath}.'/lame'; + if ($^O eq "MSWin32"){ + $mp3enc = $mp3enc.".exe"; + $mp3enc =~ s/\/+/\\/g; + } + $mp3enc = '"'.$mp3enc.'"'; + #print "Crate MP3 file from: $wavin\n"; +# if ($quality ne "") { +# $q = "-V ".$quality." -Y "; +# }els + if ($bitrate ne ""){ + $q = "-b ".$bitrate; + } + my @tagdata = ""; + if (exists($tags->{title})) { + push @tagdata ,'--tt "'.$tags->{title}.'"'; + } + if (exists($tags->{artist})){ + push @tagdata ,'--ta "'.$tags->{artist}.'"'; + } + if (exists($tags->{album})){ + push @tagdata ,'--tl "'.$tags->{album}.'"'; + } + if (exists($tags->{genre})){ + push @tagdata ,'--tg '.$tags->{genre}.'"'; + } + if (exists($tags->{year})){ + push @tagdata ,'--ty "'.$tags->{year}.'"'; + } + my $mp3out = substr($wavin,0,-3).'mp3'; + $mp3out =~ s/\\+/\\/g; + $mp3out =~ s/\/+/\\/g; + #print '/usr/local/bin/oggenc -b '.$bitrate.' -o "'.$oggout.'" -t "'.$t.'" -a "'.$a.'" "'.$wavin.'"'; + #print '"'.$self->{binpath}.'lame.exe" '.$q.' -h -Y --add-id3v2 --id3v2-only -t -s '.$samplerate.' -tt "'.$t.'" -ta "'.$a.'" "'.$wavin.'" "'.$mp3out.'"'."\n"; + my $cmd = $mp3enc.' '.$q.' -h --quiet --add-id3v2 --id3v2-only -t -s '.$samplerate.' '.join(' ',@tagdata).' "'.$wavin.'" "'.$mp3out.'"'; + #print $cmd."\n"; + #Win32::SetChildShowWindow(0); + my $st = system($cmd); + + if ($st > 0){ + #print "cannot create $mp3out"; + return ""; + } + unlink($wavin); + return $mp3out; +} + +sub createflacfile(){ + my $self = shift; + my $wavin = shift; + my $tags = shift; + my $samplerate = shift; + #print "Crate FLAC file from: $wavin\n"; + my @tagdata = ""; + my $flacenc = $self->{binpath}.'/flac'; + if ($^O eq "MSWin32"){ + $flacenc = $flacenc.".exe"; + $flacenc =~ s/\/+/\\/g; + } + $flacenc = '"'.$flacenc.'"'; + + if (exists($tags->{title})) { + push @tagdata ,'-T TITLE="'.$tags->{title}.'"'; + } + if (exists($tags->{artist})){ + push @tagdata ,'-T ARTIST="'.$tags->{artist}.'"'; + } + if (exists($tags->{album})){ + push @tagdata ,'-T ALBUM="'.$tags->{album}.'"'; + } + if (exists($tags->{genre})){ + push @tagdata ,'-T GENRE="'.$tags->{genre}.'"'; + } + if (exists($tags->{year})){ + push @tagdata ,'-T YEAR="'.$tags->{year}.'"'; + } + my $flacout = substr($wavin,0,-3).'flac'; + if (-e $flacout) { + unlink($flacout); + } + my $cmd = $flacenc.'" -s -o "'.$flacout.'" '.join(' ',@tagdata).' "'.$wavin.'"'; + #print $cmd."\n"; + #Win32::SetChildShowWindow(0); + my $st = system($cmd); + if ($st > 0){ + #print "cannot create $flacout"; + return ""; + } + unlink($wavin); + return $flacout; +} + +sub createaacfile(){ + my $self = shift; + my $wavin = shift; + my $tags = shift; + my $samplerate = shift; + my $bitrate = shift; + # my $quality= shift; + my $q = ""; + my $aacenc = $self->{binpath}.'/faac'; + if ($^O eq "MSWin32"){ + $aacenc = $aacenc.".exe"; + $aacenc =~ s/\/+/\\/g; + } + $aacenc = '"'.$aacenc.'"'; + #print "Crate AAC file from: $wavin\n"; +# if ($quality ne "") { +# $q = "-q ".$quality; +# }els + if ($bitrate ne ""){ + $q = "-b ".$bitrate; + } + my $aacout = substr($wavin,0,-3).'aac'; + if (-e $aacout) { + unlink($aacout); + } + my $cmd = $aacenc.' '.$q.' -c '.$samplerate.' -o "'.$aacout.'" "'.$wavin.'"'; + #print $cmd."\n"; + #Win32::SetChildShowWindow(0); + my $st = system($cmd); + if ($st > 0){ + #print "cannot create $aacout"; + return ""; + } + unlink($wavin); + return $aacout; +} + +sub createm4afile(){ + my $self = shift; + my $wavin = shift; + my $tags = shift; + my @tagdata = ""; + my $aacenc = $self->{binpath}.'/faac'; + if ($^O eq "MSWin32"){ + $aacenc = $aacenc.".exe"; + $aacenc =~ s/\/+/\\/g; + } + $aacenc = '"'.$aacenc.'"'; + #print "Create M4A file from: $wavin\n"; + if (exists($tags->{title})) { + push @tagdata ,'--title "'.$tags->{title}.'"'; + } + if (exists($tags->{artist})){ + push @tagdata ,'--artist "'.$tags->{artist}.'"'; + } + if (exists($tags->{album})){ + push @tagdata ,'--album "'.$tags->{album}.'"'; + } + if (exists($tags->{genre})){ + push @tagdata ,'--genre "'.$tags->{genre}.'"'; + } + if (exists($tags->{year})){ + push @tagdata ,'--year "'.$tags->{year}.'"'; + } + my $aacout = substr($wavin,0,-3).'m4a'; + if (-e $aacout) { + unlink($aacout); + } + + my $cmd = $aacenc.' -q 100 '.join(' ',@tagdata).' -o "'.$aacout.'" "'.$wavin.'"'; + #print $cmd."\n"; + #Win32::SetChildShowWindow(0); + my $st = system($cmd); + if ($st > 0){ + #print "M4A: cannot create $aacout"; + return ""; + } + unlink($wavin); + return $aacout; +} + +1; + + +1; diff --git a/CGI/api/lib/dksconfig.pm b/CGI/api/lib/dksconfig.pm new file mode 100644 index 0000000..4ea8b6d --- /dev/null +++ b/CGI/api/lib/dksconfig.pm @@ -0,0 +1,44 @@ +package dksconfig; + +use strict; +# use lib ('./lib/perl5'); +# use lib ('./lib'); +# use lib ('./'); +use File::Basename; +use Exporter 'import'; +our @EXPORT_OK = qw($sitecfg); +my $cfgpath='dks'; +if ($^O eq "MSWin32"){ + $cfgpath = $ENV{APPDATA}.'/dks'; +} elsif ($^O eq "darwin"){ + $cfgpath = $ENV{HOME}.'/Library/Application Support/dks'; +} else { + $cfgpath = $ENV{HOME}.'/.dks'; +} +$cfgpath =~ s/\\/\//g; +our $sitecfg ={ + #cookiename => undef, + datapath => $cfgpath, + dbtype => 'SQLite', #'PgPP' or ScLite + dsn => 'DBI:SQLite:dbname='.$cfgpath.'/dks.sqlite', + dbuser => '', + dbpassword => '', + basepath => '/', + staticpath => 'htdocs/', + #dsn => 'DBI:PgPP:dbname=fldlu_db;host=DKS-LAPTOP.fritz.box', + #dsn => 'DBI:PgPP:dbname=fldlu_db;host=sql629.your-server.de', + #dbuser => 'fldlu_user', + #dbpassword => 'Tm6G1bjQSudiEBAY', + page => 'index.tt', + pagename => 'index', + # basepath => substr((exists($ENV{"SCRIPT_FILENAME"})?dirname($ENV{"SCRIPT_FILENAME"}):dirname($0)),length($ENV{"DOCUMENT_ROOT"})), + # datapath => substr((exists($ENV{"SCRIPT_FILENAME"})?dirname($ENV{"SCRIPT_FILENAME"}):dirname($0)),length($ENV{"DOCUMENT_ROOT"})).'/data/', + # docroot => $ENV{"DOCUMENT_ROOT"}, + # registration_enabled => '1', + # default_group => 'users', + # sitename => 'FLD Member Area', + # season => '2019-2020', + # season_id => 2 +}; + +1; \ No newline at end of file diff --git a/CGI/api/lib/dksdb.pm b/CGI/api/lib/dksdb.pm new file mode 100644 index 0000000..bb368a1 --- /dev/null +++ b/CGI/api/lib/dksdb.pm @@ -0,0 +1,419 @@ +package dksdb; + +use strict; +use lib ('./lib/perl5'); +use lib ('./lib'); +use lib ('./'); +#BEGIN { $ENV{DBI_PUREPERL} = 2 } +use DBI; +use File::Basename; + +use Digest::SHA::PurePerl qw(sha256_hex); +use DBD::PgPP; +use DBD::SQLite; +use URI::Encode qw(uri_encode uri_decode); +use Encode; +use dksconfig qw($sitecfg); +use Text::Unidecode; + + +sub new { + my $class = shift; + my $param = shift; + my $self = bless {}, $class; + foreach my $p (keys %{$param}){ + $self->{$p} = $param->{$p}; + } + + return $self; +} + +sub securetext(){ + my $self = shift; + my $text = shift; + $text =~ s/'/''/g; + return $text; +} + +sub query(){ + my $self = shift; + my $stat = shift; + # my $vw_info = shift; + my @retdata = undef; + my $dbh = DBI->connect(((exists($self->{dsn}))?$self->{dsn}:$sitecfg->{dsn}),$sitecfg->{dbuser},$sitecfg->{dbpassword},{PrintError=>0,RaiseError=>0,AutoCommit=>1}) or return \@retdata;#$retdata[0] = "dbquery Connection Error!".$!; + $stat = encode("utf8", $stat); + # open FILE,">>tmp/sql.log"; + # print FILE "$stat\n"; + # close FILE; + my $sth = $dbh->prepare($stat) or return \@retdata;#$retdata[0] = "dbquery".$dbh->errstr. "- SQL: ".$stat;; + + + $sth->execute() or return \@retdata; #"dbquery: ".$sth->errstr; + + my $data = $sth->fetchrow_hashref(); + foreach my $k (keys %{$data}){ + my $row = (); + foreach my $k (keys %{$data}){ + $row->{$k} = decode("utf-8",$data->{$k}); + } + push @retdata,$row; + # $retdata->{$k} = decode("utf-8",$data->{$k}); + } + + $sth->finish(); + $dbh->disconnect(); + + return \@retdata; +} + +sub querybykey(){ + my $self = shift; + my $key = shift; + my $stat = shift; + #my $retempty = shift; + my @retdata =(); + my $dbh = DBI->connect(((exists($self->{dsn}))?$self->{dsn}:$sitecfg->{dsn}),$sitecfg->{dbuser},$sitecfg->{dbpassword},{PrintError=>0,RaiseError=>0,AutoCommit=>1}) or return \@retdata;#$retdata[0] = "dbquery Connection Error!".$!; + # $stat = encode("utf8", $stat); + + # open FILE,">>sql.log"; + # print FILE "$stat\n"; + # close FILE; + my $sth = $dbh->prepare($stat) or return \@retdata;#$retdata[0] = "dbquery: ".$stat; + $sth->execute() or return \@retdata;#$retata[0] = "dbquery: ".$stat; + while(my $data = $sth->fetchrow_hashref()) + { + if (exists $data->{$key}){ + my $row = (); + foreach my $k (keys %{$data}){ + $row->{$k} = decode("utf-8",$data->{$k}); + } + push @retdata,$row; + } + } + # if (keys(%{$retdata}) == 0){ + # $retdata =(); + # } + $sth->finish(); + $dbh->disconnect(); + return \@retdata; +} + +# sub dbquerysorted(){ +# my $self = shift; +# my $stat = shift; +# # my $vw_info = shift; +# my $retdata; +# my $dbh = DBI->connect(((exists($self->{dsn}))?$self->{dsn}:$sitecfg->{dsn}),$sitecfg->{dbuser},$sitecfg->{dbpassword},{PrintError=>0,RaiseError=>0,AutoCommit=>1}) or return $retdata->{error} = "dbquery Connection Error!".$!; +# # $stat = encode("utf8", $stat); +# # open FILE,">>tmp/sql.log"; +# # print FILE "\n==\n$stat\n==\n"; +# # close FILE; +# my $sth = $dbh->prepare($stat) or return $retdata->{error} = "dbquerysorted ".$dbh->errstr. "- SQL: ".$stat;; + + +# $sth->execute() or return $retdata->{error} = "dbquerysorted: ".$sth->errstr; +# my $count = 0; + +# while(my $data = $sth->fetchrow_hashref()) +# { +# #$retdata->{$count} = $data; +# my $row = (); +# foreach my $k (keys %{$data}){ +# $row->{$k} = decode("utf-8",$data->{$k}); +# } +# push @retdata,$row; +# } + +# # my $qstruct = (); +# # my $num_fields = $sth->{NUM_OF_FIELDS}; + +# # for ( my $i=0; $i< $num_fields; $i++ ) { +# # $qstruct->{$i}->{name} = $sth->{NAME}->[$i]; +# # #$qstruct->{$i}->{type} = $sth->{COMMENT}->[$i]; +# # #$qstruct->{$i}->{precision} = $sth->{PRECISION}->[$i]; +# # } + +# $sth->finish(); +# $dbh->disconnect(); + +# return $retdata; +# } + +sub exec(){ + my $self = shift; + my $stat = shift; + my $retdata; + my $dbh = DBI->connect(((exists($self->{dsn}))?$self->{dsn}:$sitecfg->{dsn}),$sitecfg->{dbuser},$sitecfg->{dbpassword},{PrintError=>0,RaiseError=>0,AutoCommit=>1}) or return $retdata->{error} = "exec Connection Error!".$!; + # $stat = decode("UTF-8", $stat); + # open FILE,">>tmp/sql.log"; + # print FILE "\n==\n$stat\n==\n"; + # close FILE; + my $sth = $dbh->prepare($stat) or return $retdata->{error} = "exec ".$dbh->errstr. "- SQL: ".$stat; + $retdata->{success} = $dbh->do($stat) or return $retdata->{error} = "dbexec ".$dbh->errstr. "- SQL: ".$stat; + $dbh->disconnect(); + return $retdata; +} + +# sub dbqueryarray(){ +# my $self = shift; +# my $stat = shift; +# my @retdata = (); +# my $dbh = DBI->connect(((exists($self->{dsn}))?$self->{dsn}:$sitecfg->{dsn}),$sitecfg->{dbuser},$sitecfg->{dbpassword},{PrintError=>0,RaiseError=>0,AutoCommit=>1}) or return ({"error" => "dbqueryarray Connection Error!".$!}); +# #$stat = encode("utf8", $stat); +# #open FILE,">>/tmp/sql.log"; +# #print "$stat\n"; +# # close FILE; +# my $sth = $dbh->prepare($stat); + +# $sth->execute() or print "dbqueryarray: ".$sth->errstr; +# my $count = 0; + +# while(my $data = $sth->fetchrow_hashref()) +# { +# my $row = (); +# foreach my $k (keys %{$data}){ +# $row->{$k} = decode("utf-8",$data->{$k}); +# } +# push @retdata,$row; +# } + +# $sth->finish(); +# $dbh->disconnect(); +# #%retdata = sort {$a <=> $b} keys %retdata; +# return \@retdata; +# } + + +sub create_ddl_insert(){ + my $self = shift; + my $data = shift; + my $fields = (); + my @ddl = (); + + foreach my $f (keys(%{$data})){ + if (($f =~ /\_/) && ($f !~ /^ident_/)){ + my $t = substr($f,0,index($f,"_")); + my $c = substr($f,length($t)+1); + #my ($t,$c) = $f =~ m/(.+)\_(.+)/; + $fields->{$t}->{$c} = $data->{$f}; + } elsif ($f =~ /^ident_/){ + my $f2 = $f; + $f2 =~ s/^ident_//; + + my $t = substr($f2,0,index($f2,"_")); + my $c = substr($f2,length($t)+1); + $fields->{$t}->{$c} = $data->{$f}; + } + + } + + foreach my $tb (keys(%{$fields})){ + my @sqlcol = (); + my @sqlval = (); + foreach my $c (keys(%{$fields->{$tb}})){ + my $v = $fields->{$tb}->{$c}; + $v =~ s/'/''/g; + push (@sqlcol,$c); + if ($v eq ''){ + $v = 'null'; + } else { + $v = "'".$v."'"; + } + push (@sqlval,$v); + } + push(@ddl,"INSERT INTO ".$tb." (".join(",",@sqlcol).") VALUES (".join(",",@sqlval).") returning id;"); + } + return @ddl; +} + +sub create_ddl_insert_json(){ + my $self = shift; + my $schema = shift; + my $table = shift; + my $columns = shift; + my $data = shift; + my @ddl = (); + my @sqlcol = (); + my @sqlval = (); + foreach my $c (keys(%{$data})){ + #if (exists($columns->{$c})){ + push (@sqlcol,'"'.$c.'"'); + my $v = $data->{$c}; + + if ($v eq ''){ + $v = 'null'; + }elsif ($v =~ /^data:.+;base64,/){ + $v =~ s/'/''/g; + $v = "'".$v."'"; + } + else { + $v= uri_decode($v); + $v =~ s/'/''/g; + if ($columns->{$c}->{data_type} eq "ARRAY"){ + if (ref($data->{$c}) eq "ARRAY"){ + $v = "{\"".join("\",\"",@{$data->{$c}})."\"}"; + } + else { + $v = 'null'; + } + $v =~ s/""/null/g; + }elsif ($columns->{$c}->{data_type} =~ /^timestamp/ ){ + + }elsif($columns->{$c}->{data_type} eq "date"){ + + }elsif($columns->{$c}->{data_type} eq "time"){ + + } + $v = "'".$v."'"; + } + push (@sqlval,$v); + #} + } + return "INSERT INTO ".$schema.".\"".$table."\" (".join(",",@sqlcol).") VALUES (".join(",",@sqlval).");"; +} + +sub create_ddl_update(){ + my $self = shift; + my $data = shift; + my $fields = (); + my @ddl = (); + foreach my $f (keys(%{$data})){ + if ($f =~ /^ident_/){ + my $fx = substr($f,6); + my $t = substr($fx,0,index($fx,"_")); + my $c = substr($fx,length($t)+1); + #my ($t,$c) = $f =~ m/^ident_(.+)\_([a-z0-9|\_]+)/; + $fields->{$t}->{cond}->{$c} = $data->{$f}; + } elsif ( ($f !~ /^ident/) && ($f =~ /.+\_.+/) ){ + my $t = substr($f,0,index($f,"_")); + my $c = substr($f,length($t)+1); + #my ($t,$c) = $f =~ m/^(.+)\_([a-z0-9|\_]+)/; + $fields->{$t}->{fields}->{$c} = $data->{$f}; + } + } + foreach my $tb (keys(%{$fields})){ + my @sqlupd = (); + my @sqlcond = (); + foreach my $c (keys(%{$fields->{$tb}->{fields}})){ + + my $v = $fields->{$tb}->{fields}->{$c}; + $v =~ s/'/''/g; + + if ($c =~ /-/){ + my @jp = split('-',$c); + if ($v eq ''){ + $v = 'null'; + } else { + $v = '"'.$v.'"'; + } + $c = 'jsonb_set(to_jsonb('.$jp[0].'),\'{"'.$jp[1].'"}\',\''.$v.'\')::json'; + push (@sqlupd,$jp[0]."=".$c); + }else { + if ($v eq ''){ + $v = 'null'; + } else { + $v = "'".$v."'"; + } + push (@sqlupd,$c."=".$v); + } + + } + foreach my $c (keys(%{$fields->{$tb}->{cond}})){ + my $v = $fields->{$tb}->{cond}->{$c}; + $v =~ s/'/''/g; + if ($v eq ''){ + $v = 'null'; + } else { + $v = "'".$v."'"; + } + push (@sqlcond,$c."=".$v); + } + push(@ddl,"UPDATE ".$tb." SET ".join(",",@sqlupd)." WHERE ".join(" AND ",@sqlcond).";"); + } + + return @ddl; +} + +sub create_cnt_statement(){ + my $self = shift; + my $data = shift; + my $fields = (); + my @ddl = (); + foreach my $f (keys(%{$data})){ + if ($f =~ /^ident_/){ + my $fx = substr($f,6); + my $t = substr($fx,0,index($fx,"_")); + my $c = substr($fx,length($t)+1); + #my ($t,$c) = $f =~ m/^ident_(.+)\_([a-z0-9|\_]+)/; + $fields->{$t}->{cond}->{$c} = $data->{$f}; + } + } + foreach my $tb (keys(%{$fields})){ + my @sqlcond = (); + foreach my $c (keys(%{$fields->{$tb}->{cond}})){ + my $v = $fields->{$tb}->{cond}->{$c}; + $v =~ s/'/''/g; + if ($v eq ''){ + $v = 'null'; + } else { + $v = "'".$v."'"; + } + push (@sqlcond,$c."=".$v); + } + push(@ddl,"SELECT count(*) as cnt from ".$tb." WHERE ".join(" AND ",@sqlcond).";"); + } + # open FILE,">>tmp/sql.log"; + # print FILE "\n==\n".join("\n",@ddl)."\n==\n"; + # close FILE; + return @ddl; +} + +sub create_ddl_delete(){ + my $self = shift; + my $data = shift; + my $fields = (); + my @ddl = (); + my @refcols = (); + my $refdata = (); + foreach my $f (keys(%{$data})){ + if ($f =~ /^ident_/){ + my ($t,$c) = $f =~ m/ident_(.+)\_(.+)/; + + $fields->{$t}->{cond}->{$c} = $data->{$f}; + push(@refcols,"'".$c.'_'.$t."'"); + $refdata->{$c.'_'.$t} = $data->{$f}; + } + } + +# my $ref = $self->dbquerysorted("select TABLE_NAME,COLUMN_NAME from information_schema.KEY_COLUMN_USAGE where COLUMN_NAME in (".join(",",@refcols).") and CONSTRAINT_SCHEMA='".$self->{dbname}."';"); +# foreach my $r (keys(%{$ref})){ +# my $refv = $refdata->{$ref->{$r}->{COLUMN_NAME}}; +# if ($refv eq ''){ +# $refv = ' is null'; +# } else { +# $refv =~ s/'/''/g; +# $refv = "='".$refv."'"; +# } +# push(@ddl,"DELETE from ".$ref->{$r}->{TABLE_NAME}." where ".$ref->{$r}->{COLUMN_NAME}.$refv.";"); +# } + foreach my $tb (keys(%{$fields})){ + my @sqlcond = (); + foreach my $c (keys(%{$fields->{$tb}->{cond}})){ + my $v = $fields->{$tb}->{cond}->{$c}; + $v =~ s/'/''/g; + push (@sqlcond,$c."='".$v."'"); + } + push(@ddl,"DELETE FROM ".$tb." WHERE ".join(" AND ",@sqlcond).";"); + } + return @ddl; +} + +sub textunidecode(){ + my $self = shift; + my $text = shift; + $text = lc(unidecode(decode("utf-8",$text))); + $text =~ s/^[a-z0-9]//g; + return $text; +} + +1; diff --git a/CGI/api/lib/sendemail.pm b/CGI/api/lib/sendemail.pm new file mode 100644 index 0000000..58ed8fb --- /dev/null +++ b/CGI/api/lib/sendemail.pm @@ -0,0 +1,130 @@ +package sendemail; + +use strict; +use lib ('./lib/perl5'); +use lib ('./lib'); +use lib ('./'); +use Data::Dumper; +use File::Basename qw/dirname basename/; +use dksdb; + +sub new { + my $class = shift; + my $self = bless {}, $class; + $self->{server} = "mail.your-server.de"; + $self->{port} = "587"; + $self->{user} = 'kilian.saffran@fld.lu'; + $self->{password} = "Y6cWvXR6D2"; + $self->{from} = 'webmaster@fld.lu'; + return $self; +} + +sub sendemail(){ + my $self = shift; + my $template = shift; + my $iduser = shift; + my $sendto = shift; + my $data = shift; + my $attach = shift; + my $body = ""; + my $subject = ""; + my $maildata = (); + my $db = dksdb->new(); + my $send = -1; + my $tmpl = $db->query("select *,ml.mailtemplate from mailtemplates mt join maillayouts ml on (mt.id_maillayout=ml.id) where templatename='".$template."';"); + if (keys(%{$tmpl}) > 0){ + $tmpl = $tmpl->{0}; + } + # open (LOG,">>tmp/sendmail.log"); + # print LOG $ENV{SCRIPT_FILENAME}; + # print LOG "SEND EMAIL:".Dumper($data)."\n"; + # close(LOG); + my $datasql = $tmpl->{'emaildatasql'}; + $data->{id} = $iduser; + foreach my $key (keys(%{$data})){ + my $srch = '%%'.lc($key).'%%'; + my $repl = $data->{$key}; + $datasql =~ s/$srch/$repl/g; + } + # open (LOG,">>tmp/sendmail.log"); + # print LOG "TEMPLATE DATA:".$datasql."\n"; + # close(LOG); + $maildata = $db->query($datasql); + + $body = $tmpl->{'emailtext'}; + $subject = $tmpl->{'mailsubject'}; + foreach my $key (keys(%{$maildata->{0}})){ + $data->{$key} = $maildata->{0}->{$key}; + } + foreach my $key (keys(%{$data})){ + my $srch = '%%'.lc($key).'%%'; + my $repl = $data->{$key}; + $body =~ s/$srch/$repl/g; + $subject =~ s/$srch/$repl/g; + } + my $bodytmpl = $tmpl->{mailtemplate}; + $bodytmpl =~ s/%%BODYCONTENT%%/$body/; + my $siteurl = $ENV{'REQUEST_SCHEME'}.'://'.$ENV{"HTTP_HOST"}; + $bodytmpl =~ s/%%siteurl%%/$siteurl/g; + $bodytmpl =~ s/%%SITEURL%%/$siteurl/g; + $bodytmpl =~ s/\r//g; + #$bodytmpl =~ s/"/\\\"/g; + #PROD REPLACE all not replaced DATA + #$bodytmpl =~ s/%%\w+%%//g; + #$sendto = 'ksaffran@dks.lu'; + # open (LOG,">>tmp/sendmail.log"); + # print LOG "SUBJECT:".$subject."\n"; + # print LOG "BODY TEXT:".$bodytmpl."\n"; + # close(LOG); + if (($bodytmpl ne "") && ($subject ne "") && ($sendto =~ /.+\@.+\..+/)){ + + + my $binsemail = dirname($ENV{'SCRIPT_FILENAME'}).'/sendEmail'; + my $f = dirname($ENV{SCRIPT_FILENAME}).'/tmp/mailbody_'.$sendto.'.txt'; + $f =~ s/\@/_/g; + if (! -e $binsemail){ + $binsemail = dirname($ENV{'SCRIPT_FILENAME'}).'/api/sendEmail'; + $f = dirname($ENV{SCRIPT_FILENAME}).'/api/tmp/mailbody_'.$sendto.'.txt'; + $f =~ s/\@/_/g; + if (! -e $binsemail){ + return 256; + } + } + + my $cmd= 'perl "'.$binsemail.'" -f '.$tmpl->{mailfrom}.' '; + $cmd .= ' -s "'.$self->{server}.':'.$self->{port}.'" -xu "'.$self->{user}.'" -xp "'.$self->{password}.'" -q '; + $cmd .= '-o tls=auto '; + $cmd .= '-o message-content-type=html '; + $cmd .= '-o message-charset=ISO-8859-1 '; + $cmd .= '-o message-file='.$f.' '; + $cmd .= '-t "'.$sendto.'" '; + $cmd .= '-u "'.$subject.'" '; + # open (LOG,">>sendmail.log"); + # print LOG $cmd."\n"; + # # print LOG "BODY TEXT:".$bodytmpl."\n"; + # close(LOG); + open(EML,">".$f); + print EML $bodytmpl; + close(EML); + # $cmd .= '-m "'.$bodytmpl.'" '; + if ($attach != undef){ + $cmd .= " -a"; + + foreach my $a (@{$attach}){ + $cmd .= " ".$a." "; + } + } + # open (LOG,">>tmp/sendmail.log"); + # print LOG "SEND EMAIL CMD:".$cmd."\n"; + # close(LOG); + # $cmd =~ s/'/''/g; + $send = system($cmd); + # open (LOG,">>tmp/sendmail.log"); + # print LOG "CMD RETURN NUM:".$send."\n"; + # close(LOG); + unlink($f); + } + return $send; +} + +1; \ No newline at end of file diff --git a/CGI/api/lib/session.pm b/CGI/api/lib/session.pm new file mode 100644 index 0000000..44ab6a1 --- /dev/null +++ b/CGI/api/lib/session.pm @@ -0,0 +1,232 @@ +package session; + +use strict; +use lib ('./lib/perl5'); +use lib ('./lib'); +use lib ('./'); +use File::Basename; +use Digest::SHA qw(sha256_hex); + +use dksdb; +use sendemail; +# use Data::Dumper; + +sub new { + my $class = shift; + my $self = bless {}, $class; + $self->{db} = dksdb->new(); + return $self; +} + +sub checklogin(){ + my $self = shift; + my $login = shift; + my $password = shift; + # open FILE,">>tmp/sql.log"; + # print FILE "pwd: $password\n"; + # close(FILE); + my $pwd = sha256_hex($password); + my $ret->{messagetype} ='w3-red'; + # my $newsid = undef; + $login = lc($login); + $login =~ s/^\s+//; + $login =~ s/\s+$//; + + $ret->{message} = "Passwuert oder Login onbekannt!"; + $ret->{messagetype} = "w3-red"; + $ret->{sid} = undef; + my $user = $self->{db}->dbquerysorted("select id from users where lower(username)=lower('".$self->{db}->securetext($login)."') and userpassword = '".$pwd."' and \"blocked\" is null;"); + # open FILE,">>tmp/sql.log"; + # print FILE "select id from users where username= '".$self->{db}->securetext($login)."' and userpassword = '".$pwd."' and \"blocked\" is null;\n"; + # close FILE; + if (keys(%{$user}) > 0){ + $ret->{sid} = $self->randomstring(40); + $self->{db}->dbexec("DELETE FROM sessions where id_user=".$user->{0}->{id}." and remote_addr='".$ENV{REMOTE_ADDR}."' and user_agent='".$ENV{HTTP_USER_AGENT}."';"); + my $r = $self->{db}->dbexec("INSERT INTO sessions (id_user,idsession,remote_addr,user_agent) VALUES (".$user->{0}->{id}.", '".$ret->{sid}."', '".$ENV{REMOTE_ADDR}."', '".$ENV{HTTP_USER_AGENT}."');"); + } + return $ret; +} + +sub savepassword(){ + my $self = shift; + my $iduser = shift; + my $newpwd = shift; + my $pwd = sha256_hex($newpwd); + $self->{db}->dbexec("UPDATE users SET userpassword = '".$pwd."' WHERE id=".$iduser.";"); + return 1; +} + +sub passwordforgotten(){ + my $self = shift; + my $email = shift; + my $ret->{messagetype} ='w3-red'; + $ret->{message} = "Onbekannt E-mail!"; + my $sql = "select id,userpassword from users where username='".$self->{db}->securetext($email)."';"; + my $ex = $self->{db}->dbquerysorted($sql); + if (keys(%{$ex}) > 0){ + my $newpwd = $self->randomstring(12); + my $pwd = sha256_hex($newpwd); + $self->{db}->dbexec("UPDATE users SET userpassword = '".$pwd."' WHERE id=".$ex->{0}->{id}.";"); + my $data->{newpassword} = $newpwd; + my $eml = sendemail->new(); + my $mret = $eml->sendemail('user_forgotpasswd',$ex->{0}->{id},$email,$data,undef); + if ($mret != 0){ + $ret->{messagetype} ='w3-red'; + $ret->{message} = "Den Moment ass et leider nët méglech d'Passwuert autmatesch zreckzesetzen, <br/> wend dech w.e.g. via E-Mail un <a href=\"mailto:webmaster\@fld.lu\">webmaster\@fld.lu</a>!"; + return $ret; + } + $ret->{message} = "Mir hun dir eng E-Mail, matt engem neien Passwuert gescheckt!"; + $ret->{messagetype} = "w3-green"; + } + return $ret; +} + +sub registeruser(){ + my $self = shift; + my $data = shift; + my $ret->{messagetype} ='w3-red'; + $ret->{message} = "Een Fehler ass passéiert, probéier et spéier nach eemol!"; + $ret->{page} = "message.tt"; + if (!exists($data->{license}) || !exists($data->{regcode}) || !exists($data->{email}) || !exists($data->{terms})){ + $ret->{message} = "W.e.g. All Felder ausfëllen!"; + $ret->{page} = "register.tt"; + return $ret; + } + foreach my $d (%{$data}){ + $data->{$d} = $self->{db}->securetext($data->{$d}); + } + + my $user = $self->{db}->dbquerysorted("select id from users where username='".$data->{email}."';"); + if (keys(%{$user}) > 0){ + $ret->{page} = "register.tt"; + $ret->{message} = "Een Benotzer matt der selwechter E-Mail existéiert schon!"; + return $ret; + } + my $license = $self->{db}->dbquerysorted("select us.id as id_user,lic.license,mb.id as id_member,us.username,us.vcode,us.regcode from members mb join licenses lic on (lic.id_member=mb.id) join users us on (mb.id_user=us.id) where us.regcode='".$data->{regcode}."' and lic.license='".$data->{license}."' limit 1"); + if (keys(%{$license}) == 0){ + $ret->{message} = "Falsch Lizenz-Nummer oder falschen Régistréierungs-Code!"; + return $ret; + } + my $regcode = $license->{0}->{regcode}; + my $newcode = $self->randomstring(6); + #my $usergroup = $self->{db}->dbquerysorted("select id from usergroups where usergroup ='avocat';"); + my $newuserid = $self->{db}->dbquerysorted("UPDATE users set username='".$data->{email}."',vcode='".$newcode."' where id=".$license->{0}->{id_user}." ;"); + my $maildata->{vcode} = $newcode; + my $eml = sendemail->new(); + my $mret = $eml->sendemail('user_verification',$license->{0}->{id_user},$data->{email},$maildata,undef); + if ($mret == 0){ + $ret->{message} = "Merci,<br/>Mir hun dir elo eng E-Mail gescheckt, mattengem Code fir deng E-Mail ze verifizéieren!<br/>Gëff desen Code w.e.g. an daat Feld hei drënner an!<br/>Bei Problemer wend dech w.e.g. via E-Mail un <a href=\"mailto:webmaster\@fld.lu\">webmaster\@fld.lu</a>"; + $ret->{messagetype} = "w3-green"; + $ret->{page} = "validationcode.tt"; + } else { + $self->{db}->dbexec("UPDATE users set username='".$data->{email}."',vcode=null where id=".$license->{0}->{id_user}." ;"); + $ret->{message} = "Aus iergend engem Grond konnten mir dir keng E-Mail un '".$data->{email}."' schecken! Falls dess E-Mail-Address net existéiert, versich et nach eng Kéier matt enger E-Mail-Address, déi existéiert!<br>Bei Problemer wend dech w.e.g. via E-Mail un <a href=\"mailto:webmaster\@fld.lu\">webmaster\@fld.lu</a>"; + $ret->{messagetype} = "w3-red"; + $ret->{page} = "register.tt"; + } + #$self->{db}->dbexec("insert into appaccess (id_user) values (".$newuserid->{0}->{id}.");"); + # $ret->{messagetype} = "w3-green"; + + return $ret; +} + +sub validateaccount(){ + my $self = shift; + my $data = shift; + foreach my $d (%{$data}){ + $data->{$d} = $self->{db}->securetext($data->{$d}); + } + + my $ret->{messagetype} ='w3-red'; + my $vcodedata = $self->{db}->dbquerysorted("select id,vcode,username from users where vcode='".$data->{vcode}."';"); + if (keys(%{$vcodedata}) == 0){ + $ret->{message} = "Benotzer onbekannt oder Code falsch!"; + $ret->{page} = "validationcode.tt"; + } + my $newpwd = $self->randomstring(12); + my $pwd = sha256_hex($newpwd); + my $maildata->{password} = $newpwd; + my $eml = sendemail->new(); + my $newuserid = $self->{db}->dbquerysorted("UPDATE users set userpassword='".$pwd."',vcode=null,regcode=null where id=".$vcodedata->{0}->{id}." returning id,username;"); + my $mret = $eml->sendemail('user_registration',$vcodedata->{0}->{id},$vcodedata->{0}->{username},$maildata,undef); + if ($mret == 0){ + $ret->{message} = "Merci,<br/>Mir hun dir elo eng E-Mail gescheckt, matt all deenen néidegen Donnéeen fir dech anzeloggen!<br/>Bei Problemer wend dech w.e.g. via E-Mail un <a href=\"mailto:webmaster\@fld.lu\">webmaster\@fld.lu</a>"; + $ret->{messagetype} = "w3-green"; + $ret->{page} = "message.tt"; + } else { + $ret->{message} = "Aus iergend engem Grond konnten mir dir keng E-Mail un '".$newuserid->{0}->{username}."' schecken! Falls dess E-Mail-Address net existéiert, versich et nach eng Kéier matt enger E-Mail-Address, déi existéiert!<br>Bei Problemer wend dech w.e.g. via E-Mail un <a href=\"mailto:webmaster\@fld.lu\">webmaster\@fld.lu</a>"; + $ret->{page} = "message.tt"; + } + return $ret; +} + +sub getsession($){ + my $self = shift; + my $sid = shift; + my $sql ="select se.idsession,us.id,us.username,string_agg(distinct(aug.usergroup),',') as usergroups from sessions se +join users us on (us.id=se.id_user) +left join useringroups uig on (us.id=uig.id_user) +left join usergroups aug on (aug.id=uig.id_group) +where se.idsession= '".$self->{db}->securetext($sid)."' +and se.remote_addr= '".$ENV{REMOTE_ADDR}."' +and se.user_agent='".$ENV{HTTP_USER_AGENT}."' and us.blocked is null group by se.id,us.id;"; + my $res= $self->{db}->dbquerysorted($sql); + my $ret = undef; + if (keys(%{$res}) > 0){ + return $res->{0}; + } + return $ret; +} + +sub deletesession(){ + my $self = shift; + my $sid = shift; + $self->{db}->dbexec("DELETE FROM sessions where idsession='".$self->{db}->securetext($sid)."';"); +} + +sub randomstring(){ + my $self = shift; + my $num = shift; + my @alphanumeric = ('a'..'z', 'A'..'Z', 0..9); + my $randstring = join '', map $alphanumeric[rand @alphanumeric], 0..$num; + return $randstring; +} + + +# sub deleteprofile(){ +# my $self = shift; +# my $data = shift; +# my $ret->{message} = "mot de passe ou profile inconnue!"; +# $ret->{messagetype} = "danger"; +# if ($data->{id_user} eq ''){ +# $ret->{sid} = undef; +# return $ret; +# } +# my $pwd = sha256_hex($data->{password}); +# my $user = $self->{db}->dbquerysorted("select id from users where id= '".$data->{id_user}."' and userpassword = '".$pwd."';"); +# if (keys(%{$user}) > 0){ +# $self->admindeleteuser($data->{id_user}); +# my $ret->{'message'} = "Votre profile a été supprimé!"; +# $ret->{'messagetype'} = "info"; +# $ret->{sid} = undef; +# } +# return $ret; + +# } + +# sub admindeleteuser(){ +# my $self = shift; +# my $id_user = shift; +# my @dl = ("DELETE FROM public.useringroups WHERE id_uset=".$id_user.";", +# "DELETE FROM public.userclients WHERE id_user=".$id_user.";", +# "DELETE FROM public.appaccess WHERE id_user=".$id_user.";", +# "DELETE FROM public.modulepreferences WHERE id_user=".$id_user.";",, +# "DELETE FROM public.sessions WHERE id_user=".$id_user.";", +# "delete from users where id=".$id_user.";"); +# foreach my $s (@dl){ +# $self->{db}->dbexec($s); +# } +# return 1; +# } + +1; \ No newline at end of file diff --git a/CGI/api/parsestatement.cgi b/CGI/api/parsestatement.cgi new file mode 100644 index 0000000..0f6c18d --- /dev/null +++ b/CGI/api/parsestatement.cgi @@ -0,0 +1,177 @@ +#!/usr/bin/perl + +use strict; +#!/usr/bin/perl +use strict; +use CGI; +use CGI::Carp qw/fatalsToBrowser/; +use File::Path qw/make_path/; +use File::Basename; +use JSON::PP; + +my $cgi = new CGI(); +my $p = (); +my $cfgpath=""; +if ($^O eq "MSWin32"){ + $cfgpath = $ENV{APPDATA}.'/dks'; +} elsif ($^O eq "darwin"){ + $cfgpath = $ENV{HOME}.'/Library/Application Support/dks'; +} else { + $cfgpath = $ENV{HOME}.'/.dks'; +} +$cfgpath =~ s/\\/\//g; +#print $cfgpath."\n"; +my $docpath = $cfgpath.'/invoicejournal/documents'; +my @params = $cgi->param(); +foreach my $pp (@params){ + $p->{$pp} = $cgi->param($pp); +} + +my $html->{result} = (); +my $js = JSON::PP->new(); +if (exists($p->{file}) && -f $docpath.'/'.$p->{file}){ + $html->{result}->{bookings} = &parsestatement($docpath.'/'.$p->{file}); + +} +print $cgi->header(-type=> 'application/json', -charset=>"UTF-8"); +print $js->utf8->encode($html); + +sub pdfextract(){ + my $file = shift; + my $pdftotext; + my $sep = "/"; + if ($^O eq "MSWin32") { + $sep = "\\"; + $pdftotext=dirname($0).$sep.'pdftotext.exe'; + }else { + $pdftotext=dirname($0).$sep.'pdftotext'; + } + if (-e $file.'.txt'){ + unlink($file.'.txt'); + } + my $cmd = 'start /b "" "'.$pdftotext.'" -q -table -eol unix "'.$file.'" "'.$file.'.txt"'; + my $st = `$cmd`;#'system(1,$cmd)' ; + #print $cmd."->".$st."\n"; + return $st; +} + + +sub parsestatement(){ + my $file = shift; + my $pxdata = (); + my @pdata = (); + my $jdata = (); + if (-e $file){ + my $st = &pdfextract($file); + + if (($st == 0) && (-e $file.".txt")){ + open(PDFDATA,$file.".txt"); + while (my $l = <PDFDATA>) { + chomp($l); + if ($l ne "") {push @pdata,$l;} + } + close(PDFDATA); + } + my $caccount = ""; + my $stmtnum = ""; + my $r = 0; + my $cpos = ""; + foreach my $p (@pdata){ + if ($p =~ /^\s+Konto\s+:/ ) { + $cpos = ""; + ($caccount) = $p =~ m/.+IBAN\s+(.+)$/; + next; + }elsif ($p =~ /Kontoauszug Nr\./){ + $cpos = ""; + ($stmtnum) = $p =~ m/^Kontoauszug Nr\.\s(\d+).+$/; + next; + }elsif ($p =~ /^\d\d\.\d\d\s+[GUT|UEBER|SEPA]/){ + $cpos = ""; + $r++; + my ($type,$trdate,$trval,$trsign) = $p =~ m/\d\d\.\d\d\s+(.+)\s+(\d\d\.\d\d\.\d\d)\s+([\d|,|\.]+)\s([+|-])$/; + $type =~ s/\s//g; + $trsign =~ s/\+//; + $trval=~ s/\.//g; + $trdate = substr($trdate,0,6).'20'.substr($trdate,-2); + $jdata->{$r}->{"type"} = $type; + $jdata->{$r}->{"account"} = $caccount; + $jdata->{$r}->{"statementnumber"} = $stmtnum; + $jdata->{$r}->{"bookingdate"} = $trdate; + my $dt = $jdata->{$r}->{"bookingdate"}; + my ($d,$m,$y) = $jdata->{$r}->{"bookingdate"} =~ m/(\d\d)\.(\d\d)\.(\d\d\d\d)/; + $jdata->{$r}->{"bookingdate"} = $y."-".$m."-".$d; + $jdata->{$r}->{"amount"} = $trsign.$trval; + $jdata->{$r}->{"amount"} =~ s/\,/\./g; + $jdata->{$r}->{"transactionident"} = ""; + $jdata->{$r}->{"message"} = ""; + $jdata->{$r}->{"foreignaccountowner"} = ""; + $jdata->{$r}->{"bank"} = ""; + $jdata->{$r}->{"transferaccount"} = ""; + $jdata->{$r}->{"transfercosts"} = 0; + #$jdata->{$r}->{"BookingType"} = $type; + next; + }elsif ($p =~ /^\s+Unser Zeichen/){ + $cpos = "transactionident"; + my ($trid) = $p =~ m/^\s+Unser Zeichen\s+(.+)$/; + $jdata->{$r}->{$cpos} =$trid; + }elsif ($p =~ /^\s+Mitteilung/){ + $cpos = "message"; + my ($msg) = $p =~ m/^\s+Mitteilung\s+(.+)$/; + $jdata->{$r}->{$cpos} = $msg; + }elsif ($p =~ /^\s+Auftraggeber/){ + $cpos = "foreignaccountowner"; + my ($apl) = $p =~ /^\s+Auftraggeber\s+(.+)$/; + $apl =~ s/\s+/\ /g; + $jdata->{$r}->{$cpos} =$apl; + }elsif ($p =~ /^\s+Bank d. Auftr.gebers/){ + $cpos = ""; + }elsif ($p =~ /^\s+BIC-Code Bank d. Auftraggebers/){ + $cpos = "bank"; + my ($trfbank) = $p =~ /^\s+BIC-Code\sBank\sd\.\sAuftraggebers\s+(.+)$/; + $jdata->{$r}->{$cpos} =$trfbank; + }elsif ($p =~ /^\s+End-to-End-Identifizierung/){ + $cpos = ""; + }elsif ($p =~ /^\s+Beg.nstigter/){ + $cpos = "foreignaccountowner"; + my ($recp) = $p =~ /^\s+Beg.nstigter\s+(.+)$/; + $recp =~ s/\s+/\ /g; + $jdata->{$r}->{$cpos} =$recp; + $cpos=""; + }elsif ($p =~ /^\s+Konto Nr. Beg.nst./){ + $cpos = "transferaccount"; + + my ($trfacc) = $p =~ /^\s+Konto\sNr\.\sBeg.nst.\s+(.+)$/; + $trfacc =~ s/\///g; + $trfacc =~ s/(....)/$1 /sg; + $trfacc =~ s/\s+$//; + $jdata->{$r}->{$cpos} =$trfacc; + $cpos=""; + }elsif ($p =~ /^\s+bei/){ + $cpos = ""; + }elsif ($p =~ /^\s+Transfergeb.hr/){ + $cpos = "transfercosts"; + my ($tramount) = $p =~ /^\s+Transfergeb.hr\s+EUR\s+(.+)$/; + $tramount =~ s/\,/\./g; + $jdata->{$r}->{$cpos} =$tramount; + }elsif ($p =~ /^\s+Durch Ihren Bonus abgedeckt/){ + $cpos = "transfercosts"; + my ($tramount) = $p =~ /^\s+Durch Ihren Bonus abgedeckt\s+EUR\s+(.+)$/; + $tramount =~ s/\,/\./g; + $jdata->{$r}->{$cpos} = $jdata->{$r}->{$cpos} + $tramount; + }elsif ($p =~ /^\s+Zeichen/){ + $cpos = ""; + } elsif ($p =~ /^\s+Neuer Kontostand/){ + $cpos=""; + }elsif ($cpos ne "") { + my ($data) = $p =~ m/\s+(.+)$/; + $jdata->{$r}->{$cpos} .= " ".$data; + } + } + + } + if (-e $file.'.txt'){ + unlink($file.'.txt'); + } + return $jdata; + +} \ No newline at end of file diff --git a/CGI/api/upload.cgi b/CGI/api/upload.cgi new file mode 100644 index 0000000..acbae06 --- /dev/null +++ b/CGI/api/upload.cgi @@ -0,0 +1,48 @@ +#!/usr/bin/perl +use strict; +use CGI; +use CGI::Carp qw/fatalsToBrowser/; +use File::Path qw/make_path/; +use JSON::PP; +my $cgi = new CGI(); +my $p = (); +my $cfgpath=""; +if ($^O eq "MSWin32"){ + $cfgpath = $ENV{APPDATA}.'/dks'; +} elsif ($^O eq "darwin"){ + $cfgpath = $ENV{HOME}.'/Library/Application Support/dks'; +} else { + $cfgpath = $ENV{HOME}.'/.dks'; +} +$cfgpath =~ s/\\/\//g; +#print $cfgpath."\n"; +my $docpath = $cfgpath.'/invoicejournal/documents'; +my @params = $cgi->param(); +foreach my $pp (@params){ + $p->{$pp} = $cgi->param($pp); +} + +my $html->{result} = (); +#my $upl = $cgi->upload('file'); + ##my @uploads = $req->uploads->get_all('file'); + # $html->{result}->{file} = $p->{file}; + +my $fh = $cgi->upload('file'); + my $uplpath = $docpath.'/'.$p->{folder}.'/'.$p->{subfolder}; + if (! -d $uplpath){ + make_path($uplpath); + } + open(SPF,'>'.$uplpath.'/'.$p->{file}); + binmode(1); + while (my $l = <$fh>) { + print SPF $l; + } + close(SPF); +if (-f $uplpath.'/'.$p->{file}){ + $html->{result}->{relpath} = $p->{folder}.'/'.$p->{subfolder}.'/'.$p->{file}; +} +print $cgi->header(-type=> 'application/json', -charset=>"UTF-8"); +my $js = JSON::PP->new(); +$js->allow_blessed(1); +$js->convert_blessed(1); +print $js->utf8->encode($html); \ No newline at end of file diff --git a/CGI/index.cgi b/CGI/index.cgi new file mode 100644 index 0000000..8af8540 --- /dev/null +++ b/CGI/index.cgi @@ -0,0 +1,199 @@ +#!C:\Strawberry\perl\bin\perl.exe + +use strict; +use FindBin qw($Bin); +# use lib ('CGI/api/lib/perl5'); +# use lib ('CGI/api/lib'); +use lib ($Bin.'/CGI/api/lib/perl5'); +use lib ($Bin.'/CGI/api/lib'); +# use lib ('./api/lib/perl5'); +# use lib ('./api/lib'); +use File::Basename qw/dirname basename/; +use Template; +# use Template::Constants qw( :debug ); +use CGI; +#use CGI::Carp qw(fatalsToBrowser); +use CGI::Cookie; +use Data::Dumper; +use JSON::PP; + +use dksconfig qw/$sitecfg/; +# use session; + +my $skl = "skeleton/index.tt"; +my $cgi = new CGI(); +my $p=(); +my $cookie; +my $vars = $sitecfg; + +#$vars->{filepath} = substr($cgi->url({-absolute=>1}),length($vars->{basepath})+1); +$vars->{filepath} = substr($ENV{PATH_INFO},1); +$vars->{baseurl} = $cgi->url({-base=>1}).$vars->{basepath}; + +if ($vars->{basepath} eq "/"){ + $vars->{siteurl} = $cgi->url({-base=>1}); +}else { + $vars->{siteurl} = $cgi->url({-base=>1}).dirname($vars->{basepath}); + $vars->{docroot} = $vars->{docroot}.dirname($vars->{basepath}); + #$vars->{sitepath} = dirname($vars->{basepath}); +} + + +if ($vars->{filepath} ne ""){ + $vars->{suffix} = substr($vars->{filepath},rindex($vars->{filepath},'.')); + $vars->{page} = $vars->{filepath}; + $vars->{page} =~ s/html$/tt/; +} + + +# my $sess = (); +# my $se = session->new(); +# $p->{sid} = $cgi->cookie($vars->{cookiename}); +if ($cgi->request_method() eq "GET"){ + my @params = $cgi->param(); + foreach my $pp (@params){ + $p->{$pp} = $cgi->param($pp); + } + +} + +# if ($cgi->request_method() eq "POST"){ + +# my @params = $cgi->param(); +# foreach my $pp (@params){ +# $p->{$pp} = $cgi->param($pp); +# } +# # $vars->{hasposts} = $p; +# # if (exists($p->{'btnlogin'})){ +# # my $ret = $se->checklogin($p->{login},$p->{password}); +# # if ($ret->{sid} ne ""){ +# # $p->{sid} = $ret->{sid}; +# # $cookie = CGI::Cookie->new(-name=>$vars->{cookiename},-value=>$p->{sid},-httponly => 1); +# # }else { +# # $vars->{message} = $ret->{message}; +# # $vars->{messagetype} = $ret->{messagetype}; +# # $vars->{page} = "message.tt"; +# # } +# # } +# # if (exists($p->{'btnregister'})){ + +# # my $ret = $se->registeruser($p); + +# # $vars->{message} = $ret->{message}; +# # $vars->{messagetype} = $ret->{messagetype}; +# # $vars->{page} = $ret->{page}; +# # } +# # if (exists($p->{'btnforgotpassword'})){ +# # my $ret = $se->passwordforgotten($p->{email}); +# # $vars->{message} = $ret->{message}; +# # $vars->{messagetype} = $ret->{messagetype}; +# # $vars->{page} = "message.tt"; +# # } +# # if (exists($p->{'btnvalidateemail'})){ +# # my $ret = $se->validateaccount($p); +# # $vars->{message} = $ret->{message}; +# # $vars->{messagetype} = $ret->{messagetype}; +# # $vars->{page} = "message.tt"; +# # } +# # if (exists($p->{'btnresendcode'})){ +# # my $ret = $se->resendcode($p->{email}); +# # $vars->{message} = $ret->{message}; +# # $vars->{messagetype} = $ret->{messagetype}; +# # $vars->{page} = "message.tt"; +# # } + +# # if (exists($p->{logout})){ +# # $se->deletesession($p->{sid}); +# # $p->{sid} = ""; +# # $cookie = CGI::Cookie->new(-name=>$vars->{cookiename},-value=>"",-httponly => 1); +# # } +# # if (exists($p->{btndeleteprofile})){ +# # my $ret = $se->deleteprofile($p->{deleteprofile}); +# # $vars->{message} = $ret->{message}; +# # $vars->{messagetype} = $ret->{messagetype}; +# # $vars->{page} = "message.tt"; +# # if (exists($ret->{sid})){ +# # $p->{sid} = ""; +# # } +# # $cookie = CGI::Cookie->new(-name=>$vars->{cookiename},-value=>"",-httponly => 1); +# # } +# } + +# # if ($p->{sid} ne ""){ +# # $sess = $se->getsession($p->{sid}); +# # } + + +# #$vars->{beforex} = $vars->{page}; +# if (!exists($sess->{id}) || (!exists($p->{sid})) || $p->{sid} eq ""){ +# $skl = "skeleton/index.tt"; +# } +# # if ($vars->{page} eq "deleteprofile.tt") { +# # $skl = "skeleton/login.tt"; +# # } +# # my ($appname) = $ENV{REQUEST_URI} =~ /.*\/module\/(\w+)\/.*/; +# if ($p->{sid} ne ""){ +# $vars->{session} = $sess; +# } +# #SESSION - End +# # #BEGIN - Browser Blocking +# # if (($ENV{HTTP_USER_AGENT} !~ /Chrome/) || ($ENV{HTTP_USER_AGENT} =~ /Edge/) || ($ENV{HTTP_USER_AGENT} =~ /Firefox/)){ +# # $skl = "skeleton/browser.tt"; +# # } +# # #END - Browser Blocking +my $ctype = 'text/html'; +if ($vars->{suffix} eq ".js"){ + $ctype= "text/javascript"; +} elsif ($vars->{suffix} eq ".css"){ + $ctype = "text/css"; +} +#print $cgi->header(-type=>$ctype, -charset=>"utf-8",-cookie => $cookie); +print $cgi->header(-type=>$ctype, -charset=>"utf-8"); + +# print dirname($ENV{"SCRIPT_FILENAME"}); + +my $template = Template->new({INCLUDE_PATH => [$Bin.'/CGI/tmpl']}); +#} + +my @lv = split(/\//,$vars->{filepath}); +my $absnum = scalar(@lv)-1; +$vars->{abspath} = ""; +for (my $i=0;$i<$absnum;$i++){ + $vars->{abspath} .= "../"; +} +if ($vars->{page} =~ /^app/){ + my @spl = split("/",$vars->{page}); + $vars->{app} = $spl[1]; +} +# $vars->{page} = $vars->{page}; +if ($vars->{page} =~ /module/){ + $vars->{module} = basename(dirname($vars->{page})); +} +$vars->{pagename} = basename($vars->{page}); +$vars->{pagename} =~ s/\.tt$//; +# my ($appname) = $ENV{REQUEST_URI} =~ /.*\/apps\/(\w+)\/.*/; +#$vars->{requri} = $ENV{REQUEST_URI}; + +#BEGIN - iFrame - Modules +#$skl ne "skeleton/login.tt" && +if ($vars->{page} =~ /module/){ + $skl = "skeleton/module.tt"; + if ($vars->{page} !~ /\.tt$/) { + $skl = "skeleton/file.tt"; + } + $vars->{params}= $p; +}elsif ($vars->{page} =~ /^app/){ + $skl = "skeleton/app.tt"; + if ($vars->{page} !~ /\.tt$/) { + $skl = "skeleton/file.tt"; + } + $vars->{params}= $p; +} + +#END - iFrame - Modules + +$template->process($skl,$vars) || die "Template process failed: ", $template->error(), "\n"; +print '<pre >'.Dumper($vars)."<pre>"; + + + diff --git a/CGI/tmpl/app/cashbox/index.tt b/CGI/tmpl/app/cashbox/index.tt new file mode 100644 index 0000000..bdd4408 --- /dev/null +++ b/CGI/tmpl/app/cashbox/index.tt @@ -0,0 +1,55 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset="UTF-8"> +<meta name="viewport" content="width=device-width, initial-scale=1.0"> + +<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css"> +<link rel="stylesheet" href="node_modules/bootstrap-table/dist/bootstrap-table.min.css"> +<link rel="stylesheet" href="css/cashbox.epic.css"> +<link rel="stylesheet" href="css/app.css"> +<title>CashBox + + + +
+ + + + + + +
+ +
+ + +
+ + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/accounts/index.html b/CGI/tmpl/app/cashbox/module/accounts/index.html new file mode 100644 index 0000000..f3b124d --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/accounts/index.html @@ -0,0 +1,49 @@ + + + + + + + + + + +Konten + + + +
+ + + + + + + + + + +
NameTypInfo
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/accounts/index.js b/CGI/tmpl/app/cashbox/module/accounts/index.js new file mode 100644 index 0000000..7dfd848 --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/accounts/index.js @@ -0,0 +1,87 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); +var tblh = winh-54; + +function initpage(){ + loaddatalist_accounttypes(); + loadtable(); +} + +function loadtable(){ + var sql = 'SELECT id,name,type,visible,info FROM accounts;'; + var data = appdb.dbquery(sql); + console.log("load accounts table " + sql); + console.log(data.sqldata); + $('#tbl_accounts').bootstrapTable('destroy'); + $('#tbl_accounts > tbody').html(""); + for (var i in data.sqldata){ + var row = ''+ + '' + + '' + + '' + + '' + + ''; + $("#tbl_accounts").append(row); + } + $('#tbl_accounts').bootstrapTable({ + pagination: false, + search: false, + height: tblh, + clickToSelect: true + }); + + +} + +function account_new(){ + var accid = account.new(); + var row = ''+ + '' + + '' + + '' + + '' + + ''; + $("#tbl_accounts").prepend(row); +} + +function account_delete(){ + // var ret = parent.usersystem.showMessage("Bestätigung erforderlich","Ausgewählte Konten löschen?",null,"question",msgButtons=["JA","NEIN"],0,1); + // console.log("Delete return:" + ret); + // if (ret == 0){ + //delete + var ids= getTableSelectionIDs(); + console.log(ids); + account.delete(ids); + for (var i in ids){ + $("#tbl_accounts tr#" + ids[i]).remove(); + } + // } +} + +function loaddatalist_accounttypes(){ + var sql = "select type from accounts where type is not null group by type;"; + var data = appdb.dbquery(sql); + for (var i in data.sqldata){ + $("#accounttypes").append(''; + var data = appdb.dbquery(sql); + for (var i in data.sqldata){ + opts += ''; + } + $("#grouplist1").append(opts); + var gl1 = parent.usersystem.getPreference('product_table_1'); + //console.log("grouplist1:" + gl1); + if (gl1 != null){ + $("#grouplist1").val(gl1); + load_productgroup(1); + } + $("#grouplist2").append(opts); + var gl2 = parent.usersystem.getPreference('product_table_2'); + if (gl2 != null){ + $("#grouplist2").val(gl2); + load_productgroup(2); + } + $("#grouplist3").append(opts); + var gl3 = parent.usersystem.getPreference('product_table_3'); + if (gl3 != null){ + $("#grouplist3 ").val(gl3); + load_productgroup(3); + } +} + +function load_productgroup(listnum){ + var listval = $("#grouplist" + listnum + " :selected").val(); + //console.log(listval); + $('#producttable' + listnum + " > tbody").html(""); + var sql ="select id,name,specification,replace(printf(\"%.2f\",grossamount),'.',',') as grossamount from products where productgroup='"+appdb.secvalue(listval)+"' order by name, specification;"; + var products = appdb.dbquery(sql); + + for (var i in products.sqldata){ + var trow = ''; + trow += '
' + products.sqldata[i].name+'
 '+ products.sqldata[i].specification +''+products.sqldata[i].grossamount+'€
'; + trow += ''; + $('#producttable' + listnum + " > tbody").append(trow.replace(/null/g,'')); + } + parent.usersystem.setPreference('product_table_' + listnum,listval); +} + +function addproduct(idproduct){ + //console.log(idproduct); + + var sql = "select id,name,specification,productgroup,grossamount,netamount,vatpercent,replace(printf(\"%.2f\",grossamount),'.',',') as dsp_grossamount from products where id='"+idproduct+"';"; + //console.log(sql); + var product = appdb.dbquery(sql); + var trow = ""; + var bdone = false; + if ((product) && product.sqldata){ + var idprod = product.sqldata[0].id; + var sc_idprod = idprod; + if ((!config.checkout_grouping) || (config.checkout_grouping.value != "1")){ + sc_idprod = Object.keys(shoppingcart).length + "_" + idprod; + } + if ((shoppingcart['products'][sc_idprod]) && (config.checkout_grouping) && (config.checkout_grouping.value == "1")){ + if ($("#checkout_" + sc_idprod) != null){ + var cnum = $("#checkout_" + idprod + " td:first").text(); + cnum = parseInt(cnum) + 1; + $("#checkout_" + idprod + " td:first").html(cnum); + shoppingcart['products'][sc_idprod].quantity = cnum; + bdone = true; + } + + } + + if (bdone == false) { + //console.log("Add Product " + idprod +" to list!"); + trow = ''; + trow += '1' ; + trow += '' + product.sqldata[0].name+'
'+ product.sqldata[0].specification +''+product.sqldata[0].dsp_grossamount+'€'; + trow += ''; + trow += ''; + //console.log(trow); + $("#checkout > tbody").append(trow); + + //console.log(sc_idprod); + shoppingcart['products'][sc_idprod] = {quantity:1,id_product:idprod,productname:product.sqldata[0].name,productgroup:product.sqldata[0].productgroup,grossamount: product.sqldata[0].grossamount,vatamount: product.sqldata[0].vatamount,netamount: product.sqldata[0].netamount}; + } + } + calctotal(); + +} + +function remove_co_product(id){ + //console.log("remove id: "+ id); + $("table#checkout > tbody tr#checkout_"+id).remove(); + delete shoppingcart['products'][id]; + calctotal(); +} + +function calctotal(){ + console.log(shoppingcart); + var sum = 0.00; + for (var i in shoppingcart["products"]){ + sum += shoppingcart["products"][i].quantity * parseFloat(shoppingcart["products"][i].grossamount); + } + $("#sumtotal").html(sum.toFixed(2).replace('.',',') ); + shoppingcart['transaction']['grossamount'] = sum; + + return sum.toFixed(2); + +} + +function clean_shoppingcart(){ + $("#checkout > tbody").html(""); + $("#account").html(""); + $("#sumtotal").html("0,00"); + shoppingcart = {products:{},transaction:{}}; +} + +function view_unpayedshoppingcarts(){ + var sql = "select tr.id,strftime('%d.%m.%Y %H:%M:%S',tr.created) as created,acc.name,printf('%.2f€',sum(td.grossamount * td.quantity)) as totalamount, sum(td.quantity) as products_nbr from transactions tr left join accounts acc on (tr.id_account=acc.id) left join transactiondata td on (tr.id=td.id_transaction) where tr.status='command' group by tr.id order by tr.created asc;"; + $('#tbl_commands > tbody').html(""); + var data = appdb.dbquery(sql); + console.log("commands table list"); + console.log(data); + for (var i in data.sqldata){ + var row = ''+ + ''+data.sqldata[i].id+ '' + + ''+data.sqldata[i].created+ '' + + ''+((data.sqldata[i].name != null)?data.sqldata[i].name:'')+ '' + + ''+data.sqldata[i].totalamount+ '' + + ''+data.sqldata[i].products_nbr+ '' + + '' + + ''; + $("#tbl_commands").append(row); + } + $('#tbl_commands').bootstrapTable({ + pagination: false, + search: false, + }); + $('#dlgCommands').modal('show'); +} + +function loadcommand(id){ + + var sql = "select id_product,id_account,id_transaction from transactiondata where id_transaction='"+id+"';"; + var sc = appdb.dbquery(sql); + clean_shoppingcart(); + shoppingcart['transaction']['id']=sc.sqldata[0]['id_transaction']; + if (sc.sqldata[0]['id_account'] != null){ + set_account(sc.sqldata[0]['id_account'],null); + } + for (var i in sc.sqldata){ + addproduct(sc.sqldata[i]['id_product']); + } + $('#dlgCommands').modal('hide'); +} + +function save_shoppingcart(){ + console.log(shoppingcart['transaction']['status']); + if (shoppingcart['transaction']['status'] === undefined){ + + shoppingcart['transaction']['status'] = 'unknown'; + } + console.log(shoppingcart['transaction']); + + if (Object.keys(shoppingcart['products']) == 0){ + return; + } + var newtrans = true; + if (!shoppingcart['transaction']['id'] || shoppingcart['transaction']['id'] == null){ + shoppingcart['transaction']['id']= appdb.generate_uuid(); + }else { + newtrans = false; + } + + if ($("#sumtotalchangeamount").html() != ""){ + shoppingcart['transaction']['cashbackamount'] = parseFloat($("#sumtotalchangeamount").html().replace(',','.')); + } + if ($("#sumtotalcashamount").html() != ""){ + shoppingcart['transaction']['cashamount'] = parseFloat($("#sumtotalcashamount").html().replace(',','.')); + } + if (shoppingcart['transaction']['payedamount'] >= 0.0){ + shoppingcart['transaction']['status'] = "payed"; + } else { + shoppingcart['transaction']['status'] = "command"; + } + console.log('save shoppingcard'); + if (newtrans == true){ + var tsql = "INSERT INTO transactions (id, payementtype, id_account, payedamount, cashbackamount, cashamount, status, statusdate) VALUES ("+ + "'"+shoppingcart['transaction']['id']+"',"+ + ""+((shoppingcart['transaction']['paymenttype'])?"'"+shoppingcart['transaction']['paymenttype']+"'":'null')+", "+ + ""+((shoppingcart['transaction']['account'] && shoppingcart['transaction']['account']['id'])?"'"+shoppingcart['transaction']['account']['id']+"'":'null')+", "+ + " "+((shoppingcart['transaction']['payedamount'])?shoppingcart['transaction']['payedamount']:'null')+", "+((shoppingcart['transaction']['cashbackamount'])?shoppingcart['transaction']['cashbackamount']:'null')+", "+((shoppingcart['transaction']['cashamount'])?shoppingcart['transaction']['cashamount']:'null')+", '"+shoppingcart['transaction']['status']+"', date('now'));"; + appdb.dbexec(tsql); + } else { + var dsql = "DELETE FROM transactiondata where id_transaction='"+shoppingcart['transaction']['id']+"';"; + appdb.dbexec(dsql); + var updsql = "UPDATE transactions SET payementtype="+((shoppingcart['transaction']['paymenttype'])?"'"+shoppingcart['transaction']['paymenttype']+"'":'null')+", id_account="+((shoppingcart['transaction']['account'] && shoppingcart['transaction']['account']['id'])?"'"+shoppingcart['transaction']['account']['id']+"'":'null')+", payedamount="+((shoppingcart['transaction']['payedamount'])?shoppingcart['transaction']['payedamount']:'null')+", cashbackamount="+((shoppingcart['transaction']['cashbackamount'])?shoppingcart['transaction']['cashbackamount']:'null')+", cashamount="+((shoppingcart['transaction']['cashamount'])?shoppingcart['transaction']['cashamount']:'null')+", status='"+shoppingcart['transaction']['status']+"', statusdate=date('now') WHERE id='"+shoppingcart['transaction']['id']+"';"; + appdb.dbexec(updsql); + } + //console.log(tsql); + for (var i in shoppingcart["products"]){ + var tdsql = "INSERT INTO transactiondata (id, id_transaction, id_product, id_account, netamount, vatamount, grossamount, quantity,productname,productgroup) VALUES('" +appdb.generate_uuid()+"', '"+shoppingcart['transaction']['id']+"', '"+shoppingcart["products"][i]['id_product']+"', "+((shoppingcart['transaction']['account'] && shoppingcart['transaction']['account']['id'])?"'"+shoppingcart['transaction']['account']['id']+"'":'null')+", "+((shoppingcart["products"][i]['netamount'])?shoppingcart["products"][i]['netamount']:'null')+", "+((shoppingcart["products"][i]['vatamount'])?shoppingcart["products"][i]['vatamount']:'null')+", "+((shoppingcart["products"][i]['grossamount'])?shoppingcart["products"][i]['grossamount']:'null')+", "+shoppingcart["products"][i]['quantity']+","+((shoppingcart['products'][i]['productname'])?"'"+shoppingcart['products'][i]['productname']+"'":'null')+","+((shoppingcart['products'][i]['productgroup'])?"'"+shoppingcart['products'][i]['productgroup']+"'":'null')+");"; + // console.log(tdsql); + appdb.dbexec(tdsql); + } + console.log(shoppingcart); + + $("#sumtotalcashamount").html(""); + $("#sumtotalchangeamount").html(""); + + console.log("printing..."); + console.log(localconfig); + //if (localconfig['receipt'] || localconfig['ticket']){ + printreceipt(shoppingcart['transaction']['id'],localconfig['receipt'],localconfig['ticket']); + //} + clean_shoppingcart(); + $('#dlgPayement').modal('hide'); + //printpreview(); +} + +function book_shoppingcart(ptype){ + if (shoppingcart['products'].length == 0){ + return; + } + //shoppingcart['transaction']['id']= appdb.generate_uuid(); + if (shoppingcart['transaction']['account'] && shoppingcart['transaction']['account']['name']){ + $("#pay_account").html(shoppingcart['transaction']['account']['name']); + } else { + $("#pay_account").html(""); + } + if (shoppingcart['transaction']['grossamount']){ + $("#pay_sumtotal").html(shoppingcart['transaction']['grossamount'].toFixed(2).replace('.',',')); + } + shoppingcart['transaction']['paymenttype'] = ptype; + + $("#sumtotalcashamount").html(""); + $("#sumtotalchangeamount").html(""); + $('#'+ptype).attr('checked', 'checked'); + setpayementtype(ptype); + //console.log(shoppingcart['transaction']); + $('#dlgPayement').modal('show'); +} + +function setprinttype(id){ + //console.log("set printtypes"); + + if ($("#print"+id).prop('checked')){ + localconfig[id] = 1; + }else { + localconfig[id] = 0; + } + parent.usersystem.setPreference('paywindow',localconfig); +} + +function view_accounts(){ + var tbls = appdb.dbquery("select id,name from accounts where visible='1' and name is not null;"); + $("#tableslist").html(""); + console.log(tbls); + for (var i in tbls.sqldata){ + $("#tableslist").append(''); + } + $('#dlgTables').modal('show'); +} + +function set_account(id,name){ + if (name == null){ + var xname = appdb.dbquery("select name from accounts where id='"+id+"'"); + name = xname.sqldata[0]['name']; + } + $("#account").html(name); + if (!shoppingcart['transaction']['account']){ + shoppingcart['transaction']['account'] ={}; + } + shoppingcart['transaction']['account']['id'] = id; + shoppingcart['transaction']['account']['name'] = name; + $('#dlgTables').modal('hide'); +} + +function setpayementtype(ptype){ + console.log("set payement type: " + ptype); + if (ptype == 'card'){ + $("#keypad").hide(); + addvalue(null,2); + shoppingcart['transaction']['payedamount'] = shoppingcart['transaction']['grossamount']; + shoppingcart['transaction']['cashamount'] = null; + shoppingcart['transaction']['cashbackamount'] = null; + } else { + $("#keypad").show(); + shoppingcart['transaction']['payedamount'] = null; + shoppingcart['transaction']['cashamount'] = null; + shoppingcart['transaction']['cashbackamount'] = null; + } + if ($("#"+ptype).prop('checked')){ + shoppingcart['transaction']['paymenttype'] =ptype; + } +} + +function addvalue(num,type){ + //type 0=string add, 1 = sum add, 2 = 1:1, 3 =backspace, 4=clear + if (type == 1){ + var cval = $("#sumtotalcashamount").html(); + if (cval == ""){ cval = 0;} + else { + cval = parseFloat(cval.replace(',','.')) + } + cval = cval+parseFloat(num); + $("#sumtotalcashamount").html(cval.toString().replace('.',',')); + } else if (type == 0) { + var cval = $("#sumtotalcashamount").html(); + if (num == ','){ + if (cval.indexOf(',') < 0){ + $("#sumtotalcashamount").html(cval + num); + } + }else { + $("#sumtotalcashamount").html(cval + num); + } + } else if (type == 2) { + $("#sumtotalcashamount").html($("#pay_sumtotal").html()); + } else if (type == 3) { + var cval = $("#sumtotalcashamount").html(); + cval = cval.substring(0,cval.length-1); + $("#sumtotalcashamount").html(cval); + } else if (type == 4) { + $("#sumtotalcashamount").html(""); + } + var ncash = $("#sumtotalcashamount").html(); + var ntotal = parseFloat($("#pay_sumtotal").html().replace(',','.')); + if (ncash == ""){ + ncash = 0.00; + }else { + ncash = parseFloat(ncash.replace(',','.')); + } + nchange = ncash-ntotal; + if (nchange > 0.00){ + $("#sumtotalchangeamount").html(nchange.toFixed(2).replace('.',',')); + }else { + $("#sumtotalchangeamount").html(""); + } + if (ncash >= ntotal){ + shoppingcart['transaction']['payedamount'] = shoppingcart['transaction']['grossamount']; + } + //console.log(shoppingcart['transaction']); +} \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/products/index.html b/CGI/tmpl/app/cashbox/module/products/index.html new file mode 100644 index 0000000..fdacd9f --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/products/index.html @@ -0,0 +1,51 @@ + + + + + + + + + + +Produkte + + + +
+ + + + + + + + + + + + +
ProduktSpecifikationGruppeNetto (€)MwSt. (%)Brutto (€)
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/products/index.js b/CGI/tmpl/app/cashbox/module/products/index.js new file mode 100644 index 0000000..8d7df96 --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/products/index.js @@ -0,0 +1,113 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); +var tblh = winh-54; + +function initpage(){ + loaddatalist_productgroup(); + loaddatalist_vatpercent(); + loadtable(); +} + +// $("input,select").on('focusout',function(){ +// console.log("TEST"); +// }); + +function loaddatalist_productgroup(){ + var sql = "select productgroup from products where productgroup is not null group by productgroup;"; + var data = appdb.dbquery(sql); + for (var i in data.sqldata){ + $("#productgroup").append(''); + } + $('#tbl_datasets').bootstrapTable({ + pagination: false, + search: false, + height: tblh, + clickToSelect: true + }); +} + +// function settings_edit(){ +// var settings_id= getTableSelectionID(); +// if (settings_id){ +// parent.browserapp.loadmodulepage('settings','form_datastore',{"id":settings_id}); +// } + +// } + +function getTableSelectionID(){ + var sel = $('#tbl_datasets').bootstrapTable('getSelections'); + var id = null; + + if (sel){ id=sel[0]._id; } + console.log("Selected ID:" + id); + return id; + } + + function getTableSelectionIDs(){ + var sel = $('#tbl_datasets').bootstrapTable('getSelections'); + var ids = []; + if (sel){ + for (var s in sel){ + ids.push(s._id); + } + } + return ids; + } + + \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/settings/lib/datastore.js b/CGI/tmpl/app/cashbox/module/settings/lib/datastore.js new file mode 100644 index 0000000..4aceded --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/settings/lib/datastore.js @@ -0,0 +1,46 @@ +var datastore = { + new: function(){ + parent.browserapp.loadmodulepage('settings','form_datastore',{"id":""}); + }, + edit: function(){ + var settings_id= getTableSelectionID(); + console.log(settings_id); + if (settings_id){ + parent.browserapp.loadmodulepage('settings','form_datastore',{"id":settings_id}); + } + }, + delete: function(){ + + }, + import: function(){ + + }, + export: function(){ + + }, + test: function(){ + + }, + save: function(){ + var dts ={}; + $("input,select").each(function(){ + var inp = $(this); + //console.log(inp); + dts[inp.attr("id")] = inp.val(); + }); + console.log(dts); + //console.log(mpref); + if ((!mpref) || (mpref.cfg.id == "")){ + var keyname = dts['name'].toLowerCase(); + console.log(keyname); + keyname = keyname.replace(/[^a-z0-9-_]/g,""); + console.log(keyname); + mpref.cfg.id = "db."+ keyname; + } + if (dts.name){ + console.log("Before save:" + mpref.cfg.id); + parent.usersystem.setPreference(mpref.cfg.id,dts); + } + + } +} \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/stations/index.html b/CGI/tmpl/app/cashbox/module/stations/index.html new file mode 100644 index 0000000..3a4352b --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/stations/index.html @@ -0,0 +1,49 @@ + + + + + + + + + + +Rechnungen + + + +
+ + + + + + + + + + +
NameTypStandortMitarbeiterStatus
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/stations/index.js b/CGI/tmpl/app/cashbox/module/stations/index.js new file mode 100644 index 0000000..7f398a4 --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/stations/index.js @@ -0,0 +1,79 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); +var tblh = winh-54; + +function initpage(){ + console.log(appdb.url); + loadtable(); +} + + + +function loadtable(){ + var sql = 'SELECT id, hostname, "type", currentip, staffmember, status, location FROM stations;'; + var data = appdb.dbquery(sql); + //console.log(data.sqldata); + for (var i in data.sqldata){ + var cstatus = "secondary"; + if (data.sqldata[i].status== "active"){ cstatus = "success"; } + if (data.sqldata[i].status== "inactive"){ cstatus = "danger"; } + // if (data.sqldata[i].status== "verschickt"){ cstatus = "warning"; } + // var acolor = ""; + // if (data.sqldata[i].totalamount.startsWith("-")){ acolor = "text-danger"; } + var row = ''+ + '' + + '' + data.sqldata[i].hostname+ '' + + '' + data.sqldata[i].type+ '' + + '' + data.sqldata[i].location+ '' + + '' + data.sqldata[i].staffmember+ '' + + '' + data.sqldata[i].status+ '' + + ''; + $("#tbl_stations").append(row); + } + $('#tbl_stations').bootstrapTable({ + pagination: false, + search: false, + height: tblh, + clickToSelect: true + }); + + +} + + +function station_edit(){ + var st_id= getTableSelectionID(); + if (st_id){ + parent.browserapp.loadmodulepage('stations','station',{"id":st_id}); + } + +} + +function station_delete(){ + +} + +function station_duplicate(){ + +} + + + +function getTableSelectionID(){ + var sel = $('#tbl_stations').bootstrapTable('getSelections'); + var id = null; + + if (sel){ id=sel[0]._id; } + console.log("Selected ID:" + id); + return id; +} + +function getTableSelectionIDs(){ + var sel = $('#tbl_stations').bootstrapTable('getSelections'); + var ids = []; + if (sel){ + for (var s in sel){ + ids.push(s._id); + } + } + return ids; +} \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/templates/form_printtemplate.html b/CGI/tmpl/app/cashbox/module/templates/form_printtemplate.html new file mode 100644 index 0000000..04ab82f --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/templates/form_printtemplate.html @@ -0,0 +1,65 @@ + + + + + + + + + + +Druck Template + + + +
+
+ +
+
+ + +
+
+
+
+ + +
+
+
+
+
+ + +
+
+
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/templates/form_printtemplate.js b/CGI/tmpl/app/cashbox/module/templates/form_printtemplate.js new file mode 100644 index 0000000..ea81536 --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/templates/form_printtemplate.js @@ -0,0 +1,4 @@ +function initpage(){ + console.log(parent.usersystem.getsysinfo()); + //parent.usersystem.setProperty("testproperty",{id:"TEST"}); +} \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/templates/index.html b/CGI/tmpl/app/cashbox/module/templates/index.html new file mode 100644 index 0000000..55c4f51 --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/templates/index.html @@ -0,0 +1,34 @@ + + + + + + + + + + +Vorlagen + + + +
+ +
+ + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/templates/index.js b/CGI/tmpl/app/cashbox/module/templates/index.js new file mode 100644 index 0000000..62f7667 --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/templates/index.js @@ -0,0 +1,5 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); + +function initpage(){ + +} diff --git a/CGI/tmpl/app/cashbox/module/templates/lib/printtemplate.js b/CGI/tmpl/app/cashbox/module/templates/lib/printtemplate.js new file mode 100644 index 0000000..6ca67db --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/templates/lib/printtemplate.js @@ -0,0 +1,14 @@ +var printtemplate = { + new: function(){ + + }, + edit: function(){ + + }, + duplicate: function(){ + + }, + delete: function(){ + + } +} diff --git a/CGI/tmpl/app/cashbox/module/transactions/index.html b/CGI/tmpl/app/cashbox/module/transactions/index.html new file mode 100644 index 0000000..10cb6c6 --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/transactions/index.html @@ -0,0 +1,95 @@ + + + + + + + + + + +Transaktionen + + + +
+ + + + + + + + + + + + + +
ZeitpunktKontoBetragBezahltCash / WechselgeldBezahlartAnz. ProdukteStatus
+
+ + + + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/cashbox/module/transactions/index.js b/CGI/tmpl/app/cashbox/module/transactions/index.js new file mode 100644 index 0000000..ac6dd6b --- /dev/null +++ b/CGI/tmpl/app/cashbox/module/transactions/index.js @@ -0,0 +1,135 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); +var tblh = winh-54; +// var cfg = { +// byear: 2018 +// } +function initpage(){ + console.log(appdb.url); + // loadyears(); + loadtable(); +} + + + +function loadtable(){ + var sql = "select tr.id,strftime('%d.%m.%Y %H:%M:%S',tr.created) as created ,tr.created as datesort,acc.name,replace(printf('%.2f€',sum(td.grossamount * td.quantity)),'.',',') as totalamount,replace(printf('%.2f€',payedamount),'.',',') as payedamount,payementtype, replace(printf('%.2f€',cashamount),'.',',') as cashamount,replace(printf('%.2f€',cashbackamount),'.',',') as cashbackamount, sum(td.quantity) as products_nbr,status from transactions tr left join accounts acc on (tr.id_account=acc.id) left join transactiondata td on (tr.id=td.id_transaction) group by tr.id order by tr.created desc;"; + $('#tbl_transactions').bootstrapTable('destroy'); + $("#tbl_transactions > tbody").html(""); + var data = appdb.dbquery(sql); + //console.log(data.sqldata); + for (var i in data.sqldata){ + var cstatus = "secondary"; + if (data.sqldata[i].status== "command"){ cstatus = "warning"; } + if (data.sqldata[i].status== "payed"){ cstatus = "success"; } + if (data.sqldata[i].status== "canceled"){ cstatus = "danger"; } + if (data.sqldata[i].status== "payed") { data.sqldata[i].status= "bezahlt";} + if (data.sqldata[i].status== "canceled") { data.sqldata[i].status= "storniert";} + if (data.sqldata[i].status== "command") { data.sqldata[i].status= "bestellt";} + var row = ''+ + '' + + ''+data.sqldata[i].datesort+' ' + data.sqldata[i].created+ '' + + '' + ((data.sqldata[i].name == null)?'':data.sqldata[i].name)+ '' + + + '' + data.sqldata[i].totalamount+ '' + + '' + data.sqldata[i].payedamount+ '' + + '' + data.sqldata[i].cashamount+ '/'+ data.sqldata[i].cashbackamount+ '' + + '' + ((data.sqldata[i].payementtype == null)?'':data.sqldata[i].payementtype)+ '' + + '' + ((data.sqldata[i].products_nbr == null)?'':data.sqldata[i].products_nbr)+ '' + + '' + data.sqldata[i].status+ '' + + ''; + $("#tbl_transactions").append(row); + } + $('#tbl_transactions').bootstrapTable({ + pagination: false, + search: false, + height: tblh, + clickToSelect: true + }); + + +} + + +function view_details(){ + var trid= getTableSelectionID(); + //console.log(trid); + var sql = "select tr.id,tr.quantity,pr.name, pr.productgroup,replace(printf('%.2f€',tr.grossamount),'.',',') as grossamount from transactiondata tr join products pr on (tr.id_product=pr.id) where tr.id_transaction='"+trid+"'"; + $('#tbl_transdata > tbody').html(""); + var data = appdb.dbquery(sql); + //console.log("commands table list") + //console.log(data); + for (var i in data.sqldata){ + var row = ''+ + ''+data.sqldata[i].quantity+ '' + + ''+((data.sqldata[i].name != null)?data.sqldata[i].name:'')+ '' + + ''+data.sqldata[i].grossamount+ '' + + '' + + ''; + $("#tbl_transdata").append(row); + } + $('#tbl_transdata').bootstrapTable({ + pagination: false, + search: false, + }); + $('#dlgTransdata').modal('show'); +} + +function delete_transaction(){ + var ids = getTableSelectionIDs(); + console.log(ids); + var sql="DELETE FROM transactiondata WHERE id_transaction in ('"+ ids.join("','")+"')"; + appdb.dbexec(sql); + var sql2="DELETE FROM transactions WHERE id in ('"+ ids.join("','")+"')"; + appdb.dbexec(sql2); + for ( i in ids){ + $("#tbl_transactions tr#" + ids[i]).remove(); + } + //$('#tbl_transactions').bootstrapTable('refresh'); +} + +function deletetransdata(id){ + var sql="DELETE FROM transactiondata WHERE id='"+ id+"';"; + appdb.dbexec(sql); + $('#tbl_transdata tr#' + id).remove(); + loadtable(); + //$('#tbl_transactions').bootstrapTable('refresh'); +} + + +function cancel_transactions(){ + var ids = getTableSelectionIDs(); + var sql="UPDATE transactions set status='canceled',statusdate=date('now') WHERE in ('"+ ids.join("','")+"');"; + appdb.dbexec(sql); + for ( i in ids){ + $("#tbl_transactions tr#" + ids[i] + " > td.status").attr("class",'status btn-danger'); + $("#tbl_transactions tr#" + ids[i] + " > td.status").html("storniert"); + } +} + +function change_timerange(){ + +} + +function getTableSelectionID(){ + var sel = $('#tbl_transactions').bootstrapTable('getSelections'); + var id = null; + + if (sel){ id=sel[0]._id; } + console.log("Selected ID:" + id); + return id; +} + +function getTableSelectionIDs(){ + + var sel = $('#tbl_transactions').bootstrapTable('getSelections'); + //console.log("selections"); + //console.log(sel); + var ids = []; + if (sel){ + for (var s in sel){ + //console.log(sel[s]._id); + ids.push(sel[s]._id); + } + } + return ids; +} \ No newline at end of file diff --git a/bin/jsontobashvar.pl b/CGI/tmpl/app/cashbox/module/transactions/lib/transaction.js similarity index 100% rename from bin/jsontobashvar.pl rename to CGI/tmpl/app/cashbox/module/transactions/lib/transaction.js diff --git a/CGI/tmpl/app/coloradio/index.tt b/CGI/tmpl/app/coloradio/index.tt new file mode 100644 index 0000000..bcb7da2 --- /dev/null +++ b/CGI/tmpl/app/coloradio/index.tt @@ -0,0 +1,64 @@ + + + + + + + + + +Invoice Journal + + + + + + +
+ +
+
+ +
+ + +
+ +
+ + +
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/coloradio/module/audio/index.js b/CGI/tmpl/app/coloradio/module/audio/index.js new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/coloradio/module/audio/index.tt b/CGI/tmpl/app/coloradio/module/audio/index.tt new file mode 100644 index 0000000..829c478 --- /dev/null +++ b/CGI/tmpl/app/coloradio/module/audio/index.tt @@ -0,0 +1,150 @@ + + + + + + + + + + +
+
+ +
+ +
+ +
+
+ Home + + + + + + + +
+ +
+
+
+
+
+
+
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + +
+ + + +
+
+ + + +
+
+ + + +
+ +
+
+
+ + + +
+ +
+ + + +
+
+ + + +
+
+
+
+ + + +
+
+ + + +
+
+ + + +
+
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+
+
+ +
+ +
+ + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/coloradio/module/convert/index.js b/CGI/tmpl/app/coloradio/module/convert/index.js new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/coloradio/module/convert/index.tt b/CGI/tmpl/app/coloradio/module/convert/index.tt new file mode 100644 index 0000000..fef200b --- /dev/null +++ b/CGI/tmpl/app/coloradio/module/convert/index.tt @@ -0,0 +1,25 @@ +
+
+

Convert Audio

+
+
+ + [% fieldhidden('id','audio','ident') %] + [% fieldfile('origfile','audio','Input File','','','') %] + [% fieldeditbox('outpath','audio','OutputPath','','') %] + [% fieldeditbox('address','members','Address','','readonly') %] + [% fieldeditbox('zip','members','CP','w3-quarter','readonly') %] + [% fieldeditbox('city','members','Uerschaft','w3-half','readonly') %] + [% fieldeditbox('country','members','Land','w3-quarter','readonly') %] +
+
+ [% fieldeditbox('phone','members','Telefon','w3-third','readonly') %] + [% fieldeditbox('nationality','members','Nationalitéit','w3-third','readonly') %] + [% fielddatebox('birthday','members','Gebuertsdatum','w3-third','readonly') %] +
+ +
+
+
\ No newline at end of file diff --git a/CGI/tmpl/app/coloradio/module/dashboard/index.js b/CGI/tmpl/app/coloradio/module/dashboard/index.js new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/coloradio/module/dashboard/index.tt b/CGI/tmpl/app/coloradio/module/dashboard/index.tt new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/coloradio/module/spots/index.js b/CGI/tmpl/app/coloradio/module/spots/index.js new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/coloradio/module/spots/index.tt b/CGI/tmpl/app/coloradio/module/spots/index.tt new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/coloradio/module/stations/index.js b/CGI/tmpl/app/coloradio/module/stations/index.js new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/coloradio/module/stations/index.tt b/CGI/tmpl/app/coloradio/module/stations/index.tt new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/coloradio/module/sync/index.js b/CGI/tmpl/app/coloradio/module/sync/index.js new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/coloradio/module/sync/index.tt b/CGI/tmpl/app/coloradio/module/sync/index.tt new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/coloradio/playlists/index.js b/CGI/tmpl/app/coloradio/playlists/index.js new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/coloradio/playlists/index.tt b/CGI/tmpl/app/coloradio/playlists/index.tt new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/creorga/index.tt b/CGI/tmpl/app/creorga/index.tt new file mode 100644 index 0000000..2141a43 --- /dev/null +++ b/CGI/tmpl/app/creorga/index.tt @@ -0,0 +1,89 @@ + + + + + + + + + + + + + Creorga + + + + + + + + + +
+ + + +
+ + + + + + + + + + + diff --git a/CGI/tmpl/app/creorga/module/calendar/calorganisation.tt b/CGI/tmpl/app/creorga/module/calendar/calorganisation.tt new file mode 100644 index 0000000..70d07bd --- /dev/null +++ b/CGI/tmpl/app/creorga/module/calendar/calorganisation.tt @@ -0,0 +1,473 @@ + + + + + Organisation Personnel + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/CGI/tmpl/app/creorga/module/calendar/calvacancy.tt b/CGI/tmpl/app/creorga/module/calendar/calvacancy.tt new file mode 100644 index 0000000..7fbec8b --- /dev/null +++ b/CGI/tmpl/app/creorga/module/calendar/calvacancy.tt @@ -0,0 +1,69 @@ + + + + + Congé + + + + + + + + + + + + + + + + + + +
+ + +
+ + +
+
+ +
+ + + + + + + + + + + + + + + diff --git a/CGI/tmpl/app/creorga/module/calendar/index.tt b/CGI/tmpl/app/creorga/module/calendar/index.tt new file mode 100644 index 0000000..70611cf --- /dev/null +++ b/CGI/tmpl/app/creorga/module/calendar/index.tt @@ -0,0 +1,99 @@ + + + + + + + Organisation Enfants + + + + + + + + + + + + + + + + +
+ + +
+ + +
+
+ +
+ + + + + + + + + + + + + + + diff --git a/CGI/tmpl/app/creorga/module/calendar/js/calactivity.js b/CGI/tmpl/app/creorga/module/calendar/js/calactivity.js new file mode 100644 index 0000000..03b349f --- /dev/null +++ b/CGI/tmpl/app/creorga/module/calendar/js/calactivity.js @@ -0,0 +1,967 @@ +//Source-code licensed under EUPL v1.2 ( Copyright 2019 By DKS s.à r.l. - Kilian Saffran - Luxembourg ) + +var pconfig = {}; +var initdate = new Date(); +initdate.setDate(1); +var lastmonthday = null; +var firstmonday = null; +var lastsunday = null; +var winh = window.innerHeight - 140; +var tblacc = null; +var lblfreq = {daily:'jour(s)',weekly:'semaine(s)',monthly:'mois'}; +var amonth = ['', 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Aôut', 'Septembre','Octobre', 'Novembre', 'Décembre']; +var linkpos = {}; +var posday = {}; +var delac = null; +var curfreq ={}; +var redate = /\d\d.\d\d.\d\d\d\d/; +var tblcal = null; +var vacpos = {}; +var vacdata = null; +var drsql = ""; +var eventdates = {}; +var curevcolor = ""; +var alltr = {}; +var rtblall = {}; +var crsel = []; +function initdata() { + //curcfg.loadconfig(parent.apppref.getpreference("creorga.support.database.currentdb.num")); + load_helpers(); + $('#view_list').hide(); + pconfig = parent.apppref.getpreference("calorganisation"); + if (!pconfig) { + pconfig = {} + } + pconfig.view = 'table'; + //if (!pconfig.printlayout) { + pconfig.printlayout = 'table'; + parent.apppref.setpreference("calorganisation",pconfig); + //} + if (pconfig.calmonth) { + + initdate = new Date(encodeparam(pconfig.calmonth, 'month').replace(/'/g, '')); + $("#calmonth").val(pconfig.calmonth); + } else { + $("#calmonth").val(initdate.getMonth() + '.' + initdate.getFullYear()); + pconfig.calmonth = initdate.getMonth() + '.' + initdate.getFullYear(); + } + + load_staff_selection('filter_staff'); + load_staff_selection('staffuuid'); + load_calendar_month(); + + + +} + +$('#calmonth').on('dp.hide',function(e){ + set_calmonth(); +}); + +function load_calendar_month() { + + firstmonday = new Date(initdate.getFullYear(), initdate.getMonth(), -1 * parseInt(initdate.getWeekNumber()) + 2); + if (firstmonday > initdate) { + firstmonday = new Date(initdate.getFullYear(), initdate.getMonth(),firstmonday.getDate()-7); + } + lastmonthday = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 1); + + lastsunday = new Date(lastmonthday.getFullYear(), lastmonthday.getMonth(), lastmonthday.getDate() + 7 - parseInt(lastmonthday.getWeekNumber())); + + var weeknum = 0; + var cmonth = initdate.getMonth(); + var sday = []; + firstmonday = new Date(initdate.getFullYear(), initdate.getMonth(), -1 * parseInt(initdate.getWeekNumber()) + 2); + if (firstmonday > initdate) { + firstmonday = new Date(initdate.getFullYear(), initdate.getMonth(),firstmonday.getDate()-7); + } + load_vacancy_data(); + + load_calendar_data(); + +} + +function load_calendar_data() { + var where = []; + if ((pconfig.filterstaff) && (pconfig.filterstaff.length > 0)) { + where.push(" st.uuid in ('"+ pconfig.filterstaff.join("','") + "')"); + } + if ((pconfig.filteractivity) && (pconfig.filteractivity.length > 0)) { + where.push(" cal.description in ('"+ pconfig.filteractivity.join("','") + "')"); + } + var sql = "SELECT cal.uuid, cal.datefrom, cal.dateto, '
' || strftime('%Y%m%d',cal.datefrom) ||'
' || strftime('%d.%m.%Y',cal.datefrom) AS tbldatefrom ,strftime('%Y%m%d',cal.datefrom) AS strdatefrom, strftime('%Y%m%d',cal.dateto) AS strdateto,cal.timefrom, cal.timeto, cal.description, cal.location, cal.color, cal.freq, '[\"' || GROUP_CONCAT(sp.staffuuid,'\",\"') || '\"]' as staffuuid, GROUP_CONCAT(coalesce(st.surname,'') || ' ' || coalesce(st.prename,''), '
' ) as staffnames ,'[\"' || GROUP_CONCAT(st.color,'\",\"') || '\"]' as staffcolors from eventcalendar cal " + ((pconfig.filterstaff)?"":" left ") +" join staffplanning sp on (cal.uuid=sp.eventcalendaruuid " + ((pconfig.filterstaff)?" AND sp.staffuuid in ('"+ pconfig.filterstaff.join("','") + "')":"") +") left join staff st on (sp.staffuuid=st.uuid) "+ + + " where (cal.datefrom between '" + initdate.toISOString().substring(0,10) + "' and '" + lastmonthday.toISOString().substring(0,10) + "' and (cal.dateto >= '" + initdate.toISOString().substring(0,10) + "' or cal.dateto is null)) or (cal.dateto between '" + initdate.toISOString().substring(0,10) + "' and '" + lastmonthday.toISOString().substring(0,10) + "' and cal.datefrom < '" + initdate.toISOString().substring(0,10) + "') or ((cal.datefrom <= '" + firstmonday.toISOString().substring(0,10) + "') and ((cal.dateto >= '" + lastmonthday.toISOString().substring(0,10) + "') or cal.dateto is null)) "+ ((where.length > 0)?" AND (" + where.join(" or ") + ")":"")+" group by cal.uuid order by cal.datefrom,cal.dateto;"; + + var caldata = parent.appdb.dbquery(sql); + + caldata = caldata.sqldata; + get_vacancy_data(); + + for (var c in caldata) { + if (!eventdates[caldata[c].uuid]) { + eventdates[caldata[c].uuid] = {}; + } + var freq = caldata[c].freq; + if (freq !== '') { + freq += ';DTSTART='+caldata[c].strdatefrom + 'T000000Z'; + if ((caldata[c].dateto !== '') && (caldata[c].dateto <= lastmonthday.toISOString().substring(0,10))){ + freq += ';UNTIL='+caldata[c].strdateto + 'T000000Z'; + }else { + freq += ';UNTIL='+lastmonthday.toISOString().substring(0,10).replace('-','') + 'T000000Z'; + } + } + + if (freq !== ""){ + try { + var rule = RRule.fromString(freq); + rall = rule.all(); + } catch (ex){ + + } + } else { + continue; + } + for (var r in rall){ + if ((rall[r].toISOString().substring(0,10) >= initdate.toISOString().substring(0,10)) && (rall[r].toISOString().substring(0,10) <= lastmonthday.toISOString().substring(0,10))) { + if (!eventdates[caldata[c].uuid][rall[r].toISOString().substring(8,10)]) { + eventdates[caldata[c].uuid][rall[r].toISOString().substring(8,10)] = 1; + } + } + + } + } + load_timetable(); +} + +function load_timetable() { + $('#tbl_timetable').html(""); + drsql = getdaterangesql(); + var thead = []; + var totalstaff = []; + var weekrange = {}; + var ltd = ""; + var bdate = new Date(initdate.toISOString().substring(0,10)); + var enddate = new Date(initdate.getFullYear(),initdate.getMonth() + 1, 0); + while (bdate <= enddate){ + if (!weekrange[parseInt(bdate.getWeekNumber())]) { + weekrange[parseInt(bdate.getWeekNumber())] = 0; + } + weekrange[parseInt(bdate.getWeekNumber())] += 1; + + var head = ((bdate.getDate() < 10)?"0"+bdate.getDate():bdate.getDate()); + if (thead.indexOf(head) == -1) { + thead.push(head); + } + totalstaff.push(0); + bdate = new Date (bdate.getFullYear(),bdate.getMonth(),bdate.getDate() + 1) + } + + var actdata = getstaffactivity(); + + var lev = ""; + var lst = ""; + + var ev = {}; + + var alltrx = {}; + for (var ac in actdata){ + var evid = actdata[ac].eventuuid; + + if ((evid) && (lev !== evid) && (!alltrx[evid])) { + ev = {"eventuuid":evid,"description": actdata[ac].description ,"timefrom":actdata[ac].timefrom,"timeto":actdata[ac].timeto,"eventcolor":actdata[ac].eventcolor}; + for (var h in thead){ + ev[thead[h]] = {}; + } + alltrx[evid] = ev; + + } + var cday = actdata[ac].daydate.substring(8,10); + + if ((evid) && (eventdates[evid]) && (eventdates[evid][cday])) { + + alltrx[evid][cday]={"staffuuid":JSON.parse(actdata[ac].staffuuid),"staffcolor":JSON.parse(actdata[ac].staffcolor),"staffnames":JSON.parse(actdata[ac].staffnames)}; + + } + lev = null; + lev = evid; + + } + + var vacdata = getstaffvacancy(); + var staffuuids = []; + for (var vc in vacdata){ + var dx = new Date(vacdata[vc].daydate).toISOString().substring(8,10); + if (staffuuids.indexOf(vacdata[vc].staffuuid)) { + staffuuids.push(vacdata[vc].staffuuid); + } + for (var e in alltrx){ + + if (alltrx[e][dx]['staffuuid']) { + var idx = alltrx[e][dx]['staffuuid'].indexOf(vacdata[vc].staffuuid); + + if (idx != -1) { + + if (vacdata[vc].timefrom==vacdata[vc].timeto) { + alltrx[e][dx]['staffcolor'][idx] = "transparent"; + }else { + + var tfto =((parseInt(vacdata[vc].timeto.substring(1,2)) - parseInt(vacdata[vc].timefrom.substring(1,2)))/8)*100; + var clr = alltrx[e][dx]['staffcolor'][idx]; + + alltrx[e][dx]['staffcolor'][idx] = "linear-gradient(to right, "+convertHex(clr,1)+" 0%,"+convertHex(clr,1)+" "+tfto+"%,rgba(0,0,0,0) 100%)"; + } + + } + } + } + + } + var cspan = 0; + var hdays = get_vacancydays(); + + var strhead = 'Semaine'; + for (var w in weekrange){ + strhead += '' + w + ''; + cspan += weekrange[w]; + } + + strhead += ''; + for (var th in thead){ + var sty=""; + if (hdays[thead[th]]) { + sty =' style="background-color: '+((hdays[thead[th]]=='vacancy')?'#FF7145':'#FF9C2A')+' !important;" '; + } + strhead += ''+ thead[th]+''; + } + + strhead += ''; + $('#tbl_timetable').append(strhead); + $('#tbl_timetable').append(''); + cspan +=1; + + var actchange = ""; + + for (var a in alltrx){ + + var trn = ""; + trn += ''+alltrx[a].timefrom+' - '+alltrx[a].timeto+''; + for (var h in thead){ + if ((hdays[thead[h]]) && (hdays[thead[h]] == 'vacancy')) { + trn += ''; + continue; + } + if (alltrx[a][thead[h]]) { + + trn += ''; + if (alltrx[a][thead[h]]["staffcolor"]) { + var xx = alltrx[a][thead[h]]["staffcolor"]; + for (var r in xx){ + var col = ""; + if (xx[r] == 'transparent') { + col = 'color: transparent; display: none;'; + }else { + if (xx[r].indexOf("linear-gradient") == -1){ + totalstaff[parseInt(thead[h])-1] += 1; + } + + } + trn += '
'+alltrx[a][thead[h]]["staffnames"][r] +'
'; + } + + } + + trn += ''; + }else { + trn += ''; + } + } + trn += ''; + + $('#tbl_timetable').append(trn); + + } + + $('#tbl_timetable').append(''); + var tfoot = "Total:"; + for (var i in totalstaff){ + tfoot += ''+ (totalstaff[i] == 0?"":totalstaff[i]) +''; + } + tfoot += ''; + $('#tbl_timetable').append(tfoot); + + $('#tbl_timetable').append(''); + + if ((!(pconfig.filterstaff)) || ((pconfig.filterstaff) && (pconfig.filterstaff.length != 1))){ + + sortHTML('#tbl_timetable','.tblstaffrow', 'td:nth-child(1)'); + } +} + +function getHTMLElements (id) { + if (typeof id == "object") { + return [id]; + } else { + return document.querySelectorAll(id); + } +} + +function sortHTML(id, sel, sortvalue) { + var a, b, i, ii, y, bytt, v1, v2, cc, j; + a = getHTMLElements(id); + for (i = 0; i < a.length; i++) { + for (j = 0; j < 2; j++) { + cc = 0; + y = 1; + while (y == 1) { + y = 0; + b = a[i].querySelectorAll(sel); + for (ii = 0; ii < (b.length - 1); ii++) { + bytt = 0; + if (sortvalue) { + v1 = b[ii].querySelector(sortvalue).innerHTML.toLowerCase(); + v2 = b[ii + 1].querySelector(sortvalue).innerHTML.toLowerCase(); + } else { + v1 = b[ii].innerHTML.toLowerCase(); + v2 = b[ii + 1].innerHTML.toLowerCase(); + } + if ((j == 0 && (v1 > v2)) || (j == 1 && (v1 < v2))) { + bytt = 1; + break; + } + } + if (bytt == 1) { + b[ii].parentNode.insertBefore(b[ii + 1], b[ii]); + y = 1; + cc++; + } + } + if (cc > 0) {break;} + } + } +}; + + +function load_vacancy_data() { + var sql = "select vacancydate,strftime('%Y%m%d',vacancydate) as strvacancydate,vacancydateto,case when vacancydateto is not null then strftime('%Y%m%d',vacancydateto) else null end as strvacancydateto,vacancydescription from vacancy " + + "where (vacancydate between '" + firstmonday.toISOString().substring(0,10) + "' and '" + lastsunday.toISOString().substring(0,10) + "' and (vacancydateto >= '" + firstmonday.toISOString().substring(0,10) + "' or vacancydateto is null)) or (vacancydateto between '" + firstmonday.toISOString().substring(0,10) + "' and '" + lastsunday.toISOString().substring(0,10) + "' and vacancydate < '" + firstmonday.toISOString().substring(0,10) + "') or ((vacancydate <= '" + firstmonday.toISOString().substring(0,10) + "') and (vacancydateto >= '" + lastsunday.toISOString().substring(0,10) + "')) " + + "order by vacancydate,vacancydateto;"; + var caldata = parent.appdb.dbquery(sql); + caldata = caldata.sqldata; + for (var c in caldata) { + var freq = "FREQ=DAILY"; + freq += ';DTSTART='+caldata[c].strvacancydate + 'T000000Z'; + + if (caldata[c].vacancydateto !== ''){ + freq += ';UNTIL='+caldata[c].strvacancydateto + 'T000000Z'; + }else { + freq += ';UNTIL='+caldata[c].strvacancydate + 'T000000Z'; + } + try { + var rule = RRule.fromString(freq); + var rall = rule.all(); + + for (var r in rall){ + if ((rall[r].toISOString().substring(0,10) >= initdate.toISOString().substring(0,10)) && (rall[r].toISOString().substring(0,10) <= lastmonthday.toISOString().substring(0,10)+' T00:00.000Z')) { + + $("#" + linkpos["" + rall[r].toISOString().substring(0,10)] + " > div.panel-day > div.panel-dayhead").addClass(((caldata[c].vacancydateto == '')?'calvacancy':'calvacrange')); + $("#" + linkpos["" + rall[r].toISOString().substring(0,10)] + " > div.panel-day > div.panel-dayhead > div#vacname").remove(); + $("#" + linkpos["" + rall[r].toISOString().substring(0,10)] + " > div.panel-day > div.panel-dayhead").prepend('
'+ caldata[c].vacancydescription + "
 "); + } + } + } catch (ex){ + } + } +} + +function load_staff_selection(objid,option){ + var stdata = parent.appdb.dbquery("select uuid, coalesce(surname,'') || ' ' || coalesce(prename,'') as name,case when color is null then '#000' else color end as color from staff order by surname,prename"); + stdata = stdata.sqldata; + for (var s in stdata){ + $('#' + objid).append(''); + } + if (objid == 'filter_staff') { + $('#' + objid).multiselect({enableHTML: true,numberDisplayed:1,nonSelectedText:"Tous",allSelectedText: 'Tous',nSelectedText: ' selections'}); + if (pconfig.filterstaff) { + $('#' + objid).multiselect('select',pconfig.filterstaff); + } + }else { + var copt = {}; + if (option) { + copt = option; + } + copt['enableHTML'] = true; + copt['nonSelectedText']="Sélectionner un(e) employé(e)..."; + copt['numberDisplayed']=5; + copt['allSelectedText']='Tous'; + copt['nSelectedText']=' selections'; + + $('#' + objid).multiselect(copt); + } + +} + + + +function load_activity_selection(objid,type) { + var stdata = parent.appdb.dbquery("select uuid,description as activity,color from eventcalendar group by description,color;"); + stdata = stdata.sqldata; + for (var s in stdata){ + $('#' + objid).append(''); + } + if (pconfig.filteractivity) { + $('#' + objid).multiselect({enableHTML: true,numberDisplayed:1,nonSelectedText:"Tous",allSelectedText: 'Tous',nSelectedText: ' selections'}); + $('#' + objid).multiselect('select',pconfig.filteractivity); + } else if (type == 'multiple') { + $('#' + objid).multiselect({enableHTML: true,numberDisplayed:1,nonSelectedText:"Tous",allSelectedText: 'Tous',nSelectedText: ' selections'}); + } else { + var copt = {}; + copt['enableHTML'] = true; + copt['nonSelectedText']="Sélectionner une activité.."; + $('#' + objid).multiselect(copt); + $('#' + objid).multiselect('select',null); + } +} + +function set_calmonth(){ + pconfig.calmonth =$("#calmonth").val(); + parent.apppref.setpreference("calorganisation",pconfig); + parent.app.loadpage('modules/calendar/calorganisation.html',{calmonth:pconfig.calmonth}); +} + + +function onnextmonth() { +var xdate = parent.appdb.dbquery("select STRFTIME('%m.%Y',date('"+initdate.toISOString().substring(0,10)+"','+1 month')) as ndate"); +pconfig.calmonth = xdate.sqldata[0].ndate; +parent.apppref.setpreference("calorganisation", pconfig); +parent.app.loadpage('modules/calendar/calorganisation.html',{calmonth:pconfig.calmonth}); +} + +function onpreviousmonth() { +var xdate = parent.appdb.dbquery("select STRFTIME('%m.%Y',date('"+initdate.toISOString().substring(0,10)+"','-1 month')) as ndate"); +pconfig.calmonth = xdate.sqldata[0].ndate; +parent.apppref.setpreference("calorganisation", pconfig); +parent.app.loadpage('modules/calendar/calorganisation.html',{calmonth:pconfig.calmonth}); +} + +function dlg_vacancy_detail(stuuids) { + + var obj = stuuids.split(',') + var vsql = "select coalesce(surname,'') || ' ' || coalesce(prename,'') as staffname,color from staff where uuid in ('" + obj.join("','") + "');"; + + var vst = parent.appdb.dbquery(vsql); + vst = vst.sqldata; + $('#vacdetail').html(""); + for (var v in vst){ + $('#vacdetail').append('
'+ vst[v].staffname+'
'); + } + $("#dlg_vacancy_detail").modal('show'); + +} + +function dlg_event(uuid, type) { + $('#staffuuid').multiselect('deselectAll', false); + + $('#staffuuid').multiselect('updateButtonText'); + + if (type== "ins") { + $('#btndeleteevent').hide(); + + }else { + $('#btndeleteevent').show(); + } + $('#frmeditevent #freqinterval').hide(); + $('#frmeditevent #freqmonthly').hide(); + $('#frmeditevent #freqweekly').hide(); + $('#frmeditevent #freq_monthly_byday').show(); + $('#frmeditevent #freq_monthly_bymonthday').hide(); + $('#frmeditevent #freq').val(""); + $('#frmeditevent .active').removeClass('active'); + load_activity_selection('cmb_clone_activity','single'); + $('#cmb_clone_activity').multiselect('select', ['none']); + if ((type == 'upd') || (type == 'ins')) { + var evdata = { + uuid: '0', + description: '', + activityuuid:'', + location: '', + color: '', + datefrom:new Date().toISOString().substring(0,10), + dateto:'', + staffuuid:'', + timefrom: '00:00', + timeto: '00:00', + freq: '' + }; + + if (type == 'upd') { + var evsql = "SELECT uuid, strftime(\"%d.%m.%Y\",datefrom) as datefrom, strftime(\"%d.%m.%Y\",dateto) as dateto, timefrom, timeto, description, location, color, freq, GROUP_CONCAT(st.staffuuid,',') as staffuuid FROM eventcalendar ev left join staffplanning st on (ev.uuid=st.eventcalendaruuid) where ev.uuid='" + uuid.uuid + "' group by ev.uuid;"; + evdata = parent.appdb.dbquery(evsql); + evdata = evdata.sqldata[0]; + if (evdata.freq !== '') { + var tmpfreq = evdata.freq.split(';'); + for (var t in tmpfreq){ + if (tmpfreq[t] !== '') { + var spl = tmpfreq[t].split("="); + evdata[spl[0].toLowerCase()] = spl[1].toLowerCase(); + } + } + } + } + for (var w in evdata) { + if ($("#frmeditevent #" + w)) { + if (w == 'staffuuid') { + if (evdata[w] === '') { + $("#frmeditevent #" + w).multiselect('select',[]); + } else { + $("#frmeditevent #" + w).multiselect('select',evdata[w].split(',')); + } + + }else if (w == 'color') { + + curevcolor = evdata[w]; + $("#frmeditevent #color").val(evdata[w]); + $('#frmeditevent #color').minicolors('value',{color: evdata[w]}); + } + else { + $("#frmeditevent #" + w).val(evdata[w]); + if ((w === "description") && (evdata[w] !== "")) { + $("#cmb_clone_activity").multiselect('select',evdata[w]); + } + } + } + } + if ((evdata.freq == 'weekly') && (evdata.byday)) { + var bd = evdata.byday.split(','); + for (var i in bd){ + document.getElementById('weekly_byday_' + bd[i]).setAttribute("checked",true); + $('#frmeditevent #weekly_byday_' + bd[i]).parent().addClass("active"); + } + } + if (evdata.freq == 'monthly') { + $('#freq_monthly_byday').hide(); + $('#freq_monthly_bymonthday').hide(); + $('#pnl_monthly_byday').removeAttr("checked"); + $('#pnl_monthly_bymonthday').removeAttr("checked"); + if (evdata.byday) { + document.getElementById('pnl_monthly_byday').setAttribute("checked",true); + $('#frmeditevent #pnl_monthly_byday').parent().addClass("active"); + $('#freq_monthly_byday').show(); + var bd = evdata.byday.split(','); + var adpos = []; + var awday = []; + for (var i in bd){ + var wday = bd[i].substr(bd[i].length-2); + var pos = bd[i].substring(0,bd[i].length-2); + awday.push(wday.toLowerCase()); + adpos.push(pos); + } + for (var i in adpos){ + document.getElementById('monthly_bydaypos_' + adpos[i]).setAttribute("checked",true); + $('#frmeditevent #monthly_bydaypos_' + adpos[i]).parent().addClass("active"); + } + for (var i in awday){ + document.getElementById('monthly_bydaywday_' + awday[i]).setAttribute("checked",true); + $('#frmeditevent #monthly_bydaywday_' + awday[i]).parent().addClass("active"); + } + }else if (evdata.bymonthday) { + document.getElementById('pnl_monthly_bymonthday').setAttribute("checked",true); + $('#frmeditevent #pnl_monthly_bymonthday').parent().addClass("active"); + $('#freq_monthly_bymonthday').show(); + var bd = evdata.bymonthday.split(','); + for (var i in bd){ + document.getElementById('monthly_bymonthday_' + bd[i]).setAttribute("checked",true); + $('#frmeditevent #monthly_bymonthday_' + bd[i]).parent().addClass("active"); + } + } + } + setfreq(); + $("#edit_event").modal('show'); + } +} + +function save_event() { + var sql1 = new Array(); + var sql2 = new Array(); + if ($('#timefrom').val() == $('#timeto').val() || $('#timefrom').val() == "00:00" || $('#timeto').val() == "00:00"){ + errormsg("Erreur","les heures doivent être différent et différent de la valeur 00:00!"); + return false; + } + if ($('#timefrom').val() > $('#timeto').val()){ + errormsg("Erreur","l'heure de début ne peux pas être supérieur à l'heure de fin!"); + return false; + } + if (!$('#staffuuid').val()){ + errormsg("Erreur","Vous devez selectionner au moin 1 membre du staff!"); + return false; + } + if ($('#dateto').val() != '' && (encodeparam($('#datefrom').val()) > encodeparam($('#dateto').val())) ) { + errormsg("Erreur","La Date début ne peut pas être supérieur à la date fin!"); + return false; + } + + var type = 'ins'; + var cuuid = ""; + if ($("#frmeditevent #uuid").val() != 0) { + type = 'upd'; + cuuid = $("#frmeditevent #uuid").val(); + } else { + cuuid = parent.appdb.generate_uuid(); + } + var cactv = $('#frmeditevent #cmb_clone_activity').val(); + if (cactv == 'none') { + var dtest = parent.appdb.dbquery("select count(*) as cnt from eventcalendar where description='"+ $("#frmeditevent #description").val() + "';"); + if (dtest && dtest.sqldata[0].cnt != "0") { + $("#frmeditevent #description").val($("#frmeditevent #description").val() + " Copy"); + } + }else if ((cactv != $("#frmeditevent #description").val()) || (curevcolor != $("#frmeditevent #color").val())) { + parent.appdb.dbexec("update eventcalendar set description='"+$("#frmeditevent #description").val()+"',color='"+$("#frmeditevent #color").val()+"' where description='"+ cactv +"';"); + //update description and color off all events with same name + } + var freqdata = {}; + var cfreq = $("#frmeditevent #freq").val(); + $("#frmeditevent :input").each(function() { + var input = $(this); + + if (input.attr("id") && (input.attr("id") != "staffuuid") && (input.attr("id") != "cmb_clone_activity")) { + if ((input.attr("type") == "checkbox") && (input.attr("id").indexOf(cfreq) >= 0)){ + var xd = input.attr("id").split("_"); + if (input.attr("checked")) { + if (!freqdata[xd[1]]) { + freqdata[xd[1]] = new Array(); + } + freqdata[xd[1]].push(input.val()); + } + } + else if ((input.attr("type") == "radio") && (input.attr("id").indexOf(cfreq) >= 0)) { + var xd = input.attr("id").split("_"); + if (input.attr("checked")) { + freqdata['freqtype'] = xd[2]; + } + } + else if ((input.attr("type") != "checkbox") && ((input.attr("type") != "radio"))){ + if ((input.attr("id") == 'interval') || (input.attr("id") == 'freq')) { + freqdata[input.attr("id")] = input.val(); + } else if ((type == 'ins') && (input.attr("id") != 'staffuuid')) { + + sql1.push('"' + input.attr("id") + '"'); + if (input.attr("id") == 'uuid') { + if (input.val() == "" || input.val() == "0") { + sql2.push("'" + cuuid + "'"); + } else { + sql2.push("'" + input.val() + "'"); + } + } else { + var ival = encodeparam(input.val(), input.attr('type')); + sql2.push(ival); + } + } else { + if ((input.attr("id") != 'uuid') && (input.attr("id") != 'staffuuid')){ + var ival = encodeparam(input.val(), input.attr('type')); + sql2.push('"' + input.attr("id") + '"=' + ival); + } + } + } + } + + }); + if (!freqdata.freqtype) { + freqdata['freqtype'] = curfreq.freqtype; + } + + var strfreq =""; + if (cfreq != "") { + strfreq='FREQ=' + cfreq.toUpperCase()+';INTERVAL=' + freqdata.interval +';'; + if ((cfreq == 'weekly') && (freqdata.byday)){ + strfreq += 'BYDAY=' + freqdata.byday.join(","); + } + if ((cfreq == 'monthly') && (freqdata.bydaypos) || ((freqdata.bydaywday)) || (freqdata.bymonthday)){ + strfreq += freqdata.freqtype.toUpperCase() + '='; + if (freqdata.freqtype == 'bymonthday') { + strfreq += freqdata.bymonthday.join(',') + ";" + }else { + var abyday = new Array(); + for (var p in freqdata.bydaypos){ + for (var w in freqdata.bydaywday){ + abyday.push(freqdata.bydaypos[p] + freqdata.bydaywday[w]); + } + } + strfreq += abyday.join(","); + } + } + if (strfreq.slice(-1) == ';') { + strfreq = strfreq.substring(0,strfreq.length-1); + } + } + var staffuuids = $('#staffuuid').val(); + var xsql=[]; + var delsql = ""; + if (type != 'ins') { + xsql.push("DELETE FROM staffplanning where eventcalendaruuid = '"+cuuid+"';"); + } + var staffinssql = ""; + if (staffuuids && (staffuuids.length != 0)) { + staffinssql = "INSERT INTO staffplanning (eventcalendaruuid,staffuuid) VALUES "; + var tmps = []; + for (var s in staffuuids){ + tmps.push("('"+cuuid+"','"+staffuuids[s]+"')"); + } + staffinssql += tmps.join(',') + ";"; + xsql.push(staffinssql); + } + + if (type == 'upd') { + sql2.push('freq=' + encodeparam(strfreq)); + xsql.push("UPDATE eventcalendar SET " + sql2.join(',') + " where \"uuid\"='" + cuuid + "';"); + } else { + sql1.push('freq'); + sql2.push(encodeparam(strfreq)); + xsql.push("INSERT INTO eventcalendar (" + sql1.join(',') + ") VALUES (" + sql2.join(',') + ");"); + } + for (var i in xsql){ + parent.appdb.dbexec(xsql[i]); + } + + //load_calendar_data(); + + $("#frmeditevent #uuid").val("0"); + $("#edit_event").modal('hide'); + globelreq.send_request({ + page: 'calorganisation', + module: 'calendar', + header: 'Organisation Personnel' + }, null); +} + +function confirm_delete_event() { + $("#confirm_delete_event").modal('show'); + return false; +} + +function delete_event() { + + parent.appdb.dbexec("DELETE FROM eventcalendar where uuid='" + $('#frmeditevent #uuid').val()+"';"); + parent.appdb.dbexec("DELETE FROM staffplanning where eventcalendaruuid='" + $('#frmeditevent #uuid').val()+"';"); + + load_activity_selection('filter_activity','multiple'); + load_calendar_data(); + $("#confirm_delete_event").modal('hide'); + + return false; +} + +function setfreq() { + + curfreq.freq = $('#freq option:selected').val(); + $('#freqinterval').hide(); + $('#freqmonthly').hide(); + $('#freqweekly').hide(); + if (curfreq.freq != "") { + $('#lblfreq').text(lblfreq[curfreq.freq]); + $('#freqinterval').show(); + if (curfreq.freq != 'daily') { + $('#freq' + curfreq.freq).show(); + } + } + +} + +function invertColor(hexTripletColor) { + var color = hexTripletColor; + color = color.substring(1); // remove # + color = parseInt(color, 16); // convert to integer + color = 0xFFFFFF ^ color; // invert three bytes + color = color.toString(16); // convert to hex + color = ("000000" + color).slice(-6); // pad with leading zeros + color = "#" + color; // prepend # + return color; +} + +// function onselactivity(objid) { +// pconfig.filteractivity = $('#' + objid).val()//(()?$('#' + objid).val().split(','):null); +// parent.apppref.setpreference("calorganisation",pconfig); +// load_calendar_data(); +// } +function onselstaff(objid) { + + pconfig.filterstaff = $('#' + objid).val(); + parent.apppref.setpreference("calorganisation",pconfig); + load_calendar_data(); +} + +function get_vacancy_data() { + vacpos = {}; + var where = ""; + if ((pconfig.filterstaff) && (pconfig.filterstaff.length > 0)) { + where = " st.uuid in ('"+ pconfig.filterstaff.join("','") + "')"; + } + var sql = getvacancysql(new Date(initdate.toISOString().substring(0,10)),new Date(lastmonthday.toISOString().substring(0,10)),where); + vacdata = parent.appdb.dbquery(sql); + vacdata = vacdata.sqldata; + + for (var v in vacdata) { + var freq = "FREQ=DAILY"; + + freq += ';DTSTART='+vacdata[v].strdatefrom + 'T000000Z'; + if (vacdata[v].vacancydateto != ''){ + freq += ';UNTIL='+vacdata[v].strdateto + 'T000000Z'; + }else { + freq += ';UNTIL='+vacdata[v].strstrdatefrom + 'T000000Z'; + } + try { + var vacrule = RRule.fromString(freq); + var vacrall = vacrule.all(); + } catch (ex){ + + } + for (var r in vacrall){ + if ((vacrall[r].toISOString().substring(0,10) >= initdate.toISOString().substring(0,10)) && (vacrall[r].toISOString().substring(0,10) <= lastmonthday.toISOString().substring(0,10)+'T00:00.000Z')) { + if (!vacpos[vacrall[r].toISOString().substring(0,10)]) { + vacpos[vacrall[r].toISOString().substring(0,10)] = {'staffuuid':[vacdata[v].staffuuid],color:[vacdata[v].color]}; + }else { + vacpos[vacrall[r].toISOString().substring(0,10)]['staffuuid'].push(vacdata[v].staffuuid); + vacpos[vacrall[r].toISOString().substring(0,10)]['color'].push(vacdata[v].color); + } + } + } + } +} + +function getvacancysql(datefrom2,dateto2,where) { + var sqlret = "SELECT vc.uuid, vc.datefrom,strftime('%Y%m%d',vc.datefrom) as strdatefrom,' ' || strftime('%Y%m%d',vc.datefrom) || strftime('%Y%m%d',vc.dateto) || '' || strftime('%d.%m.%Y',vc.datefrom) || ' - ' || strftime('%d.%m.%Y',vc.dateto) as tbldaterange, vc.dateto,strftime('%Y%m%d',vc.dateto) as strdateto,vc.timefrom,vc.timeto "+ +", vc.staffuuid,coalesce(st.surname,'') || ' ' || coalesce(st.prename,'') as staffname,vc.type,st.color FROM vacancycalendar vc left join staff st on (vc.staffuuid=st.uuid) " + + "LEFT JOIN ( SELECT * FROM ( "; + var sqldays = new Array(); + + for (var cdate2=datefrom2;cdate2<=dateto2;cdate2.setDate(cdate2.getDate() +1)){ + if ((cdate2.getDay() != 0)){ + sqldays.push ("SELECT date('" + cdate2.toISOString().substring(0,10) +"') as daydate"); + } + } + + sqlret += sqldays.join(' UNION ALL ') + " )) oph " + + "ON (oph.daydate BETWEEN vc.datefrom AND vc.dateto) " + + "WHERE oph.daydate IS NOT NULL and strftime('%w',oph.daydate) not in ('0') " + + "AND oph.daydate NOT IN ( SELECT vacancydate FROM vacancy WHERE vacancydateto IS NULL AND vacancydate BETWEEN '"+initdate.toISOString().substring(0,10) + "' AND '" + dateto2.toISOString().substring(0,10)+"') " + + ((where != '')?" AND " + where + " ":"") + + " GROUP BY vc.uuid ORDER BY st.uuid,vc.datefrom, vc.dateto; "; + return sqlret; +} + + + +function getdaterangesql(){ + var adays = []; + var bdate = new Date(initdate.getFullYear(), initdate.getMonth(), initdate.getDate()); + var bend = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 0); + for (var cdt = bdate; cdt <= bend; cdt.setDate(cdt.getDate() + 1)) { + + adays.push("select date('" + cdt.toISOString().substring(0,10) + "') as daydate"); + + } + return adays.join(" UNION "); +} + +function getstaffactivity() { + var bdate = new Date(initdate.getFullYear(), initdate.getMonth(), initdate.getDate()); + var bend = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 0); + var actsql = "select dd.daydate as daydate, '[\"' || GROUP_CONCAT(ev.staffuuid,'\",\"') || '\"]' AS staffuuid,'[\"' || GROUP_CONCAT(st.color,'\",\"') || '\"]' as staffcolor,'[\"' || GROUP_CONCAT(coalesce(substr(st.surname,1,2),'') || ' ' || coalesce(substr(st.prename,1,2),''), '\",\"' ) || '\"]' as staffnames, ev.timefrom as timefrom,ev.timeto as timeto, ev.description as description,ev.color as eventcolor,ev.uuid as eventuuid from ( "+ +"select sp.staffuuid,ec.description,ec.color,ec.uuid, "+ +"case when datefrom < '"+bdate.toISOString().substring(0,10)+"' then '"+bdate.toISOString().substring(0,10)+"' else datefrom end as datefrom, "+ +"case when dateto > '"+bend.toISOString().substring(0,10)+"' then '"+bend.toISOString().substring(0,10)+"' else dateto end as dateto, "+ +"timefrom,timeto "+ +"from eventcalendar ec join staffplanning sp on (ec.uuid=sp.eventcalendaruuid) where datefrom <= '"+bend.toISOString().substring(0,10)+"' and (dateto is null or dateto >= '"+bdate.toISOString().substring(0,10)+"')) ev "+ +"join staff st on (ev.staffuuid=st.uuid) "+ +"join ("+ drsql+") dd "+ +"on (dd.daydate between ev.datefrom and ev.dateto) "; +var wh = []; +if (pconfig.filterstaff) { + wh.push("st.uuid in ('"+ pconfig.filterstaff.join("','")+"')"); +} + +if (wh.length > 0) { + actsql += " WHERE " + wh.join( " OR "); +} +actsql += " GROUP BY dd.daydate,ev.uuid ORDER BY ev.description,dd.daydate,ev.timefrom,ev.timeto; "; + + var actdata = parent.appdb.dbquery(actsql); + actdata = actdata.sqldata; + return actdata; +} + +function getstaffvacancy() { + var bdate = new Date(initdate.getFullYear(), initdate.getMonth(), initdate.getDate()); + var bend = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 0); + var vacsql = "select dd.daydate as daydate,staffuuid, timefrom,timeto,type from ( "+ +"select staffuuid, "+ +"case when datefrom < '"+bdate.toISOString().substring(0,10)+"' then '"+bdate.toISOString().substring(0,10)+"' else datefrom end as datefrom, "+ +"case when dateto > '"+bend.toISOString().substring(0,10)+"' then '"+bend.toISOString().substring(0,10)+"' else dateto end as dateto, "+ +"timefrom,timeto, type "+ +"from vacancycalendar where (datefrom is null or datefrom <= '"+bend.toISOString().substring(0,10)+"') and (dateto is null or dateto >= '"+bdate.toISOString().substring(0,10)+"')) vc "+ +"join ("+drsql+") dd "+ +"on (dd.daydate between vc.datefrom and vc.dateto); "; +var wh = []; +if (pconfig.filterstaff) { + wh.push("staffuuid in ('"+ pconfig.filterstaff.join("','")+"')"); +} +if (wh.length > 0) { + vacsql += " WHERE " + wh.join( " OR "); +} + + var vacdata = parent.appdb.dbquery(vacsql); + vacdata = vacdata.sqldata; + return vacdata; +} + +function get_vacancydays(){ + var bdate = new Date(initdate.getFullYear(), initdate.getMonth(), initdate.getDate()); + var bend = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 0); + var sql = "select dd.daydate,strftime('%d',dd.daydate) as strday,type from ( "+ +"select vacancydate, "+ +"case when vacancydateto is null then vacancydate else vacancydateto end as vacancydateto, "+ +"case when vacancydateto is null then 'vacancy' else 'holiday' end as type, "+ +"vacancydescription from vacancy where (vacancydate between '"+bdate.toISOString().substring(0,10)+"' and '"+bend.toISOString().substring(0,10)+"' and (vacancydateto >= '"+bdate.toISOString().substring(0,10)+"' or vacancydateto is null)) or (vacancydateto between '"+bdate.toISOString().substring(0,10)+"' and '"+bend.toISOString().substring(0,10)+"' and vacancydate < '"+bdate.toISOString().substring(0,10)+"') or ((vacancydate <= '"+bdate.toISOString().substring(0,10)+"') and (vacancydateto >= '"+bend.toISOString().substring(0,10)+"')) order by vacancydate,vacancydateto) vc "+ +"join ( "+ drsql +") dd "+ +"on (dd.daydate between vc.vacancydate and vc.vacancydateto) group by dd.daydate order by daydate;"; + var hdata = parent.appdb.dbquery(sql); + + hdata = hdata.sqldata; + var hs = {}; + for (var h in hdata){ + hs[hdata[h].strday] = hdata[h].type; + } + return hs; +} + +function convertHex(hex,opacity){ + hex = hex.replace('#',''); + r = parseInt(hex.substring(0,2), 16); + g = parseInt(hex.substring(2,4), 16); + b = parseInt(hex.substring(4,6), 16); + + result = 'rgba('+r+','+g+','+b+','+opacity+')'; + return result; +} + +function oncloneactivity(actv_id) { + var aid = $("#cmb_clone_activity :selected").val(); + + if (aid != '') { + + $("#frmeditevent #description").val(aid); + var seltxt = $("#cmb_clone_activity :selected").text(); + + var colre = //; + var ccolor =seltxt.match(colre); + + $('#frmeditevent #color').minicolors('value',{color: ccolor[1]}); + } +} + +function onselcreche(){ + +} + + + + diff --git a/CGI/tmpl/app/creorga/module/calendar/js/calchilds.js b/CGI/tmpl/app/creorga/module/calendar/js/calchilds.js new file mode 100644 index 0000000..d23e2c8 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/calendar/js/calchilds.js @@ -0,0 +1,423 @@ +//Source-code licensed under EUPL v1.2 ( Copyright 2019 By DKS s.à r.l. - Kilian Saffran - Luxembourg ) + +var pconfig = {}; + +var initdate = new Date(); +initdate.setDate(1); + + +var amonth = ['', 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Aôut', 'Septembre', 'Octobre','Novembre', 'Décembre']; +var drsql = ""; + +function initdata() { + load_helpers(); + pconfig = parent.apppref.getpreference("calchilds"); + if (!pconfig){ + pconfig = {}; + } + + var infogrp ="Nombre d'enfants"; + if (!pconfig.calendar){ + pconfig.calendar = "childsbyplan"; + } + load_calendar(); +} + +function load_calendar(){ + if (pconfig.calmonth) { + + initdate = new Date(encodeparam(pconfig.calmonth, 'month').replace(/'/g, '')); + $("#calmonth").val(pconfig.calmonth); + } else { + $("#calmonth").val(initdate.getMonth() + '.' + initdate.getFullYear()); + pconfig.calmonth = initdate.getMonth() + '.' + initdate.getFullYear(); + } + drsql = getdaterangesql(); + $('#tbl_timetable').html(""); + if (pconfig.calendar == "childsbyweekhours"){ + load_calendar_weekhours(); + }else if (pconfig.calendar == "childsbyplan"){ + load_calendar_plan(); + } +} + +$('#calmonth').on('dp.hide', function() { + set_calmonth(); +}); +$("#filter_calendar option[value='"+ pconfig.calendar+"']").attr("selected", true); +$('#filter_calendar').on('change', function(){ + onselcalendar($(this).attr("id")); +}); + +function load_calendar_weekhours(){ //enfants par heures contractuelles + var cgr = parent.appdb.dbquery("select uuid,grpname,maxchilds,color from groups"); + cgr = cgr.sqldata; + var hdays = get_vacancydays(); + var strhead = 'Semaine'; + var totalspan = 2; + var coldata=getcolumndays(); + var coldays=coldata[0]; + var weekrange=coldata[1]; + for (var w in weekrange){ + strhead += '' + w + ''; + totalspan += weekrange[w]; + } + + strhead += 'h / Semaine'; + for (var th in coldays){ + var sty=""; + if (hdays[coldays[th]]) { + sty =' class="'+((hdays[coldays[th]]=='vacancy')?'calvacancy':'calvacrange')+'" '; + } + strhead += ''+ coldays[th]+''; + } + strhead += ''; + $('#tbl_timetable').append(strhead); + $('#tbl_timetable').append(''); + var tfooter = {}; + for (var c in coldays){ + tfooter[parseInt(coldays[c])] = 0; + } + for (var g in cgr) { + $('#tbl_timetable').append('Groupe: '+ cgr[g].grpname+' (max. '+cgr[g].maxchilds+' enfants)'); + var ttdata = getchildweekhoursbygroup(cgr[g].uuid); + + if (!ttdata){ + $('#tbl_timetable').append(' Pas de données'); + continue; + } + + var alltr ={}; + + for (var tt in ttdata) { + var dtmp = ttdata[tt].weekhours; + if (!alltr[ttdata[tt].weekhours]){ + alltr[ttdata[tt].weekhours] = {}; + for (var c in coldays){ + alltr[ttdata[tt]["weekhours"]][coldays[c]] = 0; + } + + } + } + for (var t in ttdata){ + var rdata = ttdata[t]; + var ctday = parseInt(rdata.daydate.substring(8,10)); + if (alltr[rdata.weekhours]){ + if (alltr[rdata.weekhours][ctday]){ + alltr[rdata.weekhours][ctday] = ttdata[t].childcnt; + }else { + alltr[rdata.weekhours][ctday] = ttdata[t].childcnt; + } + } + + } + for (var a in alltr){ + var trn = ''+a+' h'; + for (var h in coldays){ + if (hdays[coldays[h]] == 'vacancy') { + trn += ''; + continue; + } + trn += '' +((alltr[a][coldays[h]] != 0)?alltr[a][coldays[h]]:'')+ ''; + trn +=''; + if (alltr[a][coldays[h]] != 0){ + tfooter[parseInt(coldays[h])] += parseInt(alltr[a][coldays[h]]); + } + } + trn += ''; + $('#tbl_timetable').append(trn); + } + } + $('#tbl_timetable').append(''); + var tstrfoot = "Total:"; + tfooter = tfooter; + for (var f in coldays){ + tstrfoot += ''+ ((tfooter[parseInt(coldays[f])] != 0)?tfooter[parseInt(coldays[f])]:'') +''; + } + tstrfoot += ""; + $('#tbl_timetable').append(tstrfoot); +} + + + +function load_calendar_plan(){ + + var cgr = parent.appdb.dbquery("select uuid,grpname,maxchilds,color from groups"); + cgr = cgr.sqldata; + var hdays = get_vacancydays(); + var strhead = 'Semaine'; + var totalspan = 1; + var coldata=getcolumndays(); + var coldays=coldata[0]; + var weekrange=coldata[1]; + for (var w in weekrange){ + strhead += '' + w + ''; + totalspan += weekrange[w]; + } + + strhead += ''; + for (var th in coldays){ + var sty=""; + if (hdays[coldays[th]]) { + sty =' class="'+((hdays[coldays[th]]=='vacancy')?'calvacancy':'calvacrange')+'" '; + } + strhead += ''+ coldays[th]+''; + } + strhead += ''; + $('#tbl_timetable').append(strhead); + $('#tbl_timetable').append(''); + var tfooter = {}; + for (var c in coldays){ + tfooter[parseInt(coldays[c])] = 0; + } + + for (var g in cgr) { + $('#tbl_timetable').append('Groupe: '+ cgr[g].grpname+' (max. '+cgr[g].maxchilds+' enfants)'); + var ttdata = getplannedtimesbygroup(cgr[g].uuid); + if (!ttdata){ + $('#tbl_timetable').append(' Pas de données'); + continue; + } + var alltr ={}; + for (var tt in ttdata) { + var dtmp = ttdata[tt].daytime; + if (!alltr[ttdata[tt].daytime]){ + alltr[ttdata[tt].daytime] = {}; + for (var c in coldays){ + alltr[ttdata[tt]["daytime"]][coldays[c]] = 0; + } + } + } + + for (var t in ttdata){ + var rdata = ttdata[t]; + var ctday = parseInt(rdata.daydate.substring(8,10)); + if (alltr[rdata.daytime]){ + if (alltr[rdata.daytime][ctday]){ + alltr[rdata.daytime][ctday] = ttdata[t].childcnt; + }else { + alltr[rdata.daytime][ctday] = ttdata[t].childcnt; + } + } + + } + + for (var a in alltr){ + var dsptime = a.match(/.{1,5}/g); + var trn = ''+a+''; + if (dsptime.length == 2){ + trn = ''+dsptime[0]+ ' - ' + dsptime[1]+''; + } + if (dsptime.length == 3){ + trn = ''+dsptime[0]+ ' - ' + dsptime[1]+ '
'+ +dsptime[2]+ ' - ?
'; + } + if (dsptime.length == 4){ + trn = ''+dsptime[0]+ ' - ' + dsptime[1]+ '
'+ +dsptime[2]+ ' - ' + dsptime[3] + '
'; + } + + for (var h in coldays){ + if (hdays[coldays[h]] == 'vacancy') { + trn += ''; + continue; + } + trn += '' +((alltr[a][coldays[h]] != 0)?alltr[a][coldays[h]]:'')+ ''; + trn +=''; + if (alltr[a][coldays[h]] != 0){ + tfooter[parseInt(coldays[h])] += parseInt(alltr[a][coldays[h]]); + } + } + trn += ''; + + $('#tbl_timetable').append(trn); + } + } + $('#tbl_timetable').append(''); + var tstrfoot = "Total:"; + for (var f in coldays){ + tstrfoot += ''+ ((tfooter[parseInt(coldays[f])] != 0)?tfooter[parseInt(coldays[f])]:'') +''; + } + tstrfoot += ""; + $('#tbl_timetable').append(tstrfoot); + } + + + +function set_calmonth(){ + pconfig.calmonth =$("#calmonth").val(); + parent.apppref.setpreference("calchilds",pconfig); + load_calendar(); + +} + + +function onnextmonth() { + var xdate = parent.appdb.dbquery("select STRFTIME('%m.%Y',date('"+initdate.toISOString().substring(0,10)+"','+1 month')) as ndate"); + pconfig.calmonth = xdate.sqldata[0].ndate; + parent.apppref.setpreference("calchilds", pconfig); + load_calendar(); + +} + +function onpreviousmonth() { + var xdate = parent.appdb.dbquery("select STRFTIME('%m.%Y',date('"+initdate.toISOString().substring(0,10)+"','-1 month')) as ndate"); + pconfig.calmonth = xdate.sqldata[0].ndate; + parent.apppref.setpreference("calchilds", pconfig); + load_calendar(); + +} + + + +function getplannedtimesbygroup(groupfilter){ + var endmdate = new Date(initdate.getFullYear(),initdate.getMonth()+1,0); + var d1 = ['','mon','tue','wed','thu','fri', 'sat']; + var sql = "select daydate,count(childuuid) as childcnt,groupuuid,case "; + var adt = []; + for (var i=1;i dd.daydate or ch.leavedate < dd.daydate then '' else coalesce("+ d1[i]+"timebegin, '') || coalesce("+ d1[i]+"timeend, '') end || "+ + " case when "+ d1[i]+"timebegin2 = "+ d1[i]+"timeend2 or ch.entrydate > dd.daydate or ch.leavedate < dd.daydate then '' else coalesce("+ d1[i]+"timebegin2, '') || coalesce("+ d1[i]+"timeend2, '') end as "+ d1[i]+"time"); + + } + sql += adt3.join(",") + ' from childs ch join planning pl on (ch.uuid = pl.childuuid) JOIN (' + + drsql + ") dd on ( dd.daydate BETWEEN pl.datebegin AND pl.dateend) " + + "where ch.leavedate >= date('"+initdate.toISOString().substring(0,10)+"') and ch.entrydate <= date('"+endmdate.toISOString().substring(0,10)+"') " + + " GROUP BY daydate, pl.childuuid) aa " + + "group by daydate,childuuid,montime,tuetime,wedtime,thutime,fritime,sattime) where daytime is not null and groupuuid='"+ groupfilter +"' group by daydate,daytime,groupuuid "+ + "order by daydate,daytime;"; + + var ttdata = parent.appdb.dbquery(sql); + ttdata = ttdata.sqldata; + return ttdata; + +} + +function getchildweekhoursbygroup(groupfilter) { + var endmdate = new Date(initdate.getFullYear(),initdate.getMonth()+1,0); + var d1 = ['','mon','tue','wed','thu','fri', 'sat']; + var sql = "select daydate, count(childuuid) as childcnt, groupuuid, case "; + var adt = []; + for (var i=1;i dd.daydate or ch.leavedate < dd.daydate then '' else coalesce("+ d1[i]+"timebegin, '') || coalesce("+ d1[i]+"timeend, '') end || "+ + " case when "+ d1[i]+"timebegin2 = "+ d1[i]+"timeend2 or ch.entrydate > dd.daydate or ch.leavedate < dd.daydate then '' else coalesce("+ d1[i]+"timebegin2, '') || coalesce("+ d1[i]+"timeend2, '') end as "+ d1[i]+"time"); + + } + sql += adt3.join(",") + ","; + + var adt4 = []; + for (var i=1;i= date('"+initdate.toISOString().substring(0,10)+"') and ch.entrydate <= date('"+endmdate.toISOString().substring(0,10)+"') GROUP BY daydate,pl.childuuid )" + + " group by daydate, childuuid, groupuuid ) " + +"where weekhours is not null and groupuuid='"+ groupfilter +"'" + +" group by daydate, weekhours, groupuuid order by daydate,weekhours;"; + + var ttdata = parent.appdb.dbquery(sql); + ttdata = ttdata.sqldata; + return ttdata; + } + + + +function getdaterangesql(){ + var adays = []; + var bdate = new Date(initdate.getFullYear(), initdate.getMonth(), initdate.getDate()); + var bend = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 0); + for (var cdt = bdate; cdt <= bend; cdt.setDate(cdt.getDate() + 1)) { + if ((cdt.getDay() !== 0)){ + adays.push("select date('" + cdt.toISOString().substring(0,10) + "') as daydate"); + } + + } + return adays.join(" UNION "); +} + +function getcolumndays(){ + var adays = []; + var wrs = []; + var firstmonday = new Date(initdate.getFullYear(), initdate.getMonth(), 1); + + var lastmonthday = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 1); + + var lwr = -1; + + for (var cdt = firstmonday; cdt < lastmonthday; cdt.setDate(cdt.getDate() + 1)) { + if ((cdt.getDay() !== 0)){ + if ((lwr === -1) || (!wrs[cdt.getWeekNumber()])) { + wrs[cdt.getWeekNumber()] = 1; + }else { + wrs[cdt.getWeekNumber()] += 1; + } + lwr = cdt.getWeekNumber(); + adays.push(cdt.getDate()); + } + + } + + return [adays,wrs]; +} + + + + + + + +function get_vacancydays(){ + var bdate = new Date(initdate.getFullYear(), initdate.getMonth(), initdate.getDate()); + var bend = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 0); + var sql = "select dd.daydate,strftime('%d',dd.daydate) as strday,type from ( "+ +"select vacancydate, "+ +"case when vacancydateto is null then vacancydate else vacancydateto end as vacancydateto, "+ +"case when vacancydateto is null then 'vacancy' else 'holiday' end as type, "+ +"vacancydescription from vacancy where (vacancydate between '"+bdate.toISOString().substring(0,10)+"' and '"+bend.toISOString().substring(0,10)+"' and (vacancydateto >= '"+bdate.toISOString().substring(0,10)+"' or vacancydateto is null)) or (vacancydateto between '"+bdate.toISOString().substring(0,10)+"' and '"+bend.toISOString().substring(0,10)+"' and vacancydate < '"+bdate.toISOString().substring(0,10)+"') or ((vacancydate <= '"+bdate.toISOString().substring(0,10)+"') and (vacancydateto >= '"+bend.toISOString().substring(0,10)+"')) order by vacancydate,vacancydateto) vc "+ +"join ( "+ drsql +") dd "+ +"on (dd.daydate between vc.vacancydate and vc.vacancydateto) group by dd.daydate order by daydate;"; + + var hdata = parent.appdb.dbquery(sql); + hdata = hdata.sqldata; + var hs = {}; + for (var h in hdata){ + hs[hdata[h].strday] = hdata[h].type; + } + return hs; +} + +function onselcalendar(objid){ + + pconfig.calendar = $('#' + objid).val(); + parent.apppref.setpreference("calchilds", pconfig); + load_calendar(); + + +} diff --git a/CGI/tmpl/app/creorga/module/calendar/js/calvacancy.js b/CGI/tmpl/app/creorga/module/calendar/js/calvacancy.js new file mode 100644 index 0000000..8575faf --- /dev/null +++ b/CGI/tmpl/app/creorga/module/calendar/js/calvacancy.js @@ -0,0 +1,288 @@ +//Source-code licensed under EUPL v1.2 ( Copyright 2019 By DKS s.à r.l. - Kilian Saffran - Luxembourg ) + +var pconfig = {}; +//var cdate = null; +var initdate = new Date(); +initdate.setDate(1); +var lastmonthday = null; +var firstmonday = null; +var lastsunday = null; +var winh = window.innerHeight - 140; +var tblcal = null; +var lblfreq = {daily:'jour(s)',weekly:'semaine(s)',monthly:'mois'}; +var amonth = ['', 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Aôut', 'Septembre','Octobre', 'Novembre', 'Décembre']; +var linkpos = {}; +var posday = {}; +var delac = null; +var curfreq ={}; +var redate = /\d\d.\d\d.\d\d\d\d/; +var curdatediff = null; +var accdb = null; +var drsql = ""; +var defaultcreche = null; +var curcreche=null; + +function initdata() { + load_helpers(); + + var pconfig = parent.apppref.getpreference("calvacancy"); + + if (!pconfig) { + pconfig = {} + } + + load_calendar(); +} + +$('#calmonth').on('dp.hide',function(e){ + set_calmonth(); +}); + + + +function load_calendar() { + + if (!pconfig["calmonth"]) { + + pconfig.calmonth = initdate.toISOString().substring(5,7) + '.' + initdate.toISOString().substring(0,4); + } + $("#calmonth").val(pconfig.calmonth); + initdate = new Date(encodeparam(pconfig.calmonth, 'month').replace(/'/g, '')); + load_calendar_data(); + +} + +function load_calendar_data() { + + var lastmonthday = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 1); + var sql = getmonthlysql(new Date(initdate.toISOString().substring(0,10)),new Date(lastmonthday.toISOString().substring(0,10)),""); + + $("#tbl_timetable").html(""); + + drsql = getdaterangesql(); + + + var thead = []; + var weekrange = {}; + var ltd = ""; + var coldata=getcolumndays(); + var thead=coldata[0]; + var weekrange=coldata[1]; + + var cspan = 0; + var hdays = get_vacancydays(); + var strhead = 'Semaine'; + for (var w in weekrange){ + strhead += '' + w + ''; + cspan += weekrange[w]; + } + strhead += ' '; + for (var th in thead){ + var sty=""; + if (hdays[thead[th]]) { + sty =' style="background-color: '+((hdays[thead[th]]=='vacancy')?'#FF7145':'#FF9C2A')+' !important;" '; + } + strhead += ''+ thead[th]+''; + } + + strhead += ''; + $('#tbl_timetable').append(strhead); + $('#tbl_timetable').append(''); + var crspan = thead.length + 1; + + setcrechevacancydata(thead,hdays); + + $('#tbl_timetable').append(''); +} + +function setcrechevacancydata(thead,hdays){ + var vacdata = getstaffvacancy(); + + var staffsql = "SELECT uuid,prename || ' ' || surname as fullname,color from staff where inactive is null and entrydate <= date('"+initdate.toISOString().substring(0,10)+"','+1 month','-1 day') and (exitdate is null or exitdate >= date('"+initdate.toISOString().substring(0,10)+"'));"; + + var staffnames = parent.appdb.dbquery(staffsql); + staffnames = staffnames.sqldata; + var stxcolor = {}; + + for (var stu in staffnames){ + + stxcolor[staffnames[stu].uuid] = staffnames[stu].color; + var row = ''+ staffnames[stu].fullname+''; + + for (var d in thead){ + if ((hdays[thead[d]]) && (hdays[thead[d]] == 'vacancy')){ + row += ''; + }else { + row += ''; + } + + } + row += ''; + $('#tbl_timetable').append(row); + } + + for (var vc in vacdata){ + + var da = vacdata[vc].daydate.substring(8,10); + var hh = ""; + + + $('#tblcon_' + vacdata[vc].staffuuid + '_' + da + "").append(''); + + } +} + +function setdailydurationfields() { + var dd = $('#dailyduration :selected').val(); + if (dd=='1.0') { + $("#ftimefrom").hide(); + $("#fhours").hide(); + }else if (dd=='0.4') { + $("#ftimefrom").show(); + $("#fhours").hide(); + }else if (dd=='0.') { + $("#ftimefrom").show(); + $("#fhours").show(); + } +} + +function getmonthlysql(datefrom2,dateto2,where) { + var sqlret = "SELECT vc.uuid, vc.datefrom,strftime('%Y%m%d',vc.datefrom) as strdatefrom,' ' || strftime('%Y%m%d',vc.datefrom) || strftime('%Y%m%d',vc.dateto) || '' || strftime('%d.%m.%Y',vc.datefrom) || ' - ' || strftime('%d.%m.%Y',vc.dateto) as tbldaterange, vc.dateto,strftime('%Y%m%d',vc.dateto) as strdateto, "+ +"case when vc.timefrom=vc.timeto then '8h' else (cast(substr(vc.timeto,1,2) as int) - cast(substr(vc.timefrom,1,2) as int)) || 'h' end as hours , " + +"vc.description, vc.staffuuid,coalesce(st.surname,'') || ' ' || coalesce(st.prename,'') as staffname,vc.type,st.color FROM vacancycalendar vc left join staff st on (vc.staffuuid=st.uuid) " + + "LEFT JOIN ( SELECT * FROM ( "; + var sqldays = new Array(); + + for (var cdate2=datefrom2;cdate2<=dateto2;cdate2.setDate(cdate2.getDate() +1)){ + if ((cdate2.getDay() != 0) && (cdate2.getDay() != 6)){ + sqldays.push ("SELECT date('" + cdate2.toISOString().substring(0,10) +"') as daydate"); + } + } + + sqlret += sqldays.join(' UNION ALL ') + " )) oph " + + "ON (oph.daydate BETWEEN vc.datefrom AND vc.dateto) " + + "WHERE oph.daydate IS NOT NULL and strftime('%w',oph.daydate) not in ('0') " + + "AND oph.daydate NOT IN ( SELECT vacancydate FROM vacancy WHERE vacancydateto IS NULL AND vacancydate BETWEEN '"+initdate.toISOString().substring(0,10) + "' AND '" + dateto2.toISOString().substring(0,10)+"') " + + ((where != '')?" AND " + where + " ":"") + + " GROUP BY vc.uuid ORDER BY st.uuid,vc.datefrom, vc.dateto; "; + return sqlret; +} + + +function set_calmonth(){ + pconfig.calmonth =$("#calmonth").val(); + parent.apppref.setpreference("calvacancy",pconfig); + load_calendar(); + +} + + +function onnextmonth() { +var xdate = parent.appdb.dbquery("select STRFTIME('%m.%Y',date('"+initdate.toISOString().substring(0,10)+"','+1 month')) as ndate"); +pconfig.calmonth = xdate.sqldata[0].ndate; +parent.apppref.setpreference("calvacancy", pconfig); +load_calendar(); + +} + +function onpreviousmonth() { +var xdate = parent.appdb.dbquery("select STRFTIME('%m.%Y',date('"+initdate.toISOString().substring(0,10)+"','-1 month')) as ndate"); +pconfig.calmonth = xdate.sqldata[0].ndate; +parent.apppref.setpreference("calvacancy", pconfig); +load_calendar(); + +} + + + + +function invertColor(hexTripletColor) { + var color = hexTripletColor; + color = color.substring(1); // remove # + color = parseInt(color, 16); // convert to integer + color = 0xFFFFFF ^ color; // invert three bytes + color = color.toString(16); // convert to hex + color = ("000000" + color).slice(-6); // pad with leading zeros + color = "#" + color; // prepend # + return color; +} + + + + function getdaterangesql(){ + var adays = []; + var bdate = new Date(initdate.getFullYear(), initdate.getMonth(), initdate.getDate()); + var bend = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 0); + for (var cdt = bdate; cdt <= bend; cdt.setDate(cdt.getDate() + 1)) { + if ((cdt.getDay() != 0)){ + adays.push("select date('" + cdt.toISOString().substring(0,10) + "') as daydate"); + } + + } + return adays.join(" UNION "); + } + + function get_vacancydays(){ + var bdate = new Date(initdate.getFullYear(), initdate.getMonth(), initdate.getDate()); + var bend = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 0); + var sql = "select dd.daydate,strftime('%d',dd.daydate) as strday,type from ( "+ + "select vacancydate, "+ + "case when vacancydateto is null then vacancydate else vacancydateto end as vacancydateto, "+ + "case when vacancydateto is null then 'vacancy' else 'holiday' end as type, "+ + "vacancydescription from vacancy where (vacancydate between '"+bdate.toISOString().substring(0,10)+"' and '"+bend.toISOString().substring(0,10)+"' and (vacancydateto >= '"+bdate.toISOString().substring(0,10)+"' or vacancydateto is null)) or (vacancydateto between '"+bdate.toISOString().substring(0,10)+"' and '"+bend.toISOString().substring(0,10)+"' and vacancydate < '"+bdate.toISOString().substring(0,10)+"') or ((vacancydate <= '"+bdate.toISOString().substring(0,10)+"') and (vacancydateto >= '"+bend.toISOString().substring(0,10)+"')) order by vacancydate,vacancydateto) vc "+ + "join ( "+ drsql +") dd "+ + "on (dd.daydate between vc.vacancydate and vc.vacancydateto) group by dd.daydate order by daydate;"; + var hdata = parent.appdb.dbquery(sql); + + hdata = hdata.sqldata; + var hs = {}; + for (var h in hdata){ + hs[hdata[h].strday] = hdata[h].type; + } + return hs; + } + + function getstaffvacancy() { + var bdate = new Date(initdate.getFullYear(), initdate.getMonth(), initdate.getDate()); + var bend = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 0); + var vacsql = "SELECT vc.uuid as uuid, dd.daydate AS daydate, vc.staffuuid as staffuuid, printf(\"%.2f\",CASE WHEN vc.timefrom=vc.timeto THEN CAST(st.weekhours/5.00 AS REAL) ELSE CAST((CAST(strftime(\"%s\",vc.timeto) AS REAL)- CAST(strftime(\"%s\",vc.timefrom) AS REAL))/3600.00 AS REAL) END) AS hours, vc.type as type" + + " from ( "+ + "select uuid,staffuuid, "+ + "case when datefrom < '"+bdate.toISOString().substring(0,10)+"' then '"+bdate.toISOString().substring(0,10)+"' else datefrom end as datefrom, "+ + "case when dateto > '"+bend.toISOString().substring(0,10)+"' then '"+bend.toISOString().substring(0,10)+"' else dateto end as dateto, "+ + "timefrom,timeto, type "+ + "from vacancycalendar where (datefrom is null or datefrom <= '"+bend.toISOString().substring(0,10)+"') and (dateto is null or dateto >= '"+bdate.toISOString().substring(0,10)+"')) vc "+ + "join ("+drsql+") dd "+ + "on (dd.daydate between vc.datefrom and vc.dateto) left join staff st on (st.uuid=vc.staffuuid and st.inactive is null); "; + + var vacdata = parent.appdb.dbquery(vacsql); + vacdata = vacdata.sqldata; + return vacdata; + } + + + + function getcolumndays(){ + var adays = []; + var wrs = []; + var firstmonday = new Date(initdate.getFullYear(), initdate.getMonth(), 1); + + var lastmonthday = new Date(initdate.getFullYear(), initdate.getMonth() + 1, 1); + + var lwr = -1; + + for (var cdt = firstmonday; cdt < lastmonthday; cdt.setDate(cdt.getDate() + 1)) { + if ((cdt.getDay() !== 0)){ + if ((lwr === -1) || (!wrs[cdt.getWeekNumber()])) { + wrs[cdt.getWeekNumber()] = 1; + }else { + wrs[cdt.getWeekNumber()] += 1; + } + lwr = cdt.getWeekNumber(); + adays.push(cdt.getDate()); + } + + } + + return [adays,wrs]; + } \ No newline at end of file diff --git a/CGI/tmpl/app/creorga/module/childs/child.tt b/CGI/tmpl/app/creorga/module/childs/child.tt new file mode 100644 index 0000000..64f1643 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/childs/child.tt @@ -0,0 +1,798 @@ + + + + + + + Détails - Enfant + + + + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+ +
+
+
+
+ + +
+ +
+
+ + +
+ +
+
+ +
+ + +
+ +
+
+
+
+ + +
+
+ + + + + + + + +
+
+ +
+
+ +
+ +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ + +
+
+
+ +
+
+
+ + +
+ + +
+
+ +
+ +
+ + + +
+
+
+ + +
+
+
+
+ + +
+ +
+
+ + +
+
+ +
+ +
€
+
+
+
+ +
+ +
+ +
+
+ +
+
+ + +
+ +
+ + + +
+ +
+
+ [% IF creorga.modules.child.filelist %] +
+ + + + + +
+ [% END %] +
+
+
+ + + + + + + + + + + + + + + [% IF creorga.modules.child.filelist %] + + + + [% END %] +
+ + + + + + + + + + + + + diff --git a/CGI/tmpl/app/creorga/module/childs/index.tt b/CGI/tmpl/app/creorga/module/childs/index.tt new file mode 100644 index 0000000..9b65dca --- /dev/null +++ b/CGI/tmpl/app/creorga/module/childs/index.tt @@ -0,0 +1,82 @@ + + + + + + + Enfants + + + + + + + + + + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + + + + + + diff --git a/CGI/tmpl/app/creorga/module/childs/js/child.js b/CGI/tmpl/app/creorga/module/childs/js/child.js new file mode 100644 index 0000000..4fed6f4 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/childs/js/child.js @@ -0,0 +1,952 @@ +//Source-code licensed under EUPL v1.2 ( Copyright 2019 By DKS s.à r.l. - Kilian Saffran - Luxembourg ) + +var pconfig = {}; +var delplan = null; +var delrefperson = null; +var delcautionstatus = null; +var delfile = null; +var wh = window.innerHeight-380; +var myfiles = []; +var cruuid = null; + +function validate_plan_proposals() { + if (($("childs_birthday").val() != '') && + ($("childs_entrydate").val() != '') && + ($("childs_exitdate").val() != '')) { + $("planproposal").css("visibility", "visible"); + } else { + $("planproposal").css("visibility", "hidden"); + } +} + +function initdata() { + + load_helpers(); + pconfig = getSearchParams(); + + var cname = parent.appdb.dbquery("select uuid from creche LIMIT 1;"); + cruuid = cname.sqldata[0].uuid; + pconfig.printlayout = 'child'; + var cdatasql = "select uuid,clientnumber,prename,surname,birthday,address,city,zip,country,entrydate,checkservicenumber,checkserviceexpiration,leavedate,nationality,nativelanguage,bankaccount,bankbic,cautionamount,cautionremark,remark ,infohealth from childs where uuid='" + pconfig.uuid + "';"; + var cdata = parent.appdb.dbquery(cdatasql); + cdata = cdata.sqldata[0]; + + for (var ci in cdata) { + if (document.getElementById("childs_" + ci)) { + if (document.getElementById("childs_" + ci).tagName == "TEXTAREA"){ + document.getElementById("childs_" + ci).value=cdata[ci]; + } + else { + document.getElementById("childs_" + ci).setAttribute('value', cdata[ci]); + } + } + } + var edt_height = wh; + loadtextareas(edt_height); + loadplantemplates(); + + if (pconfig && pconfig.activetab) { + $('a[href="#'+pconfig.activetab+'"]').tab('show'); + } + $('#childs_checkservicenumber').on('blur',function(e){ + var valchknum = $('#childs_checkservicenumber').val().replace(/\s/g,''); + if (valchknum.length < 10) { + return; + } + var xcheck = $('#childs_checkservicenumber').val().replace(/\s/g,'').substring(0,8); + + var bday = $('#childs_birthday').val(); + var xcheckdate = xcheck.substring(0,4)+'-' + xcheck.substring(4,6) + '-' + xcheck.substring(6,8); + if (bday != xcheckdate) { + $('#childs_birthday').val(xcheckdate); + setborderdates(); + } + setborderdates(); + }); + + $('#childs_birthday').on('blur',function(e){ + setborderdates(); + + }); + $('input[class^="time"]').on('keydown',function(e){ + var keycode = e.keyCode || e.which; + + if ( keycode == 9 ){ + + $(this).next('input').focus(); + + } + +}); +$('input[class^="time"]').focusout(function(e){ + savetime($(this)); +}); + +} + +function savetime(obj){ + var timeval = obj.val(); + if (timeval != ''){ + timeval = timeval.replace(/[^\d]/g, '') + "0000"; + timeval = timeval.substring(0,2) + ":" + timeval.substring(2,4); + $("#" + obj.attr('id')).val(timeval); + } + + +} + +function loadplantemplates(){ + //console.log('plantemplate'); + + var xdata = parent.appdb.dbquery("select uuid,templatename from planningtemplate order by templatename;"); + xdata = xdata.sqldata; + //console.log($("#plantemplates").html()); + $("#plantemplates").html(""); + $("#plantemplates").append('
  • multiple
  • '); + for (var i in xdata){ + + $("#plantemplates").append('
  • '+ xdata[i].templatename+'
  • '); + } + $("#plantemplates").append(''); + $("#plantemplates").append('
  • simple
  • '); + for (var i in xdata){ + //console.log("m: " + i); + $("#plantemplates").append('
  • '+ xdata[i].templatename+'
  • '); + } + $("#plantemplates").append('
  • Plan Vide
  • '); +} + +function setborderdates() { + var minamonths = parent.appdb.dbquery("select minage,maxage from creche LIMIT 1;"); + var bday = $('#childs_birthday').val(); + var centrydate = $('#childs_entrydate').val(); + var cleavedate = $('#childs_leavedate').val(); + var dtbday = new Date(bday); + var dtminentrydate = new Date(dtbday.getFullYear(),dtbday.getMonth() + parseInt(minamonths.sqldata[0].minage), dtbday.getDate()); + var today = new Date(); + if (centrydate < dtminentrydate.toISOString().substring(0,10) || (centrydate==cleavedate)) { + + if (dtminentrydate > today) { + $('#childs_entrydate').val(dtminentrydate.toISOString().substring(0,10)); + }else { + $('#childs_entrydate').val(today.toISOString().substring(0,10)); + } + + } + var dtmaxleavedate = new Date(dtbday.getFullYear(),dtbday.getMonth() + parseInt(minamonths.sqldata[0].maxage), dtbday.getDate()); + if (cleavedate > dtmaxleavedate.toISOString().substring(0,10) || (centrydate==cleavedate)) { + + $('#childs_leavedate').val(dtmaxleavedate.toISOString().substring(0,10)); + } + centrydate = $('#childs_entrydate').val(); + cleavedate = $('#childs_leavedate').val(); + parent.appdb.dbexec("update childs set birthday=date('"+bday+"'),entrydate=date('"+centrydate+"'),leavedate=date('"+cleavedate+"') where uuid='"+pconfig.uuid+"';"); + +} + +$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { + var tn = e.target.toString(); + + pconfig.activetab = tn.substring(tn.lastIndexOf("#")+1); + + parent.apppref.setpreference("pageconfig.child",pconfig); + + if (pconfig.activetab == 'planning') { + load_table_presence(); + } + if (pconfig.activetab == 'parents') { + load_table_refperson(); + } + [% IF creorga.modules.child.filelist %] + if (pconfig.activetab == 'myfiles') { + load_table_files(); + } + [% END %] + if (pconfig.activetab == 'caution') { + load_table_caution(); + } + }); + +function load_table_presence() { + + + var plandatasql = "SELECT ' ' AS action, grp.grpname, strftime('%d.%m.%Y',plan.datebegin) || ' - ' || strftime('%d.%m.%Y',plan.dateend) AS planningdaterange,"; + var wda = ['mon','tue','wed','thu','fri','sat']; + var awda = []; + for (var w in wda){ + awda.push("CASE WHEN plan."+wda[w]+"timebegin != plan."+wda[w]+"timeend THEN plan."+wda[w]+"timebegin || ' - ' || plan."+wda[w]+"timeend ELSE '' END || CASE WHEN plan."+wda[w]+"lunch='1' THEN ' ()' ELSE '' END || case when plan."+wda[w]+"timebegin2 is not null and plan."+wda[w]+"timeend2 is not null then '
    ' || plan."+wda[w]+"timebegin2 || ' - ' || plan."+wda[w]+"timeend2 else '' end AS "+wda[w]+"planningtime"); + } + plandatasql += awda.join(',') + " FROM planning plan LEFT JOIN groups grp ON ( plan.groupuuid=grp.uuid) WHERE plan.childuuid='" + pconfig.uuid + "' ORDER BY plan.datebegin, plan.dateend;"; + + var plandata = parent.appdb.dbqueryarray(plandatasql); + + var headerdata = getlabels(plandata.sqlhead.join(",")); + + $("#tbl_planning").html(""); + var tblplan = $("#tbl_planning").dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + "data": plandata.sqldata, + "columns": headerdata, + "paging": false, + "ordering": true, + "scrollY": wh + "px", + "scrollCollapse": true, + "info": false, + "filter": false, + "destroy": true + }); + + +} + +function load_table_refperson() { + var labelx = getlabelswithkey('mother,father,tuteur,famillymember,famillyfriend'); + var areftypes = new Array(); + for (var l in labelx){ + areftypes.push("select '"+ labelx[l].title +"' as refname, '"+labelx[l].keyname+"' as reftype"); + } + var lblsql = areftypes.join(" UNION "); + var refperssql = "SELECT ' ' as action, rp.priority,rx.refname as reftype, coalesce(rp.surname,'') || ' ' || coalesce(rp.prename,'') as nameprename, case when rp.phone is not null then ': ' || rp.phone || '
    ' else '' end || case when rp.mobile is not null then': ' || rp.mobile || '
    ' else '' end || case when rp.workphone is not null then ': ' || rp.workphone || '
    ' else '' end || case when rp.email is not null then ': ' || email else '' end as phonemail, coalesce(rp.address,'') || '
    ' || coalesce(rp.zip,'') || ' ' || coalesce(rp.city,'') || '
    ' || coalesce(rp.country,'') as address, case when rp.authsubscriber then 'signataire:
    ' else '' end || coalesce(rp.job || '
    ','') as divers, coalesce(rp.remark ,'') as remark FROM refpersons rp join ("+ lblsql+") rx on (rp.reftype=rx.reftype) where rp.childuuid='" + pconfig.uuid + "';"; + var refpersondata = parent.appdb.dbqueryarray(refperssql); + + var headerdata = getlabels(refpersondata.sqlhead.join(",")); + $("#tbl_refperson").html(""); + var tblheader = ''; + for (var h in headerdata){ + if ((headerdata[h].keyname == 'act') && (headerdata[h].class.indexOf('action1btn') == -1)){ + headerdata[h].class +=" action1btn"; + } + tblheader += ''+ headerdata[h].title+''; + + } + tblheader += ''; + tblacc = null; + $("#tbl_refperson").append("" + tblheader + ""); + $("#tbl_referson").append(""); + for (var i in refpersondata.sqldata){ + var row = refpersondata.sqldata[i]; + var tr = ''; + for (var x in row){ + //jsdump(x); + if (x == 7){ + if (row[x] == null){ + tr += ""; + } else { + tr += ""+ htmlUnescape(row[x])+""; + } + } else { + if (row[x] == null){ + tr += ""; + }else { + tr += ""+ row[x]+""; + } + + } + } + tr += ""; + $("#tbl_refperson").append(tr); + + } + + + $("#tbl_refperson").dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + //"data": refpersondata.sqldata, + //"columns": headerdata, + "paging": false, + "scrollY": wh + "px", + "scrollCollapse": true, + "ordering": true, + "info": false, + "filter": false, + "destroy": true + }); +} + +function load_table_caution(){ + $("#tbl_cautionstatus").html(""); + var cautionsql = "select ' ' as action, '' || statusdate || '' || strftime('%d.%m.%Y',statusdate) as daydate, amount || ' €' as amount,statementnumber from cautionstatus where childuuid='"+ pconfig.uuid+"' order by statusdate DESC;"; + var caudata = parent.appdb.dbqueryarray(cautionsql); + var headerdata = getlabels("action,daydate,amount,statementnumber"); + $("#tbl_cautionstatus").dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + "data": caudata.sqldata, + "columns": headerdata, + "paging": false, + "scrollY": wh + "px", + "scrollCollapse": true, + "ordering": true, + "info": false, + "filter": false, + "destroy": true + }); +} + +function load_table_files(){ + $("#tbl_files").html(""); + var headerdata = getlabels("action,filename,description,daydate,filetype"); + $("#tbl_files").dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + //"data": refpersondata.sqldata, + "columns": headerdata, + "paging": false, + "scrollY": wh + "px", + "scrollCollapse": true, + "ordering": true, + "info": false, + "filter": false, + "destroy": true + }); +} + + +function dlg_cautionstatus(objuuid,type){ + //TODO: dlg_addcautionstatus + //dump("Caution: " + type +" " + objuuid.uuid + +"\n"); + if (type == 'upd' || type == 'ins') { + var caustatdata = parent.appdb.dbquery("select '0' as uuid,strftime('%d.%m.%Y',date('now')) as statusdate,0 as amount,null as statementnumber"); + if (type == 'upd') { + caustatdata = parent.appdb.dbquery("SELECT uuid, strftime('%d.%m.%Y',statusdate) as statusdate, amount, statementnumber FROM cautionstatus where uuid='" + objuuid.uuid + "';"); + } + $("#frmeditcautionstatus #uuid").val(objuuid.uuid); + caustatdata = caustatdata.sqldata[0]; + //setrefpersontypes(); + + for (var r in caustatdata) { + if (document.getElementById(r)) { + + document.getElementById(r).value = caustatdata[r]; + + } + } + $("#edit_cautionstatus").modal('show'); + } else if (type == 'del') { + delcautionstatus= objuuid.uuid; + confirm_delete_cautionstatus(); + } +} + +function dlg_refperson(uuid, type) { + if (type == 'upd' || type == 'ins') { + var refpdata = parent.appdb.dbquery("SELECT null as reftype, null as surname, null as prename, address, null as phone, null as mobile, null as job, null as email, null as workphone, zip, country, city, '0' as authsubscriber, null as uuid,lastmodified FROM childs where uuid='" + pconfig.uuid +"' union SELECT null as reftype, surname, null as prename, address, null as phone, null as mobile, null as job, null as email, null as workphone, zip, country, city, '0' as authsubscriber, null as uuid,lastmodified FROM refpersons where childuuid='"+pconfig.uuid +"' order by lastmodified DESC "); + if (type == 'upd') { + refpdata = parent.appdb.dbquery("SELECT reftype, surname, prename, address, phone, mobile, job, email, workphone, zip, country, city, authsubscriber, uuid FROM refpersons where uuid='" + uuid.uuid + "';"); + } + $("#frmeditrefperson #uuid").val(uuid.uuid); + refpdata = refpdata.sqldata[0]; + setrefpersontypes(); + + for (var r in refpdata) { + if (document.getElementById(r)) { + if ($("#" + r).is(':checkbox')) { + if (refpdata[r] == '1') { + $("#" + r).prop("checked", true); + } else { + $("#" + r).prop("checked", false); + } + } else { + document.getElementById(r).value = refpdata[r]; + } + } + } + $("#edit_refperson").modal('show'); + } else if (type == 'del') { + delrefperson = uuid.uuid; + confirm_delete_refperson(); + } +} + +function setplanning_groups() { + var plangrps = parent.appdb.dbquery("select uuid,grpname from groups order by minage,maxage;"); + plangrps = plangrps.sqldata; + $("#groupuuid").html(''); + $("#groupuuid").append(''); + for (var g in plangrps) { + $("#groupuuid").append(''); + } +} + +function setrefpersontypes() { +var labelx = getlabelswithkey('mother,father,tuteur,famillymember,famillyfriend'); + var areftypes = new Array(); + $("#reftype").html(''); + for (var l in labelx){ + $("#reftype").append(''); + } +} + +function dlg_planning(uuid, type, planuuid) { + //console.log("dlg_planning" + uuid + " " + type + " " + planuuid); + if (type == 'upd') { + check_birthdate_valid(); + setplanning_groups(); + var plandata = parent.appdb.dbquery("SELECT datebegin, dateend, montimebegin, montimeend, monlunch, tuetimebegin, tuetimeend, tuelunch, wedtimebegin, wedtimeend, wedlunch, thutimebegin, thutimeend, thulunch, fritimebegin, fritimeend, frilunch, sattimebegin, sattimeend, satlunch, suntimebegin, suntimeend, sunlunch, childuuid, uuid, groupuuid, montimebegin2, montimeend2, tuetimebegin2, tuetimeend2, wedtimebegin2, wedtimeend2, thutimebegin2, thutimeend2, fritimebegin2, fritimeend2, sattimebegin2, sattimeend2, suntimebegin2, suntimeend2 FROM planning where uuid='" + uuid.uuid + "';"); + plandata = plandata.sqldata[0]; + + for (var p in plandata) { + if (document.getElementById(p)) { + if ($("#" + p).is(':checkbox')) { + if (plandata[p] == '1') { + $("#" + p).prop("checked", true); + } else { + $("#" + p).prop("checked", false); + } + } else { + if ((p.substr(p.length-1) == "2") && (p.indexOf("time") != -1) && (plandata[p] != "")){ + $('#' + p.substr(0,3) + "time" + p.substr(p.length-1)).show(); + } + if ((p.indexOf("time") != -1) && (plandata[p] == "")) { + document.getElementById(p).value = ""; + } else { + document.getElementById(p).value = plandata[p]; + } + } + } + } + $("#edit_planning").modal('show'); + } + else if (type == 'del') { + delplan = uuid.uuid; + //"Launch confirm delete\n"); + confirm_delete_planning(); + + } + else if (type == 'delall') { + //delplan = pconfig.uuid; + //"Launch confirm all delete\n"); + confirm_delete_allplanning(); + + } + else if (type == 'ins') { + $("#frmeditplanning #uuid").val("0"); + check_birthdate_valid(); + setplanning_groups(); + var timesql = "SELECT strftime('%d.%m.%Y',date('now')) as datebegin,strftime('%d.%m.%Y',date('now','+6 month')) as dateend ,null as montimebegin, null as montimeend, null as tuetimebegin, null as tuetimeend, null as wedtimebegin, null as wedtimeend, null as thutimebegin, null as thutimeend, null as fritimebegin, null as fritimeend, null as sattimebegin, null as sattimeend;"; + if (planuuid){ + timesql = "SELECT strftime('%d.%m.%Y',date('now')) as datebegin,strftime('%d.%m.%Y',date('now','+6 month')) as dateend ,montimebegin, montimeend, tuetimebegin, tuetimeend, wedtimebegin, wedtimeend, thutimebegin, thutimeend, fritimebegin, fritimeend, montimebegin2,montimeend2,tuetimebegin2, tuetimeend2, wedtimebegin2, wedtimeend2, thutimebegin2, thutimeend2, fritimebegin2, fritimeend2, sattimebegin2, sattimeend2 FROM planningtemplate where uuid='"+planuuid+"';"; + } + + var timeplan = parent.appdb.dbquery(timesql); + + timeplan = timeplan.sqldata[0]; + $("#frmeditplanning #datebegin").val(timeplan.datebegin); + $("#frmeditplanning #dateend").val(timeplan.dateend); + for (var t in timeplan) { + if ((t.indexOf("time") != -1)) { + var tx = timeplan[t]; + if (tx == "00:00" || tx== null) { + tx = ""; + } + + $("#" + t).val(tx); + } + } + $("#frmeditplanning :input").each(function() { + var input = $(this); + if (input.attr("type") == "checkbox") { + input.prop('checked', true); + } + + }); + + $("#edit_planning").modal('show'); + } + else if (type == 'insproposal') { + check_birthdate_valid(); + setplanning_groups(); + var curplan = parent.appdb.dbquery("select count(*) as cnt,date(max(dateend),'+1 day') as maxdateto,(select birthday from childs where childs.uuid='" + pconfig.uuid + "') as birthday,(select entrydate from childs where childs.uuid='" + pconfig.uuid+"') as entrydate,(select leavedate from childs where childs.uuid='" + pconfig.uuid+"') as leavedate,date('now') as today from planning pl join childs ch on (ch.uuid=pl.childuuid) where pl.childuuid='" + pconfig.uuid + "'"); + curplan = curplan.sqldata[0]; + //dump("INSPROPOSAL:" + JSON.stringify(curplan) + "\n"); + var plansql = ""; + + if ((curplan.cnt == 0) || ( planuuid)){ + //dump(curplan.today +"<-->" + curplan.birthday + "<-->" + curplan.entrydate + "\n") ; + + if (curplan.cnt > 0){ + curplan.entrydate=curplan.maxdateto; + } + //if (curplan.today < curplan.entrydate) { + + // plansql = "select date('"+ curplan.entrydate+"') as datebegin,date(birthday,'+' || maxage || ' months','-1 day') as dateend, pl.uuid as groupuuid, montimeopen as montimebegin,montimeclose as montimeend,tuetimeopen as tuetimebegin,tuetimeclose as tuetimeend,wedtimeopen as wedtimebegin,wedtimeclose as wedtimeend,thutimeopen as thutimebegin,thutimeclose as thutimeend,fritimeopen as fritimebegin,fritimeclose as fritimeend,null as montimebegin2, null as montimeend2, null as tuetimebegin2, null as tuetimeend2, null as wedtimebegin2, null as wedtimeend2, null as thutimebegin2, null as thutimeend2, null as fritimebegin2, null as fritimeend2 from ( select uuid,minage,maxage,grpname,(select birthday from childs where childs.uuid='" + pconfig.uuid + "') as birthday from groups) pl join workinghours wk on (wk.datestart <= datebegin) group by groupuuid order by wk.datestart DESC,minage,maxage;"; + // if (planuuid){ + //dump("today < entrydate PLANUUID: " + planuuid +"\n"); + // } + //} else { + //dump("INSPROPOSAL 2:" + JSON.stringify(curplan) + "\n"); + //plansql = "select * from ( select CASE WHEN DATE(birthday,'+' || minage || ' months') < entrydate THEN entrydate ELSE DATE(birthday,'+' || minage || ' months') END AS datebegin, case when date(birthday,'+' || maxage || ' months') > leavedate then leavedate else date(birthday,'+' || maxage || ' months','-1 day') end as dateend, pl.uuid as groupuuid, montimeopen as montimebegin,montimeclose as montimeend,tuetimeopen as tuetimebegin,tuetimeclose as tuetimeend,wedtimeopen as wedtimebegin,wedtimeclose as wedtimeend,thutimeopen as thutimebegin,thutimeclose as thutimeend,fritimeopen as fritimebegin,fritimeclose as fritimeend,sattimeopen as sattimebegin,sattimeclose as sattimeend,null as montimebegin2, null as montimeend2, null as tuetimebegin2, null as tuetimeend2, null as wedtimebegin2, null as wedtimeend2, null as thutimebegin2, null as thutimeend2, null as fritimebegin2, null as fritimeend2, null as sattimeend2,1 as monlunch,1 as tuelunch, 1 as wedlunch, 1 as thulunch, 1 as frilunch, 1 as satlunch from ( select uuid,minage,maxage,grpname,(select birthday from childs where childs.uuid='" + pconfig.uuid + "') as birthday,date('" + curplan.entrydate +"') AS entrydate,date('" + curplan.leavedate +"') AS leavedate from groups) pl join workinghours wk on (wk.datestart <= datebegin) group by groupuuid order by wk.datestart DESC,minage,maxage ) where datebegin!=dateend and dateend >= datebegin and order by datebegin,dateend;"; + if (planuuid){ + plansql = "select * from ( select CASE WHEN DATE(birthday,'+' || minage || ' months') < entrydate THEN entrydate ELSE DATE(birthday,'+' || minage || ' months') END AS datebegin, case when date(birthday,'+' || maxage || ' months') > leavedate then leavedate else date(birthday,'+' || maxage || ' months','-1 day') end as dateend, pl.uuid as groupuuid, plt.* from ( select uuid,minage,maxage,grpname,'"+pconfig.uuid+"' as chuuid,(select birthday from childs where childs.uuid='" + pconfig.uuid + "') as birthday, date('"+ curplan.entrydate+"') AS entrydate,date('" + curplan.leavedate +"') AS leavedate from groups) pl join workinghours wk on (wk.datestart <= datebegin) join (select '" + pconfig.uuid + "' as chuuid,* from planningtemplate where planningtemplate.uuid='"+planuuid+"') plt on (plt.chuuid=pl.chuuid) group by groupuuid order by wk.datestart DESC,minage,maxage ) where datebegin!=dateend and dateend >= datebegin order by datebegin,dateend;"; + //console.log(plansql); + var plandata = parent.appdb.dbquery(plansql); + + for (var pl in plandata.sqldata) { + + var inssql = "INSERT INTO planning (uuid,childuuid, groupuuid,datebegin, dateend, montimebegin, montimeend, tuetimebegin, tuetimeend, wedtimebegin, wedtimeend, thutimebegin,thutimeend, fritimebegin, fritimeend,sattimebegin, sattimeend,montimebegin2, montimeend2, tuetimebegin2, tuetimeend2, wedtimebegin2, wedtimeend2, thutimebegin2,thutimeend2, fritimebegin2, fritimeend2,sattimebegin2, sattimeend2, monlunch, tuelunch,wedlunch,thulunch,frilunch,satlunch ) VALUES ("; + inssql += "'" + parent.appdb.generate_uuid() + "',"; + inssql += "'" + pconfig.uuid + "',"; + inssql += "'" + plandata.sqldata[pl].groupuuid + "',"; + inssql += "'" + plandata.sqldata[pl].datebegin + "',"; + inssql += "'" + plandata.sqldata[pl].dateend + "',"; + inssql += "'" + plandata.sqldata[pl].montimebegin + "',"; + inssql += "'" + plandata.sqldata[pl].montimeend + "',"; + inssql += "'" + plandata.sqldata[pl].tuetimebegin + "',"; + inssql += "'" + plandata.sqldata[pl].tuetimeend + "',"; + inssql += "'" + plandata.sqldata[pl].wedtimebegin + "',"; + inssql += "'" + plandata.sqldata[pl].wedtimeend + "',"; + inssql += "'" + plandata.sqldata[pl].thutimebegin + "',"; + inssql += "'" + plandata.sqldata[pl].thutimeend + "',"; + inssql += "'" + plandata.sqldata[pl].fritimebegin + "',"; + inssql += "'" + plandata.sqldata[pl].fritimeend + "',"; + inssql += "'" + plandata.sqldata[pl].sattimebegin + "',"; + inssql += "'" + plandata.sqldata[pl].sattimeend + "',"; + inssql += ((plandata.sqldata[pl].montimebegin2 !== "")?"'" + plandata.sqldata[pl].montimebegin2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].montimeend2 !== "")?"'" + plandata.sqldata[pl].montimeend2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].tuetimebegin2 !== "")?"'" + plandata.sqldata[pl].tuetimebegin2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].tuetimeend2 !== "")?"'" + plandata.sqldata[pl].tuetimeend2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].wedtimebegin2 !== "")?"'" + plandata.sqldata[pl].wedtimebegin2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].wedtimeend2 !== "")?"'" + plandata.sqldata[pl].wedtimeend2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].thutimebegin2 !== "")?"'" + plandata.sqldata[pl].thutimebegin2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].thutimeend2 !== "")?"'" + plandata.sqldata[pl].thutimeend2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].fritimebegin2 !== "")?"'" + plandata.sqldata[pl].fritimebegin2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].fritimeend2 !== "")?"'" + plandata.sqldata[pl].fritimeend2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].sattimebegin2 !== "")?"'" + plandata.sqldata[pl].sattimebegin2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].sattimeend2 !== "")?"'" + plandata.sqldata[pl].sattimeend2 + "'":'null') +","; + inssql += ((plandata.sqldata[pl].monlunch == 1)?"'1'":'null') +","; + inssql += ((plandata.sqldata[pl].tuelunch == 1)?"'1'":'null') +","; + inssql += ((plandata.sqldata[pl].wedlunch == 1)?"'1'":'null') +","; + inssql += ((plandata.sqldata[pl].thulunch == 1)?"'1'":'null') +","; + inssql += ((plandata.sqldata[pl].frilunch == 1)?"'1'":'null') +","; + inssql += ((plandata.sqldata[pl].satlunch == 1)?"'1'":'null') +""; + inssql += ");"; + + parent.appdb.dbexec(inssql); + } + } + //jsdump("plan SQL: " + plansql +"\n"); + //if (curplan.cnt > 0){ + // plansql = plansql.replace(/%%WHERE%%/,"date('" + curplan.maxdateto+"') between datebegin and dateend or datebegin > date('" + curplan.maxdateto+"') "); + //}else { + // plansql = plansql.replace(/%%WHERE%%/,""); + //} + + //} + //dump("PLANSQL: " +plansql + "\n"); + + + } + if ((curplan.cnt >= 1) && (!planuuid)){ + + var plansql = "select * from ( select case when date(entrydate) < date(nextdate) then nextdate else entrydate end as datebegin, case when entrydate < date(nextdate) then date(nextdate) else date(birthday,'+' || maxage || ' months','-1 day') end as dateend, pl.uuid as groupuuid,birthday,nextdate,grpname from ( select uuid,minage,maxage,grpname, (select entrydate from childs where childs.uuid='" + pconfig.uuid + "') as entrydate ,(select birthday from childs where childs.uuid='" + pconfig.uuid + "') as birthday, (select date(max(dateend),'+1 day') from planning where planning.childuuid='" + pconfig.uuid + "') as nextdate from groups) pl group by groupuuid order by minage,maxage ) where datebegin encodeparam($("#frmeditplanning #dateend").val(),'date')){ + errormsg("Erreur en dates!","La date de début ne peut pas être supérieur à la date de fin!\n"); + return false; + } + + if (($("#frmeditplanning #montimebegin").val() > $("#frmeditplanning #montimeend").val()) || + ($("#frmeditplanning #tuetimebegin").val() > $("#frmeditplanning #tuetimeend").val()) || + ($("#frmeditplanning #wedtimebegin").val() > $("#frmeditplanning #wedtimeend").val()) || + ($("#frmeditplanning #thutimebegin").val() > $("#frmeditplanning #thutimeend").val()) || + ($("#frmeditplanning #fritimebegin").val() > $("#frmeditplanning #fritimeend").val()) || + ($("#frmeditplanning #sattimebegin").val() > $("#frmeditplanning #sattimeend").val()) || + ($("#frmeditplanning #montimebegin2").val() > $("#frmeditplanning #montimeend2").val() && $("#montime2").is(':visible')) || + ($("#frmeditplanning #tuetimebegin2").val() > $("#frmeditplanning #tuetimeend2").val() && $("#tuetime2").is(':visible')) || + ($("#frmeditplanning #wedtimebegin2").val() > $("#frmeditplanning #wedtimeend2").val() && $("#wedtime2").is(':visible')) || + ($("#frmeditplanning #thutimebegin2").val() > $("#frmeditplanning #thutimeend2").val() && $("#thutime2").is(':visible')) || + ($("#frmeditplanning #fritimebegin2").val() > $("#frmeditplanning #fritimeend2").val() && $("#fritime2").is(':visible')) || + ($("#frmeditplanning #sattimebegin2").val() > $("#frmeditplanning #sattimeend2").val() && $("#sattime2").is(':visible')) || + ($("#frmeditplanning #montimeend").val() > $("#frmeditplanning #montimebegin2").val() && $("#montime2").is(':visible')) || + ($("#frmeditplanning #tuetimeend").val() > $("#frmeditplanning #tuetimebegin2").val() && $("#tuetime2").is(':visible')) || + ($("#frmeditplanning #wedtimeend").val() > $("#frmeditplanning #wedtimebegin2").val() && $("#wedtime2").is(':visible')) || + ($("#frmeditplanning #thutimeend").val() > $("#frmeditplanning #thutimebegin2").val() && $("#thutime2").is(':visible')) || + ($("#frmeditplanning #fritimeend").val() > $("#frmeditplanning #fritimebegin2").val() && $("#fritime2").is(':visible')) || + ($("#frmeditplanning #sattimeend").val() > $("#frmeditplanning #sattimebegin2").val() && $("#sattime2").is(':visible')) + ) + { + errormsg("Erreur dans les heures d'entrée sortie!","l'heure d'entée ne peut pas être suppérieur à l'heure de sortie
    et
    une deuxième heure d'entrée d'un jour ne peut pas être inférieur à l'heure de la première sortie du jour!"); + return false; + } + return true; +} + +function save_planning() { + + var sql1 = new Array(); + var sql2 = new Array(); + + if (!check_planning()){ + return; + }; + var pluuid = null; + sql1.push("childuuid"); + + sql2.push("'" + pconfig.uuid + "'"); + $("#frmeditplanning :input").each(function() { + var input = $(this); + if (input.attr("id")) { + sql1.push(input.attr("id")); + if (input.attr("id") == 'uuid') { + if (input.val() == "" || input.val() == "0") { + sql2.push("'" + parent.appdb.generate_uuid() + "'"); + } else { + sql2.push("'" + input.val() + "'"); + pluuid = input.val(); + } + } else if (input.attr("type") == "checkbox") { + sql2.push(((input.is(':checked')) ? "'1'" : "'0'")); + } else { + var ival = encodeparam(input.val(),input.attr('type')); + if ((input.attr("id").substring(input.attr("id").length-1) == "2") && + $("#" + input.attr("id").substring(0,3) +"time" + input.attr("id").substring(input.attr("id").length-1)).is(":hidden")) { + ival = 'null'; + } + if (ival == "''") { + ival='null'; + } + sql2.push(ival); + + } + } + + }); + + var sdatebegin = encodeparam($("#frmeditplanning #datebegin").val(),'date'); + var sdateend = encodeparam($("#frmeditplanning #dateend").val(),'date'); + var checkdatereplace = parent.appdb.dbquery("select uuid from planning where datebegin >= "+sdatebegin+" and dateend <= "+sdateend+" and childuuid='"+pconfig.uuid+"';"); + checkdatereplace = checkdatereplace.sqldata; + //console.log(checkdatereplace); + if (checkdatereplace && Object.keys(checkdatereplace).length > 0) { + + var ruuid = new Array(); + for (var i in checkdatereplace){ + ruuid.push("'"+ checkdatereplace[i].uuid +"'"); + } + parent.appdb.dbexec("DELETE FROM planning where uuid in (" + ruuid.join(",") + ");"); + } + var checkdatesplit = parent.appdb.dbquery("select uuid,dateend from planning where datebegin <= "+sdatebegin+" and dateend >= "+sdateend+" and childuuid='"+pconfig.uuid+"';"); + checkdatesplit = checkdatesplit.sqldata; + if (checkdatesplit && Object.keys(checkdatesplit).length == 1) { + + var newuuid = parent.appdb.generate_uuid(); + parent.appdb.dbexec("INSERT INTO planning (datebegin, dateend, montimebegin, montimeend, monlunch, tuetimebegin, tuetimeend, tuelunch, wedtimebegin, wedtimeend, wedlunch, thutimebegin, thutimeend, thulunch, fritimebegin, fritimeend, frilunch, sattimebegin, sattimeend, satlunch, suntimebegin, suntimeend, sunlunch, childuuid, uuid, groupuuid, montimebegin2, montimeend2, tuetimebegin2, tuetimeend2, wedtimebegin2, wedtimeend2, thutimebegin2, thutimeend2, fritimebegin2, fritimeend2, sattimebegin2, sattimeend2, suntimebegin2, suntimeend2) SELECT date("+sdateend+",'+1 day'), dateend, montimebegin, montimeend, monlunch, tuetimebegin, tuetimeend, tuelunch, wedtimebegin, wedtimeend, wedlunch, thutimebegin, thutimeend, thulunch, fritimebegin, fritimeend, frilunch, sattimebegin, sattimeend, satlunch, suntimebegin, suntimeend, sunlunch, childuuid, '"+newuuid+"', groupuuid, montimebegin2, montimeend2, tuetimebegin2, tuetimeend2, wedtimebegin2, wedtimeend2, thutimebegin2, thutimeend2, fritimebegin2, fritimeend2, sattimebegin2, sattimeend2, suntimebegin2, suntimeend2 FROM planning where uuid='"+ checkdatesplit[0].uuid +"';"); + parent.appdb.dbexec("UPDATE planning SET dateend=date("+sdatebegin+",'-1 day') where uuid='"+checkdatesplit[0].uuid+"'"); + } + + var checkdatefrom = parent.appdb.dbquery("select uuid from planning where datebegin between "+sdatebegin+" and "+sdateend+" and childuuid='"+pconfig.uuid+"';"); + var checkdateto = parent.appdb.dbquery("select uuid from planning where dateend between "+sdatebegin+" and "+sdateend+" and childuuid='"+pconfig.uuid+"';"); + if (checkdatefrom.sqldata && Object.keys(checkdatefrom.sqldata).length == 1) { + + parent.appdb.dbexec("update planning set datebegin=date("+encodeparam($("#frmeditplanning #dateend").val(),'date')+",'+1 day') where uuid='"+checkdatefrom.sqldata[0].uuid+"'"); + } + if (checkdateto.sqldata && Object.keys(checkdateto.sqldata).length == 1) { + + parent.appdb.dbexec("update planning set dateend=date("+encodeparam($("#frmeditplanning #datebegin").val(),'date')+",'-1 day') where uuid='"+checkdateto.sqldata[0].uuid+"'"); + } + if (pluuid) { + + parent.appdb.dbexec("DELETE FROM planning where uuid='" + pluuid + "'"); + } + var inssql = "INSERT INTO planning (" + sql1.join(',') + ") VALUES (" + sql2.join(',') + ");"; + parent.appdb.dbexec(inssql); + load_table_presence(); + $("#edit_planning").modal('hide'); +} + +function save_refperson() { + + var sql1 = new Array(); + var sql2 = new Array(); + + sql1.push("childuuid"); + sql2.push("'" + pconfig.uuid + "'"); + var refuuid= null; + $("#frmeditrefperson :input").each(function() { + var input = $(this); + + if (input.attr("id")) { + sql1.push(input.attr("id")); + if (input.attr("id") == 'uuid') { + if (input.val() == "" || input.val() == "0") { + sql2.push("'" + parent.appdb.generate_uuid() + "'"); + } else { + sql2.push("'" + input.val() + "'"); + } + if (input.val() != "0") { + refuuid=input.val(); + } + } else if (input.attr("type") == "checkbox") { + + sql2.push(((input.is(':checked')) ? "'1'" : "'0'")); + + } else { + var ival = input.val(); + if (ival == "''") { + ival = 'null'; + } + sql2.push(encodeparam(ival,'text')); + + } + } + }); + + if (refuuid) { + parent.appdb.dbexec("DELETE FROM refpersons where uuid='" + refuuid + "'"); + } + var inssql = "INSERT INTO refpersons (" + sql1.join(',') + ") VALUES (" + sql2.join(',') + ");"; + parent.appdb.dbexec(inssql); + + load_table_refperson(); + + $("#edit_refperson").modal('hide'); + + return false; +} + +function save_cautionstatus(){ + var sql1 = new Array(); + var sql2 = new Array(); + + sql1.push("childuuid"); + sql2.push("'" + pconfig.uuid + "'"); + var cauuuid= null; + $("#frmeditcautionstatus :input").each(function() { + var input = $(this); + + if (input.attr("id")) { + sql1.push(input.attr("id")); + if (input.attr("id") == 'uuid') { + //dump("caution uuid=" + input.val() +"\n"); + if (input.val() === "" || input.val() === "0") { + sql2.push("'" + parent.appdb.generate_uuid() + "'"); + } else { + sql2.push("'" + input.val() + "'"); + } + if (input.val() != "0") { + cauuuid=input.val(); + } + } else { + var ival = encodeparam(input.val(),input.attr('type')); + if (ival == "''") { + ival = 'null'; + } + sql2.push(ival); + + } + } + }); + + if (cauuuid) { + parent.appdb.dbexec("DELETE FROM cautionstatus where uuid='" + cauuuid + "'"); + } + var inssql = "INSERT INTO cautionstatus (" + sql1.join(',') + ") VALUES (" + sql2.join(',') + ");"; + //dump(inssql + "\n"); + parent.appdb.dbexec(inssql); + + load_table_caution(); + + $("#edit_cautionstatus").modal('hide'); + + return false; +} + +function confirm_delete_cautionstatus() { + $("#confirm_delete_cautionstatus").modal('show'); + return false; +} + + +function confirm_delete_planning() { + $("#confirm_delete_planning").modal('show'); + return false; +} + +function confirm_delete_allplanning() { + $("#confirm_delete_allplanning").modal('show'); + return false; +} + +function confirm_delete_refperson() { + $("#confirm_delete_refperson").modal('show'); + return false; +} + +function delete_planning() { + + parent.appdb.dbexec("DELETE FROM planning where uuid='" + delplan + "'"); + delplan = null; + load_table_presence(); + + $("#confirm_delete_planning").modal('hide'); + + return false; +} + +function delete_allplanning() { + + parent.appdb.dbexec("DELETE FROM planning where childuuid='" + pconfig.uuid + "'"); + delplan = null; + load_table_presence(); + + $("#confirm_delete_allplanning").modal('hide'); + + return false; +} + +function delete_refperson() { + + parent.appdb.dbexec("DELETE FROM refpersons where uuid='" + delrefperson + "'"); + delrefperson = null; + load_table_refperson(); + + $("#confirm_delete_refperson").modal('hide'); + + return false; +} + +function delete_cautionstatus() { + + parent.appdb.dbexec("DELETE FROM cautionstatus where uuid='" + delcautionstatus + "'"); + delcautionstatus = null; + load_table_caution(); + + $("#confirm_delete_cautionstatus").modal('hide'); + + return false; +} + +function display_tblrow(trid) { + $('#' + trid + "time2").show(); + +} + +function hide_tblrow(trid) { + $('#' + trid).hide(); +} + +[% IF creorga.modules.child.filelist %] + +function load_table_files(){ + + myfiles = system.getChildFiles(cruuid,pconfig.uuid); + + var atbody = []; + for (var i=0;i '); + row.push(fname); + atbody.push(row); + } + + } + + $("#tbl_files").html(""); + var headerdata = getlabels("action,description"); + $("#tbl_files").html(""); + $("#tbl_files").dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + "data": atbody, + "columns": headerdata, + "paging": false, + "scrollY": wh + "px", + "scrollCollapse": true, + "ordering": true, + "info": false, + "filter": false, + "destroy": true + }); +} + + + +function preview_file(fi){ + //dump("open file: " + fi + "\n"); + //var ff = system.openFile(fi); + //return false; +} + +function delete_report(fi) { + //dump("delete" + fi + " ->"+ myfiles[delfile].path+"\n"); + + //delfile = fi; + //dump(fi + "\n"); + if (confirm("êtes vous sûre de supprimer ce fichier?")){ + OS.File.remove(fi); + setTimeout(function(){load_table_files();},3000); + } + + return false; + +} + + + + +function dlg_file(){ + $("#edit_file").modal('show'); + return false; +} + + +function save_file(){ + // var file = $("#frmeditfile #file").val(); + // var path = FileUtils.File(curcfg.path.local + system.sep() +"childs" + system.sep() +cruuid + system.sep() + pconfig.uuid); + // var newlocation= path.path + system.sep() + system.getFileName(file); + // OS.File.copy(file, newlocation); + // setTimeout(function(){load_table_files();$("#edit_file").modal('hide');},3000); +} +[% END %] + diff --git a/CGI/tmpl/app/creorga/module/childs/js/childs.js b/CGI/tmpl/app/creorga/module/childs/js/childs.js new file mode 100644 index 0000000..5bb4268 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/childs/js/childs.js @@ -0,0 +1,127 @@ +//Source-code licensed under EUPL v1.2 ( Copyright 2019 By DKS s.à r.l. - Kilian Saffran - Luxembourg ) + +var idfilter = null; +var filter = null; +var delchild = null; + +var pconfig = {}; +var childtbl = null; + +var wh= window.innerHeight -160; + +var candelete = 0; +function initdata(){ + + pconfig = parent.parent.apppref.getpreference("childs"); + + if (!pconfig.printlayout) { + pconfig.printlayout = 'list'; + parent.parent.apppref.setpreference("childs",pconfig); + } + + var filters = getallfilters(); + + var strfilters = ""; + for (var f in filters) { + strfilters += '
  • ' + filters[f].description + '
  • '; + } + if (pconfig.filterid) { + filter = filters[pconfig.filterid]; + } else { + pconfig.filterid = 0; + filter = filters[0]; + parent.parent.apppref.setpreference("childs",pconfig); + } + + set_infoheader(filter.description); + $("#cmb_childsfilter").html(strfilters); + + loadtable(); +} + + +function loadtable() { + var actionbtnsql = ""; + [% IF creorga.modules.child.delete %] + + actionbtnsql += ""; + [% END %] + + var sql = filter.sql; + sql = sql.replace('%%ACTION%%',actionbtnsql); + var actionbtnsql2 = ""; + sql = sql.replace('%%ACTION2%%',actionbtnsql2); + + var data = parent.appdb.dbqueryarray(sql); + + + var headerdata = null; + + headerdata = getlabels(data.sqlhead.join(",")); + + $("#tbl_childs").html(""); + var nhd = []; + for (var i in headerdata){ + nhd.push({"title":headerdata[i]["title"],"class":headerdata[i]["class"]}); + } + + $("#tbl_childs").append(); + childtbl = $("#tbl_childs").dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + "data": data.sqldata, + "columns": nhd, + "scrollY": wh + "px", + "scrollCollapse": true, + "paging": false, + "ordering": true, + "info": true, + "filter": true, + "destroy": true + }); + + + if (pconfig.order) { + childtbl.fnSort(pconfig.order); + } + +} + + $('#tbl_childs').on( 'order.dt', function () { + pconfig.order= childtbl.fnSettings().aaSorting; + parent.parent.apppref.setpreference("pageconfig.childs",pconfig); + } ); + +function setfilter(fid) { + idfilter = fid; + filter = getfilter(fid); + pconfig.filterid = fid; + parent.parent.apppref.setpreference("childs",pconfig); + set_infoheader(filter.description); + loadtable(); +} + +function addchild() { + var newuuid = parent.appdb.generate_uuid(); + parent.appdb.dbexec("insert into childs (uuid,birthday,entrydate,leavedate) VALUES ('" + newuuid + "',date('now','-2 months'),date('now'),date('now'));"); + parent.app.loadpage('modules/childs/child.html',{uuid:newuuid}); +} + +function confirm_delete_child(myuuid) { + delchild = myuuid; + $("#confirm_delete_child").modal('show'); +} + +function delete_child() { + parent.appdb.dbexec("DELETE from childslog where childuuid='"+delchild+"'"); + parent.appdb.dbexec("DELETE FROM presence where childuuid='" + delchild + "';"); + parent.appdb.dbexec("DELETE FROM refpersons where childuuid='" + delchild + "';"); + parent.appdb.dbexec("DELETE FROM planning where childuuid='" + delchild + "';"); + parent.appdb.dbexec("DELETE FROM childs where uuid='" + delchild + "';"); + delchild = null; + loadtable(); + $("#confirm_delete_child").modal('hide'); +} + + diff --git a/CGI/tmpl/app/creorga/module/childs/js/filters.js b/CGI/tmpl/app/creorga/module/childs/js/filters.js new file mode 100644 index 0000000..7812437 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/childs/js/filters.js @@ -0,0 +1,51 @@ +//Source-code licensed under EUPL v1.2 ( Copyright 2019 By DKS s.à r.l. - Kilian Saffran - Luxembourg ) + +var filters_fr = [ +{"sql":"select '%%ACTION%%' as action, checkservicenumber, prename,surname, '' || strftime('%Y-%m-%d',birthday) || '' || strftime('%d.%m.%Y',birthday) as birthday from childs where leavedate >= date('now')", +"heads":"action,checkservicenumber,prename,surname,birthday", +"description":"courants (date actuelle <= date de sortie)"}, +// {"sql":"select '%%ACTION%%' as action, checkservicenumber, prename,surname, '' || strftime('%Y-%m-%d',birthday) || '' || strftime('%d.%m.%Y',birthday) as birthday from childs where checkserviceexpiration >= date('now','-1 months')", +// "heads":"action,checkservicenumber,prename,surname,birthday", +// "description":"expiration checkservice (<= 1 mois)"}, +{"sql":"select '%%ACTION%%' as action, checkservicenumber, prename,surname, '' || strftime('%Y-%m-%d',birthday) || '' || strftime('%d.%m.%Y',birthday) as birthday from childs where entrydate >= date('now')", +"heads":"action,checkservicenumber,prename,surname,birthday", +"description":"futur (date d'entrée >= date actuelle)"}, +{"sql":"select '%%ACTION%%' as action, checkservicenumber, prename,surname, '' || strftime('%Y-%m-%d',birthday) || '' || strftime('%d.%m.%Y',birthday) as birthday from childs", +"heads":"action,checkservicenumber,prename,surname,birthday", +"description":"tous"}, +{"sql":"select '%%ACTION%%' as action, checkservicenumber, prename,surname, '' || strftime('%Y-%m-%d',birthday) || '' || strftime('%d.%m.%Y',birthday) as birthday from childs where leavedate < date('now')", +"heads":"action,checkservicenumber,prename,surname,birthday" , +"description":"anciens (date actuelle > date de sortie)"}, +// {"sql":"select '%%ACTION%%' as action, checkservicenumber, prename,surname, '' || strftime('%Y-%m-%d',birthday) || '' || strftime('%d.%m.%Y',birthday) as birthday from childs where leavedate >= date('now','-2 months') and cautionamount is not null and cautionpayedback is null", +// "heads":"action,checkservicenumber,prename,surname,birthday", +// "description":"Caution à rembourser (sorties < 2 mois)"}, +{"sql":"select '%%ACTION2%%' as action, coalesce(ch.prename,'') || ' ' || coalesce(ch.surname,'') || '
    ' || '(' || coalesce(ch.checkservicenumber,'') || ')' as childname, rp.priority, "+ +" coalesce(rp.prename,'') || ' ' || coalesce(rp.surname,'') as nameprename, "+ + " case when rp.phone is not null then ': ' || rp.phone || '
    ' else '' end || case when rp.mobile is not null then': ' || rp.mobile || '
    ' else '' end || case when rp.workphone is not null then ': ' || rp.workphone || '
    ' else '' end as phone, coalesce(rp.address,'') || '
    ' || coalesce(rp.zip,'') || ' ' || coalesce(rp.city,'') || '
    ' || coalesce(rp.country,'') as address "+ + " from childs ch left join refpersons rp on (ch.uuid=rp.childuuid) where ch.leavedate >= date('now') and ch.checkservicenumber is not null "+ +" order by ch.prename,ch.surname,rp.priority,rp.reftype DESC", +"heads":"action,childname,priority,nameprename,phone,address", +"description":"Parents / Personnes de référence"}, +{"sql":"select '%%ACTION2%%' as action,ch.checkservicenumber as checkservicenumber,ch.prename as prename,ch.surname as surname," + + "'' || strftime('%Y-%m-%d',plnow.datebegin) || '' || strftime('%d.%m.%Y',plnow.datebegin) as datebeginnow,'' || strftime('%Y-%m-%d',plnow.dateend) || '' || strftime('%d.%m.%Y',plnow.dateend) as dateendnow,gr.grpname as grpname, " + + "'' || strftime('%Y-%m-%d',plnext.nextdatebegin) || '' || strftime('%d.%m.%Y',plnext.nextdatebegin) as datebeginnext, '' || strftime('%Y-%m-%d',plnext.nextdateend) || '' || strftime('%d.%m.%Y',plnext.nextdateend) as dateendnext, gr2.grpname as nextgroup " + + "from (select uuid, prename,surname,checkservicenumber from childs where date('now') between entrydate and leavedate) ch left join (select * from planning where date('now') between datebegin and dateend) plnow on (ch.uuid=plnow.childuuid) left join groups gr on (plnow.groupuuid=gr.uuid) " + + "left join (select childuuid, groupuuid,max(datebegin) as nextdatebegin,max(dateend) as nextdateend from planning where datebegin > date('now') group by childuuid ) plnext on (ch.uuid=plnext.childuuid) left join groups gr2 on (plnext.groupuuid = gr2.uuid);", + "heads":"action,checkservicenumber,prename,surname,datebeginnow,dateendnow,grpname,datebeginnext,dateendnext,grpname", + "description":"Planification groupes courrant et prochain" +} + +]; + +function getallfilters(){ + var ret = new Array(); + for (var f=0;f + + + + + + Crèche + + + + + + + + + + + + + + + + + +
    +
    + +
    +
    + +
    + +
    + +
    + + +
    + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    +
    + +
    + +
    Enfants
    +
    +
    +
    +
    +
    + + +
    + +
    Mois
    +
    +
    +
    +
    + +
    + +
    Mois
    +
    +
    +
    +
    + + + +
    +
    + + +
    + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + + + + + + + + + diff --git a/CGI/tmpl/app/creorga/module/creche/js/creche.js b/CGI/tmpl/app/creorga/module/creche/js/creche.js new file mode 100644 index 0000000..eef8012 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/creche/js/creche.js @@ -0,0 +1,467 @@ +//Source-code licensed under EUPL v1.2 ( Copyright 2019 By DKS s.à r.l. - Kilian Saffran - Luxembourg ) + +var crident = null; +var pconfig = {}; +var delwkhours = null; +var delplanning = null; +var delgroups = null; +var winh = window.innerHeight - 360; +var weekdays = ['mon','tue','wed','thu','fri','sat']; +var pconfig ={}; +function initdata() { + load_helpers(); + //check_crechetable(); + var sql = "SELECT uuid,crechename, adress, city, country, zip,maxchilds,minage,maxage,idcheckservice FROM creche LIMIT 1;"; + var crdata = parent.appdb.dbquery(sql); + if ((parent.app.info.modules.checkservice) && (parent.app.info.modules.checkservice.export) && (parent.app.info.modules.checkservice.export == true)){ + $("#option_exportcheckservice").show(); + } + if (crdata.sqldata.length == 0){ + crdata = parent.appdb.dbquery(sql); + } + crident = crdata.sqldata[0].uuid; + cdata = crdata.sqldata[0]; + for (var ci in cdata) { + + if (document.getElementById("creche_" + ci)) { + document.getElementById("creche_" + ci).setAttribute('value', cdata[ci]); + } + } + pconfig = parent.apppref.getpreference("creche"); + if (!pconfig) { + pconfig = {}; + + } + + + $('#frmeditgroups #color').minicolors({theme:'bootstrap',position: 'bottom right'}); + if (pconfig && pconfig.activetab) { + $('#tabgrouphead a[href="#' + pconfig.activetab + '"]').tab('show'); + } else { + $('#tabgrouphead a[href="#openinghours"]').tab('show'); + } +} + + +$('#tabgrouphead a[data-toggle="tab"]').on('shown.bs.tab', function(e) { + var tn = e.target.toString(); + + pconfig.activetab = tn.substring(tn.lastIndexOf("#") + 1); + + + if (pconfig.activetab == 'openinghours') { + load_table_workinghours(); + } + if (pconfig.activetab == 'groups') { + load_table_groups(); + } + if (pconfig.activetab == 'planningtemplate') { + load_table_planningtemplate(); + } + +}); + + +function load_table_workinghours() { + + var whsql1 = "select count(*) as cnt from workinghours;"; + var wdata1 = parent.appdb.dbquery(whsql1); + var delbtn = ""; + if (wdata1.sqldata[0].cnt == 1) { + delbtn = ''; + } + var whsql = "SELECT ' " + delbtn + "' as action, strftime('%d.%m.%Y',datestart) as startdate, case when montimeopen is null then 'fermé' else montimeopen || ' - ' || montimeclose end as monday, case when tuetimeopen is null then 'fermé' else tuetimeopen || ' - ' || tuetimeclose end as tuesday, case when wedtimeopen is null then 'fermé' else wedtimeopen || ' - ' || wedtimeclose end as wednesday, case when thutimeopen is null then 'fermé' else thutimeopen || ' - ' || thutimeclose end as thursday, case when fritimeopen is null then 'fermé' else fritimeopen || ' - ' || fritimeclose end as friday, case when sattimeopen is null then 'fermé' else sattimeopen || ' - ' || sattimeclose end as saturday FROM workinghours order by datestart ASC;"; + + var whdata = parent.appdb.dbqueryarray(whsql); + + var headerdata = getlabels(whdata.sqlhead.join(",")); + $("#tbl_workinghours").html(""); + $("#tbl_workinghours").dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + "data": whdata.sqldata, + "columns": headerdata, + "paging": false, + "scrollY": winh + "px", + "scrollCollapse": true, + "ordering": true, + "info": false, + "filter": false, + "destroy": true + }); + +} + +function load_table_groups() { + var grpsql1 = "select count(*) as cnt from groups;"; + var grpcnt = parent.appdb.dbquery(grpsql1); + var grpdel = "|| case when groupchildcount = 0 then ' ' else '' end"; + if (grpcnt.sqldata[0].cnt <= 1) { + grpdel = ''; + } + var grsql = "select '' " + grpdel + " as action, grpname,case when color is not null then '

    ' else null end as color, maxchilds, minage, maxage,coalesce(minstaff,1) as minstaff from ( select grp.uuid,grp.grpname,grp.color,grp.maxchilds,grp.minage,grp.maxage,grp.minstaff, count(plan.uuid) as groupchildcount from groups grp left join planning plan on (grp.uuid=plan.groupuuid) group by grp.uuid,grp.grpname,grp.maxchilds,grp.minage,grp.maxage order by grp.minage,grp.maxage) order by minage,maxage;"; + + var grdata = parent.appdb.dbqueryarray(grsql); + + var headerdata = getlabels(grdata.sqlhead.join(",")); + $("#tbl_groups").html(""); + var dtbl_groups = $("#tbl_groups").dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + "data": grdata.sqldata, + "columns": headerdata, + "paging": false, + "scrollY": winh + "px", + "scrollCollapse": true, + "ordering": true, + "info": false, + "filter": false, + "destroy": true + }); +} + +function load_table_planningtemplate() { + + var plansql = "SELECT '" + + "' as action," + 'templatename as name,'; + var xplan = []; + for (var i in weekdays){ + + + xplan.push("case when "+ weekdays[i] +"timebegin is null or "+ weekdays[i] +"timeend is null or "+ weekdays[i] +"timebegin = "+ weekdays[i] +"timeend then '' else "+ weekdays[i] +"timebegin || ' - ' || "+ weekdays[i] +"timeend end || (case when "+ weekdays[i] +"lunch then ' ()' else '' end) || case when "+ weekdays[i] +"timebegin2 = "+ weekdays[i] +"timeend2 or "+ weekdays[i] +"timebegin2 is null or "+ weekdays[i] +"timeend2 is null then '' else '
    ' || "+ weekdays[i] +"timebegin2 || ' - ' || "+ weekdays[i] +"timeend2 end as "+ weekdays[i] +""); + } + plansql += xplan.join(',') + ' from planningtemplate order by templatename;'; + + var tmpldata = parent.appdb.dbqueryarray(plansql); + + var headerdata = getlabels("action,name,mon,tue,wed,thu,fri,sat"); + $("#tbl_planningtemplate").html(""); + $("#tbl_planningtemplate").dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + "data": tmpldata.sqldata, + "columns": headerdata, + "paging": false, + "scrollY": winh + "px", + "scrollCollapse": true, + "ordering": true, + "info": false, + "filter": false, + "destroy": true + }); +} + +function dlg_workinghours(uuid, type) { + if ((type == 'upd') || (type == 'ins')) { + var cwhsql = "SELECT '0' as uuid,strftime('%d.%m.%Y',date('now')) as datestart, montimeopen, montimeclose, tuetimeopen, tuetimeclose, wedtimeopen, wedtimeclose, thutimeopen, thutimeclose, fritimeopen, fritimeclose FROM workinghours order by datestart DESC LIMIT 1;"; + if (type == 'upd') { + cwhsql = "SELECT uuid,strftime('%d.%m.%Y',datestart) as datestart, montimeopen, montimeclose, tuetimeopen, tuetimeclose, wedtimeopen, wedtimeclose, thutimeopen, thutimeclose, fritimeopen, fritimeclose, sattimeopen FROM workinghours where uuid='" + uuid.uuid + "';"; + } + var cwhdata = parent.appdb.dbquery(cwhsql); + cwhdata = cwhdata.sqldata[0]; + for (var w in cwhdata) { + if ($("#frmeditworkinghours #" + w)) { + + $("#frmeditworkinghours #" + w).val(cwhdata[w]); + } + } + $("#edit_workinghours").modal('show'); + } else if (type == 'del') { + delwkhours = uuid.uuid; + confirm_delete_workinghours(); + } +} + +function dlg_planningtemplate(uuid, type) { + for (var i in weekdays){ + $("#frmeditplanning #" + weekdays[i] + "time2").hide(); + } + if ((type == 'upd') || (type == 'ins')) { + //var grpsql = "SELECT strftime('%d.%m.%Y',date('now')) as startdate, '0,00' as costsperhour,'0,00' as costperhourfallback, '0' as weeklyhourslimit, '0' as dailylunchcosts, '0' as uuid;"; + var hdata = {templatename:"nouveau modèle",uuid:"0", + montimebegin:"00:00",montimeend:"00:00",monlunch:"0",montimebegin2: "00:00",montimeend2: "00:00", + tuetimebegin:"00:00",tuetimeend:"00:00",tuelunch:"0",tuetimebegin2: "00:00",tuetimeend2: "00:00", + wedtimebegin:"00:00",wedtimeend:"00:00",wedlunch:"0",wedtimebegin2: "00:00",wedtimeend2: "00:00", + thutimebegin:"00:00",thutimeend:"00:00",thulunch:"0",thutimebegin2: "00:00",thutimeend2: "00:00", + fritimebegin:"00:00",fritimeend:"00:00",frilunch:"0",fritimebegin2: "00:00",fritimeend2: "00:00" + }; + if (type == 'upd') { + var plxsql = "SELECT uuid, montimebegin, montimeend, monlunch, tuetimebegin, tuetimeend, tuelunch, wedtimebegin, wedtimeend, wedlunch, thutimebegin, thutimeend, thulunch, fritimebegin, fritimeend, frilunch,sattimebegin, sattimeend, satlunch, montimebegin2, montimeend2, tuetimebegin2, tuetimeend2, wedtimebegin2, wedtimeend2, thutimebegin2, thutimeend2, fritimebegin2, fritimeend2,sattimebegin2, sattimeend2, templatename FROM planningtemplate where uuid='" + uuid.uuid + "';"; + var hdbdata = parent.appdb.dbquery(plxsql); + hdata = hdbdata.sqldata[0]; + } + + $("#frmeditplanning #uuid").val(hdata.uuid); + for (var p in hdata) { + + if ($("#frmeditplanning #"+p)) { + + if ($("#" + p).is(':checkbox')) { + if (hdata[p] == '1') { + $("#" + p).prop("checked", true); + } else { + $("#" + p).prop("checked", false); + } + } else { + if ((p.substr(p.length-1) == "2") && (p.indexOf("time") !== -1) && (hdata[p.substr(0,3) + "timebegin2"] !== hdata[p.substr(0,3) + "timeend2"])){ + + $('#' + p.substr(0,3) + "time" + p.substr(p.length-1)).show(); + } + if ((p.indexOf("time") !== -1) && (hdata[p] === "")) { + document.getElementById(p).value = "00:00"; + } else { + document.getElementById(p).value = hdata[p]; + } + } + } + } + + + $("#edit_planning").modal('show'); + } else if (type == 'del') { + delplanning = uuid.uuid; + confirm_delete_planningtemplate(); + } +} + +function dlg_groups(uuid, type) { + if ((type == 'upd') || (type == 'ins')) { + var grpsql = "SELECT '0' as uuid,'nouvelle groupe' as grpname, case when maxchilds > 15 then 15 else maxchilds end as maxchilds, minage, maxage, 1 as minstaff FROM creche LIMIT 1;"; + if (type == 'upd') { + grpsql = "SELECT grpname, maxchilds, minage, maxage,minstaff, uuid,color FROM groups where uuid='" + uuid.uuid + "';" + } + var grpdata = parent.appdb.dbquery(grpsql); + grpdata = grpdata.sqldata[0]; + for (var g in grpdata) { + + if ($("#frmeditgroups #" + g)) { + $("#frmeditgroups #" + g).val(grpdata[g]); + if (g == 'color'){ + $('#frmeditgroups #color').minicolors('value',{color: grpdata[g]}); + } + } + } + $("#edit_groups").modal('show'); + } else if (type == 'del') { + delgroups = uuid.uuid; + confirm_delete_groups(); + } +} + +function save_workinghours() { + var sql1 = new Array(); + var sql2 = new Array(); + var type = 'ins'; + var cuuid = ""; + if ($("#frmeditworkinghours #uuid").val() != 0) { + type = 'upd'; + cuuid = $("#frmeditworkinghours #uuid").val(); + } + $("#frmeditworkinghours :input").each(function() { + var input = $(this); + if (input.attr("id")) { + if (type == 'ins') { + sql1.push('"' + input.attr("id") + '"'); + if (input.attr("id") == 'uuid') { + if (input.val() == "" || input.val() == "0") { + sql2.push("'" + parent.appdb.generate_uuid() + "'"); + } else { + sql2.push("'" + input.val() + "'"); + } + } else { + var ival = encodeparam(input.val(), input.attr('type')); + sql2.push(ival); + } + } else { + if (input.attr("id") != 'uuid') { + var ival = encodeparam(input.val(), input.attr('type')); + sql2.push('"' + input.attr("id") + '"=' + ival); + } + } + + + } + + }); + var xsql = ""; + if (type == 'upd') { + xsql = "UPDATE workinghours SET " + sql2.join(',') + " where \"uuid\"='" + cuuid + "';"; + } else { + xsql = "INSERT INTO workinghours (" + sql1.join(',') + ") VALUES (" + sql2.join(',') + ");"; + } + + parent.appdb.dbexec(xsql); + load_table_workinghours(); + $("#frmeditworkinghours #uuid").val("0"); + $("#edit_workinghours").modal('hide'); +} + +function save_planningtemplate() { + var sql1 = []; + var sql2 = []; + var cuuid = ""; + + if ($("#frmeditplanning #uuid").val() !== "0") { + cuuid = $("#frmeditplanning #uuid").val(); + } + + sql1.push('"templatename"'); + sql2.push(encodeparam($('#frmeditplanning #templatename').val(), "text")); + for (var i in weekdays){ + if ($('#frmeditplanning #' + weekdays[i] + "timebegin").val() !== $('#frmeditplanning #' + weekdays[i] + "timeend").val()){ + sql1.push('"' + weekdays[i] + "timebegin" + '"'); + sql1.push('"' + weekdays[i] + "timeend" + '"'); + sql2.push(encodeparam($('#frmeditplanning #' + weekdays[i] + "timebegin").val(), "text")); + sql2.push(encodeparam($('#frmeditplanning #' + weekdays[i] + "timeend").val(), "text")); + if ($('#frmeditplanning #' + weekdays[i] + "lunch").is(':checked')){ + sql1.push('"' + weekdays[i] + "lunch" + '"'); + sql2.push("'1'"); + } + } + if ($('#frmeditplanning #' + weekdays[i] + "timebegin2").val() !== $('#frmeditplanning #' + weekdays[i] + "timeend2").val()){ + sql1.push('"' + weekdays[i] + "timebegin2" + '"'); + sql1.push('"' + weekdays[i] + "timeend2" + '"'); + sql2.push(encodeparam($('#frmeditplanning #' + weekdays[i] + "timebegin2").val(), "text")); + sql2.push(encodeparam($('#frmeditplanning #' + weekdays[i] + "timeend2").val(), "text")); + } + } + if (cuuid !== '') { + parent.appdb.dbexec("DELETE FROM planningtemplate where \"uuid\"='" + cuuid + "';"); + sql1.push('"uuid"'); + sql2.push("'"+cuuid+"'"); + }else { + sql1.push('"uuid"'); + sql2.push("'"+parent.appdb.generate_uuid()+"'"); + } + var xsql = "INSERT INTO planningtemplate (" + sql1.join(',') + ") VALUES (" + sql2.join(',') + ");"; + + parent.appdb.dbexec(xsql); + load_table_planningtemplate(); + $("#frmeditplanning #uuid").val("0"); + $("#edit_planning").modal('hide'); +} + +function save_group() { + var sql1 = new Array(); + var sql2 = new Array(); + var type = 'ins'; + var cuuid = ""; + + if ($("#frmeditgroups #uuid").val() != 0) { + type = 'upd'; + cuuid = $("#frmeditgroups #uuid").val(); + } + $("#frmeditgroups :input").each(function() { + var input = $(this); + if (input.attr("id")) { + if (type == 'ins') { + sql1.push('"' + input.attr("id") + '"'); + if (input.attr("id") == 'uuid') { + if (input.val() == "" || input.val() == "0") { + sql2.push("'" + parent.appdb.generate_uuid() + "'"); + } else { + sql2.push("'" + input.val() + "'"); + } + } else { + var ival = encodeparam(input.val(), input.attr('type')); + sql2.push(ival); + } + } else { + if (input.attr("id") != 'uuid') { + var ival = encodeparam(input.val(), input.attr('type')); + sql2.push('"' + input.attr("id") + '"=' + ival); + } + } + + + } + + }); + var xsql = ""; + if (type == 'upd') { + xsql = "UPDATE groups SET " + sql2.join(',') + " where \"uuid\"='" + cuuid + "';"; + } else { + xsql = "INSERT INTO groups (" + sql1.join(',') + ") VALUES (" + sql2.join(',') + ");"; + } + + parent.appdb.dbexec(xsql); + load_table_groups(); + $("#frmeditgroups #uuid").val("0"); + $("#edit_groups").modal('hide'); +} + +function confirm_delete_workinghours() { + $("#confirm_delete_workinghours").modal('show'); + return false; +} + +function confirm_delete_planningtemplate() { + $("#confirm_delete_planningtemplate").modal('show'); + return false; +} + +function confirm_delete_groups() { + $("#confirm_delete_groups").modal('show'); + return false; +} + + + +function delete_groups() { + + parent.appdb.dbexec("DELETE FROM groups where uuid='" + delgroups + "';"); + delgroups = null; + load_table_groups(); + + $("#confirm_delete_groups").modal('hide'); + + return false; +} + +function delete_workinghours() { + var delsql = "DELETE FROM workinghours where uuid='" + delwkhours + "';"; + parent.appdb.dbexec(delsql); + delwhours = null; + load_table_workinghours(); + + $("#confirm_delete_workinghours").modal('hide'); + + return false; +} + +function delete_planningtemplate() { + + parent.appdb.dbexec("DELETE FROM planningtemplate where uuid='" + delplanning + "'"); + delplanning = null; + load_table_planningtemplate(); + + $("#confirm_delete_planningtemplate").modal('hide'); + + return false; +} + +function display_tblrow(trid) { + $('#frmeditplanning #' + trid + "time2").show(); + +} + +function hide_tblrow(trid) { + + $('#frmeditplanning #' + trid.substr(0,3)+"timebegin2").val("00:00"); + $('#frmeditplanning #' + trid.substr(0,3)+"timeend2").val("00:00"); + $('#frmeditplanning #' + trid).hide(); +} + +function check_defaultdata() { + +} + +function check_crechetable(){ + var cols = parent.appdb.dbquery("SELECT type, name,tbl_name,sql FROM sqlite_master where tbl_name='creche';"); + if (cols.sqldata[0].sql.indexOf("idcheckservice") == -1){ + parent.appdb.dbexec("ALTER TABLE accounting add column idcheckservice TEXT;"); + } +} \ No newline at end of file diff --git a/CGI/tmpl/app/creorga/module/presences/dailypresences.tt b/CGI/tmpl/app/creorga/module/presences/dailypresences.tt new file mode 100644 index 0000000..35e53f6 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/presences/dailypresences.tt @@ -0,0 +1,178 @@ + + + + + + + Présences par jour + + + + + + + + + + + + + + + + + +
    + + +
    +
    +
    + + + +
    + + + + + + + + + + + + + + diff --git a/CGI/tmpl/app/creorga/module/presences/js/dailypresences.js b/CGI/tmpl/app/creorga/module/presences/js/dailypresences.js new file mode 100644 index 0000000..953a308 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/presences/js/dailypresences.js @@ -0,0 +1,404 @@ +//Source-code licensed under EUPL v1.2 ( Copyright 2019 By DKS s.à r.l. - Kilian Saffran - Luxembourg ) + +var pconfig = { + "groupuuid": null, + "presday": null +}; +var weekdates = null; +var initdate = new Date(); +var cdate = initdate.toISOString().substring(0,10); + +var wh= window.innerHeight -190; + +var tableheadssql = ""; +var weekday = initdate.getDay(); + +var presencedropdown = ''; + +var wdays = ["sun","mon","tue","wed","thu","fri","sat"]; + +var presences = { + "btn-default": 0, + "btn-success": 1, + "btn-warning": 2, + "btn-danger": 3, + "btn-absent2": 31, + "btn-info": 4, + "btn-primary": 5 +}; + +var presenceids = { + 0: { + text: "default", + class: "btn-default", + icon: '' + + }, + 1: { + text: "success", + class: "btn-success", + icon: '' + + }, + 2: { + text: "warning", + class: "btn-warning", + icon: '' + }, + 3: { + text: "danger", + class: "btn-danger", + icon: '' + }, + 31: { + text: "absent2", + class: "btn-absent2", + icon: '' + }, + 4: { + text: "info", + class: "btn-info", + icon: '' + }, + 5: { + text: "primary", + class: "btn-primary", + icon: '' + } +}; + +$("#presday").on("dp.hide", function () { + change_day(); +}); + +$('input[id^="txt"]').on('keydown',function(e){ + var keycode = e.keyCode || e.which; + + if ( keycode == 9 ){ + + $(this).next('input').focus(); + + } + +}); +// $('input[id^="txt"]').on('blur',function(e){ +// console.log($(this).attr("id")); +// savetime($(this)); +// } +// ); + +function initdata() { + load_helpers(); + $('input').on("click", function () { + $(this).select(); + }); + pconfig = getSearchParams(); + + + if (pconfig.presday) { + initdate = new Date(pconfig.presday); + + $("#presday").val(pconfig.presday); + }else{ + $("#presday").val(initdate.toISOString().substring(0,10)); + } + loadtable(); + +} + + +function loadtable(){ + + $("#tbldailypresences").html(""); + + cdate = initdate.toISOString().substring(0,10); + var daygroupsql = "SELECT ch.uuid as childuuid, ch.prename || ' ' || ch.surname AS childname, "+ + "gr.uuid as groupuuid, gr.grpname as grpname, " + + "pr.begintime1 as begintime1, pr.endtime1 as endtime1, pr.begintime2 as begintime2, pr.endtime2 as endtime2, pr.status as status, pr.lunch as lunch, "+ + wdays[weekday]+"timebegin as plantimebegin, "+wdays[weekday]+"timeend as plantimeend, "+ + wdays[weekday]+"timebegin2 as plantimebegin2, "+wdays[weekday]+"timeend2 as plantimeend2, "+wdays[weekday]+"lunch as planlunch , "+ + "case when pr.childuuid is not null then 'upd' else 'ins' end as ddltype "+ + "from childs ch "+ + "LEFT JOIN presence pr ON (pr.childuuid = ch.uuid and pr.daydate = date('"+cdate+"')) "+ + "left join planning pl on (pl.childuuid = ch.uuid and date('"+cdate+"') between pl.datebegin and pl.dateend ) "+ + "LEFT JOIN groups gr ON (pl.groupuuid = gr.uuid) "+ + " where ch.entrydate <= date('"+cdate+"') and ch.leavedate >= date('"+cdate+"')"; + + var dpresdata = parent.appdb.dbquery(daygroupsql); + + var headerdata = getlabels("act,grpname,childname,effectiftime,status,plannedtime"); + + var headdata = ""; + for (var h=0;h'; + } + } + $("#tbldailypresences > thead").append('' + headdata+ ''); + var dpdata = dpresdata.sqldata; + + for (var b in dpdata){ + var row = dpdata[b]; + + var rdata = ''+ row.grpname +''+row.childname+''; + + rdata += '
    '+ + ' de: '+ + '
    ' + + '
    '+ + ' à: '+ + '
    '+ + '
    ' + + 'et de: '+ + '
    ' + + '
    '+ + ' à: '+ + '
    '+ + '
    ' + + '

    '; + rdata += ''+ + '
    ' + + '' +'
    ' + + '
    ' + + ''; + rdata += ''+row.plantimebegin +' - ' + row.plantimeend + ''+ ((row.planlunch == "1")?' ()':'')+''+ + ((row.plantimebegin2 != '')?'
    '+row.plantimebegin2 +' - ' + row.plantimeend2 + '':'')+ + ''; + + + $("#tbldailypresences > tbody").append(''+rdata+''); + } + + $("#tbldailypresences").dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + "paging": false, + "scrollY": wh + "px", + "scrollCollapse": true, + "info": false, + "ordering": true, + "filter": true, + "destroy": true + }); + + + + setallpresences(); +} + +function savetime(obj){ + var fdata =obj.id.split("_"); + //console.log('savetime'); + //console.log(fdata); + + var timeval = obj.value; + //console.log("Tval 1:" + timeval); + var ddltype = $("#" + fdata[1]+ "_ddltype").html(); + + var psqltime = ""; + if (timeval == ''){ + timeval='null'; + }else{ + timeval = timeval.replace(/[^\d]/g, '') + "0000"; + timeval = timeval.substring(0,2) + ":" + timeval.substring(2,4); + $("#" + obj.id).val(timeval); + timeval = "'" + timeval + "'"; + } + + // console.log("Tval 2:" + timeval); + if (ddltype == 'upd'){ + + if (fdata[0] == "txtbegintime1"){ + psqltime = "update presence set begintime1="+timeval+" where childuuid='"+fdata[1]+"' and daydate=date('"+initdate.toISOString().substring(0,10)+"');"; + } else if (fdata[0] == "txtendtime1"){ + psqltime = "update presence set endtime1="+timeval+" where childuuid='"+fdata[1]+"' and daydate=date('"+initdate.toISOString().substring(0,10)+"');"; + } else if (fdata[0] == "txtbegintime2"){ + psqltime = "update presence set begintime2="+timeval+" where childuuid='"+fdata[1]+"' and daydate=date('"+initdate.toISOString().substring(0,10)+"');"; + } else if (fdata[0] == "txtendtime2") { + psqltime = "update presence set endtime2="+timeval+" where childuuid='"+fdata[1]+"' and daydate=date('"+initdate.toISOString().substring(0,10)+"');"; + } else { + return false; + } + } else if (ddltype == 'ins'){ + var xfield = fdata[0].substring(3); + var psqltime = "INSERT INTO presence (status,childuuid,daydate,lunch,"+xfield+") VALUES "; + psqltime += "(1,'" + fdata[1] + "',date('" + initdate.toISOString().substring(0,10) + "')," + + ((($("#planlunch_" + fdata[1]).exists()) && ($("#planlunch_" + fdata[1]).html() != ''))?"'1'":'null') + ","+timeval+");"; + } + // console.log(psqltime); + if (psqltime !== ""){ + + parent.appdb.dbexec(psqltime); + if (ddltype == 'ins'){ + $("#" + fdata[1]+ "_ddltype").html('upd'); + } + } +} + +function setlunch(childuuid,status) { + + var lunch = 'null'; + if (status == 1) { + $("#btn_" + childuuid+ "_lunch").removeClass('btn-default'); + $("#btn_" + childuuid+ "_lunch").addClass('btn-success'); + lunch = "'1'"; + } else { + $("#btn_" + childuuid+ "_lunch").removeClass('btn-success'); + $("#btn_" + childuuid+ "_lunch").addClass('btn-default'); + lunch = "'0'"; + } + + parent.appdb.dbexec("update presence set lunch=" + lunch + " where daydate=date('" + initdate.toISOString().substring(0,10) + "') and childuuid='" + childuuid + "';"); + +} + +function setpresence(childuuid,newstatus) { + + var ddltype = $("#" + childuuid + "_ddltype").html(); + + var usql = ""; + if (newstatus == 0){ + $("#btn_" + childuuid + "_lunch").css("display", "none"); + } else { + $("#btn_" + childuuid + "_lunch").css("display", ""); + } + if ((ddltype=='ins') && (newstatus != 0)){ + + usql = "INSERT INTO presence (status,childuuid,daydate,lunch) "+ + "VALUES (" + newstatus + ",'" + childuuid + "',date('" + initdate.toISOString().substring(0,10) + "')," + + ((($("#planlunch_" + childuuid).exists()) && ($("#planlunch_" + childuuid).html() != '') && newstatus==1)?"'1'":'null') + ");"; + + } else if (newstatus == 0) { + + usql = "DELETE FROM presence where childuuid='" + childuuid + "' and daydate=date('" + initdate.toISOString().substring(0,10) + "');"; + $("#txtbegintime1_" + childuuid).val(''); + $("#txtendtime1_" + childuuid).val(''); + $("#txtbegintime2_" + childuuid).val(''); + $("#txtendtime2_" + childuuid).val(''); + $("#btn_" + childuuid+ "_lunch").removeClass('btn-success'); + $("#btn_" + childuuid+ "_lunch").addClass('btn-default'); + + } else { + var usql = "UPDATE presence SET status=" + newstatus + " where childuuid='" + childuuid + "' and daydate=date('" + initdate.toISOString().substring(0,10) + "');"; + + } + parent.appdb.dbexec(usql); + $("#" + childuuid + "_ddltype").html("upd"); + $("#btn_" + childuuid).attr("class","btn " + presenceids[newstatus].class + " dropdown-toggle"); + $("#btn_" + childuuid).html(presenceids[newstatus].icon); + + if (newstatus != 0 && newstatus != 1 && newstatus != 5){ + $("#frm_" + childuuid).css("display","none"); + }else { + $("#frm_" + childuuid).css("display",""); + } + + if (($("#planlunch_" + childuuid).exists()) && ($("#planlunch_" + childuuid).html() != '') && newstatus == 1){ + setlunch(childuuid,1); + } + +} + +function setalltopresent(){ + $('body').css('cursor','wait'); + + $("button[id^=btn_]").each( + function(){ + if (($(this).attr("id").indexOf("lunch") == -1) && ($(this).attr("class").indexOf("btn-default") != -1)) { + var btnspl =$(this).attr("id").split("_"); + setpresence(btnspl[1],1); + } + + } + ); + $('body').css('cursor','auto'); +} + + + +function setallpresences() { + var prsql = "select daydate,childuuid,status,lunch from presence where daydate = date('" +initdate.toISOString().substring(0,10) + "');"; + var presdata = parent.appdb.dbquery(prsql); + presdata = presdata.sqldata; + if (presdata) { + for (var p in presdata) { + if ($("#btn_" + presdata[p].childuuid ).exists()) { + $("#btn_" + presdata[p].childuuid).attr("class","btn " + presenceids[presdata[p].status].class + " dropdown-toggle"); + $("#btn_" + presdata[p].childuuid).html(presenceids[presdata[p].status].icon); + $("#btn_" + presdata[p].childuuid + "_lunch").css("display",""); + } + if (presdata[p].lunch == 1){ + $("#btn_" + presdata[p].childuuid + "_lunch").attr("class","btn btn-success dropdown-toggle"); + + } + + + } + } +} + + +function change_day() { + pconfig.presday = $('#presday').val(); + initdate=new Date(pconfig.presday); + parent.apppref.setpreference("dailypresences",pconfig); + loadtable(); + +} + +function onpreviousday() { + pconfig.presday = $('#presday').val(); + + var tmpweek = new Date(pconfig.presday); + var nweek = new Date(tmpweek.getFullYear(), tmpweek.getMonth(), tmpweek.getDate()); + + if (nweek.getDay() == 1){ + nweek = new Date(tmpweek.getFullYear(), tmpweek.getMonth(), tmpweek.getDate()-2); + } + + pconfig.presday = nweek.toISOString().substring(0,10); + initdate=new Date(pconfig.presday); + $('#presday').val(pconfig.presday); + parent.apppref.setpreference("dailypresences",pconfig); + loadtable(); + + +} + +function onnextday() { + pconfig.presday = $('#presday').val(); + var tmpweek = new Date(pconfig.presday); + var nweek = new Date(tmpweek.getFullYear(), tmpweek.getMonth(), tmpweek.getDate()+2); + if (nweek.getDay() == 0){ + nweek = new Date(tmpweek.getFullYear(), tmpweek.getMonth(), tmpweek.getDate()+4); + } + pconfig.presday = nweek.toISOString().substring(0,10); + initdate=new Date(pconfig.presday); + $('#presday').val(pconfig.presday); + parent.apppref.setpreference("dailypresences",pconfig); + loadtable(); +} + +function timefocus(obj){ + if (!obj.value || obj.value == ''){ + var currentdate = new Date(); + obj.value=currentdate.getHours() + ":" +currentdate.getMinutes(); + } + obj.select(); +} + + + diff --git a/CGI/tmpl/app/creorga/module/presences/js/weeklypresences.js b/CGI/tmpl/app/creorga/module/presences/js/weeklypresences.js new file mode 100644 index 0000000..ad86904 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/presences/js/weeklypresences.js @@ -0,0 +1,489 @@ +//Source-code licensed under EUPL v1.2 ( Copyright 2019 By DKS s.à r.l. - Kilian Saffran - Luxembourg ) + +var pconfig = { + "groupuuid": null, + "presweek": null +}; +var weekdates = null; +var initdate = new Date(); +var cdate = initdate.toISOString().substring(0,10); +var wh= window.innerHeight -190; +var groups = {}; +var tableheadssql = ""; + +var presences = { + "btn-default": { + class: "btn-success", + icon: '', + nextdata: 1 + }, + "btn-success": { + class: "btn-warning", + icon: '', + nextdata: 2 + }, + "btn-warning": { + class: "btn-danger", + icon: '', + nextdata: 3 + }, + "btn-absent2": { + class: "btn-absent2", + icon: '', + nextdata: 31 + }, + "btn-danger": { + class: "btn-info", + icon: '', + nextdata: 4 + }, + "btn-info": { + class: "btn-primary", + icon: '', + nextdata: 5 + }, + "btn-primary": { + class: "btn-default", + icon: '', + nextdata: null + } +}; + +var presenceids = { + 1: { + class: "btn-success", + icon: '', + nextdata: 1 + }, + 2: { + class: "btn-warning", + icon: '', + nextdata: 2 + }, + 3: { + class: "btn-danger", + icon: '', + nextdata: 3 + }, + 31: { + class: "btn-absent2", + icon: '', + nextdata: 31 + }, + 4: { + class: "btn-primary", + icon: '', + nextdata: 4 + }, + 5: { + class: "btn-info", + icon: '', + nextdata: 5 + } +}; + +$("#presweek").on("dp.hide", function () { + change_week(); +}); + +function initdata() { + load_helpers(); + var pdata = getSearchParams(); + // if (pdata !== '') { + // pconfig = JSON.parse(pdata); + // } + pconfig.printlayout = 'multilist'; + parent.apppref.setpreference("weeklypresences",pconfig); + + if (pconfig.presweek) { + initdate = new Date(pconfig.presweek); + + $("#presweek").val(pconfig.presweek); + }else{ + $("#presweek").val(initdate.toISOString().substring(0,10)); + } + + set_infoheader(""); + loadtable(); + + + } + + function loadtable(){ + cdate = initdate.toISOString().substring(0,10); + $("#presencegrouptabs").html('
    '); + weekdates = parent.appdb.dbquery("select weekdaybegin as mon, date(weekdaybegin,'+1 day') as tue, date(weekdaybegin,'+2 days') as wed, date(weekdaybegin,'+3 days') as thu, date(weekdaybegin,'+4 days') as fri from (select case when strftime('%w','" + cdate + "') = '1' then strftime('%Y-%m-%d','" + cdate + "') else strftime('%Y-%m-%d', date(date('" + cdate + "','-7 days'),'weekday 1')) end as weekdaybegin) "); + + tableheadssql = "select 'Lundi, ' || strftime('%d.%m.%Y',weekdaybegin) as monday, 'Mardi, ' || strftime('%d.%m.%Y',date(weekdaybegin,'+1 day')) as tuesday, 'Mercredi, ' || strftime('%d.%m.%Y',date(weekdaybegin,'+2 days')) as wednesday, 'Jeudi, ' || strftime('%d.%m.%Y',date(weekdaybegin,'+3 days')) as thursday, 'Vendredi, ' || strftime('%d.%m.%Y',date(weekdaybegin,'+4 days')) as friday from (select case when strftime('%w','" + cdate + "') = '1' then strftime('%Y-%m-%d','" + cdate + "') else strftime('%Y-%m-%d', date(date('" + cdate + "','-7 days'),'weekday 1')) end as weekdaybegin);"; + + var tblheads = parent.appdb.dbquery(tableheadssql); + weekdates = weekdates.sqldata[0]; + + groups = parent.appdb.dbquery("select grpname,uuid as groupuuid,minage,maxage from groups UNION select 'Pas de groupe' as grpname,null as uuid,(select max(maxage) from creche) as minage,(select max(maxage) from creche) as maxage order by minage,maxage"); + //set_infoheader("Semaine du " + tblheads.sqldata[0].monday + " au " + tblheads.sqldata[0].friday); + groups = groups.sqldata; + + var tblgrpsql = "SELECT childname, MAX(monplan) AS monplan, MAX(monlunchplan) AS monlunchplan, MAX(tueplan) AS tueplan, MAX(tuelunchplan) AS tuelunchplan, MAX(wedplan) AS wedplan, MAX(wedlunchplan) AS wedlunchplan, MAX(thuplan) AS thuplan, MAX(thulunchplan) AS thulunchplan, MAX(friplan) AS friplan, MAX(frilunchplan) AS frilunchplan FROM ( SELECT ' ' || ch.prename || ' ' || ch.surname AS childname, "; + var vacdates = parent.appdb.dbqueryarray("select CAST(strftime(\"%w\",vacancydate) as INT)-1 as wdnum from vacancy where vacancydate between '"+weekdates.mon+"' and '"+weekdates.fri+"' and vacancydateto is null;" ); + var vacrem = ""; + if (vacdates) { + vacdates = vacdates.sqldata; + vacrem = vacdates.join(','); + } + var wda = ['mon','tue','wed','thu','fri','sat']; + var wdsa = []; + for (var w in wda){ + + if (vacrem.indexOf(w) != -1) { + wdsa.push("null as "+wda[w]+"plan,null AS "+wda[w]+"lunchplan"); + } else { + + wdsa.push(" CASE WHEN pl."+wda[w]+"timebegin != '00:00' AND '" + weekdates[wda[w]] + "' BETWEEN pl.datebegin AND pl.dateend THEN '' ELSE '' END AS "+wda[w]+"plan, " + + " CASE WHEN pl."+wda[w]+"timebegin != '00:00' AND '" + weekdates[wda[w]] + "' BETWEEN pl.datebegin AND pl.dateend THEN '' ELSE NULL END AS "+wda[w]+"lunchplan" ); + } + + } + tblgrpsql += wdsa.join(",") + + " FROM planning pl LEFT JOIN childs ch ON ( pl.childuuid=ch.uuid) LEFT JOIN groups gr ON ( pl.groupuuid=gr.uuid) WHERE gr.uuid%%goupuuid%% AND (( pl.datebegin <= '" + weekdates.mon + "' AND pl.dateend >= '" + weekdates.mon + "') OR ( pl.datebegin <= '" + weekdates.tue + "' AND pl.dateend >= '" + weekdates.tue + "') OR ( pl.datebegin <= '" + weekdates.wed + "' AND pl.dateend >= '" + weekdates.wed + "') OR ( pl.datebegin <= '" + weekdates.thu + "' AND pl.dateend >= '" + weekdates.thu + "') OR ( pl.datebegin <= '" + weekdates.fri + "' AND pl.dateend >= '" + weekdates.fri + "') ) ) chpr GROUP BY childname ORDER BY childname"; + for (var g in groups) { + if (groups[g].groupuuid !== '') { + $("#dlg_changegrp #groupuuid").append(''); + } + + $("#tabgrouphead").append('
  • ' + groups[g].grpname + '
  • '); + $("#tabgroupbody").append('
    '); + var cgrpsql = tblgrpsql.replace('%%goupuuid%%', "='" +groups[g].groupuuid + "'"); + if (groups[g].groupuuid === '') { + cgrpsql = tblgrpsql.replace('%%goupuuid%%', " is null"); + } + + var grpdata = parent.appdb.dbqueryarray(cgrpsql); + + var headerdata = getlabels(grpdata.sqlhead.join(",")); + + $("#tabgrp_" + groups[g].groupuuid).append('
    '); + + $("#tblgrp_" + groups[g].groupuuid + " > thead").append('Enfant' + tblheads.sqldata[0].monday + '' + tblheads.sqldata[0].tuesday + '' + tblheads.sqldata[0].wednesday + '' + tblheads.sqldata[0].thursday + '' + tblheads.sqldata[0].friday + ''); + var headdata = ""; + for (var h=0;h'; + } + } + $("#tblgrp_" + groups[g].groupuuid + " > thead").append('' + headdata+ ''); + grpdata = grpdata.sqldata; + for (var b in grpdata){ + var xdata = grpdata[b]; + $("#tblgrp_" + groups[g].groupuuid + " > tbody").append(''+xdata.join('')+''); + } + // + $("#tblgrp_" + groups[g].groupuuid).dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + "paging": false, + "scrollY": wh + "px", + "scrollCollapse": true, + "info": false, + "ordering": true, + "filter": true, + "destroy": true + }); + } + + setallpresences(); + $('#tabgrouphead a[data-toggle="tab"]').on('shown.bs.tab', function (e) { + var tn = e.target.toString(); + pconfig.groupuuid = tn.substring(tn.lastIndexOf("#")+8); + pconfig.activetab = 'tblgrp_' +pconfig.groupuuid; + parent.apppref.setpreference("weeklypresences",pconfig); + + if (pconfig.groupuuid != null){ + $("#tblgrp_" + pconfig.groupuuid).dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + "paging": false, + "scrollY": wh + "px", + "scrollCollapse": true, + "info": false, + "ordering": true, + "filter": true, + "destroy": true + }); + } + }); + if (!pconfig.groupuuid) { + $('#tabgrouphead a[href="#tabgrp_' + groups[0].groupuuid + '"]').tab('show'); + pconfig.groupuuid = groups[0].groupuuid; + pconfig.activetab = '#tabgrp_' + groups[0].groupuuid; + parent.apppref.setpreference("weeklypresences",pconfig); + } else { + $('#tabgrouphead a[href="#tabgrp_' + pconfig.groupuuid + '"]').tab('show'); + pconfig.activetab = '#tabgrp_' + groups[0].groupuuid; + parent.apppref.setpreference("weeklypresences",pconfig); + } + +} + +function setlunch(btn) { + + var clb = $(btn).attr('class').split(' '); + var ident = $(btn).attr('id').split('_'); + + var lunch = 'null'; + if (clb[1] == 'btn-default') { + $(btn).removeClass('btn-default'); + $(btn).addClass('btn-success'); + lunch = "'1'"; + } else { + $(btn).removeClass('btn-success'); + $(btn).addClass('btn-default'); + lunch = "'0'"; + } + + parent.appdb.dbexec("update presence set lunch=" + lunch + " where daydate='" + weekdates[ident[2].substring(0, 3)] + "' and childuuid='" + ident[1] + "';"); + +} + +function setpresence(btn) { + $(btn).removeClass('2'); + var clx = $(btn).attr('class'); + var clb = clx.split(' '); + + var ident = $(btn).attr('id').split('_'); + if ((ident[0] == 'btn') && ((ident[1] == 'edit') || (ident[1] == 'changegrp'))) { + return; + } + var clblunch = $("#" + $(btn).attr('id') + 'lunch').attr('class').split(' '); + var usql = "UPDATE presence SET status=" + presences[clb[1]].nextdata + " where childuuid='" + ident[1] + "' and daydate=date('" + weekdates[ident[2]] + "');"; + + if (presences[clb[1]].nextdata == 1) { + usql = "INSERT INTO presence (status,childuuid,daydate,lunch) VALUES (" + presences[clb[1]].nextdata + ",'" + ident[1] + "',date('" + weekdates[ident[2]] + "')," + ((clblunch[1] == 'default') ? 0 : 1) + ");"; + + } else if (!presences[clb[1]].nextdata) { + usql = "DELETE FROM presence where childuuid='" + ident[1] + "' and daydate='" + weekdates[ident[2]] + "';"; + } + + parent.appdb.dbexec(usql); + $(btn).removeClass(clb[1]); + $(btn).addClass(presences[clb[1]].class); + $(btn).html(presences[clb[1]].icon); + if ((presences[clb[1]].nextdata == 1) || (presences[clb[1]].nextdata == 5)) { + $("#" + $(btn).attr("id") + "lunch").removeClass('btn-default'); + $("#" + $(btn).attr("id") + "lunch").addClass('btn-success'); + $("#" + $(btn).attr("id") + "lunch").prop("disabled", false); + } else { + $("#" + $(btn).attr("id") + "lunch").removeClass('btn-success'); + $("#" + $(btn).attr("id") + "lunch").addClass('btn-default'); + $("#" + $(btn).attr("id") + "lunch").prop("disabled", true); + } +} + +function setalltopresent(){ + $('body').css('cursor','wait'); + + $("button[id^=btn_]").each( + function(){ + if ((this.id.indexOf("lunch") == -1) && (this.getAttribute("class").indexOf("btn-default") != -1)) { + setpresence(this); + } + + } + ); + $('body').css('cursor','auto'); +} + + + +function setallpresences() { + var prsql = "select daydate,childuuid,status,lunch,case "; + var wda = ['','mon','tue','wed','thu','fri','sat']; + var dd = []; + for (var i=1;i<=wda.length;i++){ + dd.push("when weekday='"+i+"' then '"+ wda[i]+"'"); + } + prsql += dd.join(',') + " else null end as weekday from (select daydate,childuuid,status,lunch,strftime('%w',daydate) as weekday from presence where daydate >= date('" + weekdates.mon + "') and daydate <=date('" + weekdates.fri + "')) group by childuuid,daydate;"; + var presdata = parent.appdb.dbquery(prsql); + presdata = presdata.sqldata; + if (presdata) { + for (var p in presdata) { + if ($("#btn_" + presdata[p].childuuid + "_" + presdata[p].weekday)) { + $("#btn_" + presdata[p].childuuid + "_" + presdata[p].weekday).removeClass("btn-default"); + $("#btn_" + presdata[p].childuuid + "_" + presdata[p].weekday).addClass(presenceids[presdata[p].status].class); + $("#btn_" + presdata[p].childuuid + "_" + presdata[p].weekday).html(presenceids[presdata[p].status].icon); + if ((presdata[p].status == 1) || (presdata[p].status == 5)) { + $("#btn_" + presdata[p].childuuid + "_" + presdata[p].weekday + "lunch").prop("disabled", false); + } + } + if ($("#btn_" + presdata[p].childuuid + "_" + presdata[p].weekday + "lunch")) { + $("#btn_" + presdata[p].childuuid + "_" + presdata[p].weekday + "lunch").removeClass("btn-default"); + $("#btn_" + presdata[p].childuuid + "_" + presdata[p].weekday + "lunch").addClass("btn-success"); + + } + } + } +} + +function configure_presence(obj) { + var xx = obj.id.split("_"); + var chid = xx[2]; + //var lblcday=getlabels(xx[3]); + var cfgdate = new Date(weekdates[xx[3]]).toISOString().substring(0,10); + $('#planning > #plandate').val(cfgdate); + $('#planning > #childuuid').val(chid); + $('#planning > #planday').val(xx[3]); + $('#dlg_addplanning').modal('show'); +} + + +function save_planning() { + var newplandata = {}; + $("#planning :input").each(function() { + var input = $(this); + + if (input.attr("id")) { + + if ((input.attr("type") == "checkbox") && input.attr("checked")){ + newplandata[input.attr("id")] = input.val(); + } + else if (input.attr("type") != "checkbox"){ + newplandata[input.attr("id")] = input.val(); + } + } + }); + + if ((newplandata.timebegin=='00:00') || (newplandata.timeend=='00:00') || (newplandata.timebegin==newplandata.timeend)) { + return; + } + + var checkdatesplit = parent.appdb.dbquery("select * from planning where datebegin <= '"+newplandata.plandate+"' and dateend >= '"+newplandata.plandate+"' and childuuid='"+newplandata.childuuid+"';"); + checkdatesplit = checkdatesplit.sqldata; + if (checkdatesplit.length == 1) { + // + var newuuid = parent.appdb.generate_uuid(); + parent.appdb.dbexec("INSERT INTO planning (datebegin, dateend, montimebegin, montimeend, monlunch, tuetimebegin, tuetimeend, tuelunch, wedtimebegin, wedtimeend, wedlunch, thutimebegin, thutimeend, thulunch, fritimebegin, fritimeend, frilunch, sattimebegin, sattimeend, satlunch, suntimebegin, suntimeend, sunlunch, childuuid, uuid, groupuuid, montimebegin2, montimeend2, tuetimebegin2, tuetimeend2, wedtimebegin2, wedtimeend2, thutimebegin2, thutimeend2, fritimebegin2, fritimeend2, sattimebegin2, sattimeend2, suntimebegin2, suntimeend2) SELECT date('"+newplandata.plandate+"','+1 day'), dateend, montimebegin, montimeend, monlunch, tuetimebegin, tuetimeend, tuelunch, wedtimebegin, wedtimeend, wedlunch, thutimebegin, thutimeend, thulunch, fritimebegin, fritimeend, frilunch, sattimebegin, sattimeend, satlunch, suntimebegin, suntimeend, sunlunch, childuuid, '"+newuuid+"', groupuuid, montimebegin2, montimeend2, tuetimebegin2, tuetimeend2, wedtimebegin2, wedtimeend2, thutimebegin2, thutimeend2, fritimebegin2, fritimeend2, sattimebegin2, sattimeend2, suntimebegin2, suntimeend2 FROM planning where uuid='"+ checkdatesplit[0].uuid +"';"); + parent.appdb.dbexec("UPDATE planning SET dateend=date('"+newplandata.plandate+"','-1 day') where uuid='"+checkdatesplit[0].uuid+"'"); + newuuid = parent.appdb.generate_uuid(); + parent.appdb.dbexec("INSERT INTO planning (datebegin,dateend, "+newplandata.planday+"timebegin,"+newplandata.planday+"timeend,"+newplandata.planday+"lunch,childuuid,uuid,groupuuid) VALUES ('"+newplandata.plandate+"','"+newplandata.plandate+"','"+newplandata.timebegin+"','"+newplandata.timeend+"',"+((newplandata.lunch)?"'1'":'null')+",'"+newplandata.childuuid+"','"+newuuid+"','"+checkdatesplit[0].groupuuid+"');"); + } + $('#dlg_addplanning').modal('hide'); + parent.app.loadpage('modules/presences/weeklypresences.html',{presday:pconfig.presweek}); +} + +// function change_day() { +// pconfig.presday = $('#presday').val(); +// initdate=new Date(pconfig.presday); +// parent.apppref.setpreference("dailypresences",pconfig); +// loadtable(); +// //parent.appl.loadpage('modules/presences/dailypresences.html',{presday:pconfig.presday}); +// } + + + + + +function change_week() { + pconfig.presweek = $('#presweek').val(); + initdate=new Date(pconfig.presweek); + parent.apppref.setpreference("weeklypresences",pconfig); + loadtable(); +} + + +function onpreviousweek() { + pconfig.presweek = $('#presweek').val(); + var tmpweek = new Date(pconfig.presweek); + var nweek = new Date(tmpweek.getFullYear(), tmpweek.getMonth(), tmpweek.getDate()-7); + pconfig.presweek = nweek.toISOString().substring(0,10); + initdate=new Date(pconfig.presweek); + $('#presweek').val(pconfig.presweek); + loadtable(); + parent.apppref.setpreference("weeklypresences",pconfig); + + //parent.app.loadpage('modules/presences/weeklypresences.html',{presday:pconfig.presweek}); + +} + +// function onnextday() { +// pconfig.presday = $('#presday').val(); +// var tmpweek = new Date(pconfig.presday); +// var nweek = new Date(tmpweek.getFullYear(), tmpweek.getMonth(), tmpweek.getDate()+2); +// if (nweek.getDay() == 0){ +// nweek = new Date(tmpweek.getFullYear(), tmpweek.getMonth(), tmpweek.getDate()+4); +// } +// pconfig.presday = nweek.toISOString().substring(0,10); +// initdate=new Date(pconfig.presday); +// $('#presday').val(pconfig.presday); +// parent.apppref.setpreference("dailypresences",pconfig); +// loadtable(); +// //parent.app.loadpage('modules/presences/dailypresences.html',{presday:pconfig.presday}); +// } + +function onnextweek() { + pconfig.presweek = $('#presweek').val(); + var tmpweek = new Date(pconfig.presweek); + var nweek = new Date(tmpweek.getFullYear(), tmpweek.getMonth(), tmpweek.getDate()+7); + pconfig.presweek = nweek.toISOString().substring(0,10); + initdate=new Date(pconfig.presweek); + $('#presweek').val(pconfig.presweek); + loadtable(); + parent.apppref.setpreference("weeklypresences",pconfig); +} + +function dlgchangegrp(obj) { + var xx = obj.id.split("_"); + var chid = xx[2]; + + var chldnames = parent.appdb.dbquery("SELECT prename || ' ' || surname as childname from childs where uuid='"+chid+"';"); + var grps = parent.appdb.dbquery("SELECT '' || gr.grpname || ': ' || strftime(\"%d.%m.%Y\",datebegin) || ' - ' || strftime(\"%d.%m.%Y\",dateend) as strdates,strftime(\"%d.%m.%Y\",dateend) from planning pl left join groups gr on (pl.groupuuid=gr.uuid) where pl.childuuid='"+chid+"' and (datebegin between '"+ weekdates.mon+"' and '"+ weekdates.fri+"' or dateend between '"+ weekdates.mon+"' and '"+ weekdates.fri+"' or (datebegin <= '"+ weekdates.mon+"' and dateend >= '"+ weekdates.fri+"'));"); + if (grps.sqldata) { + grps = grps.sqldata; + } + + var strgrp = ""; + if (grps) { + dgrpc = grps[0].dateend; + for (var f in grps){ + strgrp += grps[f].strdates + '
    '; + } + } + + $('#dlg_changegrp #dategrpchange').val(new Date(weekdates.mon).toISOString().substring(0,10)); + $('#dlg_changegrp #childuuid').val(chid); + $('#dlg_changegrp #groupuuid').val(pconfig.groupuuid); + $('#dlg_changegrp #curgrp').val(pconfig.groupuuid); + $('#dlg_changegrp #curgrpdata').html("

    Enfant: " + chldnames.sqldata[0].childname+'
    '+ strgrp); + $('#dlg_changegrp').modal('show'); +} + +function save_grpchange() { + var newgrpplan = {}; + $("#dlg_changegrp :input").each(function() { + var input = $(this); + + if (input.attr("id")) { + + newgrpplan[input.attr("id")] = input.val(); + } + }); + newgrpplan.dategrpchange = encodeparam(newgrpplan.dategrpchange,'date').replace(/'/g,''); + + if (newgrpplan.curgrp != newgrpplan.groupuuid) { + var checkdatesplit = parent.appdb.dbquery("select * from planning where date('"+newgrpplan.dategrpchange+"') between datebegin and dateend and childuuid='"+newgrpplan.childuuid+"';"); + checkdatesplit = checkdatesplit.sqldata; + if (checkdatesplit.length == 1) { + var newuuid = parent.appdb.generate_uuid(); + parent.appdb.dbexec("INSERT INTO planning (datebegin, dateend, montimebegin, montimeend, monlunch, tuetimebegin, tuetimeend, tuelunch, wedtimebegin, wedtimeend, wedlunch, thutimebegin, thutimeend, thulunch, fritimebegin, fritimeend, frilunch, sattimebegin, sattimeend, satlunch, suntimebegin, suntimeend, sunlunch, childuuid, uuid, groupuuid, montimebegin2, montimeend2, tuetimebegin2, tuetimeend2, wedtimebegin2, wedtimeend2, thutimebegin2, thutimeend2, fritimebegin2, fritimeend2, sattimebegin2, sattimeend2, suntimebegin2, suntimeend2) SELECT date('"+newgrpplan.dategrpchange+"'), dateend, montimebegin, montimeend, monlunch, tuetimebegin, tuetimeend, tuelunch, wedtimebegin, wedtimeend, wedlunch, thutimebegin, thutimeend, thulunch, fritimebegin, fritimeend, frilunch, sattimebegin, sattimeend, satlunch, suntimebegin, suntimeend, sunlunch, childuuid, '"+newuuid+"', '"+newgrpplan.groupuuid+"', montimebegin2, montimeend2, tuetimebegin2, tuetimeend2, wedtimebegin2, wedtimeend2, thutimebegin2, thutimeend2, fritimebegin2, fritimeend2, sattimebegin2, sattimeend2, suntimebegin2, suntimeend2 FROM planning where uuid='"+ checkdatesplit[0].uuid +"';"); + parent.appdb.dbexec("UPDATE planning SET dateend=date('"+newgrpplan.dategrpchange+"','-1 day') where uuid='"+checkdatesplit[0].uuid+"'"); + $('#dlg_changegrp').modal('hide'); + globelreq.send_request({ + page: 'weeklypresences', + module: 'presences', + data: null, + header: 'Présences par semaine' + }); + } + } + +} diff --git a/CGI/tmpl/app/creorga/module/presences/weeklypresences.tt b/CGI/tmpl/app/creorga/module/presences/weeklypresences.tt new file mode 100644 index 0000000..9e59a68 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/presences/weeklypresences.tt @@ -0,0 +1,169 @@ + + + + + + + Présences par semaine + + + + + + + + + + + + + + + + +
    + + + +
    + +
    +
    + +
    + + + + + + + + + + + + + + + diff --git a/CGI/tmpl/app/creorga/module/staff/coworker.tt b/CGI/tmpl/app/creorga/module/staff/coworker.tt new file mode 100644 index 0000000..c5d0e9a --- /dev/null +++ b/CGI/tmpl/app/creorga/module/staff/coworker.tt @@ -0,0 +1,645 @@ + + + + + + + Employé(e) + + + + + + + + + + + + + + + +
    +
    + + +
    + + +
    +
    +
    + + + +
    + +
    + + +
    + +
    + + + +
    + +
    + + +
    +
    + + + +
    +
    +
    + +
    +
    + +
    + + +
    + +
    + +
    + +
    +
    + +
    + +
    + +
    + +
    + + +
    h
    + +
    +
    + + +
    h
    +
    +
    + +
    + +
    + +
    +
    +
    + +
    + + +
    +
    + +
    +
    +
    + + +
    + [% IF creorga.modules.staff.planning %] +
    +
    + +
    + +
    + +
    + + + + +
    +
    + [% END %] + [% IF creorga.modules.staff.vacancy %] +
    +
    + +
    + +
    + +
    + + +
    + + h +
    + +
    +
    + + +
    + + h +
    + +
    +
    + + + + + + + + + + + + + + + + + + + +
    annéedébutfinjoursh/jDescriptiontypenormalexcept.maladie
    + + +
    + +
    + [% END %] +
    +
    +[% IF creorga.modules.staff.planning %] + + + + + +[% END %] +[% IF creorga.modules.staff.vacancy %] + + + [% END %] + + + + + + + + + + + + + + + + diff --git a/CGI/tmpl/app/creorga/module/staff/js/coworker.js b/CGI/tmpl/app/creorga/module/staff/js/coworker.js new file mode 100644 index 0000000..a210001 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/staff/js/coworker.js @@ -0,0 +1,904 @@ +//Source-code licensed under EUPL v1.2 ( Copyright 2019 By DKS s.à r.l. - Kilian Saffran - Luxembourg ) +var pconfig = {}; +var delplan = null; +var delvacation = null; +var wh= window.innerHeight -320; +var curdatediff = null; +var redate = /\d\d.\d\d.\d\d\d\d/; +var curfreq ={}; +var maxdayhours = null; +var maxhalfdayhours = null; +var tblvac = null; + + +function initdata() { + load_helpers(); + var sp = getSearchParams(); + pconfig = parent.apppref.getpreference("coworker"); + if (sp.uuid){ + pconfig.uuid = sp.uuid; + } + if (pconfig == null) { + pconfig = {}; + } + //update vacancycalendar set vacyear=strftime('%Y',datefrom) where vacyear is null; + + if (!pconfig.year) { + pconfig.year=new Date().getFullYear(); + parent.apppref.setpreference("coworker",pconfig); + } + + var cdatasql = "SELECT jobtitle, prename, surname, address, zip, city, country, entrydate, exitdate, iban, bic, accountname, phone, email, uuid,color,weekhours,maxdayhours FROM staff where uuid='" + pconfig.uuid + "';"; + var cdata = parent.appdb.dbquery(cdatasql); + cdata = cdata.sqldata[0]; + for (var ci in cdata) { + if (document.getElementById("staff_" + ci)) { + document.getElementById("staff_" + ci).setAttribute('value', cdata[ci]); + } + + } + $('#staff_color').minicolors({theme:'bootstrap'}); + set_selectyears(); + if (pconfig && pconfig.activetab) { + $('a[href="#'+pconfig.activetab+'"]').tab('show'); + }else{ + $('a[href="#vacancy"]').tab('show'); + pconfig.activetab = 'vacancy'; + } + pconfig.vacancyunit = "hours"; + +} + +$('#frmeditvacancy #vacdatefrom').on("blur",function (e) { + var ok = true; + if ($('#frmeditvacancy #vacdatefrom').val().match(redate)) { + $('#btn_save_vacancy').removeAttr("disabled"); + }else { + ok = false; + $('#btn_save_vacancy').attr("disabled","1"); + } + if ((ok == true) && ($('#frmeditvacancy #vacdateto').val() != '')) { + var tmpdt1 = encodeparam($('#frmeditvacancy #vacdatefrom').val(),'date'); + var nd = new Date(tmpdt1.replace(/'/g,'')); + var xd = new Date(nd.getFullYear(),nd.getMonth(),nd.getDate() + curdatediff); + $('#frmeditvacancy #vacdateto').val(xd.toISOString().substring(0,10)); + var tmpdt2 = encodeparam($('#frmeditvacancy #vacdateto').val(),'date'); + if (tmpdt1 > tmpdt2) { + $('#btn_save_vacancy').attr("disabled","1"); + } else { + $('#btn_save_vacancy').removeAttr("disabled"); + } + + } +}); +$('#frmeditvacancy #vacdateto').on("blur",function (e) { + var ok = true; + if ($('#frmeditvacancy #vacdateto').val().match(redate)) { + $('#btn_save_vacancy').removeAttr("disabled"); + }else { + ok = false; + $('#btn_save_vacancy').attr("disabled","1"); + } + curdatediff=daysBetween(new Date(encodeparam($('#frmeditvacancy #vacdatefrom').val(),'date').replace(/'/g,'')),new Date(encodeparam($('#frmeditvacancy #vacdateto').val(),'date').replace(/'/g,''))); + if ((ok == true) && ($('#frmeditvacancy #vacdateto').val() != '')) { + var tmpdt1 = encodeparam($('#frmeditvacancy #vacdatefrom').val(),'date'); + var tmpdt2 = encodeparam($('#frmeditvacancy #vacdateto').val(),'date'); + if (tmpdt1 > tmpdt2) { + $('#btn_save_vacancy').attr("disabled","1"); + } else { + $('#btn_save_vacancy').removeAttr("disabled"); + } + + } +}); +$('#dailyduration').on('change',function(e){ + if ($('#dailyduration').val() == "1.0"){ + $('#frmeditvacancy #hours').val(maxdayhours); + } + if ($('#dailyduration').val() == "0.4"){ + $('#frmeditvacancy #hours').val(maxhalfdayhours); + } +}); +$('#staff_color').on('change',function(e){ + saveonfocusout('staff_color'); +}); + +$("#weekly_byday :input").change(function() { + if (this.checked) { + this.setAttribute("checked",true); + }else { + this.removeAttribute("checked"); + } + +}); +$("#monthly_bydaypos :input").change(function() { + + if (this.checked) { + this.setAttribute("checked",true); + }else { + this.removeAttribute("checked"); + } + +}); +$("#monthly_bydaywday :input").change(function() { + + if (this.checked) { + this.setAttribute("checked",true); + }else { + this.removeAttribute("checked"); + } + +}); +$("#monthly_bymonthday :input").change(function() { + + if (this.checked) { + this.setAttribute("checked",true); + }else { + this.removeAttribute("checked"); + } + +}); +$("#monthly_by :input").change(function() { + var xd = this.id.split("_"); + curfreq.freqtype=xd[2]; + + this.setAttribute("checked",true); + + $('#freq_monthly_byday').hide(); + $('#freq_monthly_bymonthday').hide(); + $('#pnl_monthly_byday').removeAttr("checked"); + $('#pnl_monthly_bymonthday').removeAttr("checked"); + + $('#freq_' + this.value).show(); + +}); + +$('#frmeditevent #datefrom').on("blur",function (e) { + var ok = true; + if ($('#frmeditevent #datefrom').val().match(redate)) { + $('#btn_save_event').removeAttr("disabled"); + }else { + ok = false; + $('#btn_save_event').attr("disabled","1"); + } + if ((ok == true) && ($('#frmeditevent #dateto').val() != '')) { + var tmpdt1 = encodeparam($('#frmeditevent #datefrom').val(),'date'); + var tmpdt2 = encodeparam($('#frmeditevent #dateto').val(),'date'); + if (tmpdt1 >= tmpdt2) { + $('#btn_save_event').attr("disabled","1"); + } else { + $('#btn_save_event').removeAttr("disabled"); + } + + } +}); +$('#frmeditevent #dateto').on("blur",function (e) { + var ok = true; + if ($('#frmeditevent #dateto').val().match(redate)) { + $('#btn_save_event').removeAttr("disabled"); + }else { + ok = false; + $('#btn_save_event').attr("disabled","1"); + } + if ((ok == true) && ($('#frmeditevent #dateto').val() != '')) { + var tmpdt1 = encodeparam($('#frmeditevent #datefrom').val(),'date'); + var tmpdt2 = encodeparam($('#frmeditevent #dateto').val(),'date'); + + if (tmpdt1 >= tmpdt2) { + $('#btn_save_event').attr("disabled","1"); + } else { + $('#btn_save_event').removeAttr("disabled"); + } + + } +}); + +$('.selyear').on( "change", function(e){ + e.preventDefault(); + + $(".selyear").val($(this).val()); + pconfig.year = $(this).val(); + parent.apppref.setpreference("coworker",pconfig); + if ($(this).attr('id') == "year_organisation") { + load_event_data(); + }else if ($(this).attr('id') == "year_vacancy") { + load_table_vacancy(); + } +}); + +$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { + var tn = e.target.toString(); + pconfig.activetab = tn.substring(tn.lastIndexOf("#")+1); + + parent.apppref.setpreference("coworker",pconfig); + if (pconfig.activetab == 'activity') { + load_event_data(); + } + if (pconfig.activetab == 'vacancy') { + load_table_vacancy(); + } + }); + +[% IF creorga.modules.staff.vacancy %] + +function load_table_vacancy() { + tblvac =null; + var yearvacanysql = "select hours from staffvacancydays where staffuuid='"+ pconfig.uuid+"' and vacancyyear='"+ $("#year_vacancy").val() +"';"; + var yearvac = parent.appdb.dbquery(yearvacanysql); + var nvyear = ""; + if ((yearvac) && (yearvac.sqldata)){ + nvyear = yearvac.sqldata[0].hours; + } + + $("#vacancyyeartotal").val(nvyear); + var vacdatasql = "SELECT '" + + "' AS action," + "vacyear," + + "strftime('%d.%m.%Y', datefrom) as datefrom,strftime('%d.%m.%Y', dateto) as dateto,printf(\"%.2f\",dayhours) as dayhours,totaldays,description," + + "case when type = 0 and accepted != '1' then printf(\"%.2f\", hours) else '' end as thnormalnv," + + "case when type = 1 and accepted != '1' then printf(\"%.2f\", hours) else '' end as thextranv," + + "case when type =-1 and accepted != '1' then printf(\"%.2f\", hours) else '' end as thillnv," + + "case when type = 0 and accepted = '1' then printf(\"%.2f\", hours) else '' end as thnormalval," + + "case when type = 1 and accepted = '1' then printf(\"%.2f\", hours) else '' end as thextraval," + + "case when type =-1 and accepted = '1' then printf(\"%.2f\", hours) else '' end as thillval," + + "case when type = 0 then 'normal' when type = 1 then 'exceptionnel' when type =-1 then 'maladie' end as vacancytype" + + " FROM (" + + "select uuid, vacyear, datefrom, dateto, type, description, accepted, (days-day_to_much-vdays) * (case when hours < maxdayhours then hours when hours > maxdayhours then maxdayhours else hours end ) as hours, "+ + "case when hours < maxdayhours then hours when hours > maxdayhours then maxdayhours else hours end as dayhours,days-day_to_much-vdays as totaldays " + + " from (" + + "select vc.uuid,vc.vacyear,vc.datefrom,vc.dateto,vc.type,vc.description,vc.accepted," + + "((strftime('%s',vc.dateto) - strftime('%s',vc.datefrom)) /84600) + 1 as days," + + "((((strftime('%s',vc.dateto) - strftime('%s',vc.datefrom)) /84600) + 2) / 7) * (7 - (st.weekhours / st.maxdayhours)) as day_to_much," + + "(select count(v.vacancydate) from vacancy v where v.vacancydateto is null and strftime('%s',v.vacancydate) not in ('0','6') and v.vacancydate between vc.datefrom and vc.dateto) as vdays,st.weekhours,st.weekhours / maxdayhours as days_per_week,vc.timefrom,vc.timeto,st.maxdayhours, " + + "cast(cast(strftime(\"%s\",vc.timeto) as int)- cast(strftime(\"%s\",vc.timefrom) as int) as real)/3600 as hours " + + "from vacancycalendar vc join staff st on (vc.staffuuid=st.uuid) where vc.staffuuid='"+ pconfig.uuid+"' and vc.vacyear=" + pconfig.year+"));"; + //days_to_much => +2 for sat+sun => +1 for saturday icluded + +var vacdata = parent.appdb.dbquery(vacdatasql); + var sums = { normal:0,except:0,ill:0,normal_ok:0,except_ok:0,ill_ok:0}; + + $("#tbl_vacancy > tbody").html(""); + + for (var i in vacdata.sqldata){ + var row = vacdata.sqldata[i]; + + sums.normal = sums.normal + ((row.thnormalnv != '')?parseFloat(row.thnormalnv):0.00); + sums.except = sums.except + ((row.thextranv != '')?parseFloat(row.thextranv):0.00); + sums.ill = sums.ill + ((row.thillnv != '')?parseFloat(row.thillnv):0.00); + sums.normal_ok = sums.normal_ok + ((row.thnormalval != '')?parseFloat(row.thnormalval):0.00); + sums.except_ok = sums.except_ok + ((row.thextraval != '')?parseFloat(row.thextraval):0.00); + sums.ill_ok = sums.ill_ok + ((row.thillval != '')?parseFloat(row.thillval):0.00); + var tr = ''; + tr += '' + row.action + ''; + tr += '' + row.vacyear + ''; + tr += '' + row.datefrom + ''; + tr += '' + row.dateto + ''; + tr += '' + row.totaldays + ''; + tr += '' + row.dayhours + ''; + tr += '' + row.description + ''; + tr += '' + row.vacancytype + ''; + tr += '' + row.thnormalnv + ''; + tr += '' + row.thnormalval + ''; + tr += '' + row.thextranv + ''; + tr += '' + row.thextraval + ''; + tr += '' + row.thillnv + ''; + tr += '' + row.thillval + ''; + tr += ''; + $("#tbl_vacancy > tbody").append(tr); + + } + var tfoot = "" + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + sums.normal.toFixed(2) + '' + + '' + sums.normal_ok.toFixed(2) + '' + + '' + sums.except.toFixed(2) + '' + + '' + sums.except_ok.toFixed(2) + '' + + '' + sums.ill.toFixed(2) + '' + + '' + sums.ill_ok.toFixed(2) + '' + +""; + $("#tbl_vacancy > tfoot").html(tfoot); + $("#vacancyyeartotalopen").val(""); + if (nvyear != ""){ + var sumrest = parseFloat(nvyear) - sums.normal_ok; + $("#vacancyyeartotalopen").val(sumrest.toFixed(2)); + } + + $("#tbl_vacancy").bootstrapTable({ + locale: 'fr-FR', + pagination: false, + search: false, + toolbar: "#mnuvac" + }); + + + +} + +function dlg_vacancy(uuid, type) { + //select weekhours/5 = max daily hours + maxdayhours = (parseFloat($("#staff_weekhours").val())/5).toFixed(2); + maxhalfdayhours = (maxdayhours/2).toFixed(2); + var evdata = { + uuid: 0, + description: '', + vacdatefrom:new Date().toISOString().substring(0,10), + vacdateto:new Date().toISOString().substring(0,10), + staffuuid:[pconfig.uuid], + timefrom: '00:00', + hours: maxdayhours, + type:'0', + + }; + + if (type == 'upd') { + var evsql = "select uuid,vacdatefrom,vacdateto,timefrom,description,staffuuid,case when hours = '0.00' then '" + maxdayhours +"' else hours end as hours,accepted from (SELECT uuid, datefrom as vacdatefrom, dateto as vacdateto, timefrom, description, '"+pconfig.uuid+"' as staffuuid,type, printf(\"%.2f\",cast((cast(strftime(\"%s\",timeto) as int)- cast(strftime(\"%s\",timefrom) as int))/3600 as real)) as hours,accepted FROM vacancycalendar where uuid='" + uuid.uuid + "');"; + + evdata = parent.appdb.dbquery(evsql); + evdata = evdata.sqldata[0]; + if (evdata.type == -1){ + $("#btnacceptvacancy").hide(); + }else { + $("#btnacceptvacancy").show(); + } + if (evdata.hours >= maxdayhours) { + evdata.hours=maxdayhours; + $('#dailyduration select').val("1.0"); + } else if (evdata.hours == maxhalfdayhours){ + $('#dailyduration select').val("0.4"); + } else { + $('#dailyduration select').val("0."); + } + + }else { + $('#dailyduration select').val("1.0"); + } + for (var w in evdata) { + if ((w == 'datefrom') || (w == 'dateto')) { + w='vac' + w; + } + + if ($("#frmeditvacancy #" + w)) { + + if (w == "type"){ + $("#frmeditvacancy #" + w + " select").val(evdata[w]); + } else { + $("#frmeditvacancy #" + w).val(evdata[w]); + } + + + } + + } + + setdailydurationfields(); + $("#edit_vacancy").modal('show'); +} + +function confirm_delete_vacancy(uuid) { + delvacation = uuid; + $("#confirm_delete_vacancy").modal('show'); + return false; +} + +function delete_vacancy() { + var delsql = "DELETE FROM vacancycalendar where uuid='" + delvacation+"';"; + parent.appdb.dbexec(delsql); + load_table_vacancy(); + delvacancy=null; + $("#confirm_delete_vacancy").modal('hide'); + + return false; +} + +function setdailydurationfields() { + var dd = $('#dailyduration :selected').val(); + if (dd=='1.0') { + //$("#ftimefrom").hide(); + $("#hours").prop("disabled",true); + }else if (dd=='0.4') { + //$("#ftimefrom").show(); + $("#hours").prop("disabled",true); + }else if (dd=='0.') { + //$("#ftimefrom").show(); + $("#hours").prop("disabled",false); + } +} + +function save_vacancy() { + var type = 'ins'; + var cuuid = ""; + if ($("#frmeditvacancy #uuid").val() != 0) { + type = 'upd'; + cuuid = $("#frmeditvacancy #uuid").val(); + } + var evsvdata = { + uuid:cuuid, + datefrom: $("#frmeditvacancy #vacdatefrom").val(), + dateto: $("#frmeditvacancy #vacdateto").val(), + timefrom: $("#frmeditvacancy #timefrom").val(), + hours: $("#frmeditvacancy #hours").val(), + description: $("#frmeditvacancy #description").val(), + staffuuid: $("#frmeditvacancy #staffuuid").val(), + type: $("#frmeditvacancy #type").val() + } + var savesql = ""; + if (type == 'ins') { + savesql = "INSERT INTO vacancycalendar (uuid, datefrom, dateto, timefrom, timeto, description, staffuuid, type,vacyear) VALUES " + +"('" + parent.appdb.generate_uuid() + "', date('"+evsvdata.datefrom+"'), date('"+evsvdata.dateto+"'), "+encodeparam(evsvdata.timefrom, 'text')+", strftime(\"%H:%M\",time("+encodeparam(evsvdata.timefrom, 'text')+",'+"+evsvdata.hours+" hours')), "+encodeparam(evsvdata.description, 'text')+", "+encodeparam(evsvdata.staffuuid, 'text')+","+evsvdata.type+",strftime(\"%Y\",date('"+evsvdata.datefrom+"')))"; + } else { + savesql = "UPDATE vacancycalendar SET vacyear=strftime(\"%Y\",date('"+evsvdata.datefrom+"')), datefrom = date('"+evsvdata.datefrom+"'), dateto = date('"+evsvdata.dateto+"'), timefrom = "+encodeparam(evsvdata.timefrom, 'text')+", timeto = strftime(\"%H:%M\",time("+encodeparam(evsvdata.timefrom, 'text')+",'+"+evsvdata.hours+" hours')), description = "+encodeparam(evsvdata.description, 'text')+", staffuuid = "+encodeparam(evsvdata.staffuuid, 'text')+", type = "+evsvdata.type+" WHERE uuid = '"+evsvdata.uuid+"';"; + } + //console.log("save vacancy"); + //console.log(savesql); + parent.appdb.dbexec(savesql); + load_table_vacancy(); + + $("#frmeditvacancy #uuid").val("0"); + $("#edit_vacancy").modal('hide'); +} + +function accept_vacancy(){ + var cuuid = ""; + if ($("#frmeditvacancy #uuid").val() != 0) { + type = 'upd'; + cuuid = $("#frmeditvacancy #uuid").val(); + } + var xsql = "UPDATE vacancycalendar SET accepted='1' where \"uuid\"='" + cuuid + "';"; + parent.appdb.dbexec(xsql); + load_table_vacancy(); + + $("#frmeditvacancy #uuid").val("0"); + $("#edit_vacancy").modal('hide'); +} + +function getlastyearsrest(){ + var weekhours = $('#staff_weekhours').val(); + if (weekhours === '') { + $("#vacancylastyearrest").val(0); + return; + } + var df = new Date(pconfig.year-1,0,1); + var dt = new Date(pconfig.year-1,11,31); + var vcalcrestsql = "select (select hours from staffvacancydays where staffuuid='"+pconfig.uuid+ "' and vacancyyear="+df.getFullYear()+")-SUM(dayhours) AS hours from (" + + "select vd.daydate,case when daydate <= date('now') then 1 else 0 end as taken,case when vc.timefrom=vc.timeto then cast ("+weekhours+"/5 as real) else (cast (substr(vc.timeto,1,2) as int) + (cast(substr(vc.timeto,4,5) as int)/60)) - (cast(substr(vc.timefrom,1,2) as int) + (cast(substr(vc.timeto,4,5) as int)/60)) end as dayhours,type,case when type != -1 then accepted else '1' end as accepted "+ + "from vacancycalendar vc left join ( "+ + "select daydate from ( "; + + var yd = []; + for (var dx=df;dx<=dt;dx.setDate(dx.getDate()+1)){ + yd.push("select date('"+dx.toISOString().substring(0,10)+"') as daydate"); + } + vcalcrestsql += yd.join(" UNION ") + + ") yd where strftime('%w',daydate) not in ('0','6') and daydate not in (select vacancydate from vacancy where vacancydate between '"+df.getFullYear()+"-01-01' and '"+dt.getFullYear()+"-12-31' and vacancydateto is null) " + + ") vd on (vd.daydate between vc.datefrom and vc.dateto) " + + "left join staffvacancydays svd on (vc.staffuuid=svd.staffuuid) " + + "where vc.staffuuid='"+pconfig.uuid+ "' and daydate is not null group by daydate) where type in (0,1) and taken=1 and accepted=1 group by taken,accepted;"; + //dump("SQLREST:" + vcalcrestsql + "\n"); + var vcalc = parent.appdb.dbquery(vcalcrestsql); + //dump(JSON.stringify(vcalc) + "\n"); + if (vcalc && vcalc.sqldata[0]){ + +$("#vacancylastyearrest").val(vcalc.sqldata[0].hours); + }else { +$("#vacancylastyearrest").val(0); + } + return; +} + +function set_selectyears() { + + var years = parent.appdb.dbquery("select COALESCE((select cast(min(vacancyyear) as TEXT) as minyear from staffvacancydays where staffuuid='" + pconfig.uuid + "'),strftime('%Y',coalesce(min(entrydate),date('now','-1 year')))) as minyear,strftime('%Y',date('now', '+1 year')) as maxyear from staff where uuid='"+pconfig.uuid+"';"); + var minyear = parseInt(years.sqldata[0].minyear); + var maxyear = parseInt(years.sqldata[0].maxyear); + for (var y=minyear;y<=maxyear;y++){ + + var sel = ""; + if (y == pconfig.year) { + sel=' selected="1" '; + + } + + $(".selyear").append(""); + } + +} + +function saveyearvacdays() { + var csel = "select * from staffvacancydays where staffuuid='"+pconfig.uuid+"' and vacancyyear='"+pconfig.year+"';"; + var days = 0; + var hours = 0; + if ($('#vacancyyeartotal').val() === ""){ + return; + } + if (pconfig.vacancyunit == "hours"){ + days = parseFloat($('#vacancyyeartotal').val().replace(',','.')) / 8; + hours = $('#vacancyyeartotal').val(); + }else { + days = parseFloat($('#vacancyyeartotal').val().replace(',','.')); + hours = parseFloat($('#vacancyyeartotal').val().replace(',','.')) * 8; + } + var cnum = parent.appdb.dbquery(csel); + var inssql = "INSERT INTO staffvacancydays (staffuuid,vacancyyear,days,hours) VALUES ('"+pconfig.uuid+"','"+pconfig.year+"',"+days+","+hours+");"; + if (cnum.sqldata.length > 0) { + inssql = "UPDATE staffvacancydays SET days="+days+",hours="+hours+" where staffuuid='"+pconfig.uuid+"' and vacancyyear='"+pconfig.year+"';"; + } + parent.appdb.dbexec(inssql); + //calcvacancy(); +} +[% END %] +[% IF creorga.modules.staff.planning %] +function load_event_data() { + + var where = new Array(); + + where.push(" st.uuid in ('"+ pconfig.uuid + "')"); + + $("div.panel-daybody").html(""); + var sql = "SELECT cal.uuid, cal.datefrom, cal.dateto, '
    ' || strftime('%Y%m%d',cal.datefrom) ||'
    ' || strftime('%d.%m.%Y',cal.datefrom) AS tbldatefrom ,strftime('%Y%m%d',cal.datefrom) AS strdatefrom, strftime('%Y%m%d',cal.dateto) AS strdateto,cal.timefrom, cal.timeto, cal.description, cal.location, cal.color, cal.freq, '[\"' || GROUP_CONCAT(sp.staffuuid,'\",\"') || '\"]' as staffuuid, GROUP_CONCAT(coalesce(st.surname,'') || ' ' || coalesce(st.prename,''), '
    ' ) as staffnames ,'[\"' || GROUP_CONCAT(st.color,'\",\"') || '\"]' as staffcolors from eventcalendar cal " +" join staffplanning sp on (cal.uuid=sp.eventcalendaruuid " + " AND sp.staffuuid in ('"+ pconfig.uuid +"')) left join staff st on (sp.staffuuid=st.uuid) "+ + " where (cal.datefrom between '" + $('#year_organisation').val() + "-01-01' and '" + $('#year_organisation').val() + "-12-31' and (cal.dateto >= '" + $('#year_organisation').val() + "-01-01' or cal.dateto is null)) or (cal.dateto between '" + $('#year_organisation').val() + "-01-01' and '" + $('#year_organisation').val() + "-12-31' and cal.datefrom < '" + $('#year_organisation').val() + "-01-01') or ((cal.datefrom <= '" + $('#year_organisation').val() + "-01-01') and ((cal.dateto >= '" + $('#year_organisation').val() + "-12-31') or cal.dateto is null)) "+ ((where.length > 0)?" AND (" + where.join(" or ") + ")":"")+" group by cal.uuid order by cal.datefrom,cal.dateto;"; + + var caldata = parent.appdb.dbquery(sql); + + caldata = caldata.sqldata; + + var headerdata = getlabels("act,datefrom,hours,recurrance"); + $("#tbl_activity").html(""); + + var hrow = headerdata; + var tdclass= new Array(); + var tblheader = ''; + + for (var h=0;h'+ headerdata[h].title+''; + } + tblheader += ''; + + $("#tbl_activity").append("" + tblheader + ""); + $("#tbl_activity").append(""); + var tblbody = []; + for (var c in caldata) { + var tblrow = ""; + tblrow += ''; + + tblrow += "" + caldata[c].tbldatefrom + ""; + tblrow += "" + caldata[c].timefrom + "- " + caldata[c].timeto + ""; + + var freq2 = caldata[c].freq; + if (freq2 != '') { + + freq2 += ';DTSTART='+caldata[c].strdatefrom + 'T000000Z'; + if (caldata[c].dateto != ''){ + freq2 += ';UNTIL='+caldata[c].strdateto + 'T000000Z'; + } + } + + try { + + var rule2 = RRule.fromString(freq2); + + + tblrow += "" + rule2.toText() + ""; + + } catch (ex){ + + } + tblrow += ""; + tblbody.push(tblrow); + } + + $("#tbl_activity").append(tblbody.join('')); + $("#tbl_activity").append(""); + + $("#tbl_activity").bootstrapTable({ + locale: 'fr-FR', + pagination: false, + search: false, + height: wh, + toolbar: "#mnuact" + }); + + +} + +function dlg_event(uuid, type) { + + if (type== "ins") { + + $('#btndeleteevent').hide(); + + }else { + $('#btndeleteevent').show(); + } + $('#frmeditevent #freqinterval').hide(); + $('#frmeditevent #freqmonthly').hide(); + $('#frmeditevent #freqweekly').hide(); + $('#frmeditevent #freq_monthly_byday').show(); + $('#frmeditevent #freq_monthly_bymonthday').hide(); + $('#frmeditevent #freq').val(""); + $('#frmeditevent .active').removeClass('active'); + if ((type == 'upd') || (type == 'ins')) { + + var evdata = { + uuid: '0', + description: '', + activityuuid:'', + location: '', + color: '', + datefrom:new Date().toISOString().substring(0,10), + dateto:'', + staffuuid: pconfig.uuid, + timefrom: '00:00', + timeto: '00:00', + freq: '', + staffname: $("#staff_prename").val() + " " + $("#staff_surname").val() + }; + + if (type == 'upd') { + var evsql = "SELECT uuid, strftime(\"%d.%m.%Y\",datefrom) as datefrom, strftime(\"%d.%m.%Y\",dateto) as dateto, timefrom, timeto, description, location, color, freq, '"+ pconfig.uuid+"' as staffuuid FROM eventcalendar ev left join staffplanning st on (ev.uuid=st.eventcalendaruuid) where ev.uuid='" + uuid.uuid + "' group by ev.uuid;"; + evdata = parent.appdb.dbquery(evsql); + evdata = evdata.sqldata[0]; + evdata['staffname'] = $("#staff_prename").val() + " " + $("#staff_surname").val(); + if (evdata.freq != '') { + var tmpfreq = evdata.freq.split(';'); + for (var t in tmpfreq){ + if (tmpfreq[t] != '') { + var spl = tmpfreq[t].split("="); + evdata[spl[0].toLowerCase()] = spl[1].toLowerCase(); + } + } + } + } + for (var w in evdata) { + if ($("#frmeditevent #" + w)) { + + $("#frmeditevent #" + w).val(evdata[w]); + + } + } + if ((evdata.freq == 'weekly') && (evdata.byday)) { + var bd = evdata.byday.split(','); + for (var i in bd){ + document.getElementById('weekly_byday_' + bd[i]).setAttribute("checked",true); + $('#frmeditevent #weekly_byday_' + bd[i]).parent().addClass("active"); + } + } + if (evdata.freq == 'monthly') { + $('#freq_monthly_byday').hide(); + $('#freq_monthly_bymonthday').hide(); + $('#pnl_monthly_byday').removeAttr("checked"); + $('#pnl_monthly_bymonthday').removeAttr("checked"); + if (evdata.byday) { + document.getElementById('pnl_monthly_byday').setAttribute("checked",true); + $('#frmeditevent #pnl_monthly_byday').parent().addClass("active"); + $('#freq_monthly_byday').show(); + var bd = evdata.byday.split(','); + var adpos = new Array(); + var awday = new Array(); + for (var i in bd){ + var wday = bd[i].substr(bd[i].length-2); + var pos = bd[i].substring(0,bd[i].length-2); + awday.push(wday.toLowerCase()); + adpos.push(pos); + } + + for (var i in adpos){ + document.getElementById('monthly_bydaypos_' + adpos[i]).setAttribute("checked",true); + $('#frmeditevent #monthly_bydaypos_' + adpos[i]).parent().addClass("active"); + } + for (var i in awday){ + document.getElementById('monthly_bydaywday_' + awday[i]).setAttribute("checked",true); + $('#frmeditevent #monthly_bydaywday_' + awday[i]).parent().addClass("active"); + } + }else if (evdata.bymonthday) { + document.getElementById('pnl_monthly_bymonthday').setAttribute("checked",true); + $('#frmeditevent #pnl_monthly_bymonthday').parent().addClass("active"); + $('#freq_monthly_bymonthday').show(); + var bd = evdata.bymonthday.split(','); + for (var i in bd){ + document.getElementById('monthly_bymonthday_' + bd[i]).setAttribute("checked",true); + $('#frmeditevent #monthly_bymonthday_' + bd[i]).parent().addClass("active"); + } + } + } + setfreq(); + $("#edit_event").modal('show'); + } +} + + +function save_event() { + var sql1 = new Array(); + var sql2 = new Array(); + if ($('#timefrom').val() == $('#timeto').val() || $('#timefrom').val() == "00:00" || $('#timeto').val() == "00:00"){ + errormsg("Erreur","les heures doivent être différent et différent de la valeur 00:00!"); + return false; + } + if ($('#timefrom').val() > $('#timeto').val()){ + errormsg("Erreur","l'heure de début ne peux pas être supérieur à l'heure de fin!"); + return false; + } + if (!$('#staffuuid').val()){ + errormsg("Erreur","Vous devez selectionner au moin 1 membre du staff!"); + return false; + } + if ($('#dateto').val() != '' && (encodeparam($('#datefrom').val()) > encodeparam($('#dateto').val())) ) { + errormsg("Erreur","La Date début ne peut pas être supérieur à la date fin!"); + return false; + } + var type = 'ins'; + var cuuid = ""; + if ($("#frmeditevent #uuid").val() != 0) { + type = 'upd'; + cuuid = $("#frmeditevent #uuid").val(); + } else { + cuuid = parent.appdb.generate_uuid(); + } + var freqdata = {}; + var cfreq = $("#frmeditevent #freq").val(); + $("#frmeditevent :input").each(function() { + var input = $(this); + + if (input.attr("id") && (input.attr("id") != "staffuuid") && (input.attr("id") != "staffname")) { + if ((input.attr("type") == "checkbox") && (input.attr("id").indexOf(cfreq) >= 0)){ + var xd = input.attr("id").split("_"); + if (input.attr("checked")) { + if (!freqdata[xd[1]]) { + freqdata[xd[1]] = new Array(); + } + freqdata[xd[1]].push(input.val()); + } + } + else if ((input.attr("type") == "radio") && (input.attr("id").indexOf(cfreq) >= 0)) { + var xd = input.attr("id").split("_"); + if (input.attr("checked")) { + freqdata['freqtype'] = xd[2]; + } + } + else if ((input.attr("type") != "checkbox") && ((input.attr("type") != "radio"))){ + if ((input.attr("id") == 'interval') || (input.attr("id") == 'freq')) { + freqdata[input.attr("id")] = input.val(); + } else if ((type == 'ins') && (input.attr("id") != 'staffuuid')) { + + sql1.push('"' + input.attr("id") + '"'); + if (input.attr("id") == 'uuid') { + if (input.val() == "" || input.val() == "0") { + sql2.push("'" + cuuid + "'"); + } else { + sql2.push("'" + input.val() + "'"); + } + } else { + var ival = encodeparam(input.val(), input.attr('type')); + sql2.push(ival); + } + } else { + if ((input.attr("id") != 'uuid') && (input.attr("id") != 'staffuuid')){ + var ival = encodeparam(input.val(), input.attr('type')); + sql2.push('"' + input.attr("id") + '"=' + ival); + } + } + } + } + + }); + if (!freqdata.freqtype) { + freqdata['freqtype'] = curfreq.freqtype; + } + + var strfreq =""; + if (cfreq != "") { + strfreq='FREQ=' + cfreq.toUpperCase()+';INTERVAL=' + freqdata.interval +';'; + if ((cfreq == 'weekly') && (freqdata.byday)){ + strfreq += 'BYDAY=' + freqdata.byday.join(","); + } + if ((cfreq == 'monthly') && (freqdata.bydaypos) || ((freqdata.bydaywday)) || (freqdata.bymonthday)){ + strfreq += freqdata.freqtype.toUpperCase() + '='; + if (freqdata.freqtype == 'bymonthday') { + strfreq += freqdata.bymonthday.join(',') + ";" + }else { + var abyday = new Array(); + for (var p in freqdata.bydaypos){ + for (var w in freqdata.bydaywday){ + abyday.push(freqdata.bydaypos[p] + freqdata.bydaywday[w]); + } + } + strfreq += abyday.join(","); + } + } + if (strfreq.slice(-1) == ';') { + strfreq = strfreq.substring(0,strfreq.length-1); + } + } + var staffuuids = $('#staffuuid').val(); + var delsql = ""; + var xsql = []; + if (type != 'ins') { + xsql.push("DELETE FROM staffplanning where eventcalendaruuid = '"+cuuid+"';"); + } + var staffinssql = ""; + + if (staffuuids && (staffuuids.length != 0)) { + + staffinssql = "INSERT INTO staffplanning (eventcalendaruuid,staffuuid) VALUES "; + var tmps = []; + var curcoworkerok = false; + for (var s in staffuuids){ + if (staffuuids[s] == pconfig.uuid){ + curcoworkerok = true; + } + tmps.push("('"+cuuid+"','"+staffuuids[s]+"')"); + } + if (!curcoworkerok){ + tmps.push("('"+cuuid+"','"+pconfig.uuid+"')"); + } + staffinssql += tmps.join(',') + ";"; + xsql.push(staffinssql); + } + if (staffuuids.length == 0){ + staffinssql = "INSERT INTO staffplanning (eventcalendaruuid,staffuuid) VALUES ('"+cuuid+"','"+pconfig.uuid+"');"; + xsql.push(staffinssql); + } + + + + if (type == 'upd') { + sql2.push('freq=' + encodeparam(strfreq)); + xsql.push("UPDATE eventcalendar SET " + sql2.join(',') + " where \"uuid\"='" + cuuid + "';"); + } else { + sql1.push('freq'); + sql2.push(encodeparam(strfreq)); + xsql.push("INSERT INTO eventcalendar (" + sql1.join(',') + ") VALUES (" + sql2.join(',') + ");"); + } + dump(JSON.stringify(xsql)); + for (var i in xsql){ + parent.appdb.dbexec(xsql[i]); + } + + load_event_data(); + + $("#frmeditevent #uuid").val("0"); + $("#edit_event").modal('hide'); +} + +function confirm_delete_event() { + $("#confirm_delete_event").modal('show'); + return false; +} + +function delete_event() { + parent.appdb.dbexec("DELETE FROM eventcalendar where uuid='" + $('#frmeditevent #uuid').val()+"';"); + parent.appdb.dbexec("DELETE FROM staffplanning where eventcalendaruuid='" + $('#frmeditevent #uuid').val()+"';"); + load_event_data(); + $("#confirm_delete_event").modal('hide'); + + return false; +} + +[% END %] + +function setfreq() { + + curfreq.freq = $('#freq option:selected').val(); + + $('#freqinterval').hide(); + $('#freqmonthly').hide(); + $('#freqweekly').hide(); + if (curfreq.freq != "") { + + $('#lblfreq').text(lblfreq[curfreq.freq]); + $('#freqinterval').show(); + if (curfreq.freq != 'daily') { + $('#freq' + curfreq.freq).show(); + } + } + +} + + + diff --git a/CGI/tmpl/app/creorga/module/staff/js/staff.js b/CGI/tmpl/app/creorga/module/staff/js/staff.js new file mode 100644 index 0000000..17475d4 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/staff/js/staff.js @@ -0,0 +1,113 @@ +//Source-code licensed under EUPL v1.2 ( Copyright 2019 By DKS s.à r.l. - Kilian Saffran - Luxembourg ) +var pconfig = {}; +var delcoworker = null; +var wh = window.innerHeight - 130; +var tblstaff = null; + +function initdata() { + + loadtable(); + set_infoheader(""); + pconfig = parent.apppref.getpreference("staff"); + if (!pconfig.printlayout) { + pconfig.printlayout = 'list'; + parent.apppref.setpreference("staff", pconfig); + } + + } + +function loadtable() { + var delbtn = ""; + [% IF creorga.modules.staff.delete %] + delbtn = ""; + [% END %] + var sql = "SELECT '"+delbtn+"' as action, coalesce(prename,'') || '
    ' || coalesce(surname,'') as name,case when color is not null then '
    ' else null end color, coalesce(address,'')|| '
    ' || coalesce(zip,'') || ' ' || coalesce(city,'') || '
    ' || coalesce(country,'') as address, case when phone is not null then ': ' || phone || '
    ' else '' end || case when email is not null then ':' || email else '' end as phonemail, coalesce(jobtitle,'') || '
    ' || case when entrydate is not null then 'à partir du: ' || strftime('%d.%m.%Y',entrydate) else '' end || case when exitdate is not null then ' jusqu''au: ' || strftime('%d.%m.%Y',exitdate) else '' end as jobtitle FROM staff where inactive is null;"; + + var data = parent.appdb.dbqueryarray(sql); + + var headerdata = getlabels(data.sqlhead.join(",")); + $("#tbl_staff").html(""); + tblstaff = $("#tbl_staff").dataTable({ + "language": { + "url": "../../../oldvendor/js/locale/datatable_fr.json" + }, + "data": data.sqldata, + "columns": headerdata, + "paging": false, + "scrollY": wh + "px", + "scrollCollapse": true, + "ordering": true, + "info": false, + "filter": true, + "destroy": true + }); + + $('#tbl_staff').on('order.dt', function() { + pconfig.order = tblstaff.fnSettings().aaSorting; + parent.apppref.setpreference("pageconfig.staff", pconfig); + + }); +// if (pconfig.filter) { +// tblstaff.fnFilter(pconfig.filter); +// } + if (pconfig.order) { + tblstaff.fnSort(pconfig.order); + } + if (/*(!pconfig.filter) && */ (!pconfig.order)) { + tblstaff.fnDraw(); + } +} + + + +function add_coworker() { + var newuuid = parent.appdb.generate_uuid(); + parent.appdb.dbexec("insert into staff (uuid) VALUES ('" + newuuid + "');"); + parent.app.loadpage('modules/staff/coworker.html',{uuid:newuuid}); + +} + +function confirm_delete_coworker(myuuid) { + + delcoworker = myuuid; + $("#confirm_delete_coworker").modal('show'); + return false; +} + +function delete_coworker() { + //var frmdata = new Object(); + //parent.appdb.dbexec("DELETE FROM planningstaff where staffuuid='"+delcoworker +"';"); + var evdel = parent.appdb.dbquery("select eventcalendaruuid,count(staffuuid) as cnt from staffplanning where staffuuid='" + delcoworker + "';"); + + parent.appdb.dbexec("DELETE FROM staffvacancydays where staffuuid='" + delcoworker + "';"); + parent.appdb.dbexec("DELETE FROM vacancycalendar where staffuuid='" + delcoworker + "';"); + parent.appdb.dbexec("DELETE FROM staffplanning where staffuuid='" + delcoworker + "';"); + parent.appdb.dbexec("DELETE FROM staff where uuid='" + delcoworker + "';"); + for (var e in evdel.sqldata) { + if (evdel.sqldata[e].cnt == 1) { + parent.appdb.dbexec("DELETE FROM eventcalendar where uuid='" + evdel.sqldata[e].eventcalendaruuid + "';"); + } + } + delcoworker = null; + loadtable(); + $("#confirm_delete_coworker").modal('hide'); + +} + +function load_coworker(couuid){ + + var cwdata = parent.apppref.getpreference("pageconfig.coworker"); + var cow = new Object(); + if (cwdata && cwdata !== ""){ + cow = JSON.parse(cwdata); + } + + cow.uuid = couuid; + + parent.apppref.setpreference("pageconfig.coworker",cow); + globelreq.send_request({page:'coworker', + module:'staff', + data:null, + header:'Employé(e)'}); + +} \ No newline at end of file diff --git a/CGI/tmpl/app/creorga/module/staff/stafflist.tt b/CGI/tmpl/app/creorga/module/staff/stafflist.tt new file mode 100644 index 0000000..1a266e2 --- /dev/null +++ b/CGI/tmpl/app/creorga/module/staff/stafflist.tt @@ -0,0 +1,76 @@ + + + + + + + StaffList + + + + + + + + + + + + + + + + +
    + + +
    + + + +
    + +
    + + + + + + + + + + + diff --git a/CGI/tmpl/app/invoicejournal/.DS_Store b/CGI/tmpl/app/invoicejournal/.DS_Store new file mode 100644 index 0000000..6991668 Binary files /dev/null and b/CGI/tmpl/app/invoicejournal/.DS_Store differ diff --git a/CGI/tmpl/app/invoicejournal/index.tt b/CGI/tmpl/app/invoicejournal/index.tt new file mode 100644 index 0000000..7589326 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/index.tt @@ -0,0 +1,68 @@ + + + + + + + + + +Invoice Journal + + + + + + +
    + +
    +
    + +
    + + +
    + +
    + + +
    + +
    +
    + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/accounts/index.js b/CGI/tmpl/app/invoicejournal/module/accounts/index.js new file mode 100644 index 0000000..1281a47 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/accounts/index.js @@ -0,0 +1,35 @@ + +var tbl = null; +function initpage(){ + mpref.loadconfig(); + console.log(mpref); + loadtable(); +} + +function loadtable(){ + tbl = new Tabulator("#maintbl", { + headerFilterPlaceholder:"filter...", + height: "100vh", + layout:"fitDataFill", + selectable:1, + responsiveLayout:"collapse", + columns:[ + {title:"K.Nr", field:"ident",headerFilter:"input"}, + {title:"Name", field:"company",headerFilter:"input"}, + {title:"E-Mail", field:"email",headerFilter:"input"}, + {title:"Tel", field:"phone",headerFilter:"input"}, + {title:"Addresse", field:"address",headerFilter:"input"}, + ], +}); + gettbldata(); +} + +function gettbldata(){ + req.reqdata("POST","db.cgi",{"db":mpref.cfg.db,"type":"array","sql":"SELECT id, company, prename,surname, address, zip, city, country, email, phone, mobile, ident FROM accounts;"},filltbldata); +} + +function filltbldata(data){ + if (data && data.sqldata){ + tbl.setData(data.sqldata); + } +} diff --git a/CGI/tmpl/app/invoicejournal/module/accounts/index.tt b/CGI/tmpl/app/invoicejournal/module/accounts/index.tt new file mode 100644 index 0000000..fa2b50a --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/accounts/index.tt @@ -0,0 +1,6 @@ + +
    + +
    + +
    diff --git a/CGI/tmpl/app/invoicejournal/module/bankaccount/index.js b/CGI/tmpl/app/invoicejournal/module/bankaccount/index.js new file mode 100644 index 0000000..0871a5b --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/bankaccount/index.js @@ -0,0 +1,95 @@ + +var tbl = null; +var dlgname = null; +function initpage(){ + mpref.loadconfig(); + loadtable(); +} + +function loadtable(){ + tbl = new Tabulator("#maintbl", { + headerFilterPlaceholder:"filter...", + height: "94vh", + // layout:"fitDataFill", + selectable:1, + //responsiveLayout:"collapse", + columns:[ + {title:"account", field:"account",headerFilter:"input"}, + {title:"Stmt", field:"statementnumber",headerFilter:"input"}, + {title:"Datum", field:"bookingdate",headerFilter:"input"}, + {title:"amount", field:"amount",headerFilter:"input"}, + {title:"message", field:"message",headerFilter:"input"}, + {title:"foreignaccountowner", field:"foreignaccountowner",headerFilter:"input"}, + {title:"transferaccount", field:"transferaccount",headerFilter:"input"}, + ], +}); + gettbldata(); +} + +function gettbldata(){ + req.reqdata("POST","/sqlite/" + mpref.cfg.db,{"type":"array","sql":"select * from banktransactions;"},filltbldata); +} + +function filltbldata(data){ + if (data && data.sqldata){ + tbl.setData(data.sqldata); + } +} + +function addfile(){ + document.getElementById('dlguploadfile').style.display='block'; +} + +function edit(){ + +} + +function add(){ + +} + +function remove(){ + +} + +function saveandparse(dlg,frmid){ + dlgname=dlg; + var frm = document.getElementById("frm_" + frmid); + // console.log(frm); + var fxdata = new FormData(); + for (var i = 0; i < frm.elements.length; i++) { + var field = frm.elements[i]; + if ((field.tagName == "INPUT" || field.tagName == "SELECT" || field.tagName == "TEXTAREA")){ + if ( field.tagName == "INPUT" && field.type == "file"){ + fxdata.append(field.id,field.files[0]); + }else { + fxdata.append(field.id,field.value); + } + } + // console.log(field); + } + for (var pair of fxdata.entries()) { + console.log(pair[0]+ ', ' + pair[1]); + } + req.multipartform("/upload",fxdata,multipartformsaved); + +} + +function multipartformsaved(data){ + document.getElementById(dlgname).style.display='none'; + console.log(data); + if ((data) && (data.relpath)){ + req.reqdata("POST","/parsestatement",{"file":data.relpath},parsestatement); + } + +} + +function parsestatement(data){ + + //console.log(data); + if (data && data.bookings){ + for (var i in data.bookings){ + console.log(data.bookings[i]); + } + } +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/bankaccount/index.tt b/CGI/tmpl/app/invoicejournal/module/bankaccount/index.tt new file mode 100644 index 0000000..a3bb402 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/bankaccount/index.tt @@ -0,0 +1,40 @@ + +
    + +
    + + + + +
    +
    + +
    +
    + +
    +
    + × +

    Kontoauszug hochladen

    +
    +
    +
    + +
    + + +
    +
    + + + +
    +
    +
    +
    + + +
    +
    +
    \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/bookings/form_booking.js b/CGI/tmpl/app/invoicejournal/module/bookings/form_booking.js new file mode 100644 index 0000000..e98ccbc --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/bookings/form_booking.js @@ -0,0 +1,81 @@ +function initpage(){ + $(".datepicker").datepicker({}); + tinymce.init({ + selector: 'textarea.richtextedit', + branding: false, + menubar:false, + statusbar: false, + plugins: 'searchreplace autolink directionality visualblocks visualchars advlist lists textpattern', + toolbar: 'bold italic underline strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat', + image_advtab: true, + language: 'de', + }); + getaccounts(); + if (mpref.cfg.id){ + getinvoicedata(mpref.cfg.id); + } else { + //load default new invoice data + } + console.log("invoice ID:",mpref.cfg.id); +} + +$("#status").onchange(function(data){ + + var xtest = $("#status").html(); + console.log($("#status").html()); + if ($("#status").html() == 'bezahlt'){ + $("#status").attr("class","btn btn-success"); + } else if ($("#status").html() == 'geplant'){ + $("#status").attr("class","btn btn-secondary"); + } else if ($("#status").html() == 'überfällig'){ + $("#status").attr("class","btn btn-danger"); + } else if ($("#status").html() == 'verschickt'){ + $("#status").attr("class","btn btn-warning"); + } else if ($("#status").html() == 'erhalten'){ + $("#status").attr("class","btn btn-info"); + } +}) + +function getaccounts(){ + var sql = "select id, company,case when \"type\" like '%kunde%' then 1 else 0 end as receiver,case when \"type\" like '%lieferant%' or \"type\" like '%mitarbeiter%' or \"type\" like '%behörde%' then 1 else 0 end as sender from accounts;"; + var data = appdb.dbquery(sql); + //onsole.log(data.sqldata); + for (var i in data.sqldata){ + if (data.sqldata[i].receiver == 1){ + $("#id_receipient").append(''); + } + if (data.sqldata[i].sender == 1){ + $("#id_sender").append(''); + } + } +} + +function getinvoicedata(id){ + var sql = "select ij.id_sender,ij.id_receipient,ij.id_template,ij.status,ij.reference,ij.type, " + + "ij.statement,STRFTIME(\"%d.%m.%Y\",ij.date) as date,STRFTIME(\"%d.%m.%Y\",ij.deadlinedate) as deadlinedate,ij.footertext,ij.headertext, " + + "printf(\"%.2f\",CAST(sum(pos.quantity * pos.unitamount) as real)) as netamount, " + + "printf(\"%.2f\",CAST(case when pos.taxpercent > 0 then sum(pos.taxpercent * pos.quantity * pos.unitamount) else 0.0 end AS REAL)) as vatamount, " + + "printf(\"%.2f\",CAST(sum(pos.quantity * pos.unitamount) + case when pos.taxpercent > 0 then sum(pos.taxpercent * pos.quantity * pos.unitamount) else 0.0 end AS real)) as grossamount, " + + "printf(\"%.2f\",COALESCE(ij.payedamount,0.0)) as payedamount " + + "from invoicejournal ij left join invoicepositions pos on (ij.id=pos.id_invoice) where ij.id='"+mpref.cfg.id+"' group by pos.id_invoice;"; + var data = appdb.dbquery(sql); + if (data.sqldata){ + for (var i in data.sqldata[0]){ + if ($("#" + i).prop("tagName") == "SELECT"){ + $("#" + i).val(data.sqldata[0][i]); + } else if ($("#" + i).prop("tagName") == "INPUT" ) { + console.log(i + ">=" + data.sqldata[0][i]); + $("#" + i).val(data.sqldata[0][i]); + } else { + $("#" + i).html(data.sqldata[0][i]); + } + + $("#" + i).val(data.sqldata[0][i]); + } + } +} + +function loadinvoicepositions(){ + +} + diff --git a/CGI/tmpl/app/invoicejournal/module/bookings/form_booking.tt b/CGI/tmpl/app/invoicejournal/module/bookings/form_booking.tt new file mode 100644 index 0000000..4475e67 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/bookings/form_booking.tt @@ -0,0 +1,260 @@ + + + + + + + + + + + + Rechnung + + + +
    + +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + +
    + +
    +
    + +
    + +
    + +
    +
    +
    +
    +
    +
    + +
    + +
    + +
    +
    + +
    + +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    + + + + + + + + + + + + + +
    DescriptionQtyUnitPriceVATDiscountSums
    +
    +
    +
    +
    +
    + + + + + + + + + + + + +
    DatumTypSenderEmpfängerKontoAuszugBetrag
    +
    +
    + + + + + + + + + +
    NameTypeDate
    +
    + +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    +
    + + + + + + + + + + + + + + diff --git a/CGI/tmpl/app/invoicejournal/module/bookings/index.js b/CGI/tmpl/app/invoicejournal/module/bookings/index.js new file mode 100644 index 0000000..6797a4f --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/bookings/index.js @@ -0,0 +1,205 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); +var tblh = winh-54; +var pagepref = undefined; +var selection = []; +// var cfg = { +// byear: 2018 +// } +var sums = { planned: {cnt:0,sum:0},sended: {cnt:0,sum:0},payed: {cnt:0,sum:0},delayed: {cnt:0,sum:0},total: {cnt:0,sum:0}}; +var shiftdown = false; +function initpage(){ + console.log(appdb.url); + pagepref = parent.usersystem.getPreference("bookings"); + if (pagepref === null){ + pagepref= {}; + } + console.log(pagepref); + //loadyears(); + loadtable(); + load_senders(); + load_receipients(); + load_dateranges(); +} + +$(document).on('keydown',function(evt){ + if (evt.key= "Shift"){ + shiftdown = true; + } +}); + +$(document).on('keyup',function(evt){ + if (evt.key = "Shift"){ + shiftdown = false; + } +}); + +function loadtable(){ + var where = ''; + if (pagepref && pagepref.filter && Object.keys(pagepref.filter).length > 0){ + var whfilter = []; + for (var i in pagepref.filter){ + console.log(i); + if (i == 'bookingdate'){ + if ($("#daterange :selected").text() != ''){ + whfilter.push(pagepref.filter[i] + "='" + $("#daterange :selected").text() + "'"); + } + + } else { + whfilter.push(i + "='" + pagepref.filter[i] + "'"); + } + + } + if (whfilter.length > 0){ + where = ' where ' + whfilter.join( " AND "); + } + + } + console.log(where); + sums = { planned: {cnt:0,sum:0},sended: {cnt:0,sum:0},payed: {cnt:0,sum:0},delayed: {cnt:0,sum:0},total: {cnt:0,sum:0}}; + var sql = "select strftime('%d.%m.%Y',invoicepositions.bookingdate) as bookingdate, invoicepositions.bookingdate as datesortable,invoicepositions.id,sender.company as sender,receipient.company as receipient, invoicepositions.description,replace(printf('%.2f€',quantity * unitamount),'.',',') as amount,quantity * unitamount as sumamount , invoicejournal.status from invoicepositions left join accounts sender on (invoicepositions.id_sender=sender.id) left join invoicejournal on (invoicepositions.id_invoice=invoicejournal.id) left join accounts receipient on (invoicepositions.id_receipient=receipient.id) " + where + " order by invoicepositions.bookingdate desc;"; + //console.log(sql); + //$('#tbl_bookings').bootstrapTable('destroy'); + $("#tbl_bookings > tbody").html(""); + var data = appdb.dbquery(sql); + //console.log(data.sqldata); + for (var i in data.sqldata){ + var cstatus = "secondary"; + if (data.sqldata[i].status== "geplant"){ + sums.planned.cnt = sums.planned.cnt + 1; + sums.planned.sum = sums.planned.sum + parseFloat(data.sqldata[i].sumamount); + } + if (data.sqldata[i].status== "bezahlt"){ + cstatus = "success"; + sums.payed.cnt = sums.payed.cnt + 1; + sums.payed.sum = sums.payed.sum + parseFloat(data.sqldata[i].sumamount); + } + if (data.sqldata[i].status== "überfällig"){ + cstatus = "danger"; + sums.delayed.cnt = sums.delayed.cnt + 1; + sums.delayed.sum = sums.delayed.sum + parseFloat(data.sqldata[i].sumamount); + } + if (data.sqldata[i].status== "verschickt"){ + cstatus = "warning"; + sums.sended.cnt = sums.sended.cnt + 1; + sums.sended.sum = sums.sended.sum + parseFloat(data.sqldata[i].sumamount); + } + sums.total.cnt = sums.total.cnt + 1; + sums.total.sum = sums.total.sum + parseFloat(data.sqldata[i].sumamount); + var acolor = ""; + if (data.sqldata[i].amount.startsWith("-")){ acolor = "text-danger"; } + var row = ''+ + // '' + + ''+data.sqldata[i].datesortable+' ' + data.sqldata[i].bookingdate+ '' + + '' + data.sqldata[i].receipient+ '' + + '' + data.sqldata[i].sender+ '' + + '' + data.sqldata[i].description+ '' + + '' + data.sqldata[i].status+ '' + + '' + data.sqldata[i].amount+ '' + + ''; + + $("#tbl_bookings > tbody").append(row); + } + var cols = $("#tbl_bookings > tbody > tr:first-child").children(); + var colnum = cols.length -1 + console.log("childnum:" + colnum); + for (var i=1;i<=colnum;i++){ + wx = $("#tbl_bookings > tbody > tr:first-child > td:nth-child("+ i +")").width(); + wx = wx +3; + $("#tbl_bookings_head > thead > tr > th:nth-child("+ i +")").width(wx); + } + $("#cnt_planned").val(sums.planned.cnt);$("#sum_planned").val(sums.planned.sum.toFixed(2).toString().replace('.',',')); + $("#cnt_payed").val(sums.payed.cnt);$("#sum_payed").val(sums.payed.sum.toFixed(2).toString().replace('.',',')); + $("#cnt_delayed").val(sums.delayed.cnt);$("#sum_delayed").val(sums.delayed.sum.toFixed(2).toString().replace('.',',')); + $("#cnt_total").val(sums.total.cnt);$("#sum_total").val(sums.total.sum.toFixed(2).toString().replace('.',',')); + $("#cnt_sended").val(sums.sended.cnt);$("#sum_sended").val(sums.sended.sum.toFixed(2).toString().replace('.',',')); +} + +function load_senders(){ + var sql = "select distinct (sender.company) as sender from invoicepositions left join accounts sender on (invoicepositions.id_sender=sender.id) order by sender.company;"; + $("#sender").html(''); + var data = appdb.dbquery(sql); + + for (var i in data.sqldata){ + $("#sender").append(''); + } + if (pagepref && pagepref.filter && pagepref.filter.sender && pagepref.filter.sender != ''){ + //console.log("set selection:" + pagepref.filter.sender); + $("#sender").val(pagepref.filter.sender); + } +} + +function load_receipients(){ + var sql = "select distinct (receipient.company) as receipient from invoicepositions left join accounts receipient on (invoicepositions.id_receipient=receipient.id) order by receipient.company;"; + $("#receipient").html(''); + var data = appdb.dbquery(sql); + + for (var i in data.sqldata){ + $("#receipient").append(''); + } + if (pagepref && pagepref.filter && pagepref.filter.receipient && pagepref.filter.receipient != ''){ + //console.log("set selection:" + pagepref.filter.receipient); + $("#receipient").val(pagepref.filter.receipient); + } +} + +function load_dateranges(){ + var sql = "select strftime('%Y',bookingdate) as daterange, 'strftime(''%Y'',bookingdate)' as filter from invoicepositions where bookingdate is not null group by daterange union select strftime('%Y %m',bookingdate) as daterange , 'strftime(''%Y %m'',bookingdate)' as filter from invoicepositions where bookingdate is not null group by daterange union select strftime('%Y Q',bookingdate) || (((CAST(strftime('%m',bookingdate) AS INT) -1 ) / 3) +1) as daterange ,'strftime(''%Y Q'',bookingdate) || (((CAST(strftime(''%m'',bookingdate) AS INT) -1 ) / 3) +1)' as filter from invoicepositions where bookingdate is not null group by daterange order by daterange desc;"; + $("#daterange").html(''); + var data = appdb.dbquery(sql); + + for (var i in data.sqldata){ + $("#daterange").append(''); + } +} + + +function setfilter(id,field){ + console.log("setFilter"); + if (pagepref['filter'] === undefined){ + pagepref['filter'] = {}; + } + if ($("#" + id + " :selected").val() != ""){ + pagepref['filter'][field] = $("#" + id + " :selected").val(); + } + else { + delete pagepref['filter'][field]; + $("#" + id + "").val($("#"+ id +" option:first").val()); + } + parent.usersystem.setPreference('bookings',pagepref); + loadtable(); +} + +function booking_new(){ + parent.browserapp.loadmodulepage('bookings','form_booking',{"id":null}); +} + +function booking_edit(){ + //var inv_id= getTableSelectionID(); + if (inv_id){ + parent.browserapp.loadmodulepage('bookings','form_booking',{"id":inv_id}); + } + +} + +function booking_delete(){ + +} + +function booking_duplicate(){ + +} + +function setselection(id){ + if (shiftdown === true){ + if ($("#" + id).hasClass('highlight')){ + $("#" + id).removeClass('highlight'); + selection.splice($.inArray(id, selection),1); + }else { + $("#" + id).addClass('highlight'); + selection.push(id); + } + } else { + $("#" + id).addClass('highlight').siblings().removeClass('highlight'); + selection = [id]; + } +} diff --git a/CGI/tmpl/app/invoicejournal/module/bookings/index.tt b/CGI/tmpl/app/invoicejournal/module/bookings/index.tt new file mode 100644 index 0000000..2d1ee8a --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/bookings/index.tt @@ -0,0 +1,148 @@ + + +
    + + + + + + + +
    + + + + + + + + + + + +
    Beschreibung + + Betrag
    +
    +
    + + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    Σ
    +
    + +
    +
    +
    +
    €
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    Σ
    +
    + +
    +
    +
    +
    €
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    Σ
    +
    + +
    +
    +
    +
    €
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    Σ
    +
    + +
    +
    +
    +
    €
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    Σ
    +
    + +
    +
    +
    +
    €
    +
    + +
    +
    +
    +
    + +
    +
    \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/bookings/lib/booking.js b/CGI/tmpl/app/invoicejournal/module/bookings/lib/booking.js new file mode 100644 index 0000000..e571178 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/bookings/lib/booking.js @@ -0,0 +1,20 @@ +var invoice = { + new: function(){ + + }, + duplicate: function(id){ + + }, + delete: function(id){ + + }, + update: function(){ + + }, + print: function(){ + + }, + createpdf: function(){ + + }, +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/dashboard/index.js b/CGI/tmpl/app/invoicejournal/module/dashboard/index.js new file mode 100644 index 0000000..2f60333 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/dashboard/index.js @@ -0,0 +1,3 @@ +function initpage(){ + +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/dashboard/index.tt b/CGI/tmpl/app/invoicejournal/module/dashboard/index.tt new file mode 100644 index 0000000..e69de29 diff --git a/CGI/tmpl/app/invoicejournal/module/dashboard/module.js b/CGI/tmpl/app/invoicejournal/module/dashboard/module.js new file mode 100644 index 0000000..12e871f --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/dashboard/module.js @@ -0,0 +1,3 @@ +function initpage(){ + +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/documents/index.js b/CGI/tmpl/app/invoicejournal/module/documents/index.js new file mode 100644 index 0000000..fbc1465 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/documents/index.js @@ -0,0 +1,226 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); +var tblh = winh-54; +var pagepref = undefined; +var selection = []; +// var cfg = { +// byear: 2018 +// } +// var sums = { planned: {cnt:0,sum:0},sended: {cnt:0,sum:0},payed: {cnt:0,sum:0},delayed: {cnt:0,sum:0},total: {cnt:0,sum:0}}; +shiftdown = false; +function initpage(){ + console.log(appdb.url); + pagepref = parent.usersystem.getPreference("documents"); + if (pagepref === null){ + pagepref= {}; + } + console.log(pagepref); + //loadyears(); + loadtable(); + load_categories(); + load_folders(); +} + +$(document).on('keydown',function(evt){ + if (evt.key= "Shift"){ + shiftdown = true; + } + console.log("shiftdown: " + shiftdown); +}); + +$(document).on('keyup',function(evt){ + //console.log("shift up x"); + //console.log(evt.key); + if (evt.key = "Shift"){ + //console.log("shift up"); + shiftdown = false; + } + console.log("shiftdown: " + shiftdown); +}); + +function loadtable(){ + // var path = ''; + // if (pagepref && pagepref.filter && Object.keys(pagepref.filter).length > 0){ + // var whfilter = []; + // for (var i in pagepref.filter){ + // if (i == 'category' ){ + + // } + // whfilter.push(i + "='" + pagepref.filter[i] + "'"); + // } + // path = ' where ' + whfilter.join( " AND "); + // } + $("#tbl_documents > tbody").html(""); + //console.log(decodeURIComponent(mpref.cfg.serviceurl) + 'filesystem/search?type=f&relative=1'); + + $.ajax({ + encoding:"UTF-8", + url:decodeURIComponent(mpref.cfg.serviceurl) + 'filesystem/search?type=f&relative=1', + crossDomain: true, + success: function (data){ + console.log(data); + result=data.result; + for (var i in result){ + var category = result[i].substring(0,result[i].indexOf("/")); + var year = result[i].substring(result[i].indexOf("/")+1,result[i].lastIndexOf("/")); + var month = ''; + if (year.indexOf('/') > 0){ + month = year.substring(year.indexOf("/")+1); + year = result[i].substring(0,year.indexOf("/")); + } + var file = result[i].substring(result[i].lastIndexOf("/")+1); + var row = '' + + ''+file+'' + + ''+category+'' + + ''+ year +'' + + ''+ month +'' + + '' + $("#tbl_documents > tbody").append(row); + } + var cols = $("#tbl_documents > tbody > tr:first-child").children(); + var colnum = cols.length -1; + console.log("childnum:" + colnum); + for (var i=1;i<=colnum;i++){ + wx = $("#tbl_documents > tbody > tr:first-child > td:nth-child("+ i +")").width(); + wx = wx +3; + $("#tbl_documents_head > thead > tr > th:nth-child("+ i +")").width(wx); + } + }, + error: function(data){ + //alert("Error:" + JSON.stringify(data)); + console.log("Error:" + JSON.stringify(data)); + }, + async:false + }); + + +} + +function load_categories(){ + $.ajax({ + encoding:"UTF-8", + url:decodeURIComponent(mpref.cfg.serviceurl) + 'filesystem/directory/list', + crossDomain: true, + success: function (data){ + console.log(data); + result=data.result.directory; + $("#category").html(''); + for (var c in result){ + $("#category").append(''); + } + }, + error: function(data){ + //alert("Error:" + JSON.stringify(data)); + console.log("Error:" + JSON.stringify(data)); + }, + async:false + }); + +} + +function load_folders(){ + // var sql = "select distinct (receipient.company) as receipient from invoicepositions left join accounts receipient on (invoicepositions.id_receipient=receipient.id) order by receipient.company;"; + // $("#receipient").html(''); + // var data = appdb.dbquery(sql); + + // for (var i in data.sqldata){ + // $("#receipient").append(''); + // } +} + +function setfilter(id,field){ + console.log("setFilter"); + if (pagepref['filter'] === undefined){ + pagepref['filter'] = {}; + } + if ($("#" + id + " :selected").val() != ""){ + pagepref['filter'][field] = $("#" + id + " :selected").val(); + } + else { + delete pagepref['filter'][field]; + $("#" + id + "").val($("#"+ id +" option:first").val()); + } + parent.usersystem.setPreference('documents',pagepref); + loadtable(); +} + +function document_add(){ + docfilter = [ + { name: 'PDF', extensions: ['pdf'] } + ]; + + var newfile = parent.usersystem.selectfile("select file",null,docfilter); + console.log(newfile); +} + +function document_delete(){ + +} + +function document_view(){ + window.open +} + +function document_parse(){ + +} +// function loadyears(){ +// sql = "select byear from invoicejournal group by byear order by byear asc;"; +// var data = appdb.dbquery(sql); +// //onsole.log(data.sqldata); +// for (var i in data.sqldata){ +// $("#timerange").append('' + data.sqldata[i].byear+''); +// } + +// } + +// function booking_edit(){ +// var inv_id= getTableSelectionID(); +// if (inv_id){ +// parent.browserapp.loadmodulepage('bookings','form_booking',{"id":inv_id}); +// } + +// } + +// function invoice_delete(){ + +// } + +// function invoice_duplicate(){ + +// } + +function setselection(id){ + if (shiftdown === true){ + if ($("#" + id).hasClass('highlight')){ + $("#" + id).removeClass('highlight'); + }else { + $("#" + id).addClass('highlight'); + } + } else { + $("#" + id).addClass('highlight').siblings().removeClass('highlight'); + } + //console.log("selected:" +id); + + //.siblings(); +} + + +// function getTableSelectionID(){ +// var sel = $('#tbl_bookings').bootstrapTable('getSelections'); +// var id = null; + +// if (sel){ id=sel[0]._id; } +// console.log("Selected ID:" + id); +// return id; +// } + +// function getTableSelectionIDs(){ +// var sel = $('#tbl_bookings').bootstrapTable('getSelections'); +// var ids = []; +// if (sel){ +// for (var s in sel){ +// ids.push(s._id); +// } +// } +// return ids; +// } \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/documents/index.tt b/CGI/tmpl/app/invoicejournal/module/documents/index.tt new file mode 100644 index 0000000..a4acecf --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/documents/index.tt @@ -0,0 +1,54 @@ + + +
    + + + + + + + +
    + + + + + + + + + +
    Name
    +
    +
    + + + + +
    +
    +
    +
    + +
    +
    diff --git a/CGI/tmpl/app/invoicejournal/module/expenses/index.tt b/CGI/tmpl/app/invoicejournal/module/expenses/index.tt new file mode 100644 index 0000000..6622186 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/expenses/index.tt @@ -0,0 +1,2 @@ + +

    Ausgaben

    diff --git a/CGI/tmpl/app/invoicejournal/module/expenses/module.js b/CGI/tmpl/app/invoicejournal/module/expenses/module.js new file mode 100644 index 0000000..12e871f --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/expenses/module.js @@ -0,0 +1,3 @@ +function initpage(){ + +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.js b/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.js new file mode 100644 index 0000000..12e871f --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.js @@ -0,0 +1,3 @@ +function initpage(){ + +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.tt b/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.tt new file mode 100644 index 0000000..706317d --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/invoicejournal/index.tt @@ -0,0 +1,2 @@ + +

    Anwendungs-Einstellungen

    diff --git a/CGI/tmpl/app/invoicejournal/module/invoices/form_invoice.js b/CGI/tmpl/app/invoicejournal/module/invoices/form_invoice.js new file mode 100644 index 0000000..23f3e47 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/invoices/form_invoice.js @@ -0,0 +1,119 @@ +function initpage(){ + $(".datepicker").datepicker({}); + tinymce.init({ + selector: 'textarea.richtextedit', + branding: false, + menubar:false, + statusbar: false, + plugins: 'searchreplace autolink directionality visualblocks visualchars advlist lists textpattern', + toolbar: 'bold italic underline strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat', + image_advtab: true, + language: 'de', + }); + getaccounts(); + if (mpref.cfg.id){ + getinvoicedata(mpref.cfg.id); + loadinvoicepositions(mpref.cfg.id); + } else { + //load default new invoice data + } + console.log("invoice ID:",mpref.cfg.id); +} + +$("#status").onchange(function(data){ + + var xtest = $("#status").html(); + console.log($("#status").html()); + if ($("#status").html() == 'bezahlt'){ + $("#status").attr("class","btn btn-success"); + } else if ($("#status").html() == 'geplant'){ + $("#status").attr("class","btn btn-secondary"); + } else if ($("#status").html() == 'überfällig'){ + $("#status").attr("class","btn btn-danger"); + } else if ($("#status").html() == 'verschickt'){ + $("#status").attr("class","btn btn-warning"); + } else if ($("#status").html() == 'erhalten'){ + $("#status").attr("class","btn btn-info"); + } +}) + +function getaccounts(){ + var sql = "select id, company,case when \"type\" like '%kunde%' then 1 else 0 end as receiver,case when \"type\" like '%lieferant%' or \"type\" like '%mitarbeiter%' or \"type\" like '%behörde%' then 1 else 0 end as sender from accounts;"; + var data = appdb.dbquery(sql); + //onsole.log(data.sqldata); + for (var i in data.sqldata){ + if (data.sqldata[i].receiver == 1){ + $("#id_receipient").append(''); + } + if (data.sqldata[i].sender == 1){ + $("#id_sender").append(''); + } + } +} + +function getinvoicedata(id){ + var sql = "select ij.id_sender,ij.id_receipient,ij.id_template,ij.status,ij.reference,ij.type, " + + "ij.statement,STRFTIME(\"%d.%m.%Y\",ij.date) as date,STRFTIME(\"%d.%m.%Y\",ij.deadlinedate) as deadlinedate,ij.footertext,ij.headertext, " + + "printf(\"%.2f\",CAST(sum(pos.quantity * pos.unitamount) as real)) as netamount, " + + "printf(\"%.2f\",CAST(case when pos.taxpercent > 0 then sum(pos.taxpercent * pos.quantity * pos.unitamount) else 0.0 end AS REAL)) as vatamount, " + + "printf(\"%.2f\",CAST(sum(pos.quantity * pos.unitamount) + case when pos.taxpercent > 0 then sum(pos.taxpercent * pos.quantity * pos.unitamount) else 0.0 end AS real)) as grossamount, " + + "printf(\"%.2f\",COALESCE(ij.payedamount,0.0)) as payedamount " + + "from invoicejournal ij left join invoicepositions pos on (ij.id=pos.id_invoice) where ij.id='"+mpref.cfg.id+"' group by pos.id_invoice;"; + var data = appdb.dbquery(sql); + if (data.sqldata){ + for (var i in data.sqldata[0]){ + if ($("#" + i).prop("tagName") == "SELECT"){ + $("#" + i).val(data.sqldata[0][i]); + } else if ($("#" + i).prop("tagName") == "INPUT" ) { + console.log(i + ">=" + data.sqldata[0][i]); + $("#" + i).val(data.sqldata[0][i]); + } else { + $("#" + i).html(data.sqldata[0][i]); + } + + $("#" + i).val(data.sqldata[0][i]); + } + } +} + +function loadinvoicepositions(id){ + var sql = "select id,quantity, printf(\"%.2f\",unitamount) as unitamount,coalesce(unit,'') as unit,description,printf(\"%.2f\",taxpercent) as taxpercent,printf(\"%.2f\",discountpercent) as discountpercent,printf(\"%.2f\",quantity * unitamount) as netamount from invoicepositions where id_invoice='"+id+"';"; + var data = appdb.dbquery(sql); + $("#tbl_bookings > tbody").html(""); + for (var i in data.sqldata){ + var row = ''+ + ''+data.sqldata[i].description+ '' + + ''+data.sqldata[i].quantity+ '' + + '' + data.sqldata[i].unit+ '' + + '' + data.sqldata[i].unitamount+ '' + + '' + data.sqldata[i].taxpercent+ '' + + '' + data.sqldata[i].discountpercent+ '' + + '' + data.sqldata[i].netamount+ ' €' + + + ''; + $("#tbl_bookings > tbody").append(row); + } + var cols = $("#tbl_bookings > tbody > tr:first-child").children(); + var colnum = cols.length -1; + console.log("childnum:" + colnum); + for (var i=1;i<=colnum;i++){ + wx = $("#tbl_bookings > tbody > tr:first-child > td:nth-child("+ i +")").width(); + wx = wx +3; + $("#tbl_bookings > thead > tr > th:nth-child("+ i +")").width(wx); + } +} + +function setselection(id){ + if (shiftdown === true){ + if ($("#" + id).hasClass('highlight')){ + $("#" + id).removeClass('highlight'); + selection.splice($.inArray(id, selection),1); + }else { + $("#" + id).addClass('highlight'); + selection.push(id); + } + } else { + $("#" + id).addClass('highlight').siblings().removeClass('highlight'); + selection = [id]; + } +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/invoices/form_invoice.tt b/CGI/tmpl/app/invoicejournal/module/invoices/form_invoice.tt new file mode 100644 index 0000000..d402217 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/invoices/form_invoice.tt @@ -0,0 +1,248 @@ + + +
    + +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + +
    + +
    +
    + +
    + +
    + +
    +
    +
    +
    +
    +
    + +
    + +
    + +
    +
    + +
    + +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    + + + + + + + +
    + + + + + + + + + + + + +
    BeschreibungAnz.EinheitBetragMwSt.Rabatt.Netto
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + +
    DatumTypSenderEmpfängerKontoAuszugBetrag
    +
    +
    + + + + + + + + + +
    NameTypeDate
    +
    + +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    +
    + diff --git a/CGI/tmpl/app/invoicejournal/module/invoices/index.js b/CGI/tmpl/app/invoicejournal/module/invoices/index.js new file mode 100644 index 0000000..bdaab6b --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/invoices/index.js @@ -0,0 +1,203 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); +var tblh = winh-54; +var pagepref = undefined; +var selection = []; +var shiftdown = false; +function initpage(){ + + pagepref = parent.usersystem.getPreference("invoices"); + if (pagepref === null){ + pagepref= {}; + } + console.log(pagepref); + //loadyears(); + loadtable(); + load_senders(); + load_receipients(); + load_dateranges(); +} + +$(document).on('keydown',function(evt){ + if (evt.key= "Shift"){ + shiftdown = true; + } +}); + +$(document).on('keyup',function(evt){ + if (evt.key = "Shift"){ + shiftdown = false; + } +}); + + +function loadtable(){ + var where = ''; + if (pagepref && pagepref.filter && Object.keys(pagepref.filter).length > 0){ + var whfilter = []; + for (var i in pagepref.filter){ + console.log(i); + if (i == 'date'){ + if ($("#daterange :selected").text() != ''){ + whfilter.push(pagepref.filter[i] + "='" + $("#daterange :selected").text() + "'"); + } + + } else { + whfilter.push(i + "='" + pagepref.filter[i] + "'"); + } + + } + if (whfilter.length > 0){ + where = ' where ' + whfilter.join( " AND "); + } + + } + var sql = 'select ij.id,ij.date as datesortable, STRFTIME("%d.%m.%Y",ij.date) as date,ij.id,rec.company as recepient, sen.company as sender,ij.reference, ' + + 'printf("%.2f",CAST(sum(pos.quantity * pos.unitamount) as real)) as netamount, ' + + 'printf("%.2f",CAST(case when pos.taxpercent > 0 then sum(pos.taxpercent * pos.quantity * pos.unitamount) else 0.0 end AS REAL)) as taxamount, ' + + 'printf("%.2f",CAST(sum(pos.quantity * pos.unitamount) + case when pos.taxpercent > 0 then sum(pos.taxpercent * pos.quantity * pos.unitamount) else 0.0 end AS real)) as totalamount, ' + + 'printf("%.2f",COALESCE(ij.payedamount,0.0)) as payedamount, ' + + 'ij.status ' + + 'from invoicejournal ij ' + + 'left join invoicepositions pos on (ij.id=pos.id_invoice) ' + + 'left join accounts rec on (ij.id_receipient = rec.id) ' + + 'join accounts sen on (ij.id_sender = sen.id) ' + where +' group by pos.id_invoice order by date desc;'; + $("#tbl_invoices > tbody").html(""); + var data = appdb.dbquery(sql); + //console.log(sql); + for (var i in data.sqldata){ + var cstatus = "secondary"; + if (data.sqldata[i].status== "bezahlt"){ cstatus = "success"; } + if (data.sqldata[i].status== "überfällig"){ cstatus = "danger"; } + if (data.sqldata[i].status== "verschickt"){ cstatus = "warning"; } + var acolor = ""; + if (data.sqldata[i].totalamount.startsWith("-")){ acolor = "text-danger"; } + var row = ''+ + + ''+data.sqldata[i].datesortable+' ' + data.sqldata[i].date+ '' + + '' + data.sqldata[i].recepient+ '' + + '' + data.sqldata[i].sender+ '' + + '' + data.sqldata[i].reference+ '' + + '' + data.sqldata[i].status+ '' + + '' + data.sqldata[i].totalamount+ ' €' + + + ''; + $("#tbl_invoices > tbody").append(row); + } + var cols = $("#tbl_invoices > tbody > tr:first-child").children(); + var colnum = cols.length -1 + console.log("childnum:" + colnum); + for (var i=1;i<=colnum;i++){ + wx = $("#tbl_invoices > tbody > tr:first-child > td:nth-child("+ i +")").width(); + wx = wx +3; + $("#tbl_invoices_head > thead > tr > th:nth-child("+ i +")").width(wx); + } + // $('#tbl_invoices').bootstrapTable({ + // pagination: false, + // search: false, + // height: tblh, + // clickToSelect: true + // }); + + +} + +// function loadyears(){ +// sql = "select byear from invoicejournal group by byear order by byear asc;"; +// var data = appdb.dbquery(sql); +// //onsole.log(data.sqldata); +// for (var i in data.sqldata){ +// $("#timerange").append('' + data.sqldata[i].byear+''); +// } + +// } + +function invoice_edit(){ + var inv_id= selection[0]; + if (inv_id){ + parent.browserapp.loadmodulepage('invoices','form_invoice',{"id":inv_id}); + } + +} + +function invoice_delete(){ + +} + +function invoice_duplicate(){ + +} + +// function change_timerange(){ + +// } + +function load_senders(){ + var sql = "select distinct (sender.company) as sender from invoicepositions left join accounts sender on (invoicepositions.id_sender=sender.id) order by sender.company;"; + $("#sender").html(''); + var data = appdb.dbquery(sql); + + for (var i in data.sqldata){ + $("#sender").append(''); + } + if (pagepref && pagepref.filter && pagepref.filter.sender && pagepref.filter.sender != ''){ + //console.log("set selection:" + pagepref.filter.sender); + $("#sender").val(pagepref.filter.sender); + } +} + +function load_receipients(){ + var sql = "select distinct (receipient.company) as receipient from invoicepositions left join accounts receipient on (invoicepositions.id_receipient=receipient.id) order by receipient.company;"; + $("#receipient").html(''); + var data = appdb.dbquery(sql); + + for (var i in data.sqldata){ + $("#receipient").append(''); + } + if (pagepref && pagepref.filter && pagepref.filter.receipient && pagepref.filter.receipient != ''){ + //console.log("set selection:" + pagepref.filter.receipient); + $("#receipient").val(pagepref.filter.receipient); + } +} + +function load_dateranges(){ + var sql = "select strftime('%Y',date) as daterange, 'strftime(''%Y'',date)' as filter from invoicejournal where date is not null group by daterange union select strftime('%Y %m',date) as daterange , 'strftime(''%Y %m'',date)' as filter from invoicejournal where date is not null group by daterange union select strftime('%Y Q',date) || (((CAST(strftime('%m',date) AS INT) -1 ) / 3) +1) as daterange ,'strftime(''%Y Q'',date) || (((CAST(strftime(''%m'',date) AS INT) -1 ) / 3) +1)' as filter from invoicejournal where date is not null group by daterange order by daterange desc;"; + $("#daterange").html(''); + var data = appdb.dbquery(sql); + + for (var i in data.sqldata){ + $("#daterange").append(''); + } +} + + +function setfilter(id,field){ + console.log("setFilter"); + if (pagepref['filter'] === undefined){ + pagepref['filter'] = {}; + } + if ($("#" + id + " :selected").val() != ""){ + pagepref['filter'][field] = $("#" + id + " :selected").val(); + } + else { + delete pagepref['filter'][field]; + $("#" + id + "").val($("#"+ id +" option:first").val()); + } + parent.usersystem.setPreference('invoices',pagepref); + loadtable(); +} + + +function setselection(id){ + if (shiftdown === true){ + if ($("#" + id).hasClass('highlight')){ + $("#" + id).removeClass('highlight'); + selection.splice($.inArray(id, selection),1); + }else { + $("#" + id).addClass('highlight'); + selection.push(id); + } + } else { + $("#" + id).addClass('highlight').siblings().removeClass('highlight'); + selection = [id]; + } +} diff --git a/CGI/tmpl/app/invoicejournal/module/invoices/index.tt b/CGI/tmpl/app/invoicejournal/module/invoices/index.tt new file mode 100644 index 0000000..df19fa7 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/invoices/index.tt @@ -0,0 +1,59 @@ + +
    + + + + + + + +
    + + + + + + + + + + + +
    Referenz + + Betrag
    +
    +
    + + +
    +
    +
    + +
    diff --git a/CGI/tmpl/app/invoicejournal/module/invoices/lib/invoice.js b/CGI/tmpl/app/invoicejournal/module/invoices/lib/invoice.js new file mode 100644 index 0000000..e571178 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/invoices/lib/invoice.js @@ -0,0 +1,20 @@ +var invoice = { + new: function(){ + + }, + duplicate: function(id){ + + }, + delete: function(id){ + + }, + update: function(){ + + }, + print: function(){ + + }, + createpdf: function(){ + + }, +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/invoices/module.js b/CGI/tmpl/app/invoicejournal/module/invoices/module.js new file mode 100644 index 0000000..47dd297 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/invoices/module.js @@ -0,0 +1,67 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); +var tblh = winh-150; +var cfg = { + byear: 2018 +} +function initpage(){ + console.log(appdb.url); + loadyears(); + loadtable(); +} + + + +function loadtable(){ + var sql = 'select ij.id,ij.byear,ij.date as datesortable, STRFTIME("%d.%m.%Y",ij.date) as date,ij.id,rec.company as recepient, sen.company as sender,ij.reference, ' + + 'printf("%.2f",CAST(sum(pos.quantity * pos.unitamount) as real)) as netamount, ' + + 'printf("%.2f",CAST(case when pos.taxpercent > 0 then sum(pos.taxpercent * pos.quantity * pos.unitamount) else 0.0 end AS REAL)) as taxamount, ' + + 'printf("%.2f",CAST(sum(pos.quantity * pos.unitamount) + case when pos.taxpercent > 0 then sum(pos.taxpercent * pos.quantity * pos.unitamount) else 0.0 end AS real)) as totalamount, ' + + 'printf("%.2f",COALESCE(ij.payedamount,0.0)) as payedamount, ' + + 'ij.status ' + + 'from invoicejournal ij ' + + 'left join invoicepositions pos on (ij.id=pos.id_invoice) ' + + 'left join accounts rec on (ij.id_receipient = rec.id) ' + + 'left join accounts sen on (ij.id_sender = sen.id) where ij.byear=' + cfg.byear +' group by pos.id_invoice order by date desc;'; + var data = appdb.dbquery(sql); + console.log(data.sqldata); + for (var i in data.sqldata){ + var cstatus = "secondary"; + if (data.sqldata[i].status== "bezahlt"){ cstatus = "success"; } + if (data.sqldata[i].status== "überfällig"){ cstatus = "danger"; } + if (data.sqldata[i].status== "verschickt"){ cstatus = "warning"; } + var acolor = ""; + if (data.sqldata[i].totalamount.startsWith("-")){ acolor = "text-danger"; } + var row = ''+ + // '' + data.sqldata[i].byear+ '' + + ''+data.sqldata[i].datesortable+' ' + data.sqldata[i].date+ '' + + '' + data.sqldata[i].recepient+ '' + + '' + data.sqldata[i].sender+ '' + + '' + data.sqldata[i].reference+ '' + + '' + data.sqldata[i].status+ '' + + '' + data.sqldata[i].totalamount+ ' €' + + '' + + '' + + '' + + '' + + '' + + ''; + $("#tbl_invoices").append(row); + } + $('#tbl_invoices').bootstrapTable({ + pagination: false, + search: true, + height: tblh + }); + + +} + +function loadyears(){ + sql = "select byear from invoicejournal group by byear order by byear asc;"; + var data = appdb.dbquery(sql); + //onsole.log(data.sqldata); + for (var i in data.sqldata){ + $("#byear").append(''); + } + +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/offers/index.js b/CGI/tmpl/app/invoicejournal/module/offers/index.js new file mode 100644 index 0000000..2f60333 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/offers/index.js @@ -0,0 +1,3 @@ +function initpage(){ + +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/offers/index.tt b/CGI/tmpl/app/invoicejournal/module/offers/index.tt new file mode 100644 index 0000000..e4ca442 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/offers/index.tt @@ -0,0 +1,24 @@ + + +
    + +
    diff --git a/CGI/tmpl/app/invoicejournal/module/products/form_product.js b/CGI/tmpl/app/invoicejournal/module/products/form_product.js new file mode 100644 index 0000000..5cd4471 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/products/form_product.js @@ -0,0 +1,86 @@ +var vatpercents = []; +var ptypes = []; +var units =[]; + +function initpage(){ + + tinymce.init({ + selector: 'textarea.richtextedit', + branding: false, + menubar:false, + statusbar: false, + plugins: 'searchreplace autolink directionality visualblocks visualchars advlist lists textpattern', + toolbar: 'bold italic underline strikethrough | link | numlist bullist | removeformat', + image_advtab: true, + language: 'de', + }); + getvatpercents(); + gettypes(); + getunits(); + $(".dynselect").select2({tags: true,containerCssClass:"form-control input-group"}); + if (mpref.cfg.id){ + getproductdata(mpref.cfg.id); + // loadinvoicepositions(mpref.cfg.id); + } else { + //load default new invoice data + } + + console.log("product ID:",mpref.cfg.id); +} + +function getproductdata(prid){ + var sql= "select * from products where id='"+ prid +"';"; + var pdata = appdb.dbquery(sql); + if (pdata.sqldata){ + for (var i in pdata.sqldata[0]){ + if ($("#" + i).prop("tagName") == "SELECT"){ + $("#" + i).val(pdata.sqldata[0][i]); + } else if ($("#" + i).prop("type") == "checkbox" ){ + if (pdata.sqldata[0][i] == '1'){ + $("#" + i).prop("checked","checked"); + } + } else if ($("#" + i).prop("tagName") == "INPUT" ) { + //console.log(i + ">=" + data.sqldata[0][i]); + $("#" + i).val(pdata.sqldata[0][i]); + } else { + $("#" + i).html(pdata.sqldata[0][i]); + } + + $("#" + i).val(pdata.sqldata[0][i]); + } + } +} + +function getvatpercents(){ + var sql = "SELECT DISTINCT(vatpercent),printf('%.2f',100 * vatpercent,'.',',') as vatpercenttext FROM products;"; + $("#vatpercent").html(""); + vatpercents = []; + var ldata = appdb.dbquery(sql); + //console.log(data.sqldata); + for (var i in ldata.sqldata){ + + $("#vatpercent").append(''); + } + +} + +function gettypes(){ + var sql = "SELECT DISTINCT(ptype) FROM products;"; + $("#ptype").html(""); + var ldata = appdb.dbquery(sql); + //console.log(data.sqldata); + for (var i in ldata.sqldata){ + $("#ptype").append(''); + } +} + +function getunits(){ + var sql = "SELECT DISTINCT(unit) FROM products;"; + $("#unit").html(""); + var ldata = appdb.dbquery(sql); + //console.log(data.sqldata); + for (var i in ldata.sqldata){ + $("#unit").append(''); + } + +} diff --git a/CGI/tmpl/app/invoicejournal/module/products/form_product.tt b/CGI/tmpl/app/invoicejournal/module/products/form_product.tt new file mode 100644 index 0000000..66a127f --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/products/form_product.tt @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + Produkte + + + +
    + + + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + +
    + + +
    +
    +
    +
    +
    + +
    + + +
    +
    +
    +
    +
    + +
    + +
    + +
    +
    +
    +
    +
    +
    + +
    + +
    + % +
    +
    +
    +
    +
    + +
    +
    +
    + + +
    +
    + +
    +
    + + +
    +
    +
    + + + +
    + + + + + + + + + + + + + + + diff --git a/CGI/tmpl/app/invoicejournal/module/products/index.js b/CGI/tmpl/app/invoicejournal/module/products/index.js new file mode 100644 index 0000000..07d5a3c --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/products/index.js @@ -0,0 +1,132 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); +var tblh = winh-54; +var pagepref = undefined; +var selection = []; + +var shiftdown = false; +function initpage(){ + console.log(appdb.url); + pagepref = parent.usersystem.getPreference("products"); + if (pagepref === null){ + pagepref= {}; + } + console.log(pagepref); + loadtable(); +} + +$(document).on('keydown',function(evt){ + if (evt.key= "Shift"){ + shiftdown = true; + } +}); + +$(document).on('keyup',function(evt){ + if (evt.key = "Shift"){ + shiftdown = false; + } +}); + +function loadtable(){ + // var where = ''; + // if (pagepref && pagepref.filter && Object.keys(pagepref.filter).length > 0){ + // var whfilter = []; + // for (var i in pagepref.filter){ + // console.log(i); + // if (i == 'bookingdate'){ + // if ($("#daterange :selected").text() != ''){ + // whfilter.push(pagepref.filter[i] + "='" + $("#daterange :selected").text() + "'"); + // } + + // } else { + // whfilter.push(i + "='" + pagepref.filter[i] + "'"); + // } + + // } + // if (whfilter.length > 0){ + // where = ' where ' + whfilter.join( " AND "); + // } + + // } + // console.log(where); + // sums = { planned: {cnt:0,sum:0},sended: {cnt:0,sum:0},payed: {cnt:0,sum:0},delayed: {cnt:0,sum:0},total: {cnt:0,sum:0}}; + + var sql = "SELECT id, ident, ptype, unit, replace(printf('%.2f€',unitamount),'.',',') as unitamount, printf('%.2f%',100 * vatpercent,'.',',') as vatpercent, description FROM products;"; + //console.log(sql); + //$('#tbl_bookings').bootstrapTable('destroy'); + $("#tbl_products > tbody").html(""); + var data = appdb.dbquery(sql); + //console.log(data.sqldata); + for (var i in data.sqldata){ + var row = ''+ + // '' + ((data.sqldata[i].ident != null)?data.sqldata[i].ident:'')+ '' + + '' + ((data.sqldata[i].ptype != null)?data.sqldata[i].ptype:'')+ '' + + '' + ((data.sqldata[i].unit != null)?data.sqldata[i].unit:'')+ '' + + '' + ((data.sqldata[i].description != null)?data.sqldata[i].description:'')+ '' + + '' + ((data.sqldata[i].vatpercent != null)?data.sqldata[i].vatpercent:'') + '' + + '' + ((data.sqldata[i].unitamount != null)?data.sqldata[i].unitamount:'')+ '' + + ''; + + $("#tbl_products > tbody").append(row); + } + var cols = $("#tbl_products > tbody > tr:first-child").children(); + var colnum = cols.length -1 + console.log("childnum:" + colnum); + for (var i=1;i<=colnum;i++){ + wx = $("#tbl_products > tbody > tr:first-child > td:nth-child("+ i +")").width(); + wx = wx +3; + $("#tbl_products_head > thead > tr > th:nth-child("+ i +")").width(wx); + } +} + + + +function setfilter(id,field){ + console.log("setFilter"); + if (pagepref['filter'] === undefined){ + pagepref['filter'] = {}; + } + if ($("#" + id + " :selected").val() != ""){ + pagepref['filter'][field] = $("#" + id + " :selected").val(); + } + else { + delete pagepref['filter'][field]; + $("#" + id + "").val($("#"+ id +" option:first").val()); + } + parent.usersystem.setPreference('products',pagepref); + loadtable(); +} + +function product_new(){ + parent.browserapp.loadmodulepage('products','form_product',{"id":null}); +} + +function product_edit(){ + var inv_id= selection[0]; + if (inv_id){ + parent.browserapp.loadmodulepage('products','form_product',{"id":inv_id}); + } + +} + +function product_delete(){ + +} + +function product_duplicate(){ + +} + +function setselection(id){ + if (shiftdown === true){ + if ($("#" + id).hasClass('highlight')){ + $("#" + id).removeClass('highlight'); + selection.splice($.inArray(id, selection),1); + }else { + $("#" + id).addClass('highlight'); + selection.push(id); + } + } else { + $("#" + id).addClass('highlight').siblings().removeClass('highlight'); + selection = [id]; + } +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/products/index.tt b/CGI/tmpl/app/invoicejournal/module/products/index.tt new file mode 100644 index 0000000..fba5e7e --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/products/index.tt @@ -0,0 +1,42 @@ + +
    + + + + + + + +
    + + + + + + + + + + + +
    TypeUnitBeschreibungMwSt.Betrag
    +
    +
    + + +
    +
    +
    +
    diff --git a/CGI/tmpl/app/invoicejournal/module/settings/db/invoicejournal.sql b/CGI/tmpl/app/invoicejournal/module/settings/db/invoicejournal.sql new file mode 100644 index 0000000..75f94f6 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/settings/db/invoicejournal.sql @@ -0,0 +1,113 @@ +CREATE TABLE printtemplates ( + "id" TEXT DEFAULTS hex( randomblob(4))|| '-' || hex( randomblob(2)) || '-' || hex( randomblob(2)) || '-' || '-' || hex(randomblob(6)), + "name" TEXT, + "type" TEXT, + "data" TEXT, + "created" DATETIME DEFAULTS CURRENT_TIMESTAMP, + "modified" DATETIME DEFAULTS CURRENT_TIMESTAMP, + PRIMARY KEY (id) +); + +CREATE TABLE emailtemplates ( + "id" TEXT DEFAULTS hex( randomblob(4))|| '-' || hex( randomblob(2)) || '-' || hex( randomblob(2)) || '-' || '-' || hex(randomblob(6)), + "name" TEXT, + "subject" TEXT, + "body" TEXT, + "from" TEXT, + "created" DATETIME DEFAULTS CURRENT_TIMESTAMP, + "modified" DATETIME DEFAULTS CURRENT_TIMESTAMP, + PRIMARY KEY (id) +); + +CREATE TABLE accounts ( + "id" TEXT DEFAULTS hex( randomblob(4))|| '-' || hex( randomblob(2)) || '-' || hex( randomblob(2)) || '-' || '-' || hex(randomblob(6)), + "company" TEXT, + "title" TEXT, + "prename" TEXT, + "surname" TEXT, + "address" TEXT, + "zip" TEXT, + "city" TEXT, + "country" TEXT, + "email" TEXT, + "phone" TEXT, + "mobile" TEXT, + "ident" TEXT, + "vatid" TEXT, + "iban" TEXT, + "bic" TEXT, + "type" TEXT, + "language" TEXT, + "created" DATETIME DEFAULTS CURRENT_TIMESTAMP, + "modified" DATETIME DEFAULTS CURRENT_TIMESTAMP, + PRIMARY KEY (id) +); + +CREATE TABLE "invoicejournal" ( + "id" TEXT DEFAULTS hex( randomblob(4))|| '-' || hex( randomblob(2)) || '-' || hex( randomblob(2)) || '-' || '-' || hex(randomblob(6)), + "id_receipient" TEXT, + "id_sender" TEXT, + "payedamount" REAL, + "byear" INTEGER, + "bquarter" TEXT, + "date" DATE, + "deadlinedate" DATE, + "statusdate" DATE, + "status" TEXT, + "statement" TEXT, + "footertext" TEXT, + "reference" TEXT, + "remindernumber" TEXT, + "reminderdates" TEXT, + "transactionident" TEXT, + "type" TEXT, + "id_template" TEXT, + "headertext" TEXT, + "created" DATETIME DEFAULTS CURRENT_TIMESTAMP, + "modified" DATETIME DEFAULTS CURRENT_TIMESTAMP, + PRIMARY KEY ('id') +); + +CREATE TABLE "invoicepositions" ( + id TEXT DEFAULTS hex( randomblob(4))|| '-' || hex( randomblob(2)) || '-' || hex( randomblob(2)) || '-' || '-' || hex(randomblob(6)), + id_invoice TEXT, + id_product TEXT, + quantity INTEGER, + unitamount NUMERIC, + unit TEXT, + description TEXT, + taxamount NUMERIC, + discountamount NUMERIC, + taxpercent NUMERIC, + discountpercent NUMERIC, + netamount NUMERIC, + totalamount NUMERIC, + "created" DATETIME DEFAULTS CURRENT_TIMESTAMP, + "modified" DATETIME DEFAULTS CURRENT_TIMESTAMP, + PRIMARY KEY (id) +); + +CREATE TRIGGER trg_accounts_upd UPDATE ON accounts + BEGIN + UPDATE accounts SET modified=CURRENT_TIMESTAMP WHERE id = NEW.id; + END; + + CREATE TRIGGER trg_emailtemplates_upd UPDATE ON emailtemplates + BEGIN + UPDATE emailtemplates SET modified=CURRENT_TIMESTAMP WHERE id = NEW.id; + END; + + CREATE TRIGGER trg_printtemplates_upd UPDATE ON printtemplates + BEGIN + UPDATE printtemplates SET modified=CURRENT_TIMESTAMP WHERE id = NEW.id; + END; + + CREATE TRIGGER trg_invoicepositions_upd UPDATE ON invoicepositions + BEGIN + UPDATE invoicepositions SET modified=CURRENT_TIMESTAMP WHERE id = NEW.id; + END; + + CREATE TRIGGER trg_invoicejournal_upd UPDATE ON invoicejournal + BEGIN + UPDATE invoicejournal SET modified=CURRENT_TIMESTAMP WHERE id = NEW.id; + END; \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/settings/form_datastore.js b/CGI/tmpl/app/invoicejournal/module/settings/form_datastore.js new file mode 100644 index 0000000..8aaa4ea --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/settings/form_datastore.js @@ -0,0 +1,14 @@ +function initpage(){ + console.log("ID:" + mpref.cfg.id); + if (mpref.cfg.id){ + loadform(); + } +} + +function loadform(){ + var pref = parent.usersystem.getPreference(mpref.cfg.id); + console.log(pref); + for (var i in pref){ + $("#" + i).val(pref[i]); + } +} diff --git a/CGI/tmpl/app/invoicejournal/module/settings/form_datastore.tt b/CGI/tmpl/app/invoicejournal/module/settings/form_datastore.tt new file mode 100644 index 0000000..8de81f5 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/settings/form_datastore.tt @@ -0,0 +1,135 @@ + + + + + + + + + + +Datenbank-Einstellungen + + + +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    +
    Verbindung
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + Standard Werte +
    +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + E-Mail Server +
    +
    +
    + + +
    +
    + +
    + + +
    +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/settings/index.js b/CGI/tmpl/app/invoicejournal/module/settings/index.js new file mode 100644 index 0000000..3bc9e74 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/settings/index.js @@ -0,0 +1,71 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); +var tblh = winh-54; + +function initpage(){ + console.log(parent.usersystem.getsysinfo()); + loadtable(); + //parent.usersystem.setProperty("testproperty",{id:"TEST"}); +} + +function loadtable(){ + + var connected=parent.browserapp.currentdataset(); + + var localds = parent.usersystem.getLocalDataSets(); + console.log(localds); + for (var i in localds){ + var prop = parent.usersystem.getPreference(localds[i]); + console.log("PROP"); + console.log(connected +"<=>"+ localds[i]); + + console.log(prop); + var row = '' + + '' + + ''+prop.name+'' + + ''+prop.dbfile+'' + + ''+prop.server+'' + + ''+prop.type+'' + + ''+prop.vpn+'' + + ''+ + ''; + $("#tbl_datasets").append(row); + + //$("#globaldatasets").append(''); + } + $('#tbl_datasets').bootstrapTable({ + pagination: false, + search: false, + height: tblh, + clickToSelect: true + }); +} + +// function settings_edit(){ +// var settings_id= getTableSelectionID(); +// if (settings_id){ +// parent.browserapp.loadmodulepage('settings','form_datastore',{"id":settings_id}); +// } + +// } + +function getTableSelectionID(){ + var sel = $('#tbl_datasets').bootstrapTable('getSelections'); + var id = null; + + if (sel){ id=sel[0]._id; } + console.log("Selected ID:" + id); + return id; + } + + function getTableSelectionIDs(){ + var sel = $('#tbl_datasets').bootstrapTable('getSelections'); + var ids = []; + if (sel){ + for (var s in sel){ + ids.push(s._id); + } + } + return ids; + } + + \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/settings/index.tt b/CGI/tmpl/app/invoicejournal/module/settings/index.tt new file mode 100644 index 0000000..8324f89 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/settings/index.tt @@ -0,0 +1,56 @@ + + + + + + + + + + +Einstellungen + + + +
    + + + + + + + + + + + + + + + +
    NameDatabaseServerTypeVPNVerbunden
    +
    + + + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/settings/lib/datastore.js b/CGI/tmpl/app/invoicejournal/module/settings/lib/datastore.js new file mode 100644 index 0000000..834821a --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/settings/lib/datastore.js @@ -0,0 +1,46 @@ +var datastore = { + new: function(){ + parent.browserapp.loadmodulepage('settings','form_datastore',{"id":""}); + }, + edit: function(){ + var settings_id= getTableSelectionID(); + console.log(settings_id); + if (settings_id){ + parent.browserapp.loadmodulepage('settings','form_datastore',{"id":settings_id}); + } + }, + delete: function(){ + + }, + import: function(){ + + }, + export: function(){ + + }, + test: function(){ + + }, + save: function(){ + var dts ={}; + $("input,select").each(function(){ + var inp = $(this); + //console.log(inp); + dts[inp.attr("id")] = inp.val(); + }); + console.log(dts); + console.log(mpref); + if (mpref.cfg.id == ""){ + var keyname = dts['name'].toLowerCase(); + console.log(keyname); + keyname = keyname.replace(/[^a-z0-9-_]/g,""); + console.log(keyname); + mpref.cfg.id = "db."+ keyname; + } + if (dts.name){ + console.log("Before save:" + mpref.cfg.id); + parent.usersystem.setPreference(mpref.cfg.id,dts); + } + + } +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/templates/form_emailtemplate.js b/CGI/tmpl/app/invoicejournal/module/templates/form_emailtemplate.js new file mode 100644 index 0000000..181057a --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/templates/form_emailtemplate.js @@ -0,0 +1,14 @@ +function initpage(){ + console.log(parent.usersystem.getsysinfo()); + tinymce.init({ + selector: 'textarea.richtextedit', + branding: false, + menubar:false, + statusbar: false, + plugins: 'searchreplace autolink directionality visualblocks visualchars advlist lists textpattern', + toolbar: 'bold italic underline strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat', + image_advtab: true, + language: 'de', +}); + //parent.usersystem.setProperty("testproperty",{id:"TEST"}); +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/templates/form_printtemplate.js b/CGI/tmpl/app/invoicejournal/module/templates/form_printtemplate.js new file mode 100644 index 0000000..d02a0b6 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/templates/form_printtemplate.js @@ -0,0 +1,34 @@ +function initpage(){ + console.log(parent.usersystem.getsysinfo()); + if (mpref.cfg.id){ + gettemplatedata(mpref.cfg.id); + } else { + //load default new invoice data + } + //parent.usersystem.setProperty("testproperty",{id:"TEST"}); +} + +function gettemplatedata(id){ + var sql = "select * from printtemplates where id='"+ id +"';"; + var data = appdb.dbquery(sql); + if (data.sqldata){ + for (var i in data.sqldata[0]){ + if ($("#" + i).prop("tagName") == "SELECT"){ + $("#" + i).val(data.sqldata[0][i]); + } else if ($("#" + i).prop("tagName") == "INPUT" ) { + console.log(i + ">=" + data.sqldata[0][i]); + $("#" + i).val(data.sqldata[0][i]); + } else { + $("#" + i).html(data.sqldata[0][i]); + } + } + } +} + +function gettemplateelements(id_printtemplate){ + var sql ="select id,name from printtemplateelements where id_printtemplate='"+ id_printtemplate +"';"; + var data = appdb.dbquery(sql); + for (var i in data.sqldata){ + + } +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/templates/form_printtemplate.tt b/CGI/tmpl/app/invoicejournal/module/templates/form_printtemplate.tt new file mode 100644 index 0000000..36dc7f9 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/templates/form_printtemplate.tt @@ -0,0 +1,163 @@ + + + + + + + + + + +Druck Template + + + +
    + +
    + +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + + + + + +
    +
    + +
    +
    + +
    +
    Seite 1
    +
    +
    +
    Seite 2
    +
    +
    +
    +
    +
    +
    + + + + +
    +
    +
    +
    +
    + + +
    +
    +
    + + + + + + +
    +
    +
    +
    +
    +
    + + + + +
    +
    +
    +
    + + + + + + + + +
    +
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/templates/from_emailtemplate.tt b/CGI/tmpl/app/invoicejournal/module/templates/from_emailtemplate.tt new file mode 100644 index 0000000..5513970 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/templates/from_emailtemplate.tt @@ -0,0 +1,85 @@ + + + + + + + + + + +Email-Template + + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    +
    +
    +
    + + + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/templates/index.js b/CGI/tmpl/app/invoicejournal/module/templates/index.js new file mode 100644 index 0000000..f49aacf --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/templates/index.js @@ -0,0 +1,65 @@ +var winh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); +var tblh = winh-54; + +function initpage(){ + loadtable(); +} + +function loadtable(){ + var sql = "SELECT id, name,'Druck' as form,'printtemplate' as formtmpl, \"type\", lang,isdefault FROM printtemplates;"; + var data = appdb.dbquery(sql); + for (var i in data.sqldata){ + var row = ''+ + '' + + '' + data.sqldata[i].name+ '' + + '' + data.sqldata[i].lang + '' + + '' + data.sqldata[i].form + '' + + '' + data.sqldata[i].type+ '' + + '' + data.sqldata[i].isdefault+ '' + + ''; + $("#tbl_templates").append(row.replace(/null/g,'')); + } + $('#tbl_templates').bootstrapTable({ + pagination: false, + search: false, + height: tblh, + clickToSelect: true + }); +} + +function template_edit(){ + var id= getTableSelectionID(); + if (id){ + if ($("#" + id ).data("tmpl") == 'printtemplate'){ + printtemplate.edit(id); + } + } +} + +function template_duplicate(){ + +} + +function template_delete(){ + +} + +function getTableSelectionID(){ + var sel = $('#tbl_templates').bootstrapTable('getSelections'); + var id = null; + + if (sel){ id=sel[0]._id; } + console.log("Selected ID:" + id); + return id; +} + +function getTableSelectionIDs(){ + var sel = $('#tbl_templates').bootstrapTable('getSelections'); + var ids = []; + if (sel){ + for (var s in sel){ + ids.push(s._id); + } + } + return ids; +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/templates/index.tt b/CGI/tmpl/app/invoicejournal/module/templates/index.tt new file mode 100644 index 0000000..209d271 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/templates/index.tt @@ -0,0 +1,60 @@ + + + + + + + + + + +Templates + + + +
    + + + + + + + + + + +
    NameSpracheFormTypStandard
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/templates/lib/emailtemplate.js b/CGI/tmpl/app/invoicejournal/module/templates/lib/emailtemplate.js new file mode 100644 index 0000000..8cbb4ec --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/templates/lib/emailtemplate.js @@ -0,0 +1,14 @@ +var emailtemplate = { + new: function(){ + + }, + edit: function(){ + + }, + duplicate: function(){ + + }, + delete: function(){ + + } +} \ No newline at end of file diff --git a/CGI/tmpl/app/invoicejournal/module/templates/lib/printtemplate.js b/CGI/tmpl/app/invoicejournal/module/templates/lib/printtemplate.js new file mode 100644 index 0000000..b507686 --- /dev/null +++ b/CGI/tmpl/app/invoicejournal/module/templates/lib/printtemplate.js @@ -0,0 +1,14 @@ +var printtemplate = { + new: function(){ + parent.browserapp.loadmodulepage('templates','form_printtemplate',{"id":""}); + }, + edit: function(id){ + parent.browserapp.loadmodulepage('templates','form_printtemplate',{"id":id}); + }, + duplicate: function(){ + + }, + delete: function(){ + + } +} diff --git a/CGI/tmpl/block/snackbar.tt b/CGI/tmpl/block/snackbar.tt new file mode 100644 index 0000000..464a162 --- /dev/null +++ b/CGI/tmpl/block/snackbar.tt @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/CGI/tmpl/macro/fields.tt b/CGI/tmpl/macro/fields.tt new file mode 100644 index 0000000..a2113eb --- /dev/null +++ b/CGI/tmpl/macro/fields.tt @@ -0,0 +1,118 @@ +[% MACRO fieldhidden(column,table,ident,value) BLOCK -%] + +[% END -%] +[% MACRO fieldeditbox(column,table,title,size,state,value,plhold) BLOCK -%] +
    + + 0 %][% state %][% END %]/> + +
    +[% END -%] +[% MACRO fieldfile(column,table,title,size,state,value) BLOCK -%] +
    + + 0 %][% state %][% END %]/> + +
    +[% END -%] +[% MACRO fieldpasswordbox(column,table,title,size,state,value) BLOCK -%] +
    + + 0 %][% state %][% END %]/> + +
    +[% END -%] +[% MACRO fieldtagbox(column,table,title,size,state,value) BLOCK -%] +
    + + 0 %][% state %][% END %]/> + +
    +[% END -%] +[% MACRO fieldcheckbox(column,table,title,size,state,value) BLOCK -%] +
    +
    + 0 %][% state %][% END %]> + +
    +[% END -%] + +[% MACRO fieldemailbox(column,table,title,size,state,value) BLOCK -%] +
    + + 0 %][% state %][% END %]/> +
    +[% END -%] + +[% MACRO fieldselectbox(column,table,title,size,state,value) BLOCK -%] + [% IF state.length > 0 %] + [% fieldeditbox(column,table,title,size,state,value) %] + [% ELSE %] +
    + + + +
    + [% END %] +[% END -%] +[% MACRO fieldmultiselectbox(column,table,title,size,state,value) BLOCK -%] + [% IF state.length > 0 %] + [% fieldeditbox(column,table,title,size,state,value) %] + [% ELSE %] +
    + + + +
    + [% END %] +[% END -%] +[% MACRO fielddatebox(column,table,title,size,state,value) BLOCK -%] +
    + + 0 %][% state %][% END %]]/> + +
    +[% END -%] +[% MACRO fieldtextarea(column,table,title,size,state,height,value) BLOCK -%] +
    + + +
    +[% END -%] +[% MACRO fieldrichtextarea(column,table,title,size,state,height,value) BLOCK -%] +
    + + +
    +[% END -%] + +[% MACRO formsavebutton(formname,btnname,clbk) BLOCK -%] +
    + +
    +[% END -%] +[% MACRO formsavetextfilebutton(formname,btnname) BLOCK -%] +
    + +
    +[% END -%] +[% MACRO formdlgsavebutton(formname,btnname,clbk) BLOCK -%] + +[% END -%] +[% MACRO formsavefilebutton(formname,btnname,container) BLOCK -%] +[% IF container.length > 0 %] +
    + [% END %] + +[% IF container.length > 0 %] +
    +[% END %] +[% END -%] + + diff --git a/CGI/tmpl/skeleton/app.tt b/CGI/tmpl/skeleton/app.tt new file mode 100644 index 0000000..e5e9f5f --- /dev/null +++ b/CGI/tmpl/skeleton/app.tt @@ -0,0 +1,3 @@ +[% #USE DBI %] +[% #USE dksdb = DBI(dsn, dbuser, dbpassword) %] +[% INCLUDE $page %] \ No newline at end of file diff --git a/CGI/tmpl/skeleton/file.tt b/CGI/tmpl/skeleton/file.tt new file mode 100644 index 0000000..e5e9f5f --- /dev/null +++ b/CGI/tmpl/skeleton/file.tt @@ -0,0 +1,3 @@ +[% #USE DBI %] +[% #USE dksdb = DBI(dsn, dbuser, dbpassword) %] +[% INCLUDE $page %] \ No newline at end of file diff --git a/CGI/tmpl/skeleton/index.tt b/CGI/tmpl/skeleton/index.tt new file mode 100644 index 0000000..585f53e --- /dev/null +++ b/CGI/tmpl/skeleton/index.tt @@ -0,0 +1,42 @@ +[% USE date %] +[% vstamp=date.format(date.now, '%d%m%Y%H%M%S') %] + + + + + + + + + +DKS NAS + + +
    +
    + +
    DKS NAS
    + + +
    +
    + + + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + \ No newline at end of file diff --git a/CGI/tmpl/skeleton/module.tt b/CGI/tmpl/skeleton/module.tt new file mode 100644 index 0000000..363b097 --- /dev/null +++ b/CGI/tmpl/skeleton/module.tt @@ -0,0 +1,60 @@ +[% USE Dumper %] + +[% #USE dksdb = DBI(dsn, dbuser, dbpassword) %] +[% #USE date %] +[% vstamp=date.format(date.now, '%d%m%Y') %] + + + + + + + + + [% adminname %] - [% module %] - [% pagename %] + + + + + + + + + + + [% #INCLUDE "module/$module/css.tt" %] + + + + +
    + [% #IF session.id %] + [% INCLUDE $page %] +
    + + + + + + + + + + [% #INCLUDE "module/$module/javascript.tt" %] + + + [% #ELSE %] + + [% #END %] + [% INCLUDE block/snackbar.tt %] + + + \ No newline at end of file diff --git a/bin/Module/OpenVPN.pm b/bin/Module/OpenVPN.pm deleted file mode 100644 index 4267ef6..0000000 --- a/bin/Module/OpenVPN.pm +++ /dev/null @@ -1,207 +0,0 @@ -package Module::OpenVPN; - -use strict; -use warnings; -use parent qw(Plack::Component); -use Plack::Request; -use Data::Dumper; -use File::Find::Rule; -use File::Basename; -use JSON::PP; -use File::Copy; -use File::Path qw(make_path); - -sub call { - my($self, $env) = @_; - #$self->_app->($env); - if (($env->{REMOTE_ADDR} =~ "^127\.0\.") && - ($env->{REMOTE_ADDR} =~ "^10\.") && - ($env->{REMOTE_ADDR} =~ "^172\.16\.") && - ($env->{REMOTE_ADDR} =~ "^192\.168\.")) { - return [ - 404, - [ 'Content-Type' => "text/html",'Cache-Control' => 'no-store, no-cache, must-revalidate' ], - [ "Sorry no remote access allowed!" ] - ]; - } - if ($env->{PATH_INFO} =~ /^\/connect/){ - return $self->vpnconnect($env); - } elsif ($env->{PATH_INFO} =~ /^\/disconnect/){ - return $self->vpndisconnect($env); - } elsif ($env->{PATH_INFO} =~ /^\/installprofile/){ - return $self->vpninstallprofile($env); - } elsif ($env->{PATH_INFO} =~ /^\/listprofiles/){ - return $self->vpnprofilelist($env); - } - return [ - 404, - [ 'Content-Type' => "text/html",'Cache-Control' => 'no-store, no-cache, must-revalidate' ], - [ "Unknown System Request!" ] - ]; -} - -sub vpnconnect(){ - my $self = shift; - my $env = shift; - my $html->{result} = 0; - my $req = Plack::Request->new($env); - my $uprofile = ""; - #is gui or vpn running - - if (exists($req->query_parameters->{vpnprofile})){ - my $status = $self->vpnstatus(); - if (!exists($status->{active}->{$req->query_parameters->{vpnprofile}})){ - if ($^O eq "MSWin32"){ - if (exists($status->{gui})){ - system('taskkill.exe /F /IM openvpn.exe'); - system('taskkill.exe /F /IM openvpn-gui.exe'); - sleep(1); - } - my $st = system('start /b "" "C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --connect '.$req->query_parameters->{vpnprofile}.'.ovpn'); - if ($st == 0){ - - my $bconn = 0; - my $i = 30; - while ($bconn == 0 || $i > 0){ - $status = $self->vpnstatus(); - if (exists($status->{active}->{$req->query_parameters->{vpnprofile}})){ - $html->{result} = $status; - $bconn = 1; - } - $i--; - sleep(1); - } - } - } - } else { - $html->{result} = $status; - } - } - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -sub vpnstatus(){ - my $self = shift; - my $status = (); - if ($^O eq "MSWin32"){ - - my $tasklist = `tasklist`; - my @task = split("\n",$tasklist); - my @ovpntasks = grep(/openvpn-gui\.exe/,@task); - if (scalar(@ovpntasks) > 0){ - $status->{gui} = "running"; - } - @ovpntasks = grep(/openvpn.exe/,@task); - #$status->{active_connections} = scalar(@ovpntasks); - if (scalar(@ovpntasks) > 0){ - my $ff = File::Find::Rule->new(); - $ff->file; - $ff->name('*.log'); - my @loglist =$ff->in($ENV{USERPROFILE}.'/OpenVPN/log'); - foreach my $c (@loglist){ - open(CLOG,$c); - my @data = ; - close(CLOG); - my $laststate=$data[scalar(@data)-1]; - chomp($laststate); - if ($laststate =~ /CONNECTED/){ - my ($time,$ip,$server,$port) = $laststate =~ /.+MANAGEMENT:\s>STATE:(\d+),CONNECTED,SUCCESS,(.+),(.+),(.+),,$/; - if (!exists($status->{connection}->{$ip})){ - $status->{connection}->{$ip}->{config} = substr(basename($c),0,-4);; - $status->{connection}->{$ip}->{server} = $server; - $status->{connection}->{$ip}->{port} = $port; - $status->{connection}->{$ip}->{connected_since} = $time; - }else { - if ($time >= $status->{connection}->{$ip}->{connected_since}){ - $status->{connection}->{$ip}->{config} = substr(basename($c),0,-4); - $status->{connection}->{$ip}->{server}= $server; - $status->{connection}->{$ip}->{port} = $port; - $status->{connection}->{$ip}->{connected_since} = $time; - } - } - } - } - my @notactive = (); - my $active = (); - foreach my $c (keys(%{$status->{connection}})){ - my $routeslist = `route print -4`; - my @routes = split("\n",$routeslist); - my @activetest = grep(/$c/,@routes); - if (scalar(@activetest) == 0){ - push @notactive,$c; - } else { - $active->{$status->{connection}->{$c}->{config}} = $c; - } - } - foreach my $na (@notactive){ - delete $status->{connection}->{$na}; - } - $status->{active} = $active; - } - } - return $status; -} - -sub vpndisconnect(){ - my $self = shift; - my $env = shift; - my $html->{result} = 1; - if ($^O eq "MSWin32"){ - system('taskkill.exe /F /IM openvpn.exe'); - system('taskkill.exe /F /IM openvpn-gui.exe'); - } - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -sub vpninstallprofile(){ - my $self = shift; - my $env = shift; - my $req = Plack::Request->new($env); - my $html->{result} = 0; - if ($^O eq "MSWin32"){ - if ( ! -d $ENV{USERPROFILE}.'/OpenVPN'){ - make_path($ENV{USERPROFILE}.'/OpenVPN'); - } - if (exists($req->query_parameters->{vpnprofile}) && (-e $req->query_parameters->{vpnprofile}) && ($req->query_parameters->{vpnprofile} =~ /\.ovpn$/)){ - copy(req->query_parameters->{vpnprofile},$ENV{USERPROFILE}.'/OpenVPN/'.basename($req->query_parameters->{vpnprofile})); - $html->{result} = 1; - } - } - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -sub vpnprofilelist(){ - my $self = shift; - my $env = shift; - my $html->{result} = (); - if ($^O eq "MSWin32"){ - my $ff = File::Find::Rule->new(); - $ff->file; - $ff->name('*.ovpn'); - my @vpnlist =$ff->in($ENV{USERPROFILE}.'/OpenVPN'); - foreach (my $p=0;$p{result} = \@vpnlist; - } - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - - -1; \ No newline at end of file diff --git a/bin/Module/SSH.pm b/bin/Module/SSH.pm deleted file mode 100644 index a0e85fe..0000000 --- a/bin/Module/SSH.pm +++ /dev/null @@ -1,171 +0,0 @@ -package Module::SSH; - -use strict; - -use warnings; -use parent qw(Plack::Component); -use Plack::Request; -use File::Basename; -use File::Path qw(make_path); - -sub call { - my($self, $env) = @_; - if (($env->{REMOTE_ADDR} =~ "^127\.0\.") && - ($env->{REMOTE_ADDR} =~ "^10\.") && - ($env->{REMOTE_ADDR} =~ "^172\.16\.") && - ($env->{REMOTE_ADDR} =~ "^192\.168\.")) { - return [ - 404, - [ 'Content-Type' => "text/html",'Cache-Control' => 'no-store, no-cache, must-revalidate' ], - [ "Sorry no remote access allowed!" ] - ]; - } - if ($^O eq "MSWin32"){ - $self->{PLINK} = dirname($0).'\\PLINK.EXE' ; - $self->{PSCP} = dirname($0).'\\PSCP.EXE' ; - $self->{SFTP} = dirname($0).'\\PSFTP.EXE' ; - $self->{PUTTY} = dirname($0).'\\PUTTY.EXE' ; - } - #$self->_app->($env); - if ($env->{PATH_INFO} =~ /^\/storeauth/){ - return $self->storeauth($env); - } elsif ($env->{PATH_INFO} =~ /^\/cmd/){ - return $self->cmd($env); - } elsif ($env->{PATH_INFO} =~ /^\/openterminal/){ - return $self->openterminal($env); - } - return [ - 404, - [ 'Content-Type' => "text/html",'Cache-Control' => 'no-store, no-cache, must-revalidate' ], - [ "Unknown System Request!" ] - ]; - -} - -sub storeauth(){ - my $self = shift; - my $env = shift; - my $cfgpath = ""; - my $html->{result} = 0; - if ($^O eq "MSWin32"){ - $cfgpath = $ENV{APPDATA}.'/sysakivpn/'; - if (! -e $ENV{APPDATA}.'/sysakivpn'){ - make_path($ENV{APPDATA}.'/sysakivpn'); - } - } - my $req = Plack::Request->new($env); - if ( ( -d $cfgpath) && (exists($req->query_parameters->{user})) && - (exists($req->query_parameters->{password})) && - (exists($req->query_parameters->{host}))){ - my $sshdata->{host} = $req->query_parameters->{host}; - $sshdata->{opts}->{user} = $req->query_parameters->{user}; - $sshdata->{opts}->{password} = $req->query_parameters->{password}; - if (exists($req->query_parameters->{port})){ - $sshdata->{opts}->{port} = $req->query_parameters->{port}; - } - open(SCFG,">".$cfgpath.'/ssh_'.$req->query_parameters->{host}."_".$req->query_parameters->{user}.'.json'); - print SCFG JSON::PP::encode_json($sshdata); - close(SCFG); - $html->{result} = 1; - } - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -sub cmd(){ - my $self = shift; - my $env = shift; - my $req = Plack::Request->new($env); - my $cfgpath = ""; - my $html->{result} = 0; - if ($^O eq "MSWin32"){ - $cfgpath = $ENV{APPDATA}.'/sysakivpn/'; - } - if ( (exists($req->query_parameters->{user})) && (exists($req->query_parameters->{host})) && (exists($req->query_parameters->{cmd}))){ - if (-e $cfgpath.'/ssh_'.$req->query_parameters->{host}.'_'.$req->query_parameters->{user}.'.json'){ - my $host = ""; - my $uopts = {}; - open(SCFG,$cfgpath.'/ssh_'.$req->query_parameters->{host}.'_'.$req->query_parameters->{user}.'.json'); - my $strcfg = ""; - while (my $l = ){ - $strcfg .= $l; - } - close(SCFG); - if ( ($strcfg ne "") && ($strcfg =~ /^\{.+\}$/) ){ - my $jcfg = JSON::PP::decode_json($strcfg); - $html->{cmd} = $req->query_parameters->{cmd}; - my $sshcmd = $self->{PLINK}." -batch -P ".$jcfg->{opts}->{port}." -pw ".$jcfg->{opts}->{password}." ".$jcfg->{opts}->{user}."@".$jcfg->{host}.' "'.$html->{cmd}.'"'; - #print "SEND: ".$sshcmd."\n"; - my $cmdout = `$sshcmd`; - if ($cmdout =~ /^\{.*\}$/){ - $html->{result} = JSON::PP::decode_json($cmdout); - }else { - $html->{result} = $cmdout; - } - - } - } - } - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -sub put(){ - my $self = shift; - my $env = shift; -} - -sub get(){ - my $self = shift; - my $env = shift; -} - - -sub openterminal(){ - my $self = shift; - my $env = shift; - my $req = Plack::Request->new($env); - my $cfgpath = ""; - my $html->{result} = 0; - if ($^O eq "MSWin32"){ - $cfgpath = $ENV{APPDATA}.'/sysakivpn/'; - } - if ( (exists($req->query_parameters->{user})) && (exists($req->query_parameters->{host}))){ - if (-e $cfgpath.'/ssh_'.$req->query_parameters->{host}.'_'.$req->query_parameters->{user}.'.json'){ - my $host = ""; - my $uopts = {}; - open(SCFG,$cfgpath.'/ssh_'.$req->query_parameters->{host}.'_'.$req->query_parameters->{user}.'.json'); - my $strcfg = ""; - while (my $l = ){ - $strcfg .= $l; - } - close(SCFG); - if ( ($strcfg ne "") && ($strcfg =~ /^\{.+\}$/) ){ - my $jcfg = JSON::PP::decode_json($strcfg); - - if ($^O eq "MSWin32"){ - print "Start Terminal Session!\n"; - print "CMD: ".'start /b "" "'.$self->{PUTTY}.'" -P '.$jcfg->{opts}->{port}.' -l '.$jcfg->{opts}->{user}.' -pw '.$jcfg->{opts}->{password}.' '.$jcfg->{host}."\n"; - my $st = system('start /b "" "'.$self->{PUTTY}.'" -P '.$jcfg->{opts}->{port}.' -l '.$jcfg->{opts}->{user}.' -pw '.$jcfg->{opts}->{password}.' '.$jcfg->{host}.''); - print "exit Code".$st."\n"; - if ($st == 0){ - $html->{result} = 1; - } - } - } - } - } - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -1; diff --git a/bin/Module/Service.pm b/bin/Module/Service.pm deleted file mode 100644 index a41ed31..0000000 --- a/bin/Module/Service.pm +++ /dev/null @@ -1,569 +0,0 @@ -package Module::Service; - -use strict; -use warnings; -use File::Path qw(make_path); -use File::Basename; -use parent qw(Plack::Component); -use Data::Dumper; - -sub call { - my($self, $env) = @_; - if (($env->{REMOTE_ADDR} =~ "^127\.0\.") && - ($env->{REMOTE_ADDR} =~ "^10\.") && - ($env->{REMOTE_ADDR} =~ "^172\.16\.") && - ($env->{REMOTE_ADDR} =~ "^192\.168\.")) { - return [ - 404, - [ 'Content-Type' => "text/html",'Cache-Control' => 'no-store, no-cache, must-revalidate' ], - [ "Sorry no access allowed!" ] - ]; - } - return $self->service($env); -} - -sub service() { - my $self = shift; - my $env = shift; - my $html = "Unknown service!"; - my $ct="application/json"; - my $status=200; - - if ($env->{PATH_INFO} =~ /^\/info/){ - return $self->appinfo($env); - } - if ($env->{PATH_INFO} =~ /^\/preferences/){ - return $self->preferences($env); - } - if (($env->{PATH_INFO} =~ /^\/stop/) || ($env->{PATH_INFO} =~ /^\/unload/)){ - exit(0); - } - if($env->{PATH_INFO} =~ /^\/config/){ - return $self->getconfig($env); - } - if($env->{PATH_INFO} =~ /^\/save/){ - return $self->saveconfig($env); - } - - return [ - 200, - [ 'Content-Type' => 'text/html','Cache-Control' => 'no-store, no-cache, must-revalidate' , 'Access-Control-Allow-Origin'=> '*'], - [ $html ] - ]; -}; - -sub preferences(){ - my $self = shift; - my $env =shift; - my $name = basename($0); - $name =~ s/\srv.pl$//; - $name =~ s/\srv.exe$//; - my $appcfgpath = $ENV{APPDATA}.'/'.$name; - $appcfgpath =~ s/\\/\//g; - my $pref->{result}= (); - my $req = Plack::Request->new($env); - if (exists($req->query_parameters->{page})){ - if (-e $appcfgpath.'/'.$req->query_parameters->{page}.'.json'){ - open(PREF,$appcfgpath.'/'.$req->query_parameters->{page}.'.json'); - my $strpref = ""; - while (my $l = ){ - $strpref .= $l; - } - close(PREF); - $pref->{result}=JSON::PP::decode_json($strpref); - } - if (exists($req->query_parameters->{set})){ - my $newpref = JSON::PP::decode_json($req->query_parameters->{set}); - foreach my $p (keys(%{$newpref})){ - $pref->{result}->{$p} = $newpref->{$p}; - } - open(PREF,">".$appcfgpath.'/'.$req->query_parameters->{page}.'.json'); - print PREF JSON::PP::encode_json($pref->{result}); - close(PREF); - } - } - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($pref) ] - ]; -} - -sub appinfo(){ - my $self = shift; - my $env = shift; - my $html->{result} = (); - my $req = Plack::Request->new($env); - my $name = basename($0); - $name =~ s/\.pl$//; - $name =~ s/\.exe$//; - $html->{result}->{OS} = $^O; - $html->{result}->{app} = $name; - if ($^O eq "MSWin32"){ - $html->{result}->{home} = $ENV{USERPROFILE}; - $html->{result}->{user} = $ENV{USERNAME}; - $html->{result}->{appcfgpath} = $ENV{APPDATA}.'/'.$name; - $html->{result}->{hostname} = $ENV{COMPUTERNAME}; - $html->{result}->{arch} = $ENV{PROCESSOR_ARCHITEW6432}; - $html->{result}->{appcfgpath} =~ s/\\/\//g; - $html->{result}->{home} =~ s/\\/\//g; - } else { - $html->{result}->{home} = $ENV{HOME}; - $html->{result}->{user} = $ENV{USER}; - if ($^O eq "darwin"){ - $html->{result}->{appcfgpath} = $ENV{HOME}.'/Library/Application Support/'.$name; - } else { - $html->{result}->{appcfgpath} = $ENV{HOME}.'/.'.$name.'/'; - } - $html->{result}->{hostname} = `hostname -s`; - chomp($html->{result}->{hostname}); - $html->{result}->{arch} = `uname -m`; - chomp($html->{result}->{arch}); - } - if (! -e $html->{result}->{appcfgpath}){ - make_path($html->{result}->{appcfgpath}); - } - if (-e $html->{result}->{appcfgpath}.'/service.json'){ - open(LCFG,$html->{result}->{appcfgpath}.'/service.json'); - my $strljs = ""; - while (my $l = ){ - $strljs .= $l; - } - close(LCFG); - print $strljs."\n--\n"; - #if ($strljs =~ /^\{.*\}$/){ - $html->{result}->{appconfig} = JSON::PP::decode_json($strljs); - #} - } - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -sub getfileconfig(){ - my $self = shift; - my $strcfg = ""; - my $apppath = $self->getappconfigpath(); - if (-e $apppath.'/'.basename($apppath).'.conf'){ - open(AUTH,$apppath.'/'.basename($apppath).'.conf'); - while (my $l = ){ - chomp($l); - $strcfg .= $l; - } - close(AUTH); - } - if ($strcfg eq ""){ - return undef; - } - return JSON::decode_json($strcfg); -} - -sub saveconfig(){ - my $self = shift; - my $env = shift; - my $html->{result} = undef; - my $req = Plack::Request->new($env); - if($env->{PATH_INFO} =~ /^\/save\/login/){ - if (exists($req->body_parameters->{login}) && exists($req->body_parameters->{pwd})){ - return $self->setlogin($req->body_parameters->{login},$req->body_parameters->{pwd}); - } - } - if($env->{PATH_INFO} =~ /^\/save\/cablenet/){ - if (exists($req->body_parameters->{type})){ - print Dumper($req->body_parameters); - return $self->setcablenetwork($req->body_parameters); - } - } - if($env->{PATH_INFO} =~ /^\/save\/wifinet/){ - if (exists($req->body_parameters->{type})){ - print Dumper($req->body_parameters); - return $self->setwifinetwork($req->body_parameters); - } - } -} - -sub getconfig(){ - my $self = shift; - my $env = shift; - my $html->{result} = undef; - my $req = Plack::Request->new($env); - my @sections = ('weblogin','cablenet','wirelessnet','openvpn','extdrives','shares','shareusers'); - if (exists($req->query_parameters->{section})){ - @sections = split(',',$req->query_parameters->{section}); - } - foreach my $s (@sections){ - if ($s eq 'weblogin') { - $html->{result}->{$s} = $self->getweblogin(); - } elsif ($s eq 'cablenet') { - $html->{result}->{$s} = $self->getcablenetworkconfig(); - } elsif ($s eq 'wifinet') { - $html->{result}->{$s} = $self->getwifinetworks(); - } elsif ($s eq 'openvpn') { - $html->{result}->{$s} = $self->getOpenVPN(); - } elsif ($s eq 'extdrives') { - $html->{result}->{extdrives} = $self->getdrives(); - } elsif ($s eq 'shares') { - $html->{result}->{shares} = $self->getshares(); - } elsif ($s eq 'shareusers') { - $html->{result}->{shareusers} = $self->getshareusers(); - }; - } - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -sub getweblogin(){ - my $self = shift; - my $apppath = $self->getappconfigpath(); - my $loginname= ""; - my $fname = basename($apppath); - $fname =~ s/\.//g; - if (-e $apppath.'/'.$fname.'.passwd'){ - open(AUTH,$apppath.'/'.$fname.'.passwd'); - while (my $l = ){ - chomp($l); - ($loginname) = $l =~ /^(.+)\=.*/; - } - close(AUTH); - } - return { "user" => $loginname }; -} - -sub setlogin(){ - my $self = shift; - my $login = shift; - my $pwd = shift; - my $apppath = $self->getappconfigpath(); - my $html->{result} = 1; - my $fname = basename($apppath); - $fname =~ s/\.//g; - - print "new Login:".$login.'='.$pwd."\n"; - print "AUTH file:".$apppath.'/'.$fname.'.passwd'."\n"; - open(AUTH,">".$apppath.'/'.$fname.'.passwd'); - print AUTH $login.'='.$pwd; - close(AUTH); - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -#sub getusers(){ -# my $self = shift; -# my $cmd = ""; -# if ($^O eq "linux"){ -# $cmd = 'cat /etc/passwd | grep "/bin/bash" | grep -v -e "^root" | awk -F ":" \'{ print $1 }\''; -# } elsif ($^O eq "darwin"){ -# $cmd = 'ls -1 /Users | grep -v "Shared"'; -# } elsif ($^O eq "MSWin32"){ -# -# } -# my $strdata = `$cmd`; -# my @list = split("\n",$strdata); -# return \@list; -#} - -sub getdrives(){ - my $self = shift; - my $connecteddrives = $self->getconnecteddrives(); - my $mounts = $self->getcurrentmountpoints(); -# print Dumper($mounts); - my $cfg = $self->getfileconfig(); - my $fstypes = { ntfs => 'ntfs-3g',exfat => 'exfat', fat32 => 'vfat'}; - my $drivesdata = (); - foreach my $cd (keys(%{$connecteddrives})){ - $drivesdata->{$cd} = $connecteddrives->{$cd}; - my $tdev = $connecteddrives->{$cd}->{dev}; -# print "$tdev\n"; - #if (exists($cfg->{drives}->{$connecteddrives->{$cd}->{serial}})){ - #$drivesdata->{$cd} = $connecteddrives->{$cd}; - #print $cd." => ".$config->{drives}->{$connecteddrives->{$cd}->{serial}}->{path}."\n"; -# if (! -d $config->{drives}->{$connecteddrives->{$cd}->{serial}}->{path}){ -# mkdir($config->{drives}->{$connecteddrives->{$cd}->{serial}}->{path}); -# } - if (exists($mounts->{$tdev})){ - my $folder = substr($mounts->{$tdev},length($ENV{HOME}) + 1); - $drivesdata->{$cd}->{mountpoint} = $folder; - $drivesdata->{$cd}->{mounted} = 1; -# my $cmd = "sudo mount -t ".$fstypes->{$connecteddrives->{$cd}->{fs}}." -o uid=".$config->{drives}->{$connecteddrives->{$cd}->{serial}}->{uid}.',gid='.$config->{drives}->{$connecteddrives->{$cd}->{serial}}->{gid}.','.$config->{drives}->{$connecteddrives->{$cd}->{serial}}->{type}." /dev/".$connecteddrives->{$cd}->{dev}." ".$config->{drives}->{$connecteddrives->{$cd}->{serial}}->{path}; - #print $cmd."\n"; -# my $res = `$cmd`; - } - #} - } - return $drivesdata; -} - -sub mountdrives(){ - my $self = shift; - #mount -t ntfs-3g -o uid=1001,gid=1001,rw /dev/sdb1 /home/dks/music -} - -sub getshares(){ - my $self = shift; - my $shares =(); - open(SMB,'/etc/samba/smb.conf'); - my $cgrp = ""; - while (my $l = ){ - chomp($l); - if ($l =~ /^\[.*\]$/){ - $cgrp = $l; - $cgrp =~ s /\[//; - $cgrp =~ s /\]//; - } elsif ($l ne ""){ - my ($k,$v) = $l =~ m/\s*(.+)\s+\=\s+(.*)$/; - if ($cgrp eq "global"){ - if (($k eq "workgroup") || ($k eq "server string") || ($k eq "netbios name")){ - $shares->{$cgrp}->{$k} =$v; - } - }else { - if (($k eq "comment") || ($k eq "path")){ - $shares->{folders}->{$cgrp}->{$k} =$v; - } elsif (($k eq "valid users")){ - my @uu = split(" ",$v); - $shares->{folders}->{$cgrp}->{$k} = \@uu; - } - } - } - } - close(SMB); - return $shares; -} - -sub getshareusers(){ - my $self = shift; - my $cmd = 'cat /etc/passwd | grep -E \'\\:[0-9]{4}\\:\''; - my $strusers = `$cmd`; - my $users = (); - my @ausers = split("\n",$strusers); - foreach my $u (@ausers){ - my @ud = split(":",$u); - if ($ud[0] ne $ENV{USER}){ - $users->{$ud[0]}->{uid} = $ud[2]; - } - } - - return $users; -} - -sub setshares(){ - my $self = shift; -} - - -sub getwifinetworks(){ - my $self = shift; - my $current = `sudo grep ssid /etc/wpa_supplicant/wpa_supplicant.conf`; - chomp($current); - my $wifi->{ssid} = undef; - if ($current ne ""){ - $wifi->{ssid} = $current; - } - my $strlist = `sudo iw wlan0 scan | grep SSID | sed \'s/.*SSID: //g\'`; - my @list = split("\n",$strlist); - $wifi->{networks} = \@list; - return $wifi; -} - -sub setwifinetwork(){ - my $self = shift; - my $data = shift; - my $strwpa = `sudo cat /etc/wpa_supplicant/wpa_supplicant.conf`; - $strwpa =~ s/network=\{.*\}//smg; - $strwpa =~ s/\n+/\n/gs; - $strwpa .= 'network={'."\n"; - $strwpa .= 'ssid='.$data->{ssid}."\n"; - if (exists($data->{hiddenssid})){ - $strwpa .= 'scan_ssid=1'."\n"; - } - if (exists($data->{passphrase})){ - my $cmd = 'wpa_passphrase "'.$data->{ssid}.'" "'.$data->{passphrase}.'"'; - my $enc = `$cmd`; - chomp($enc); - $strwpa .= 'psk='.$enc."\n"; - } else { - $strwpa .= 'key_mgmt=NONE'."\n"; - } - $strwpa .= '}'."\n"; - my $st = system('echo "'.$strwpa.'" > /etc/wpa_supplicant/wpa_supplicant.conf'); - my $cmd = "wpa_cli -i wlan0 reconfigure"; - my $html->{result} = system($cmd); - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -sub configureOpenVPN(){ - my $self = shift; - my $file = shift; -} - -sub getOpenVPN(){ - my $self = shift; - opendir(OVPN,'/etc/openvpn'); - my $ovpndata = (); - while(my $f = readdir(OVPN)){ - if (($f =~ /\.ovpn$/) || ($f =~ /\.conf$/)){ - my $name = substr($f,0,-5); - $ovpndata->{$name} = undef; - } - } - - closedir(OVPN); - return $ovpndata; -} - -sub getOpenVPNstatus(){ - -} - -sub setcablenetwork(){ - my $self = shift; - my $data = shift; - my $netdata = ""; - my $html->{result} = -1; - open(NET,"/etc/dhcpcd.conf"); - while (my $l = ){ - if ( ($l !~ /^static/) || ($l !~ /^interface/)){ - $netdata .= $l; - } - } - close(NET); - if (($data->{type} eq "static") && (exists($data->{ip})) && ($data->{ip} =~ /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)){ - if (($data->{ip} =~ "^10\.") && ($data->{ip} =~ "^172\.16\.") && ($data->{ip} =~ "^192\.168\.")) { - $netdata .= 'interface eth0'."\n"; - my $subnet = "255.255.255.0"; - if (exists($data->{subnet})){ $subnet = $data->{subnet}; } - $netdata .= 'static ip_address='.$data->{ip}.substr(Net::CIDR::addrandmask2cidr($data->{ip}, $subnet),-3)."\n"; - my $gw = $self->getcurrentgateway(); - if (exists($data->{gateway})){ - $gw = $data->{gateway}; - } - $netdata .= 'static routers='.$data->{gateway}."\n"; - my $dns = $self->getcurrentnameserver(); - if (exists($data->{dns})){ - $dns = $data->{dns}; - } - $netdata .= 'static domain_name_servers='.$data->{dns}."\n"; - } - } - $html->{result} = system('sudo echo "'.$netdata.'" > /etc/dhcpcd.test.conf'); - return [ - 200, - [ 'Content-Type' => "application/json",'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -sub getcurrentgateway(){ - my $self = shift; - my $cmd = 'route | grep default | awk \'{ print \$2 }\''; - my $gw = `$cmd`; - chomp($gw); - return $gw; -} - -sub getcurrentnameserver(){ - my $self = shift; - my $cmd = 'cat /etc/resolv.conf | grep nameserver | awk \'{ print \$2 }\' | head -n1'; - my $dns = `$cmd`; - chomp($dns); - return $dns; -} - -sub getcablenetworkconfig(){ - my $self = shift; - my $cmd = ""; - my $ncfg->{type} = "dhcp"; - if ($^O eq "linux"){ - $cmd = 'cat /etc/dhcpcd.conf | grep -e "^static\|^interface"'; - my $strdata = `$cmd`; - my @data = split("\n",$strdata); - foreach my $d (@data){ - if ($d =~ /static\sip_address/){ - $ncfg->{ip} = $d =~ /.+=(.+)\/\d{1,2}$/; - $ncfg->{subnet} = $d =~ /.+=.+\/(\d{1,2})$/; - #substr(Net::CIDR::addrandmask2cidr($stdata->{0}->{networkip}, $stdata->{0}->{networksubnet}),-3) - } - if ($d =~ /static\srouters/){ - $ncfg->{gateway} = $d =~ /.+=(.+)$/; - } - if ($d =~ /static\sdomain_name_servers/){ - $ncfg->{dns} = $d =~ /.+=(.+)$/; - } - } - } elsif ($^O eq "darwin"){ - $cmd = ''; - } elsif ($^O eq "MSWin32"){ - $cmd = ''; - } - return $ncfg; -} - -sub getappconfigpath(){ - my $self = shift; - my $name = basename($0); - $name =~ s/\.pl$//; - $name =~ s/\.exe$//; - my $path = ""; - if ($^O eq "MSWin32"){ - $path = $ENV{APPDATA}.'/'.$name; - } elsif ($^O eq "darwin"){ - $path = $ENV{HOME}.'/Library/Application Support/'.$name; - } else { - $path = $ENV{HOME}.'/.'.$name; - } - return $path; -} - -sub getconnecteddrives(){ - my $self = shift; - my $cmd = 'lsblk -o name,label,size,mountpoint,fstype,SERIAL | grep -e "sd."'; - my $strdrives = `$cmd`; - my $drives = (); - my @drives = split("\n",$strdrives); - foreach my $l (@drives){ - $l =~ tr/a-zA-Z0-9 ._-//cd; - $l =~ s/\s+/\ /g; - my @tmp = split(" ",$l); - #print Dumper(@tmp); - if ( $l =~ /^sd.\d/ ) { - my $drv = substr($tmp[0],0,3); - $drives->{$drv}->{dev} = $tmp[0]; - $drives->{$drv}->{label} = $tmp[1]; - $drives->{$drv}->{size} = $tmp[2]; - $drives->{$drv}->{fs} = $tmp[4]; - } else { - #print $l."\n"; - $drives->{$tmp[0]}->{serial} = $tmp[2]; - } - } - - return $drives; -} - -sub getcurrentmountpoints(){ - my $self = shift; - my $cmd = 'mount | grep "/dev/sd"'; - my $mpoints = (); - my $strmounts = `$cmd`; - #print $strmounts; - my @mdrives = split("\n",$strmounts); - foreach my $m (@mdrives){ - my ($drv,$path) = $m =~ m/^\/dev\/(.+)\son\s(.*)\stype.*$/; - $mpoints->{$drv} = $path; - } - return $mpoints; -} - - -1; \ No newline at end of file diff --git a/bin/Module/System.pm b/bin/Module/System.pm deleted file mode 100644 index 714bfc8..0000000 --- a/bin/Module/System.pm +++ /dev/null @@ -1,284 +0,0 @@ -package Module::System; - -use strict; -use warnings; -use parent qw(Plack::Component); -use Plack::Request; -use Data::Dumper; -use File::Find::Rule; -use File::Basename; -use JSON::PP; -use File::Path qw(make_path remove_tree); -use File::Copy; -use MIME::Types; -if ($^O eq "MSWin32"){ - eval('use Win32::File;'); -} - -sub call { - my($self, $env) = @_; - if (($env->{REMOTE_ADDR} =~ "^127\.0\.") && - ($env->{REMOTE_ADDR} =~ "^10\.") && - ($env->{REMOTE_ADDR} =~ "^172\.16\.") && - ($env->{REMOTE_ADDR} =~ "^192\.168\.")) { - return [ - 404, - [ 'Content-Type' => "text/html",'Cache-Control' => 'no-store, no-cache, must-revalidate' ], - [ "Sorry no remote access allowed!" ] - ]; - } - if ($env->{PATH_INFO} =~ /^\/search/){ - return $self->search($env); - } elsif ($env->{PATH_INFO} =~ /^\/directory/) { - return $self->directory($env); - } elsif ($env->{PATH_INFO} =~ /^\/file/) { - return $self->file($env); - } elsif ($env->{PATH_INFO} =~ /^\/userenv/){ - return $self->userenv($env); - } - return [ - 404, - [ 'Content-Type' => "text/html",'Cache-Control' => 'no-store, no-cache, must-revalidate' ], - [ "Unknown System Request!" ] - ]; -} - -sub search() { - my $self = shift; - my $env = shift; - my $html->{result} = (); - my $ct="application/json"; - my $status=200; - my $req = Plack::Request->new($env); - my $ff = File::Find::Rule->new; - if (exists($req->query_parameters->{name})){ - my $namesearch = $req->query_parameters->{name}; - $ff->name($req->query_parameters->{name}) - } - if (exists($req->query_parameters->{type})){ - if ($req->query_parameters->{type} eq 'd'){ - $ff->directory; - } else { - $ff->file; - } - } - if (exists($req->query_parameters->{relative})){ - $ff->relative; - } - if (exists($req->query_parameters->{osspec})){ - $ff->canonpath; - } - my @data = $ff->in($req->query_parameters->{path}); - if (exists($req->query_parameters->{sorted})){ - @data = sort {$a cmp $b} @data; - if ($req->query_parameters->{sorted} eq "desc"){ - @data = reverse(@data); - } - } - $html->{result} = \@data; - return [ - 200, - [ 'Content-Type' => $ct,'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -sub directory() { - my $self = shift; - my $env = shift; - my $html; - my $ct="application/json"; - my $status=200; - - my $req = Plack::Request->new($env); - if ($env->{PATH_INFO} =~ /^\/directory\/list/){ - my $mt = MIME::Types->new(); - $html->{result} = 0; - if (exists($req->query_parameters->{path})){ - my $dir = $req->query_parameters->{path}; - #print $dir."\n"; - $html->{result} = {'path' => $dir}; - if (-d $dir){ - my @dirs = (); - my @files = (); - opendir(LDIR,$dir); - while (my $f = readdir(LDIR)){ - if ($f =~ /^\./){ next; } - - if (-d $dir.'/'.$f){ - my $bok =1 ; - if ($^O eq "MSWin32"){ - eval ('my $attr; - Win32::File::GetAttributes($dir.\'/\'.$f,$attr); - if ($attr & HIDDEN){ - $bok = 0; - }'); - } - if ($bok == 1){ - push(@dirs,$f); - } - - } elsif (-f $dir.'/'.$f) { - my $bok =1 ; - if ($^O eq "MSWin32"){ - eval ('my $attr; - Win32::File::GetAttributes($dir.\'/\'.$f,$attr); - if ($attr & HIDDEN){ - $bok = 0; - }'); - } - if ($bok == 1){ - print $f."\n"; - my $fi->{name} = $f; - my $mtf = $mt->mimeTypeOf($f); - $fi->{mimetype} = (exists($mtf->{MT_simplified})?$mtf->{MT_simplified}:'unknown'); - - push(@files,$fi); - } - } - } - closedir(LDIR); - $html->{result}->{directory} = \@dirs; - $html->{result}->{file} = \@files; - } - } - } - if ($env->{PATH_INFO} =~ /^\/directory\/exists/){ - $html->{result} = 0; - if (exists($req->query_parameters->{path})){ - if (-d $req->query_parameters->{path}){ - $html->{result} = 1; - } - } - } - if ($env->{PATH_INFO} =~ /^\/directory\/make/){ - make_path($req->query_parameters->{path}); - $html->{result} = 0; - if (-d $req->query_parameters->{path}){ - $html->{result} = 1; - } - } - if ($env->{PATH_INFO} =~ /^\/directory\/delete/){ - my $keep_root = 0; - if (exists($req->query_parameters->{keep_root})){ - $keep_root = 1; - } - $html->{result} = 0; - if (-d $req->query_parameters->{path}){ - remove_tree( $req->query_parameters->{path}, {keep_root => $keep_root} ); - $html->{result} = 1; - } - } - return [ - 200, - [ 'Content-Type' => $ct,'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - -sub file() { - my $self = shift; - my $env = shift; - my $html->{result} = (); - my $ct="application/json"; - my $status=200; - - my $req = Plack::Request->new($env); - if ($env->{PATH_INFO} =~ /^\/file\/exists/){ - $html->{result} = 0; - if (exists($req->query_parameters->{path})){ - if (-f $req->query_parameters->{path}){ - $html->{result} = 1; - } - } - } -# if ($env->{PATH_INFO} =~ /^\/file\/choose/){ -# # A simple open file with graphic filers -# my ( @fss, $fss ); -# my ( @parms ); -# push @parms, -# -filter => [ 'PDF - fichiers PDF', '*.pdf' ], -# -directory => $ENV{HOME}, -# -title => 'selectionner un fichier PDF'; -# @fss = Win32::GUI::GetOpenFileName ( @parms ); -# if (scalar(@fss) > 0 ){ -# $html->{result} = \@fss; -# } -# } - if ($env->{PATH_INFO} =~ /^\/file\/write/){ - $html->{result} = 0; - if (exists($req->query_parameters->{path})){ - if (! -d (dirname($req->query_parameters->{path}))){ - make_path(dirname($req->query_parameters->{path})) - } - my $fwrite = ">"; - if (exists($req->query_parameters->{append})){ - $fwrite = ">>"; - } - my $datax = $req->body_parameters->{data}; - print $req->body_parameters->{data}."\n"; - open(WFI,$fwrite.$req->query_parameters->{path}); - print WFI $req->body_parameters->{data}; - close(WFI); - $html->{result} = 1; - } - } - if ($env->{PATH_INFO} =~ /^\/file\/read/){ - $html->{result} = ""; - if (exists($req->query_parameters->{path})){ - if (-f $req->query_parameters->{path}){ - my $rdata = ""; - open(RFI,$req->query_parameters->{path}); - while ( my $l = ){ - $rdata .= $l; - } - close(RFI); - $html->{result} = $rdata; - } - } - } - if ($env->{PATH_INFO} =~ /^\/file\/copy/){ - $html->{result} = ""; - if (exists($req->query_parameters->{src})){ - if (-f $req->query_parameters->{src}){ - my $dest = $req->query_parameters->{dest}; - if (! -d dirname($req->query_parameters->{dest})){ - make_path(dirname($req->query_parameters->{dest})) - } - if ($req->query_parameters->{src} ne $req->query_parameters->{dest}){ - my $cp = copy($req->query_parameters->{src},$req->query_parameters->{dest}); - $html->{result} = $cp; - } else { - $html->{result} = 1; - } - } - } - } - - return [ - 200, - [ 'Content-Type' => $ct,'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} - - -sub userenv() { - my $self = shift; - my $env = shift; - my $html->{result} = (); - my $ct="application/json"; - my $status=200; - - my $req = Plack::Request->new($env); - foreach my $k (keys(%ENV)){ - $html->{result}->{$k} = $ENV{$k}; - } - - return [ - 200, - [ 'Content-Type' => $ct,'Cache-Control' => 'no-store, no-cache, must-revalidate', 'Access-Control-Allow-Origin'=> '*' ], - [ JSON::PP::encode_json($html) ] - ]; -} -1; \ No newline at end of file diff --git a/bin/Module/Test.pm b/bin/Module/Test.pm deleted file mode 100644 index 1b31d69..0000000 --- a/bin/Module/Test.pm +++ /dev/null @@ -1,53 +0,0 @@ -package Module::Test; - -use strict; -use warnings; -use parent qw(Plack::Component); -use Plack::Request; -use Data::Dumper; - -sub call { - my($self, $env) = @_; - #$self->_app->($env); - if (($env->{REMOTE_ADDR} =~ "^127\.0\.") && - ($env->{REMOTE_ADDR} =~ "^10\.") && - ($env->{REMOTE_ADDR} =~ "^172\.16\.") && - ($env->{REMOTE_ADDR} =~ "^192\.168\.")) { - return [ - 404, - [ 'Content-Type' => "text/html",'Cache-Control' => 'no-store, no-cache, must-revalidate' ], - [ "Sorry no remote access allowed!" ] - ]; - } - return $self->test($env); -} - -sub test(){ - my $self = shift; - my $env = shift; - my $html = ""; - my $ct="application/json"; - my $status=200; - my $request = Plack::Request->new($env); - $html .= "

    System Environement

    "; - foreach my $k (keys(%ENV)){ - $html.= ''.$k.':'.$ENV{$k}."
    \n"; - } - $html .= "

    Request Header

    "; - foreach my $k (keys(%{$env})){ - $html .= ''.$k.':'.$env->{$k}."
    \n"; - } - $html .= "

    GET PARAMETERS

    "; - $html .= Dumper($request->query_parameters); - $html .= "

    POST PARAMETERS

    "; - $html .= Dumper($request->body_parameters); - print "Test Called!\n"; - return [ - 200, - [ 'Content-Type' => "text/html",'Cache-Control' => 'no-store, no-cache, must-revalidate' ], - [ $html ] - ]; -}; - - -1; \ No newline at end of file diff --git a/bin/clr_audiolist.pl b/bin/clr_audiolist.pl new file mode 100644 index 0000000..72fbbcf --- /dev/null +++ b/bin/clr_audiolist.pl @@ -0,0 +1,82 @@ +#!C:\Strawberry\perl\bin\perl.exe +use strict; +use Getopt::Long; +use Archive::Tar; +use POSIX qw/strftime/; +my $audiopath = "D:/Music/converted/ogg_0_64"; +my $cfgpath = "D:/Workspace/Apps/Coloradio/data/"; +my $station ="colab-bertrange3"; +my $type = "full"; +my $PSCP="D:/Tools/PSCP.EXE"; +my $PLINK="D:/Tools/PLINK.EXE"; +my $sshpwd="lee7yoh6"; +my $sshuser="posdab"; +my $sshhost="88.99.170.20"; +my $sshport="3587"; +GetOptions("station|st=s" => \$station,"type|t=s" => \$type); +my $stdata = (); +my $cmpdata = (); +open(ST,$cfgpath.'/'.$station.'_audio.txt'); +while (my $l = ){ + chomp($l); + my @spl = split(/\|/,$l); + my @tmsp = split(".",$spl[2]); + $spl[0] =~ s/\/home\/posdab\/audio\///; + $stdata->{$spl[0]}->{file} = $spl[0]; + $stdata->{$spl[0]}->{size} = $spl[1]; + $stdata->{$spl[0]}->{timestamp} = $tmsp[0]; +} +close(ST); +open(CMP,$cfgpath.'/current_audiolist_'.$type.'.txt'); +while (my $l = ){ + chomp($l); + my @spl = split(/\|/,$l); + my @tmsp = split(".",$spl[2]); + $cmpdata->{$spl[0]}->{file} = $spl[0]; + $cmpdata->{$spl[0]}->{size} = $spl[1]; + $cmpdata->{$spl[0]}->{timestamp} = $tmsp[0]; +} +close(CMP); +my $cntupl = 0; +my @files = (); +foreach my $k (keys(%{$cmpdata})){ + if (!exists($stdata->{$k})){ + push (@files,$k); + print $k." does not exist remote!\n"; + $cntupl++; + } +} +print "Start audio packaging \n"; +chdir($audiopath); +my $tar = Archive::Tar->new; +$tar->add_files(@files); + # foreach my $x (@files){ + # $tar->rename($x,'radio/playlists/'.$x); + # } +if (-e $cfgpath.'/'.$station.'_audio.tgz'){ + unlink($cfgpath.'/'.$station.'_audio.tgz'); +} +my @time = gmtime(); +my $date = strftime("%Y%m%d",@time); +$tar->write( $cfgpath.'/'.$station.'_audio.tgz', COMPRESS_GZIP ); +print $cfgpath.'/audio_'.$station.'_'.$date.'.tgz created!'."\n"; +print "Files to upload:".$cntupl."\n"; + + +sub sendcmd(){ + my $rcmd = shift; + print "Send: ".$rcmd."\n"; + my $cmd = '"'.$PLINK.'" -P '.$sshport.' -pw '.$sshpwd.' '.$sshuser.'@'.$sshhost.' "'.$rcmd.'" '; + my $res = `$cmd`; + print "~: ".$res."\n"; + return $res; +} + +sub transferfile(){ + my $lfile = shift; + my $rfile = shift; + print "Send: ".'"'.$PSCP.'" -P '.$sshport.' -r -pw '.$sshpwd.' "'.$lfile.'" '.$sshuser.'@'.$sshhost.':'.$rfile."\n"; + my $cmd = '"'.$PSCP.'" -P '.$sshport.' -r -pw '.$sshpwd.' "'.$lfile.'" '.$sshuser.'@'.$sshhost.':'.$rfile; + my $res = `$cmd`; + print $res."\n"; +} \ No newline at end of file diff --git a/bin/clr_convert.pl b/bin/clr_convert.pl new file mode 100644 index 0000000..137eb86 --- /dev/null +++ b/bin/clr_convert.pl @@ -0,0 +1,55 @@ +#!C:\Strawberry\perl\bin\perl.exe +use strict; +use File::Basename; +use Getopt::Long; + +use lib ('lib'); +use JSON::PP; +use audio; +my $sourcepath = ""; +my $cfgfile =""; +my $cfg = {}; +GetOptions("file|f=s" => \$sourcepath,"config|c=s" => \$cfgfile); +if (! -e $sourcepath ){ + print "file '$sourcepath' not found!\n"; + exit(1); +} +if (! -e $cfgfile ){ + print "config '$cfgfile' not found!\n"; + exit(1); +} +open(CFG,$cfgfile); +my $strcfg = ""; +while (my $l = ){ + $strcfg .= $l; +} +close(CFG); +my $au = audio->new(); +print $strcfg; +$cfg = JSON::PP::decode_json($strcfg); +my $outfilename = basename($sourcepath); +my $subpath = basename(dirname($sourcepath)); +$outfilename = substr($outfilename,0,rindex($outfilename,'.')).'.'.$cfg->{converter}->{outputtype}; +$outfilename = $cfg->{converter}->{outpath}.'/'.$subpath.'/'.$outfilename; +if (-e $outfilename){ + unlink($outfilename); +} + + print "Convert ".$sourcepath."\n"; + print "TO: ".$cfg->{converter}->{outpath}.'/'.$subpath.'/'.basename($outfilename); + my $converted = $au->convert($sourcepath, + $cfg->{converter}->{outpath}.'/'.$subpath.'/', + basename($outfilename), + $cfg->{converter}->{id3}, + $cfg->{converter}->{outputtype}, + $cfg->{converter}->{gain}, + $cfg->{converter}->{bitrate}, + $cfg->{converter}->{samplerate}, + $cfg->{converter}->{cutsilence}); +if ($converted ne ""){ + print "file converted: ".$outfilename.'!'."\n"; +}else { + print "file not converted!\n"; +} + +print "Normal End!\n"; diff --git a/bin/clr_install.pl b/bin/clr_install.pl new file mode 100644 index 0000000..3b3f387 --- /dev/null +++ b/bin/clr_install.pl @@ -0,0 +1,215 @@ +#!C:\perl\bin\perl.exe +use strict; +use utf8; +use Getopt::Long; +use File::Basename; +use Data::Dumper; +use Net::CIDR; +use Net::Ping; +#use lib (dirname($0).'/'); +#use dblite; +my $ip = "raspberrypi"; +my $platform = ""; +my $cfgpath = ""; +my $help=0; +my $stationname = ""; +my $PSCP=dirname($0)."\\tools\\PSCP.EXE"; +my $PLINK=dirname($0)."\\tools\\PLINK.EXE"; +#my $dbfile="C:\\Users\\ksaff\\Workspace\\Coloradio\\data\\POSDABAudio.sqlite"; + +my $stationcfg="D:\\Workspace\\Apps\\Coloradio\\data"; +#my $vpncfg="C:\\Users\\ksaff\\DKS\\projects\\VPN"; + +my $sshuser="pi"; +my $sshpwd="raspberry"; +my $installlog="D:\\Workspace\\Apps\\Coloradio\\rpiinstall.log"; +my $baseinstall = 1; +my $playerinstall = 1; +my $setbaseconfig = 1; +my $reconfig = 0; +GetOptions("station|st=s" => \$stationname , + "host|h=s"=> \$ip); +#-st aral-hoscheiddickt -ip -pi- bi +my $ping = Net::Ping->new(); +$ping->service_check(1); +$ping->port_number([22]); +my $pres = $ping->ping($ip); +if ($pres eq ""){ + print "cannot find $ip\n"; + exit(1); +} +my $arch = ""; + + #print "enable root SSH-Login!\n"; + &sendcmd('sudo sed -i \'s/#PermitRootLogin prohibit-password/PermitRootLogin yes/\' /etc/ssh/sshd_config'); + &sendcmd('sudo service ssh restart'); + &sendcmd('echo \'echo -e \"mai5ia7a\nmai5ia7a\" | sudo -S passwd\' > tmp.sh && bash tmp.sh && rm tmp.sh'); + + #exit(0); + print "Base install root activated\n"; + $sshuser="root"; + $sshpwd="mai5ia7a"; + $arch = &sendcmd('uname -m'); + #CONFIGURE BASICS + print "install Basics!\n"; + &sendcmd('update-rc.d "ssh" enable'); + &sendcmd('groupadd dks'); + &sendcmd('useradd dks -c DKS -g dks -G adm,sudo,audio -s /bin/bash -d /home/dks'); + &sendcmd('echo \'echo -e \"sai4seip\nsai4seip\" | passwd dks\' > tmp.sh && bash tmp.sh && rm tmp.sh'); + &sendcmd('mkdir -p /home/dks'); + &sendcmd('chown dks:dks /home/dks'); + &sendcmd('userdel pi'); + &sendcmd('rm -r /home/pi'); + &sendcmd('groupadd posdab'); + &sendcmd('mkdir -p /home/posdab'); + &sendcmd('useradd posdab -c POSDAB -g posdab -G audio -s /bin/bash -d /home/posdab'); + &sendcmd('echo \'echo -e \"sai4seip\nsai4seip\" | passwd posdab\' > tmp.sh && bash tmp.sh && rm tmp.sh'); + &sendcmd('chown posdab:posdab /home/posdab'); + &sendcmd('cp /usr/share/zoneinfo/Europe/Luxembourg /etc/localtime'); + &sendcmd('sed -i \'s/XKBLAYOUT="gb"/XKBLAYOUT="de"/\' /etc/default/keyboard'); + # + &sendcmd('echo \'pcm.!default {\' > /etc/asound.conf'); + &sendcmd('echo \' type hw\' >> /etc/asound.conf'); + &sendcmd('echo \' card 1\' >> /etc/asound.conf'); + &sendcmd('echo \'}\' >> /etc/asound.conf'); + &sendcmd('echo \'ctl.!default {\' >> /etc/asound.conf'); + &sendcmd('echo \' type hw\' >> /etc/asound.conf'); + &sendcmd('echo \' card 1\' >> /etc/asound.conf'); + &sendcmd('echo \'}\' >> /etc/asound.conf'); + #GET TYPE +# my $arch = &sendcmd('uname -a | grep armv7l'); + #if ($arch eq "armv7l"){ + # print "Arch = RPI3\n"; + # print "disable Bluetooth & Wifi\n"; + &sendcmd('echo "#wifi" > /etc/modprobe.d/raspi-blacklist.conf'); + &sendcmd('echo "blacklist brcmfmac" >> /etc/modprobe.d/raspi-blacklist.conf'); + &sendcmd('echo "blacklist brcmutil" >> /etc/modprobe.d/raspi-blacklist.conf'); + &sendcmd('echo "#bt" >> /etc/modprobe.d/raspi-blacklist.conf'); + &sendcmd('echo "blacklist btbcm" >> /etc/modprobe.d/raspi-blacklist.conf'); + &sendcmd('echo "blacklist hci_uart" >> /etc/modprobe.d/raspi-blacklist.conf'); + #} +# else { +# print "Arch = RPI2 or B+"; +# } + #INSTALL MISSING APPS + &sendcmd('apt-get update'); + if ($arch eq "x86_64"){ + &sendcmd('apt-get install -y sqlite3 wget vorbis-tools perl openvpn libdbi-perl libdbd-sqlite3-perl unzip alsa-tools alsa-utils gstreamer1.0 gstreamer1.0-alsa gstreamer1.0-plugins-good gstreamer1.0-tools'); + } else { + &sendcmd('apt-get install -y sqlite3 wget vorbis-tools perl openvpn libdbi-perl libdbd-sqlite3-perl ntfs-3g gstreamer1.0-tools gstreamer1.0-alsa gstreamer1.0-plugins-good'); + } + &sendcmd('apt-get purge -y man-db'); + + + # &sendcmd('ln -s /usr/bin/ogginfo /usr/local/bin/ogginfo'); + # &sendcmd('ln -s /usr/bin/ogg123 /usr/local/bin/ogg123'); + + $sshuser="root"; + $sshpwd="mai5ia7a"; + &transferfile($stationcfg."\\instoreplayer\\instoreplayer.zip",'/home/dks/instoreplayer.zip'); + &sendcmd('cd / && unzip -o /home/dks/instoreplayer.zip'); + &sendcmd('chmod +x /opt/posdab/bin/posdabd.pl'); + &sendcmd('chmod +x /opt/posdab/bin/checkposdab.sh'); + &sendcmd('chmod +x /opt/posdab/bin/player.sh'); + &sendcmd('chmod +x /etc/init.d/posdabd'); + &sendcmd('chmod +x /opt/posdab/bin/ftpclient.pl'); + &sendcmd('chmod +x /opt/posdab/bin/setvolume.sh'); + &sendcmd('update-rc.d "posdabd" defaults'); + + $sshuser="root"; + $sshpwd="mai5ia7a"; + + #SET HOSTNAME + &sendcmd('sed -i "s/raspberrypi/'.$stationname.'/" /etc/hosts'); + &sendcmd('echo "'.$stationname.'" > /etc/hostname'); + #on stretch use: + &sendcmd('hostnamectl set-hostname '.$stationname); + # &sendcmd('/etc/init.d/hostname.sh'); + print "readconfig ".$stationname."\n"; + if (-e $stationcfg."/network/".$stationname.".txt"){ + my $stdata = (); + open(CFG,$stationcfg."/network/".$stationname.".txt"); + while (my $l = ){ + chomp($l); + my ($k,$v) = $l =~ m/^(.+)=(.+)$/; + $stdata->{$k} = $v; + } + close(CFG); + print Dumper($stdata); + if ($stdata->{networktype} eq "static"){ + #if ($arch ne "x86_64"){ + print "is static content!\n"; + + &sendcmd('echo \'#interface eth0\' >> /etc/dhcpcd.conf'); + &sendcmd('echo \'#static ip_address='.$stdata->{networkip}.substr(Net::CIDR::addrandmask2cidr($stdata->{networkip}, $stdata->{networksubnet}),-3).'\' >> /etc/dhcpcd.conf'); + &sendcmd('echo \'#static routers='.$stdata->{networkgateway}.'\' >> /etc/dhcpcd.conf'); + &sendcmd('echo \'#static domain_name_servers='.$stdata->{networkdns1}.'\' >> /etc/dhcpcd.conf'); + #&sendcmd('echo \'static domain_search=fritz.box\' >> /etc/dhcpcd.conf'); + #} + } + #else { +# &sendcmd('echo \'auto lo eth0\' >> /etc/network/interfaces'); +# &sendcmd('echo \'iface lo inet loopback\' >> /etc/network/interfaces'); +# &sendcmd('echo \'iface eth0 inet static\' >> /etc/network/interfaces'); +# &sendcmd('echo \'address '.$stdata->{0}->{networkip}.'\' >> /etc/network/interfaces'); +# &sendcmd('echo \'netmask '.$stdata->{0}->{networksubnet}.'\' >> /etc/network/interfaces'); +# &sendcmd('echo \'gateway '.$stdata->{0}->{networkgateway}.'\' >> /etc/network/interfaces'); +# &sendcmd('echo \'dns-nameservers '.$stdata->{0}->{networkdns1}.'\' >> /etc/network/interfaces'); +# &sendcmd('echo \'#allow-hotplug eth0\' >> /etc/network/interfaces'); +# &sendcmd('echo \'#iface eth0 inet dhcp\' >> /etc/network/interfaces'); +# &sendcmd('echo \'#iface eth0 inet6 auto\' >> /etc/network/interfaces'); + + #&sendcmd('sed -i \'s/posdab.dks.lu/148.251.15.48/\' /etc/openvpn/client.conf'); + #} + + } else { + print "NO config ".$stationcfg."/network/".$stationname.".txt found!"; + } + #install OPENVPN + if (-e $stationcfg."\\vpn\\DKS-VPN-".$stationname.".ovpn"){ + &transferfile($stationcfg."\\vpn\\DKS-VPN-".$stationname.".ovpn",'/home/dks/'); + &sendcmd('cp -r /home/dks/DKS-VPN-'.$stationname.'.ovpn /etc/openvpn/DKS-VPN-'.$stationname.'.conf'); + &sendcmd('systemctl enable openvpn@DKS-VPN-'.$stationname); + #[system_default_sect] +#MinProtocol = TLSv1.2 +#CipherString = DEFAULT@SECLEVEL=2 + &sendcmd('update-rc.d "openvpn" defaults'); + } + else { + print "NO config ".$stationcfg."/vpn/DKS-VPN-".$stationname.".ovpn found!"; + } + + &sendcmd('sed -i \'s/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/\' /etc/sysctl.conf'); + &sendcmd('sysctl -p'); + + &sendcmd('update-rc.d "ssh" defaults'); + # } +# } + + + +sub sendcmd(){ + my $rcmd = shift; + print "Send: ".$rcmd."\n"; + my $cmd = '"'.$PLINK.'" -pw '.$sshpwd.' '.$sshuser.'@'.$ip.' "'.$rcmd.'" '; + my $res = `$cmd`; + print "~: ".$res."\n"; + return $res; +} + +sub transferfile(){ + my $lfile = shift; + my $rfile = shift; + print "Send: ".'"'.$PSCP.'" -r -pw '.$sshpwd.' "'.$lfile.'" '.$sshuser.'@'.$ip.':'.$rfile."\n"; + my $cmd = '"'.$PSCP.'" -r -pw '.$sshpwd.' "'.$lfile.'" '.$sshuser.'@'.$ip.':'.$rfile; + my $res = `$cmd`; + print $res."\n"; +} + +#sub sendcmdsfromfile(){ +# my $file = shift; +# my $cmd = '"C:\\Tools\\PLINK.EXE" -v -m "'.$file.'" -pw '.$sshpwd.' '.$sshuser.'@'.$ip; +# my $res = `$cmd`; +# +# print "~: ".$res."\n"; +#} diff --git a/bin/clr_playlists.pl b/bin/clr_playlists.pl new file mode 100644 index 0000000..ad4ec0b --- /dev/null +++ b/bin/clr_playlists.pl @@ -0,0 +1,531 @@ +#!C:\Strawberry\perl\bin\perl.exe + +use strict; +use Getopt::Long; +use File::Basename; +use JSON::PP; +use File::Copy; +use Time::Local; +use Data::Dumper; +use POSIX; +use lib (dirname($0).'/lib'); +use lib ("C:/Users/ksaff/Workspace/Coloradio/Tools/lib"); +use audio; +use sqlite; +use File::Path qw(make_path); +use Archive::Tar; +my $configfile = "C:\\Users\\ksaff\\Workspace\\Coloradio\\Coloradio\\exports\\ARAL Stream\\streamdata2.json"; +my $datefrom=""; +my $dateto=""; +my $schedulename="ARAL Schedule"; +my $streamname=""; +my $rotationdef= (); +my $musiclists= (); +my $musiclistlimit = 100; +my $streamident=""; +my $overlapseconds= 86400; +my $rotblocktime = 600; +my $onlymissing = 1; +my $debug = 1; +my $db = undef; +my $action = "pack"; +my $playlistpath = "C:\\Users\\ksaff\\Workspace\\Coloradio\\exports\\playlists"; +my $exportpath = "C:\\Users\\ksaff\\Workspace\\Coloradio\\exports"; +GetOptions ("config|c=s" => \$configfile , "action|a=s" => \$action); + +# if (! -f $configfile){ +# print "No config found!\n"; +# exit(1); +# } + +#load the config + +my $cfg = &readconfig($configfile); +#$cfg->{options}->{section} = 'Playlists'; #Audio, PlaylistsPack,AudioPack +$cfg->{options}->{logfile} = dirname($configfile).'/'.¤t_date().'_coloradio_publish.log'; + +# $cfg->{playlists}->{datefrom} ='2018-12-10'; +# $cfg->{playlists}->{dateto} ='2018-12-25'; + + +if ($action eq "checkaudio"){ + # my $sname = $cfg->{playlists}->{Stream}; + # $sname =~ s/\s/\_/g; + # my $dbname = dirname($configfile).'/'.$sname.'.sqlite'; + # my $db = sqlite->new($dbname); + foreach my $cur_au (@{$cfg->{audio}}){ + my $outfilename = basename($cur_au->{sourcepath}); + $outfilename = substr($outfilename,0,rindex($outfilename,'.')).'.'.$cfg->{converter}->{outputtype}; + $outfilename = $cfg->{converter}->{outpath}.$cur_au->{subpath}.'/'.$outfilename; + if (! -e $cur_au->{sourcepath}){ + print "Source-File: ".$cur_au->{sourcepath}." does not exist!\n"; + } + if (! -e $outfilename){ + print "Out-File: ".$outfilename." does not exist!\n"; + } + } +} +elsif ($action eq "updatedb" ){ + &update_database(); +} +elsif ($action eq "generate"){ + #TODO: Create Database if not exists + #UPDATE DATA in database + + my $sname = $cfg->{playlists}->{Stream}; + $sname =~ s/\s/\_/g; + my $dbname = dirname($configfile).'/'.$sname.'.sqlite'; + $db = sqlite->new($dbname); + &writelog("PLAYLIST","Using Database ".$dbname); + #my $scheds = $db->dbquerysorted("select schedulename from schedule"); + + #foreach my $sch (keys(%{$scheds})){ + my $cdt = &getunixdatetime(¤t_date()." 00:00:00"); + my $udf = $cdt; + my $udt = $cdt; + + if (exists($cfg->{playlists}->{datefrom})){ + $udf = &getunixdatetime($cfg->{playlists}->{datefrom}." 00:00:00"); + } + if (exists($cfg->{playlists}->{dateto})){ + $udt = &getunixdatetime($cfg->{playlists}->{dateto}." 00:00:00"); + } + $cdt = $udf; + my $cschedule = $cfg->{playlists}->{Stream}; + &writelog("PLAYLIST","Start Creating playlists from ".substr(&getdatetime($udf),0,10)." to ".substr(&getdatetime($udt),0,10)." for Schedule ".$cschedule); + + +# if ($scheds->{$sch}->{datefrom} gt ¤t_date()){ +# $cdt = &getunixdatetime($scheds->{$sch}->{datefrom}." 00:00:00"); +# } +# if ($scheds->{$sch}->{dateto} lt $cfg->{playlists}->{dateto}){ +# $udt = &getunixdatetime($scheds->{$sch}->{dateto}." 00:00:00"); +# } + $db->dbexec("DELETE from playlist where plistname >='".substr(&getdatetime($cdt),0,10)."' and plistname <= '".substr(&getdatetime($udt),0,10)."' and streamname = '".$cschedule."';"); + + while ($cdt <= $udt){ + my $shortdate = substr(&getdatetime($cdt),0,10); + &writelog("PLAYLIST","Create Playlist for DATE ".$shortdate); + $rotationdef = &getdayrotationdef($shortdate,$cschedule); + my $mids = (); + foreach my $e (sort {$a <=> $b} keys(%{$rotationdef})){ + my $crot = $rotationdef->{$e}; + my @cats = @{$crot->{categories}}; + #print localtime.": Start at ".$crot->{timefrom}."\n"; + #get first cat + my $timetofill = &getunixdatetime($shortdate." ".$crot->{timeend}.':00')-&getunixdatetime($shortdate." ".$crot->{timebegin}.':00'); + if ($crot->{timeend} <= $crot->{timefrom}){ + $timetofill += 86400; + } + my $ctime = 0; + my $cpos = 0; + my @audiolist = (); + while ($ctime < $timetofill){ + for (my $c=0;$c".$cats[$c]."\n"; + if (!exists($musiclists->{$cats[$c]}) || scalar(@{$musiclists->{$cats[$c]}}) == 0){ + if (scalar(@audiolist) > 0){ + $db->dbexec("INSERT INTO playlist (plistname,plposition,streamname,idmusic) VALUES ".join(",",@audiolist)); + @audiolist=(); + } + #print "get next music category data ".$cats[$c]."\n"; + &getmusiclist($cats[$c],$shortdate,$musiclistlimit); + } + my $data = shift(@{$musiclists->{$cats[$c]}}); + #my $checksql = "select idmusic from playlist where idmusic='".$data->{idmusic}."' and plistname='".$shortdate."' and streamname='".$schedulename."';"; + #my $rxx = $db->dbquerysorted($checksql); + if (!exists($mids->{$data->{idmusic}})){ + push(@audiolist,"('".$shortdate."',".$cpos.",'".$cschedule."','".$data->{idmusic}."')"); + $cpos++; + $ctime += $data->{duration}; + $mids->{$data->{idmusic}} = ""; + } + } + } + $db->dbexec("INSERT INTO playlist (plistname,plposition,streamname,idmusic) VALUES ".join(",",@audiolist)); + } + + #print Dumper($rdef); + $cdt = $cdt+86400; + } +} +elsif ($action eq "export"){ + my $cdt = &getunixdatetime(¤t_date()." 00:00:00"); + my $udf = $cdt; + my $udt = $cdt; + if (exists($cfg->{playlists}->{datefrom})){ + $udf = &getunixdatetime($cfg->{playlists}->{datefrom}." 00:00:00"); + } + if (exists($cfg->{playlists}->{dateto})){ + $udt = &getunixdatetime($cfg->{playlists}->{dateto}." 00:00:00"); + } + $cdt = $udf; + my $sname = $cfg->{playlists}->{Stream}; + &writelog("EXPORT","Start export of playlists from ".substr(&getdatetime($udf),0,10)." to ".substr(&getdatetime($udt),0,10)." for Schedule ".$sname); + + $sname =~ s/\s/\_/g; + my $dbname = dirname($configfile).'/'.$sname.'.sqlite'; + $db = sqlite->new(dirname($configfile).'/'.$sname.'.sqlite'); + my $ploutpath = dirname($configfile).'/playlists/'; + while ($cdt <= $udt){ + my $shortdate = substr(&getdatetime($cdt),0,10); + &writelog("EXPORT","Export Playlist for DATE ".$shortdate); + my $scheds = $db->dbquerysorted("select distinct(streamname) as schedule from playlist where plistname='".$shortdate."'"); + foreach my $s (keys(%{$scheds})){ + if (! -d $ploutpath.'/'.$scheds->{$s}->{schedule}){ + make_path($ploutpath.'/'.$scheds->{$s}->{schedule}); + } + print "Export for schedule: ".$scheds->{$s}->{schedule}."\n"; + my $dpl = $db->dbquerysorted("select rm.idmusic,rm.category,rm.filename,rm.duration,rm.artist,rm.title,pl.streamname from playlist pl left join music rm on (pl.idmusic=rm.idmusic) where pl.plistname='".$shortdate."' and pl.streamname='".$scheds->{$s}->{schedule}."' order by pl.plposition"); + open(PLX,">".$ploutpath.'/'.$scheds->{$s}->{schedule}.'/'.$shortdate.'.m3u'); + foreach my $r (sort {$a <=> $b} keys(%{$dpl})){ + print PLX $dpl->{$r}->{category}.'/'.$dpl->{$r}->{filename}.'|'.$dpl->{$r}->{duration}.'|'.$dpl->{$r}->{artist}.'|'.$dpl->{$r}->{title}."\n"; + } + close(PLX); + } + + $cdt = $cdt+86400; + } + print "Playlists exported to: ".$ploutpath."\n"; +} + +# if ($cfg->{options}->{section} =~ /Receivers/){ +# if (-e $exportpath.'/stationaudiodata.json'){ +# my $receiverjson = &readconfig($exportpath.'/stationaudiodata.json'); + +# foreach my $r (keys (%{$receiverjson->{receiver}})){ +# &writelog("RECEIVER","new playlists for receiver ".$r.""); +# my $adgroup = $receiverjson->{receiver}->{$r}->{adgroup}; +# my @rads = (); +# foreach my $ad (keys (%{$receiverjson->{ads}})){ +# my @xadgroups = split(",",$receiverjson->{ads}->{$ad}->{adGroups}); +# my @r = grep(/$adgroup/,@xadgroups); +# if (scalar(@r) > 0){ +# push(@rads,$ad); +# } +# } +# $receiverjson->{receiver}->{$r}->{ads} = \@rads; +# if (-d $exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/playlists'){ +# opendir(SCHED,$exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/playlists'); +# while (my $sched = readdir(SCHED)){ +# if ($sched =~ /^\./){ next;} +# if (! -d $exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/playlists/'.$sched){next;} +# &writelog("RECEIVER","receiver ".$r." schedule ".$sched); +# if (! -d $exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r){ +# make_path($exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r); +# } +# if (! -d $exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r.'/playlists'){ +# make_path($exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r.'/playlists'); +# } +# if (! -d $exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r.'/playlists/new'){ +# make_path($exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r.'/playlists/new'); +# } +# if (! -d $exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r.'/playlists/new/'.$sched){ +# make_path($exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r.'/playlists/new/'.$sched); +# } +# opendir(PLDS,$exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/playlists/'.$sched); +# while (my $pl = readdir(PLDS)){ +# if ($pl =~ /^\d\d\d\d-\d\d-\d\d\.m3u$/){ +# &writelog("RECEIVER","receiver ".$r." schedule ".$sched." playlist ".$pl); +# open(PL,$exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/playlists/'.$sched.'/'.$pl); +# open(PLN,">".$exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r.'/playlists/new/'.$sched.'/'.$pl); +# my $adrot = undef; +# my @ads = @{$receiverjson->{receiver}->{$r}->{ads}}; +# my $cadpos = 0; +# if (scalar(@ads) > 0){ +# $adrot = $receiverjson->{receiver}->{$r}->{adrotation}; +# } + +# while (my $l = ){ + +# print PLN $l; +# if (defined($adrot)){ +# if ($adrot == 0){ +# my $outfilename = substr($receiverjson->{ads}->{$ads[$cadpos]}->{filename},0,rindex($receiverjson->{ads}->{$ads[$cadpos]}->{filename},'.')).$cfg->{converter}->{outputtype}; +# print PLN $receiverjson->{ads}->{$ads[$cadpos]}->{subpath}.'/'.$outfilename.'|'.$receiverjson->{ads}->{$ads[$cadpos]}->{duration}.'|'.$receiverjson->{ads}->{$ads[$cadpos]}->{artist}.'|'.$receiverjson->{ads}->{$ads[$cadpos]}->{title}."\n"; +# $cadpos++; +# if ($cadpos >= scalar(@ads)){ +# $cadpos = 0; +# } +# $adrot = $receiverjson->{receiver}->{$r}->{adrotation}; +# }else { +# $adrot--; +# } +# } +# } +# close(PLN); +# close(PL); +# } +# } +# close(PLDS); +# } +# closedir(SCHED); +# } +# } +# } +# } +elsif ($action eq "pack"){ + #my $ploutpath = dirname($configfile); + my $sname = $cfg->{playlists}->{Stream}; + my $snamepath = $sname; + $sname =~ s/\s/\_/g; + my $ploutpath = dirname($configfile).'/playlists'; + # my $dbname = dirname($configfile).'/'.$sname.'.sqlite'; + # $db = sqlite->new($dbname); + # &writelog("PACK","Using Database ".$dbname); + #my $scheds = $db->dbquerysorted("select schedulename from schedule;"); + #foreach my $s (keys(%{$scheds})){ + &writelog("PACK","Pack playlist schedule ".$sname.""); + chdir($ploutpath.'/'.$snamepath); + my $tar = Archive::Tar->new; + my @files = (); + opendir(PLDIR,$ploutpath.'/'.$snamepath); + + while (my $m3u = readdir(PLDIR)){ + print $m3u."\n"; + if ($m3u =~ /\.m3u$/){ + push(@files,$m3u); + } + } + print Dumper(@files); + closedir(PLDIR); + $tar->add_files(@files); + foreach my $x (@files){ + $tar->rename($x,'radio/playlists/'.$x); + } + my @time = gmtime(); + my $date = strftime("%Y%m%d",@time); + $tar->write( $ploutpath.'/'.$sname.'_'.$date.'.tgz', COMPRESS_GZIP ); + print $ploutpath.'/'.$sname.'_'.$date.'.tgz created!'."\n"; + #} + # if (-e $exportpath.'/stationaudiodata.json'){ + # my $receiverjson = &readconfig($exportpath.'/stationaudiodata.json'); + # my $sched='ARAL Schedule'; + # foreach my $r (keys (%{$receiverjson->{receiver}})){ + # if (-d $exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r.'/playlists/new/'.$sched){ + # &writelog("PACK","Pack playlists for receiver ".$r.""); + # &writelog("PACK","receiver playlistpath: ".$receiverjson->{receiver}->{$r}->{playlistpath}.""); + # chdir($exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r.'/playlists/new/'.$sched); + # my $tar = Archive::Tar->new; + # my @files = (); + # opendir(PLDIR,$exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r.'/playlists/new/'.$sched); + + # while (my $m3u = readdir(PLDIR)){ + # if ($m3u =~ /\.m3u$/){ + # push(@files,$m3u); + # } + # } + # closedir(PLDIR); + # $tar->add_files(@files); + # foreach my $x (@files){ + # $tar->rename($x,$receiverjson->{receiver}->{$r}->{playlistpath}.'/'.$x); + # } + # $tar->write( $exportpath.'/'.$receiverjson->{receiver}->{$r}->{stream}.'/receivers/'.$r.'.tbz', COMPRESS_GZIP ); + # } + # } + # } +} +&writelog("APP","Normal End!"); + + +sub getunixdatetime(){ + #YYYY-MM-DD HH:MI:SS + my $dt = shift; + #print $dt."\n"; + my $y1 = substr($dt,0,4); + my $m1 = substr($dt,5,2); + my $d1 = substr($dt,8,2); + my $h1 = substr($dt,11,2); + my $mn1 = substr($dt,14,2); + my $s1 = substr($dt,17,2); + my $utime = timelocal($s1,$mn1,$h1,$d1,$m1-1,$y1); + return $utime; +} +# +sub getdatetime(){ + my $utime = shift; + my @cdate = localtime($utime); + $cdate[5] = $cdate[5] +1900; + $cdate[4] = $cdate[4] +1; + if ($cdate[4] < 10){$cdate[4] = '0'.$cdate[4];} + if ($cdate[3] < 10){$cdate[3] = '0'.$cdate[3];} + if ($cdate[2] < 10){$cdate[2] = '0'.$cdate[2];} + if ($cdate[1] < 10){$cdate[1] = '0'.$cdate[1];} + if ($cdate[0] < 10){$cdate[0] = '0'.$cdate[0];} + my $cmpdate = $cdate[5].'-'.$cdate[4].'-'.$cdate[3].' '.$cdate[2].':'.$cdate[1].':'.$cdate[0]; + return $cmpdate; +} + +sub current_date(){ + my @cdate = localtime(); + $cdate[5] = $cdate[5] +1900; + $cdate[4] = $cdate[4] +1; + if ($cdate[4] < 10){$cdate[4] = '0'.$cdate[4];} + if ($cdate[3] < 10){$cdate[3] = '0'.$cdate[3];} + my $cmpdate = $cdate[5].'-'.$cdate[4].'-'.$cdate[3]; + return $cmpdate; +} + +sub current_datetime(){ + my @cdate = localtime(); + $cdate[5] = $cdate[5] +1900; + $cdate[4] = $cdate[4] +1; + if ($cdate[4] < 10){$cdate[4] = '0'.$cdate[4];} + if ($cdate[3] < 10){$cdate[3] = '0'.$cdate[3];} + if ($cdate[2] < 10){$cdate[2] = '0'.$cdate[2];} + if ($cdate[1] < 10){$cdate[1] = '0'.$cdate[1];} + if ($cdate[0] < 10){$cdate[0] = '0'.$cdate[0];} + my $cmpdate = $cdate[5].'-'.$cdate[4].'-'.$cdate[3].' '.$cdate[2].':'.$cdate[1].':'.$cdate[0]; + return $cmpdate; +} +# +sub getweekday(){ + my $dt = shift; #YYYY-MM-DD + my $y1 = substr($dt,0,4); + my $m1 = substr($dt,5,2); + my $d1 = substr($dt,8,2); + my $utime = timelocal(0,0,0,$d1,$m1-1,$y1); + my @cdate = localtime($utime); + my @awday = qw( Sun Mon Tue Wed Thu Fri Sat ); + return $awday[$cdate[6]] +} +# +sub getdayrotationdef(){ + my $strdate = shift; + my $schedulename = shift; + my $rotdef = (); + my $cnt = 0; + # do we have a schedule? + my $sql = "select * from schedule where weekday = '".&getweekday($strdate)."';"; + my $dayrot = $db->dbquerysorted($sql); + if (keys(%{$dayrot}) > 0){ + foreach my $i (sort {$a<=>$b} keys(%{$dayrot})){ + $sql = "select * from rotation where rotation='".$dayrot->{$i}->{rotation}."' order by position;"; + my $hrot = $db->dbquerysorted($sql); + my $trange ={"timefrom" => $dayrot->{$i}->{start}, "timeto" => $dayrot->{$i}->{end}}; + my @rot = (); + foreach my $p (sort {$a<=>$b} keys(%{$hrot})){ + push(@rot,$hrot->{$p}->{owncategory}); + } + $trange->{categories} = \@rot; + $rotdef->{$cnt} = $trange; + $cnt++; + } + } + + return $rotdef; +} +# +sub getmusiclist(){ + my $owncat = shift; + my $date = shift; + my $limit = shift; + + # for Postgresql: + #my $msql = "select rrm.idmusic,rrm.duration from ( + #select mc.idmusic,bb.lastplayed,random() as rand from musicowncategory mc left join (select max(maxxx) as lastplayed,idmusic from (select pl.plistname::TEXT || '_' || pl.plposition::TEXT as maxxx,pl.idmusic from playlist pl left join rotationmusic rm on (rm.idmusic=pl.idmusic) where pl.idmusic in (select idmusic from musicowncategory where idowncategory='".$owncat."') and plistname <'".$date."') aa group by idmusic) bb on (mc.idmusic=bb.idmusic) where mc.idowncategory='".$owncat."' order by bb.lastplayed ASC NULLS FIRST LIMIT ".$limit.") cc left join rotationmusic rrm on (rrm.idmusic=cc.idmusic) order by cc.rand;"; + #for sqlite + my $msql = "select rrm.idmusic,rrm.duration from ( select mc.idmusic,bb.lastplayed,random() as rand + from music mc left join (select max(maxxx) as lastplayed,idmusic from (select pl.plistname || '_' || pl.plposition as maxxx,pl.idmusic from playlist pl left join music rm on (rm.idmusic=pl.idmusic) where pl.idmusic in (select idmusic from music where owncategory='".$owncat."') and plistname <'".$date."') aa group by idmusic) bb on (mc.idmusic=bb.idmusic) where mc.owncategory='".$owncat."' order by bb.lastplayed ASC LIMIT 100) cc left join music rrm on (rrm.idmusic=cc.idmusic) order by cc.rand;"; + # my $msql = "select rrm.idmusic,rrm.duration from ( + # select mc.idmusic,bb.lastplayed,random() as rand from musicowncategory mc left join (select max(maxxx) as lastplayed,idmusic from (select pl.plistname || '_' || pl.plposition as maxxx,pl.idmusic from playlist pl left join rotationmusic rm on (rm.idmusic=pl.idmusic) where pl.idmusic in (select idmusic from musicowncategory where idowncategory='".$owncat."') and plistname <'".$date."') aa group by idmusic) bb on (mc.idmusic=bb.idmusic) where mc.idowncategory='".$owncat."' order by bb.lastplayed ASC LIMIT ".$limit.") cc left join rotationmusic rrm on (rrm.idmusic=cc.idmusic) order by cc.rand;"; + my @mxdata = $db->dbqueryarray($msql); + $musiclists->{$owncat} = \@mxdata; + # + #return @data; +} +# +sub readconfig(){ + my $file = shift; + my $strjson = ""; + open(CFG,$file); + while (my $l = ){ + $strjson .= $l; + } + close(CFG); + return JSON::PP::decode_json($strjson); +} + +sub writelog(){ + my $section = shift; + my $msg = shift; + my $logrow = ¤t_datetime().':'.$section.':'.$msg."\n"; + if ($debug == 1){ + print $logrow; + } + if (exists($cfg->{options}->{logfile})){ + open(LOG,">>".$cfg->{options}->{logfile}); + print LOG $logrow; + close(LOG); + } + +} + +sub update_database(){ + print localtime()."Update playlist configuration database!\n"; + my $sname = $cfg->{playlists}->{Stream}; + $sname =~ s/\s/\_/g; + my $dbname = dirname($configfile)."\\".$sname.'.sqlite'; + if (! -e $dbname){ + print "$dbname does not exist!\n"; + exit(1); + } + $db = sqlite->new($dbname); + my $schema = $db->dbquerysorted("SELECT * FROM sqlite_master;"); + #print Dumper($schema); + #set audio + print localtime()."set audio!\n"; + my $ocat = (); + my $strsql = ""; + foreach my $cur_au (@{$cfg->{audio}}){ + my $outfilename = basename($cur_au->{sourcepath}); + $outfilename = substr($outfilename,0,rindex($outfilename,'.')).'.'.$cfg->{converter}->{outputtype}; + $outfilename = $cfg->{converter}->{outpath}.$cur_au->{subpath}.'/'.$outfilename; + my $qf = $db->dbquerysorted("select idmusic from music where idmusic=".$cur_au->{id}); + if (!exists($ocat->{$cur_au->{category}})){ + $ocat->{$cur_au->{category}} = 1; + } + if (keys(%{$qf}) > 0){ + #update + $strsql = "update music set owncategory='".$db->strreplace($cur_au->{category})."', sourcepath='".$db->strreplace($outfilename)."',category='".$db->strreplace($cur_au->{subpath})."',duration=".$cur_au->{duration}.",title='".$db->strreplace($cur_au->{title})."',artist='".$db->strreplace($cur_au->{artist})."', filename='".$db->strreplace(basename($outfilename))."' where idmusic=".$cur_au->{id}.";\n"; + } else { + #insert + $strsql = "INSERT INTO music (idmusic,owncategory,sourcepath,filename,category,duration,title,artist) VALUES (".$cur_au->{id}.",'".$db->strreplace($cur_au->{category})."','".$db->strreplace($outfilename)."','".$db->strreplace(basename($outfilename))."','".$db->strreplace($cur_au->{subpath})."',".$cur_au->{duration}.",'".$db->strreplace($cur_au->{title})."','".$db->strreplace($cur_au->{artist})."');\n"; + + } + $db->dbexec($strsql); + + } + print localtime()."set rotation!\n"; + $db->dbexec("delete from rotation;"); + foreach my $r (@{$cfg->{rotations}}){ + #print Dumper($r); + #print keys(%{$r})."\n"; + my @rx = keys(%{$r}); + my @pos = keys(%{$r->{$rx[0]}}); + my $oc = $r->{$rx[0]}->{$pos[0]}; + $db->dbexec("INSERT INTO rotation (rotation,position,owncategory) VALUES ('".$rx[0]."',".$pos[0].",'".$oc."');"); + #$db->dbexec() + } + + print localtime()."set schedules!\n"; + $db->dbexec("delete from schedule;"); + foreach my $s (@{$cfg->{schedules}}){ + # Dumper($s); + #print keys(%{$r})."\n"; + my @wd = keys(%{$s}); + my $rot = $s->{$wd[0]}->{rotation}; + my $start = $s->{$wd[0]}->{begin}; + my $end = $s->{$wd[0]}->{end}; + $wd[0] =~ s/Monday/Mon/; + $wd[0]=~ s/Tuesday/Tue/; + $wd[0] =~ s/Wednesday/Wed/; + $wd[0]=~ s/Thursday/Thu/; + $wd[0] =~ s/Friday/Fri/; + $wd[0] =~ s/Saturday/Sat/; + $wd[0] =~ s/Sunday/Sun/; + $db->dbexec("INSERT INTO schedule (rotation,weekday,start,end) VALUES ('".$rot."','".$wd[0]."','".$start."','".$end."');"); + # + } + print localtime()."DB Update done!\n"; +} diff --git a/bin/clr_tousbdrive.pl b/bin/clr_tousbdrive.pl new file mode 100644 index 0000000..b7007af --- /dev/null +++ b/bin/clr_tousbdrive.pl @@ -0,0 +1,55 @@ +#!C:\Strawberry\perl\bin\perl.exe +use strict; +use strict; +use utf8; +use Getopt::Long; +use File::Basename; +use File::Copy::Recursive; +use File::Path qw/make_path/; +use lib ("./lib"); +use lib ("D:/Workspace/Apps/Coloradio/server/Tools"); +use sqlite; +my $stationname = ""; +my $drive = ""; +GetOptions("station|st=s" => \$stationname , + "d|drive=s"=> \$drive); +make_path($drive.':/audio'); +make_path($drive.':/log'); +make_path($drive.':/live'); +make_path($drive.':/radio'); +#make_path($drive.':/playlists'); +#copy radio data +if (-e $drive.":/radio/station.db"){ + unlink($drive.":/radio/station.db"); +} +my $db = sqlite->new($drive.":/radio/station.db"); +open(SQL,"D:/Workspace/Apps/Coloradio/data/install/".$stationname.".sql"); +my $sqldata = ""; +while (my $l = ){ + chomp($l); + $sqldata .= $l; +} +my @ddl = split(/;/,$sqldata); +close(SQL); +foreach my $s (@ddl){ + print $s.";\n"; + $db->dbexec($s.";"); +} + +#copy playlists +my $cmd = "\"C:\\Windows\\system32\\xcopy.exe\" \"D:\\Workspace\\Apps\\Coloradio\\data\\playlists\\ARAL Schedule\\*.m3u\" \"".$drive.":\\radio\\playlists\\\" /E /Y"; +print $cmd."\n"; +system($cmd); +#copy audio +$cmd = "\"C:\\Windows\\system32\\xcopy.exe\" \"D:\\Music\\converted\\ogg_0_64\\*\" \"".$drive.":\\audio\\\" /E /Y"; +print $cmd."\n"; +system($cmd); +$cmd = "\"C:\\Windows\\system32\\xcopy.exe\" \"D:\\Workspace\\Apps\\Coloradio\\data\\instoreplayer\\ftpclient.pl\" \"".$drive.":\\\" /E /Y"; +print $cmd."\n"; +system($cmd); +$cmd = "\"C:\\Windows\\system32\\xcopy.exe\" \"D:\\Workspace\\Apps\\Coloradio\\data\\instoreplayer\\setvolume.sh\" \"".$drive.":\\\" /E /Y"; +print $cmd."\n"; +system($cmd); + + + diff --git a/bin/cmds.sh b/bin/cmds.sh new file mode 100644 index 0000000..2bd8e7e --- /dev/null +++ b/bin/cmds.sh @@ -0,0 +1,6 @@ +find /mnt/d/Music/converted/ogg_0_64 -type f -name "*.ogg" -ls | sed -e 's/\/mnt\/d\/Music\/converted\/ogg_0_64/\/home\/posdab\/audio/g;' > /mnt/d/Workspace/Apps/Coloradio/data/current_audiolist_full.txt + +find /mnt/d/Music/converted/ogg_0_64 -type f -name "*.ogg" -printf "%p|%s|%T@\n" | sed -e 's/\/mnt\/d\/Music\/converted\/ogg_0_64\///g;' > /mnt/d/Workspace/Apps/Coloradio/data/current_audiolist_full.txt + + +http://localhost:6060/api/audio.cgi?fn=convert&input=Aral-2019-verres-fr.mp3&gain=4&type=ogg&cutsilence=1&samplerate=44100&bitrate=64 diff --git a/bin/coloradiocli.pl b/bin/coloradiocli.pl new file mode 100644 index 0000000..2cd76e7 --- /dev/null +++ b/bin/coloradiocli.pl @@ -0,0 +1,253 @@ +#!C:\Strawberry\perl\bin\perl.exe +use strict; +use LWP::Simple qw(getstore); +use LWP::UserAgent; +use HTTP::Request; +use Data::Dumper; +use File::Basename; +use JSON::PP; +use File::Copy; +use File::Path qw/make_path/; +use Getopt::Long; +use URI::Encode qw(uri_encode uri_decode); +my $uri = URI::Encode->new( { encode_reserved => 1 } ); +my $a = ""; +my $stropt = ""; +my $url = "http://localhost:6060/"; +uri_encode +GetOptions("action|a=s" => \$a,"option|o=s" => \$stropt,"url|u=s" => \$url); +if ($a eq ""){ + print "No action (-a ) defined\n"; + exit(0); +} +my $opt = (); + +my @ropt = (); +if ($stropt ne ""){ + my @ropt = split(";",$stropt); + foreach my $r (@ropt){ + my ($k,$v) = $r =~ m/(\w+)=(.*)/; + $opt->{$k} = $v; + } +} +print Dumper(@ropt); +print Dumper($opt); +if ($a eq "check"){ + my $qinf = "select id,filepath,filename,folder from music;" ; + my $dbinf = &request($url."pgsql",{"type" => "querysorted","sql" => $qinf}); + my $dbdata = $dbinf->{result}->{sqldata}; + foreach my $m (keys(%{$dbdata})){ + if (! -e $opt->{path}.'/'.$dbdata->{$m}->{filepath}){ + print "file ".$opt->{path}.'/'.$dbdata->{$m}->{filepath}." does not exist!\n"; + } + } + print "Convertions!\n"; + my $convcnt = 0; + foreach my $m (keys(%{$dbdata})){ + if (! -e $opt->{convpath}.'/'.substr($dbdata->{$m}->{filepath},0,-3).$opt->{convtype}){ + print "file ".$opt->{convpath}.'/'.substr($dbdata->{$m}->{filepath},0,-3).$opt->{convtype}." does not exist!\n"; + $convcnt++; + } + } + print $convcnt." files NOT converted!\n"; + # if ($dbdata->{$m}->{filepath} eq $dbdata->{$m}->{filename}){ + # print $dbdata->{$m}->{filepath}."\n"; + # if (-e $opt->{path}.'/'.$dbdata->{$m}->{folder}.'/'.substr($dbdata->{$m}->{filename},0,-3).'ogg'){ + # my $updsql = "update music set filepath= '".$dbdata->{$m}->{folder}.'/'.&dbrepl(substr($dbdata->{$m}->{filename},0,-3).'ogg')."' WHERE id=".$dbdata->{$m}->{id}.";"; + # print $updsql."\n"; + # my $dbins = &request($url."pgsql",{"type" => "exec","sql" => $uri->encode($updsql)}); + # } + # } + # elsif ($dbdata->{$m}->{filepath} =~ /^\//){ + # my $fpath = $opt->{path}; + # rename($opt->{path}.$dbdata->{$m}->{filepath},$opt->{path}.'/'.$dbdata->{$m}->{folder}.'/'.basename($dbdata->{$m}->{filepath})); + # my $updsql = "update music set filepath= '".&dbrepl($dbdata->{$m}->{folder}.'/'.basename($dbdata->{$m}->{filepath}))."' WHERE id=".$dbdata->{$m}->{id}.";"; + # my $dbins = &request($url."pgsql",{"type" => "exec","sql" => $updsql}); + # } + # elsif ($dbdata->{$m}->{filepath} =~ /^\\\\home-backup/ ){ + # if (-e $opt->{path}.'/'.$dbdata->{$m}->{folder}.'/'.substr($dbdata->{$m}->{filename},0,-3).'m4a'){ + # my $updsql = "update music set filepath= '".$dbdata->{$m}->{folder}.'/'.&dbrepl(substr($dbdata->{$m}->{filename},0,-3).'m4a')."' WHERE id=".$dbdata->{$m}->{id}.";"; + # my $dbins = &request($url."pgsql",{"type" => "exec","sql" => $updsql}); + # } + + # } + + +} +if ($a eq "import"){ + my $result = &request($url."filesystem/search",$opt); + my $files = $result->{result}; + foreach my $r (@{$files}){ + print "$r\n"; + my $fpath = substr($r,0,1)."/".basename($r); + my $qinf = "select count(*) as cnt from music where filepath='".&dbrepl($r)."';"; + my $dbinf = &request($url."pgsql",{"type" => "querysorted","sql" => $uri->encode($qinf)}); + if ($dbinf->{result}->{sqldata}->{0}->{cnt} eq "0"){ + print "Copy to ".$opt->{importpath}."!\n\n"; + if (! -d dirname($opt->{importpath}.'/'.$fpath)){ + make_path(dirname($opt->{importpath}.'/'.$fpath)); + } + rename($r,$opt->{importpath}.'/'.$fpath); + if (-e $opt->{importpath}.'/'.$fpath){ + $fpath = $opt->{importpath}.'/'.$fpath; + print "DO import!\n\n"; + my $ainfo = &request($url."audio/info",{"file" => $uri->encode($fpath)}); + #print Dumper($ainfo); + my $winfo = &request($url."audio/webinfo",{"title" => $uri->encode($ainfo->{result}->{tag}->{title}),"artist" => $uri->encode($ainfo->{result}->{tag}->{artist})}); + #print Dumper($winfo); + my $sql = "INSERT INTO public.music (filepath, filename, title, artist, filetype, seconds, duration, modified, created, folder, vfolders, \"year\", decade, album, mood, tempo, genre, languages, bitrate, samplerate, filesize, \"comment\", convertions, streams) VALUES('".&dbrepl($fpath)."', '".&dbrepl(basename($fpath))."', '".&dbrepl($ainfo->{result}->{tag}->{title})."', '".&dbrepl($ainfo->{result}->{tag}->{artist})."', '".&dbrepl($ainfo->{result}->{info}->{filetype})."', ".$ainfo->{result}->{info}->{duration}.", TO_CHAR((".$ainfo->{result}->{info}->{duration}." || ' second')::interval, 'HH24:MI:SS')::TIME, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, '".&dbrepl(basename(dirname($r)))."', null, ".$winfo->{result}->{year}.", null, null, ".(($winfo->{result}->{mood} != undef)?"'".JSON::PP::encode_json($winfo->{result}->{mood})."'":'null').", ".(($winfo->{result}->{tempo} != undef)?"'".JSON::PP::encode_json($winfo->{result}->{tempo})."'":'null').", ".(($winfo->{result}->{genre} != undef)?"'".JSON::PP::encode_json($winfo->{result}->{genre})."'":'null').", null, ".$ainfo->{result}->{info}->{bitrate}.", ".$ainfo->{result}->{info}->{samplerate}.", null, null, null, null);"; + # #print $sql."\n"; + my $dbins = &request($url."pgsql",{"type" => "exec","sql" => $uri->encode($sql)}); + } + + } + + + } + # print Dumper($result); + #?path="D:/Music/music/Chillout&type=f&namelist=*.m4a,*.ogg,*.mp3 +} +if ($a eq "webinfo"){ + my $qinf = "select id,title,artist from music where mood is null or tempo is null or genre is null;"; + my $dbinf = &request($url."pgsql",{"type" => "querysorted","sql" => $qinf}); + foreach my $m (keys(%{$dbinf->{result}->{sqldata}})){ + my $t = $dbinf->{result}->{sqldata}->{$m}->{title}; + if ($t =~ /\sfeat.\s/){ + $t = substr($t,0,index($t,"feat")); + } + if ($t =~ /\sft./){ + $t = substr($t,0,index($t," ft")); + } + my $a = $dbinf->{result}->{sqldata}->{$m}->{artist}; + my $winfo = &request($url."audio/webinfo",{"title" => $t,"artist" => $a}); + print Dumper($winfo); + my $sql = "UPDATE public.music set mood=".(($winfo->{result}->{mood} != undef)?"'".JSON::PP::encode_json($winfo->{result}->{mood})."'":'null').",genre=".(($winfo->{result}->{genre} != undef)?"'".JSON::PP::encode_json($winfo->{result}->{genre})."'":'null').",tempo=".(($winfo->{result}->{tempo} != undef)?"'".JSON::PP::encode_json($winfo->{result}->{tempo})."'":'null').",year=".$winfo->{result}->{year}." where id=".$dbinf->{result}->{sqldata}->{$m}->{id}; + my $dbins = &request($url."pgsql",{"type" => "exec","sql" => $sql}); + } +} +if ($a eq "convert"){ + my $qconv = "select convertion from ".$opt->{stream}.".settings where stationname='default'"; + #-o "path=D:/Music/music;stream=colabor" + my $copt = &request($url."pgsql",{"type" => "querysorted","sql" => $qconv}); + $copt = JSON::PP::decode_json($copt->{result}->{sqldata}->{0}->{convertion}); + my $qinf = "select id,filepath,filename,folder,title,artist from music;" ; + my $dbinf = &request($url."pgsql",{"type" => "querysorted","sql" => $qinf}); + my $cnv = $dbinf->{result}->{sqldata}; + my $cnvcount = 0; + my $notfoundcount= 0; + print Dumper($copt); + my $convcnt = 0; + my $fopt = $copt; + my $outpath = $copt->{outpath}; + my @id3tag = split(",",$copt->{id3}); + foreach my $m (keys(%{$cnv})){ + if (! -e $copt->{outpath}.'/'.substr($cnv->{$m}->{filepath},0,-3).$copt->{type}){ + print "file ".$copt->{outpath}.'/'.substr($cnv->{$m}->{filepath},0,-3).$copt->{type}." must be converted!\n"; + $convcnt++; + + my @nid3 = (); + foreach my $t (@id3tag){ + # $nid3->{$t} = ""; + if (exists($cnv->{$m}->{$t})){ + my $v = $cnv->{$m}->{$t}; + $v =~ s/;//g; + push(@nid3,$t.'='.$v); + } + } + $fopt->{id3}=$uri->encode(join(";",@nid3)); + # if (keys(%{$nid3}) > 0){ + # $fopt->{id3} = JSON::PP::encode_json($nid3); + # } else { + # $fopt->{id3} = ''; + # } + + $fopt->{input} = $uri->encode($opt->{path}.'/'.$cnv->{$m}->{filepath}); + $fopt->{outpath} = $uri->encode($outpath.'/'.$cnv->{$m}->{folder}); + print Dumper($fopt); + print "Convert ".$opt->{path}.'/'.$cnv->{$m}->{filepath}." TO ".$fopt->{outpath}.'/'.$cnv->{$m}->{folder}.'/'.basename(substr($cnv->{$m}->{filepath},0,-3).$copt->{type})."\n"; + my $req = &request($url."audio/convert",$fopt); + print Dumper($req); + + $cnvcount++; + } + } + print $convcnt." files NOT converted!\n"; + # foreach my $m (keys(%{$cnv})){ + + + # #print "SRCPATH:".$cnv->{$m}->{sourcepath}."\n"; + # if (($cnv->{$m}->{sourcepath} eq "") || (! -e $cnv->{$m}->{sourcepath})){ + # if (-e $cnv->{$m}->{filepath}){ + # my $fopt = $copt; + # my @id3tag = split(",",$fopt->{id3}); + # my $nid3 = (); + # # foreach my $t (@id3tag){ + # # $nid3->{$t} = ""; + # # if (exists($cnv->{$t})){ + # # $nid3->{$t} = $cnv->{$t}; + # # } + # # } + # # if (keys(%{$nid3}) > 0){ + # # $fopt->{id3} = JSON::PP::encode_json($nid3); + # # } else { + # # $fopt->{id3} = ''; + # # } + + # $fopt->{input} = $cnv->{$m}->{filepath}; + # $fopt->{outpath} = $copt->{outpath}.'/'.$cnv->{$m}->{folder}; + # print "Convert ".$cnv->{$m}->{filepath}."\n"; + # #my $req = &request($url."audio/convert",$fopt); + # print Dumper($fopt); + # $cnvcount++; + # } else { + # print "File ".$cnv->{$m}->{filepath}." NOT FOUND!\n"; + # $notfoundcount++; + # } + + # } + # } + # print "Files to Convert:".$cnvcount."\n"; + # print "Files NOT FOUND:".$notfoundcount."\n"; +} +# print "Request Data!\n"; +# my $result = &request("http://localhost:6060/test",("TESTDATA"=> "123")); +# print Dumper($result); +print "Normal END\n"; +sub request(){ + my $url = shift; + my $data = shift; + +my $request = HTTP::Request->new( POST => $url ); +my @param = (); +foreach my $d (keys(%{$data})){ + push (@param,$d."=".$data->{$d}); +} +print $url." Params:".join("&",@param)."\n"; + $request->content(join("&",@param)); + $request->header( 'Content-type' => 'application/x-www-form-urlencoded' ); + #return $request if $params->{'return_request'}; + my $ua = LWP::UserAgent->new; + $ua->agent("Coloradio Cli 20190810"); + $ua->timeout(20); + # Execute the request + my $response = $ua->request($request); + print "Response!\n"; + #print Dumper($response); + if ($response->is_success) { + # $response->content."\n---\n"; + return JSON::PP::decode_json($response->content); + }else { + print $response->content; + } + + #else { + # print $response->status_line; + #} + return (); +} + +sub dbrepl(){ + my $text = shift; + $text =~ s/'/''/g; + return $text; +} \ No newline at end of file diff --git a/bin/external_ip.sh b/bin/external_ip.sh deleted file mode 100644 index 69fc93c..0000000 --- a/bin/external_ip.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -#curl -s "http://fritz.box:49000/igdupnp/control/WANIPConn1" -H "Content-Type: text/xml; charset="utf-8"" -H "SoapAction:urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress" -d "@external_ip.xml" | grep -Eo "\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>" -curl -s "http://fritz.box:49000/igdupnp/control/WANIPConn1" -H "Content-Type: text/xml; charset="utf-8"" -H "SoapAction:urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress" -d "@external_ip.xml" -" diff --git a/bin/external_ip.xml b/bin/external_ip.xml deleted file mode 100644 index a3618ab..0000000 --- a/bin/external_ip.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bin/gitweb/GITWEB-BUILD-OPTIONS b/bin/gitweb/GITWEB-BUILD-OPTIONS deleted file mode 100644 index cf72030..0000000 --- a/bin/gitweb/GITWEB-BUILD-OPTIONS +++ /dev/null @@ -1 +0,0 @@ -x /usr/bin/perl -e s|++GIT_VERSION++|2.20.1|g -e s|++GIT_BINDIR++|/home/kilian/bin|g -e s|++GITWEB_CONFIG++|gitweb_config.perl|g -e s|++GITWEB_CONFIG_SYSTEM++|/etc/gitweb.conf|g -e s|++GITWEB_CONFIG_COMMON++|/etc/gitweb-common.conf|g -e s|++GITWEB_HOME_LINK_STR++|projects|g -e s|++GITWEB_SITENAME++||g -e s|++GITWEB_PROJECTROOT++|/pub/git|g -e s|"++GITWEB_PROJECT_MAXDEPTH++"|2007|g -e s|++GITWEB_EXPORT_OK++||g -e s|++GITWEB_STRICT_EXPORT++||g -e s|++GITWEB_BASE_URL++||g -e s|++GITWEB_LIST++||g -e s|++GITWEB_HOMETEXT++|indextext.html|g -e s|++GITWEB_CSS++|static/gitweb.css|g -e s|++GITWEB_LOGO++|static/git-logo.png|g -e s|++GITWEB_FAVICON++|static/git-favicon.png|g -e s|++GITWEB_JS++|static/gitweb.js|g -e s|++GITWEB_SITE_HTML_HEAD_STRING++||g -e s|++GITWEB_SITE_HEADER++||g -e s|++GITWEB_SITE_FOOTER++||g -e s|++HIGHLIGHT_BIN++|highlight|g | diff --git a/bin/gitweb/INSTALL b/bin/gitweb/INSTALL deleted file mode 100644 index a58e6b3..0000000 --- a/bin/gitweb/INSTALL +++ /dev/null @@ -1,328 +0,0 @@ -GIT web Interface (gitweb) Installation -======================================= - -First you have to generate gitweb.cgi from gitweb.perl using -"make gitweb", then "make install-gitweb" appropriate files -(gitweb.cgi, gitweb.js, gitweb.css, git-logo.png and git-favicon.png) -to their destination. For example if git was (or is) installed with -/usr prefix and gitwebdir is /var/www/cgi-bin, you can do - - $ make prefix=/usr gitweb ;# as yourself - # make gitwebdir=/var/www/cgi-bin install-gitweb ;# as root - -Alternatively you can use autoconf generated ./configure script to -set up path to git binaries (via config.mak.autogen), so you can write -instead - - $ make configure ;# as yourself - $ ./configure --prefix=/usr ;# as yourself - $ make gitweb ;# as yourself - # make gitwebdir=/var/www/cgi-bin \ - install-gitweb ;# as root - -The above example assumes that your web server is configured to run -[executable] files in /var/www/cgi-bin/ as server scripts (as CGI -scripts). - - -Requirements ------------- - - - Core git tools - - Perl 5.8 - - Perl modules: CGI, Encode, Fcntl, File::Find, File::Basename. - - web server - -The following optional Perl modules are required for extra features - - CGI::Fast and FCGI - for running gitweb as FastCGI script - - HTML::TagCloud - for fancy tag cloud in project list view - - HTTP::Date or Time::ParseDate - to support If-Modified-Since for feeds - - -Build time configuration ------------------------- - -See also "How to configure gitweb for your local system" section below. - -- There are many configuration variables which affect building of - gitweb.cgi; see "default configuration for gitweb" section in main - (top dir) Makefile, and instructions for building gitweb target. - - One of the most important is where to find the git wrapper binary. Gitweb - tries to find the git wrapper at $(bindir)/git, so you have to set $bindir - when building gitweb.cgi, or $prefix from which $bindir is derived. If - you build and install gitweb together with the rest of the git suite, - there should be no problems. Otherwise, if git was for example - installed from a binary package, you have to set $prefix (or $bindir) - accordingly. - -- Another important issue is where are git repositories you want to make - available to gitweb. By default gitweb searches for repositories under - /pub/git; if you want to have projects somewhere else, like /home/git, - use GITWEB_PROJECTROOT build configuration variable. - - By default all git repositories under projectroot are visible and - available to gitweb. The list of projects is generated by default by - scanning the projectroot directory for git repositories. This can be - changed (configured) as described in "Gitweb repositories" section - below. - - Note that gitweb deals directly with the object database, and does not - need a working directory; the name of the project is the name of its - repository object database, usually projectname.git for bare - repositories. If you want to provide gitweb access to non-bare (live) - repositories, you can make projectname.git a symbolic link under - projectroot linking to projectname/.git (but it is just - a suggestion). - -- You can control where gitweb tries to find its main CSS style file, - its JavaScript file, its favicon and logo with the GITWEB_CSS, GITWEB_JS - GITWEB_FAVICON and GITWEB_LOGO build configuration variables. By default - gitweb tries to find them in the same directory as gitweb.cgi script. - -- You can optionally generate minified versions of gitweb.js and gitweb.css - by defining the JSMIN and CSSMIN build configuration variables. By default - the non-minified versions will be used. NOTE: if you enable this option, - substitute gitweb.min.js and gitweb.min.css for all uses of gitweb.js and - gitweb.css in the help files. - - -How to configure gitweb for your local system ---------------------------------------------- - -You can specify the following configuration variables when building GIT: - - * GIT_BINDIR - Points where to find the git executable. You should set it up to - the place where the git binary was installed (usually /usr/bin) if you - don't install git from sources together with gitweb. [Default: $(bindir)] - * GITWEB_SITENAME - Shown in the title of all generated pages, defaults to the server name - (SERVER_NAME CGI environment variable) if not set. [No default] - * GITWEB_PROJECTROOT - The root directory for all projects shown by gitweb. Must be set - correctly for gitweb to find repositories to display. See also - "Gitweb repositories" in the INSTALL file for gitweb. [Default: /pub/git] - * GITWEB_PROJECT_MAXDEPTH - The filesystem traversing limit for getting the project list; the number - is taken as depth relative to the projectroot. It is used when - GITWEB_LIST is a directory (or is not set; then project root is used). - This is meant to speed up project listing on large work trees by limiting - search depth. [Default: 2007] - * GITWEB_LIST - Points to a directory to scan for projects (defaults to project root - if not set / if empty) or to a file with explicit listing of projects - (together with projects' ownership). See "Generating projects list - using gitweb" in INSTALL file for gitweb to find out how to generate - such file from scan of a directory. [No default, which means use root - directory for projects] - * GITWEB_EXPORT_OK - Show repository only if this file exists (in repository). Only - effective if this variable evaluates to true. [No default / Not set] - * GITWEB_STRICT_EXPORT - Only allow viewing of repositories also shown on the overview page. - This for example makes GITWEB_EXPORT_OK to decide if repository is - available and not only if it is shown. If GITWEB_LIST points to - file with list of project, only those repositories listed would be - available for gitweb. [No default] - * GITWEB_HOMETEXT - Points to an .html file which is included on the gitweb project - overview page ('projects_list' view), if it exists. Relative to - gitweb.cgi script. [Default: indextext.html] - * GITWEB_SITE_HTML_HEAD_STRING - html snippet to include in the section of each page. [No default] - * GITWEB_SITE_HEADER - Filename of html text to include at top of each page. Relative to - gitweb.cgi script. [No default] - * GITWEB_SITE_FOOTER - Filename of html text to include at bottom of each page. Relative to - gitweb.cgi script. [No default] - * GITWEB_HOME_LINK_STR - String of the home link on top of all pages, leading to $home_link - (usually main gitweb page, which means projects list). Used as first - part of gitweb view "breadcrumb trail": / / . - [Default: projects] - * GITWEB_SITENAME - Name of your site or organization to appear in page titles. Set it - to something descriptive for clearer bookmarks etc. If not set - (if empty) gitweb uses "$SERVER_NAME Git", or "Untitled Git" if - SERVER_NAME CGI environment variable is not set (e.g. if running - gitweb as standalone script). [No default] - * GITWEB_BASE_URL - Git base URLs used for URL to where fetch project from, i.e. full - URL is "$git_base_url/$project". Shown on projects summary page. - Repository URL for project can be also configured per repository; this - takes precedence over URLs composed from base URL and a project name. - Note that you can setup multiple base URLs (for example one for - git:// protocol access, another for http:// access) from the gitweb - config file. [No default] - * GITWEB_CSS - Points to the location where you put gitweb.css on your web server - (or to be more generic, the URI of gitweb stylesheet). Relative to the - base URI of gitweb. Note that you can setup multiple stylesheets from - the gitweb config file. [Default: static/gitweb.css (or - static/gitweb.min.css if the CSSMIN variable is defined / CSS minifier - is used)] - * GITWEB_JS - Points to the location where you put gitweb.js on your web server - (or to be more generic URI of JavaScript code used by gitweb). - Relative to base URI of gitweb. [Default: static/gitweb.js (or - static/gitweb.min.js if JSMIN build variable is defined / JavaScript - minifier is used)] - * CSSMIN, JSMIN - Invocation of a CSS minifier or a JavaScript minifier, respectively, - working as a filter (source on standard input, minified result on - standard output). If set, it is used to generate a minified version of - 'static/gitweb.css' or 'static/gitweb.js', respectively. *Note* that - minified files would have *.min.css and *.min.js extension, which is - important if you also set GITWEB_CSS and/or GITWEB_JS. [No default] - * GITWEB_LOGO - Points to the location where you put git-logo.png on your web server - (or to be more generic URI of logo, 72x27 size, displayed in top right - corner of each gitweb page, and used as logo for Atom feed). Relative - to base URI of gitweb. [Default: static/git-logo.png] - * GITWEB_FAVICON - Points to the location where you put git-favicon.png on your web server - (or to be more generic URI of favicon, assumed to be image/png type; - web browsers that support favicons (website icons) may display them - in the browser's URL bar and next to site name in bookmarks). Relative - to base URI of gitweb. [Default: static/git-favicon.png] - * GITWEB_CONFIG - This Perl file will be loaded using 'do' and can be used to override any - of the options above as well as some other options -- see the "Runtime - gitweb configuration" section below, and top of 'gitweb.cgi' for their - full list and description. If the environment variable GITWEB_CONFIG - is set when gitweb.cgi is executed, then the file specified in the - environment variable will be loaded instead of the file specified - when gitweb.cgi was created. [Default: gitweb_config.perl] - * GITWEB_CONFIG_SYSTEM - This Perl file will be loaded using 'do' as a fallback if GITWEB_CONFIG - does not exist. If the environment variable GITWEB_CONFIG_SYSTEM is set - when gitweb.cgi is executed, then the file specified in the environment - variable will be loaded instead of the file specified when gitweb.cgi was - created. [Default: /etc/gitweb.conf] - * HIGHLIGHT_BIN - Path to the highlight executable to use (must be the one from - http://www.andre-simon.de due to assumptions about parameters and output). - Useful if highlight is not installed on your webserver's PATH. - [Default: highlight] - -Build example -~~~~~~~~~~~~~ - -- To install gitweb to /var/www/cgi-bin/gitweb/, when git wrapper - is installed at /usr/local/bin/git, the repositories (projects) - we want to display are under /home/local/scm, and you do not use - minifiers, you can do - - make GITWEB_PROJECTROOT="/home/local/scm" \ - GITWEB_JS="gitweb/static/gitweb.js" \ - GITWEB_CSS="gitweb/static/gitweb.css" \ - GITWEB_LOGO="gitweb/static/git-logo.png" \ - GITWEB_FAVICON="gitweb/static/git-favicon.png" \ - bindir=/usr/local/bin \ - gitweb - - make gitwebdir=/var/www/cgi-bin/gitweb install-gitweb - - -Gitweb config file ------------------- - -See also "Runtime gitweb configuration" section in README file -for gitweb (in gitweb/README), and gitweb.conf(5) manpage. - -- You can configure gitweb further using the per-instance gitweb configuration file; - by default this is a file named gitweb_config.perl in the same place as - gitweb.cgi script. You can control the default place for the config file - using the GITWEB_CONFIG build configuration variable, and you can set it - using the GITWEB_CONFIG environment variable. If this file does not - exist, gitweb looks for a system-wide configuration file, normally - /etc/gitweb.conf. You can change the default using the - GITWEB_CONFIG_SYSTEM build configuration variable, and override it - through the GITWEB_CONFIG_SYSTEM environment variable. - - Note that the GITWEB_CONFIG_SYSTEM system-wide configuration file is - only used for instances that lack per-instance configuration file. - You can use GITWEB_CONFIG_COMMON common system-wide configuration - file (normally /etc/gitweb-common.conf) to keep common default - settings that apply to all instances. Settings from per-instance or - system-wide configuration file override those from common system-wide - configuration file. - -- The gitweb config file is a fragment of perl code. You can set variables - using "our $variable = value"; text from "#" character until the end - of a line is ignored. See perlsyn(1) for details. - - See the top of gitweb.perl file for examples of customizable options. - -Config file example -~~~~~~~~~~~~~~~~~~~ - -To enable blame, pickaxe search, and snapshot support, while allowing -individual projects to turn them off, put the following in your -GITWEB_CONFIG file: - - $feature{'blame'}{'default'} = [1]; - $feature{'blame'}{'override'} = 1; - - $feature{'pickaxe'}{'default'} = [1]; - $feature{'pickaxe'}{'override'} = 1; - - $feature{'snapshot'}{'default'} = ['zip', 'tgz']; - $feature{'snapshot'}{'override'} = 1; - -If you allow overriding for the snapshot feature, you can specify which -snapshot formats are globally disabled. You can also add any command line -options you want (such as setting the compression level). For instance, -you can disable Zip compressed snapshots and set GZip to run at level 6 by -adding the following lines to your $GITWEB_CONFIG: - - $known_snapshot_formats{'zip'}{'disabled'} = 1; - $known_snapshot_formats{'tgz'}{'compressor'} = ['gzip','-6']; - - -Gitweb repositories -------------------- - -By default gitweb shows all git repositories under single common repository -root on a local filesystem; see description of GITWEB_PROJECTROOT build-time -configuration variable above (and also of GITWEB_LIST). - -More advanced usage, like limiting access or visibility of repositories and -managing multiple roots are described on gitweb manpage. - - -Example web server configuration -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -See also "Webserver configuration" and "Advanced web server setup" sections -in gitweb(1) manpage. - - -- Apache2, gitweb installed as CGI script, - under /var/www/cgi-bin/ - - ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" - - - Options Indexes FollowSymlinks ExecCGI - AllowOverride None - Order allow,deny - Allow from all - - -- Apache2, gitweb installed as mod_perl legacy script, - under /var/www/perl/ - - Alias /perl "/var/www/perl" - - - SetHandler perl-script - PerlResponseHandler ModPerl::Registry - PerlOptions +ParseHeaders - Options Indexes FollowSymlinks +ExecCGI - AllowOverride None - Order allow,deny - Allow from all - diff --git a/bin/gitweb/Makefile b/bin/gitweb/Makefile deleted file mode 100644 index cd194d0..0000000 --- a/bin/gitweb/Makefile +++ /dev/null @@ -1,195 +0,0 @@ -# The default target of this Makefile is... -all:: - -# Define V=1 to have a more verbose compile. -# -# Define JSMIN to point to JavaScript minifier that functions as -# a filter to have static/gitweb.js minified. -# -# Define CSSMIN to point to a CSS minifier in order to generate a minified -# version of static/gitweb.css -# - -prefix ?= $(HOME) -bindir ?= $(prefix)/bin -gitwebdir ?= /var/www/cgi-bin - -RM ?= rm -f -INSTALL ?= install - -# default configuration for gitweb -GITWEB_CONFIG = gitweb_config.perl -GITWEB_CONFIG_SYSTEM = /etc/gitweb.conf -GITWEB_CONFIG_COMMON = /etc/gitweb-common.conf -GITWEB_HOME_LINK_STR = projects -GITWEB_SITENAME = -GITWEB_PROJECTROOT = /pub/git -GITWEB_PROJECT_MAXDEPTH = 2007 -GITWEB_EXPORT_OK = -GITWEB_STRICT_EXPORT = -GITWEB_BASE_URL = -GITWEB_LIST = -GITWEB_HOMETEXT = indextext.html -GITWEB_CSS = static/gitweb.css -GITWEB_LOGO = static/git-logo.png -GITWEB_FAVICON = static/git-favicon.png -GITWEB_JS = static/gitweb.js -GITWEB_SITE_HTML_HEAD_STRING = -GITWEB_SITE_HEADER = -GITWEB_SITE_FOOTER = -HIGHLIGHT_BIN = highlight - -# include user config --include ../config.mak.autogen --include ../config.mak --include config.mak - -# determine version -../GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE - $(QUIET_SUBDIR0)../ $(QUIET_SUBDIR1) GIT-VERSION-FILE - --include ../GIT-VERSION-FILE - -### Build rules - -SHELL_PATH ?= $(SHELL) -PERL_PATH ?= /usr/bin/perl - -# Shell quote; -bindir_SQ = $(subst ','\'',$(bindir))#' -gitwebdir_SQ = $(subst ','\'',$(gitwebdir))#' -gitwebstaticdir_SQ = $(subst ','\'',$(gitwebdir)/static)#' -SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))#' -PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))#' -DESTDIR_SQ = $(subst ','\'',$(DESTDIR))#' - -# Quiet generation (unless V=1) -QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir -QUIET_SUBDIR1 = - -ifneq ($(findstring $(MAKEFLAGS),w),w) -PRINT_DIR = --no-print-directory -else # "make -w" -NO_SUBDIR = : -endif - -ifneq ($(findstring $(MAKEFLAGS),s),s) -ifndef V - QUIET = @ - QUIET_GEN = $(QUIET)echo ' ' GEN $@; - QUIET_SUBDIR0 = +@subdir= - QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \ - $(MAKE) $(PRINT_DIR) -C $$subdir - export V - export QUIET - export QUIET_GEN - export QUIET_SUBDIR0 - export QUIET_SUBDIR1 -endif -endif - -all:: gitweb.cgi static/gitweb.js - -GITWEB_PROGRAMS = gitweb.cgi - -ifdef JSMIN -GITWEB_FILES += static/gitweb.min.js -GITWEB_JS = static/gitweb.min.js -all:: static/gitweb.min.js -static/gitweb.min.js: static/gitweb.js GITWEB-BUILD-OPTIONS - $(QUIET_GEN)$(JSMIN) <$< >$@ -else -GITWEB_FILES += static/gitweb.js -endif - -ifdef CSSMIN -GITWEB_FILES += static/gitweb.min.css -GITWEB_CSS = static/gitweb.min.css -all:: static/gitweb.min.css -static/gitweb.min.css: static/gitweb.css GITWEB-BUILD-OPTIONS - $(QUIET_GEN)$(CSSMIN) <$< >$@ -else -GITWEB_FILES += static/gitweb.css -endif - -GITWEB_FILES += static/git-logo.png static/git-favicon.png - -# JavaScript files that are composed (concatenated) to form gitweb.js -# -# js/lib/common-lib.js should be always first, then js/lib/*.js, -# then the rest of files; js/gitweb.js should be last (if it exists) -GITWEB_JSLIB_FILES += static/js/lib/common-lib.js -GITWEB_JSLIB_FILES += static/js/lib/datetime.js -GITWEB_JSLIB_FILES += static/js/lib/cookies.js -GITWEB_JSLIB_FILES += static/js/javascript-detection.js -GITWEB_JSLIB_FILES += static/js/adjust-timezone.js -GITWEB_JSLIB_FILES += static/js/blame_incremental.js - - -GITWEB_REPLACE = \ - -e 's|++GIT_VERSION++|$(GIT_VERSION)|g' \ - -e 's|++GIT_BINDIR++|$(bindir)|g' \ - -e 's|++GITWEB_CONFIG++|$(GITWEB_CONFIG)|g' \ - -e 's|++GITWEB_CONFIG_SYSTEM++|$(GITWEB_CONFIG_SYSTEM)|g' \ - -e 's|++GITWEB_CONFIG_COMMON++|$(GITWEB_CONFIG_COMMON)|g' \ - -e 's|++GITWEB_HOME_LINK_STR++|$(GITWEB_HOME_LINK_STR)|g' \ - -e 's|++GITWEB_SITENAME++|$(GITWEB_SITENAME)|g' \ - -e 's|++GITWEB_PROJECTROOT++|$(GITWEB_PROJECTROOT)|g' \ - -e 's|"++GITWEB_PROJECT_MAXDEPTH++"|$(GITWEB_PROJECT_MAXDEPTH)|g' \ - -e 's|++GITWEB_EXPORT_OK++|$(GITWEB_EXPORT_OK)|g' \ - -e 's|++GITWEB_STRICT_EXPORT++|$(GITWEB_STRICT_EXPORT)|g' \ - -e 's|++GITWEB_BASE_URL++|$(GITWEB_BASE_URL)|g' \ - -e 's|++GITWEB_LIST++|$(GITWEB_LIST)|g' \ - -e 's|++GITWEB_HOMETEXT++|$(GITWEB_HOMETEXT)|g' \ - -e 's|++GITWEB_CSS++|$(GITWEB_CSS)|g' \ - -e 's|++GITWEB_LOGO++|$(GITWEB_LOGO)|g' \ - -e 's|++GITWEB_FAVICON++|$(GITWEB_FAVICON)|g' \ - -e 's|++GITWEB_JS++|$(GITWEB_JS)|g' \ - -e 's|++GITWEB_SITE_HTML_HEAD_STRING++|$(GITWEB_SITE_HTML_HEAD_STRING)|g' \ - -e 's|++GITWEB_SITE_HEADER++|$(GITWEB_SITE_HEADER)|g' \ - -e 's|++GITWEB_SITE_FOOTER++|$(GITWEB_SITE_FOOTER)|g' \ - -e 's|++HIGHLIGHT_BIN++|$(HIGHLIGHT_BIN)|g' - -GITWEB-BUILD-OPTIONS: FORCE - @rm -f $@+ - @echo "x" '$(PERL_PATH_SQ)' $(GITWEB_REPLACE) "$(JSMIN)|$(CSSMIN)" >$@+ - @cmp -s $@+ $@ && rm -f $@+ || mv -f $@+ $@ - -gitweb.cgi: gitweb.perl GITWEB-BUILD-OPTIONS - $(QUIET_GEN)$(RM) $@ $@+ && \ - sed -e '1s|#!.*perl|#!$(PERL_PATH_SQ)|' \ - $(GITWEB_REPLACE) $< >$@+ && \ - chmod +x $@+ && \ - mv $@+ $@ - -static/gitweb.js: $(GITWEB_JSLIB_FILES) - $(QUIET_GEN)$(RM) $@ $@+ && \ - cat $^ >$@+ && \ - mv $@+ $@ - -### Testing rules - -test: - $(MAKE) -C ../t gitweb-test - -test-installed: - GITWEB_TEST_INSTALLED='$(DESTDIR_SQ)$(gitwebdir_SQ)' \ - $(MAKE) -C ../t gitweb-test - -### Installation rules - -install: all - $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(gitwebdir_SQ)' - $(INSTALL) -m 755 $(GITWEB_PROGRAMS) '$(DESTDIR_SQ)$(gitwebdir_SQ)' - $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(gitwebstaticdir_SQ)' - $(INSTALL) -m 644 $(GITWEB_FILES) '$(DESTDIR_SQ)$(gitwebstaticdir_SQ)' - -### Cleaning rules - -clean: - $(RM) gitweb.cgi static/gitweb.js \ - static/gitweb.min.js static/gitweb.min.css \ - GITWEB-BUILD-OPTIONS - -.PHONY: all clean install test test-installed .FORCE-GIT-VERSION-FILE FORCE - diff --git a/bin/gitweb/README b/bin/gitweb/README deleted file mode 100644 index 471dcfb..0000000 --- a/bin/gitweb/README +++ /dev/null @@ -1,70 +0,0 @@ -GIT web Interface -================= - -From the git version 1.4.0 gitweb is bundled with git. - - -Build time gitweb configuration -------------------------------- -There are many configuration variables which affect building gitweb (among -others creating gitweb.cgi out of gitweb.perl by replacing placeholders such -as `++GIT_BINDIR++` by their build-time values). - -Building and installing gitweb is described in gitweb's INSTALL file -(in 'gitweb/INSTALL'). - - -Runtime gitweb configuration ----------------------------- -Gitweb obtains configuration data from the following sources in the -following order: - -1. built-in values (some set during build stage), -2. common system-wide configuration file (`GITWEB_CONFIG_COMMON`, - defaults to '/etc/gitweb-common.conf'), -3. either per-instance configuration file (`GITWEB_CONFIG`, defaults to - 'gitweb_config.perl' in the same directory as the installed gitweb), - or if it does not exists then system-wide configuration file - (`GITWEB_CONFIG_SYSTEM`, defaults to '/etc/gitweb.conf'). - -Values obtained in later configuration files override values obtained earlier -in above sequence. - -You can read defaults in system-wide GITWEB_CONFIG_SYSTEM from GITWEB_CONFIG -by adding - - read_config_file($GITWEB_CONFIG_SYSTEM); - -at very beginning of per-instance GITWEB_CONFIG file. In this case -settings in said per-instance file will override settings from -system-wide configuration file. Note that read_config_file checks -itself that the $GITWEB_CONFIG_SYSTEM file exists. - -The most notable thing that is not configurable at compile time are the -optional features, stored in the '%features' variable. - -Ultimate description on how to reconfigure the default features setting -in your `GITWEB_CONFIG` or per-project in `project.git/config` can be found -as comments inside 'gitweb.cgi'. - -See also gitweb.conf(5) manpage. - - -Web server configuration ------------------------- -Gitweb can be run as CGI script, as legacy mod_perl application (using -ModPerl::Registry), and as FastCGI script. You can find some simple examples -in "Example web server configuration" section in INSTALL file for gitweb (in -gitweb/INSTALL). - -See "Webserver configuration" and "Advanced web server setup" sections in -gitweb(1) manpage. - - -AUTHORS -------- -Originally written by: - Kay Sievers - -Any comment/question/concern to: - Git mailing list diff --git a/bin/gitweb/gitweb.cgi b/bin/gitweb/gitweb.cgi deleted file mode 100644 index db1ad59..0000000 --- a/bin/gitweb/gitweb.cgi +++ /dev/null @@ -1,8427 +0,0 @@ -#!/usr/bin/perl - -# gitweb - simple web interface to track changes in git repositories -# -# (C) 2005-2006, Kay Sievers -# (C) 2005, Christian Gierke -# -# This program is licensed under the GPLv2 - -use 5.008; -use strict; -use warnings; -# handle ACL in file access tests -use filetest 'access'; -use CGI qw(:standard :escapeHTML -nosticky); -use CGI::Util qw(unescape); -use CGI::Carp qw(fatalsToBrowser set_message); -use Encode; -use Fcntl ':mode'; -use File::Find qw(); -use File::Basename qw(basename); -use Time::HiRes qw(gettimeofday tv_interval); -use Digest::MD5 qw(md5_hex); - -binmode STDOUT, ':utf8'; - -if (!defined($CGI::VERSION) || $CGI::VERSION < 4.08) { - eval 'sub CGI::multi_param { CGI::param(@_) }' -} - -our $t0 = [ gettimeofday() ]; -our $number_of_git_cmds = 0; - -BEGIN { - CGI->compile() if $ENV{'MOD_PERL'}; -} - -our $version = "2.20.1"; - -our ($my_url, $my_uri, $base_url, $path_info, $home_link); -sub evaluate_uri { - our $cgi; - - our $my_url = $cgi->url(); - our $my_uri = $cgi->url(-absolute => 1); - - # Base URL for relative URLs in gitweb ($logo, $favicon, ...), - # needed and used only for URLs with nonempty PATH_INFO - our $base_url = $my_url; - - # When the script is used as DirectoryIndex, the URL does not contain the name - # of the script file itself, and $cgi->url() fails to strip PATH_INFO, so we - # have to do it ourselves. We make $path_info global because it's also used - # later on. - # - # Another issue with the script being the DirectoryIndex is that the resulting - # $my_url data is not the full script URL: this is good, because we want - # generated links to keep implying the script name if it wasn't explicitly - # indicated in the URL we're handling, but it means that $my_url cannot be used - # as base URL. - # Therefore, if we needed to strip PATH_INFO, then we know that we have - # to build the base URL ourselves: - our $path_info = decode_utf8($ENV{"PATH_INFO"}); - if ($path_info) { - # $path_info has already been URL-decoded by the web server, but - # $my_url and $my_uri have not. URL-decode them so we can properly - # strip $path_info. - $my_url = unescape($my_url); - $my_uri = unescape($my_uri); - if ($my_url =~ s,\Q$path_info\E$,, && - $my_uri =~ s,\Q$path_info\E$,, && - defined $ENV{'SCRIPT_NAME'}) { - $base_url = $cgi->url(-base => 1) . $ENV{'SCRIPT_NAME'}; - } - } - - # target of the home link on top of all pages - our $home_link = $my_uri || "/gitweb.cgi"; -} - -# core git executable to use -# this can just be "git" if your webserver has a sensible PATH -our $GIT = "/usr/bin/git"; - -# absolute fs-path which will be prepended to the project path -#our $projectroot = "/pub/scm"; -our $projectroot = "/home/dks/mirror/GIT"; - -# fs traversing limit for getting project list -# the number is relative to the projectroot -our $project_maxdepth = 2007; - -# string of the home link on top of all pages -our $home_link_str = "projects"; - -# extra breadcrumbs preceding the home link -our @extra_breadcrumbs = (); - -# name of your site or organization to appear in page titles -# replace this with something more descriptive for clearer bookmarks -our $site_name = "" - || ($ENV{'SERVER_NAME'} || "Untitled") . " Git"; - -# html snippet to include in the section of each page -our $site_html_head_string = ""; -# filename of html text to include at top of each page -our $site_header = ""; -# html text to include at home page -our $home_text = "indextext.html"; -# filename of html text to include at bottom of each page -our $site_footer = ""; - -# URI of stylesheets -our @stylesheets = ("gitweb/static/gitweb.css"); -# URI of a single stylesheet, which can be overridden in GITWEB_CONFIG. -our $stylesheet = undef; -# URI of GIT logo (72x27 size) -our $logo = "gitweb/static/git-logo.png"; -# URI of GIT favicon, assumed to be image/png type -our $favicon = "gitweb/static/git-favicon.png"; -# URI of gitweb.js (JavaScript code for gitweb) -our $javascript = "gitweb/static/gitweb.js"; - -# URI and label (title) of GIT logo link -#our $logo_url = "http://www.kernel.org/pub/software/scm/git/docs/"; -#our $logo_label = "git documentation"; -our $logo_url = "http://git-scm.com/"; -our $logo_label = "git homepage"; - -# source of projects list -our $projects_list = ""; - -# the width (in characters) of the projects list "Description" column -our $projects_list_description_width = 25; - -# group projects by category on the projects list -# (enabled if this variable evaluates to true) -our $projects_list_group_categories = 0; - -# default category if none specified -# (leave the empty string for no category) -our $project_list_default_category = ""; - -# default order of projects list -# valid values are none, project, descr, owner, and age -our $default_projects_order = "project"; - -# show repository only if this file exists -# (only effective if this variable evaluates to true) -our $export_ok = ""; - -# don't generate age column on the projects list page -our $omit_age_column = 0; - -# don't generate information about owners of repositories -our $omit_owner=0; - -# show repository only if this subroutine returns true -# when given the path to the project, for example: -# sub { return -e "$_[0]/git-daemon-export-ok"; } -our $export_auth_hook = undef; - -# only allow viewing of repositories also shown on the overview page -our $strict_export = ""; - -# list of git base URLs used for URL to where fetch project from, -# i.e. full URL is "$git_base_url/$project" -our @git_base_url_list = grep { $_ ne '' } (""); - -# default blob_plain mimetype and default charset for text/plain blob -our $default_blob_plain_mimetype = 'text/plain'; -our $default_text_plain_charset = undef; - -# file to use for guessing MIME types before trying /etc/mime.types -# (relative to the current git repository) -our $mimetypes_file = undef; - -# assume this charset if line contains non-UTF-8 characters; -# it should be valid encoding (see Encoding::Supported(3pm) for list), -# for which encoding all byte sequences are valid, for example -# 'iso-8859-1' aka 'latin1' (it is decoded without checking, so it -# could be even 'utf-8' for the old behavior) -our $fallback_encoding = 'latin1'; - -# rename detection options for git-diff and git-diff-tree -# - default is '-M', with the cost proportional to -# (number of removed files) * (number of new files). -# - more costly is '-C' (which implies '-M'), with the cost proportional to -# (number of changed files + number of removed files) * (number of new files) -# - even more costly is '-C', '--find-copies-harder' with cost -# (number of files in the original tree) * (number of new files) -# - one might want to include '-B' option, e.g. '-B', '-M' -our @diff_opts = ('-M'); # taken from git_commit - -# Disables features that would allow repository owners to inject script into -# the gitweb domain. -our $prevent_xss = 0; - -# Path to the highlight executable to use (must be the one from -# http://www.andre-simon.de due to assumptions about parameters and output). -# Useful if highlight is not installed on your webserver's PATH. -# [Default: highlight] -our $highlight_bin = "highlight"; - -# information about snapshot formats that gitweb is capable of serving -our %known_snapshot_formats = ( - # name => { - # 'display' => display name, - # 'type' => mime type, - # 'suffix' => filename suffix, - # 'format' => --format for git-archive, - # 'compressor' => [compressor command and arguments] - # (array reference, optional) - # 'disabled' => boolean (optional)} - # - 'tgz' => { - 'display' => 'tar.gz', - 'type' => 'application/x-gzip', - 'suffix' => '.tar.gz', - 'format' => 'tar', - 'compressor' => ['gzip', '-n']}, - - 'tbz2' => { - 'display' => 'tar.bz2', - 'type' => 'application/x-bzip2', - 'suffix' => '.tar.bz2', - 'format' => 'tar', - 'compressor' => ['bzip2']}, - - 'txz' => { - 'display' => 'tar.xz', - 'type' => 'application/x-xz', - 'suffix' => '.tar.xz', - 'format' => 'tar', - 'compressor' => ['xz'], - 'disabled' => 1}, - - 'zip' => { - 'display' => 'zip', - 'type' => 'application/x-zip', - 'suffix' => '.zip', - 'format' => 'zip'}, -); - -# Aliases so we understand old gitweb.snapshot values in repository -# configuration. -our %known_snapshot_format_aliases = ( - 'gzip' => 'tgz', - 'bzip2' => 'tbz2', - 'xz' => 'txz', - - # backward compatibility: legacy gitweb config support - 'x-gzip' => undef, 'gz' => undef, - 'x-bzip2' => undef, 'bz2' => undef, - 'x-zip' => undef, '' => undef, -); - -# Pixel sizes for icons and avatars. If the default font sizes or lineheights -# are changed, it may be appropriate to change these values too via -# $GITWEB_CONFIG. -our %avatar_size = ( - 'default' => 16, - 'double' => 32 -); - -# Used to set the maximum load that we will still respond to gitweb queries. -# If server load exceed this value then return "503 server busy" error. -# If gitweb cannot determined server load, it is taken to be 0. -# Leave it undefined (or set to 'undef') to turn off load checking. -our $maxload = 300; - -# configuration for 'highlight' (http://www.andre-simon.de/) -# match by basename -our %highlight_basename = ( - #'Program' => 'py', - #'Library' => 'py', - 'SConstruct' => 'py', # SCons equivalent of Makefile - 'Makefile' => 'make', -); -# match by extension -our %highlight_ext = ( - # main extensions, defining name of syntax; - # see files in /usr/share/highlight/langDefs/ directory - (map { $_ => $_ } qw(py rb java css js tex bib xml awk bat ini spec tcl sql)), - # alternate extensions, see /etc/highlight/filetypes.conf - (map { $_ => 'c' } qw(c h)), - (map { $_ => 'sh' } qw(sh bash zsh ksh)), - (map { $_ => 'cpp' } qw(cpp cxx c++ cc)), - (map { $_ => 'php' } qw(php php3 php4 php5 phps)), - (map { $_ => 'pl' } qw(pl perl pm)), # perhaps also 'cgi' - (map { $_ => 'make'} qw(make mak mk)), - (map { $_ => 'xml' } qw(xml xhtml html htm)), -); - -# You define site-wide feature defaults here; override them with -# $GITWEB_CONFIG as necessary. -our %feature = ( - # feature => { - # 'sub' => feature-sub (subroutine), - # 'override' => allow-override (boolean), - # 'default' => [ default options...] (array reference)} - # - # if feature is overridable (it means that allow-override has true value), - # then feature-sub will be called with default options as parameters; - # return value of feature-sub indicates if to enable specified feature - # - # if there is no 'sub' key (no feature-sub), then feature cannot be - # overridden - # - # use gitweb_get_feature() to retrieve the value - # (an array) or gitweb_check_feature() to check if - # is enabled - - # Enable the 'blame' blob view, showing the last commit that modified - # each line in the file. This can be very CPU-intensive. - - # To enable system wide have in $GITWEB_CONFIG - # $feature{'blame'}{'default'} = [1]; - # To have project specific config enable override in $GITWEB_CONFIG - # $feature{'blame'}{'override'} = 1; - # and in project config gitweb.blame = 0|1; - 'blame' => { - 'sub' => sub { feature_bool('blame', @_) }, - 'override' => 0, - 'default' => [0]}, - - # Enable the 'snapshot' link, providing a compressed archive of any - # tree. This can potentially generate high traffic if you have large - # project. - - # Value is a list of formats defined in %known_snapshot_formats that - # you wish to offer. - # To disable system wide have in $GITWEB_CONFIG - # $feature{'snapshot'}{'default'} = []; - # To have project specific config enable override in $GITWEB_CONFIG - # $feature{'snapshot'}{'override'} = 1; - # and in project config, a comma-separated list of formats or "none" - # to disable. Example: gitweb.snapshot = tbz2,zip; - 'snapshot' => { - 'sub' => \&feature_snapshot, - 'override' => 0, - 'default' => ['tgz']}, - - # Enable text search, which will list the commits which match author, - # committer or commit text to a given string. Enabled by default. - # Project specific override is not supported. - # - # Note that this controls all search features, which means that if - # it is disabled, then 'grep' and 'pickaxe' search would also be - # disabled. - 'search' => { - 'override' => 0, - 'default' => [1]}, - - # Enable grep search, which will list the files in currently selected - # tree containing the given string. Enabled by default. This can be - # potentially CPU-intensive, of course. - # Note that you need to have 'search' feature enabled too. - - # To enable system wide have in $GITWEB_CONFIG - # $feature{'grep'}{'default'} = [1]; - # To have project specific config enable override in $GITWEB_CONFIG - # $feature{'grep'}{'override'} = 1; - # and in project config gitweb.grep = 0|1; - 'grep' => { - 'sub' => sub { feature_bool('grep', @_) }, - 'override' => 0, - 'default' => [1]}, - - # Enable the pickaxe search, which will list the commits that modified - # a given string in a file. This can be practical and quite faster - # alternative to 'blame', but still potentially CPU-intensive. - # Note that you need to have 'search' feature enabled too. - - # To enable system wide have in $GITWEB_CONFIG - # $feature{'pickaxe'}{'default'} = [1]; - # To have project specific config enable override in $GITWEB_CONFIG - # $feature{'pickaxe'}{'override'} = 1; - # and in project config gitweb.pickaxe = 0|1; - 'pickaxe' => { - 'sub' => sub { feature_bool('pickaxe', @_) }, - 'override' => 0, - 'default' => [1]}, - - # Enable showing size of blobs in a 'tree' view, in a separate - # column, similar to what 'ls -l' does. This cost a bit of IO. - - # To disable system wide have in $GITWEB_CONFIG - # $feature{'show-sizes'}{'default'} = [0]; - # To have project specific config enable override in $GITWEB_CONFIG - # $feature{'show-sizes'}{'override'} = 1; - # and in project config gitweb.showsizes = 0|1; - 'show-sizes' => { - 'sub' => sub { feature_bool('showsizes', @_) }, - 'override' => 0, - 'default' => [1]}, - - # Make gitweb use an alternative format of the URLs which can be - # more readable and natural-looking: project name is embedded - # directly in the path and the query string contains other - # auxiliary information. All gitweb installations recognize - # URL in either format; this configures in which formats gitweb - # generates links. - - # To enable system wide have in $GITWEB_CONFIG - # $feature{'pathinfo'}{'default'} = [1]; - # Project specific override is not supported. - - # Note that you will need to change the default location of CSS, - # favicon, logo and possibly other files to an absolute URL. Also, - # if gitweb.cgi serves as your indexfile, you will need to force - # $my_uri to contain the script name in your $GITWEB_CONFIG. - 'pathinfo' => { - 'override' => 0, - 'default' => [0]}, - - # Make gitweb consider projects in project root subdirectories - # to be forks of existing projects. Given project $projname.git, - # projects matching $projname/*.git will not be shown in the main - # projects list, instead a '+' mark will be added to $projname - # there and a 'forks' view will be enabled for the project, listing - # all the forks. If project list is taken from a file, forks have - # to be listed after the main project. - - # To enable system wide have in $GITWEB_CONFIG - # $feature{'forks'}{'default'} = [1]; - # Project specific override is not supported. - 'forks' => { - 'override' => 0, - 'default' => [0]}, - - # Insert custom links to the action bar of all project pages. - # This enables you mainly to link to third-party scripts integrating - # into gitweb; e.g. git-browser for graphical history representation - # or custom web-based repository administration interface. - - # The 'default' value consists of a list of triplets in the form - # (label, link, position) where position is the label after which - # to insert the link and link is a format string where %n expands - # to the project name, %f to the project path within the filesystem, - # %h to the current hash (h gitweb parameter) and %b to the current - # hash base (hb gitweb parameter); %% expands to %. - - # To enable system wide have in $GITWEB_CONFIG e.g. - # $feature{'actions'}{'default'} = [('graphiclog', - # '/git-browser/by-commit.html?r=%n', 'summary')]; - # Project specific override is not supported. - 'actions' => { - 'override' => 0, - 'default' => []}, - - # Allow gitweb scan project content tags of project repository, - # and display the popular Web 2.0-ish "tag cloud" near the projects - # list. Note that this is something COMPLETELY different from the - # normal Git tags. - - # gitweb by itself can show existing tags, but it does not handle - # tagging itself; you need to do it externally, outside gitweb. - # The format is described in git_get_project_ctags() subroutine. - # You may want to install the HTML::TagCloud Perl module to get - # a pretty tag cloud instead of just a list of tags. - - # To enable system wide have in $GITWEB_CONFIG - # $feature{'ctags'}{'default'} = [1]; - # Project specific override is not supported. - - # In the future whether ctags editing is enabled might depend - # on the value, but using 1 should always mean no editing of ctags. - 'ctags' => { - 'override' => 0, - 'default' => [0]}, - - # The maximum number of patches in a patchset generated in patch - # view. Set this to 0 or undef to disable patch view, or to a - # negative number to remove any limit. - - # To disable system wide have in $GITWEB_CONFIG - # $feature{'patches'}{'default'} = [0]; - # To have project specific config enable override in $GITWEB_CONFIG - # $feature{'patches'}{'override'} = 1; - # and in project config gitweb.patches = 0|n; - # where n is the maximum number of patches allowed in a patchset. - 'patches' => { - 'sub' => \&feature_patches, - 'override' => 0, - 'default' => [16]}, - - # Avatar support. When this feature is enabled, views such as - # shortlog or commit will display an avatar associated with - # the email of the committer(s) and/or author(s). - - # Currently available providers are gravatar and picon. - # If an unknown provider is specified, the feature is disabled. - - # Picon currently relies on the indiana.edu database. - - # To enable system wide have in $GITWEB_CONFIG - # $feature{'avatar'}{'default'} = ['']; - # where is either gravatar or picon. - # To have project specific config enable override in $GITWEB_CONFIG - # $feature{'avatar'}{'override'} = 1; - # and in project config gitweb.avatar = ; - 'avatar' => { - 'sub' => \&feature_avatar, - 'override' => 0, - 'default' => ['']}, - - # Enable displaying how much time and how many git commands - # it took to generate and display page. Disabled by default. - # Project specific override is not supported. - 'timed' => { - 'override' => 0, - 'default' => [0]}, - - # Enable turning some links into links to actions which require - # JavaScript to run (like 'blame_incremental'). Not enabled by - # default. Project specific override is currently not supported. - 'javascript-actions' => { - 'override' => 0, - 'default' => [0]}, - - # Enable and configure ability to change common timezone for dates - # in gitweb output via JavaScript. Enabled by default. - # Project specific override is not supported. - 'javascript-timezone' => { - 'override' => 0, - 'default' => [ - 'local', # default timezone: 'utc', 'local', or '(-|+)HHMM' format, - # or undef to turn off this feature - 'gitweb_tz', # name of cookie where to store selected timezone - 'datetime', # CSS class used to mark up dates for manipulation - ]}, - - # Syntax highlighting support. This is based on Daniel Svensson's - # and Sham Chukoury's work in gitweb-xmms2.git. - # It requires the 'highlight' program present in $PATH, - # and therefore is disabled by default. - - # To enable system wide have in $GITWEB_CONFIG - # $feature{'highlight'}{'default'} = [1]; - - 'highlight' => { - 'sub' => sub { feature_bool('highlight', @_) }, - 'override' => 0, - 'default' => [0]}, - - # Enable displaying of remote heads in the heads list - - # To enable system wide have in $GITWEB_CONFIG - # $feature{'remote_heads'}{'default'} = [1]; - # To have project specific config enable override in $GITWEB_CONFIG - # $feature{'remote_heads'}{'override'} = 1; - # and in project config gitweb.remoteheads = 0|1; - 'remote_heads' => { - 'sub' => sub { feature_bool('remote_heads', @_) }, - 'override' => 0, - 'default' => [0]}, - - # Enable showing branches under other refs in addition to heads - - # To set system wide extra branch refs have in $GITWEB_CONFIG - # $feature{'extra-branch-refs'}{'default'} = ['dirs', 'of', 'choice']; - # To have project specific config enable override in $GITWEB_CONFIG - # $feature{'extra-branch-refs'}{'override'} = 1; - # and in project config gitweb.extrabranchrefs = dirs of choice - # Every directory is separated with whitespace. - - 'extra-branch-refs' => { - 'sub' => \&feature_extra_branch_refs, - 'override' => 0, - 'default' => []}, -); - -sub gitweb_get_feature { - my ($name) = @_; - return unless exists $feature{$name}; - my ($sub, $override, @defaults) = ( - $feature{$name}{'sub'}, - $feature{$name}{'override'}, - @{$feature{$name}{'default'}}); - # project specific override is possible only if we have project - our $git_dir; # global variable, declared later - if (!$override || !defined $git_dir) { - return @defaults; - } - if (!defined $sub) { - warn "feature $name is not overridable"; - return @defaults; - } - return $sub->(@defaults); -} - -# A wrapper to check if a given feature is enabled. -# With this, you can say -# -# my $bool_feat = gitweb_check_feature('bool_feat'); -# gitweb_check_feature('bool_feat') or somecode; -# -# instead of -# -# my ($bool_feat) = gitweb_get_feature('bool_feat'); -# (gitweb_get_feature('bool_feat'))[0] or somecode; -# -sub gitweb_check_feature { - return (gitweb_get_feature(@_))[0]; -} - - -sub feature_bool { - my $key = shift; - my ($val) = git_get_project_config($key, '--bool'); - - if (!defined $val) { - return ($_[0]); - } elsif ($val eq 'true') { - return (1); - } elsif ($val eq 'false') { - return (0); - } -} - -sub feature_snapshot { - my (@fmts) = @_; - - my ($val) = git_get_project_config('snapshot'); - - if ($val) { - @fmts = ($val eq 'none' ? () : split /\s*[,\s]\s*/, $val); - } - - return @fmts; -} - -sub feature_patches { - my @val = (git_get_project_config('patches', '--int')); - - if (@val) { - return @val; - } - - return ($_[0]); -} - -sub feature_avatar { - my @val = (git_get_project_config('avatar')); - - return @val ? @val : @_; -} - -sub feature_extra_branch_refs { - my (@branch_refs) = @_; - my $values = git_get_project_config('extrabranchrefs'); - - if ($values) { - $values = config_to_multi ($values); - @branch_refs = (); - foreach my $value (@{$values}) { - push @branch_refs, split /\s+/, $value; - } - } - - return @branch_refs; -} - -# checking HEAD file with -e is fragile if the repository was -# initialized long time ago (i.e. symlink HEAD) and was pack-ref'ed -# and then pruned. -sub check_head_link { - my ($dir) = @_; - my $headfile = "$dir/HEAD"; - return ((-e $headfile) || - (-l $headfile && readlink($headfile) =~ /^refs\/heads\//)); -} - -sub check_export_ok { - my ($dir) = @_; - return (check_head_link($dir) && - (!$export_ok || -e "$dir/$export_ok") && - (!$export_auth_hook || $export_auth_hook->($dir))); -} - -# process alternate names for backward compatibility -# filter out unsupported (unknown) snapshot formats -sub filter_snapshot_fmts { - my @fmts = @_; - - @fmts = map { - exists $known_snapshot_format_aliases{$_} ? - $known_snapshot_format_aliases{$_} : $_} @fmts; - @fmts = grep { - exists $known_snapshot_formats{$_} && - !$known_snapshot_formats{$_}{'disabled'}} @fmts; -} - -sub filter_and_validate_refs { - my @refs = @_; - my %unique_refs = (); - - foreach my $ref (@refs) { - die_error(500, "Invalid ref '$ref' in 'extra-branch-refs' feature") unless (is_valid_ref_format($ref)); - # 'heads' are added implicitly in get_branch_refs(). - $unique_refs{$ref} = 1 if ($ref ne 'heads'); - } - return sort keys %unique_refs; -} - -# If it is set to code reference, it is code that it is to be run once per -# request, allowing updating configurations that change with each request, -# while running other code in config file only once. -# -# Otherwise, if it is false then gitweb would process config file only once; -# if it is true then gitweb config would be run for each request. -our $per_request_config = 1; - -# read and parse gitweb config file given by its parameter. -# returns true on success, false on recoverable error, allowing -# to chain this subroutine, using first file that exists. -# dies on errors during parsing config file, as it is unrecoverable. -sub read_config_file { - my $filename = shift; - return unless defined $filename; - # die if there are errors parsing config file - if (-e $filename) { - do $filename; - die $@ if $@; - return 1; - } - return; -} - -our ($GITWEB_CONFIG, $GITWEB_CONFIG_SYSTEM, $GITWEB_CONFIG_COMMON); -sub evaluate_gitweb_config { - our $GITWEB_CONFIG = $ENV{'GITWEB_CONFIG'} || "gitweb_config.perl"; - our $GITWEB_CONFIG_SYSTEM = $ENV{'GITWEB_CONFIG_SYSTEM'} || "/etc/gitweb.conf"; - our $GITWEB_CONFIG_COMMON = $ENV{'GITWEB_CONFIG_COMMON'} || "/etc/gitweb-common.conf"; - - # Protect against duplications of file names, to not read config twice. - # Only one of $GITWEB_CONFIG and $GITWEB_CONFIG_SYSTEM is used, so - # there possibility of duplication of filename there doesn't matter. - $GITWEB_CONFIG = "" if ($GITWEB_CONFIG eq $GITWEB_CONFIG_COMMON); - $GITWEB_CONFIG_SYSTEM = "" if ($GITWEB_CONFIG_SYSTEM eq $GITWEB_CONFIG_COMMON); - - # Common system-wide settings for convenience. - # Those settings can be ovverriden by GITWEB_CONFIG or GITWEB_CONFIG_SYSTEM. - read_config_file($GITWEB_CONFIG_COMMON); - - # Use first config file that exists. This means use the per-instance - # GITWEB_CONFIG if exists, otherwise use GITWEB_SYSTEM_CONFIG. - read_config_file($GITWEB_CONFIG) and return; - read_config_file($GITWEB_CONFIG_SYSTEM); -} - -# Get loadavg of system, to compare against $maxload. -# Currently it requires '/proc/loadavg' present to get loadavg; -# if it is not present it returns 0, which means no load checking. -sub get_loadavg { - if( -e '/proc/loadavg' ){ - open my $fd, '<', '/proc/loadavg' - or return 0; - my @load = split(/\s+/, scalar <$fd>); - close $fd; - - # The first three columns measure CPU and IO utilization of the last one, - # five, and 10 minute periods. The fourth column shows the number of - # currently running processes and the total number of processes in the m/n - # format. The last column displays the last process ID used. - return $load[0] || 0; - } - # additional checks for load average should go here for things that don't export - # /proc/loadavg - - return 0; -} - -# version of the core git binary -our $git_version; -sub evaluate_git_version { - our $git_version = qx("$GIT" --version) =~ m/git version (.*)$/ ? $1 : "unknown"; - $number_of_git_cmds++; -} - -sub check_loadavg { - if (defined $maxload && get_loadavg() > $maxload) { - die_error(503, "The load average on the server is too high"); - } -} - -# ====================================================================== -# input validation and dispatch - -# input parameters can be collected from a variety of sources (presently, CGI -# and PATH_INFO), so we define an %input_params hash that collects them all -# together during validation: this allows subsequent uses (e.g. href()) to be -# agnostic of the parameter origin - -our %input_params = (); - -# input parameters are stored with the long parameter name as key. This will -# also be used in the href subroutine to convert parameters to their CGI -# equivalent, and since the href() usage is the most frequent one, we store -# the name -> CGI key mapping here, instead of the reverse. -# -# XXX: Warning: If you touch this, check the search form for updating, -# too. - -our @cgi_param_mapping = ( - project => "p", - action => "a", - file_name => "f", - file_parent => "fp", - hash => "h", - hash_parent => "hp", - hash_base => "hb", - hash_parent_base => "hpb", - page => "pg", - order => "o", - searchtext => "s", - searchtype => "st", - snapshot_format => "sf", - extra_options => "opt", - search_use_regexp => "sr", - ctag => "by_tag", - diff_style => "ds", - project_filter => "pf", - # this must be last entry (for manipulation from JavaScript) - javascript => "js" -); -our %cgi_param_mapping = @cgi_param_mapping; - -# we will also need to know the possible actions, for validation -our %actions = ( - "blame" => \&git_blame, - "blame_incremental" => \&git_blame_incremental, - "blame_data" => \&git_blame_data, - "blobdiff" => \&git_blobdiff, - "blobdiff_plain" => \&git_blobdiff_plain, - "blob" => \&git_blob, - "blob_plain" => \&git_blob_plain, - "commitdiff" => \&git_commitdiff, - "commitdiff_plain" => \&git_commitdiff_plain, - "commit" => \&git_commit, - "forks" => \&git_forks, - "heads" => \&git_heads, - "history" => \&git_history, - "log" => \&git_log, - "patch" => \&git_patch, - "patches" => \&git_patches, - "remotes" => \&git_remotes, - "rss" => \&git_rss, - "atom" => \&git_atom, - "search" => \&git_search, - "search_help" => \&git_search_help, - "shortlog" => \&git_shortlog, - "summary" => \&git_summary, - "tag" => \&git_tag, - "tags" => \&git_tags, - "tree" => \&git_tree, - "snapshot" => \&git_snapshot, - "object" => \&git_object, - # those below don't need $project - "opml" => \&git_opml, - "project_list" => \&git_project_list, - "project_index" => \&git_project_index, -); - -# finally, we have the hash of allowed extra_options for the commands that -# allow them -our %allowed_options = ( - "--no-merges" => [ qw(rss atom log shortlog history) ], -); - -# fill %input_params with the CGI parameters. All values except for 'opt' -# should be single values, but opt can be an array. We should probably -# build an array of parameters that can be multi-valued, but since for the time -# being it's only this one, we just single it out -sub evaluate_query_params { - our $cgi; - - while (my ($name, $symbol) = each %cgi_param_mapping) { - if ($symbol eq 'opt') { - $input_params{$name} = [ map { decode_utf8($_) } $cgi->multi_param($symbol) ]; - } else { - $input_params{$name} = decode_utf8($cgi->param($symbol)); - } - } -} - -# now read PATH_INFO and update the parameter list for missing parameters -sub evaluate_path_info { - return if defined $input_params{'project'}; - return if !$path_info; - $path_info =~ s,^/+,,; - return if !$path_info; - - # find which part of PATH_INFO is project - my $project = $path_info; - $project =~ s,/+$,,; - while ($project && !check_head_link("$projectroot/$project")) { - $project =~ s,/*[^/]*$,,; - } - return unless $project; - $input_params{'project'} = $project; - - # do not change any parameters if an action is given using the query string - return if $input_params{'action'}; - $path_info =~ s,^\Q$project\E/*,,; - - # next, check if we have an action - my $action = $path_info; - $action =~ s,/.*$,,; - if (exists $actions{$action}) { - $path_info =~ s,^$action/*,,; - $input_params{'action'} = $action; - } - - # list of actions that want hash_base instead of hash, but can have no - # pathname (f) parameter - my @wants_base = ( - 'tree', - 'history', - ); - - # we want to catch, among others - # [$hash_parent_base[:$file_parent]..]$hash_parent[:$file_name] - my ($parentrefname, $parentpathname, $refname, $pathname) = - ($path_info =~ /^(?:(.+?)(?::(.+))?\.\.)?([^:]+?)?(?::(.+))?$/); - - # first, analyze the 'current' part - if (defined $pathname) { - # we got "branch:filename" or "branch:dir/" - # we could use git_get_type(branch:pathname), but: - # - it needs $git_dir - # - it does a git() call - # - the convention of terminating directories with a slash - # makes it superfluous - # - embedding the action in the PATH_INFO would make it even - # more superfluous - $pathname =~ s,^/+,,; - if (!$pathname || substr($pathname, -1) eq "/") { - $input_params{'action'} ||= "tree"; - $pathname =~ s,/$,,; - } else { - # the default action depends on whether we had parent info - # or not - if ($parentrefname) { - $input_params{'action'} ||= "blobdiff_plain"; - } else { - $input_params{'action'} ||= "blob_plain"; - } - } - $input_params{'hash_base'} ||= $refname; - $input_params{'file_name'} ||= $pathname; - } elsif (defined $refname) { - # we got "branch". In this case we have to choose if we have to - # set hash or hash_base. - # - # Most of the actions without a pathname only want hash to be - # set, except for the ones specified in @wants_base that want - # hash_base instead. It should also be noted that hand-crafted - # links having 'history' as an action and no pathname or hash - # set will fail, but that happens regardless of PATH_INFO. - if (defined $parentrefname) { - # if there is parent let the default be 'shortlog' action - # (for http://git.example.com/repo.git/A..B links); if there - # is no parent, dispatch will detect type of object and set - # action appropriately if required (if action is not set) - $input_params{'action'} ||= "shortlog"; - } - if ($input_params{'action'} && - grep { $_ eq $input_params{'action'} } @wants_base) { - $input_params{'hash_base'} ||= $refname; - } else { - $input_params{'hash'} ||= $refname; - } - } - - # next, handle the 'parent' part, if present - if (defined $parentrefname) { - # a missing pathspec defaults to the 'current' filename, allowing e.g. - # someproject/blobdiff/oldrev..newrev:/filename - if ($parentpathname) { - $parentpathname =~ s,^/+,,; - $parentpathname =~ s,/$,,; - $input_params{'file_parent'} ||= $parentpathname; - } else { - $input_params{'file_parent'} ||= $input_params{'file_name'}; - } - # we assume that hash_parent_base is wanted if a path was specified, - # or if the action wants hash_base instead of hash - if (defined $input_params{'file_parent'} || - grep { $_ eq $input_params{'action'} } @wants_base) { - $input_params{'hash_parent_base'} ||= $parentrefname; - } else { - $input_params{'hash_parent'} ||= $parentrefname; - } - } - - # for the snapshot action, we allow URLs in the form - # $project/snapshot/$hash.ext - # where .ext determines the snapshot and gets removed from the - # passed $refname to provide the $hash. - # - # To be able to tell that $refname includes the format extension, we - # require the following two conditions to be satisfied: - # - the hash input parameter MUST have been set from the $refname part - # of the URL (i.e. they must be equal) - # - the snapshot format MUST NOT have been defined already (e.g. from - # CGI parameter sf) - # It's also useless to try any matching unless $refname has a dot, - # so we check for that too - if (defined $input_params{'action'} && - $input_params{'action'} eq 'snapshot' && - defined $refname && index($refname, '.') != -1 && - $refname eq $input_params{'hash'} && - !defined $input_params{'snapshot_format'}) { - # We loop over the known snapshot formats, checking for - # extensions. Allowed extensions are both the defined suffix - # (which includes the initial dot already) and the snapshot - # format key itself, with a prepended dot - while (my ($fmt, $opt) = each %known_snapshot_formats) { - my $hash = $refname; - unless ($hash =~ s/(\Q$opt->{'suffix'}\E|\Q.$fmt\E)$//) { - next; - } - my $sfx = $1; - # a valid suffix was found, so set the snapshot format - # and reset the hash parameter - $input_params{'snapshot_format'} = $fmt; - $input_params{'hash'} = $hash; - # we also set the format suffix to the one requested - # in the URL: this way a request for e.g. .tgz returns - # a .tgz instead of a .tar.gz - $known_snapshot_formats{$fmt}{'suffix'} = $sfx; - last; - } - } -} - -our ($action, $project, $file_name, $file_parent, $hash, $hash_parent, $hash_base, - $hash_parent_base, @extra_options, $page, $searchtype, $search_use_regexp, - $searchtext, $search_regexp, $project_filter); -sub evaluate_and_validate_params { - our $action = $input_params{'action'}; - if (defined $action) { - if (!is_valid_action($action)) { - die_error(400, "Invalid action parameter"); - } - } - - # parameters which are pathnames - our $project = $input_params{'project'}; - if (defined $project) { - if (!is_valid_project($project)) { - undef $project; - die_error(404, "No such project"); - } - } - - our $project_filter = $input_params{'project_filter'}; - if (defined $project_filter) { - if (!is_valid_pathname($project_filter)) { - die_error(404, "Invalid project_filter parameter"); - } - } - - our $file_name = $input_params{'file_name'}; - if (defined $file_name) { - if (!is_valid_pathname($file_name)) { - die_error(400, "Invalid file parameter"); - } - } - - our $file_parent = $input_params{'file_parent'}; - if (defined $file_parent) { - if (!is_valid_pathname($file_parent)) { - die_error(400, "Invalid file parent parameter"); - } - } - - # parameters which are refnames - our $hash = $input_params{'hash'}; - if (defined $hash) { - if (!is_valid_refname($hash)) { - die_error(400, "Invalid hash parameter"); - } - } - - our $hash_parent = $input_params{'hash_parent'}; - if (defined $hash_parent) { - if (!is_valid_refname($hash_parent)) { - die_error(400, "Invalid hash parent parameter"); - } - } - - our $hash_base = $input_params{'hash_base'}; - if (defined $hash_base) { - if (!is_valid_refname($hash_base)) { - die_error(400, "Invalid hash base parameter"); - } - } - - our @extra_options = @{$input_params{'extra_options'}}; - # @extra_options is always defined, since it can only be (currently) set from - # CGI, and $cgi->param() returns the empty array in array context if the param - # is not set - foreach my $opt (@extra_options) { - if (not exists $allowed_options{$opt}) { - die_error(400, "Invalid option parameter"); - } - if (not grep(/^$action$/, @{$allowed_options{$opt}})) { - die_error(400, "Invalid option parameter for this action"); - } - } - - our $hash_parent_base = $input_params{'hash_parent_base'}; - if (defined $hash_parent_base) { - if (!is_valid_refname($hash_parent_base)) { - die_error(400, "Invalid hash parent base parameter"); - } - } - - # other parameters - our $page = $input_params{'page'}; - if (defined $page) { - if ($page =~ m/[^0-9]/) { - die_error(400, "Invalid page parameter"); - } - } - - our $searchtype = $input_params{'searchtype'}; - if (defined $searchtype) { - if ($searchtype =~ m/[^a-z]/) { - die_error(400, "Invalid searchtype parameter"); - } - } - - our $search_use_regexp = $input_params{'search_use_regexp'}; - - our $searchtext = $input_params{'searchtext'}; - our $search_regexp = undef; - if (defined $searchtext) { - if (length($searchtext) < 2) { - die_error(403, "At least two characters are required for search parameter"); - } - if ($search_use_regexp) { - $search_regexp = $searchtext; - if (!eval { qr/$search_regexp/; 1; }) { - (my $error = $@) =~ s/ at \S+ line \d+.*\n?//; - die_error(400, "Invalid search regexp '$search_regexp'", - esc_html($error)); - } - } else { - $search_regexp = quotemeta $searchtext; - } - } -} - -# path to the current git repository -our $git_dir; -sub evaluate_git_dir { - our $git_dir = "$projectroot/$project" if $project; -} - -our (@snapshot_fmts, $git_avatar, @extra_branch_refs); -sub configure_gitweb_features { - # list of supported snapshot formats - our @snapshot_fmts = gitweb_get_feature('snapshot'); - @snapshot_fmts = filter_snapshot_fmts(@snapshot_fmts); - - our ($git_avatar) = gitweb_get_feature('avatar'); - $git_avatar = '' unless $git_avatar =~ /^(?:gravatar|picon)$/s; - - our @extra_branch_refs = gitweb_get_feature('extra-branch-refs'); - @extra_branch_refs = filter_and_validate_refs (@extra_branch_refs); -} - -sub get_branch_refs { - return ('heads', @extra_branch_refs); -} - -# custom error handler: 'die ' is Internal Server Error -sub handle_errors_html { - my $msg = shift; # it is already HTML escaped - - # to avoid infinite loop where error occurs in die_error, - # change handler to default handler, disabling handle_errors_html - set_message("Error occurred when inside die_error:\n$msg"); - - # you cannot jump out of die_error when called as error handler; - # the subroutine set via CGI::Carp::set_message is called _after_ - # HTTP headers are already written, so it cannot write them itself - die_error(undef, undef, $msg, -error_handler => 1, -no_http_header => 1); -} -set_message(\&handle_errors_html); - -# dispatch -sub dispatch { - if (!defined $action) { - if (defined $hash) { - $action = git_get_type($hash); - $action or die_error(404, "Object does not exist"); - } elsif (defined $hash_base && defined $file_name) { - $action = git_get_type("$hash_base:$file_name"); - $action or die_error(404, "File or directory does not exist"); - } elsif (defined $project) { - $action = 'summary'; - } else { - $action = 'project_list'; - } - } - if (!defined($actions{$action})) { - die_error(400, "Unknown action"); - } - if ($action !~ m/^(?:opml|project_list|project_index)$/ && - !$project) { - die_error(400, "Project needed"); - } - $actions{$action}->(); -} - -sub reset_timer { - our $t0 = [ gettimeofday() ] - if defined $t0; - our $number_of_git_cmds = 0; -} - -our $first_request = 1; -sub run_request { - reset_timer(); - - evaluate_uri(); - if ($first_request) { - evaluate_gitweb_config(); - evaluate_git_version(); - } - if ($per_request_config) { - if (ref($per_request_config) eq 'CODE') { - $per_request_config->(); - } elsif (!$first_request) { - evaluate_gitweb_config(); - } - } - check_loadavg(); - - # $projectroot and $projects_list might be set in gitweb config file - $projects_list ||= $projectroot; - - evaluate_query_params(); - evaluate_path_info(); - evaluate_and_validate_params(); - evaluate_git_dir(); - - configure_gitweb_features(); - - dispatch(); -} - -our $is_last_request = sub { 1 }; -our ($pre_dispatch_hook, $post_dispatch_hook, $pre_listen_hook); -our $CGI = 'CGI'; -our $cgi; -sub configure_as_fcgi { - require CGI::Fast; - our $CGI = 'CGI::Fast'; - - my $request_number = 0; - # let each child service 100 requests - our $is_last_request = sub { ++$request_number > 100 }; -} -sub evaluate_argv { - my $script_name = $ENV{'SCRIPT_NAME'} || $ENV{'SCRIPT_FILENAME'} || __FILE__; - configure_as_fcgi() - if $script_name =~ /\.fcgi$/; - - return unless (@ARGV); - - require Getopt::Long; - Getopt::Long::GetOptions( - 'fastcgi|fcgi|f' => \&configure_as_fcgi, - 'nproc|n=i' => sub { - my ($arg, $val) = @_; - return unless eval { require FCGI::ProcManager; 1; }; - my $proc_manager = FCGI::ProcManager->new({ - n_processes => $val, - }); - our $pre_listen_hook = sub { $proc_manager->pm_manage() }; - our $pre_dispatch_hook = sub { $proc_manager->pm_pre_dispatch() }; - our $post_dispatch_hook = sub { $proc_manager->pm_post_dispatch() }; - }, - ); -} - -sub run { - evaluate_argv(); - - $first_request = 1; - $pre_listen_hook->() - if $pre_listen_hook; - - REQUEST: - while ($cgi = $CGI->new()) { - $pre_dispatch_hook->() - if $pre_dispatch_hook; - - run_request(); - - $post_dispatch_hook->() - if $post_dispatch_hook; - $first_request = 0; - - last REQUEST if ($is_last_request->()); - } - - DONE_GITWEB: - 1; -} - -run(); - -if (defined caller) { - # wrapped in a subroutine processing requests, - # e.g. mod_perl with ModPerl::Registry, or PSGI with Plack::App::WrapCGI - return; -} else { - # pure CGI script, serving single request - exit; -} - -## ====================================================================== -## action links - -# possible values of extra options -# -full => 0|1 - use absolute/full URL ($my_uri/$my_url as base) -# -replay => 1 - start from a current view (replay with modifications) -# -path_info => 0|1 - don't use/use path_info URL (if possible) -# -anchor => ANCHOR - add #ANCHOR to end of URL, implies -replay if used alone -sub href { - my %params = @_; - # default is to use -absolute url() i.e. $my_uri - my $href = $params{-full} ? $my_url : $my_uri; - - # implicit -replay, must be first of implicit params - $params{-replay} = 1 if (keys %params == 1 && $params{-anchor}); - - $params{'project'} = $project unless exists $params{'project'}; - - if ($params{-replay}) { - while (my ($name, $symbol) = each %cgi_param_mapping) { - if (!exists $params{$name}) { - $params{$name} = $input_params{$name}; - } - } - } - - my $use_pathinfo = gitweb_check_feature('pathinfo'); - if (defined $params{'project'} && - (exists $params{-path_info} ? $params{-path_info} : $use_pathinfo)) { - # try to put as many parameters as possible in PATH_INFO: - # - project name - # - action - # - hash_parent or hash_parent_base:/file_parent - # - hash or hash_base:/filename - # - the snapshot_format as an appropriate suffix - - # When the script is the root DirectoryIndex for the domain, - # $href here would be something like http://gitweb.example.com/ - # Thus, we strip any trailing / from $href, to spare us double - # slashes in the final URL - $href =~ s,/$,,; - - # Then add the project name, if present - $href .= "/".esc_path_info($params{'project'}); - delete $params{'project'}; - - # since we destructively absorb parameters, we keep this - # boolean that remembers if we're handling a snapshot - my $is_snapshot = $params{'action'} eq 'snapshot'; - - # Summary just uses the project path URL, any other action is - # added to the URL - if (defined $params{'action'}) { - $href .= "/".esc_path_info($params{'action'}) - unless $params{'action'} eq 'summary'; - delete $params{'action'}; - } - - # Next, we put hash_parent_base:/file_parent..hash_base:/file_name, - # stripping nonexistent or useless pieces - $href .= "/" if ($params{'hash_base'} || $params{'hash_parent_base'} - || $params{'hash_parent'} || $params{'hash'}); - if (defined $params{'hash_base'}) { - if (defined $params{'hash_parent_base'}) { - $href .= esc_path_info($params{'hash_parent_base'}); - # skip the file_parent if it's the same as the file_name - if (defined $params{'file_parent'}) { - if (defined $params{'file_name'} && $params{'file_parent'} eq $params{'file_name'}) { - delete $params{'file_parent'}; - } elsif ($params{'file_parent'} !~ /\.\./) { - $href .= ":/".esc_path_info($params{'file_parent'}); - delete $params{'file_parent'}; - } - } - $href .= ".."; - delete $params{'hash_parent'}; - delete $params{'hash_parent_base'}; - } elsif (defined $params{'hash_parent'}) { - $href .= esc_path_info($params{'hash_parent'}). ".."; - delete $params{'hash_parent'}; - } - - $href .= esc_path_info($params{'hash_base'}); - if (defined $params{'file_name'} && $params{'file_name'} !~ /\.\./) { - $href .= ":/".esc_path_info($params{'file_name'}); - delete $params{'file_name'}; - } - delete $params{'hash'}; - delete $params{'hash_base'}; - } elsif (defined $params{'hash'}) { - $href .= esc_path_info($params{'hash'}); - delete $params{'hash'}; - } - - # If the action was a snapshot, we can absorb the - # snapshot_format parameter too - if ($is_snapshot) { - my $fmt = $params{'snapshot_format'}; - # snapshot_format should always be defined when href() - # is called, but just in case some code forgets, we - # fall back to the default - $fmt ||= $snapshot_fmts[0]; - $href .= $known_snapshot_formats{$fmt}{'suffix'}; - delete $params{'snapshot_format'}; - } - } - - # now encode the parameters explicitly - my @result = (); - for (my $i = 0; $i < @cgi_param_mapping; $i += 2) { - my ($name, $symbol) = ($cgi_param_mapping[$i], $cgi_param_mapping[$i+1]); - if (defined $params{$name}) { - if (ref($params{$name}) eq "ARRAY") { - foreach my $par (@{$params{$name}}) { - push @result, $symbol . "=" . esc_param($par); - } - } else { - push @result, $symbol . "=" . esc_param($params{$name}); - } - } - } - $href .= "?" . join(';', @result) if scalar @result; - - # final transformation: trailing spaces must be escaped (URI-encoded) - $href =~ s/(\s+)$/CGI::escape($1)/e; - - if ($params{-anchor}) { - $href .= "#".esc_param($params{-anchor}); - } - - return $href; -} - - -## ====================================================================== -## validation, quoting/unquoting and escaping - -sub is_valid_action { - my $input = shift; - return undef unless exists $actions{$input}; - return 1; -} - -sub is_valid_project { - my $input = shift; - - return unless defined $input; - if (!is_valid_pathname($input) || - !(-d "$projectroot/$input") || - !check_export_ok("$projectroot/$input") || - ($strict_export && !project_in_list($input))) { - return undef; - } else { - return 1; - } -} - -sub is_valid_pathname { - my $input = shift; - - return undef unless defined $input; - # no '.' or '..' as elements of path, i.e. no '.' or '..' - # at the beginning, at the end, and between slashes. - # also this catches doubled slashes - if ($input =~ m!(^|/)(|\.|\.\.)(/|$)!) { - return undef; - } - # no null characters - if ($input =~ m!\0!) { - return undef; - } - return 1; -} - -sub is_valid_ref_format { - my $input = shift; - - return undef unless defined $input; - # restrictions on ref name according to git-check-ref-format - if ($input =~ m!(/\.|\.\.|[\000-\040\177 ~^:?*\[]|/$)!) { - return undef; - } - return 1; -} - -sub is_valid_refname { - my $input = shift; - - return undef unless defined $input; - # textual hashes are O.K. - if ($input =~ m/^[0-9a-fA-F]{40}$/) { - return 1; - } - # it must be correct pathname - is_valid_pathname($input) or return undef; - # check git-check-ref-format restrictions - is_valid_ref_format($input) or return undef; - return 1; -} - -# decode sequences of octets in utf8 into Perl's internal form, -# which is utf-8 with utf8 flag set if needed. gitweb writes out -# in utf-8 thanks to "binmode STDOUT, ':utf8'" at beginning -sub to_utf8 { - my $str = shift; - return undef unless defined $str; - - if (utf8::is_utf8($str) || utf8::decode($str)) { - return $str; - } else { - return decode($fallback_encoding, $str, Encode::FB_DEFAULT); - } -} - -# quote unsafe chars, but keep the slash, even when it's not -# correct, but quoted slashes look too horrible in bookmarks -sub esc_param { - my $str = shift; - return undef unless defined $str; - $str =~ s/([^A-Za-z0-9\-_.~()\/:@ ]+)/CGI::escape($1)/eg; - $str =~ s/ /\+/g; - return $str; -} - -# the quoting rules for path_info fragment are slightly different -sub esc_path_info { - my $str = shift; - return undef unless defined $str; - - # path_info doesn't treat '+' as space (specially), but '?' must be escaped - $str =~ s/([^A-Za-z0-9\-_.~();\/;:@&= +]+)/CGI::escape($1)/eg; - - return $str; -} - -# quote unsafe chars in whole URL, so some characters cannot be quoted -sub esc_url { - my $str = shift; - return undef unless defined $str; - $str =~ s/([^A-Za-z0-9\-_.~();\/;?:@&= ]+)/CGI::escape($1)/eg; - $str =~ s/ /\+/g; - return $str; -} - -# quote unsafe characters in HTML attributes -sub esc_attr { - - # for XHTML conformance escaping '"' to '"' is not enough - return esc_html(@_); -} - -# replace invalid utf8 character with SUBSTITUTION sequence -sub esc_html { - my $str = shift; - my %opts = @_; - - return undef unless defined $str; - - $str = to_utf8($str); - $str = $cgi->escapeHTML($str); - if ($opts{'-nbsp'}) { - $str =~ s/ / /g; - } - $str =~ s|([[:cntrl:]])|(($1 ne "\t") ? quot_cec($1) : $1)|eg; - return $str; -} - -# quote control characters and escape filename to HTML -sub esc_path { - my $str = shift; - my %opts = @_; - - return undef unless defined $str; - - $str = to_utf8($str); - $str = $cgi->escapeHTML($str); - if ($opts{'-nbsp'}) { - $str =~ s/ / /g; - } - $str =~ s|([[:cntrl:]])|quot_cec($1)|eg; - return $str; -} - -# Sanitize for use in XHTML + application/xml+xhtml (valid XML 1.0) -sub sanitize { - my $str = shift; - - return undef unless defined $str; - - $str = to_utf8($str); - $str =~ s|([[:cntrl:]])|(index("\t\n\r", $1) != -1 ? $1 : quot_cec($1))|eg; - return $str; -} - -# Make control characters "printable", using character escape codes (CEC) -sub quot_cec { - my $cntrl = shift; - my %opts = @_; - my %es = ( # character escape codes, aka escape sequences - "\t" => '\t', # tab (HT) - "\n" => '\n', # line feed (LF) - "\r" => '\r', # carrige return (CR) - "\f" => '\f', # form feed (FF) - "\b" => '\b', # backspace (BS) - "\a" => '\a', # alarm (bell) (BEL) - "\e" => '\e', # escape (ESC) - "\013" => '\v', # vertical tab (VT) - "\000" => '\0', # nul character (NUL) - ); - my $chr = ( (exists $es{$cntrl}) - ? $es{$cntrl} - : sprintf('\%2x', ord($cntrl)) ); - if ($opts{-nohtml}) { - return $chr; - } else { - return "$chr"; - } -} - -# Alternatively use unicode control pictures codepoints, -# Unicode "printable representation" (PR) -sub quot_upr { - my $cntrl = shift; - my %opts = @_; - - my $chr = sprintf('&#%04d;', 0x2400+ord($cntrl)); - if ($opts{-nohtml}) { - return $chr; - } else { - return "$chr"; - } -} - -# git may return quoted and escaped filenames -sub unquote { - my $str = shift; - - sub unq { - my $seq = shift; - my %es = ( # character escape codes, aka escape sequences - 't' => "\t", # tab (HT, TAB) - 'n' => "\n", # newline (NL) - 'r' => "\r", # return (CR) - 'f' => "\f", # form feed (FF) - 'b' => "\b", # backspace (BS) - 'a' => "\a", # alarm (bell) (BEL) - 'e' => "\e", # escape (ESC) - 'v' => "\013", # vertical tab (VT) - ); - - if ($seq =~ m/^[0-7]{1,3}$/) { - # octal char sequence - return chr(oct($seq)); - } elsif (exists $es{$seq}) { - # C escape sequence, aka character escape code - return $es{$seq}; - } - # quoted ordinary character - return $seq; - } - - if ($str =~ m/^"(.*)"$/) { - # needs unquoting - $str = $1; - $str =~ s/\\([^0-7]|[0-7]{1,3})/unq($1)/eg; - } - return $str; -} - -# escape tabs (convert tabs to spaces) -sub untabify { - my $line = shift; - - while ((my $pos = index($line, "\t")) != -1) { - if (my $count = (8 - ($pos % 8))) { - my $spaces = ' ' x $count; - $line =~ s/\t/$spaces/; - } - } - - return $line; -} - -sub project_in_list { - my $project = shift; - my @list = git_get_projects_list(); - return @list && scalar(grep { $_->{'path'} eq $project } @list); -} - -## ---------------------------------------------------------------------- -## HTML aware string manipulation - -# Try to chop given string on a word boundary between position -# $len and $len+$add_len. If there is no word boundary there, -# chop at $len+$add_len. Do not chop if chopped part plus ellipsis -# (marking chopped part) would be longer than given string. -sub chop_str { - my $str = shift; - my $len = shift; - my $add_len = shift || 10; - my $where = shift || 'right'; # 'left' | 'center' | 'right' - - # Make sure perl knows it is utf8 encoded so we don't - # cut in the middle of a utf8 multibyte char. - $str = to_utf8($str); - - # allow only $len chars, but don't cut a word if it would fit in $add_len - # if it doesn't fit, cut it if it's still longer than the dots we would add - # remove chopped character entities entirely - - # when chopping in the middle, distribute $len into left and right part - # return early if chopping wouldn't make string shorter - if ($where eq 'center') { - return $str if ($len + 5 >= length($str)); # filler is length 5 - $len = int($len/2); - } else { - return $str if ($len + 4 >= length($str)); # filler is length 4 - } - - # regexps: ending and beginning with word part up to $add_len - my $endre = qr/.{$len}\w{0,$add_len}/; - my $begre = qr/\w{0,$add_len}.{$len}/; - - if ($where eq 'left') { - $str =~ m/^(.*?)($begre)$/; - my ($lead, $body) = ($1, $2); - if (length($lead) > 4) { - $lead = " ..."; - } - return "$lead$body"; - - } elsif ($where eq 'center') { - $str =~ m/^($endre)(.*)$/; - my ($left, $str) = ($1, $2); - $str =~ m/^(.*?)($begre)$/; - my ($mid, $right) = ($1, $2); - if (length($mid) > 5) { - $mid = " ... "; - } - return "$left$mid$right"; - - } else { - $str =~ m/^($endre)(.*)$/; - my $body = $1; - my $tail = $2; - if (length($tail) > 4) { - $tail = "... "; - } - return "$body$tail"; - } -} - -# takes the same arguments as chop_str, but also wraps a around the -# result with a title attribute if it does get chopped. Additionally, the -# string is HTML-escaped. -sub chop_and_escape_str { - my ($str) = @_; - - my $chopped = chop_str(@_); - $str = to_utf8($str); - if ($chopped eq $str) { - return esc_html($chopped); - } else { - $str =~ s/[[:cntrl:]]/?/g; - return $cgi->span({-title=>$str}, esc_html($chopped)); - } -} - -# Highlight selected fragments of string, using given CSS class, -# and escape HTML. It is assumed that fragments do not overlap. -# Regions are passed as list of pairs (array references). -# -# Example: esc_html_hl_regions("foobar", "mark", [ 0, 3 ]) returns -# 'foobar' -sub esc_html_hl_regions { - my ($str, $css_class, @sel) = @_; - my %opts = grep { ref($_) ne 'ARRAY' } @sel; - @sel = grep { ref($_) eq 'ARRAY' } @sel; - return esc_html($str, %opts) unless @sel; - - my $out = ''; - my $pos = 0; - - for my $s (@sel) { - my ($begin, $end) = @$s; - - # Don't create empty elements. - next if $end <= $begin; - - my $escaped = esc_html(substr($str, $begin, $end - $begin), - %opts); - - $out .= esc_html(substr($str, $pos, $begin - $pos), %opts) - if ($begin - $pos > 0); - $out .= $cgi->span({-class => $css_class}, $escaped); - - $pos = $end; - } - $out .= esc_html(substr($str, $pos), %opts) - if ($pos < length($str)); - - return $out; -} - -# return positions of beginning and end of each match -sub matchpos_list { - my ($str, $regexp) = @_; - return unless (defined $str && defined $regexp); - - my @matches; - while ($str =~ /$regexp/g) { - push @matches, [$-[0], $+[0]]; - } - return @matches; -} - -# highlight match (if any), and escape HTML -sub esc_html_match_hl { - my ($str, $regexp) = @_; - return esc_html($str) unless defined $regexp; - - my @matches = matchpos_list($str, $regexp); - return esc_html($str) unless @matches; - - return esc_html_hl_regions($str, 'match', @matches); -} - - -# highlight match (if any) of shortened string, and escape HTML -sub esc_html_match_hl_chopped { - my ($str, $chopped, $regexp) = @_; - return esc_html_match_hl($str, $regexp) unless defined $chopped; - - my @matches = matchpos_list($str, $regexp); - return esc_html($chopped) unless @matches; - - # filter matches so that we mark chopped string - my $tail = "... "; # see chop_str - unless ($chopped =~ s/\Q$tail\E$//) { - $tail = ''; - } - my $chop_len = length($chopped); - my $tail_len = length($tail); - my @filtered; - - for my $m (@matches) { - if ($m->[0] > $chop_len) { - push @filtered, [ $chop_len, $chop_len + $tail_len ] if ($tail_len > 0); - last; - } elsif ($m->[1] > $chop_len) { - push @filtered, [ $m->[0], $chop_len + $tail_len ]; - last; - } - push @filtered, $m; - } - - return esc_html_hl_regions($chopped . $tail, 'match', @filtered); -} - -## ---------------------------------------------------------------------- -## functions returning short strings - -# CSS class for given age value (in seconds) -sub age_class { - my $age = shift; - - if (!defined $age) { - return "noage"; - } elsif ($age < 60*60*2) { - return "age0"; - } elsif ($age < 60*60*24*2) { - return "age1"; - } else { - return "age2"; - } -} - -# convert age in seconds to "nn units ago" string -sub age_string { - my $age = shift; - my $age_str; - - if ($age > 60*60*24*365*2) { - $age_str = (int $age/60/60/24/365); - $age_str .= " years ago"; - } elsif ($age > 60*60*24*(365/12)*2) { - $age_str = int $age/60/60/24/(365/12); - $age_str .= " months ago"; - } elsif ($age > 60*60*24*7*2) { - $age_str = int $age/60/60/24/7; - $age_str .= " weeks ago"; - } elsif ($age > 60*60*24*2) { - $age_str = int $age/60/60/24; - $age_str .= " days ago"; - } elsif ($age > 60*60*2) { - $age_str = int $age/60/60; - $age_str .= " hours ago"; - } elsif ($age > 60*2) { - $age_str = int $age/60; - $age_str .= " min ago"; - } elsif ($age > 2) { - $age_str = int $age; - $age_str .= " sec ago"; - } else { - $age_str .= " right now"; - } - return $age_str; -} - -use constant { - S_IFINVALID => 0030000, - S_IFGITLINK => 0160000, -}; - -# submodule/subproject, a commit object reference -sub S_ISGITLINK { - my $mode = shift; - - return (($mode & S_IFMT) == S_IFGITLINK) -} - -# convert file mode in octal to symbolic file mode string -sub mode_str { - my $mode = oct shift; - - if (S_ISGITLINK($mode)) { - return 'm---------'; - } elsif (S_ISDIR($mode & S_IFMT)) { - return 'drwxr-xr-x'; - } elsif (S_ISLNK($mode)) { - return 'lrwxrwxrwx'; - } elsif (S_ISREG($mode)) { - # git cares only about the executable bit - if ($mode & S_IXUSR) { - return '-rwxr-xr-x'; - } else { - return '-rw-r--r--'; - }; - } else { - return '----------'; - } -} - -# convert file mode in octal to file type string -sub file_type { - my $mode = shift; - - if ($mode !~ m/^[0-7]+$/) { - return $mode; - } else { - $mode = oct $mode; - } - - if (S_ISGITLINK($mode)) { - return "submodule"; - } elsif (S_ISDIR($mode & S_IFMT)) { - return "directory"; - } elsif (S_ISLNK($mode)) { - return "symlink"; - } elsif (S_ISREG($mode)) { - return "file"; - } else { - return "unknown"; - } -} - -# convert file mode in octal to file type description string -sub file_type_long { - my $mode = shift; - - if ($mode !~ m/^[0-7]+$/) { - return $mode; - } else { - $mode = oct $mode; - } - - if (S_ISGITLINK($mode)) { - return "submodule"; - } elsif (S_ISDIR($mode & S_IFMT)) { - return "directory"; - } elsif (S_ISLNK($mode)) { - return "symlink"; - } elsif (S_ISREG($mode)) { - if ($mode & S_IXUSR) { - return "executable"; - } else { - return "file"; - }; - } else { - return "unknown"; - } -} - - -## ---------------------------------------------------------------------- -## functions returning short HTML fragments, or transforming HTML fragments -## which don't belong to other sections - -# format line of commit message. -sub format_log_line_html { - my $line = shift; - - $line = esc_html($line, -nbsp=>1); - $line =~ s{ - \b - ( - # The output of "git describe", e.g. v2.10.0-297-gf6727b0 - # or hadoop-20160921-113441-20-g094fb7d - (?a({-href => href(action=>"object", hash=>$1), - -class => "text"}, $1); - }egx; - - return $line; -} - -# format marker of refs pointing to given object - -# the destination action is chosen based on object type and current context: -# - for annotated tags, we choose the tag view unless it's the current view -# already, in which case we go to shortlog view -# - for other refs, we keep the current view if we're in history, shortlog or -# log view, and select shortlog otherwise -sub format_ref_marker { - my ($refs, $id) = @_; - my $markers = ''; - - if (defined $refs->{$id}) { - foreach my $ref (@{$refs->{$id}}) { - # this code exploits the fact that non-lightweight tags are the - # only indirect objects, and that they are the only objects for which - # we want to use tag instead of shortlog as action - my ($type, $name) = qw(); - my $indirect = ($ref =~ s/\^\{\}$//); - # e.g. tags/v2.6.11 or heads/next - if ($ref =~ m!^(.*?)s?/(.*)$!) { - $type = $1; - $name = $2; - } else { - $type = "ref"; - $name = $ref; - } - - my $class = $type; - $class .= " indirect" if $indirect; - - my $dest_action = "shortlog"; - - if ($indirect) { - $dest_action = "tag" unless $action eq "tag"; - } elsif ($action =~ /^(history|(short)?log)$/) { - $dest_action = $action; - } - - my $dest = ""; - $dest .= "refs/" unless $ref =~ m!^refs/!; - $dest .= $ref; - - my $link = $cgi->a({ - -href => href( - action=>$dest_action, - hash=>$dest - )}, esc_html($name)); - - $markers .= " " . - $link . ""; - } - } - - if ($markers) { - return ' '. $markers . ''; - } else { - return ""; - } -} - -# format, perhaps shortened and with markers, title line -sub format_subject_html { - my ($long, $short, $href, $extra) = @_; - $extra = '' unless defined($extra); - - if (length($short) < length($long)) { - $long =~ s/[[:cntrl:]]/?/g; - return $cgi->a({-href => $href, -class => "list subject", - -title => to_utf8($long)}, - esc_html($short)) . $extra; - } else { - return $cgi->a({-href => $href, -class => "list subject"}, - esc_html($long)) . $extra; - } -} - -# Rather than recomputing the url for an email multiple times, we cache it -# after the first hit. This gives a visible benefit in views where the avatar -# for the same email is used repeatedly (e.g. shortlog). -# The cache is shared by all avatar engines (currently gravatar only), which -# are free to use it as preferred. Since only one avatar engine is used for any -# given page, there's no risk for cache conflicts. -our %avatar_cache = (); - -# Compute the picon url for a given email, by using the picon search service over at -# http://www.cs.indiana.edu/picons/search.html -sub picon_url { - my $email = lc shift; - if (!$avatar_cache{$email}) { - my ($user, $domain) = split('@', $email); - $avatar_cache{$email} = - "//www.cs.indiana.edu/cgi-pub/kinzler/piconsearch.cgi/" . - "$domain/$user/" . - "users+domains+unknown/up/single"; - } - return $avatar_cache{$email}; -} - -# Compute the gravatar url for a given email, if it's not in the cache already. -# Gravatar stores only the part of the URL before the size, since that's the -# one computationally more expensive. This also allows reuse of the cache for -# different sizes (for this particular engine). -sub gravatar_url { - my $email = lc shift; - my $size = shift; - $avatar_cache{$email} ||= - "//www.gravatar.com/avatar/" . - md5_hex($email) . "?s="; - return $avatar_cache{$email} . $size; -} - -# Insert an avatar for the given $email at the given $size if the feature -# is enabled. -sub git_get_avatar { - my ($email, %opts) = @_; - my $pre_white = ($opts{-pad_before} ? " " : ""); - my $post_white = ($opts{-pad_after} ? " " : ""); - $opts{-size} ||= 'default'; - my $size = $avatar_size{$opts{-size}} || $avatar_size{'default'}; - my $url = ""; - if ($git_avatar eq 'gravatar') { - $url = gravatar_url($email, $size); - } elsif ($git_avatar eq 'picon') { - $url = picon_url($email); - } - # Other providers can be added by extending the if chain, defining $url - # as needed. If no variant puts something in $url, we assume avatars - # are completely disabled/unavailable. - if ($url) { - return $pre_white . - "" . $post_white; - } else { - return ""; - } -} - -sub format_search_author { - my ($author, $searchtype, $displaytext) = @_; - my $have_search = gitweb_check_feature('search'); - - if ($have_search) { - my $performed = ""; - if ($searchtype eq 'author') { - $performed = "authored"; - } elsif ($searchtype eq 'committer') { - $performed = "committed"; - } - - return $cgi->a({-href => href(action=>"search", hash=>$hash, - searchtext=>$author, - searchtype=>$searchtype), class=>"list", - title=>"Search for commits $performed by $author"}, - $displaytext); - - } else { - return $displaytext; - } -} - -# format the author name of the given commit with the given tag -# the author name is chopped and escaped according to the other -# optional parameters (see chop_str). -sub format_author_html { - my $tag = shift; - my $co = shift; - my $author = chop_and_escape_str($co->{'author_name'}, @_); - return "<$tag class=\"author\">" . - format_search_author($co->{'author_name'}, "author", - git_get_avatar($co->{'author_email'}, -pad_after => 1) . - $author) . - ""; -} - -# format git diff header line, i.e. "diff --(git|combined|cc) ..." -sub format_git_diff_header_line { - my $line = shift; - my $diffinfo = shift; - my ($from, $to) = @_; - - if ($diffinfo->{'nparents'}) { - # combined diff - $line =~ s!^(diff (.*?) )"?.*$!$1!; - if ($to->{'href'}) { - $line .= $cgi->a({-href => $to->{'href'}, -class => "path"}, - esc_path($to->{'file'})); - } else { # file was deleted (no href) - $line .= esc_path($to->{'file'}); - } - } else { - # "ordinary" diff - $line =~ s!^(diff (.*?) )"?a/.*$!$1!; - if ($from->{'href'}) { - $line .= $cgi->a({-href => $from->{'href'}, -class => "path"}, - 'a/' . esc_path($from->{'file'})); - } else { # file was added (no href) - $line .= 'a/' . esc_path($from->{'file'}); - } - $line .= ' '; - if ($to->{'href'}) { - $line .= $cgi->a({-href => $to->{'href'}, -class => "path"}, - 'b/' . esc_path($to->{'file'})); - } else { # file was deleted - $line .= 'b/' . esc_path($to->{'file'}); - } - } - - return "
    $line
    \n"; -} - -# format extended diff header line, before patch itself -sub format_extended_diff_header_line { - my $line = shift; - my $diffinfo = shift; - my ($from, $to) = @_; - - # match - if ($line =~ s!^((copy|rename) from ).*$!$1! && $from->{'href'}) { - $line .= $cgi->a({-href=>$from->{'href'}, -class=>"path"}, - esc_path($from->{'file'})); - } - if ($line =~ s!^((copy|rename) to ).*$!$1! && $to->{'href'}) { - $line .= $cgi->a({-href=>$to->{'href'}, -class=>"path"}, - esc_path($to->{'file'})); - } - # match single - if ($line =~ m/\s(\d{6})$/) { - $line .= ' (' . - file_type_long($1) . - ')'; - } - # match - if ($line =~ m/^index [0-9a-fA-F]{40},[0-9a-fA-F]{40}/) { - # can match only for combined diff - $line = 'index '; - for (my $i = 0; $i < $diffinfo->{'nparents'}; $i++) { - if ($from->{'href'}[$i]) { - $line .= $cgi->a({-href=>$from->{'href'}[$i], - -class=>"hash"}, - substr($diffinfo->{'from_id'}[$i],0,7)); - } else { - $line .= '0' x 7; - } - # separator - $line .= ',' if ($i < $diffinfo->{'nparents'} - 1); - } - $line .= '..'; - if ($to->{'href'}) { - $line .= $cgi->a({-href=>$to->{'href'}, -class=>"hash"}, - substr($diffinfo->{'to_id'},0,7)); - } else { - $line .= '0' x 7; - } - - } elsif ($line =~ m/^index [0-9a-fA-F]{40}..[0-9a-fA-F]{40}/) { - # can match only for ordinary diff - my ($from_link, $to_link); - if ($from->{'href'}) { - $from_link = $cgi->a({-href=>$from->{'href'}, -class=>"hash"}, - substr($diffinfo->{'from_id'},0,7)); - } else { - $from_link = '0' x 7; - } - if ($to->{'href'}) { - $to_link = $cgi->a({-href=>$to->{'href'}, -class=>"hash"}, - substr($diffinfo->{'to_id'},0,7)); - } else { - $to_link = '0' x 7; - } - my ($from_id, $to_id) = ($diffinfo->{'from_id'}, $diffinfo->{'to_id'}); - $line =~ s!$from_id\.\.$to_id!$from_link..$to_link!; - } - - return $line . "
    \n"; -} - -# format from-file/to-file diff header -sub format_diff_from_to_header { - my ($from_line, $to_line, $diffinfo, $from, $to, @parents) = @_; - my $line; - my $result = ''; - - $line = $from_line; - #assert($line =~ m/^---/) if DEBUG; - # no extra formatting for "^--- /dev/null" - if (! $diffinfo->{'nparents'}) { - # ordinary (single parent) diff - if ($line =~ m!^--- "?a/!) { - if ($from->{'href'}) { - $line = '--- a/' . - $cgi->a({-href=>$from->{'href'}, -class=>"path"}, - esc_path($from->{'file'})); - } else { - $line = '--- a/' . - esc_path($from->{'file'}); - } - } - $result .= qq!
    $line
    \n!; - - } else { - # combined diff (merge commit) - for (my $i = 0; $i < $diffinfo->{'nparents'}; $i++) { - if ($from->{'href'}[$i]) { - $line = '--- ' . - $cgi->a({-href=>href(action=>"blobdiff", - hash_parent=>$diffinfo->{'from_id'}[$i], - hash_parent_base=>$parents[$i], - file_parent=>$from->{'file'}[$i], - hash=>$diffinfo->{'to_id'}, - hash_base=>$hash, - file_name=>$to->{'file'}), - -class=>"path", - -title=>"diff" . ($i+1)}, - $i+1) . - '/' . - $cgi->a({-href=>$from->{'href'}[$i], -class=>"path"}, - esc_path($from->{'file'}[$i])); - } else { - $line = '--- /dev/null'; - } - $result .= qq!
    $line
    \n!; - } - } - - $line = $to_line; - #assert($line =~ m/^\+\+\+/) if DEBUG; - # no extra formatting for "^+++ /dev/null" - if ($line =~ m!^\+\+\+ "?b/!) { - if ($to->{'href'}) { - $line = '+++ b/' . - $cgi->a({-href=>$to->{'href'}, -class=>"path"}, - esc_path($to->{'file'})); - } else { - $line = '+++ b/' . - esc_path($to->{'file'}); - } - } - $result .= qq!
    $line
    \n!; - - return $result; -} - -# create note for patch simplified by combined diff -sub format_diff_cc_simplified { - my ($diffinfo, @parents) = @_; - my $result = ''; - - $result .= "
    " . - "diff --cc "; - if (!is_deleted($diffinfo)) { - $result .= $cgi->a({-href => href(action=>"blob", - hash_base=>$hash, - hash=>$diffinfo->{'to_id'}, - file_name=>$diffinfo->{'to_file'}), - -class => "path"}, - esc_path($diffinfo->{'to_file'})); - } else { - $result .= esc_path($diffinfo->{'to_file'}); - } - $result .= "
    \n" . # class="diff header" - "
    " . - "Simple merge" . - "
    \n"; # class="diff nodifferences" - - return $result; -} - -sub diff_line_class { - my ($line, $from, $to) = @_; - - # ordinary diff - my $num_sign = 1; - # combined diff - if ($from && $to && ref($from->{'href'}) eq "ARRAY") { - $num_sign = scalar @{$from->{'href'}}; - } - - my @diff_line_classifier = ( - { regexp => qr/^\@\@{$num_sign} /, class => "chunk_header"}, - { regexp => qr/^\\/, class => "incomplete" }, - { regexp => qr/^ {$num_sign}/, class => "ctx" }, - # classifier for context must come before classifier add/rem, - # or we would have to use more complicated regexp, for example - # qr/(?= {0,$m}\+)[+ ]{$num_sign}/, where $m = $num_sign - 1; - { regexp => qr/^[+ ]{$num_sign}/, class => "add" }, - { regexp => qr/^[- ]{$num_sign}/, class => "rem" }, - ); - for my $clsfy (@diff_line_classifier) { - return $clsfy->{'class'} - if ($line =~ $clsfy->{'regexp'}); - } - - # fallback - return ""; -} - -# assumes that $from and $to are defined and correctly filled, -# and that $line holds a line of chunk header for unified diff -sub format_unidiff_chunk_header { - my ($line, $from, $to) = @_; - - my ($from_text, $from_start, $from_lines, $to_text, $to_start, $to_lines, $section) = - $line =~ m/^\@{2} (-(\d+)(?:,(\d+))?) (\+(\d+)(?:,(\d+))?) \@{2}(.*)$/; - - $from_lines = 0 unless defined $from_lines; - $to_lines = 0 unless defined $to_lines; - - if ($from->{'href'}) { - $from_text = $cgi->a({-href=>"$from->{'href'}#l$from_start", - -class=>"list"}, $from_text); - } - if ($to->{'href'}) { - $to_text = $cgi->a({-href=>"$to->{'href'}#l$to_start", - -class=>"list"}, $to_text); - } - $line = "@@ $from_text $to_text @@" . - "" . esc_html($section, -nbsp=>1) . ""; - return $line; -} - -# assumes that $from and $to are defined and correctly filled, -# and that $line holds a line of chunk header for combined diff -sub format_cc_diff_chunk_header { - my ($line, $from, $to) = @_; - - my ($prefix, $ranges, $section) = $line =~ m/^(\@+) (.*?) \@+(.*)$/; - my (@from_text, @from_start, @from_nlines, $to_text, $to_start, $to_nlines); - - @from_text = split(' ', $ranges); - for (my $i = 0; $i < @from_text; ++$i) { - ($from_start[$i], $from_nlines[$i]) = - (split(',', substr($from_text[$i], 1)), 0); - } - - $to_text = pop @from_text; - $to_start = pop @from_start; - $to_nlines = pop @from_nlines; - - $line = "$prefix "; - for (my $i = 0; $i < @from_text; ++$i) { - if ($from->{'href'}[$i]) { - $line .= $cgi->a({-href=>"$from->{'href'}[$i]#l$from_start[$i]", - -class=>"list"}, $from_text[$i]); - } else { - $line .= $from_text[$i]; - } - $line .= " "; - } - if ($to->{'href'}) { - $line .= $cgi->a({-href=>"$to->{'href'}#l$to_start", - -class=>"list"}, $to_text); - } else { - $line .= $to_text; - } - $line .= " $prefix" . - "" . esc_html($section, -nbsp=>1) . ""; - return $line; -} - -# process patch (diff) line (not to be used for diff headers), -# returning HTML-formatted (but not wrapped) line. -# If the line is passed as a reference, it is treated as HTML and not -# esc_html()'ed. -sub format_diff_line { - my ($line, $diff_class, $from, $to) = @_; - - if (ref($line)) { - $line = $$line; - } else { - chomp $line; - $line = untabify($line); - - if ($from && $to && $line =~ m/^\@{2} /) { - $line = format_unidiff_chunk_header($line, $from, $to); - } elsif ($from && $to && $line =~ m/^\@{3}/) { - $line = format_cc_diff_chunk_header($line, $from, $to); - } else { - $line = esc_html($line, -nbsp=>1); - } - } - - my $diff_classes = "diff"; - $diff_classes .= " $diff_class" if ($diff_class); - $line = "
    $line
    \n"; - - return $line; -} - -# Generates undef or something like "_snapshot_" or "snapshot (_tbz2_ _zip_)", -# linked. Pass the hash of the tree/commit to snapshot. -sub format_snapshot_links { - my ($hash) = @_; - my $num_fmts = @snapshot_fmts; - if ($num_fmts > 1) { - # A parenthesized list of links bearing format names. - # e.g. "snapshot (_tar.gz_ _zip_)" - return "snapshot (" . join(' ', map - $cgi->a({ - -href => href( - action=>"snapshot", - hash=>$hash, - snapshot_format=>$_ - ) - }, $known_snapshot_formats{$_}{'display'}) - , @snapshot_fmts) . ")"; - } elsif ($num_fmts == 1) { - # A single "snapshot" link whose tooltip bears the format name. - # i.e. "_snapshot_" - my ($fmt) = @snapshot_fmts; - return - $cgi->a({ - -href => href( - action=>"snapshot", - hash=>$hash, - snapshot_format=>$fmt - ), - -title => "in format: $known_snapshot_formats{$fmt}{'display'}" - }, "snapshot"); - } else { # $num_fmts == 0 - return undef; - } -} - -## ...................................................................... -## functions returning values to be passed, perhaps after some -## transformation, to other functions; e.g. returning arguments to href() - -# returns hash to be passed to href to generate gitweb URL -# in -title key it returns description of link -sub get_feed_info { - my $format = shift || 'Atom'; - my %res = (action => lc($format)); - my $matched_ref = 0; - - # feed links are possible only for project views - return unless (defined $project); - # some views should link to OPML, or to generic project feed, - # or don't have specific feed yet (so they should use generic) - return if (!$action || $action =~ /^(?:tags|heads|forks|tag|search)$/x); - - my $branch = undef; - # branches refs uses 'refs/' + $get_branch_refs()[x] + '/' prefix - # (fullname) to differentiate from tag links; this also makes - # possible to detect branch links - for my $ref (get_branch_refs()) { - if ((defined $hash_base && $hash_base =~ m!^refs/\Q$ref\E/(.*)$!) || - (defined $hash && $hash =~ m!^refs/\Q$ref\E/(.*)$!)) { - $branch = $1; - $matched_ref = $ref; - last; - } - } - # find log type for feed description (title) - my $type = 'log'; - if (defined $file_name) { - $type = "history of $file_name"; - $type .= "/" if ($action eq 'tree'); - $type .= " on '$branch'" if (defined $branch); - } else { - $type = "log of $branch" if (defined $branch); - } - - $res{-title} = $type; - $res{'hash'} = (defined $branch ? "refs/$matched_ref/$branch" : undef); - $res{'file_name'} = $file_name; - - return %res; -} - -## ---------------------------------------------------------------------- -## git utility subroutines, invoking git commands - -# returns path to the core git executable and the --git-dir parameter as list -sub git_cmd { - $number_of_git_cmds++; - return $GIT, '--git-dir='.$git_dir; -} - -# quote the given arguments for passing them to the shell -# quote_command("command", "arg 1", "arg with ' and ! characters") -# => "'command' 'arg 1' 'arg with '\'' and '\!' characters'" -# Try to avoid using this function wherever possible. -sub quote_command { - return join(' ', - map { my $a = $_; $a =~ s/(['!])/'\\$1'/g; "'$a'" } @_ ); -} - -# get HEAD ref of given project as hash -sub git_get_head_hash { - return git_get_full_hash(shift, 'HEAD'); -} - -sub git_get_full_hash { - return git_get_hash(@_); -} - -sub git_get_short_hash { - return git_get_hash(@_, '--short=7'); -} - -sub git_get_hash { - my ($project, $hash, @options) = @_; - my $o_git_dir = $git_dir; - my $retval = undef; - $git_dir = "$projectroot/$project"; - if (open my $fd, '-|', git_cmd(), 'rev-parse', - '--verify', '-q', @options, $hash) { - $retval = <$fd>; - chomp $retval if defined $retval; - close $fd; - } - if (defined $o_git_dir) { - $git_dir = $o_git_dir; - } - return $retval; -} - -# get type of given object -sub git_get_type { - my $hash = shift; - - open my $fd, "-|", git_cmd(), "cat-file", '-t', $hash or return; - my $type = <$fd>; - close $fd or return; - chomp $type; - return $type; -} - -# repository configuration -our $config_file = ''; -our %config; - -# store multiple values for single key as anonymous array reference -# single values stored directly in the hash, not as [ ] -sub hash_set_multi { - my ($hash, $key, $value) = @_; - - if (!exists $hash->{$key}) { - $hash->{$key} = $value; - } elsif (!ref $hash->{$key}) { - $hash->{$key} = [ $hash->{$key}, $value ]; - } else { - push @{$hash->{$key}}, $value; - } -} - -# return hash of git project configuration -# optionally limited to some section, e.g. 'gitweb' -sub git_parse_project_config { - my $section_regexp = shift; - my %config; - - local $/ = "\0"; - - open my $fh, "-|", git_cmd(), "config", '-z', '-l', - or return; - - while (my $keyval = <$fh>) { - chomp $keyval; - my ($key, $value) = split(/\n/, $keyval, 2); - - hash_set_multi(\%config, $key, $value) - if (!defined $section_regexp || $key =~ /^(?:$section_regexp)\./o); - } - close $fh; - - return %config; -} - -# convert config value to boolean: 'true' or 'false' -# no value, number > 0, 'true' and 'yes' values are true -# rest of values are treated as false (never as error) -sub config_to_bool { - my $val = shift; - - return 1 if !defined $val; # section.key - - # strip leading and trailing whitespace - $val =~ s/^\s+//; - $val =~ s/\s+$//; - - return (($val =~ /^\d+$/ && $val) || # section.key = 1 - ($val =~ /^(?:true|yes)$/i)); # section.key = true -} - -# convert config value to simple decimal number -# an optional value suffix of 'k', 'm', or 'g' will cause the value -# to be multiplied by 1024, 1048576, or 1073741824 -sub config_to_int { - my $val = shift; - - # strip leading and trailing whitespace - $val =~ s/^\s+//; - $val =~ s/\s+$//; - - if (my ($num, $unit) = ($val =~ /^([0-9]*)([kmg])$/i)) { - $unit = lc($unit); - # unknown unit is treated as 1 - return $num * ($unit eq 'g' ? 1073741824 : - $unit eq 'm' ? 1048576 : - $unit eq 'k' ? 1024 : 1); - } - return $val; -} - -# convert config value to array reference, if needed -sub config_to_multi { - my $val = shift; - - return ref($val) ? $val : (defined($val) ? [ $val ] : []); -} - -sub git_get_project_config { - my ($key, $type) = @_; - - return unless defined $git_dir; - - # key sanity check - return unless ($key); - # only subsection, if exists, is case sensitive, - # and not lowercased by 'git config -z -l' - if (my ($hi, $mi, $lo) = ($key =~ /^([^.]*)\.(.*)\.([^.]*)$/)) { - $lo =~ s/_//g; - $key = join(".", lc($hi), $mi, lc($lo)); - return if ($lo =~ /\W/ || $hi =~ /\W/); - } else { - $key = lc($key); - $key =~ s/_//g; - return if ($key =~ /\W/); - } - $key =~ s/^gitweb\.//; - - # type sanity check - if (defined $type) { - $type =~ s/^--//; - $type = undef - unless ($type eq 'bool' || $type eq 'int'); - } - - # get config - if (!defined $config_file || - $config_file ne "$git_dir/config") { - %config = git_parse_project_config('gitweb'); - $config_file = "$git_dir/config"; - } - - # check if config variable (key) exists - return unless exists $config{"gitweb.$key"}; - - # ensure given type - if (!defined $type) { - return $config{"gitweb.$key"}; - } elsif ($type eq 'bool') { - # backward compatibility: 'git config --bool' returns true/false - return config_to_bool($config{"gitweb.$key"}) ? 'true' : 'false'; - } elsif ($type eq 'int') { - return config_to_int($config{"gitweb.$key"}); - } - return $config{"gitweb.$key"}; -} - -# get hash of given path at given ref -sub git_get_hash_by_path { - my $base = shift; - my $path = shift || return undef; - my $type = shift; - - $path =~ s,/+$,,; - - open my $fd, "-|", git_cmd(), "ls-tree", $base, "--", $path - or die_error(500, "Open git-ls-tree failed"); - my $line = <$fd>; - close $fd or return undef; - - if (!defined $line) { - # there is no tree or hash given by $path at $base - return undef; - } - - #'100644 blob 0fa3f3a66fb6a137f6ec2c19351ed4d807070ffa panic.c' - $line =~ m/^([0-9]+) (.+) ([0-9a-fA-F]{40})\t/; - if (defined $type && $type ne $2) { - # type doesn't match - return undef; - } - return $3; -} - -# get path of entry with given hash at given tree-ish (ref) -# used to get 'from' filename for combined diff (merge commit) for renames -sub git_get_path_by_hash { - my $base = shift || return; - my $hash = shift || return; - - local $/ = "\0"; - - open my $fd, "-|", git_cmd(), "ls-tree", '-r', '-t', '-z', $base - or return undef; - while (my $line = <$fd>) { - chomp $line; - - #'040000 tree 595596a6a9117ddba9fe379b6b012b558bac8423 gitweb' - #'100644 blob e02e90f0429be0d2a69b76571101f20b8f75530f gitweb/README' - if ($line =~ m/(?:[0-9]+) (?:.+) $hash\t(.+)$/) { - close $fd; - return $1; - } - } - close $fd; - return undef; -} - -## ...................................................................... -## git utility functions, directly accessing git repository - -# get the value of config variable either from file named as the variable -# itself in the repository ($GIT_DIR/$name file), or from gitweb.$name -# configuration variable in the repository config file. -sub git_get_file_or_project_config { - my ($path, $name) = @_; - - $git_dir = "$projectroot/$path"; - open my $fd, '<', "$git_dir/$name" - or return git_get_project_config($name); - my $conf = <$fd>; - close $fd; - if (defined $conf) { - chomp $conf; - } - return $conf; -} - -sub git_get_project_description { - my $path = shift; - return git_get_file_or_project_config($path, 'description'); -} - -sub git_get_project_category { - my $path = shift; - return git_get_file_or_project_config($path, 'category'); -} - - -# supported formats: -# * $GIT_DIR/ctags/ file (in 'ctags' subdirectory) -# - if its contents is a number, use it as tag weight, -# - otherwise add a tag with weight 1 -# * $GIT_DIR/ctags file, each line is a tag (with weight 1) -# the same value multiple times increases tag weight -# * `gitweb.ctag' multi-valued repo config variable -sub git_get_project_ctags { - my $project = shift; - my $ctags = {}; - - $git_dir = "$projectroot/$project"; - if (opendir my $dh, "$git_dir/ctags") { - my @files = grep { -f $_ } map { "$git_dir/ctags/$_" } readdir($dh); - foreach my $tagfile (@files) { - open my $ct, '<', $tagfile - or next; - my $val = <$ct>; - chomp $val if $val; - close $ct; - - (my $ctag = $tagfile) =~ s#.*/##; - if ($val =~ /^\d+$/) { - $ctags->{$ctag} = $val; - } else { - $ctags->{$ctag} = 1; - } - } - closedir $dh; - - } elsif (open my $fh, '<', "$git_dir/ctags") { - while (my $line = <$fh>) { - chomp $line; - $ctags->{$line}++ if $line; - } - close $fh; - - } else { - my $taglist = config_to_multi(git_get_project_config('ctag')); - foreach my $tag (@$taglist) { - $ctags->{$tag}++; - } - } - - return $ctags; -} - -# return hash, where keys are content tags ('ctags'), -# and values are sum of weights of given tag in every project -sub git_gather_all_ctags { - my $projects = shift; - my $ctags = {}; - - foreach my $p (@$projects) { - foreach my $ct (keys %{$p->{'ctags'}}) { - $ctags->{$ct} += $p->{'ctags'}->{$ct}; - } - } - - return $ctags; -} - -sub git_populate_project_tagcloud { - my $ctags = shift; - - # First, merge different-cased tags; tags vote on casing - my %ctags_lc; - foreach (keys %$ctags) { - $ctags_lc{lc $_}->{count} += $ctags->{$_}; - if (not $ctags_lc{lc $_}->{topcount} - or $ctags_lc{lc $_}->{topcount} < $ctags->{$_}) { - $ctags_lc{lc $_}->{topcount} = $ctags->{$_}; - $ctags_lc{lc $_}->{topname} = $_; - } - } - - my $cloud; - my $matched = $input_params{'ctag'}; - if (eval { require HTML::TagCloud; 1; }) { - $cloud = HTML::TagCloud->new; - foreach my $ctag (sort keys %ctags_lc) { - # Pad the title with spaces so that the cloud looks - # less crammed. - my $title = esc_html($ctags_lc{$ctag}->{topname}); - $title =~ s/ / /g; - $title =~ s/^/ /g; - $title =~ s/$/ /g; - if (defined $matched && $matched eq $ctag) { - $title = qq($title); - } - $cloud->add($title, href(project=>undef, ctag=>$ctag), - $ctags_lc{$ctag}->{count}); - } - } else { - $cloud = {}; - foreach my $ctag (keys %ctags_lc) { - my $title = esc_html($ctags_lc{$ctag}->{topname}, -nbsp=>1); - if (defined $matched && $matched eq $ctag) { - $title = qq($title); - } - $cloud->{$ctag}{count} = $ctags_lc{$ctag}->{count}; - $cloud->{$ctag}{ctag} = - $cgi->a({-href=>href(project=>undef, ctag=>$ctag)}, $title); - } - } - return $cloud; -} - -sub git_show_project_tagcloud { - my ($cloud, $count) = @_; - if (ref $cloud eq 'HTML::TagCloud') { - return $cloud->html_and_css($count); - } else { - my @tags = sort { $cloud->{$a}->{'count'} <=> $cloud->{$b}->{'count'} } keys %$cloud; - return - '
    ' . - join (', ', map { - $cloud->{$_}->{'ctag'} - } splice(@tags, 0, $count)) . - '
    '; - } -} - -sub git_get_project_url_list { - my $path = shift; - - $git_dir = "$projectroot/$path"; - open my $fd, '<', "$git_dir/cloneurl" - or return wantarray ? - @{ config_to_multi(git_get_project_config('url')) } : - config_to_multi(git_get_project_config('url')); - my @git_project_url_list = map { chomp; $_ } <$fd>; - close $fd; - - return wantarray ? @git_project_url_list : \@git_project_url_list; -} - -sub git_get_projects_list { - my $filter = shift || ''; - my $paranoid = shift; - my @list; - - if (-d $projects_list) { - # search in directory - my $dir = $projects_list; - # remove the trailing "/" - $dir =~ s!/+$!!; - my $pfxlen = length("$dir"); - my $pfxdepth = ($dir =~ tr!/!!); - # when filtering, search only given subdirectory - if ($filter && !$paranoid) { - $dir .= "/$filter"; - $dir =~ s!/+$!!; - } - - File::Find::find({ - follow_fast => 1, # follow symbolic links - follow_skip => 2, # ignore duplicates - dangling_symlinks => 0, # ignore dangling symlinks, silently - wanted => sub { - # global variables - our $project_maxdepth; - our $projectroot; - # skip project-list toplevel, if we get it. - return if (m!^[/.]$!); - # only directories can be git repositories - return unless (-d $_); - # need search permission - return unless (-x $_); - # don't traverse too deep (Find is super slow on os x) - # $project_maxdepth excludes depth of $projectroot - if (($File::Find::name =~ tr!/!!) - $pfxdepth > $project_maxdepth) { - $File::Find::prune = 1; - return; - } - - my $path = substr($File::Find::name, $pfxlen + 1); - # paranoidly only filter here - if ($paranoid && $filter && $path !~ m!^\Q$filter\E/!) { - next; - } - # we check related file in $projectroot - if (check_export_ok("$projectroot/$path")) { - push @list, { path => $path }; - $File::Find::prune = 1; - } - }, - }, "$dir"); - - } elsif (-f $projects_list) { - # read from file(url-encoded): - # 'git%2Fgit.git Linus+Torvalds' - # 'libs%2Fklibc%2Fklibc.git H.+Peter+Anvin' - # 'linux%2Fhotplug%2Fudev.git Greg+Kroah-Hartman' - open my $fd, '<', $projects_list or return; - PROJECT: - while (my $line = <$fd>) { - chomp $line; - my ($path, $owner) = split ' ', $line; - $path = unescape($path); - $owner = unescape($owner); - if (!defined $path) { - next; - } - # if $filter is rpovided, check if $path begins with $filter - if ($filter && $path !~ m!^\Q$filter\E/!) { - next; - } - if (check_export_ok("$projectroot/$path")) { - my $pr = { - path => $path - }; - if ($owner) { - $pr->{'owner'} = to_utf8($owner); - } - push @list, $pr; - } - } - close $fd; - } - return @list; -} - -# written with help of Tree::Trie module (Perl Artistic License, GPL compatible) -# as side effects it sets 'forks' field to list of forks for forked projects -sub filter_forks_from_projects_list { - my $projects = shift; - - my %trie; # prefix tree of directories (path components) - # generate trie out of those directories that might contain forks - foreach my $pr (@$projects) { - my $path = $pr->{'path'}; - $path =~ s/\.git$//; # forks of 'repo.git' are in 'repo/' directory - next if ($path =~ m!/$!); # skip non-bare repositories, e.g. 'repo/.git' - next unless ($path); # skip '.git' repository: tests, git-instaweb - next unless (-d "$projectroot/$path"); # containing directory exists - $pr->{'forks'} = []; # there can be 0 or more forks of project - - # add to trie - my @dirs = split('/', $path); - # walk the trie, until either runs out of components or out of trie - my $ref = \%trie; - while (scalar @dirs && - exists($ref->{$dirs[0]})) { - $ref = $ref->{shift @dirs}; - } - # create rest of trie structure from rest of components - foreach my $dir (@dirs) { - $ref = $ref->{$dir} = {}; - } - # create end marker, store $pr as a data - $ref->{''} = $pr if (!exists $ref->{''}); - } - - # filter out forks, by finding shortest prefix match for paths - my @filtered; - PROJECT: - foreach my $pr (@$projects) { - # trie lookup - my $ref = \%trie; - DIR: - foreach my $dir (split('/', $pr->{'path'})) { - if (exists $ref->{''}) { - # found [shortest] prefix, is a fork - skip it - push @{$ref->{''}{'forks'}}, $pr; - next PROJECT; - } - if (!exists $ref->{$dir}) { - # not in trie, cannot have prefix, not a fork - push @filtered, $pr; - next PROJECT; - } - # If the dir is there, we just walk one step down the trie. - $ref = $ref->{$dir}; - } - # we ran out of trie - # (shouldn't happen: it's either no match, or end marker) - push @filtered, $pr; - } - - return @filtered; -} - -# note: fill_project_list_info must be run first, -# for 'descr_long' and 'ctags' to be filled -sub search_projects_list { - my ($projlist, %opts) = @_; - my $tagfilter = $opts{'tagfilter'}; - my $search_re = $opts{'search_regexp'}; - - return @$projlist - unless ($tagfilter || $search_re); - - # searching projects require filling to be run before it; - fill_project_list_info($projlist, - $tagfilter ? 'ctags' : (), - $search_re ? ('path', 'descr') : ()); - my @projects; - PROJECT: - foreach my $pr (@$projlist) { - - if ($tagfilter) { - next unless ref($pr->{'ctags'}) eq 'HASH'; - next unless - grep { lc($_) eq lc($tagfilter) } keys %{$pr->{'ctags'}}; - } - - if ($search_re) { - next unless - $pr->{'path'} =~ /$search_re/ || - $pr->{'descr_long'} =~ /$search_re/; - } - - push @projects, $pr; - } - - return @projects; -} - -our $gitweb_project_owner = undef; -sub git_get_project_list_from_file { - - return if (defined $gitweb_project_owner); - - $gitweb_project_owner = {}; - # read from file (url-encoded): - # 'git%2Fgit.git Linus+Torvalds' - # 'libs%2Fklibc%2Fklibc.git H.+Peter+Anvin' - # 'linux%2Fhotplug%2Fudev.git Greg+Kroah-Hartman' - if (-f $projects_list) { - open(my $fd, '<', $projects_list); - while (my $line = <$fd>) { - chomp $line; - my ($pr, $ow) = split ' ', $line; - $pr = unescape($pr); - $ow = unescape($ow); - $gitweb_project_owner->{$pr} = to_utf8($ow); - } - close $fd; - } -} - -sub git_get_project_owner { - my $project = shift; - my $owner; - - return undef unless $project; - $git_dir = "$projectroot/$project"; - - if (!defined $gitweb_project_owner) { - git_get_project_list_from_file(); - } - - if (exists $gitweb_project_owner->{$project}) { - $owner = $gitweb_project_owner->{$project}; - } - if (!defined $owner){ - $owner = git_get_project_config('owner'); - } - if (!defined $owner) { - $owner = get_file_owner("$git_dir"); - } - - return $owner; -} - -sub git_get_last_activity { - my ($path) = @_; - my $fd; - - $git_dir = "$projectroot/$path"; - open($fd, "-|", git_cmd(), 'for-each-ref', - '--format=%(committer)', - '--sort=-committerdate', - '--count=1', - map { "refs/$_" } get_branch_refs ()) or return; - my $most_recent = <$fd>; - close $fd or return; - if (defined $most_recent && - $most_recent =~ / (\d+) [-+][01]\d\d\d$/) { - my $timestamp = $1; - my $age = time - $timestamp; - return ($age, age_string($age)); - } - return (undef, undef); -} - -# Implementation note: when a single remote is wanted, we cannot use 'git -# remote show -n' because that command always work (assuming it's a remote URL -# if it's not defined), and we cannot use 'git remote show' because that would -# try to make a network roundtrip. So the only way to find if that particular -# remote is defined is to walk the list provided by 'git remote -v' and stop if -# and when we find what we want. -sub git_get_remotes_list { - my $wanted = shift; - my %remotes = (); - - open my $fd, '-|' , git_cmd(), 'remote', '-v'; - return unless $fd; - while (my $remote = <$fd>) { - chomp $remote; - $remote =~ s!\t(.*?)\s+\((\w+)\)$!!; - next if $wanted and not $remote eq $wanted; - my ($url, $key) = ($1, $2); - - $remotes{$remote} ||= { 'heads' => () }; - $remotes{$remote}{$key} = $url; - } - close $fd or return; - return wantarray ? %remotes : \%remotes; -} - -# Takes a hash of remotes as first parameter and fills it by adding the -# available remote heads for each of the indicated remotes. -sub fill_remote_heads { - my $remotes = shift; - my @heads = map { "remotes/$_" } keys %$remotes; - my @remoteheads = git_get_heads_list(undef, @heads); - foreach my $remote (keys %$remotes) { - $remotes->{$remote}{'heads'} = [ grep { - $_->{'name'} =~ s!^$remote/!! - } @remoteheads ]; - } -} - -sub git_get_references { - my $type = shift || ""; - my %refs; - # 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c refs/tags/v2.6.11 - # c39ae07f393806ccf406ef966e9a15afc43cc36a refs/tags/v2.6.11^{} - open my $fd, "-|", git_cmd(), "show-ref", "--dereference", - ($type ? ("--", "refs/$type") : ()) # use -- if $type - or return; - - while (my $line = <$fd>) { - chomp $line; - if ($line =~ m!^([0-9a-fA-F]{40})\srefs/($type.*)$!) { - if (defined $refs{$1}) { - push @{$refs{$1}}, $2; - } else { - $refs{$1} = [ $2 ]; - } - } - } - close $fd or return; - return \%refs; -} - -sub git_get_rev_name_tags { - my $hash = shift || return undef; - - open my $fd, "-|", git_cmd(), "name-rev", "--tags", $hash - or return; - my $name_rev = <$fd>; - close $fd; - - if ($name_rev =~ m|^$hash tags/(.*)$|) { - return $1; - } else { - # catches also '$hash undefined' output - return undef; - } -} - -## ---------------------------------------------------------------------- -## parse to hash functions - -sub parse_date { - my $epoch = shift; - my $tz = shift || "-0000"; - - my %date; - my @months = ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"); - my @days = ("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"); - my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday) = gmtime($epoch); - $date{'hour'} = $hour; - $date{'minute'} = $min; - $date{'mday'} = $mday; - $date{'day'} = $days[$wday]; - $date{'month'} = $months[$mon]; - $date{'rfc2822'} = sprintf "%s, %d %s %4d %02d:%02d:%02d +0000", - $days[$wday], $mday, $months[$mon], 1900+$year, $hour ,$min, $sec; - $date{'mday-time'} = sprintf "%d %s %02d:%02d", - $mday, $months[$mon], $hour ,$min; - $date{'iso-8601'} = sprintf "%04d-%02d-%02dT%02d:%02d:%02dZ", - 1900+$year, 1+$mon, $mday, $hour ,$min, $sec; - - my ($tz_sign, $tz_hour, $tz_min) = - ($tz =~ m/^([-+])(\d\d)(\d\d)$/); - $tz_sign = ($tz_sign eq '-' ? -1 : +1); - my $local = $epoch + $tz_sign*((($tz_hour*60) + $tz_min)*60); - ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday) = gmtime($local); - $date{'hour_local'} = $hour; - $date{'minute_local'} = $min; - $date{'tz_local'} = $tz; - $date{'iso-tz'} = sprintf("%04d-%02d-%02d %02d:%02d:%02d %s", - 1900+$year, $mon+1, $mday, - $hour, $min, $sec, $tz); - return %date; -} - -sub parse_tag { - my $tag_id = shift; - my %tag; - my @comment; - - open my $fd, "-|", git_cmd(), "cat-file", "tag", $tag_id or return; - $tag{'id'} = $tag_id; - while (my $line = <$fd>) { - chomp $line; - if ($line =~ m/^object ([0-9a-fA-F]{40})$/) { - $tag{'object'} = $1; - } elsif ($line =~ m/^type (.+)$/) { - $tag{'type'} = $1; - } elsif ($line =~ m/^tag (.+)$/) { - $tag{'name'} = $1; - } elsif ($line =~ m/^tagger (.*) ([0-9]+) (.*)$/) { - $tag{'author'} = $1; - $tag{'author_epoch'} = $2; - $tag{'author_tz'} = $3; - if ($tag{'author'} =~ m/^([^<]+) <([^>]*)>/) { - $tag{'author_name'} = $1; - $tag{'author_email'} = $2; - } else { - $tag{'author_name'} = $tag{'author'}; - } - } elsif ($line =~ m/--BEGIN/) { - push @comment, $line; - last; - } elsif ($line eq "") { - last; - } - } - push @comment, <$fd>; - $tag{'comment'} = \@comment; - close $fd or return; - if (!defined $tag{'name'}) { - return - }; - return %tag -} - -sub parse_commit_text { - my ($commit_text, $withparents) = @_; - my @commit_lines = split '\n', $commit_text; - my %co; - - pop @commit_lines; # Remove '\0' - - if (! @commit_lines) { - return; - } - - my $header = shift @commit_lines; - if ($header !~ m/^[0-9a-fA-F]{40}/) { - return; - } - ($co{'id'}, my @parents) = split ' ', $header; - while (my $line = shift @commit_lines) { - last if $line eq "\n"; - if ($line =~ m/^tree ([0-9a-fA-F]{40})$/) { - $co{'tree'} = $1; - } elsif ((!defined $withparents) && ($line =~ m/^parent ([0-9a-fA-F]{40})$/)) { - push @parents, $1; - } elsif ($line =~ m/^author (.*) ([0-9]+) (.*)$/) { - $co{'author'} = to_utf8($1); - $co{'author_epoch'} = $2; - $co{'author_tz'} = $3; - if ($co{'author'} =~ m/^([^<]+) <([^>]*)>/) { - $co{'author_name'} = $1; - $co{'author_email'} = $2; - } else { - $co{'author_name'} = $co{'author'}; - } - } elsif ($line =~ m/^committer (.*) ([0-9]+) (.*)$/) { - $co{'committer'} = to_utf8($1); - $co{'committer_epoch'} = $2; - $co{'committer_tz'} = $3; - if ($co{'committer'} =~ m/^([^<]+) <([^>]*)>/) { - $co{'committer_name'} = $1; - $co{'committer_email'} = $2; - } else { - $co{'committer_name'} = $co{'committer'}; - } - } - } - if (!defined $co{'tree'}) { - return; - }; - $co{'parents'} = \@parents; - $co{'parent'} = $parents[0]; - - foreach my $title (@commit_lines) { - $title =~ s/^ //; - if ($title ne "") { - $co{'title'} = chop_str($title, 80, 5); - # remove leading stuff of merges to make the interesting part visible - if (length($title) > 50) { - $title =~ s/^Automatic //; - $title =~ s/^merge (of|with) /Merge ... /i; - if (length($title) > 50) { - $title =~ s/(http|rsync):\/\///; - } - if (length($title) > 50) { - $title =~ s/(master|www|rsync)\.//; - } - if (length($title) > 50) { - $title =~ s/kernel.org:?//; - } - if (length($title) > 50) { - $title =~ s/\/pub\/scm//; - } - } - $co{'title_short'} = chop_str($title, 50, 5); - last; - } - } - if (! defined $co{'title'} || $co{'title'} eq "") { - $co{'title'} = $co{'title_short'} = '(no commit message)'; - } - # remove added spaces - foreach my $line (@commit_lines) { - $line =~ s/^ //; - } - $co{'comment'} = \@commit_lines; - - my $age = time - $co{'committer_epoch'}; - $co{'age'} = $age; - $co{'age_string'} = age_string($age); - my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday) = gmtime($co{'committer_epoch'}); - if ($age > 60*60*24*7*2) { - $co{'age_string_date'} = sprintf "%4i-%02u-%02i", 1900 + $year, $mon+1, $mday; - $co{'age_string_age'} = $co{'age_string'}; - } else { - $co{'age_string_date'} = $co{'age_string'}; - $co{'age_string_age'} = sprintf "%4i-%02u-%02i", 1900 + $year, $mon+1, $mday; - } - return %co; -} - -sub parse_commit { - my ($commit_id) = @_; - my %co; - - local $/ = "\0"; - - open my $fd, "-|", git_cmd(), "rev-list", - "--parents", - "--header", - "--max-count=1", - $commit_id, - "--", - or die_error(500, "Open git-rev-list failed"); - %co = parse_commit_text(<$fd>, 1); - close $fd; - - return %co; -} - -sub parse_commits { - my ($commit_id, $maxcount, $skip, $filename, @args) = @_; - my @cos; - - $maxcount ||= 1; - $skip ||= 0; - - local $/ = "\0"; - - open my $fd, "-|", git_cmd(), "rev-list", - "--header", - @args, - ("--max-count=" . $maxcount), - ("--skip=" . $skip), - @extra_options, - $commit_id, - "--", - ($filename ? ($filename) : ()) - or die_error(500, "Open git-rev-list failed"); - while (my $line = <$fd>) { - my %co = parse_commit_text($line); - push @cos, \%co; - } - close $fd; - - return wantarray ? @cos : \@cos; -} - -# parse line of git-diff-tree "raw" output -sub parse_difftree_raw_line { - my $line = shift; - my %res; - - # ':100644 100644 03b218260e99b78c6df0ed378e59ed9205ccc96d 3b93d5e7cc7f7dd4ebed13a5cc1a4ad976fc94d8 M ls-files.c' - # ':100644 100644 7f9281985086971d3877aca27704f2aaf9c448ce bc190ebc71bbd923f2b728e505408f5e54bd073a M rev-tree.c' - if ($line =~ m/^:([0-7]{6}) ([0-7]{6}) ([0-9a-fA-F]{40}) ([0-9a-fA-F]{40}) (.)([0-9]{0,3})\t(.*)$/) { - $res{'from_mode'} = $1; - $res{'to_mode'} = $2; - $res{'from_id'} = $3; - $res{'to_id'} = $4; - $res{'status'} = $5; - $res{'similarity'} = $6; - if ($res{'status'} eq 'R' || $res{'status'} eq 'C') { # renamed or copied - ($res{'from_file'}, $res{'to_file'}) = map { unquote($_) } split("\t", $7); - } else { - $res{'from_file'} = $res{'to_file'} = $res{'file'} = unquote($7); - } - } - # '::100755 100755 100755 60e79ca1b01bc8b057abe17ddab484699a7f5fdb 94067cc5f73388f33722d52ae02f44692bc07490 94067cc5f73388f33722d52ae02f44692bc07490 MR git-gui/git-gui.sh' - # combined diff (for merge commit) - elsif ($line =~ s/^(::+)((?:[0-7]{6} )+)((?:[0-9a-fA-F]{40} )+)([a-zA-Z]+)\t(.*)$//) { - $res{'nparents'} = length($1); - $res{'from_mode'} = [ split(' ', $2) ]; - $res{'to_mode'} = pop @{$res{'from_mode'}}; - $res{'from_id'} = [ split(' ', $3) ]; - $res{'to_id'} = pop @{$res{'from_id'}}; - $res{'status'} = [ split('', $4) ]; - $res{'to_file'} = unquote($5); - } - # 'c512b523472485aef4fff9e57b229d9d243c967f' - elsif ($line =~ m/^([0-9a-fA-F]{40})$/) { - $res{'commit'} = $1; - } - - return wantarray ? %res : \%res; -} - -# wrapper: return parsed line of git-diff-tree "raw" output -# (the argument might be raw line, or parsed info) -sub parsed_difftree_line { - my $line_or_ref = shift; - - if (ref($line_or_ref) eq "HASH") { - # pre-parsed (or generated by hand) - return $line_or_ref; - } else { - return parse_difftree_raw_line($line_or_ref); - } -} - -# parse line of git-ls-tree output -sub parse_ls_tree_line { - my $line = shift; - my %opts = @_; - my %res; - - if ($opts{'-l'}) { - #'100644 blob 0fa3f3a66fb6a137f6ec2c19351ed4d807070ffa 16717 panic.c' - $line =~ m/^([0-9]+) (.+) ([0-9a-fA-F]{40}) +(-|[0-9]+)\t(.+)$/s; - - $res{'mode'} = $1; - $res{'type'} = $2; - $res{'hash'} = $3; - $res{'size'} = $4; - if ($opts{'-z'}) { - $res{'name'} = $5; - } else { - $res{'name'} = unquote($5); - } - } else { - #'100644 blob 0fa3f3a66fb6a137f6ec2c19351ed4d807070ffa panic.c' - $line =~ m/^([0-9]+) (.+) ([0-9a-fA-F]{40})\t(.+)$/s; - - $res{'mode'} = $1; - $res{'type'} = $2; - $res{'hash'} = $3; - if ($opts{'-z'}) { - $res{'name'} = $4; - } else { - $res{'name'} = unquote($4); - } - } - - return wantarray ? %res : \%res; -} - -# generates _two_ hashes, references to which are passed as 2 and 3 argument -sub parse_from_to_diffinfo { - my ($diffinfo, $from, $to, @parents) = @_; - - if ($diffinfo->{'nparents'}) { - # combined diff - $from->{'file'} = []; - $from->{'href'} = []; - fill_from_file_info($diffinfo, @parents) - unless exists $diffinfo->{'from_file'}; - for (my $i = 0; $i < $diffinfo->{'nparents'}; $i++) { - $from->{'file'}[$i] = - defined $diffinfo->{'from_file'}[$i] ? - $diffinfo->{'from_file'}[$i] : - $diffinfo->{'to_file'}; - if ($diffinfo->{'status'}[$i] ne "A") { # not new (added) file - $from->{'href'}[$i] = href(action=>"blob", - hash_base=>$parents[$i], - hash=>$diffinfo->{'from_id'}[$i], - file_name=>$from->{'file'}[$i]); - } else { - $from->{'href'}[$i] = undef; - } - } - } else { - # ordinary (not combined) diff - $from->{'file'} = $diffinfo->{'from_file'}; - if ($diffinfo->{'status'} ne "A") { # not new (added) file - $from->{'href'} = href(action=>"blob", hash_base=>$hash_parent, - hash=>$diffinfo->{'from_id'}, - file_name=>$from->{'file'}); - } else { - delete $from->{'href'}; - } - } - - $to->{'file'} = $diffinfo->{'to_file'}; - if (!is_deleted($diffinfo)) { # file exists in result - $to->{'href'} = href(action=>"blob", hash_base=>$hash, - hash=>$diffinfo->{'to_id'}, - file_name=>$to->{'file'}); - } else { - delete $to->{'href'}; - } -} - -## ...................................................................... -## parse to array of hashes functions - -sub git_get_heads_list { - my ($limit, @classes) = @_; - @classes = get_branch_refs() unless @classes; - my @patterns = map { "refs/$_" } @classes; - my @headslist; - - open my $fd, '-|', git_cmd(), 'for-each-ref', - ($limit ? '--count='.($limit+1) : ()), '--sort=-committerdate', - '--format=%(objectname) %(refname) %(subject)%00%(committer)', - @patterns - or return; - while (my $line = <$fd>) { - my %ref_item; - - chomp $line; - my ($refinfo, $committerinfo) = split(/\0/, $line); - my ($hash, $name, $title) = split(' ', $refinfo, 3); - my ($committer, $epoch, $tz) = - ($committerinfo =~ /^(.*) ([0-9]+) (.*)$/); - $ref_item{'fullname'} = $name; - my $strip_refs = join '|', map { quotemeta } get_branch_refs(); - $name =~ s!^refs/($strip_refs|remotes)/!!; - $ref_item{'name'} = $name; - # for refs neither in 'heads' nor 'remotes' we want to - # show their ref dir - my $ref_dir = (defined $1) ? $1 : ''; - if ($ref_dir ne '' and $ref_dir ne 'heads' and $ref_dir ne 'remotes') { - $ref_item{'name'} .= ' (' . $ref_dir . ')'; - } - - $ref_item{'id'} = $hash; - $ref_item{'title'} = $title || '(no commit message)'; - $ref_item{'epoch'} = $epoch; - if ($epoch) { - $ref_item{'age'} = age_string(time - $ref_item{'epoch'}); - } else { - $ref_item{'age'} = "unknown"; - } - - push @headslist, \%ref_item; - } - close $fd; - - return wantarray ? @headslist : \@headslist; -} - -sub git_get_tags_list { - my $limit = shift; - my @tagslist; - - open my $fd, '-|', git_cmd(), 'for-each-ref', - ($limit ? '--count='.($limit+1) : ()), '--sort=-creatordate', - '--format=%(objectname) %(objecttype) %(refname) '. - '%(*objectname) %(*objecttype) %(subject)%00%(creator)', - 'refs/tags' - or return; - while (my $line = <$fd>) { - my %ref_item; - - chomp $line; - my ($refinfo, $creatorinfo) = split(/\0/, $line); - my ($id, $type, $name, $refid, $reftype, $title) = split(' ', $refinfo, 6); - my ($creator, $epoch, $tz) = - ($creatorinfo =~ /^(.*) ([0-9]+) (.*)$/); - $ref_item{'fullname'} = $name; - $name =~ s!^refs/tags/!!; - - $ref_item{'type'} = $type; - $ref_item{'id'} = $id; - $ref_item{'name'} = $name; - if ($type eq "tag") { - $ref_item{'subject'} = $title; - $ref_item{'reftype'} = $reftype; - $ref_item{'refid'} = $refid; - } else { - $ref_item{'reftype'} = $type; - $ref_item{'refid'} = $id; - } - - if ($type eq "tag" || $type eq "commit") { - $ref_item{'epoch'} = $epoch; - if ($epoch) { - $ref_item{'age'} = age_string(time - $ref_item{'epoch'}); - } else { - $ref_item{'age'} = "unknown"; - } - } - - push @tagslist, \%ref_item; - } - close $fd; - - return wantarray ? @tagslist : \@tagslist; -} - -## ---------------------------------------------------------------------- -## filesystem-related functions - -sub get_file_owner { - my $path = shift; - - my ($dev, $ino, $mode, $nlink, $st_uid, $st_gid, $rdev, $size) = stat($path); - my ($name, $passwd, $uid, $gid, $quota, $comment, $gcos, $dir, $shell) = getpwuid($st_uid); - if (!defined $gcos) { - return undef; - } - my $owner = $gcos; - $owner =~ s/[,;].*$//; - return to_utf8($owner); -} - -# assume that file exists -sub insert_file { - my $filename = shift; - - open my $fd, '<', $filename; - print map { to_utf8($_) } <$fd>; - close $fd; -} - -## ...................................................................... -## mimetype related functions - -sub mimetype_guess_file { - my $filename = shift; - my $mimemap = shift; - -r $mimemap or return undef; - - my %mimemap; - open(my $mh, '<', $mimemap) or return undef; - while (<$mh>) { - next if m/^#/; # skip comments - my ($mimetype, @exts) = split(/\s+/); - foreach my $ext (@exts) { - $mimemap{$ext} = $mimetype; - } - } - close($mh); - - $filename =~ /\.([^.]*)$/; - return $mimemap{$1}; -} - -sub mimetype_guess { - my $filename = shift; - my $mime; - $filename =~ /\./ or return undef; - - if ($mimetypes_file) { - my $file = $mimetypes_file; - if ($file !~ m!^/!) { # if it is relative path - # it is relative to project - $file = "$projectroot/$project/$file"; - } - $mime = mimetype_guess_file($filename, $file); - } - $mime ||= mimetype_guess_file($filename, '/etc/mime.types'); - return $mime; -} - -sub blob_mimetype { - my $fd = shift; - my $filename = shift; - - if ($filename) { - my $mime = mimetype_guess($filename); - $mime and return $mime; - } - - # just in case - return $default_blob_plain_mimetype unless $fd; - - if (-T $fd) { - return 'text/plain'; - } elsif (! $filename) { - return 'application/octet-stream'; - } elsif ($filename =~ m/\.png$/i) { - return 'image/png'; - } elsif ($filename =~ m/\.gif$/i) { - return 'image/gif'; - } elsif ($filename =~ m/\.jpe?g$/i) { - return 'image/jpeg'; - } else { - return 'application/octet-stream'; - } -} - -sub blob_contenttype { - my ($fd, $file_name, $type) = @_; - - $type ||= blob_mimetype($fd, $file_name); - if ($type eq 'text/plain' && defined $default_text_plain_charset) { - $type .= "; charset=$default_text_plain_charset"; - } - - return $type; -} - -# guess file syntax for syntax highlighting; return undef if no highlighting -# the name of syntax can (in the future) depend on syntax highlighter used -sub guess_file_syntax { - my ($highlight, $file_name) = @_; - return undef unless ($highlight && defined $file_name); - my $basename = basename($file_name, '.in'); - return $highlight_basename{$basename} - if exists $highlight_basename{$basename}; - - $basename =~ /\.([^.]*)$/; - my $ext = $1 or return undef; - return $highlight_ext{$ext} - if exists $highlight_ext{$ext}; - - return undef; -} - -# run highlighter and return FD of its output, -# or return original FD if no highlighting -sub run_highlighter { - my ($fd, $highlight, $syntax) = @_; - return $fd unless ($highlight); - - close $fd; - my $syntax_arg = (defined $syntax) ? "--syntax $syntax" : "--force"; - open $fd, quote_command(git_cmd(), "cat-file", "blob", $hash)." | ". - quote_command($^X, '-CO', '-MEncode=decode,FB_DEFAULT', '-pse', - '$_ = decode($fe, $_, FB_DEFAULT) if !utf8::decode($_);', - '--', "-fe=$fallback_encoding")." | ". - quote_command($highlight_bin). - " --replace-tabs=8 --fragment $syntax_arg |" - or die_error(500, "Couldn't open file or run syntax highlighter"); - return $fd; -} - -## ====================================================================== -## functions printing HTML: header, footer, error page - -sub get_page_title { - my $title = to_utf8($site_name); - - unless (defined $project) { - if (defined $project_filter) { - $title .= " - projects in '" . esc_path($project_filter) . "'"; - } - return $title; - } - $title .= " - " . to_utf8($project); - - return $title unless (defined $action); - $title .= "/$action"; # $action is US-ASCII (7bit ASCII) - - return $title unless (defined $file_name); - $title .= " - " . esc_path($file_name); - if ($action eq "tree" && $file_name !~ m|/$|) { - $title .= "/"; - } - - return $title; -} - -sub get_content_type_html { - # require explicit support from the UA if we are to send the page as - # 'application/xhtml+xml', otherwise send it as plain old 'text/html'. - # we have to do this because MSIE sometimes globs '*/*', pretending to - # support xhtml+xml but choking when it gets what it asked for. - if (defined $cgi->http('HTTP_ACCEPT') && - $cgi->http('HTTP_ACCEPT') =~ m/(,|;|\s|^)application\/xhtml\+xml(,|;|\s|$)/ && - $cgi->Accept('application/xhtml+xml') != 0) { - return 'application/xhtml+xml'; - } else { - return 'text/html'; - } -} - -sub print_feed_meta { - if (defined $project) { - my %href_params = get_feed_info(); - if (!exists $href_params{'-title'}) { - $href_params{'-title'} = 'log'; - } - - foreach my $format (qw(RSS Atom)) { - my $type = lc($format); - my %link_attr = ( - '-rel' => 'alternate', - '-title' => esc_attr("$project - $href_params{'-title'} - $format feed"), - '-type' => "application/$type+xml" - ); - - $href_params{'extra_options'} = undef; - $href_params{'action'} = $type; - $link_attr{'-href'} = href(%href_params); - print "\n"; - - $href_params{'extra_options'} = '--no-merges'; - $link_attr{'-href'} = href(%href_params); - $link_attr{'-title'} .= ' (no merges)'; - print "\n"; - } - - } else { - printf(''."\n", - esc_attr($site_name), href(project=>undef, action=>"project_index")); - printf(''."\n", - esc_attr($site_name), href(project=>undef, action=>"opml")); - } -} - -sub print_header_links { - my $status = shift; - - # print out each stylesheet that exist, providing backwards capability - # for those people who defined $stylesheet in a config file - if (defined $stylesheet) { - print ''."\n"; - } else { - foreach my $stylesheet (@stylesheets) { - next unless $stylesheet; - print ''."\n"; - } - } - print_feed_meta() - if ($status eq '200 OK'); - if (defined $favicon) { - print qq(\n); - } -} - -sub print_nav_breadcrumbs_path { - my $dirprefix = undef; - while (my $part = shift) { - $dirprefix .= "/" if defined $dirprefix; - $dirprefix .= $part; - print $cgi->a({-href => href(project => undef, - project_filter => $dirprefix, - action => "project_list")}, - esc_html($part)) . " / "; - } -} - -sub print_nav_breadcrumbs { - my %opts = @_; - - for my $crumb (@extra_breadcrumbs, [ $home_link_str => $home_link.'/gitweb.cgi' ]) { - print $cgi->a({-href => esc_url($crumb->[1])}, $crumb->[0]) . " / "; - } - if (defined $project) { - my @dirname = split '/', $project; - my $projectbasename = pop @dirname; - print_nav_breadcrumbs_path(@dirname); - print $cgi->a({-href => href(action=>"summary")}, esc_html($projectbasename)); - if (defined $action) { - my $action_print = $action ; - if (defined $opts{-action_extra}) { - $action_print = $cgi->a({-href => href(action=>$action)}, - $action); - } - print " / $action_print"; - } - if (defined $opts{-action_extra}) { - print " / $opts{-action_extra}"; - } - print "\n"; - } elsif (defined $project_filter) { - print_nav_breadcrumbs_path(split '/', $project_filter); - } -} - -sub print_search_form { - if (!defined $searchtext) { - $searchtext = ""; - } - my $search_hash; - if (defined $hash_base) { - $search_hash = $hash_base; - } elsif (defined $hash) { - $search_hash = $hash; - } else { - $search_hash = "HEAD"; - } - my $action = $my_uri; - my $use_pathinfo = gitweb_check_feature('pathinfo'); - if ($use_pathinfo) { - $action .= "/".esc_url($project); - } - print $cgi->start_form(-method => "get", -action => $action) . - "
    \n" . - (!$use_pathinfo && - $cgi->input({-name=>"p", -value=>$project, -type=>"hidden"}) . "\n") . - $cgi->input({-name=>"a", -value=>"search", -type=>"hidden"}) . "\n" . - $cgi->input({-name=>"h", -value=>$search_hash, -type=>"hidden"}) . "\n" . - $cgi->popup_menu(-name => 'st', -default => 'commit', - -values => ['commit', 'grep', 'author', 'committer', 'pickaxe']) . - " " . $cgi->a({-href => href(action=>"search_help"), - -title => "search help" }, "?") . " search:\n", - $cgi->textfield(-name => "s", -value => $searchtext, -override => 1) . "\n" . - "" . - $cgi->checkbox(-name => 'sr', -value => 1, -label => 're', - -checked => $search_use_regexp) . - "" . - "
    " . - $cgi->end_form() . "\n"; -} - -sub git_header_html { - my $status = shift || "200 OK"; - my $expires = shift; - my %opts = @_; - - my $title = get_page_title(); - my $content_type = get_content_type_html(); - print $cgi->header(-type=>$content_type, -charset => 'utf-8', - -status=> $status, -expires => $expires) - unless ($opts{'-no_http_header'}); - my $mod_perl_version = $ENV{'MOD_PERL'} ? " $ENV{'MOD_PERL'}" : ''; - print < - - - - - - - - -$title -EOF - # the stylesheet, favicon etc urls won't work correctly with path_info - # unless we set the appropriate base URL - if ($ENV{'PATH_INFO'}) { - print "\n"; - } - print_header_links($status); - - if (defined $site_html_head_string) { - print to_utf8($site_html_head_string); - } - - print "\n" . - "\n"; - - if (defined $site_header && -f $site_header) { - insert_file($site_header); - } - - print "
    \n"; - if (defined $logo) { - print $cgi->a({-href => esc_url($logo_url), - -title => $logo_label}, - $cgi->img({-src => esc_url($logo), - -width => 72, -height => 27, - -alt => "git", - -class => "logo"})); - } - print_nav_breadcrumbs(%opts); - print "
    \n"; - - my $have_search = gitweb_check_feature('search'); - if (defined $project && $have_search) { - print_search_form(); - } -} - -sub git_footer_html { - my $feed_class = 'rss_logo'; - - print "
    \n"; - if (defined $project) { - my $descr = git_get_project_description($project); - if (defined $descr) { - print "\n"; - } - - my %href_params = get_feed_info(); - if (!%href_params) { - $feed_class .= ' generic'; - } - $href_params{'-title'} ||= 'log'; - - foreach my $format (qw(RSS Atom)) { - $href_params{'action'} = lc($format); - print $cgi->a({-href => href(%href_params), - -title => "$href_params{'-title'} $format feed", - -class => $feed_class}, $format)."\n"; - } - - } else { - print $cgi->a({-href => href(project=>undef, action=>"opml", - project_filter => $project_filter), - -class => $feed_class}, "OPML") . " "; - print $cgi->a({-href => href(project=>undef, action=>"project_index", - project_filter => $project_filter), - -class => $feed_class}, "TXT") . "\n"; - } - print "
    \n"; # class="page_footer" - - if (defined $t0 && gitweb_check_feature('timed')) { - print "
    \n"; - print 'This page took '. - ''. - tv_interval($t0, [ gettimeofday() ]). - ' seconds '. - ' and '. - ''. - $number_of_git_cmds. - ' git commands '. - " to generate.\n"; - print "
    \n"; # class="page_footer" - } - - if (defined $site_footer && -f $site_footer) { - insert_file($site_footer); - } - - print qq!\n!; - if (defined $action && - $action eq 'blame_incremental') { - print qq!\n!; - } else { - my ($jstimezone, $tz_cookie, $datetime_class) = - gitweb_get_feature('javascript-timezone'); - - print qq!\n!; - } - - print "\n" . - ""; -} - -# die_error(, [, ]) -# Example: die_error(404, 'Hash not found') -# By convention, use the following status codes (as defined in RFC 2616): -# 400: Invalid or missing CGI parameters, or -# requested object exists but has wrong type. -# 403: Requested feature (like "pickaxe" or "snapshot") not enabled on -# this server or project. -# 404: Requested object/revision/project doesn't exist. -# 500: The server isn't configured properly, or -# an internal error occurred (e.g. failed assertions caused by bugs), or -# an unknown error occurred (e.g. the git binary died unexpectedly). -# 503: The server is currently unavailable (because it is overloaded, -# or down for maintenance). Generally, this is a temporary state. -sub die_error { - my $status = shift || 500; - my $error = esc_html(shift) || "Internal Server Error"; - my $extra = shift; - my %opts = @_; - - my %http_responses = ( - 400 => '400 Bad Request', - 403 => '403 Forbidden', - 404 => '404 Not Found', - 500 => '500 Internal Server Error', - 503 => '503 Service Unavailable', - ); - git_header_html($http_responses{$status}, undef, %opts); - print < -

    -$status - $error -
    -EOF - if (defined $extra) { - print "
    \n" . - "$extra\n"; - } - print "\n"; - - git_footer_html(); - goto DONE_GITWEB - unless ($opts{'-error_handler'}); -} - -## ---------------------------------------------------------------------- -## functions printing or outputting HTML: navigation - -sub git_print_page_nav { - my ($current, $suppress, $head, $treehead, $treebase, $extra) = @_; - $extra = '' if !defined $extra; # pager or formats - - my @navs = qw(summary shortlog log commit commitdiff tree); - if ($suppress) { - @navs = grep { $_ ne $suppress } @navs; - } - - my %arg = map { $_ => {action=>$_} } @navs; - if (defined $head) { - for (qw(commit commitdiff)) { - $arg{$_}{'hash'} = $head; - } - if ($current =~ m/^(tree | log | shortlog | commit | commitdiff | search)$/x) { - for (qw(shortlog log)) { - $arg{$_}{'hash'} = $head; - } - } - } - - $arg{'tree'}{'hash'} = $treehead if defined $treehead; - $arg{'tree'}{'hash_base'} = $treebase if defined $treebase; - - my @actions = gitweb_get_feature('actions'); - my %repl = ( - '%' => '%', - 'n' => $project, # project name - 'f' => $git_dir, # project path within filesystem - 'h' => $treehead || '', # current hash ('h' parameter) - 'b' => $treebase || '', # hash base ('hb' parameter) - ); - while (@actions) { - my ($label, $link, $pos) = splice(@actions,0,3); - # insert - @navs = map { $_ eq $pos ? ($_, $label) : $_ } @navs; - # munch munch - $link =~ s/%([%nfhb])/$repl{$1}/g; - $arg{$label}{'_href'} = $link; - } - - print "
    \n" . - (join " | ", - map { $_ eq $current ? - $_ : $cgi->a({-href => ($arg{$_}{_href} ? $arg{$_}{_href} : href(%{$arg{$_}}))}, "$_") - } @navs); - print "
    \n$extra
    \n" . - "
    \n"; -} - -# returns a submenu for the navigation of the refs views (tags, heads, -# remotes) with the current view disabled and the remotes view only -# available if the feature is enabled -sub format_ref_views { - my ($current) = @_; - my @ref_views = qw{tags heads}; - push @ref_views, 'remotes' if gitweb_check_feature('remote_heads'); - return join " | ", map { - $_ eq $current ? $_ : - $cgi->a({-href => href(action=>$_)}, $_) - } @ref_views -} - -sub format_paging_nav { - my ($action, $page, $has_next_link) = @_; - my $paging_nav; - - - if ($page > 0) { - $paging_nav .= - $cgi->a({-href => href(-replay=>1, page=>undef)}, "first") . - " ⋅ " . - $cgi->a({-href => href(-replay=>1, page=>$page-1), - -accesskey => "p", -title => "Alt-p"}, "prev"); - } else { - $paging_nav .= "first ⋅ prev"; - } - - if ($has_next_link) { - $paging_nav .= " ⋅ " . - $cgi->a({-href => href(-replay=>1, page=>$page+1), - -accesskey => "n", -title => "Alt-n"}, "next"); - } else { - $paging_nav .= " ⋅ next"; - } - - return $paging_nav; -} - -## ...................................................................... -## functions printing or outputting HTML: div - -sub git_print_header_div { - my ($action, $title, $hash, $hash_base) = @_; - my %args = (); - - $args{'action'} = $action; - $args{'hash'} = $hash if $hash; - $args{'hash_base'} = $hash_base if $hash_base; - - print "
    \n" . - $cgi->a({-href => href(%args), -class => "title"}, - $title ? $title : $action) . - "\n
    \n"; -} - -sub format_repo_url { - my ($name, $url) = @_; - return "$name$url\n"; -} - -# Group output by placing it in a DIV element and adding a header. -# Options for start_div() can be provided by passing a hash reference as the -# first parameter to the function. -# Options to git_print_header_div() can be provided by passing an array -# reference. This must follow the options to start_div if they are present. -# The content can be a scalar, which is output as-is, a scalar reference, which -# is output after html escaping, an IO handle passed either as *handle or -# *handle{IO}, or a function reference. In the latter case all following -# parameters will be taken as argument to the content function call. -sub git_print_section { - my ($div_args, $header_args, $content); - my $arg = shift; - if (ref($arg) eq 'HASH') { - $div_args = $arg; - $arg = shift; - } - if (ref($arg) eq 'ARRAY') { - $header_args = $arg; - $arg = shift; - } - $content = $arg; - - print $cgi->start_div($div_args); - git_print_header_div(@$header_args); - - if (ref($content) eq 'CODE') { - $content->(@_); - } elsif (ref($content) eq 'SCALAR') { - print esc_html($$content); - } elsif (ref($content) eq 'GLOB' or ref($content) eq 'IO::Handle') { - print <$content>; - } elsif (!ref($content) && defined($content)) { - print $content; - } - - print $cgi->end_div; -} - -sub format_timestamp_html { - my $date = shift; - my $strtime = $date->{'rfc2822'}; - - my (undef, undef, $datetime_class) = - gitweb_get_feature('javascript-timezone'); - if ($datetime_class) { - $strtime = qq!$strtime!; - } - - my $localtime_format = '(%02d:%02d %s)'; - if ($date->{'hour_local'} < 6) { - $localtime_format = '(%02d:%02d %s)'; - } - $strtime .= ' ' . - sprintf($localtime_format, - $date->{'hour_local'}, $date->{'minute_local'}, $date->{'tz_local'}); - - return $strtime; -} - -# Outputs the author name and date in long form -sub git_print_authorship { - my $co = shift; - my %opts = @_; - my $tag = $opts{-tag} || 'div'; - my $author = $co->{'author_name'}; - - my %ad = parse_date($co->{'author_epoch'}, $co->{'author_tz'}); - print "<$tag class=\"author_date\">" . - format_search_author($author, "author", esc_html($author)) . - " [".format_timestamp_html(\%ad)."]". - git_get_avatar($co->{'author_email'}, -pad_before => 1) . - "\n"; -} - -# Outputs table rows containing the full author or committer information, -# in the format expected for 'commit' view (& similar). -# Parameters are a commit hash reference, followed by the list of people -# to output information for. If the list is empty it defaults to both -# author and committer. -sub git_print_authorship_rows { - my $co = shift; - # too bad we can't use @people = @_ || ('author', 'committer') - my @people = @_; - @people = ('author', 'committer') unless @people; - foreach my $who (@people) { - my %wd = parse_date($co->{"${who}_epoch"}, $co->{"${who}_tz"}); - print "$who" . - format_search_author($co->{"${who}_name"}, $who, - esc_html($co->{"${who}_name"})) . " " . - format_search_author($co->{"${who}_email"}, $who, - esc_html("<" . $co->{"${who}_email"} . ">")) . - "" . - git_get_avatar($co->{"${who}_email"}, -size => 'double') . - "\n" . - "" . - "" . - format_timestamp_html(\%wd) . - "" . - "\n"; - } -} - -sub git_print_page_path { - my $name = shift; - my $type = shift; - my $hb = shift; - - - print "
    "; - print $cgi->a({-href => href(action=>"tree", hash_base=>$hb), - -title => 'tree root'}, to_utf8("[$project]")); - print " / "; - if (defined $name) { - my @dirname = split '/', $name; - my $basename = pop @dirname; - my $fullname = ''; - - foreach my $dir (@dirname) { - $fullname .= ($fullname ? '/' : '') . $dir; - print $cgi->a({-href => href(action=>"tree", file_name=>$fullname, - hash_base=>$hb), - -title => $fullname}, esc_path($dir)); - print " / "; - } - if (defined $type && $type eq 'blob') { - print $cgi->a({-href => href(action=>"blob_plain", file_name=>$file_name, - hash_base=>$hb), - -title => $name}, esc_path($basename)); - } elsif (defined $type && $type eq 'tree') { - print $cgi->a({-href => href(action=>"tree", file_name=>$file_name, - hash_base=>$hb), - -title => $name}, esc_path($basename)); - print " / "; - } else { - print esc_path($basename); - } - } - print "
    \n"; -} - -sub git_print_log { - my $log = shift; - my %opts = @_; - - if ($opts{'-remove_title'}) { - # remove title, i.e. first line of log - shift @$log; - } - # remove leading empty lines - while (defined $log->[0] && $log->[0] eq "") { - shift @$log; - } - - # print log - my $skip_blank_line = 0; - foreach my $line (@$log) { - if ($line =~ m/^\s*([A-Z][-A-Za-z]*-[Bb]y|C[Cc]): /) { - if (! $opts{'-remove_signoff'}) { - print "" . esc_html($line) . "
    \n"; - $skip_blank_line = 1; - } - next; - } - - if ($line =~ m,\s*([a-z]*link): (https?://\S+),i) { - if (! $opts{'-remove_signoff'}) { - print "" . esc_html($1) . ": " . - "" . esc_html($2) . "" . - "
    \n"; - $skip_blank_line = 1; - } - next; - } - - # print only one empty line - # do not print empty line after signoff - if ($line eq "") { - next if ($skip_blank_line); - $skip_blank_line = 1; - } else { - $skip_blank_line = 0; - } - - print format_log_line_html($line) . "
    \n"; - } - - if ($opts{'-final_empty_line'}) { - # end with single empty line - print "
    \n" unless $skip_blank_line; - } -} - -# return link target (what link points to) -sub git_get_link_target { - my $hash = shift; - my $link_target; - - # read link - open my $fd, "-|", git_cmd(), "cat-file", "blob", $hash - or return; - { - local $/ = undef; - $link_target = <$fd>; - } - close $fd - or return; - - return $link_target; -} - -# given link target, and the directory (basedir) the link is in, -# return target of link relative to top directory (top tree); -# return undef if it is not possible (including absolute links). -sub normalize_link_target { - my ($link_target, $basedir) = @_; - - # absolute symlinks (beginning with '/') cannot be normalized - return if (substr($link_target, 0, 1) eq '/'); - - # normalize link target to path from top (root) tree (dir) - my $path; - if ($basedir) { - $path = $basedir . '/' . $link_target; - } else { - # we are in top (root) tree (dir) - $path = $link_target; - } - - # remove //, /./, and /../ - my @path_parts; - foreach my $part (split('/', $path)) { - # discard '.' and '' - next if (!$part || $part eq '.'); - # handle '..' - if ($part eq '..') { - if (@path_parts) { - pop @path_parts; - } else { - # link leads outside repository (outside top dir) - return; - } - } else { - push @path_parts, $part; - } - } - $path = join('/', @path_parts); - - return $path; -} - -# print tree entry (row of git_tree), but without encompassing element -sub git_print_tree_entry { - my ($t, $basedir, $hash_base, $have_blame) = @_; - - my %base_key = (); - $base_key{'hash_base'} = $hash_base if defined $hash_base; - - # The format of a table row is: mode list link. Where mode is - # the mode of the entry, list is the name of the entry, an href, - # and link is the action links of the entry. - - print "" . mode_str($t->{'mode'}) . "\n"; - if (exists $t->{'size'}) { - print "$t->{'size'}\n"; - } - if ($t->{'type'} eq "blob") { - print "" . - $cgi->a({-href => href(action=>"blob", hash=>$t->{'hash'}, - file_name=>"$basedir$t->{'name'}", %base_key), - -class => "list"}, esc_path($t->{'name'})); - if (S_ISLNK(oct $t->{'mode'})) { - my $link_target = git_get_link_target($t->{'hash'}); - if ($link_target) { - my $norm_target = normalize_link_target($link_target, $basedir); - if (defined $norm_target) { - print " -> " . - $cgi->a({-href => href(action=>"object", hash_base=>$hash_base, - file_name=>$norm_target), - -title => $norm_target}, esc_path($link_target)); - } else { - print " -> " . esc_path($link_target); - } - } - } - print "\n"; - print ""; - print $cgi->a({-href => href(action=>"blob", hash=>$t->{'hash'}, - file_name=>"$basedir$t->{'name'}", %base_key)}, - "blob"); - if ($have_blame) { - print " | " . - $cgi->a({-href => href(action=>"blame", hash=>$t->{'hash'}, - file_name=>"$basedir$t->{'name'}", %base_key)}, - "blame"); - } - if (defined $hash_base) { - print " | " . - $cgi->a({-href => href(action=>"history", hash_base=>$hash_base, - hash=>$t->{'hash'}, file_name=>"$basedir$t->{'name'}")}, - "history"); - } - print " | " . - $cgi->a({-href => href(action=>"blob_plain", hash_base=>$hash_base, - file_name=>"$basedir$t->{'name'}")}, - "raw"); - print "\n"; - - } elsif ($t->{'type'} eq "tree") { - print ""; - print $cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'}, - file_name=>"$basedir$t->{'name'}", - %base_key)}, - esc_path($t->{'name'})); - print "\n"; - print ""; - print $cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'}, - file_name=>"$basedir$t->{'name'}", - %base_key)}, - "tree"); - if (defined $hash_base) { - print " | " . - $cgi->a({-href => href(action=>"history", hash_base=>$hash_base, - file_name=>"$basedir$t->{'name'}")}, - "history"); - } - print "\n"; - } else { - # unknown object: we can only present history for it - # (this includes 'commit' object, i.e. submodule support) - print "" . - esc_path($t->{'name'}) . - "\n"; - print ""; - if (defined $hash_base) { - print $cgi->a({-href => href(action=>"history", - hash_base=>$hash_base, - file_name=>"$basedir$t->{'name'}")}, - "history"); - } - print "\n"; - } -} - -## ...................................................................... -## functions printing large fragments of HTML - -# get pre-image filenames for merge (combined) diff -sub fill_from_file_info { - my ($diff, @parents) = @_; - - $diff->{'from_file'} = [ ]; - $diff->{'from_file'}[$diff->{'nparents'} - 1] = undef; - for (my $i = 0; $i < $diff->{'nparents'}; $i++) { - if ($diff->{'status'}[$i] eq 'R' || - $diff->{'status'}[$i] eq 'C') { - $diff->{'from_file'}[$i] = - git_get_path_by_hash($parents[$i], $diff->{'from_id'}[$i]); - } - } - - return $diff; -} - -# is current raw difftree line of file deletion -sub is_deleted { - my $diffinfo = shift; - - return $diffinfo->{'to_id'} eq ('0' x 40); -} - -# does patch correspond to [previous] difftree raw line -# $diffinfo - hashref of parsed raw diff format -# $patchinfo - hashref of parsed patch diff format -# (the same keys as in $diffinfo) -sub is_patch_split { - my ($diffinfo, $patchinfo) = @_; - - return defined $diffinfo && defined $patchinfo - && $diffinfo->{'to_file'} eq $patchinfo->{'to_file'}; -} - - -sub git_difftree_body { - my ($difftree, $hash, @parents) = @_; - my ($parent) = $parents[0]; - my $have_blame = gitweb_check_feature('blame'); - print "
    \n"; - if ($#{$difftree} > 10) { - print(($#{$difftree} + 1) . " files changed:\n"); - } - print "
    \n"; - - print " 1 ? "combined " : "") . - "diff_tree\">\n"; - - # header only for combined diff in 'commitdiff' view - my $has_header = @$difftree && @parents > 1 && $action eq 'commitdiff'; - if ($has_header) { - # table header - print "\n" . - "\n"; # filename, patchN link - for (my $i = 0; $i < @parents; $i++) { - my $par = $parents[$i]; - print "\n"; - } - print "\n\n"; - } - - my $alternate = 1; - my $patchno = 0; - foreach my $line (@{$difftree}) { - my $diff = parsed_difftree_line($line); - - if ($alternate) { - print "\n"; - } else { - print "\n"; - } - $alternate ^= 1; - - if (exists $diff->{'nparents'}) { # combined diff - - fill_from_file_info($diff, @parents) - unless exists $diff->{'from_file'}; - - if (!is_deleted($diff)) { - # file exists in the result (child) commit - print "\n"; - } else { - print "\n"; - } - - if ($action eq 'commitdiff') { - # link to patch - $patchno++; - print "\n"; - } - - my $has_history = 0; - my $not_deleted = 0; - for (my $i = 0; $i < $diff->{'nparents'}; $i++) { - my $hash_parent = $parents[$i]; - my $from_hash = $diff->{'from_id'}[$i]; - my $from_path = $diff->{'from_file'}[$i]; - my $status = $diff->{'status'}[$i]; - - $has_history ||= ($status ne 'A'); - $not_deleted ||= ($status ne 'D'); - - if ($status eq 'A') { - print "\n"; - } elsif ($status eq 'D') { - print "\n"; - } else { - if ($diff->{'to_id'} eq $from_hash) { - print "\n"; - } - } - - print "\n"; - - print "\n"; - next; # instead of 'else' clause, to avoid extra indent - } - # else ordinary diff - - my ($to_mode_oct, $to_mode_str, $to_file_type); - my ($from_mode_oct, $from_mode_str, $from_file_type); - if ($diff->{'to_mode'} ne ('0' x 6)) { - $to_mode_oct = oct $diff->{'to_mode'}; - if (S_ISREG($to_mode_oct)) { # only for regular file - $to_mode_str = sprintf("%04o", $to_mode_oct & 0777); # permission bits - } - $to_file_type = file_type($diff->{'to_mode'}); - } - if ($diff->{'from_mode'} ne ('0' x 6)) { - $from_mode_oct = oct $diff->{'from_mode'}; - if (S_ISREG($from_mode_oct)) { # only for regular file - $from_mode_str = sprintf("%04o", $from_mode_oct & 0777); # permission bits - } - $from_file_type = file_type($diff->{'from_mode'}); - } - - if ($diff->{'status'} eq "A") { # created - my $mode_chng = "[new $to_file_type"; - $mode_chng .= " with mode: $to_mode_str" if $to_mode_str; - $mode_chng .= "]"; - print "\n"; - print "\n"; - print "\n"; - - } elsif ($diff->{'status'} eq "D") { # deleted - my $mode_chng = "[deleted $from_file_type]"; - print "\n"; - print "\n"; - print "\n"; - - } elsif ($diff->{'status'} eq "M" || $diff->{'status'} eq "T") { # modified, or type changed - my $mode_chnge = ""; - if ($diff->{'from_mode'} != $diff->{'to_mode'}) { - $mode_chnge = "[changed"; - if ($from_file_type ne $to_file_type) { - $mode_chnge .= " from $from_file_type to $to_file_type"; - } - if (($from_mode_oct & 0777) != ($to_mode_oct & 0777)) { - if ($from_mode_str && $to_mode_str) { - $mode_chnge .= " mode: $from_mode_str->$to_mode_str"; - } elsif ($to_mode_str) { - $mode_chnge .= " mode: $to_mode_str"; - } - } - $mode_chnge .= "]\n"; - } - print "\n"; - print "\n"; - print "\n"; - - } elsif ($diff->{'status'} eq "R" || $diff->{'status'} eq "C") { # renamed or copied - my %status_name = ('R' => 'moved', 'C' => 'copied'); - my $nstatus = $status_name{$diff->{'status'}}; - my $mode_chng = ""; - if ($diff->{'from_mode'} != $diff->{'to_mode'}) { - # mode also for directories, so we cannot use $to_mode_str - $mode_chng = sprintf(", mode: %04o", $to_mode_oct & 0777); - } - print "\n" . - "\n" . - "\n"; - - } # we should not encounter Unmerged (U) or Unknown (X) status - print "\n"; - } - print "" if $has_header; - print "
    " . - $cgi->a({-href => href(action=>"commitdiff", - hash=>$hash, hash_parent=>$par), - -title => 'commitdiff to parent number ' . - ($i+1) . ': ' . substr($par,0,7)}, - $i+1) . - " 
    " . - $cgi->a({-href => href(action=>"blob", hash=>$diff->{'to_id'}, - file_name=>$diff->{'to_file'}, - hash_base=>$hash), - -class => "list"}, esc_path($diff->{'to_file'})) . - "" . - esc_path($diff->{'to_file'}) . - "" . - $cgi->a({-href => href(-anchor=>"patch$patchno")}, - "patch") . - " | " . - " | " . - $cgi->a({-href => href(action=>"blob", - hash_base=>$hash, - hash=>$from_hash, - file_name=>$from_path)}, - "blob" . ($i+1)) . - " | "; - } - print $cgi->a({-href => href(action=>"blobdiff", - hash=>$diff->{'to_id'}, - hash_parent=>$from_hash, - hash_base=>$hash, - hash_parent_base=>$hash_parent, - file_name=>$diff->{'to_file'}, - file_parent=>$from_path)}, - "diff" . ($i+1)) . - " | "; - if ($not_deleted) { - print $cgi->a({-href => href(action=>"blob", - hash=>$diff->{'to_id'}, - file_name=>$diff->{'to_file'}, - hash_base=>$hash)}, - "blob"); - print " | " if ($has_history); - } - if ($has_history) { - print $cgi->a({-href => href(action=>"history", - file_name=>$diff->{'to_file'}, - hash_base=>$hash)}, - "history"); - } - print "
    "; - print $cgi->a({-href => href(action=>"blob", hash=>$diff->{'to_id'}, - hash_base=>$hash, file_name=>$diff->{'file'}), - -class => "list"}, esc_path($diff->{'file'})); - print "$mode_chng"; - if ($action eq 'commitdiff') { - # link to patch - $patchno++; - print $cgi->a({-href => href(-anchor=>"patch$patchno")}, - "patch") . - " | "; - } - print $cgi->a({-href => href(action=>"blob", hash=>$diff->{'to_id'}, - hash_base=>$hash, file_name=>$diff->{'file'})}, - "blob"); - print ""; - print $cgi->a({-href => href(action=>"blob", hash=>$diff->{'from_id'}, - hash_base=>$parent, file_name=>$diff->{'file'}), - -class => "list"}, esc_path($diff->{'file'})); - print "$mode_chng"; - if ($action eq 'commitdiff') { - # link to patch - $patchno++; - print $cgi->a({-href => href(-anchor=>"patch$patchno")}, - "patch") . - " | "; - } - print $cgi->a({-href => href(action=>"blob", hash=>$diff->{'from_id'}, - hash_base=>$parent, file_name=>$diff->{'file'})}, - "blob") . " | "; - if ($have_blame) { - print $cgi->a({-href => href(action=>"blame", hash_base=>$parent, - file_name=>$diff->{'file'})}, - "blame") . " | "; - } - print $cgi->a({-href => href(action=>"history", hash_base=>$parent, - file_name=>$diff->{'file'})}, - "history"); - print ""; - print $cgi->a({-href => href(action=>"blob", hash=>$diff->{'to_id'}, - hash_base=>$hash, file_name=>$diff->{'file'}), - -class => "list"}, esc_path($diff->{'file'})); - print "$mode_chnge"; - if ($action eq 'commitdiff') { - # link to patch - $patchno++; - print $cgi->a({-href => href(-anchor=>"patch$patchno")}, - "patch") . - " | "; - } elsif ($diff->{'to_id'} ne $diff->{'from_id'}) { - # "commit" view and modified file (not onlu mode changed) - print $cgi->a({-href => href(action=>"blobdiff", - hash=>$diff->{'to_id'}, hash_parent=>$diff->{'from_id'}, - hash_base=>$hash, hash_parent_base=>$parent, - file_name=>$diff->{'file'})}, - "diff") . - " | "; - } - print $cgi->a({-href => href(action=>"blob", hash=>$diff->{'to_id'}, - hash_base=>$hash, file_name=>$diff->{'file'})}, - "blob") . " | "; - if ($have_blame) { - print $cgi->a({-href => href(action=>"blame", hash_base=>$hash, - file_name=>$diff->{'file'})}, - "blame") . " | "; - } - print $cgi->a({-href => href(action=>"history", hash_base=>$hash, - file_name=>$diff->{'file'})}, - "history"); - print "" . - $cgi->a({-href => href(action=>"blob", hash_base=>$hash, - hash=>$diff->{'to_id'}, file_name=>$diff->{'to_file'}), - -class => "list"}, esc_path($diff->{'to_file'})) . "[$nstatus from " . - $cgi->a({-href => href(action=>"blob", hash_base=>$parent, - hash=>$diff->{'from_id'}, file_name=>$diff->{'from_file'}), - -class => "list"}, esc_path($diff->{'from_file'})) . - " with " . (int $diff->{'similarity'}) . "% similarity$mode_chng]"; - if ($action eq 'commitdiff') { - # link to patch - $patchno++; - print $cgi->a({-href => href(-anchor=>"patch$patchno")}, - "patch") . - " | "; - } elsif ($diff->{'to_id'} ne $diff->{'from_id'}) { - # "commit" view and modified file (not only pure rename or copy) - print $cgi->a({-href => href(action=>"blobdiff", - hash=>$diff->{'to_id'}, hash_parent=>$diff->{'from_id'}, - hash_base=>$hash, hash_parent_base=>$parent, - file_name=>$diff->{'to_file'}, file_parent=>$diff->{'from_file'})}, - "diff") . - " | "; - } - print $cgi->a({-href => href(action=>"blob", hash=>$diff->{'to_id'}, - hash_base=>$parent, file_name=>$diff->{'to_file'})}, - "blob") . " | "; - if ($have_blame) { - print $cgi->a({-href => href(action=>"blame", hash_base=>$hash, - file_name=>$diff->{'to_file'})}, - "blame") . " | "; - } - print $cgi->a({-href => href(action=>"history", hash_base=>$hash, - file_name=>$diff->{'to_file'})}, - "history"); - print "
    \n"; -} - -# Print context lines and then rem/add lines in a side-by-side manner. -sub print_sidebyside_diff_lines { - my ($ctx, $rem, $add) = @_; - - # print context block before add/rem block - if (@$ctx) { - print join '', - '
    ', - '
    ', - @$ctx, - '
    ', - '
    ', - @$ctx, - '
    ', - '
    '; - } - - if (!@$add) { - # pure removal - print join '', - '
    ', - '
    ', - @$rem, - '
    ', - '
    '; - } elsif (!@$rem) { - # pure addition - print join '', - '
    ', - '
    ', - @$add, - '
    ', - '
    '; - } else { - print join '', - '
    ', - '
    ', - @$rem, - '
    ', - '
    ', - @$add, - '
    ', - '
    '; - } -} - -# Print context lines and then rem/add lines in inline manner. -sub print_inline_diff_lines { - my ($ctx, $rem, $add) = @_; - - print @$ctx, @$rem, @$add; -} - -# Format removed and added line, mark changed part and HTML-format them. -# Implementation is based on contrib/diff-highlight -sub format_rem_add_lines_pair { - my ($rem, $add, $num_parents) = @_; - - # We need to untabify lines before split()'ing them; - # otherwise offsets would be invalid. - chomp $rem; - chomp $add; - $rem = untabify($rem); - $add = untabify($add); - - my @rem = split(//, $rem); - my @add = split(//, $add); - my ($esc_rem, $esc_add); - # Ignore leading +/- characters for each parent. - my ($prefix_len, $suffix_len) = ($num_parents, 0); - my ($prefix_has_nonspace, $suffix_has_nonspace); - - my $shorter = (@rem < @add) ? @rem : @add; - while ($prefix_len < $shorter) { - last if ($rem[$prefix_len] ne $add[$prefix_len]); - - $prefix_has_nonspace = 1 if ($rem[$prefix_len] !~ /\s/); - $prefix_len++; - } - - while ($prefix_len + $suffix_len < $shorter) { - last if ($rem[-1 - $suffix_len] ne $add[-1 - $suffix_len]); - - $suffix_has_nonspace = 1 if ($rem[-1 - $suffix_len] !~ /\s/); - $suffix_len++; - } - - # Mark lines that are different from each other, but have some common - # part that isn't whitespace. If lines are completely different, don't - # mark them because that would make output unreadable, especially if - # diff consists of multiple lines. - if ($prefix_has_nonspace || $suffix_has_nonspace) { - $esc_rem = esc_html_hl_regions($rem, 'marked', - [$prefix_len, @rem - $suffix_len], -nbsp=>1); - $esc_add = esc_html_hl_regions($add, 'marked', - [$prefix_len, @add - $suffix_len], -nbsp=>1); - } else { - $esc_rem = esc_html($rem, -nbsp=>1); - $esc_add = esc_html($add, -nbsp=>1); - } - - return format_diff_line(\$esc_rem, 'rem'), - format_diff_line(\$esc_add, 'add'); -} - -# HTML-format diff context, removed and added lines. -sub format_ctx_rem_add_lines { - my ($ctx, $rem, $add, $num_parents) = @_; - my (@new_ctx, @new_rem, @new_add); - my $can_highlight = 0; - my $is_combined = ($num_parents > 1); - - # Highlight if every removed line has a corresponding added line. - if (@$add > 0 && @$add == @$rem) { - $can_highlight = 1; - - # Highlight lines in combined diff only if the chunk contains - # diff between the same version, e.g. - # - # - a - # - b - # + c - # + d - # - # Otherwise the highlightling would be confusing. - if ($is_combined) { - for (my $i = 0; $i < @$add; $i++) { - my $prefix_rem = substr($rem->[$i], 0, $num_parents); - my $prefix_add = substr($add->[$i], 0, $num_parents); - - $prefix_rem =~ s/-/+/g; - - if ($prefix_rem ne $prefix_add) { - $can_highlight = 0; - last; - } - } - } - } - - if ($can_highlight) { - for (my $i = 0; $i < @$add; $i++) { - my ($line_rem, $line_add) = format_rem_add_lines_pair( - $rem->[$i], $add->[$i], $num_parents); - push @new_rem, $line_rem; - push @new_add, $line_add; - } - } else { - @new_rem = map { format_diff_line($_, 'rem') } @$rem; - @new_add = map { format_diff_line($_, 'add') } @$add; - } - - @new_ctx = map { format_diff_line($_, 'ctx') } @$ctx; - - return (\@new_ctx, \@new_rem, \@new_add); -} - -# Print context lines and then rem/add lines. -sub print_diff_lines { - my ($ctx, $rem, $add, $diff_style, $num_parents) = @_; - my $is_combined = $num_parents > 1; - - ($ctx, $rem, $add) = format_ctx_rem_add_lines($ctx, $rem, $add, - $num_parents); - - if ($diff_style eq 'sidebyside' && !$is_combined) { - print_sidebyside_diff_lines($ctx, $rem, $add); - } else { - # default 'inline' style and unknown styles - print_inline_diff_lines($ctx, $rem, $add); - } -} - -sub print_diff_chunk { - my ($diff_style, $num_parents, $from, $to, @chunk) = @_; - my (@ctx, @rem, @add); - - # The class of the previous line. - my $prev_class = ''; - - return unless @chunk; - - # incomplete last line might be among removed or added lines, - # or both, or among context lines: find which - for (my $i = 1; $i < @chunk; $i++) { - if ($chunk[$i][0] eq 'incomplete') { - $chunk[$i][0] = $chunk[$i-1][0]; - } - } - - # guardian - push @chunk, ["", ""]; - - foreach my $line_info (@chunk) { - my ($class, $line) = @$line_info; - - # print chunk headers - if ($class && $class eq 'chunk_header') { - print format_diff_line($line, $class, $from, $to); - next; - } - - ## print from accumulator when have some add/rem lines or end - # of chunk (flush context lines), or when have add and rem - # lines and new block is reached (otherwise add/rem lines could - # be reordered) - if (!$class || ((@rem || @add) && $class eq 'ctx') || - (@rem && @add && $class ne $prev_class)) { - print_diff_lines(\@ctx, \@rem, \@add, - $diff_style, $num_parents); - @ctx = @rem = @add = (); - } - - ## adding lines to accumulator - # guardian value - last unless $line; - # rem, add or change - if ($class eq 'rem') { - push @rem, $line; - } elsif ($class eq 'add') { - push @add, $line; - } - # context line - if ($class eq 'ctx') { - push @ctx, $line; - } - - $prev_class = $class; - } -} - -sub git_patchset_body { - my ($fd, $diff_style, $difftree, $hash, @hash_parents) = @_; - my ($hash_parent) = $hash_parents[0]; - - my $is_combined = (@hash_parents > 1); - my $patch_idx = 0; - my $patch_number = 0; - my $patch_line; - my $diffinfo; - my $to_name; - my (%from, %to); - my @chunk; # for side-by-side diff - - print "
    \n"; - - # skip to first patch - while ($patch_line = <$fd>) { - chomp $patch_line; - - last if ($patch_line =~ m/^diff /); - } - - PATCH: - while ($patch_line) { - - # parse "git diff" header line - if ($patch_line =~ m/^diff --git (\"(?:[^\\\"]*(?:\\.[^\\\"]*)*)\"|[^ "]*) (.*)$/) { - # $1 is from_name, which we do not use - $to_name = unquote($2); - $to_name =~ s!^b/!!; - } elsif ($patch_line =~ m/^diff --(cc|combined) ("?.*"?)$/) { - # $1 is 'cc' or 'combined', which we do not use - $to_name = unquote($2); - } else { - $to_name = undef; - } - - # check if current patch belong to current raw line - # and parse raw git-diff line if needed - if (is_patch_split($diffinfo, { 'to_file' => $to_name })) { - # this is continuation of a split patch - print "
    \n"; - } else { - # advance raw git-diff output if needed - $patch_idx++ if defined $diffinfo; - - # read and prepare patch information - $diffinfo = parsed_difftree_line($difftree->[$patch_idx]); - - # compact combined diff output can have some patches skipped - # find which patch (using pathname of result) we are at now; - if ($is_combined) { - while ($to_name ne $diffinfo->{'to_file'}) { - print "
    \n" . - format_diff_cc_simplified($diffinfo, @hash_parents) . - "
    \n"; # class="patch" - - $patch_idx++; - $patch_number++; - - last if $patch_idx > $#$difftree; - $diffinfo = parsed_difftree_line($difftree->[$patch_idx]); - } - } - - # modifies %from, %to hashes - parse_from_to_diffinfo($diffinfo, \%from, \%to, @hash_parents); - - # this is first patch for raw difftree line with $patch_idx index - # we index @$difftree array from 0, but number patches from 1 - print "
    \n"; - } - - # git diff header - #assert($patch_line =~ m/^diff /) if DEBUG; - #assert($patch_line !~ m!$/$!) if DEBUG; # is chomp-ed - $patch_number++; - # print "git diff" header - print format_git_diff_header_line($patch_line, $diffinfo, - \%from, \%to); - - # print extended diff header - print "
    \n"; - EXTENDED_HEADER: - while ($patch_line = <$fd>) { - chomp $patch_line; - - last EXTENDED_HEADER if ($patch_line =~ m/^--- |^diff /); - - print format_extended_diff_header_line($patch_line, $diffinfo, - \%from, \%to); - } - print "
    \n"; # class="diff extended_header" - - # from-file/to-file diff header - if (! $patch_line) { - print "
    \n"; # class="patch" - last PATCH; - } - next PATCH if ($patch_line =~ m/^diff /); - #assert($patch_line =~ m/^---/) if DEBUG; - - my $last_patch_line = $patch_line; - $patch_line = <$fd>; - chomp $patch_line; - #assert($patch_line =~ m/^\+\+\+/) if DEBUG; - - print format_diff_from_to_header($last_patch_line, $patch_line, - $diffinfo, \%from, \%to, - @hash_parents); - - # the patch itself - LINE: - while ($patch_line = <$fd>) { - chomp $patch_line; - - next PATCH if ($patch_line =~ m/^diff /); - - my $class = diff_line_class($patch_line, \%from, \%to); - - if ($class eq 'chunk_header') { - print_diff_chunk($diff_style, scalar @hash_parents, \%from, \%to, @chunk); - @chunk = (); - } - - push @chunk, [ $class, $patch_line ]; - } - - } continue { - if (@chunk) { - print_diff_chunk($diff_style, scalar @hash_parents, \%from, \%to, @chunk); - @chunk = (); - } - print "
    \n"; # class="patch" - } - - # for compact combined (--cc) format, with chunk and patch simplification - # the patchset might be empty, but there might be unprocessed raw lines - for (++$patch_idx if $patch_number > 0; - $patch_idx < @$difftree; - ++$patch_idx) { - # read and prepare patch information - $diffinfo = parsed_difftree_line($difftree->[$patch_idx]); - - # generate anchor for "patch" links in difftree / whatchanged part - print "
    \n" . - format_diff_cc_simplified($diffinfo, @hash_parents) . - "
    \n"; # class="patch" - - $patch_number++; - } - - if ($patch_number == 0) { - if (@hash_parents > 1) { - print "
    Trivial merge
    \n"; - } else { - print "
    No differences found
    \n"; - } - } - - print "
    \n"; # class="patchset" -} - -# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . - -sub git_project_search_form { - my ($searchtext, $search_use_regexp) = @_; - - my $limit = ''; - if ($project_filter) { - $limit = " in '$project_filter/'"; - } - - print "
    \n"; - print $cgi->start_form(-method => 'get', -action => $my_uri) . - $cgi->hidden(-name => 'a', -value => 'project_list') . "\n"; - print $cgi->hidden(-name => 'pf', -value => $project_filter). "\n" - if (defined $project_filter); - print $cgi->textfield(-name => 's', -value => $searchtext, - -title => "Search project by name and description$limit", - -size => 60) . "\n" . - "" . - $cgi->checkbox(-name => 'sr', -value => 1, -label => 're', - -checked => $search_use_regexp) . - "\n" . - $cgi->submit(-name => 'btnS', -value => 'Search') . - $cgi->end_form() . "\n" . - $cgi->a({-href => href(project => undef, searchtext => undef, - project_filter => $project_filter)}, - esc_html("List all projects$limit")) . "
    \n"; - print "
    \n"; -} - -# entry for given @keys needs filling if at least one of keys in list -# is not present in %$project_info -sub project_info_needs_filling { - my ($project_info, @keys) = @_; - - # return List::MoreUtils::any { !exists $project_info->{$_} } @keys; - foreach my $key (@keys) { - if (!exists $project_info->{$key}) { - return 1; - } - } - return; -} - -# fills project list info (age, description, owner, category, forks, etc.) -# for each project in the list, removing invalid projects from -# returned list, or fill only specified info. -# -# Invalid projects are removed from the returned list if and only if you -# ask 'age' or 'age_string' to be filled, because they are the only fields -# that run unconditionally git command that requires repository, and -# therefore do always check if project repository is invalid. -# -# USAGE: -# * fill_project_list_info(\@project_list, 'descr_long', 'ctags') -# ensures that 'descr_long' and 'ctags' fields are filled -# * @project_list = fill_project_list_info(\@project_list) -# ensures that all fields are filled (and invalid projects removed) -# -# NOTE: modifies $projlist, but does not remove entries from it -sub fill_project_list_info { - my ($projlist, @wanted_keys) = @_; - my @projects; - my $filter_set = sub { return @_; }; - if (@wanted_keys) { - my %wanted_keys = map { $_ => 1 } @wanted_keys; - $filter_set = sub { return grep { $wanted_keys{$_} } @_; }; - } - - my $show_ctags = gitweb_check_feature('ctags'); - PROJECT: - foreach my $pr (@$projlist) { - if (project_info_needs_filling($pr, $filter_set->('age', 'age_string'))) { - my (@activity) = git_get_last_activity($pr->{'path'}); - unless (@activity) { - next PROJECT; - } - ($pr->{'age'}, $pr->{'age_string'}) = @activity; - } - if (project_info_needs_filling($pr, $filter_set->('descr', 'descr_long'))) { - my $descr = git_get_project_description($pr->{'path'}) || ""; - $descr = to_utf8($descr); - $pr->{'descr_long'} = $descr; - $pr->{'descr'} = chop_str($descr, $projects_list_description_width, 5); - } - if (project_info_needs_filling($pr, $filter_set->('owner'))) { - $pr->{'owner'} = git_get_project_owner("$pr->{'path'}") || ""; - } - if ($show_ctags && - project_info_needs_filling($pr, $filter_set->('ctags'))) { - $pr->{'ctags'} = git_get_project_ctags($pr->{'path'}); - } - if ($projects_list_group_categories && - project_info_needs_filling($pr, $filter_set->('category'))) { - my $cat = git_get_project_category($pr->{'path'}) || - $project_list_default_category; - $pr->{'category'} = to_utf8($cat); - } - - push @projects, $pr; - } - - return @projects; -} - -sub sort_projects_list { - my ($projlist, $order) = @_; - - sub order_str { - my $key = shift; - return sub { $a->{$key} cmp $b->{$key} }; - } - - sub order_num_then_undef { - my $key = shift; - return sub { - defined $a->{$key} ? - (defined $b->{$key} ? $a->{$key} <=> $b->{$key} : -1) : - (defined $b->{$key} ? 1 : 0) - }; - } - - my %orderings = ( - project => order_str('path'), - descr => order_str('descr_long'), - owner => order_str('owner'), - age => order_num_then_undef('age'), - ); - - my $ordering = $orderings{$order}; - return defined $ordering ? sort $ordering @$projlist : @$projlist; -} - -# returns a hash of categories, containing the list of project -# belonging to each category -sub build_projlist_by_category { - my ($projlist, $from, $to) = @_; - my %categories; - - $from = 0 unless defined $from; - $to = $#$projlist if (!defined $to || $#$projlist < $to); - - for (my $i = $from; $i <= $to; $i++) { - my $pr = $projlist->[$i]; - push @{$categories{ $pr->{'category'} }}, $pr; - } - - return wantarray ? %categories : \%categories; -} - -# print 'sort by' element, generating 'sort by $name' replay link -# if that order is not selected -sub print_sort_th { - print format_sort_th(@_); -} - -sub format_sort_th { - my ($name, $order, $header) = @_; - my $sort_th = ""; - $header ||= ucfirst($name); - - if ($order eq $name) { - $sort_th .= "$header\n"; - } else { - $sort_th .= "" . - $cgi->a({-href => href(-replay=>1, order=>$name), - -class => "header"}, $header) . - "\n"; - } - - return $sort_th; -} - -sub git_project_list_rows { - my ($projlist, $from, $to, $check_forks) = @_; - - $from = 0 unless defined $from; - $to = $#$projlist if (!defined $to || $#$projlist < $to); - - my $alternate = 1; - for (my $i = $from; $i <= $to; $i++) { - my $pr = $projlist->[$i]; - - if ($alternate) { - print "\n"; - } else { - print "\n"; - } - $alternate ^= 1; - - if ($check_forks) { - print ""; - if ($pr->{'forks'}) { - my $nforks = scalar @{$pr->{'forks'}}; - if ($nforks > 0) { - print $cgi->a({-href => href(project=>$pr->{'path'}, action=>"forks"), - -title => "$nforks forks"}, "+"); - } else { - print $cgi->span({-title => "$nforks forks"}, "+"); - } - } - print "\n"; - } - print "" . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"summary"), - -class => "list"}, - esc_html_match_hl($pr->{'path'}, $search_regexp)) . - "\n" . - "" . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"summary"), - -class => "list", - -title => $pr->{'descr_long'}}, - $search_regexp - ? esc_html_match_hl_chopped($pr->{'descr_long'}, - $pr->{'descr'}, $search_regexp) - : esc_html($pr->{'descr'})) . - "\n"; - unless ($omit_owner) { - print "" . chop_and_escape_str($pr->{'owner'}, 15) . "\n"; - } - unless ($omit_age_column) { - print "{'age'}) . "\">" . - (defined $pr->{'age_string'} ? $pr->{'age_string'} : "No commits") . "\n"; - } - print"" . - $cgi->a({-href => href(project=>$pr->{'path'}, action=>"summary")}, "summary") . " | " . - $cgi->a({-href => href(project=>$pr->{'path'}, action=>"shortlog")}, "shortlog") . " | " . - $cgi->a({-href => href(project=>$pr->{'path'}, action=>"log")}, "log") . " | " . - $cgi->a({-href => href(project=>$pr->{'path'}, action=>"tree")}, "tree") . - ($pr->{'forks'} ? " | " . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"forks")}, "forks") : '') . - "\n" . - "\n"; - } -} - -sub git_project_list_body { - # actually uses global variable $project - my ($projlist, $order, $from, $to, $extra, $no_header) = @_; - my @projects = @$projlist; - - my $check_forks = gitweb_check_feature('forks'); - my $show_ctags = gitweb_check_feature('ctags'); - my $tagfilter = $show_ctags ? $input_params{'ctag'} : undef; - $check_forks = undef - if ($tagfilter || $search_regexp); - - # filtering out forks before filling info allows to do less work - @projects = filter_forks_from_projects_list(\@projects) - if ($check_forks); - # search_projects_list pre-fills required info - @projects = search_projects_list(\@projects, - 'search_regexp' => $search_regexp, - 'tagfilter' => $tagfilter) - if ($tagfilter || $search_regexp); - # fill the rest - my @all_fields = ('descr', 'descr_long', 'ctags', 'category'); - push @all_fields, ('age', 'age_string') unless($omit_age_column); - push @all_fields, 'owner' unless($omit_owner); - @projects = fill_project_list_info(\@projects, @all_fields); - - $order ||= $default_projects_order; - $from = 0 unless defined $from; - $to = $#projects if (!defined $to || $#projects < $to); - - # short circuit - if ($from > $to) { - print "
    \n". - "No such projects found
    \n". - "Click ".$cgi->a({-href=>href(project=>undef)},"here")." to view all projects
    \n". - "
    \n
    \n"; - return; - } - - @projects = sort_projects_list(\@projects, $order); - - if ($show_ctags) { - my $ctags = git_gather_all_ctags(\@projects); - my $cloud = git_populate_project_tagcloud($ctags); - print git_show_project_tagcloud($cloud, 64); - } - - print "\n"; - unless ($no_header) { - print "\n"; - if ($check_forks) { - print "\n"; - } - print_sort_th('project', $order, 'Project'); - print_sort_th('descr', $order, 'Description'); - print_sort_th('owner', $order, 'Owner') unless $omit_owner; - print_sort_th('age', $order, 'Last Change') unless $omit_age_column; - print "\n" . # for links - "\n"; - } - - if ($projects_list_group_categories) { - # only display categories with projects in the $from-$to window - @projects = sort {$a->{'category'} cmp $b->{'category'}} @projects[$from..$to]; - my %categories = build_projlist_by_category(\@projects, $from, $to); - foreach my $cat (sort keys %categories) { - unless ($cat eq "") { - print "\n"; - if ($check_forks) { - print "\n"; - } - print "\n"; - print "\n"; - } - - git_project_list_rows($categories{$cat}, undef, undef, $check_forks); - } - } else { - git_project_list_rows(\@projects, $from, $to, $check_forks); - } - - if (defined $extra) { - print "\n"; - if ($check_forks) { - print "\n"; - } - print "\n" . - "\n"; - } - print "
    ".esc_html($cat)."
    $extra
    \n"; -} - -sub git_log_body { - # uses global variable $project - my ($commitlist, $from, $to, $refs, $extra) = @_; - - $from = 0 unless defined $from; - $to = $#{$commitlist} if (!defined $to || $#{$commitlist} < $to); - - for (my $i = 0; $i <= $to; $i++) { - my %co = %{$commitlist->[$i]}; - next if !%co; - my $commit = $co{'id'}; - my $ref = format_ref_marker($refs, $commit); - git_print_header_div('commit', - "$co{'age_string'}" . - esc_html($co{'title'}) . $ref, - $commit); - print "
    \n" . - "
    \n" . - $cgi->a({-href => href(action=>"commit", hash=>$commit)}, "commit") . - " | " . - $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . - " | " . - $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree") . - "
    \n" . - "
    \n"; - git_print_authorship(\%co, -tag => 'span'); - print "
    \n
    \n"; - - print "
    \n"; - git_print_log($co{'comment'}, -final_empty_line=> 1); - print "
    \n"; - } - if ($extra) { - print "
    \n"; - print "$extra\n"; - print "
    \n"; - } -} - -sub git_shortlog_body { - # uses global variable $project - my ($commitlist, $from, $to, $refs, $extra) = @_; - - $from = 0 unless defined $from; - $to = $#{$commitlist} if (!defined $to || $#{$commitlist} < $to); - - print "\n"; - my $alternate = 1; - for (my $i = $from; $i <= $to; $i++) { - my %co = %{$commitlist->[$i]}; - my $commit = $co{'id'}; - my $ref = format_ref_marker($refs, $commit); - if ($alternate) { - print "\n"; - } else { - print "\n"; - } - $alternate ^= 1; - # git_summary() used print "\n" . - print "\n" . - format_author_html('td', \%co, 10) . "\n" . - "\n" . - "\n"; - } - if (defined $extra) { - print "\n" . - "\n" . - "\n"; - } - print "
    $co{'age_string'}$co{'age_string_date'}"; - print format_subject_html($co{'title'}, $co{'title_short'}, - href(action=>"commit", hash=>$commit), $ref); - print "" . - $cgi->a({-href => href(action=>"commit", hash=>$commit)}, "commit") . " | " . - $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . " | " . - $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree"); - my $snapshot_links = format_snapshot_links($commit); - if (defined $snapshot_links) { - print " | " . $snapshot_links; - } - print "
    $extra
    \n"; -} - -sub git_history_body { - # Warning: assumes constant type (blob or tree) during history - my ($commitlist, $from, $to, $refs, $extra, - $file_name, $file_hash, $ftype) = @_; - - $from = 0 unless defined $from; - $to = $#{$commitlist} unless (defined $to && $to <= $#{$commitlist}); - - print "\n"; - my $alternate = 1; - for (my $i = $from; $i <= $to; $i++) { - my %co = %{$commitlist->[$i]}; - if (!%co) { - next; - } - my $commit = $co{'id'}; - - my $ref = format_ref_marker($refs, $commit); - - if ($alternate) { - print "\n"; - } else { - print "\n"; - } - $alternate ^= 1; - print "\n" . - # shortlog: format_author_html('td', \%co, 10) - format_author_html('td', \%co, 15, 3) . "\n" . - "\n" . - "\n"; - } - if (defined $extra) { - print "\n" . - "\n" . - "\n"; - } - print "
    $co{'age_string_date'}"; - # originally git_history used chop_str($co{'title'}, 50) - print format_subject_html($co{'title'}, $co{'title_short'}, - href(action=>"commit", hash=>$commit), $ref); - print "" . - $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype) . " | " . - $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff"); - - if ($ftype eq 'blob') { - print " | " . - $cgi->a({-href => href(action=>"blob_plain", hash_base=>$commit, file_name=>$file_name)}, "raw"); - - my $blob_current = $file_hash; - my $blob_parent = git_get_hash_by_path($commit, $file_name); - if (defined $blob_current && defined $blob_parent && - $blob_current ne $blob_parent) { - print " | " . - $cgi->a({-href => href(action=>"blobdiff", - hash=>$blob_current, hash_parent=>$blob_parent, - hash_base=>$hash_base, hash_parent_base=>$commit, - file_name=>$file_name)}, - "diff to current"); - } - } - print "
    $extra
    \n"; -} - -sub git_tags_body { - # uses global variable $project - my ($taglist, $from, $to, $extra) = @_; - $from = 0 unless defined $from; - $to = $#{$taglist} if (!defined $to || $#{$taglist} < $to); - - print "\n"; - my $alternate = 1; - for (my $i = $from; $i <= $to; $i++) { - my $entry = $taglist->[$i]; - my %tag = %$entry; - my $comment = $tag{'subject'}; - my $comment_short; - if (defined $comment) { - $comment_short = chop_str($comment, 30, 5); - } - if ($alternate) { - print "\n"; - } else { - print "\n"; - } - $alternate ^= 1; - if (defined $tag{'age'}) { - print "\n"; - } else { - print "\n"; - } - print "\n" . - "\n" . - "\n" . - "\n" . - ""; - } - if (defined $extra) { - print "\n" . - "\n" . - "\n"; - } - print "
    $tag{'age'}" . - $cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'}), - -class => "list name"}, esc_html($tag{'name'})) . - ""; - if (defined $comment) { - print format_subject_html($comment, $comment_short, - href(action=>"tag", hash=>$tag{'id'})); - } - print ""; - if ($tag{'type'} eq "tag") { - print $cgi->a({-href => href(action=>"tag", hash=>$tag{'id'})}, "tag"); - } else { - print " "; - } - print "" . " | " . - $cgi->a({-href => href(action=>$tag{'reftype'}, hash=>$tag{'refid'})}, $tag{'reftype'}); - if ($tag{'reftype'} eq "commit") { - print " | " . $cgi->a({-href => href(action=>"shortlog", hash=>$tag{'fullname'})}, "shortlog") . - " | " . $cgi->a({-href => href(action=>"log", hash=>$tag{'fullname'})}, "log"); - } elsif ($tag{'reftype'} eq "blob") { - print " | " . $cgi->a({-href => href(action=>"blob_plain", hash=>$tag{'refid'})}, "raw"); - } - print "
    $extra
    \n"; -} - -sub git_heads_body { - # uses global variable $project - my ($headlist, $head_at, $from, $to, $extra) = @_; - $from = 0 unless defined $from; - $to = $#{$headlist} if (!defined $to || $#{$headlist} < $to); - - print "\n"; - my $alternate = 1; - for (my $i = $from; $i <= $to; $i++) { - my $entry = $headlist->[$i]; - my %ref = %$entry; - my $curr = defined $head_at && $ref{'id'} eq $head_at; - if ($alternate) { - print "\n"; - } else { - print "\n"; - } - $alternate ^= 1; - print "\n" . - ($curr ? "\n" . - "\n" . - ""; - } - if (defined $extra) { - print "\n" . - "\n" . - "\n"; - } - print "
    $ref{'age'}" : "") . - $cgi->a({-href => href(action=>"shortlog", hash=>$ref{'fullname'}), - -class => "list name"},esc_html($ref{'name'})) . - "" . - $cgi->a({-href => href(action=>"shortlog", hash=>$ref{'fullname'})}, "shortlog") . " | " . - $cgi->a({-href => href(action=>"log", hash=>$ref{'fullname'})}, "log") . " | " . - $cgi->a({-href => href(action=>"tree", hash=>$ref{'fullname'}, hash_base=>$ref{'fullname'})}, "tree") . - "
    $extra
    \n"; -} - -# Display a single remote block -sub git_remote_block { - my ($remote, $rdata, $limit, $head) = @_; - - my $heads = $rdata->{'heads'}; - my $fetch = $rdata->{'fetch'}; - my $push = $rdata->{'push'}; - - my $urls_table = "\n" ; - - if (defined $fetch) { - if ($fetch eq $push) { - $urls_table .= format_repo_url("URL", $fetch); - } else { - $urls_table .= format_repo_url("Fetch URL", $fetch); - $urls_table .= format_repo_url("Push URL", $push) if defined $push; - } - } elsif (defined $push) { - $urls_table .= format_repo_url("Push URL", $push); - } else { - $urls_table .= format_repo_url("", "No remote URL"); - } - - $urls_table .= "
    \n"; - - my $dots; - if (defined $limit && $limit < @$heads) { - $dots = $cgi->a({-href => href(action=>"remotes", hash=>$remote)}, "..."); - } - - print $urls_table; - git_heads_body($heads, $head, 0, $limit, $dots); -} - -# Display a list of remote names with the respective fetch and push URLs -sub git_remotes_list { - my ($remotedata, $limit) = @_; - print "\n"; - my $alternate = 1; - my @remotes = sort keys %$remotedata; - - my $limited = $limit && $limit < @remotes; - - $#remotes = $limit - 1 if $limited; - - while (my $remote = shift @remotes) { - my $rdata = $remotedata->{$remote}; - my $fetch = $rdata->{'fetch'}; - my $push = $rdata->{'push'}; - if ($alternate) { - print "\n"; - } else { - print "\n"; - } - $alternate ^= 1; - print ""; - print ""; - - print "\n"; - } - - if ($limited) { - print "\n" . - "\n" . "\n"; - } - - print "
    " . - $cgi->a({-href=> href(action=>'remotes', hash=>$remote), - -class=> "list name"},esc_html($remote)) . - "" . - (defined $fetch ? $cgi->a({-href=> $fetch}, "fetch") : "fetch") . - " | " . - (defined $push ? $cgi->a({-href=> $push}, "push") : "push") . - "
    " . - $cgi->a({-href => href(action=>"remotes")}, "...") . - "
    "; -} - -# Display remote heads grouped by remote, unless there are too many -# remotes, in which case we only display the remote names -sub git_remotes_body { - my ($remotedata, $limit, $head) = @_; - if ($limit and $limit < keys %$remotedata) { - git_remotes_list($remotedata, $limit); - } else { - fill_remote_heads($remotedata); - while (my ($remote, $rdata) = each %$remotedata) { - git_print_section({-class=>"remote", -id=>$remote}, - ["remotes", $remote, $remote], sub { - git_remote_block($remote, $rdata, $limit, $head); - }); - } - } -} - -sub git_search_message { - my %co = @_; - - my $greptype; - if ($searchtype eq 'commit') { - $greptype = "--grep="; - } elsif ($searchtype eq 'author') { - $greptype = "--author="; - } elsif ($searchtype eq 'committer') { - $greptype = "--committer="; - } - $greptype .= $searchtext; - my @commitlist = parse_commits($hash, 101, (100 * $page), undef, - $greptype, '--regexp-ignore-case', - $search_use_regexp ? '--extended-regexp' : '--fixed-strings'); - - my $paging_nav = ''; - if ($page > 0) { - $paging_nav .= - $cgi->a({-href => href(-replay=>1, page=>undef)}, - "first") . - " ⋅ " . - $cgi->a({-href => href(-replay=>1, page=>$page-1), - -accesskey => "p", -title => "Alt-p"}, "prev"); - } else { - $paging_nav .= "first ⋅ prev"; - } - my $next_link = ''; - if ($#commitlist >= 100) { - $next_link = - $cgi->a({-href => href(-replay=>1, page=>$page+1), - -accesskey => "n", -title => "Alt-n"}, "next"); - $paging_nav .= " ⋅ $next_link"; - } else { - $paging_nav .= " ⋅ next"; - } - - git_header_html(); - - git_print_page_nav('','', $hash,$co{'tree'},$hash, $paging_nav); - git_print_header_div('commit', esc_html($co{'title'}), $hash); - if ($page == 0 && !@commitlist) { - print "

    No match.

    \n"; - } else { - git_search_grep_body(\@commitlist, 0, 99, $next_link); - } - - git_footer_html(); -} - -sub git_search_changes { - my %co = @_; - - local $/ = "\n"; - open my $fd, '-|', git_cmd(), '--no-pager', 'log', @diff_opts, - '--pretty=format:%H', '--no-abbrev', '--raw', "-S$searchtext", - ($search_use_regexp ? '--pickaxe-regex' : ()) - or die_error(500, "Open git-log failed"); - - git_header_html(); - - git_print_page_nav('','', $hash,$co{'tree'},$hash); - git_print_header_div('commit', esc_html($co{'title'}), $hash); - - print "\n"; - my $alternate = 1; - undef %co; - my @files; - while (my $line = <$fd>) { - chomp $line; - next unless $line; - - my %set = parse_difftree_raw_line($line); - if (defined $set{'commit'}) { - # finish previous commit - if (%co) { - print "\n" . - "\n" . - "\n"; - } - - if ($alternate) { - print "\n"; - } else { - print "\n"; - } - $alternate ^= 1; - %co = parse_commit($set{'commit'}); - my $author = chop_and_escape_str($co{'author_name'}, 15, 5); - print "\n" . - "\n" . - "\n" . - "\n" . - "\n"; - } - - print "
    " . - $cgi->a({-href => href(action=>"commit", hash=>$co{'id'})}, - "commit") . - " | " . - $cgi->a({-href => href(action=>"tree", hash=>$co{'tree'}, - hash_base=>$co{'id'})}, - "tree") . - "
    $co{'age_string_date'}$author" . - $cgi->a({-href => href(action=>"commit", hash=>$co{'id'}), - -class => "list subject"}, - chop_and_escape_str($co{'title'}, 50) . "
    "); - } elsif (defined $set{'to_id'}) { - next if ($set{'to_id'} =~ m/^0{40}$/); - - print $cgi->a({-href => href(action=>"blob", hash_base=>$co{'id'}, - hash=>$set{'to_id'}, file_name=>$set{'to_file'}), - -class => "list"}, - "" . esc_path($set{'file'}) . "") . - "
    \n"; - } - } - close $fd; - - # finish last commit (warning: repetition!) - if (%co) { - print "
    " . - $cgi->a({-href => href(action=>"commit", hash=>$co{'id'})}, - "commit") . - " | " . - $cgi->a({-href => href(action=>"tree", hash=>$co{'tree'}, - hash_base=>$co{'id'})}, - "tree") . - "
    \n"; - - git_footer_html(); -} - -sub git_search_files { - my %co = @_; - - local $/ = "\n"; - open my $fd, "-|", git_cmd(), 'grep', '-n', '-z', - $search_use_regexp ? ('-E', '-i') : '-F', - $searchtext, $co{'tree'} - or die_error(500, "Open git-grep failed"); - - git_header_html(); - - git_print_page_nav('','', $hash,$co{'tree'},$hash); - git_print_header_div('commit', esc_html($co{'title'}), $hash); - - print "\n"; - my $alternate = 1; - my $matches = 0; - my $lastfile = ''; - my $file_href; - while (my $line = <$fd>) { - chomp $line; - my ($file, $lno, $ltext, $binary); - last if ($matches++ > 1000); - if ($line =~ /^Binary file (.+) matches$/) { - $file = $1; - $binary = 1; - } else { - ($file, $lno, $ltext) = split(/\0/, $line, 3); - $file =~ s/^$co{'tree'}://; - } - if ($file ne $lastfile) { - $lastfile and print "\n"; - if ($alternate++) { - print "\n"; - } else { - print "\n"; - } - $file_href = href(action=>"blob", hash_base=>$co{'id'}, - file_name=>$file); - print "\n"; - if ($matches > 1000) { - print "
    Too many matches, listing trimmed
    \n"; - } - } else { - print "
    No matches found
    \n"; - } - close $fd; - - print "
    ". - $cgi->a({-href => $file_href, -class => "list"}, esc_path($file)); - print "\n"; - $lastfile = $file; - } - if ($binary) { - print "
    Binary file
    \n"; - } else { - $ltext = untabify($ltext); - if ($ltext =~ m/^(.*)($search_regexp)(.*)$/i) { - $ltext = esc_html($1, -nbsp=>1); - $ltext .= ''; - $ltext .= esc_html($2, -nbsp=>1); - $ltext .= ''; - $ltext .= esc_html($3, -nbsp=>1); - } else { - $ltext = esc_html($ltext, -nbsp=>1); - } - print "
    " . - $cgi->a({-href => $file_href.'#l'.$lno, - -class => "linenr"}, sprintf('%4i', $lno)) . - ' ' . $ltext . "
    \n"; - } - } - if ($lastfile) { - print "
    \n"; - - git_footer_html(); -} - -sub git_search_grep_body { - my ($commitlist, $from, $to, $extra) = @_; - $from = 0 unless defined $from; - $to = $#{$commitlist} if (!defined $to || $#{$commitlist} < $to); - - print "\n"; - my $alternate = 1; - for (my $i = $from; $i <= $to; $i++) { - my %co = %{$commitlist->[$i]}; - if (!%co) { - next; - } - my $commit = $co{'id'}; - if ($alternate) { - print "\n"; - } else { - print "\n"; - } - $alternate ^= 1; - print "\n" . - format_author_html('td', \%co, 15, 5) . - "\n" . - "\n" . - "\n"; - } - if (defined $extra) { - print "\n" . - "\n" . - "\n"; - } - print "
    $co{'age_string_date'}" . - $cgi->a({-href => href(action=>"commit", hash=>$co{'id'}), - -class => "list subject"}, - chop_and_escape_str($co{'title'}, 50) . "
    "); - my $comment = $co{'comment'}; - foreach my $line (@$comment) { - if ($line =~ m/^(.*?)($search_regexp)(.*)$/i) { - my ($lead, $match, $trail) = ($1, $2, $3); - $match = chop_str($match, 70, 5, 'center'); - my $contextlen = int((80 - length($match))/2); - $contextlen = 30 if ($contextlen > 30); - $lead = chop_str($lead, $contextlen, 10, 'left'); - $trail = chop_str($trail, $contextlen, 10, 'right'); - - $lead = esc_html($lead); - $match = esc_html($match); - $trail = esc_html($trail); - - print "$lead$match$trail
    "; - } - } - print "
    " . - $cgi->a({-href => href(action=>"commit", hash=>$co{'id'})}, "commit") . - " | " . - $cgi->a({-href => href(action=>"commitdiff", hash=>$co{'id'})}, "commitdiff") . - " | " . - $cgi->a({-href => href(action=>"tree", hash=>$co{'tree'}, hash_base=>$co{'id'})}, "tree"); - print "
    $extra
    \n"; -} - -## ====================================================================== -## ====================================================================== -## actions - -sub git_project_list { - my $order = $input_params{'order'}; - if (defined $order && $order !~ m/none|project|descr|owner|age/) { - die_error(400, "Unknown order parameter"); - } - - my @list = git_get_projects_list($project_filter, $strict_export); - if (!@list) { - die_error(404, "No projects found"); - } - - git_header_html(); - if (defined $home_text && -f $home_text) { - print "
    \n"; - insert_file($home_text); - print "
    \n"; - } - - git_project_search_form($searchtext, $search_use_regexp); - git_project_list_body(\@list, $order); - git_footer_html(); -} - -sub git_forks { - my $order = $input_params{'order'}; - if (defined $order && $order !~ m/none|project|descr|owner|age/) { - die_error(400, "Unknown order parameter"); - } - - my $filter = $project; - $filter =~ s/\.git$//; - my @list = git_get_projects_list($filter); - if (!@list) { - die_error(404, "No forks found"); - } - - git_header_html(); - git_print_page_nav('',''); - git_print_header_div('summary', "$project forks"); - git_project_list_body(\@list, $order); - git_footer_html(); -} - -sub git_project_index { - my @projects = git_get_projects_list($project_filter, $strict_export); - if (!@projects) { - die_error(404, "No projects found"); - } - - print $cgi->header( - -type => 'text/plain', - -charset => 'utf-8', - -content_disposition => 'inline; filename="index.aux"'); - - foreach my $pr (@projects) { - if (!exists $pr->{'owner'}) { - $pr->{'owner'} = git_get_project_owner("$pr->{'path'}"); - } - - my ($path, $owner) = ($pr->{'path'}, $pr->{'owner'}); - # quote as in CGI::Util::encode, but keep the slash, and use '+' for ' ' - $path =~ s/([^a-zA-Z0-9_.\-\/ ])/sprintf("%%%02X", ord($1))/eg; - $owner =~ s/([^a-zA-Z0-9_.\-\/ ])/sprintf("%%%02X", ord($1))/eg; - $path =~ s/ /\+/g; - $owner =~ s/ /\+/g; - - print "$path $owner\n"; - } -} - -sub git_summary { - my $descr = git_get_project_description($project) || "none"; - my %co = parse_commit("HEAD"); - my %cd = %co ? parse_date($co{'committer_epoch'}, $co{'committer_tz'}) : (); - my $head = $co{'id'}; - my $remote_heads = gitweb_check_feature('remote_heads'); - - my $owner = git_get_project_owner($project); - - my $refs = git_get_references(); - # These get_*_list functions return one more to allow us to see if - # there are more ... - my @taglist = git_get_tags_list(16); - my @headlist = git_get_heads_list(16); - my %remotedata = $remote_heads ? git_get_remotes_list() : (); - my @forklist; - my $check_forks = gitweb_check_feature('forks'); - - if ($check_forks) { - # find forks of a project - my $filter = $project; - $filter =~ s/\.git$//; - @forklist = git_get_projects_list($filter); - # filter out forks of forks - @forklist = filter_forks_from_projects_list(\@forklist) - if (@forklist); - } - - git_header_html(); - git_print_page_nav('summary','', $head); - - print "
     
    \n"; - print "\n" . - "\n"; - if ($owner and not $omit_owner) { - print "\n"; - } - if (defined $cd{'rfc2822'}) { - print "" . - "\n"; - } - - # use per project git URL list in $projectroot/$project/cloneurl - # or make project git URL from git base URL and project name - my $url_tag = "URL"; - my @url_list = git_get_project_url_list($project); - @url_list = map { "$_/$project" } @git_base_url_list unless @url_list; - foreach my $git_url (@url_list) { - next unless $git_url; - print format_repo_url($url_tag, $git_url); - $url_tag = ""; - } - - # Tag cloud - my $show_ctags = gitweb_check_feature('ctags'); - if ($show_ctags) { - my $ctags = git_get_project_ctags($project); - if (%$ctags) { - # without ability to add tags, don't show if there are none - my $cloud = git_populate_project_tagcloud($ctags); - print "" . - "" . - "" . - "\n"; - } - } - - print "
    description" . esc_html($descr) . "
    owner" . esc_html($owner) . "
    last change".format_timestamp_html(\%cd)."
    content tags".git_show_project_tagcloud($cloud, 48)."
    \n"; - - # If XSS prevention is on, we don't include README.html. - # TODO: Allow a readme in some safe format. - if (!$prevent_xss && -s "$projectroot/$project/README.html") { - print "
    readme
    \n" . - "
    \n"; - insert_file("$projectroot/$project/README.html"); - print "\n
    \n"; # class="readme" - } - - # we need to request one more than 16 (0..15) to check if - # those 16 are all - my @commitlist = $head ? parse_commits($head, 17) : (); - if (@commitlist) { - git_print_header_div('shortlog'); - git_shortlog_body(\@commitlist, 0, 15, $refs, - $#commitlist <= 15 ? undef : - $cgi->a({-href => href(action=>"shortlog")}, "...")); - } - - if (@taglist) { - git_print_header_div('tags'); - git_tags_body(\@taglist, 0, 15, - $#taglist <= 15 ? undef : - $cgi->a({-href => href(action=>"tags")}, "...")); - } - - if (@headlist) { - git_print_header_div('heads'); - git_heads_body(\@headlist, $head, 0, 15, - $#headlist <= 15 ? undef : - $cgi->a({-href => href(action=>"heads")}, "...")); - } - - if (%remotedata) { - git_print_header_div('remotes'); - git_remotes_body(\%remotedata, 15, $head); - } - - if (@forklist) { - git_print_header_div('forks'); - git_project_list_body(\@forklist, 'age', 0, 15, - $#forklist <= 15 ? undef : - $cgi->a({-href => href(action=>"forks")}, "..."), - 'no_header'); - } - - git_footer_html(); -} - -sub git_tag { - my %tag = parse_tag($hash); - - if (! %tag) { - die_error(404, "Unknown tag object"); - } - - my $head = git_get_head_hash($project); - git_header_html(); - git_print_page_nav('','', $head,undef,$head); - git_print_header_div('commit', esc_html($tag{'name'}), $hash); - print "
    \n" . - "\n" . - "\n" . - "\n" . - "\n" . - "\n" . - "\n"; - if (defined($tag{'author'})) { - git_print_authorship_rows(\%tag, 'author'); - } - print "
    object" . $cgi->a({-class => "list", -href => href(action=>$tag{'type'}, hash=>$tag{'object'})}, - $tag{'object'}) . "" . $cgi->a({-href => href(action=>$tag{'type'}, hash=>$tag{'object'})}, - $tag{'type'}) . "
    \n\n" . - "
    \n"; - print "
    "; - my $comment = $tag{'comment'}; - foreach my $line (@$comment) { - chomp $line; - print esc_html($line, -nbsp=>1) . "
    \n"; - } - print "
    \n"; - git_footer_html(); -} - -sub git_blame_common { - my $format = shift || 'porcelain'; - if ($format eq 'porcelain' && $input_params{'javascript'}) { - $format = 'incremental'; - $action = 'blame_incremental'; # for page title etc - } - - # permissions - gitweb_check_feature('blame') - or die_error(403, "Blame view not allowed"); - - # error checking - die_error(400, "No file name given") unless $file_name; - $hash_base ||= git_get_head_hash($project); - die_error(404, "Couldn't find base commit") unless $hash_base; - my %co = parse_commit($hash_base) - or die_error(404, "Commit not found"); - my $ftype = "blob"; - if (!defined $hash) { - $hash = git_get_hash_by_path($hash_base, $file_name, "blob") - or die_error(404, "Error looking up file"); - } else { - $ftype = git_get_type($hash); - if ($ftype !~ "blob") { - die_error(400, "Object is not a blob"); - } - } - - my $fd; - if ($format eq 'incremental') { - # get file contents (as base) - open $fd, "-|", git_cmd(), 'cat-file', 'blob', $hash - or die_error(500, "Open git-cat-file failed"); - } elsif ($format eq 'data') { - # run git-blame --incremental - open $fd, "-|", git_cmd(), "blame", "--incremental", - $hash_base, "--", $file_name - or die_error(500, "Open git-blame --incremental failed"); - } else { - # run git-blame --porcelain - open $fd, "-|", git_cmd(), "blame", '-p', - $hash_base, '--', $file_name - or die_error(500, "Open git-blame --porcelain failed"); - } - binmode $fd, ':utf8'; - - # incremental blame data returns early - if ($format eq 'data') { - print $cgi->header( - -type=>"text/plain", -charset => "utf-8", - -status=> "200 OK"); - local $| = 1; # output autoflush - while (my $line = <$fd>) { - print to_utf8($line); - } - close $fd - or print "ERROR $!\n"; - - print 'END'; - if (defined $t0 && gitweb_check_feature('timed')) { - print ' '. - tv_interval($t0, [ gettimeofday() ]). - ' '.$number_of_git_cmds; - } - print "\n"; - - return; - } - - # page header - git_header_html(); - my $formats_nav = - $cgi->a({-href => href(action=>"blob", -replay=>1)}, - "blob") . - " | "; - if ($format eq 'incremental') { - $formats_nav .= - $cgi->a({-href => href(action=>"blame", javascript=>0, -replay=>1)}, - "blame") . " (non-incremental)"; - } else { - $formats_nav .= - $cgi->a({-href => href(action=>"blame_incremental", -replay=>1)}, - "blame") . " (incremental)"; - } - $formats_nav .= - " | " . - $cgi->a({-href => href(action=>"history", -replay=>1)}, - "history") . - " | " . - $cgi->a({-href => href(action=>$action, file_name=>$file_name)}, - "HEAD"); - git_print_page_nav('','', $hash_base,$co{'tree'},$hash_base, $formats_nav); - git_print_header_div('commit', esc_html($co{'title'}), $hash_base); - git_print_page_path($file_name, $ftype, $hash_base); - - # page body - if ($format eq 'incremental') { - print "\n"; - - print qq!
    \n!; - } - - print qq!
    \n!; - print qq!
    ... / ...
    \n! - if ($format eq 'incremental'); - print qq!\n!. - #qq!\n!. - qq!\n!. - qq!\n!. - qq!\n!. - qq!\n!; - - my @rev_color = qw(light dark); - my $num_colors = scalar(@rev_color); - my $current_color = 0; - - if ($format eq 'incremental') { - my $color_class = $rev_color[$current_color]; - - #contents of a file - my $linenr = 0; - LINE: - while (my $line = <$fd>) { - chomp $line; - $linenr++; - - print qq!!. - qq!!. - qq!!; - print qq!\n"; - print qq!\n!; - } - - } else { # porcelain, i.e. ordinary blame - my %metainfo = (); # saves information about commits - - # blame data - LINE: - while (my $line = <$fd>) { - chomp $line; - # the header: [] - # no for subsequent lines in group of lines - my ($full_rev, $orig_lineno, $lineno, $group_size) = - ($line =~ /^([0-9a-f]{40}) (\d+) (\d+)(?: (\d+))?$/); - if (!exists $metainfo{$full_rev}) { - $metainfo{$full_rev} = { 'nprevious' => 0 }; - } - my $meta = $metainfo{$full_rev}; - my $data; - while ($data = <$fd>) { - chomp $data; - last if ($data =~ s/^\t//); # contents of line - if ($data =~ /^(\S+)(?: (.*))?$/) { - $meta->{$1} = $2 unless exists $meta->{$1}; - } - if ($data =~ /^previous /) { - $meta->{'nprevious'}++; - } - } - my $short_rev = substr($full_rev, 0, 8); - my $author = $meta->{'author'}; - my %date = - parse_date($meta->{'author-time'}, $meta->{'author-tz'}); - my $date = $date{'iso-tz'}; - if ($group_size) { - $current_color = ($current_color + 1) % $num_colors; - } - my $tr_class = $rev_color[$current_color]; - $tr_class .= ' boundary' if (exists $meta->{'boundary'}); - $tr_class .= ' no-previous' if ($meta->{'nprevious'} == 0); - $tr_class .= ' multiple-previous' if ($meta->{'nprevious'} > 1); - print "\n"; - if ($group_size) { - print "\n"; - } - # 'previous' - if (exists $meta->{'previous'} && - $meta->{'previous'} =~ /^([a-fA-F0-9]{40}) (.*)$/) { - $meta->{'parent'} = $1; - $meta->{'file_parent'} = unquote($2); - } - my $linenr_commit = - exists($meta->{'parent'}) ? - $meta->{'parent'} : $full_rev; - my $linenr_filename = - exists($meta->{'file_parent'}) ? - $meta->{'file_parent'} : unquote($meta->{'filename'}); - my $blamed = href(action => 'blame', - file_name => $linenr_filename, - hash_base => $linenr_commit); - print ""; - print "\n"; - print "\n"; - } # end while - - } - - # footer - print "\n". - "
    CommitLineData
    !. - qq!$linenr! . esc_html($line) . "
    1); - print ">"; - print $cgi->a({-href => href(action=>"commit", - hash=>$full_rev, - file_name=>$file_name)}, - esc_html($short_rev)); - if ($group_size >= 2) { - my @author_initials = ($author =~ /\b([[:upper:]])\B/g); - if (@author_initials) { - print "
    " . - esc_html(join('', @author_initials)); - # or join('.', ...) - } - } - print "
    "; - print $cgi->a({ -href => "$blamed#l$orig_lineno", - -class => "linenr" }, - esc_html($lineno)); - print "" . esc_html($data) . "
    \n"; # class="blame" - print "
    \n"; # class="blame_body" - close $fd - or print "Reading blob failed\n"; - - git_footer_html(); -} - -sub git_blame { - git_blame_common(); -} - -sub git_blame_incremental { - git_blame_common('incremental'); -} - -sub git_blame_data { - git_blame_common('data'); -} - -sub git_tags { - my $head = git_get_head_hash($project); - git_header_html(); - git_print_page_nav('','', $head,undef,$head,format_ref_views('tags')); - git_print_header_div('summary', $project); - - my @tagslist = git_get_tags_list(); - if (@tagslist) { - git_tags_body(\@tagslist); - } - git_footer_html(); -} - -sub git_heads { - my $head = git_get_head_hash($project); - git_header_html(); - git_print_page_nav('','', $head,undef,$head,format_ref_views('heads')); - git_print_header_div('summary', $project); - - my @headslist = git_get_heads_list(); - if (@headslist) { - git_heads_body(\@headslist, $head); - } - git_footer_html(); -} - -# used both for single remote view and for list of all the remotes -sub git_remotes { - gitweb_check_feature('remote_heads') - or die_error(403, "Remote heads view is disabled"); - - my $head = git_get_head_hash($project); - my $remote = $input_params{'hash'}; - - my $remotedata = git_get_remotes_list($remote); - die_error(500, "Unable to get remote information") unless defined $remotedata; - - unless (%$remotedata) { - die_error(404, defined $remote ? - "Remote $remote not found" : - "No remotes found"); - } - - git_header_html(undef, undef, -action_extra => $remote); - git_print_page_nav('', '', $head, undef, $head, - format_ref_views($remote ? '' : 'remotes')); - - fill_remote_heads($remotedata); - if (defined $remote) { - git_print_header_div('remotes', "$remote remote for $project"); - git_remote_block($remote, $remotedata->{$remote}, undef, $head); - } else { - git_print_header_div('summary', "$project remotes"); - git_remotes_body($remotedata, undef, $head); - } - - git_footer_html(); -} - -sub git_blob_plain { - my $type = shift; - my $expires; - - if (!defined $hash) { - if (defined $file_name) { - my $base = $hash_base || git_get_head_hash($project); - $hash = git_get_hash_by_path($base, $file_name, "blob") - or die_error(404, "Cannot find file"); - } else { - die_error(400, "No file name defined"); - } - } elsif ($hash =~ m/^[0-9a-fA-F]{40}$/) { - # blobs defined by non-textual hash id's can be cached - $expires = "+1d"; - } - - open my $fd, "-|", git_cmd(), "cat-file", "blob", $hash - or die_error(500, "Open git-cat-file blob '$hash' failed"); - - # content-type (can include charset) - $type = blob_contenttype($fd, $file_name, $type); - - # "save as" filename, even when no $file_name is given - my $save_as = "$hash"; - if (defined $file_name) { - $save_as = $file_name; - } elsif ($type =~ m/^text\//) { - $save_as .= '.txt'; - } - - # With XSS prevention on, blobs of all types except a few known safe - # ones are served with "Content-Disposition: attachment" to make sure - # they don't run in our security domain. For certain image types, - # blob view writes an tag referring to blob_plain view, and we - # want to be sure not to break that by serving the image as an - # attachment (though Firefox 3 doesn't seem to care). - my $sandbox = $prevent_xss && - $type !~ m!^(?:text/[a-z]+|image/(?:gif|png|jpeg))(?:[ ;]|$)!; - - # serve text/* as text/plain - if ($prevent_xss && - ($type =~ m!^text/[a-z]+\b(.*)$! || - ($type =~ m!^[a-z]+/[a-z]\+xml\b(.*)$! && -T $fd))) { - my $rest = $1; - $rest = defined $rest ? $rest : ''; - $type = "text/plain$rest"; - } - - print $cgi->header( - -type => $type, - -expires => $expires, - -content_disposition => - ($sandbox ? 'attachment' : 'inline') - . '; filename="' . $save_as . '"'); - local $/ = undef; - binmode STDOUT, ':raw'; - print <$fd>; - binmode STDOUT, ':utf8'; # as set at the beginning of gitweb.cgi - close $fd; -} - -sub git_blob { - my $expires; - - if (!defined $hash) { - if (defined $file_name) { - my $base = $hash_base || git_get_head_hash($project); - $hash = git_get_hash_by_path($base, $file_name, "blob") - or die_error(404, "Cannot find file"); - } else { - die_error(400, "No file name defined"); - } - } elsif ($hash =~ m/^[0-9a-fA-F]{40}$/) { - # blobs defined by non-textual hash id's can be cached - $expires = "+1d"; - } - - my $have_blame = gitweb_check_feature('blame'); - open my $fd, "-|", git_cmd(), "cat-file", "blob", $hash - or die_error(500, "Couldn't cat $file_name, $hash"); - my $mimetype = blob_mimetype($fd, $file_name); - # use 'blob_plain' (aka 'raw') view for files that cannot be displayed - if ($mimetype !~ m!^(?:text/|image/(?:gif|png|jpeg)$)! && -B $fd) { - close $fd; - return git_blob_plain($mimetype); - } - # we can have blame only for text/* mimetype - $have_blame &&= ($mimetype =~ m!^text/!); - - my $highlight = gitweb_check_feature('highlight'); - my $syntax = guess_file_syntax($highlight, $file_name); - $fd = run_highlighter($fd, $highlight, $syntax); - - git_header_html(undef, $expires); - my $formats_nav = ''; - if (defined $hash_base && (my %co = parse_commit($hash_base))) { - if (defined $file_name) { - if ($have_blame) { - $formats_nav .= - $cgi->a({-href => href(action=>"blame", -replay=>1)}, - "blame") . - " | "; - } - $formats_nav .= - $cgi->a({-href => href(action=>"history", -replay=>1)}, - "history") . - " | " . - $cgi->a({-href => href(action=>"blob_plain", -replay=>1)}, - "raw") . - " | " . - $cgi->a({-href => href(action=>"blob", - hash_base=>"HEAD", file_name=>$file_name)}, - "HEAD"); - } else { - $formats_nav .= - $cgi->a({-href => href(action=>"blob_plain", -replay=>1)}, - "raw"); - } - git_print_page_nav('','', $hash_base,$co{'tree'},$hash_base, $formats_nav); - git_print_header_div('commit', esc_html($co{'title'}), $hash_base); - } else { - print "
    \n" . - "

    \n" . - "
    ".esc_html($hash)."
    \n"; - } - git_print_page_path($file_name, "blob", $hash_base); - print "
    \n"; - if ($mimetype =~ m!^image/!) { - print qq!!.esc_attr($file_name).qq!$hash, - hash_base=>$hash_base, file_name=>$file_name) . - qq!" />\n!; - } else { - my $nr; - while (my $line = <$fd>) { - chomp $line; - $nr++; - $line = untabify($line); - printf qq!
    %4i %s
    \n!, - $nr, esc_attr(href(-replay => 1)), $nr, $nr, - $highlight ? sanitize($line) : esc_html($line, -nbsp=>1); - } - } - close $fd - or print "Reading blob failed.\n"; - print "
    "; - git_footer_html(); -} - -sub git_tree { - if (!defined $hash_base) { - $hash_base = "HEAD"; - } - if (!defined $hash) { - if (defined $file_name) { - $hash = git_get_hash_by_path($hash_base, $file_name, "tree"); - } else { - $hash = $hash_base; - } - } - die_error(404, "No such tree") unless defined($hash); - - my $show_sizes = gitweb_check_feature('show-sizes'); - my $have_blame = gitweb_check_feature('blame'); - - my @entries = (); - { - local $/ = "\0"; - open my $fd, "-|", git_cmd(), "ls-tree", '-z', - ($show_sizes ? '-l' : ()), @extra_options, $hash - or die_error(500, "Open git-ls-tree failed"); - @entries = map { chomp; $_ } <$fd>; - close $fd - or die_error(404, "Reading tree failed"); - } - - my $refs = git_get_references(); - my $ref = format_ref_marker($refs, $hash_base); - git_header_html(); - my $basedir = ''; - if (defined $hash_base && (my %co = parse_commit($hash_base))) { - my @views_nav = (); - if (defined $file_name) { - push @views_nav, - $cgi->a({-href => href(action=>"history", -replay=>1)}, - "history"), - $cgi->a({-href => href(action=>"tree", - hash_base=>"HEAD", file_name=>$file_name)}, - "HEAD"), - } - my $snapshot_links = format_snapshot_links($hash); - if (defined $snapshot_links) { - # FIXME: Should be available when we have no hash base as well. - push @views_nav, $snapshot_links; - } - git_print_page_nav('tree','', $hash_base, undef, undef, - join(' | ', @views_nav)); - git_print_header_div('commit', esc_html($co{'title'}) . $ref, $hash_base); - } else { - undef $hash_base; - print "
    \n"; - print "

    \n"; - print "
    ".esc_html($hash)."
    \n"; - } - if (defined $file_name) { - $basedir = $file_name; - if ($basedir ne '' && substr($basedir, -1) ne '/') { - $basedir .= '/'; - } - git_print_page_path($file_name, 'tree', $hash_base); - } - print "
    \n"; - print "\n"; - my $alternate = 1; - # '..' (top directory) link if possible - if (defined $hash_base && - defined $file_name && $file_name =~ m![^/]+$!) { - if ($alternate) { - print "\n"; - } else { - print "\n"; - } - $alternate ^= 1; - - my $up = $file_name; - $up =~ s!/?[^/]+$!!; - undef $up unless $up; - # based on git_print_tree_entry - print '\n"; - print ''."\n" if $show_sizes; - print '\n"; - print "\n"; - - print "\n"; - } - foreach my $line (@entries) { - my %t = parse_ls_tree_line($line, -z => 1, -l => $show_sizes); - - if ($alternate) { - print "\n"; - } else { - print "\n"; - } - $alternate ^= 1; - - git_print_tree_entry(\%t, $basedir, $hash_base, $have_blame); - - print "\n"; - } - print "
    ' . mode_str('040000') . " '; - print $cgi->a({-href => href(action=>"tree", - hash_base=>$hash_base, - file_name=>$up)}, - ".."); - print "
    \n" . - "
    "; - git_footer_html(); -} - -sub sanitize_for_filename { - my $name = shift; - - $name =~ s!/!-!g; - $name =~ s/[^[:alnum:]_.-]//g; - - return $name; -} - -sub snapshot_name { - my ($project, $hash) = @_; - - # path/to/project.git -> project - # path/to/project/.git -> project - my $name = to_utf8($project); - $name =~ s,([^/])/*\.git$,$1,; - $name = sanitize_for_filename(basename($name)); - - my $ver = $hash; - if ($hash =~ /^[0-9a-fA-F]+$/) { - # shorten SHA-1 hash - my $full_hash = git_get_full_hash($project, $hash); - if ($full_hash =~ /^$hash/ && length($hash) > 7) { - $ver = git_get_short_hash($project, $hash); - } - } elsif ($hash =~ m!^refs/tags/(.*)$!) { - # tags don't need shortened SHA-1 hash - $ver = $1; - } else { - # branches and other need shortened SHA-1 hash - my $strip_refs = join '|', map { quotemeta } get_branch_refs(); - if ($hash =~ m!^refs/($strip_refs|remotes)/(.*)$!) { - my $ref_dir = (defined $1) ? $1 : ''; - $ver = $2; - - $ref_dir = sanitize_for_filename($ref_dir); - # for refs neither in heads nor remotes we want to - # add a ref dir to archive name - if ($ref_dir ne '' and $ref_dir ne 'heads' and $ref_dir ne 'remotes') { - $ver = $ref_dir . '-' . $ver; - } - } - $ver .= '-' . git_get_short_hash($project, $hash); - } - # special case of sanitization for filename - we change - # slashes to dots instead of dashes - # in case of hierarchical branch names - $ver =~ s!/!.!g; - $ver =~ s/[^[:alnum:]_.-]//g; - - # name = project-version_string - $name = "$name-$ver"; - - return wantarray ? ($name, $name) : $name; -} - -sub exit_if_unmodified_since { - my ($latest_epoch) = @_; - our $cgi; - - my $if_modified = $cgi->http('IF_MODIFIED_SINCE'); - if (defined $if_modified) { - my $since; - if (eval { require HTTP::Date; 1; }) { - $since = HTTP::Date::str2time($if_modified); - } elsif (eval { require Time::ParseDate; 1; }) { - $since = Time::ParseDate::parsedate($if_modified, GMT => 1); - } - if (defined $since && $latest_epoch <= $since) { - my %latest_date = parse_date($latest_epoch); - print $cgi->header( - -last_modified => $latest_date{'rfc2822'}, - -status => '304 Not Modified'); - goto DONE_GITWEB; - } - } -} - -sub git_snapshot { - my $format = $input_params{'snapshot_format'}; - if (!@snapshot_fmts) { - die_error(403, "Snapshots not allowed"); - } - # default to first supported snapshot format - $format ||= $snapshot_fmts[0]; - if ($format !~ m/^[a-z0-9]+$/) { - die_error(400, "Invalid snapshot format parameter"); - } elsif (!exists($known_snapshot_formats{$format})) { - die_error(400, "Unknown snapshot format"); - } elsif ($known_snapshot_formats{$format}{'disabled'}) { - die_error(403, "Snapshot format not allowed"); - } elsif (!grep($_ eq $format, @snapshot_fmts)) { - die_error(403, "Unsupported snapshot format"); - } - - my $type = git_get_type("$hash^{}"); - if (!$type) { - die_error(404, 'Object does not exist'); - } elsif ($type eq 'blob') { - die_error(400, 'Object is not a tree-ish'); - } - - my ($name, $prefix) = snapshot_name($project, $hash); - my $filename = "$name$known_snapshot_formats{$format}{'suffix'}"; - - my %co = parse_commit($hash); - exit_if_unmodified_since($co{'committer_epoch'}) if %co; - - my $cmd = quote_command( - git_cmd(), 'archive', - "--format=$known_snapshot_formats{$format}{'format'}", - "--prefix=$prefix/", $hash); - if (exists $known_snapshot_formats{$format}{'compressor'}) { - $cmd .= ' | ' . quote_command(@{$known_snapshot_formats{$format}{'compressor'}}); - } - - $filename =~ s/(["\\])/\\$1/g; - my %latest_date; - if (%co) { - %latest_date = parse_date($co{'committer_epoch'}, $co{'committer_tz'}); - } - - print $cgi->header( - -type => $known_snapshot_formats{$format}{'type'}, - -content_disposition => 'inline; filename="' . $filename . '"', - %co ? (-last_modified => $latest_date{'rfc2822'}) : (), - -status => '200 OK'); - - open my $fd, "-|", $cmd - or die_error(500, "Execute git-archive failed"); - binmode STDOUT, ':raw'; - print <$fd>; - binmode STDOUT, ':utf8'; # as set at the beginning of gitweb.cgi - close $fd; -} - -sub git_log_generic { - my ($fmt_name, $body_subr, $base, $parent, $file_name, $file_hash) = @_; - - my $head = git_get_head_hash($project); - if (!defined $base) { - $base = $head; - } - if (!defined $page) { - $page = 0; - } - my $refs = git_get_references(); - - my $commit_hash = $base; - if (defined $parent) { - $commit_hash = "$parent..$base"; - } - my @commitlist = - parse_commits($commit_hash, 101, (100 * $page), - defined $file_name ? ($file_name, "--full-history") : ()); - - my $ftype; - if (!defined $file_hash && defined $file_name) { - # some commits could have deleted file in question, - # and not have it in tree, but one of them has to have it - for (my $i = 0; $i < @commitlist; $i++) { - $file_hash = git_get_hash_by_path($commitlist[$i]{'id'}, $file_name); - last if defined $file_hash; - } - } - if (defined $file_hash) { - $ftype = git_get_type($file_hash); - } - if (defined $file_name && !defined $ftype) { - die_error(500, "Unknown type of object"); - } - my %co; - if (defined $file_name) { - %co = parse_commit($base) - or die_error(404, "Unknown commit object"); - } - - - my $paging_nav = format_paging_nav($fmt_name, $page, $#commitlist >= 100); - my $next_link = ''; - if ($#commitlist >= 100) { - $next_link = - $cgi->a({-href => href(-replay=>1, page=>$page+1), - -accesskey => "n", -title => "Alt-n"}, "next"); - } - my $patch_max = gitweb_get_feature('patches'); - if ($patch_max && !defined $file_name) { - if ($patch_max < 0 || @commitlist <= $patch_max) { - $paging_nav .= " ⋅ " . - $cgi->a({-href => href(action=>"patches", -replay=>1)}, - "patches"); - } - } - - git_header_html(); - git_print_page_nav($fmt_name,'', $hash,$hash,$hash, $paging_nav); - if (defined $file_name) { - git_print_header_div('commit', esc_html($co{'title'}), $base); - } else { - git_print_header_div('summary', $project) - } - git_print_page_path($file_name, $ftype, $hash_base) - if (defined $file_name); - - $body_subr->(\@commitlist, 0, 99, $refs, $next_link, - $file_name, $file_hash, $ftype); - - git_footer_html(); -} - -sub git_log { - git_log_generic('log', \&git_log_body, - $hash, $hash_parent); -} - -sub git_commit { - $hash ||= $hash_base || "HEAD"; - my %co = parse_commit($hash) - or die_error(404, "Unknown commit object"); - - my $parent = $co{'parent'}; - my $parents = $co{'parents'}; # listref - - # we need to prepare $formats_nav before any parameter munging - my $formats_nav; - if (!defined $parent) { - # --root commitdiff - $formats_nav .= '(initial)'; - } elsif (@$parents == 1) { - # single parent commit - $formats_nav .= - '(parent: ' . - $cgi->a({-href => href(action=>"commit", - hash=>$parent)}, - esc_html(substr($parent, 0, 7))) . - ')'; - } else { - # merge commit - $formats_nav .= - '(merge: ' . - join(' ', map { - $cgi->a({-href => href(action=>"commit", - hash=>$_)}, - esc_html(substr($_, 0, 7))); - } @$parents ) . - ')'; - } - if (gitweb_check_feature('patches') && @$parents <= 1) { - $formats_nav .= " | " . - $cgi->a({-href => href(action=>"patch", -replay=>1)}, - "patch"); - } - - if (!defined $parent) { - $parent = "--root"; - } - my @difftree; - open my $fd, "-|", git_cmd(), "diff-tree", '-r', "--no-commit-id", - @diff_opts, - (@$parents <= 1 ? $parent : '-c'), - $hash, "--" - or die_error(500, "Open git-diff-tree failed"); - @difftree = map { chomp; $_ } <$fd>; - close $fd or die_error(404, "Reading git-diff-tree failed"); - - # non-textual hash id's can be cached - my $expires; - if ($hash =~ m/^[0-9a-fA-F]{40}$/) { - $expires = "+1d"; - } - my $refs = git_get_references(); - my $ref = format_ref_marker($refs, $co{'id'}); - - git_header_html(undef, $expires); - git_print_page_nav('commit', '', - $hash, $co{'tree'}, $hash, - $formats_nav); - - if (defined $co{'parent'}) { - git_print_header_div('commitdiff', esc_html($co{'title'}) . $ref, $hash); - } else { - git_print_header_div('tree', esc_html($co{'title'}) . $ref, $co{'tree'}, $hash); - } - print "
    \n" . - "\n"; - git_print_authorship_rows(\%co); - print "\n"; - print "" . - "" . - "" . - "" . - "\n"; - - foreach my $par (@$parents) { - print "" . - "" . - "" . - "" . - "\n"; - } - print "
    commit$co{'id'}
    tree" . - $cgi->a({-href => href(action=>"tree", hash=>$co{'tree'}, hash_base=>$hash), - class => "list"}, $co{'tree'}) . - "" . - $cgi->a({-href => href(action=>"tree", hash=>$co{'tree'}, hash_base=>$hash)}, - "tree"); - my $snapshot_links = format_snapshot_links($hash); - if (defined $snapshot_links) { - print " | " . $snapshot_links; - } - print "
    parent" . - $cgi->a({-href => href(action=>"commit", hash=>$par), - class => "list"}, $par) . - "" . - $cgi->a({-href => href(action=>"commit", hash=>$par)}, "commit") . - " | " . - $cgi->a({-href => href(action=>"commitdiff", hash=>$hash, hash_parent=>$par)}, "diff") . - "
    ". - "
    \n"; - - print "
    \n"; - git_print_log($co{'comment'}); - print "
    \n"; - - git_difftree_body(\@difftree, $hash, @$parents); - - git_footer_html(); -} - -sub git_object { - # object is defined by: - # - hash or hash_base alone - # - hash_base and file_name - my $type; - - # - hash or hash_base alone - if ($hash || ($hash_base && !defined $file_name)) { - my $object_id = $hash || $hash_base; - - open my $fd, "-|", quote_command( - git_cmd(), 'cat-file', '-t', $object_id) . ' 2> /dev/null' - or die_error(404, "Object does not exist"); - $type = <$fd>; - defined $type && chomp $type; - close $fd - or die_error(404, "Object does not exist"); - - # - hash_base and file_name - } elsif ($hash_base && defined $file_name) { - $file_name =~ s,/+$,,; - - system(git_cmd(), "cat-file", '-e', $hash_base) == 0 - or die_error(404, "Base object does not exist"); - - # here errors should not happen - open my $fd, "-|", git_cmd(), "ls-tree", $hash_base, "--", $file_name - or die_error(500, "Open git-ls-tree failed"); - my $line = <$fd>; - close $fd; - - #'100644 blob 0fa3f3a66fb6a137f6ec2c19351ed4d807070ffa panic.c' - unless ($line && $line =~ m/^([0-9]+) (.+) ([0-9a-fA-F]{40})\t/) { - die_error(404, "File or directory for given base does not exist"); - } - $type = $2; - $hash = $3; - } else { - die_error(400, "Not enough information to find object"); - } - - print $cgi->redirect(-uri => href(action=>$type, -full=>1, - hash=>$hash, hash_base=>$hash_base, - file_name=>$file_name), - -status => '302 Found'); -} - -sub git_blobdiff { - my $format = shift || 'html'; - my $diff_style = $input_params{'diff_style'} || 'inline'; - - my $fd; - my @difftree; - my %diffinfo; - my $expires; - - # preparing $fd and %diffinfo for git_patchset_body - # new style URI - if (defined $hash_base && defined $hash_parent_base) { - if (defined $file_name) { - # read raw output - open $fd, "-|", git_cmd(), "diff-tree", '-r', @diff_opts, - $hash_parent_base, $hash_base, - "--", (defined $file_parent ? $file_parent : ()), $file_name - or die_error(500, "Open git-diff-tree failed"); - @difftree = map { chomp; $_ } <$fd>; - close $fd - or die_error(404, "Reading git-diff-tree failed"); - @difftree - or die_error(404, "Blob diff not found"); - - } elsif (defined $hash && - $hash =~ /[0-9a-fA-F]{40}/) { - # try to find filename from $hash - - # read filtered raw output - open $fd, "-|", git_cmd(), "diff-tree", '-r', @diff_opts, - $hash_parent_base, $hash_base, "--" - or die_error(500, "Open git-diff-tree failed"); - @difftree = - # ':100644 100644 03b21826... 3b93d5e7... M ls-files.c' - # $hash == to_id - grep { /^:[0-7]{6} [0-7]{6} [0-9a-fA-F]{40} $hash/ } - map { chomp; $_ } <$fd>; - close $fd - or die_error(404, "Reading git-diff-tree failed"); - @difftree - or die_error(404, "Blob diff not found"); - - } else { - die_error(400, "Missing one of the blob diff parameters"); - } - - if (@difftree > 1) { - die_error(400, "Ambiguous blob diff specification"); - } - - %diffinfo = parse_difftree_raw_line($difftree[0]); - $file_parent ||= $diffinfo{'from_file'} || $file_name; - $file_name ||= $diffinfo{'to_file'}; - - $hash_parent ||= $diffinfo{'from_id'}; - $hash ||= $diffinfo{'to_id'}; - - # non-textual hash id's can be cached - if ($hash_base =~ m/^[0-9a-fA-F]{40}$/ && - $hash_parent_base =~ m/^[0-9a-fA-F]{40}$/) { - $expires = '+1d'; - } - - # open patch output - open $fd, "-|", git_cmd(), "diff-tree", '-r', @diff_opts, - '-p', ($format eq 'html' ? "--full-index" : ()), - $hash_parent_base, $hash_base, - "--", (defined $file_parent ? $file_parent : ()), $file_name - or die_error(500, "Open git-diff-tree failed"); - } - - # old/legacy style URI -- not generated anymore since 1.4.3. - if (!%diffinfo) { - die_error('404 Not Found', "Missing one of the blob diff parameters") - } - - # header - if ($format eq 'html') { - my $formats_nav = - $cgi->a({-href => href(action=>"blobdiff_plain", -replay=>1)}, - "raw"); - $formats_nav .= diff_style_nav($diff_style); - git_header_html(undef, $expires); - if (defined $hash_base && (my %co = parse_commit($hash_base))) { - git_print_page_nav('','', $hash_base,$co{'tree'},$hash_base, $formats_nav); - git_print_header_div('commit', esc_html($co{'title'}), $hash_base); - } else { - print "

    $formats_nav
    \n"; - print "
    ".esc_html("$hash vs $hash_parent")."
    \n"; - } - if (defined $file_name) { - git_print_page_path($file_name, "blob", $hash_base); - } else { - print "
    \n"; - } - - } elsif ($format eq 'plain') { - print $cgi->header( - -type => 'text/plain', - -charset => 'utf-8', - -expires => $expires, - -content_disposition => 'inline; filename="' . "$file_name" . '.patch"'); - - print "X-Git-Url: " . $cgi->self_url() . "\n\n"; - - } else { - die_error(400, "Unknown blobdiff format"); - } - - # patch - if ($format eq 'html') { - print "
    \n"; - - git_patchset_body($fd, $diff_style, - [ \%diffinfo ], $hash_base, $hash_parent_base); - close $fd; - - print "
    \n"; # class="page_body" - git_footer_html(); - - } else { - while (my $line = <$fd>) { - $line =~ s!a/($hash|$hash_parent)!'a/'.esc_path($diffinfo{'from_file'})!eg; - $line =~ s!b/($hash|$hash_parent)!'b/'.esc_path($diffinfo{'to_file'})!eg; - - print $line; - - last if $line =~ m!^\+\+\+!; - } - local $/ = undef; - print <$fd>; - close $fd; - } -} - -sub git_blobdiff_plain { - git_blobdiff('plain'); -} - -# assumes that it is added as later part of already existing navigation, -# so it returns "| foo | bar" rather than just "foo | bar" -sub diff_style_nav { - my ($diff_style, $is_combined) = @_; - $diff_style ||= 'inline'; - - return "" if ($is_combined); - - my @styles = (inline => 'inline', 'sidebyside' => 'side by side'); - my %styles = @styles; - @styles = - @styles[ map { $_ * 2 } 0..$#styles/2 ]; - - return join '', - map { " | ".$_ } - map { - $_ eq $diff_style ? $styles{$_} : - $cgi->a({-href => href(-replay=>1, diff_style => $_)}, $styles{$_}) - } @styles; -} - -sub git_commitdiff { - my %params = @_; - my $format = $params{-format} || 'html'; - my $diff_style = $input_params{'diff_style'} || 'inline'; - - my ($patch_max) = gitweb_get_feature('patches'); - if ($format eq 'patch') { - die_error(403, "Patch view not allowed") unless $patch_max; - } - - $hash ||= $hash_base || "HEAD"; - my %co = parse_commit($hash) - or die_error(404, "Unknown commit object"); - - # choose format for commitdiff for merge - if (! defined $hash_parent && @{$co{'parents'}} > 1) { - $hash_parent = '--cc'; - } - # we need to prepare $formats_nav before almost any parameter munging - my $formats_nav; - if ($format eq 'html') { - $formats_nav = - $cgi->a({-href => href(action=>"commitdiff_plain", -replay=>1)}, - "raw"); - if ($patch_max && @{$co{'parents'}} <= 1) { - $formats_nav .= " | " . - $cgi->a({-href => href(action=>"patch", -replay=>1)}, - "patch"); - } - $formats_nav .= diff_style_nav($diff_style, @{$co{'parents'}} > 1); - - if (defined $hash_parent && - $hash_parent ne '-c' && $hash_parent ne '--cc') { - # commitdiff with two commits given - my $hash_parent_short = $hash_parent; - if ($hash_parent =~ m/^[0-9a-fA-F]{40}$/) { - $hash_parent_short = substr($hash_parent, 0, 7); - } - $formats_nav .= - ' (from'; - for (my $i = 0; $i < @{$co{'parents'}}; $i++) { - if ($co{'parents'}[$i] eq $hash_parent) { - $formats_nav .= ' parent ' . ($i+1); - last; - } - } - $formats_nav .= ': ' . - $cgi->a({-href => href(-replay=>1, - hash=>$hash_parent, hash_base=>undef)}, - esc_html($hash_parent_short)) . - ')'; - } elsif (!$co{'parent'}) { - # --root commitdiff - $formats_nav .= ' (initial)'; - } elsif (scalar @{$co{'parents'}} == 1) { - # single parent commit - $formats_nav .= - ' (parent: ' . - $cgi->a({-href => href(-replay=>1, - hash=>$co{'parent'}, hash_base=>undef)}, - esc_html(substr($co{'parent'}, 0, 7))) . - ')'; - } else { - # merge commit - if ($hash_parent eq '--cc') { - $formats_nav .= ' | ' . - $cgi->a({-href => href(-replay=>1, - hash=>$hash, hash_parent=>'-c')}, - 'combined'); - } else { # $hash_parent eq '-c' - $formats_nav .= ' | ' . - $cgi->a({-href => href(-replay=>1, - hash=>$hash, hash_parent=>'--cc')}, - 'compact'); - } - $formats_nav .= - ' (merge: ' . - join(' ', map { - $cgi->a({-href => href(-replay=>1, - hash=>$_, hash_base=>undef)}, - esc_html(substr($_, 0, 7))); - } @{$co{'parents'}} ) . - ')'; - } - } - - my $hash_parent_param = $hash_parent; - if (!defined $hash_parent_param) { - # --cc for multiple parents, --root for parentless - $hash_parent_param = - @{$co{'parents'}} > 1 ? '--cc' : $co{'parent'} || '--root'; - } - - # read commitdiff - my $fd; - my @difftree; - if ($format eq 'html') { - open $fd, "-|", git_cmd(), "diff-tree", '-r', @diff_opts, - "--no-commit-id", "--patch-with-raw", "--full-index", - $hash_parent_param, $hash, "--" - or die_error(500, "Open git-diff-tree failed"); - - while (my $line = <$fd>) { - chomp $line; - # empty line ends raw part of diff-tree output - last unless $line; - push @difftree, scalar parse_difftree_raw_line($line); - } - - } elsif ($format eq 'plain') { - open $fd, "-|", git_cmd(), "diff-tree", '-r', @diff_opts, - '-p', $hash_parent_param, $hash, "--" - or die_error(500, "Open git-diff-tree failed"); - } elsif ($format eq 'patch') { - # For commit ranges, we limit the output to the number of - # patches specified in the 'patches' feature. - # For single commits, we limit the output to a single patch, - # diverging from the git-format-patch default. - my @commit_spec = (); - if ($hash_parent) { - if ($patch_max > 0) { - push @commit_spec, "-$patch_max"; - } - push @commit_spec, '-n', "$hash_parent..$hash"; - } else { - if ($params{-single}) { - push @commit_spec, '-1'; - } else { - if ($patch_max > 0) { - push @commit_spec, "-$patch_max"; - } - push @commit_spec, "-n"; - } - push @commit_spec, '--root', $hash; - } - open $fd, "-|", git_cmd(), "format-patch", @diff_opts, - '--encoding=utf8', '--stdout', @commit_spec - or die_error(500, "Open git-format-patch failed"); - } else { - die_error(400, "Unknown commitdiff format"); - } - - # non-textual hash id's can be cached - my $expires; - if ($hash =~ m/^[0-9a-fA-F]{40}$/) { - $expires = "+1d"; - } - - # write commit message - if ($format eq 'html') { - my $refs = git_get_references(); - my $ref = format_ref_marker($refs, $co{'id'}); - - git_header_html(undef, $expires); - git_print_page_nav('commitdiff','', $hash,$co{'tree'},$hash, $formats_nav); - git_print_header_div('commit', esc_html($co{'title'}) . $ref, $hash); - print "
    \n" . - "\n"; - git_print_authorship_rows(\%co); - print "
    ". - "
    \n"; - print "
    \n"; - if (@{$co{'comment'}} > 1) { - print "
    \n"; - git_print_log($co{'comment'}, -final_empty_line=> 1, -remove_title => 1); - print "
    \n"; # class="log" - } - - } elsif ($format eq 'plain') { - my $refs = git_get_references("tags"); - my $tagname = git_get_rev_name_tags($hash); - my $filename = basename($project) . "-$hash.patch"; - - print $cgi->header( - -type => 'text/plain', - -charset => 'utf-8', - -expires => $expires, - -content_disposition => 'inline; filename="' . "$filename" . '"'); - my %ad = parse_date($co{'author_epoch'}, $co{'author_tz'}); - print "From: " . to_utf8($co{'author'}) . "\n"; - print "Date: $ad{'rfc2822'} ($ad{'tz_local'})\n"; - print "Subject: " . to_utf8($co{'title'}) . "\n"; - - print "X-Git-Tag: $tagname\n" if $tagname; - print "X-Git-Url: " . $cgi->self_url() . "\n\n"; - - foreach my $line (@{$co{'comment'}}) { - print to_utf8($line) . "\n"; - } - print "---\n\n"; - } elsif ($format eq 'patch') { - my $filename = basename($project) . "-$hash.patch"; - - print $cgi->header( - -type => 'text/plain', - -charset => 'utf-8', - -expires => $expires, - -content_disposition => 'inline; filename="' . "$filename" . '"'); - } - - # write patch - if ($format eq 'html') { - my $use_parents = !defined $hash_parent || - $hash_parent eq '-c' || $hash_parent eq '--cc'; - git_difftree_body(\@difftree, $hash, - $use_parents ? @{$co{'parents'}} : $hash_parent); - print "
    \n"; - - git_patchset_body($fd, $diff_style, - \@difftree, $hash, - $use_parents ? @{$co{'parents'}} : $hash_parent); - close $fd; - print "
    \n"; # class="page_body" - git_footer_html(); - - } elsif ($format eq 'plain') { - local $/ = undef; - print <$fd>; - close $fd - or print "Reading git-diff-tree failed\n"; - } elsif ($format eq 'patch') { - local $/ = undef; - print <$fd>; - close $fd - or print "Reading git-format-patch failed\n"; - } -} - -sub git_commitdiff_plain { - git_commitdiff(-format => 'plain'); -} - -# format-patch-style patches -sub git_patch { - git_commitdiff(-format => 'patch', -single => 1); -} - -sub git_patches { - git_commitdiff(-format => 'patch'); -} - -sub git_history { - git_log_generic('history', \&git_history_body, - $hash_base, $hash_parent_base, - $file_name, $hash); -} - -sub git_search { - $searchtype ||= 'commit'; - - # check if appropriate features are enabled - gitweb_check_feature('search') - or die_error(403, "Search is disabled"); - if ($searchtype eq 'pickaxe') { - # pickaxe may take all resources of your box and run for several minutes - # with every query - so decide by yourself how public you make this feature - gitweb_check_feature('pickaxe') - or die_error(403, "Pickaxe search is disabled"); - } - if ($searchtype eq 'grep') { - # grep search might be potentially CPU-intensive, too - gitweb_check_feature('grep') - or die_error(403, "Grep search is disabled"); - } - - if (!defined $searchtext) { - die_error(400, "Text field is empty"); - } - if (!defined $hash) { - $hash = git_get_head_hash($project); - } - my %co = parse_commit($hash); - if (!%co) { - die_error(404, "Unknown commit object"); - } - if (!defined $page) { - $page = 0; - } - - if ($searchtype eq 'commit' || - $searchtype eq 'author' || - $searchtype eq 'committer') { - git_search_message(%co); - } elsif ($searchtype eq 'pickaxe') { - git_search_changes(%co); - } elsif ($searchtype eq 'grep') { - git_search_files(%co); - } else { - die_error(400, "Unknown search type"); - } -} - -sub git_search_help { - git_header_html(); - git_print_page_nav('','', $hash,$hash,$hash); - print <Pattern is by default a normal string that is matched precisely (but without -regard to case, except in the case of pickaxe). However, when you check the re checkbox, -the pattern entered is recognized as the POSIX extended -regular expression (also case -insensitive).

    -
    -
    commit
    -
    The commit messages and authorship information will be scanned for the given pattern.
    -EOT - my $have_grep = gitweb_check_feature('grep'); - if ($have_grep) { - print <grep -
    All files in the currently selected tree (HEAD unless you are explicitly browsing - a different one) are searched for the given pattern. On large trees, this search can take -a while and put some strain on the server, so please use it with some consideration. Note that -due to git-grep peculiarity, currently if regexp mode is turned off, the matches are -case-sensitive.
    -EOT - } - print <author -
    Name and e-mail of the change author and date of birth of the patch will be scanned for the given pattern.
    -
    committer
    -
    Name and e-mail of the committer and date of commit will be scanned for the given pattern.
    -EOT - my $have_pickaxe = gitweb_check_feature('pickaxe'); - if ($have_pickaxe) { - print <pickaxe -
    All commits that caused the string to appear or disappear from any file (changes that -added, removed or "modified" the string) will be listed. This search can take a while and -takes a lot of strain on the server, so please use it wisely. Note that since you may be -interested even in changes just changing the case as well, this search is case sensitive.
    -EOT - } - print "
    \n"; - git_footer_html(); -} - -sub git_shortlog { - git_log_generic('shortlog', \&git_shortlog_body, - $hash, $hash_parent); -} - -## ...................................................................... -## feeds (RSS, Atom; OPML) - -sub git_feed { - my $format = shift || 'atom'; - my $have_blame = gitweb_check_feature('blame'); - - # Atom: http://www.atomenabled.org/developers/syndication/ - # RSS: http://www.notestips.com/80256B3A007F2692/1/NAMO5P9UPQ - if ($format ne 'rss' && $format ne 'atom') { - die_error(400, "Unknown web feed format"); - } - - # log/feed of current (HEAD) branch, log of given branch, history of file/directory - my $head = $hash || 'HEAD'; - my @commitlist = parse_commits($head, 150, 0, $file_name); - - my %latest_commit; - my %latest_date; - my $content_type = "application/$format+xml"; - if (defined $cgi->http('HTTP_ACCEPT') && - $cgi->Accept('text/xml') > $cgi->Accept($content_type)) { - # browser (feed reader) prefers text/xml - $content_type = 'text/xml'; - } - if (defined($commitlist[0])) { - %latest_commit = %{$commitlist[0]}; - my $latest_epoch = $latest_commit{'committer_epoch'}; - exit_if_unmodified_since($latest_epoch); - %latest_date = parse_date($latest_epoch, $latest_commit{'committer_tz'}); - } - print $cgi->header( - -type => $content_type, - -charset => 'utf-8', - %latest_date ? (-last_modified => $latest_date{'rfc2822'}) : (), - -status => '200 OK'); - - # Optimization: skip generating the body if client asks only - # for Last-Modified date. - return if ($cgi->request_method() eq 'HEAD'); - - # header variables - my $title = "$site_name - $project/$action"; - my $feed_type = 'log'; - if (defined $hash) { - $title .= " - '$hash'"; - $feed_type = 'branch log'; - if (defined $file_name) { - $title .= " :: $file_name"; - $feed_type = 'history'; - } - } elsif (defined $file_name) { - $title .= " - $file_name"; - $feed_type = 'history'; - } - $title .= " $feed_type"; - $title = esc_html($title); - my $descr = git_get_project_description($project); - if (defined $descr) { - $descr = esc_html($descr); - } else { - $descr = "$project " . - ($format eq 'rss' ? 'RSS' : 'Atom') . - " feed"; - } - my $owner = git_get_project_owner($project); - $owner = esc_html($owner); - - #header - my $alt_url; - if (defined $file_name) { - $alt_url = href(-full=>1, action=>"history", hash=>$hash, file_name=>$file_name); - } elsif (defined $hash) { - $alt_url = href(-full=>1, action=>"log", hash=>$hash); - } else { - $alt_url = href(-full=>1, action=>"summary"); - } - print qq!\n!; - if ($format eq 'rss') { - print < - -XML - print "$title\n" . - "$alt_url\n" . - "$descr\n" . - "en\n" . - # project owner is responsible for 'editorial' content - "$owner\n"; - if (defined $logo || defined $favicon) { - # prefer the logo to the favicon, since RSS - # doesn't allow both - my $img = esc_url($logo || $favicon); - print "\n" . - "$img\n" . - "$title\n" . - "$alt_url\n" . - "\n"; - } - if (%latest_date) { - print "$latest_date{'rfc2822'}\n"; - print "$latest_date{'rfc2822'}\n"; - } - print "gitweb v.$version/$git_version\n"; - } elsif ($format eq 'atom') { - print < -XML - print "$title\n" . - "$descr\n" . - '' . "\n" . - '' . "\n" . - "" . href(-full=>1) . "\n" . - # use project owner for feed author - "$owner\n"; - if (defined $favicon) { - print "" . esc_url($favicon) . "\n"; - } - if (defined $logo) { - # not twice as wide as tall: 72 x 27 pixels - print "" . esc_url($logo) . "\n"; - } - if (! %latest_date) { - # dummy date to keep the feed valid until commits trickle in: - print "1970-01-01T00:00:00Z\n"; - } else { - print "$latest_date{'iso-8601'}\n"; - } - print "gitweb\n"; - } - - # contents - for (my $i = 0; $i <= $#commitlist; $i++) { - my %co = %{$commitlist[$i]}; - my $commit = $co{'id'}; - # we read 150, we always show 30 and the ones more recent than 48 hours - if (($i >= 20) && ((time - $co{'author_epoch'}) > 48*60*60)) { - last; - } - my %cd = parse_date($co{'author_epoch'}, $co{'author_tz'}); - - # get list of changed files - open my $fd, "-|", git_cmd(), "diff-tree", '-r', @diff_opts, - $co{'parent'} || "--root", - $co{'id'}, "--", (defined $file_name ? $file_name : ()) - or next; - my @difftree = map { chomp; $_ } <$fd>; - close $fd - or next; - - # print element (entry, item) - my $co_url = href(-full=>1, action=>"commitdiff", hash=>$commit); - if ($format eq 'rss') { - print "\n" . - "" . esc_html($co{'title'}) . "\n" . - "" . esc_html($co{'author'}) . "\n" . - "$cd{'rfc2822'}\n" . - "$co_url\n" . - "$co_url\n" . - "" . esc_html($co{'title'}) . "\n" . - "" . - "\n" . - "" . esc_html($co{'title'}) . "\n" . - "$cd{'iso-8601'}\n" . - "\n" . - " " . esc_html($co{'author_name'}) . "\n"; - if ($co{'author_email'}) { - print " " . esc_html($co{'author_email'}) . "\n"; - } - print "\n" . - # use committer for contributor - "\n" . - " " . esc_html($co{'committer_name'}) . "\n"; - if ($co{'committer_email'}) { - print " " . esc_html($co{'committer_email'}) . "\n"; - } - print "\n" . - "$cd{'iso-8601'}\n" . - "\n" . - "$co_url\n" . - "\n" . - "
    \n"; - } - my $comment = $co{'comment'}; - print "
    \n";
    -		foreach my $line (@$comment) {
    -			$line = esc_html($line);
    -			print "$line\n";
    -		}
    -		print "
      \n"; - foreach my $difftree_line (@difftree) { - my %difftree = parse_difftree_raw_line($difftree_line); - next if !$difftree{'from_id'}; - - my $file = $difftree{'file'} || $difftree{'to_file'}; - - print "
    • " . - "[" . - $cgi->a({-href => href(-full=>1, action=>"blobdiff", - hash=>$difftree{'to_id'}, hash_parent=>$difftree{'from_id'}, - hash_base=>$co{'id'}, hash_parent_base=>$co{'parent'}, - file_name=>$file, file_parent=>$difftree{'from_file'}), - -title => "diff"}, 'D'); - if ($have_blame) { - print $cgi->a({-href => href(-full=>1, action=>"blame", - file_name=>$file, hash_base=>$commit), - -title => "blame"}, 'B'); - } - # if this is not a feed of a file history - if (!defined $file_name || $file_name ne $file) { - print $cgi->a({-href => href(-full=>1, action=>"history", - file_name=>$file, hash=>$commit), - -title => "history"}, 'H'); - } - $file = esc_path($file); - print "] ". - "$file
    • \n"; - } - if ($format eq 'rss') { - print "
    ]]>\n" . - "\n" . - "\n"; - } elsif ($format eq 'atom') { - print "\n
    \n" . - "
    \n" . - "\n"; - } - } - - # end of feed - if ($format eq 'rss') { - print "
    \n\n"; - } elsif ($format eq 'atom') { - print "\n"; - } -} - -sub git_rss { - git_feed('rss'); -} - -sub git_atom { - git_feed('atom'); -} - -sub git_opml { - my @list = git_get_projects_list($project_filter, $strict_export); - if (!@list) { - die_error(404, "No projects found"); - } - - print $cgi->header( - -type => 'text/xml', - -charset => 'utf-8', - -content_disposition => 'inline; filename="opml.xml"'); - - my $title = esc_html($site_name); - my $filter = " within subdirectory "; - if (defined $project_filter) { - $filter .= esc_html($project_filter); - } else { - $filter = ""; - } - print < - - - $title OPML Export$filter - - - -XML - - foreach my $pr (@list) { - my %proj = %$pr; - my $head = git_get_head_hash($proj{'path'}); - if (!defined $head) { - next; - } - $git_dir = "$projectroot/$proj{'path'}"; - my %co = parse_commit($head); - if (!%co) { - next; - } - - my $path = esc_html(chop_str($proj{'path'}, 25, 5)); - my $rss = href('project' => $proj{'path'}, 'action' => 'rss', -full => 1); - my $html = href('project' => $proj{'path'}, 'action' => 'summary', -full => 1); - print "\n"; - } - print < - - -XML -} diff --git a/bin/gitweb/static/git-favicon.png b/bin/gitweb/static/git-favicon.png deleted file mode 100644 index aae35a7..0000000 Binary files a/bin/gitweb/static/git-favicon.png and /dev/null differ diff --git a/bin/gitweb/static/git-logo.png b/bin/gitweb/static/git-logo.png deleted file mode 100644 index f4ede2e..0000000 Binary files a/bin/gitweb/static/git-logo.png and /dev/null differ diff --git a/bin/gitweb/static/gitweb.css b/bin/gitweb/static/gitweb.css deleted file mode 100644 index 3212601..0000000 --- a/bin/gitweb/static/gitweb.css +++ /dev/null @@ -1,686 +0,0 @@ -body { - font-family: sans-serif; - font-size: small; - border: solid #d9d8d1; - border-width: 1px; - margin: 10px; - background-color: #ffffff; - color: #000000; -} - -a { - color: #0000cc; -} - -a:hover, a:visited, a:active { - color: #880000; -} - -span.cntrl { - border: dashed #aaaaaa; - border-width: 1px; - padding: 0px 2px 0px 2px; - margin: 0px 2px 0px 2px; -} - -img.logo { - float: right; - border-width: 0px; -} - -img.avatar { - vertical-align: middle; -} - -img.blob { - max-height: 100%; - max-width: 100%; -} - -a.list img.avatar { - border-style: none; -} - -div.page_header { - height: 25px; - padding: 8px; - font-size: 150%; - font-weight: bold; - background-color: #d9d8d1; -} - -div.page_header a:visited, a.header { - color: #0000cc; -} - -div.page_header a:hover { - color: #880000; -} - -div.page_nav { - padding: 8px; -} - -div.page_nav a:visited { - color: #0000cc; -} - -div.page_path { - padding: 8px; - font-weight: bold; - border: solid #d9d8d1; - border-width: 0px 0px 1px; -} - -div.page_footer { - height: 22px; - padding: 4px 8px; - background-color: #d9d8d1; -} - -div.page_footer_text { - line-height: 22px; - float: left; - color: #555555; - font-style: italic; -} - -div#generating_info { - margin: 4px; - font-size: smaller; - text-align: center; - color: #505050; -} - -div.page_body { - padding: 8px; - font-family: monospace; -} - -div.title, a.title { - display: block; - padding: 6px 8px; - font-weight: bold; - background-color: #edece6; - text-decoration: none; - color: #000000; -} - -div.readme { - padding: 8px; -} - -a.title:hover { - background-color: #d9d8d1; -} - -div.title_text { - padding: 6px 0px; - border: solid #d9d8d1; - border-width: 0px 0px 1px; - font-family: monospace; -} - -div.log_body { - padding: 8px 8px 8px 150px; -} - -span.age { - position: relative; - float: left; - width: 142px; - font-style: italic; -} - -span.signoff { - color: #888888; -} - -div.log_link { - padding: 0px 8px; - font-size: 70%; - font-family: sans-serif; - font-style: normal; - position: relative; - float: left; - width: 136px; -} - -div.list_head { - padding: 6px 8px 4px; - border: solid #d9d8d1; - border-width: 1px 0px 0px; - font-style: italic; -} - -.author_date, .author { - font-style: italic; -} - -div.author_date { - padding: 8px; - border: solid #d9d8d1; - border-width: 0px 0px 1px 0px; -} - -a.list { - text-decoration: none; - color: #000000; -} - -a.subject, a.name { - font-weight: bold; -} - -table.tags a.subject { - font-weight: normal; -} - -a.list:hover { - text-decoration: underline; - color: #880000; -} - -a.text { - text-decoration: none; - color: #0000cc; -} - -a.text:visited { - text-decoration: none; - color: #880000; -} - -a.text:hover { - text-decoration: underline; - color: #880000; -} - -table { - padding: 8px 4px; - border-spacing: 0; -} - -table.diff_tree { - font-family: monospace; -} - -table.combined.diff_tree th { - text-align: center; -} - -table.combined.diff_tree td { - padding-right: 24px; -} - -table.combined.diff_tree th.link, -table.combined.diff_tree td.link { - padding: 0px 2px; -} - -table.combined.diff_tree td.nochange a { - color: #6666ff; -} - -table.combined.diff_tree td.nochange a:hover, -table.combined.diff_tree td.nochange a:visited { - color: #d06666; -} - -table.blame { - border-collapse: collapse; -} - -table.blame td { - padding: 0px 5px; - font-size: 100%; - vertical-align: top; -} - -th { - padding: 2px 5px; - font-size: 100%; - text-align: left; -} - -/* do not change row style on hover for 'blame' view */ -tr.light, -table.blame .light:hover { - background-color: #ffffff; -} - -tr.dark, -table.blame .dark:hover { - background-color: #f6f6f0; -} - -/* currently both use the same, but it can change */ -tr.light:hover, -tr.dark:hover { - background-color: #edece6; -} - -/* boundary commits in 'blame' view */ -/* and commits without "previous" */ -tr.boundary td.sha1, -tr.no-previous td.linenr { - font-weight: bold; -} - -/* for 'blame_incremental', during processing */ -tr.color1 { background-color: #f6fff6; } -tr.color2 { background-color: #f6f6ff; } -tr.color3 { background-color: #fff6f6; } - -td { - padding: 2px 5px; - font-size: 100%; - vertical-align: top; -} - -td.link, td.selflink { - padding: 2px 5px; - font-family: sans-serif; - font-size: 70%; -} - -td.selflink { - padding-right: 0px; -} - -td.sha1 { - font-family: monospace; -} - -.error { - color: red; - background-color: yellow; -} - -td.current_head { - text-decoration: underline; -} - -td.category { - background-color: #d9d8d1; - border-top: 1px solid #000000; - border-left: 1px solid #000000; - font-weight: bold; -} - -table.diff_tree span.file_status.new { - color: #008000; -} - -table.diff_tree span.file_status.deleted { - color: #c00000; -} - -table.diff_tree span.file_status.moved, -table.diff_tree span.file_status.mode_chnge { - color: #777777; -} - -table.diff_tree span.file_status.copied { - color: #70a070; -} - -/* noage: "No commits" */ -table.project_list td.noage { - color: #808080; - font-style: italic; -} - -/* age2: 60*60*24*2 <= age */ -table.project_list td.age2, table.blame td.age2 { - font-style: italic; -} - -/* age1: 60*60*2 <= age < 60*60*24*2 */ -table.project_list td.age1 { - color: #009900; - font-style: italic; -} - -table.blame td.age1 { - color: #009900; - background: transparent; -} - -/* age0: age < 60*60*2 */ -table.project_list td.age0 { - color: #009900; - font-style: italic; - font-weight: bold; -} - -table.blame td.age0 { - color: #009900; - background: transparent; - font-weight: bold; -} - -td.pre, div.pre, div.diff { - font-family: monospace; - font-size: 12px; - white-space: pre; -} - -td.mode { - font-family: monospace; -} - -/* progress of blame_interactive */ -div#progress_bar { - height: 2px; - margin-bottom: -2px; - background-color: #d8d9d0; -} -div#progress_info { - float: right; - text-align: right; -} - -/* format of (optional) objects size in 'tree' view */ -td.size { - font-family: monospace; - text-align: right; -} - -/* styling of diffs (patchsets): commitdiff and blobdiff views */ -div.diff.header, -div.diff.extended_header { - white-space: normal; -} - -div.diff.header { - font-weight: bold; - - background-color: #edece6; - - margin-top: 4px; - padding: 4px 0px 2px 0px; - border: solid #d9d8d1; - border-width: 1px 0px 1px 0px; -} - -div.diff.header a.path { - text-decoration: underline; -} - -div.diff.extended_header, -div.diff.extended_header a.path, -div.diff.extended_header a.hash { - color: #777777; -} - -div.diff.extended_header .info { - color: #b0b0b0; -} - -div.diff.extended_header { - background-color: #f6f5ee; - padding: 2px 0px 2px 0px; -} - -div.diff a.list, -div.diff a.path, -div.diff a.hash { - text-decoration: none; -} - -div.diff a.list:hover, -div.diff a.path:hover, -div.diff a.hash:hover { - text-decoration: underline; -} - -div.diff.to_file a.path, -div.diff.to_file { - color: #007000; -} - -div.diff.add { - color: #008800; -} - -div.diff.add span.marked { - background-color: #aaffaa; -} - -div.diff.from_file a.path, -div.diff.from_file { - color: #aa0000; -} - -div.diff.rem { - color: #cc0000; -} - -div.diff.rem span.marked { - background-color: #ffaaaa; -} - -div.diff.chunk_header a, -div.diff.chunk_header { - color: #990099; -} - -div.diff.chunk_header { - border: dotted #ffe0ff; - border-width: 1px 0px 0px 0px; - margin-top: 2px; -} - -div.diff.chunk_header span.chunk_info { - background-color: #ffeeff; -} - -div.diff.chunk_header span.section { - color: #aa22aa; -} - -div.diff.incomplete { - color: #cccccc; -} - -div.diff.nodifferences { - font-weight: bold; - color: #600000; -} - -/* side-by-side diff */ -div.chunk_block { - overflow: hidden; -} - -div.chunk_block div.old { - float: left; - width: 50%; - overflow: hidden; -} - -div.chunk_block div.new { - margin-left: 50%; - width: 50%; -} - -div.chunk_block.rem div.old div.diff.rem { - background-color: #fff5f5; -} -div.chunk_block.add div.new div.diff.add { - background-color: #f8fff8; -} -div.chunk_block.chg div div.diff { - background-color: #fffff0; -} -div.chunk_block.ctx div div.diff.ctx { - color: #404040; -} - - -div.index_include { - border: solid #d9d8d1; - border-width: 0px 0px 1px; - padding: 12px 8px; -} - -div.search { - font-size: 100%; - font-weight: normal; - margin: 4px 8px; - float: right; - top: 56px; - right: 12px -} - -div.projsearch { - text-align: center; - margin: 20px 0px; -} - -div.projsearch form { - margin-bottom: 2px; -} - -td.linenr { - text-align: right; -} - -a.linenr { - color: #999999; - text-decoration: none -} - -a.rss_logo { - float: right; - padding: 3px 5px; - line-height: 10px; - border: 1px solid; - border-color: #fcc7a5 #7d3302 #3e1a01 #ff954e; - color: #ffffff; - background-color: #ff6600; - font-weight: bold; - font-family: sans-serif; - font-size: 70%; - text-align: center; - text-decoration: none; -} - -a.rss_logo:hover { - background-color: #ee5500; -} - -a.rss_logo.generic { - background-color: #ff8800; -} - -a.rss_logo.generic:hover { - background-color: #ee7700; -} - -span.refs span { - padding: 0px 4px; - font-size: 70%; - font-weight: normal; - border: 1px solid; - background-color: #ffaaff; - border-color: #ffccff #ff00ee #ff00ee #ffccff; -} - -span.refs span a { - text-decoration: none; - color: inherit; -} - -span.refs span a:hover { - text-decoration: underline; -} - -span.refs span.indirect { - font-style: italic; -} - -span.refs span.ref { - background-color: #aaaaff; - border-color: #ccccff #0033cc #0033cc #ccccff; -} - -span.refs span.tag { - background-color: #ffffaa; - border-color: #ffffcc #ffee00 #ffee00 #ffffcc; -} - -span.refs span.head { - background-color: #aaffaa; - border-color: #ccffcc #00cc33 #00cc33 #ccffcc; -} - -span.atnight { - color: #cc0000; -} - -span.match { - color: #e00000; -} - -div.binary { - font-style: italic; -} - -div.remote { - margin: .5em; - border: 1px solid #d9d8d1; - display: inline-block; -} - -/* JavaScript-based timezone manipulation */ - -.popup { /* timezone selection UI */ - position: absolute; - /* "top: 0; right: 0;" would be better, if not for bugs in browsers */ - top: 0; left: 0; - border: 1px solid; - padding: 2px; - background-color: #f0f0f0; - font-style: normal; - color: #000000; - cursor: auto; -} - -.close-button { /* close timezone selection UI without selecting */ - /* float doesn't work within absolutely positioned container, - * if width of container is not set explicitly */ - /* float: right; */ - position: absolute; - top: 0px; right: 0px; - border: 1px solid green; - margin: 1px 1px 1px 1px; - padding-bottom: 2px; - width: 12px; - height: 10px; - font-size: 9px; - font-weight: bold; - text-align: center; - background-color: #fff0f0; - cursor: pointer; -} - - -/* Style definition generated by highlight 2.4.5, http://www.andre-simon.de/ */ - -/* Highlighting theme definition: */ - -.num { color:#2928ff; } -.esc { color:#ff00ff; } -.str { color:#ff0000; } -.dstr { color:#818100; } -.slc { color:#838183; font-style:italic; } -.com { color:#838183; font-style:italic; } -.dir { color:#008200; } -.sym { color:#000000; } -.line { color:#555555; } -.kwa { color:#000000; font-weight:bold; } -.kwb { color:#830000; } -.kwc { color:#000000; font-weight:bold; } -.kwd { color:#010181; } diff --git a/bin/gitweb/static/gitweb.js b/bin/gitweb/static/gitweb.js deleted file mode 100644 index a971109..0000000 --- a/bin/gitweb/static/gitweb.js +++ /dev/null @@ -1,1579 +0,0 @@ -// Copyright (C) 2007, Fredrik Kuivinen -// 2007, Petr Baudis -// 2008-2011, Jakub Narebski - -/** - * @fileOverview Generic JavaScript code (helper functions) - * @license GPLv2 or later - */ - - -/* ============================================================ */ -/* ............................................................ */ -/* Padding */ - -/** - * pad INPUT on the left with STR that is assumed to have visible - * width of single character (for example nonbreakable spaces), - * to WIDTH characters - * - * example: padLeftStr(12, 3, '\u00A0') == '\u00A012' - * ('\u00A0' is nonbreakable space) - * - * @param {Number|String} input: number to pad - * @param {Number} width: visible width of output - * @param {String} str: string to prefix to string, defaults to '\u00A0' - * @returns {String} INPUT prefixed with STR x (WIDTH - INPUT.length) - */ -function padLeftStr(input, width, str) { - var prefix = ''; - if (typeof str === 'undefined') { - ch = '\u00A0'; // using ' ' doesn't work in all browsers - } - - width -= input.toString().length; - while (width > 0) { - prefix += str; - width--; - } - return prefix + input; -} - -/** - * Pad INPUT on the left to WIDTH, using given padding character CH, - * for example padLeft('a', 3, '_') is '__a' - * padLeft(4, 2) is '04' (same as padLeft(4, 2, '0')) - * - * @param {String} input: input value converted to string. - * @param {Number} width: desired length of output. - * @param {String} ch: single character to prefix to string, defaults to '0'. - * - * @returns {String} Modified string, at least SIZE length. - */ -function padLeft(input, width, ch) { - var s = input + ""; - if (typeof ch === 'undefined') { - ch = '0'; - } - - while (s.length < width) { - s = ch + s; - } - return s; -} - - -/* ............................................................ */ -/* Handling browser incompatibilities */ - -/** - * Create XMLHttpRequest object in cross-browser way - * @returns XMLHttpRequest object, or null - */ -function createRequestObject() { - try { - return new XMLHttpRequest(); - } catch (e) {} - try { - return window.createRequest(); - } catch (e) {} - try { - return new ActiveXObject("Msxml2.XMLHTTP"); - } catch (e) {} - try { - return new ActiveXObject("Microsoft.XMLHTTP"); - } catch (e) {} - - return null; -} - - -/** - * Insert rule giving specified STYLE to given SELECTOR at the end of - * first CSS stylesheet. - * - * @param {String} selector: CSS selector, e.g. '.class' - * @param {String} style: rule contents, e.g. 'background-color: red;' - */ -function addCssRule(selector, style) { - var stylesheet = document.styleSheets[0]; - - var theRules = []; - if (stylesheet.cssRules) { // W3C way - theRules = stylesheet.cssRules; - } else if (stylesheet.rules) { // IE way - theRules = stylesheet.rules; - } - - if (stylesheet.insertRule) { // W3C way - stylesheet.insertRule(selector + ' { ' + style + ' }', theRules.length); - } else if (stylesheet.addRule) { // IE way - stylesheet.addRule(selector, style); - } -} - - -/* ............................................................ */ -/* Support for legacy browsers */ - -/** - * Provides getElementsByClassName method, if there is no native - * implementation of this method. - * - * NOTE that there are limits and differences compared to native - * getElementsByClassName as defined by e.g.: - * https://developer.mozilla.org/en/DOM/document.getElementsByClassName - * http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-getelementsbyclassname - * http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-getelementsbyclassname - * - * Namely, this implementation supports only single class name as - * argument and not set of space-separated tokens representing classes, - * it returns Array of nodes rather than live NodeList, and has - * additional optional argument where you can limit search to given tags - * (via getElementsByTagName). - * - * Based on - * http://code.google.com/p/getelementsbyclassname/ - * http://www.dustindiaz.com/getelementsbyclass/ - * http://stackoverflow.com/questions/1818865/do-we-have-getelementsbyclassname-in-javascript - * - * See also http://ejohn.org/blog/getelementsbyclassname-speed-comparison/ - * - * @param {String} class: name of _single_ class to find - * @param {String} [taghint] limit search to given tags - * @returns {Node[]} array of matching elements - */ -if (!('getElementsByClassName' in document)) { - document.getElementsByClassName = function (classname, taghint) { - taghint = taghint || "*"; - var elements = (taghint === "*" && document.all) ? - document.all : - document.getElementsByTagName(taghint); - var pattern = new RegExp("(^|\\s)" + classname + "(\\s|$)"); - var matches= []; - for (var i = 0, j = 0, n = elements.length; i < n; i++) { - var el= elements[i]; - if (el.className && pattern.test(el.className)) { - // matches.push(el); - matches[j] = el; - j++; - } - } - return matches; - }; -} // end if - - -/* ............................................................ */ -/* unquoting/unescaping filenames */ - -/**#@+ - * @constant - */ -var escCodeRe = /\\([^0-7]|[0-7]{1,3})/g; -var octEscRe = /^[0-7]{1,3}$/; -var maybeQuotedRe = /^\"(.*)\"$/; -/**#@-*/ - -/** - * unquote maybe C-quoted filename (as used by git, i.e. it is - * in double quotes '"' if there is any escape character used) - * e.g. 'aa' -> 'aa', '"a\ta"' -> 'a a' - * - * @param {String} str: git-quoted string - * @returns {String} Unquoted and unescaped string - * - * @globals escCodeRe, octEscRe, maybeQuotedRe - */ -function unquote(str) { - function unq(seq) { - var es = { - // character escape codes, aka escape sequences (from C) - // replacements are to some extent JavaScript specific - t: "\t", // tab (HT, TAB) - n: "\n", // newline (NL) - r: "\r", // return (CR) - f: "\f", // form feed (FF) - b: "\b", // backspace (BS) - a: "\x07", // alarm (bell) (BEL) - e: "\x1B", // escape (ESC) - v: "\v" // vertical tab (VT) - }; - - if (seq.search(octEscRe) !== -1) { - // octal char sequence - return String.fromCharCode(parseInt(seq, 8)); - } else if (seq in es) { - // C escape sequence, aka character escape code - return es[seq]; - } - // quoted ordinary character - return seq; - } - - var match = str.match(maybeQuotedRe); - if (match) { - str = match[1]; - // perhaps str = eval('"'+str+'"'); would be enough? - str = str.replace(escCodeRe, - function (substr, p1, offset, s) { return unq(p1); }); - } - return str; -} - -/* end of common-lib.js */ -// Copyright (C) 2007, Fredrik Kuivinen -// 2007, Petr Baudis -// 2008-2011, Jakub Narebski - -/** - * @fileOverview Datetime manipulation: parsing and formatting - * @license GPLv2 or later - */ - - -/* ............................................................ */ -/* parsing and retrieving datetime related information */ - -/** - * used to extract hours and minutes from timezone info, e.g '-0900' - * @constant - */ -var tzRe = /^([+\-])([0-9][0-9])([0-9][0-9])$/; - -/** - * convert numeric timezone +/-ZZZZ to offset from UTC in seconds - * - * @param {String} timezoneInfo: numeric timezone '(+|-)HHMM' - * @returns {Number} offset from UTC in seconds for timezone - * - * @globals tzRe - */ -function timezoneOffset(timezoneInfo) { - var match = tzRe.exec(timezoneInfo); - var tz_sign = (match[1] === '-' ? -1 : +1); - var tz_hour = parseInt(match[2],10); - var tz_min = parseInt(match[3],10); - - return tz_sign*(((tz_hour*60) + tz_min)*60); -} - -/** - * return local (browser) timezone as offset from UTC in seconds - * - * @returns {Number} offset from UTC in seconds for local timezone - */ -function localTimezoneOffset() { - // getTimezoneOffset returns the time-zone offset from UTC, - // in _minutes_, for the current locale - return ((new Date()).getTimezoneOffset() * -60); -} - -/** - * return local (browser) timezone as numeric timezone '(+|-)HHMM' - * - * @returns {String} locat timezone as -/+ZZZZ - */ -function localTimezoneInfo() { - var tzOffsetMinutes = (new Date()).getTimezoneOffset() * -1; - - return formatTimezoneInfo(0, tzOffsetMinutes); -} - - -/** - * Parse RFC-2822 date into a Unix timestamp (into epoch) - * - * @param {String} date: date in RFC-2822 format, e.g. 'Thu, 21 Dec 2000 16:01:07 +0200' - * @returns {Number} epoch i.e. seconds since '00:00:00 1970-01-01 UTC' - */ -function parseRFC2822Date(date) { - // Date.parse accepts the IETF standard (RFC 1123 Section 5.2.14 and elsewhere) - // date syntax, which is defined in RFC 2822 (obsoletes RFC 822) - // and returns number of _milli_seconds since January 1, 1970, 00:00:00 UTC - return Date.parse(date) / 1000; -} - - -/* ............................................................ */ -/* formatting date */ - -/** - * format timezone offset as numerical timezone '(+|-)HHMM' or '(+|-)HH:MM' - * - * @param {Number} hours: offset in hours, e.g. 2 for '+0200' - * @param {Number} [minutes] offset in minutes, e.g. 30 for '-4030'; - * it is split into hours if not 0 <= minutes < 60, - * for example 1200 would give '+0100'; - * defaults to 0 - * @param {String} [sep] separator between hours and minutes part, - * default is '', might be ':' for W3CDTF (rfc-3339) - * @returns {String} timezone in '(+|-)HHMM' or '(+|-)HH:MM' format - */ -function formatTimezoneInfo(hours, minutes, sep) { - minutes = minutes || 0; // to be able to use formatTimezoneInfo(hh) - sep = sep || ''; // default format is +/-ZZZZ - - if (minutes < 0 || minutes > 59) { - hours = minutes > 0 ? Math.floor(minutes / 60) : Math.ceil(minutes / 60); - minutes = Math.abs(minutes - 60*hours); // sign of minutes is sign of hours - // NOTE: this works correctly because there is no UTC-00:30 timezone - } - - var tzSign = hours >= 0 ? '+' : '-'; - if (hours < 0) { - hours = -hours; // sign is stored in tzSign - } - - return tzSign + padLeft(hours, 2, '0') + sep + padLeft(minutes, 2, '0'); -} - -/** - * translate 'utc' and 'local' to numerical timezone - * @param {String} timezoneInfo: might be 'utc' or 'local' (browser) - */ -function normalizeTimezoneInfo(timezoneInfo) { - switch (timezoneInfo) { - case 'utc': - return '+0000'; - case 'local': // 'local' is browser timezone - return localTimezoneInfo(); - } - return timezoneInfo; -} - - -/** - * return date in local time formatted in iso-8601 like format - * 'yyyy-mm-dd HH:MM:SS +/-ZZZZ' e.g. '2005-08-07 21:49:46 +0200' - * - * @param {Number} epoch: seconds since '00:00:00 1970-01-01 UTC' - * @param {String} timezoneInfo: numeric timezone '(+|-)HHMM' - * @returns {String} date in local time in iso-8601 like format - */ -function formatDateISOLocal(epoch, timezoneInfo) { - // date corrected by timezone - var localDate = new Date(1000 * (epoch + - timezoneOffset(timezoneInfo))); - var localDateStr = // e.g. '2005-08-07' - localDate.getUTCFullYear() + '-' + - padLeft(localDate.getUTCMonth()+1, 2, '0') + '-' + - padLeft(localDate.getUTCDate(), 2, '0'); - var localTimeStr = // e.g. '21:49:46' - padLeft(localDate.getUTCHours(), 2, '0') + ':' + - padLeft(localDate.getUTCMinutes(), 2, '0') + ':' + - padLeft(localDate.getUTCSeconds(), 2, '0'); - - return localDateStr + ' ' + localTimeStr + ' ' + timezoneInfo; -} - -/** - * return date in local time formatted in rfc-2822 format - * e.g. 'Thu, 21 Dec 2000 16:01:07 +0200' - * - * @param {Number} epoch: seconds since '00:00:00 1970-01-01 UTC' - * @param {String} timezoneInfo: numeric timezone '(+|-)HHMM' - * @param {Boolean} [padDay] e.g. 'Sun, 07 Aug' if true, 'Sun, 7 Aug' otherwise - * @returns {String} date in local time in rfc-2822 format - */ -function formatDateRFC2882(epoch, timezoneInfo, padDay) { - // A short textual representation of a month, three letters - var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; - // A textual representation of a day, three letters - var days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; - // date corrected by timezone - var localDate = new Date(1000 * (epoch + - timezoneOffset(timezoneInfo))); - var localDateStr = // e.g. 'Sun, 7 Aug 2005' or 'Sun, 07 Aug 2005' - days[localDate.getUTCDay()] + ', ' + - (padDay ? padLeft(localDate.getUTCDate(),2,'0') : localDate.getUTCDate()) + ' ' + - months[localDate.getUTCMonth()] + ' ' + - localDate.getUTCFullYear(); - var localTimeStr = // e.g. '21:49:46' - padLeft(localDate.getUTCHours(), 2, '0') + ':' + - padLeft(localDate.getUTCMinutes(), 2, '0') + ':' + - padLeft(localDate.getUTCSeconds(), 2, '0'); - - return localDateStr + ' ' + localTimeStr + ' ' + timezoneInfo; -} - -/* end of datetime.js */ -/** - * @fileOverview Accessing cookies from JavaScript - * @license GPLv2 or later - */ - -/* - * Based on subsection "Cookies in JavaScript" of "Professional - * JavaScript for Web Developers" by Nicholas C. Zakas and cookie - * plugin from jQuery (dual licensed under the MIT and GPL licenses) - */ - - -/** - * Create a cookie with the given name and value, - * and other optional parameters. - * - * @example - * setCookie('foo', 'bar'); // will be deleted when browser exits - * setCookie('foo', 'bar', { expires: new Date(Date.parse('Jan 1, 2012')) }); - * setCookie('foo', 'bar', { expires: 7 }); // 7 days = 1 week - * setCookie('foo', 'bar', { expires: 14, path: '/' }); - * - * @param {String} sName: Unique name of a cookie (letters, numbers, underscores). - * @param {String} sValue: The string value stored in a cookie. - * @param {Object} [options] An object literal containing key/value pairs - * to provide optional cookie attributes. - * @param {String|Number|Date} [options.expires] Either literal string to be used as cookie expires, - * or an integer specifying the expiration date from now on in days, - * or a Date object to be used as cookie expiration date. - * If a negative value is specified or a date in the past), - * the cookie will be deleted. - * If set to null or omitted, the cookie will be a session cookie - * and will not be retained when the browser exits. - * @param {String} [options.path] Restrict access of a cookie to particular directory - * (default: path of page that created the cookie). - * @param {String} [options.domain] Override what web sites are allowed to access cookie - * (default: domain of page that created the cookie). - * @param {Boolean} [options.secure] If true, the secure attribute of the cookie will be set - * and the cookie would be accessible only from secure sites - * (cookie transmission will require secure protocol like HTTPS). - */ -function setCookie(sName, sValue, options) { - options = options || {}; - if (sValue === null) { - sValue = ''; - option.expires = 'delete'; - } - - var sCookie = sName + '=' + encodeURIComponent(sValue); - - if (options.expires) { - var oExpires = options.expires, sDate; - if (oExpires === 'delete') { - sDate = 'Thu, 01 Jan 1970 00:00:00 GMT'; - } else if (typeof oExpires === 'string') { - sDate = oExpires; - } else { - var oDate; - if (typeof oExpires === 'number') { - oDate = new Date(); - oDate.setTime(oDate.getTime() + (oExpires * 24 * 60 * 60 * 1000)); // days to ms - } else { - oDate = oExpires; - } - sDate = oDate.toGMTString(); - } - sCookie += '; expires=' + sDate; - } - - if (options.path) { - sCookie += '; path=' + (options.path); - } - if (options.domain) { - sCookie += '; domain=' + (options.domain); - } - if (options.secure) { - sCookie += '; secure'; - } - document.cookie = sCookie; -} - -/** - * Get the value of a cookie with the given name. - * - * @param {String} sName: Unique name of a cookie (letters, numbers, underscores) - * @returns {String|null} The string value stored in a cookie - */ -function getCookie(sName) { - var sRE = '(?:; )?' + sName + '=([^;]*);?'; - var oRE = new RegExp(sRE); - if (oRE.test(document.cookie)) { - return decodeURIComponent(RegExp['$1']); - } else { - return null; - } -} - -/** - * Delete cookie with given name - * - * @param {String} sName: Unique name of a cookie (letters, numbers, underscores) - * @param {Object} [options] An object literal containing key/value pairs - * to provide optional cookie attributes. - * @param {String} [options.path] Must be the same as when setting a cookie - * @param {String} [options.domain] Must be the same as when setting a cookie - */ -function deleteCookie(sName, options) { - options = options || {}; - options.expires = 'delete'; - - setCookie(sName, '', options); -} - -/* end of cookies.js */ -// Copyright (C) 2007, Fredrik Kuivinen -// 2007, Petr Baudis -// 2008-2011, Jakub Narebski - -/** - * @fileOverview Detect if JavaScript is enabled, and pass it to server-side - * @license GPLv2 or later - */ - - -/* ============================================================ */ -/* Manipulating links */ - -/** - * used to check if link has 'js' query parameter already (at end), - * and other reasons to not add 'js=1' param at the end of link - * @constant - */ -var jsExceptionsRe = /[;?]js=[01](#.*)?$/; - -/** - * Add '?js=1' or ';js=1' to the end of every link in the document - * that doesn't have 'js' query parameter set already. - * - * Links with 'js=1' lead to JavaScript version of given action, if it - * exists (currently there is only 'blame_incremental' for 'blame') - * - * To be used as `window.onload` handler - * - * @globals jsExceptionsRe - */ -function fixLinks() { - var allLinks = document.getElementsByTagName("a") || document.links; - for (var i = 0, len = allLinks.length; i < len; i++) { - var link = allLinks[i]; - if (!jsExceptionsRe.test(link)) { - link.href = link.href.replace(/(#|$)/, - (link.href.indexOf('?') === -1 ? '?' : ';') + 'js=1$1'); - } - } -} - -/* end of javascript-detection.js */ -// Copyright (C) 2011, John 'Warthog9' Hawley -// 2011, Jakub Narebski - -/** - * @fileOverview Manipulate dates in gitweb output, adjusting timezone - * @license GPLv2 or later - */ - -/** - * Get common timezone, add UI for changing timezones, and adjust - * dates to use requested common timezone. - * - * This function is called during onload event (added to window.onload). - * - * @param {String} tzDefault: default timezone, if there is no cookie - * @param {Object} tzCookieInfo: object literal with info about cookie to store timezone - * @param {String} tzCookieInfo.name: name of cookie to store timezone - * @param {String} tzClassName: denotes elements with date to be adjusted - */ -function onloadTZSetup(tzDefault, tzCookieInfo, tzClassName) { - var tzCookieTZ = getCookie(tzCookieInfo.name, tzCookieInfo); - var tz = tzDefault; - - if (tzCookieTZ) { - // set timezone to value saved in a cookie - tz = tzCookieTZ; - // refresh cookie, so its expiration counts from last use of gitweb - setCookie(tzCookieInfo.name, tzCookieTZ, tzCookieInfo); - } - - // add UI for changing timezone - addChangeTZ(tz, tzCookieInfo, tzClassName); - - // server-side of gitweb produces datetime in UTC, - // so if tz is 'utc' there is no need for changes - var nochange = tz === 'utc'; - - // adjust dates to use specified common timezone - fixDatetimeTZ(tz, tzClassName, nochange); -} - - -/* ...................................................................... */ -/* Changing dates to use requested timezone */ - -/** - * Replace RFC-2822 dates contained in SPAN elements with tzClassName - * CSS class with equivalent dates in given timezone. - * - * @param {String} tz: numeric timezone in '(-|+)HHMM' format, or 'utc', or 'local' - * @param {String} tzClassName: specifies elements to be changed - * @param {Boolean} nochange: markup for timezone change, but don't change it - */ -function fixDatetimeTZ(tz, tzClassName, nochange) { - // sanity check, method should be ensured by common-lib.js - if (!document.getElementsByClassName) { - return; - } - - // translate to timezone in '(-|+)HHMM' format - tz = normalizeTimezoneInfo(tz); - - // NOTE: result of getElementsByClassName should probably be cached - var classesFound = document.getElementsByClassName(tzClassName, "span"); - for (var i = 0, len = classesFound.length; i < len; i++) { - var curElement = classesFound[i]; - - curElement.title = 'Click to change timezone'; - if (!nochange) { - // we use *.firstChild.data (W3C DOM) instead of *.innerHTML - // as the latter doesn't always work everywhere in every browser - var epoch = parseRFC2822Date(curElement.firstChild.data); - var adjusted = formatDateRFC2882(epoch, tz); - - curElement.firstChild.data = adjusted; - } - } -} - - -/* ...................................................................... */ -/* Adding triggers, generating timezone menu, displaying and hiding */ - -/** - * Adds triggers for UI to change common timezone used for dates in - * gitweb output: it marks up and/or creates item to click to invoke - * timezone change UI, creates timezone UI fragment to be attached, - * and installs appropriate onclick trigger (via event delegation). - * - * @param {String} tzSelected: pre-selected timezone, - * 'utc' or 'local' or '(-|+)HHMM' - * @param {Object} tzCookieInfo: object literal with info about cookie to store timezone - * @param {String} tzClassName: specifies elements to install trigger - */ -function addChangeTZ(tzSelected, tzCookieInfo, tzClassName) { - // make link to timezone UI discoverable - addCssRule('.'+tzClassName + ':hover', - 'text-decoration: underline; cursor: help;'); - - // create form for selecting timezone (to be saved in a cookie) - var tzSelectFragment = document.createDocumentFragment(); - tzSelectFragment = createChangeTZForm(tzSelectFragment, - tzSelected, tzCookieInfo, tzClassName); - - // event delegation handler for timezone selection UI (clicking on entry) - // see http://www.nczonline.net/blog/2009/06/30/event-delegation-in-javascript/ - // assumes that there is no existing document.onclick handler - document.onclick = function onclickHandler(event) { - //IE doesn't pass in the event object - event = event || window.event; - - //IE uses srcElement as the target - var target = event.target || event.srcElement; - - switch (target.className) { - case tzClassName: - // don't display timezone menu if it is already displayed - if (tzSelectFragment.childNodes.length > 0) { - displayChangeTZForm(target, tzSelectFragment); - } - break; - } // end switch - }; -} - -/** - * Create DocumentFragment with UI for changing common timezone in - * which dates are shown in. - * - * @param {DocumentFragment} documentFragment: where attach UI - * @param {String} tzSelected: default (pre-selected) timezone - * @param {Object} tzCookieInfo: object literal with info about cookie to store timezone - * @returns {DocumentFragment} - */ -function createChangeTZForm(documentFragment, tzSelected, tzCookieInfo, tzClassName) { - var div = document.createElement("div"); - div.className = 'popup'; - - /* '
    X
    ' */ - var closeButton = document.createElement('div'); - closeButton.className = 'close-button'; - closeButton.title = '(click on this box to close)'; - closeButton.appendChild(document.createTextNode('X')); - closeButton.onclick = closeTZFormHandler(documentFragment, tzClassName); - div.appendChild(closeButton); - - /* 'Select timezone:
    ' */ - div.appendChild(document.createTextNode('Select timezone: ')); - var br = document.createElement('br'); - br.clear = 'all'; - div.appendChild(br); - - /* '' */ - var select = document.createElement("select"); - select.name = "tzoffset"; - //select.style.clear = 'all'; - select.appendChild(generateTZOptions(tzSelected)); - select.onchange = selectTZHandler(documentFragment, tzCookieInfo, tzClassName); - div.appendChild(select); - - documentFragment.appendChild(div); - - return documentFragment; -} - - -/** - * Hide (remove from DOM) timezone change UI, ensuring that it is not - * garbage collected and that it can be re-enabled later. - * - * @param {DocumentFragment} documentFragment: contains detached UI - * @param {HTMLSelectElement} target: select element inside of UI - * @param {String} tzClassName: specifies element where UI was installed - * @returns {DocumentFragment} documentFragment - */ -function removeChangeTZForm(documentFragment, target, tzClassName) { - // find containing element, where we appended timezone selection UI - // `target' is somewhere inside timezone menu - var container = target.parentNode, popup = target; - while (container && - container.className !== tzClassName) { - popup = container; - container = container.parentNode; - } - // safety check if we found correct container, - // and if it isn't deleted already - if (!container || !popup || - container.className !== tzClassName || - popup.className !== 'popup') { - return documentFragment; - } - - // timezone selection UI was appended as last child - // see also displayChangeTZForm function - var removed = popup.parentNode.removeChild(popup); - if (documentFragment.firstChild !== removed) { // the only child - // re-append it so it would be available for next time - documentFragment.appendChild(removed); - } - // all of inline style was added by this script - // it is not really needed to remove it, but it is a good practice - container.removeAttribute('style'); - - return documentFragment; -} - - -/** - * Display UI for changing common timezone for dates in gitweb output. - * To be used from 'onclick' event handler. - * - * @param {HTMLElement} target: where to install/display UI - * @param {DocumentFragment} tzSelectFragment: timezone selection UI - */ -function displayChangeTZForm(target, tzSelectFragment) { - // for absolute positioning to be related to target element - target.style.position = 'relative'; - target.style.display = 'inline-block'; - - // show/display UI for changing timezone - target.appendChild(tzSelectFragment); -} - - -/* ...................................................................... */ -/* List of timezones for timezone selection menu */ - -/** - * Generate list of timezones for creating timezone select UI - * - * @returns {Object[]} list of e.g. { value: '+0100', descr: 'GMT+01:00' } - */ -function generateTZList() { - var timezones = [ - { value: "utc", descr: "UTC/GMT"}, - { value: "local", descr: "Local (per browser)"} - ]; - - // generate all full hour timezones (no fractional timezones) - for (var x = -12, idx = timezones.length; x <= +14; x++, idx++) { - var hours = (x >= 0 ? '+' : '-') + padLeft(x >=0 ? x : -x, 2); - timezones[idx] = { value: hours + '00', descr: 'UTC' + hours + ':00'}; - if (x === 0) { - timezones[idx].descr = 'UTC\u00B100:00'; // 'UTC±00:00' - } - } - - return timezones; -} - -/** - * Generate elements for timezone select UI - * - * @param {String} tzSelected: default timezone - * @returns {DocumentFragment} list of options elements to appendChild - */ -function generateTZOptions(tzSelected) { - var elems = document.createDocumentFragment(); - var timezones = generateTZList(); - - for (var i = 0, len = timezones.length; i < len; i++) { - var tzone = timezones[i]; - var option = document.createElement("option"); - if (tzone.value === tzSelected) { - option.defaultSelected = true; - } - option.value = tzone.value; - option.appendChild(document.createTextNode(tzone.descr)); - - elems.appendChild(option); - } - - return elems; -} - - -/* ...................................................................... */ -/* Event handlers and/or their generators */ - -/** - * Create event handler that select timezone and closes timezone select UI. - * To be used as $('select[name="tzselect"]').onchange handler. - * - * @param {DocumentFragment} tzSelectFragment: timezone selection UI - * @param {Object} tzCookieInfo: object literal with info about cookie to store timezone - * @param {String} tzCookieInfo.name: name of cookie to save result of selection - * @param {String} tzClassName: specifies element where UI was installed - * @returns {Function} event handler - */ -function selectTZHandler(tzSelectFragment, tzCookieInfo, tzClassName) { - //return function selectTZ(event) { - return function (event) { - event = event || window.event; - var target = event.target || event.srcElement; - - var selected = target.options.item(target.selectedIndex); - removeChangeTZForm(tzSelectFragment, target, tzClassName); - - if (selected) { - selected.defaultSelected = true; - setCookie(tzCookieInfo.name, selected.value, tzCookieInfo); - fixDatetimeTZ(selected.value, tzClassName); - } - }; -} - -/** - * Create event handler that closes timezone select UI. - * To be used e.g. as $('.closebutton').onclick handler. - * - * @param {DocumentFragment} tzSelectFragment: timezone selection UI - * @param {String} tzClassName: specifies element where UI was installed - * @returns {Function} event handler - */ -function closeTZFormHandler(tzSelectFragment, tzClassName) { - //return function closeTZForm(event) { - return function (event) { - event = event || window.event; - var target = event.target || event.srcElement; - - removeChangeTZForm(tzSelectFragment, target, tzClassName); - }; -} - -/* end of adjust-timezone.js */ -// Copyright (C) 2007, Fredrik Kuivinen -// 2007, Petr Baudis -// 2008-2011, Jakub Narebski - -/** - * @fileOverview JavaScript side of Ajax-y 'blame_incremental' view in gitweb - * @license GPLv2 or later - */ - -/* ============================================================ */ -/* - * This code uses DOM methods instead of (nonstandard) innerHTML - * to modify page. - * - * innerHTML is non-standard IE extension, though supported by most - * browsers; however Firefox up to version 1.5 didn't implement it in - * a strict mode (application/xml+xhtml mimetype). - * - * Also my simple benchmarks show that using elem.firstChild.data = - * 'content' is slightly faster than elem.innerHTML = 'content'. It - * is however more fragile (text element fragment must exists), and - * less feature-rich (we cannot add HTML). - * - * Note that DOM 2 HTML is preferred over generic DOM 2 Core; the - * equivalent using DOM 2 Core is usually shown in comments. - */ - - -/* ............................................................ */ -/* utility/helper functions (and variables) */ - -var projectUrl; // partial query + separator ('?' or ';') - -// 'commits' is an associative map. It maps SHA1s to Commit objects. -var commits = {}; - -/** - * constructor for Commit objects, used in 'blame' - * @class Represents a blamed commit - * @param {String} sha1: SHA-1 identifier of a commit - */ -function Commit(sha1) { - if (this instanceof Commit) { - this.sha1 = sha1; - this.nprevious = 0; /* number of 'previous', effective parents */ - } else { - return new Commit(sha1); - } -} - -/* ............................................................ */ -/* progress info, timing, error reporting */ - -var blamedLines = 0; -var totalLines = '???'; -var div_progress_bar; -var div_progress_info; - -/** - * Detects how many lines does a blamed file have, - * This information is used in progress info - * - * @returns {Number|String} Number of lines in file, or string '...' - */ -function countLines() { - var table = - document.getElementById('blame_table') || - document.getElementsByTagName('table')[0]; - - if (table) { - return table.getElementsByTagName('tr').length - 1; // for header - } else { - return '...'; - } -} - -/** - * update progress info and length (width) of progress bar - * - * @globals div_progress_info, div_progress_bar, blamedLines, totalLines - */ -function updateProgressInfo() { - if (!div_progress_info) { - div_progress_info = document.getElementById('progress_info'); - } - if (!div_progress_bar) { - div_progress_bar = document.getElementById('progress_bar'); - } - if (!div_progress_info && !div_progress_bar) { - return; - } - - var percentage = Math.floor(100.0*blamedLines/totalLines); - - if (div_progress_info) { - div_progress_info.firstChild.data = blamedLines + ' / ' + totalLines + - ' (' + padLeftStr(percentage, 3, '\u00A0') + '%)'; - } - - if (div_progress_bar) { - //div_progress_bar.setAttribute('style', 'width: '+percentage+'%;'); - div_progress_bar.style.width = percentage + '%'; - } -} - - -var t_interval_server = ''; -var cmds_server = ''; -var t0 = new Date(); - -/** - * write how much it took to generate data, and to run script - * - * @globals t0, t_interval_server, cmds_server - */ -function writeTimeInterval() { - var info_time = document.getElementById('generating_time'); - if (!info_time || !t_interval_server) { - return; - } - var t1 = new Date(); - info_time.firstChild.data += ' + (' + - t_interval_server + ' sec server blame_data / ' + - (t1.getTime() - t0.getTime())/1000 + ' sec client JavaScript)'; - - var info_cmds = document.getElementById('generating_cmd'); - if (!info_time || !cmds_server) { - return; - } - info_cmds.firstChild.data += ' + ' + cmds_server; -} - -/** - * show an error message alert to user within page (in progress info area) - * @param {String} str: plain text error message (no HTML) - * - * @globals div_progress_info - */ -function errorInfo(str) { - if (!div_progress_info) { - div_progress_info = document.getElementById('progress_info'); - } - if (div_progress_info) { - div_progress_info.className = 'error'; - div_progress_info.firstChild.data = str; - } -} - -/* ............................................................ */ -/* coloring rows during blame_data (git blame --incremental) run */ - -/** - * used to extract N from 'colorN', where N is a number, - * @constant - */ -var colorRe = /\bcolor([0-9]*)\b/; - -/** - * return N if , otherwise return null - * (some browsers require CSS class names to begin with letter) - * - * @param {HTMLElement} tr: table row element to check - * @param {String} tr.className: 'class' attribute of tr element - * @returns {Number|null} N if tr.className == 'colorN', otherwise null - * - * @globals colorRe - */ -function getColorNo(tr) { - if (!tr) { - return null; - } - var className = tr.className; - if (className) { - var match = colorRe.exec(className); - if (match) { - return parseInt(match[1], 10); - } - } - return null; -} - -var colorsFreq = [0, 0, 0]; -/** - * return one of given possible colors (currently least used one) - * example: chooseColorNoFrom(2, 3) returns 2 or 3 - * - * @param {Number[]} arguments: one or more numbers - * assumes that 1 <= arguments[i] <= colorsFreq.length - * @returns {Number} Least used color number from arguments - * @globals colorsFreq - */ -function chooseColorNoFrom() { - // choose the color which is least used - var colorNo = arguments[0]; - for (var i = 1; i < arguments.length; i++) { - if (colorsFreq[arguments[i]-1] < colorsFreq[colorNo-1]) { - colorNo = arguments[i]; - } - } - colorsFreq[colorNo-1]++; - return colorNo; -} - -/** - * given two neighbor elements, find color which would be different - * from color of both of neighbors; used to 3-color blame table - * - * @param {HTMLElement} tr_prev - * @param {HTMLElement} tr_next - * @returns {Number} color number N such that - * colorN != tr_prev.className && colorN != tr_next.className - */ -function findColorNo(tr_prev, tr_next) { - var color_prev = getColorNo(tr_prev); - var color_next = getColorNo(tr_next); - - - // neither of neighbors has color set - // THEN we can use any of 3 possible colors - if (!color_prev && !color_next) { - return chooseColorNoFrom(1,2,3); - } - - // either both neighbors have the same color, - // or only one of neighbors have color set - // THEN we can use any color except given - var color; - if (color_prev === color_next) { - color = color_prev; // = color_next; - } else if (!color_prev) { - color = color_next; - } else if (!color_next) { - color = color_prev; - } - if (color) { - return chooseColorNoFrom((color % 3) + 1, ((color+1) % 3) + 1); - } - - // neighbors have different colors - // THEN there is only one color left - return (3 - ((color_prev + color_next) % 3)); -} - -/* ............................................................ */ -/* coloring rows like 'blame' after 'blame_data' finishes */ - -/** - * returns true if given row element (tr) is first in commit group - * to be used only after 'blame_data' finishes (after processing) - * - * @param {HTMLElement} tr: table row - * @returns {Boolean} true if TR is first in commit group - */ -function isStartOfGroup(tr) { - return tr.firstChild.className === 'sha1'; -} - -/** - * change colors to use zebra coloring (2 colors) instead of 3 colors - * concatenate neighbor commit groups belonging to the same commit - * - * @globals colorRe - */ -function fixColorsAndGroups() { - var colorClasses = ['light', 'dark']; - var linenum = 1; - var tr, prev_group; - var colorClass = 0; - var table = - document.getElementById('blame_table') || - document.getElementsByTagName('table')[0]; - - while ((tr = document.getElementById('l'+linenum))) { - // index origin is 0, which is table header; start from 1 - //while ((tr = table.rows[linenum])) { // <- it is slower - if (isStartOfGroup(tr, linenum, document)) { - if (prev_group && - prev_group.firstChild.firstChild.href === - tr.firstChild.firstChild.href) { - // we have to concatenate groups - var prev_rows = prev_group.firstChild.rowSpan || 1; - var curr_rows = tr.firstChild.rowSpan || 1; - prev_group.firstChild.rowSpan = prev_rows + curr_rows; - //tr.removeChild(tr.firstChild); - tr.deleteCell(0); // DOM2 HTML way - } else { - colorClass = (colorClass + 1) % 2; - prev_group = tr; - } - } - var tr_class = tr.className; - tr.className = tr_class.replace(colorRe, colorClasses[colorClass]); - linenum++; - } -} - - -/* ============================================================ */ -/* main part: parsing response */ - -/** - * Function called for each blame entry, as soon as it finishes. - * It updates page via DOM manipulation, adding sha1 info, etc. - * - * @param {Commit} commit: blamed commit - * @param {Object} group: object representing group of lines, - * which blame the same commit (blame entry) - * - * @globals blamedLines - */ -function handleLine(commit, group) { - /* - This is the structure of the HTML fragment we are working - with: - - - - 123 - # times (my ext3 doesn't). - - */ - - var resline = group.resline; - - // format date and time string only once per commit - if (!commit.info) { - /* e.g. 'Kay Sievers, 2005-08-07 21:49:46 +0200' */ - commit.info = commit.author + ', ' + - formatDateISOLocal(commit.authorTime, commit.authorTimezone); - } - - // color depends on group of lines, not only on blamed commit - var colorNo = findColorNo( - document.getElementById('l'+(resline-1)), - document.getElementById('l'+(resline+group.numlines)) - ); - - // loop over lines in commit group - for (var i = 0; i < group.numlines; i++, resline++) { - var tr = document.getElementById('l'+resline); - if (!tr) { - break; - } - /* - - - 123 - # times (my ext3 doesn't). - - */ - var td_sha1 = tr.firstChild; - var a_sha1 = td_sha1.firstChild; - var a_linenr = td_sha1.nextSibling.firstChild; - - /* */ - var tr_class = ''; - if (colorNo !== null) { - tr_class = 'color'+colorNo; - } - if (commit.boundary) { - tr_class += ' boundary'; - } - if (commit.nprevious === 0) { - tr_class += ' no-previous'; - } else if (commit.nprevious > 1) { - tr_class += ' multiple-previous'; - } - tr.className = tr_class; - - /* ? */ - if (i === 0) { - td_sha1.title = commit.info; - td_sha1.rowSpan = group.numlines; - - a_sha1.href = projectUrl + 'a=commit;h=' + commit.sha1; - if (a_sha1.firstChild) { - a_sha1.firstChild.data = commit.sha1.substr(0, 8); - } else { - a_sha1.appendChild( - document.createTextNode(commit.sha1.substr(0, 8))); - } - if (group.numlines >= 2) { - var fragment = document.createDocumentFragment(); - var br = document.createElement("br"); - var match = commit.author.match(/\b([A-Z])\B/g); - if (match) { - var text = document.createTextNode( - match.join('')); - } - if (br && text) { - var elem = fragment || td_sha1; - elem.appendChild(br); - elem.appendChild(text); - if (fragment) { - td_sha1.appendChild(fragment); - } - } - } - } else { - //tr.removeChild(td_sha1); // DOM2 Core way - tr.deleteCell(0); // DOM2 HTML way - } - - /* 123 */ - var linenr_commit = - ('previous' in commit ? commit.previous : commit.sha1); - var linenr_filename = - ('file_parent' in commit ? commit.file_parent : commit.filename); - a_linenr.href = projectUrl + 'a=blame_incremental' + - ';hb=' + linenr_commit + - ';f=' + encodeURIComponent(linenr_filename) + - '#l' + (group.srcline + i); - - blamedLines++; - - //updateProgressInfo(); - } -} - -// ---------------------------------------------------------------------- - -/**#@+ - * @constant - */ -var sha1Re = /^([0-9a-f]{40}) ([0-9]+) ([0-9]+) ([0-9]+)/; -var infoRe = /^([a-z-]+) ?(.*)/; -var endRe = /^END ?([^ ]*) ?(.*)/; -/**@-*/ - -var curCommit = new Commit(); -var curGroup = {}; - -/** - * Parse output from 'git blame --incremental [...]', received via - * XMLHttpRequest from server (blamedataUrl), and call handleLine - * (which updates page) as soon as blame entry is completed. - * - * @param {String[]} lines: new complete lines from blamedata server - * - * @globals commits, curCommit, curGroup, t_interval_server, cmds_server - * @globals sha1Re, infoRe, endRe - */ -function processBlameLines(lines) { - var match; - - for (var i = 0, len = lines.length; i < len; i++) { - - if ((match = sha1Re.exec(lines[i]))) { - var sha1 = match[1]; - var srcline = parseInt(match[2], 10); - var resline = parseInt(match[3], 10); - var numlines = parseInt(match[4], 10); - - var c = commits[sha1]; - if (!c) { - c = new Commit(sha1); - commits[sha1] = c; - } - curCommit = c; - - curGroup.srcline = srcline; - curGroup.resline = resline; - curGroup.numlines = numlines; - - } else if ((match = infoRe.exec(lines[i]))) { - var info = match[1]; - var data = match[2]; - switch (info) { - case 'filename': - curCommit.filename = unquote(data); - // 'filename' information terminates the entry - handleLine(curCommit, curGroup); - updateProgressInfo(); - break; - case 'author': - curCommit.author = data; - break; - case 'author-time': - curCommit.authorTime = parseInt(data, 10); - break; - case 'author-tz': - curCommit.authorTimezone = data; - break; - case 'previous': - curCommit.nprevious++; - // store only first 'previous' header - if (!'previous' in curCommit) { - var parts = data.split(' ', 2); - curCommit.previous = parts[0]; - curCommit.file_parent = unquote(parts[1]); - } - break; - case 'boundary': - curCommit.boundary = true; - break; - } // end switch - - } else if ((match = endRe.exec(lines[i]))) { - t_interval_server = match[1]; - cmds_server = match[2]; - - } else if (lines[i] !== '') { - // malformed line - - } // end if (match) - - } // end for (lines) -} - -/** - * Process new data and return pointer to end of processed part - * - * @param {String} unprocessed: new data (from nextReadPos) - * @param {Number} nextReadPos: end of last processed data - * @return {Number} end of processed data (new value for nextReadPos) - */ -function processData(unprocessed, nextReadPos) { - var lastLineEnd = unprocessed.lastIndexOf('\n'); - if (lastLineEnd !== -1) { - var lines = unprocessed.substring(0, lastLineEnd).split('\n'); - nextReadPos += lastLineEnd + 1 /* 1 == '\n'.length */; - - processBlameLines(lines); - } // end if - - return nextReadPos; -} - -/** - * Handle XMLHttpRequest errors - * - * @param {XMLHttpRequest} xhr: XMLHttpRequest object - * @param {Number} [xhr.pollTimer] ID of the timeout to clear - * - * @globals commits - */ -function handleError(xhr) { - errorInfo('Server error: ' + - xhr.status + ' - ' + (xhr.statusText || 'Error contacting server')); - - if (typeof xhr.pollTimer === "number") { - clearTimeout(xhr.pollTimer); - delete xhr.pollTimer; - } - commits = {}; // free memory -} - -/** - * Called after XMLHttpRequest finishes (loads) - * - * @param {XMLHttpRequest} xhr: XMLHttpRequest object - * @param {Number} [xhr.pollTimer] ID of the timeout to clear - * - * @globals commits - */ -function responseLoaded(xhr) { - if (typeof xhr.pollTimer === "number") { - clearTimeout(xhr.pollTimer); - delete xhr.pollTimer; - } - - fixColorsAndGroups(); - writeTimeInterval(); - commits = {}; // free memory -} - -/** - * handler for XMLHttpRequest onreadystatechange event - * @see startBlame - * - * @param {XMLHttpRequest} xhr: XMLHttpRequest object - * @param {Number} xhr.prevDataLength: previous value of xhr.responseText.length - * @param {Number} xhr.nextReadPos: start of unread part of xhr.responseText - * @param {Number} [xhr.pollTimer] ID of the timeout (to reset or cancel) - * @param {Boolean} fromTimer: if handler was called from timer - */ -function handleResponse(xhr, fromTimer) { - - /* - * xhr.readyState - * - * Value Constant (W3C) Description - * ------------------------------------------------------------------- - * 0 UNSENT open() has not been called yet. - * 1 OPENED send() has not been called yet. - * 2 HEADERS_RECEIVED send() has been called, and headers - * and status are available. - * 3 LOADING Downloading; responseText holds partial data. - * 4 DONE The operation is complete. - */ - - if (xhr.readyState !== 4 && xhr.readyState !== 3) { - return; - } - - // the server returned error - // try ... catch block is to work around bug in IE8 - try { - if (xhr.readyState === 3 && xhr.status !== 200) { - return; - } - } catch (e) { - return; - } - if (xhr.readyState === 4 && xhr.status !== 200) { - handleError(xhr); - return; - } - - // In konqueror xhr.responseText is sometimes null here... - if (xhr.responseText === null) { - return; - } - - - // extract new whole (complete) lines, and process them - if (xhr.prevDataLength !== xhr.responseText.length) { - xhr.prevDataLength = xhr.responseText.length; - var unprocessed = xhr.responseText.substring(xhr.nextReadPos); - xhr.nextReadPos = processData(unprocessed, xhr.nextReadPos); - } - - // did we finish work? - if (xhr.readyState === 4) { - responseLoaded(xhr); - return; - } - - // if we get from timer, we have to restart it - // otherwise onreadystatechange gives us partial response, timer not needed - if (fromTimer) { - setTimeout(function () { - handleResponse(xhr, true); - }, 1000); - - } else if (typeof xhr.pollTimer === "number") { - clearTimeout(xhr.pollTimer); - delete xhr.pollTimer; - } -} - -// ============================================================ -// ------------------------------------------------------------ - -/** - * Incrementally update line data in blame_incremental view in gitweb. - * - * @param {String} blamedataUrl: URL to server script generating blame data. - * @param {String} bUrl: partial URL to project, used to generate links. - * - * Called from 'blame_incremental' view after loading table with - * file contents, a base for blame view. - * - * @globals t0, projectUrl, div_progress_bar, totalLines -*/ -function startBlame(blamedataUrl, bUrl) { - - var xhr = createRequestObject(); - if (!xhr) { - errorInfo('ERROR: XMLHttpRequest not supported'); - return; - } - - t0 = new Date(); - projectUrl = bUrl + (bUrl.indexOf('?') === -1 ? '?' : ';'); - if ((div_progress_bar = document.getElementById('progress_bar'))) { - //div_progress_bar.setAttribute('style', 'width: 100%;'); - div_progress_bar.style.cssText = 'width: 100%;'; - } - totalLines = countLines(); - updateProgressInfo(); - - /* add extra properties to xhr object to help processing response */ - xhr.prevDataLength = -1; // used to detect if we have new data - xhr.nextReadPos = 0; // where unread part of response starts - - xhr.onreadystatechange = function () { - handleResponse(xhr, false); - }; - - xhr.open('GET', blamedataUrl); - xhr.setRequestHeader('Accept', 'text/plain'); - xhr.send(null); - - // not all browsers call onreadystatechange event on each server flush - // poll response using timer every second to handle this issue - xhr.pollTimer = setTimeout(function () { - handleResponse(xhr, true); - }, 1000); -} - -/* end of blame_incremental.js */ diff --git a/bin/gitweb/static/js/README b/bin/gitweb/static/js/README deleted file mode 100644 index f8460ed..0000000 --- a/bin/gitweb/static/js/README +++ /dev/null @@ -1,20 +0,0 @@ -GIT web interface (gitweb) - JavaScript -======================================= - -This directory holds JavaScript code used by gitweb (GIT web interface). -Scripts from there would be concatenated together in the order specified -by gitweb/Makefile into gitweb/static/gitweb.js, during building of -gitweb/gitweb.cgi (during gitweb building). The resulting file (or its -minification) would then be installed / deployed together with gitweb. - -Scripts in 'lib/' subdirectory compose generic JavaScript library, -providing features required by gitweb but in no way limited to gitweb -only. In the future those scripts could be replaced by some JavaScript -library / framework, like e.g. jQuery, YUI, Prototype, MooTools, Dojo, -ExtJS, Script.aculo.us or SproutCore. - -All scripts that manipulate gitweb output should be put outside 'lib/', -directly in this directory ('gitweb/static/js/'). Those scripts would -have to be rewritten if gitweb moves to using some JavaScript library. - -See also comments in gitweb/Makefile. diff --git a/bin/gitweb/static/js/adjust-timezone.js b/bin/gitweb/static/js/adjust-timezone.js deleted file mode 100644 index 0c67779..0000000 --- a/bin/gitweb/static/js/adjust-timezone.js +++ /dev/null @@ -1,330 +0,0 @@ -// Copyright (C) 2011, John 'Warthog9' Hawley -// 2011, Jakub Narebski - -/** - * @fileOverview Manipulate dates in gitweb output, adjusting timezone - * @license GPLv2 or later - */ - -/** - * Get common timezone, add UI for changing timezones, and adjust - * dates to use requested common timezone. - * - * This function is called during onload event (added to window.onload). - * - * @param {String} tzDefault: default timezone, if there is no cookie - * @param {Object} tzCookieInfo: object literal with info about cookie to store timezone - * @param {String} tzCookieInfo.name: name of cookie to store timezone - * @param {String} tzClassName: denotes elements with date to be adjusted - */ -function onloadTZSetup(tzDefault, tzCookieInfo, tzClassName) { - var tzCookieTZ = getCookie(tzCookieInfo.name, tzCookieInfo); - var tz = tzDefault; - - if (tzCookieTZ) { - // set timezone to value saved in a cookie - tz = tzCookieTZ; - // refresh cookie, so its expiration counts from last use of gitweb - setCookie(tzCookieInfo.name, tzCookieTZ, tzCookieInfo); - } - - // add UI for changing timezone - addChangeTZ(tz, tzCookieInfo, tzClassName); - - // server-side of gitweb produces datetime in UTC, - // so if tz is 'utc' there is no need for changes - var nochange = tz === 'utc'; - - // adjust dates to use specified common timezone - fixDatetimeTZ(tz, tzClassName, nochange); -} - - -/* ...................................................................... */ -/* Changing dates to use requested timezone */ - -/** - * Replace RFC-2822 dates contained in SPAN elements with tzClassName - * CSS class with equivalent dates in given timezone. - * - * @param {String} tz: numeric timezone in '(-|+)HHMM' format, or 'utc', or 'local' - * @param {String} tzClassName: specifies elements to be changed - * @param {Boolean} nochange: markup for timezone change, but don't change it - */ -function fixDatetimeTZ(tz, tzClassName, nochange) { - // sanity check, method should be ensured by common-lib.js - if (!document.getElementsByClassName) { - return; - } - - // translate to timezone in '(-|+)HHMM' format - tz = normalizeTimezoneInfo(tz); - - // NOTE: result of getElementsByClassName should probably be cached - var classesFound = document.getElementsByClassName(tzClassName, "span"); - for (var i = 0, len = classesFound.length; i < len; i++) { - var curElement = classesFound[i]; - - curElement.title = 'Click to change timezone'; - if (!nochange) { - // we use *.firstChild.data (W3C DOM) instead of *.innerHTML - // as the latter doesn't always work everywhere in every browser - var epoch = parseRFC2822Date(curElement.firstChild.data); - var adjusted = formatDateRFC2882(epoch, tz); - - curElement.firstChild.data = adjusted; - } - } -} - - -/* ...................................................................... */ -/* Adding triggers, generating timezone menu, displaying and hiding */ - -/** - * Adds triggers for UI to change common timezone used for dates in - * gitweb output: it marks up and/or creates item to click to invoke - * timezone change UI, creates timezone UI fragment to be attached, - * and installs appropriate onclick trigger (via event delegation). - * - * @param {String} tzSelected: pre-selected timezone, - * 'utc' or 'local' or '(-|+)HHMM' - * @param {Object} tzCookieInfo: object literal with info about cookie to store timezone - * @param {String} tzClassName: specifies elements to install trigger - */ -function addChangeTZ(tzSelected, tzCookieInfo, tzClassName) { - // make link to timezone UI discoverable - addCssRule('.'+tzClassName + ':hover', - 'text-decoration: underline; cursor: help;'); - - // create form for selecting timezone (to be saved in a cookie) - var tzSelectFragment = document.createDocumentFragment(); - tzSelectFragment = createChangeTZForm(tzSelectFragment, - tzSelected, tzCookieInfo, tzClassName); - - // event delegation handler for timezone selection UI (clicking on entry) - // see http://www.nczonline.net/blog/2009/06/30/event-delegation-in-javascript/ - // assumes that there is no existing document.onclick handler - document.onclick = function onclickHandler(event) { - //IE doesn't pass in the event object - event = event || window.event; - - //IE uses srcElement as the target - var target = event.target || event.srcElement; - - switch (target.className) { - case tzClassName: - // don't display timezone menu if it is already displayed - if (tzSelectFragment.childNodes.length > 0) { - displayChangeTZForm(target, tzSelectFragment); - } - break; - } // end switch - }; -} - -/** - * Create DocumentFragment with UI for changing common timezone in - * which dates are shown in. - * - * @param {DocumentFragment} documentFragment: where attach UI - * @param {String} tzSelected: default (pre-selected) timezone - * @param {Object} tzCookieInfo: object literal with info about cookie to store timezone - * @returns {DocumentFragment} - */ -function createChangeTZForm(documentFragment, tzSelected, tzCookieInfo, tzClassName) { - var div = document.createElement("div"); - div.className = 'popup'; - - /* '
    X
    ' */ - var closeButton = document.createElement('div'); - closeButton.className = 'close-button'; - closeButton.title = '(click on this box to close)'; - closeButton.appendChild(document.createTextNode('X')); - closeButton.onclick = closeTZFormHandler(documentFragment, tzClassName); - div.appendChild(closeButton); - - /* 'Select timezone:
    ' */ - div.appendChild(document.createTextNode('Select timezone: ')); - var br = document.createElement('br'); - br.clear = 'all'; - div.appendChild(br); - - /* '' */ - var select = document.createElement("select"); - select.name = "tzoffset"; - //select.style.clear = 'all'; - select.appendChild(generateTZOptions(tzSelected)); - select.onchange = selectTZHandler(documentFragment, tzCookieInfo, tzClassName); - div.appendChild(select); - - documentFragment.appendChild(div); - - return documentFragment; -} - - -/** - * Hide (remove from DOM) timezone change UI, ensuring that it is not - * garbage collected and that it can be re-enabled later. - * - * @param {DocumentFragment} documentFragment: contains detached UI - * @param {HTMLSelectElement} target: select element inside of UI - * @param {String} tzClassName: specifies element where UI was installed - * @returns {DocumentFragment} documentFragment - */ -function removeChangeTZForm(documentFragment, target, tzClassName) { - // find containing element, where we appended timezone selection UI - // `target' is somewhere inside timezone menu - var container = target.parentNode, popup = target; - while (container && - container.className !== tzClassName) { - popup = container; - container = container.parentNode; - } - // safety check if we found correct container, - // and if it isn't deleted already - if (!container || !popup || - container.className !== tzClassName || - popup.className !== 'popup') { - return documentFragment; - } - - // timezone selection UI was appended as last child - // see also displayChangeTZForm function - var removed = popup.parentNode.removeChild(popup); - if (documentFragment.firstChild !== removed) { // the only child - // re-append it so it would be available for next time - documentFragment.appendChild(removed); - } - // all of inline style was added by this script - // it is not really needed to remove it, but it is a good practice - container.removeAttribute('style'); - - return documentFragment; -} - - -/** - * Display UI for changing common timezone for dates in gitweb output. - * To be used from 'onclick' event handler. - * - * @param {HTMLElement} target: where to install/display UI - * @param {DocumentFragment} tzSelectFragment: timezone selection UI - */ -function displayChangeTZForm(target, tzSelectFragment) { - // for absolute positioning to be related to target element - target.style.position = 'relative'; - target.style.display = 'inline-block'; - - // show/display UI for changing timezone - target.appendChild(tzSelectFragment); -} - - -/* ...................................................................... */ -/* List of timezones for timezone selection menu */ - -/** - * Generate list of timezones for creating timezone select UI - * - * @returns {Object[]} list of e.g. { value: '+0100', descr: 'GMT+01:00' } - */ -function generateTZList() { - var timezones = [ - { value: "utc", descr: "UTC/GMT"}, - { value: "local", descr: "Local (per browser)"} - ]; - - // generate all full hour timezones (no fractional timezones) - for (var x = -12, idx = timezones.length; x <= +14; x++, idx++) { - var hours = (x >= 0 ? '+' : '-') + padLeft(x >=0 ? x : -x, 2); - timezones[idx] = { value: hours + '00', descr: 'UTC' + hours + ':00'}; - if (x === 0) { - timezones[idx].descr = 'UTC\u00B100:00'; // 'UTC±00:00' - } - } - - return timezones; -} - -/** - * Generate elements for timezone select UI - * - * @param {String} tzSelected: default timezone - * @returns {DocumentFragment} list of options elements to appendChild - */ -function generateTZOptions(tzSelected) { - var elems = document.createDocumentFragment(); - var timezones = generateTZList(); - - for (var i = 0, len = timezones.length; i < len; i++) { - var tzone = timezones[i]; - var option = document.createElement("option"); - if (tzone.value === tzSelected) { - option.defaultSelected = true; - } - option.value = tzone.value; - option.appendChild(document.createTextNode(tzone.descr)); - - elems.appendChild(option); - } - - return elems; -} - - -/* ...................................................................... */ -/* Event handlers and/or their generators */ - -/** - * Create event handler that select timezone and closes timezone select UI. - * To be used as $('select[name="tzselect"]').onchange handler. - * - * @param {DocumentFragment} tzSelectFragment: timezone selection UI - * @param {Object} tzCookieInfo: object literal with info about cookie to store timezone - * @param {String} tzCookieInfo.name: name of cookie to save result of selection - * @param {String} tzClassName: specifies element where UI was installed - * @returns {Function} event handler - */ -function selectTZHandler(tzSelectFragment, tzCookieInfo, tzClassName) { - //return function selectTZ(event) { - return function (event) { - event = event || window.event; - var target = event.target || event.srcElement; - - var selected = target.options.item(target.selectedIndex); - removeChangeTZForm(tzSelectFragment, target, tzClassName); - - if (selected) { - selected.defaultSelected = true; - setCookie(tzCookieInfo.name, selected.value, tzCookieInfo); - fixDatetimeTZ(selected.value, tzClassName); - } - }; -} - -/** - * Create event handler that closes timezone select UI. - * To be used e.g. as $('.closebutton').onclick handler. - * - * @param {DocumentFragment} tzSelectFragment: timezone selection UI - * @param {String} tzClassName: specifies element where UI was installed - * @returns {Function} event handler - */ -function closeTZFormHandler(tzSelectFragment, tzClassName) { - //return function closeTZForm(event) { - return function (event) { - event = event || window.event; - var target = event.target || event.srcElement; - - removeChangeTZForm(tzSelectFragment, target, tzClassName); - }; -} - -/* end of adjust-timezone.js */ diff --git a/bin/gitweb/static/js/blame_incremental.js b/bin/gitweb/static/js/blame_incremental.js deleted file mode 100644 index db6eb50..0000000 --- a/bin/gitweb/static/js/blame_incremental.js +++ /dev/null @@ -1,692 +0,0 @@ -// Copyright (C) 2007, Fredrik Kuivinen -// 2007, Petr Baudis -// 2008-2011, Jakub Narebski - -/** - * @fileOverview JavaScript side of Ajax-y 'blame_incremental' view in gitweb - * @license GPLv2 or later - */ - -/* ============================================================ */ -/* - * This code uses DOM methods instead of (nonstandard) innerHTML - * to modify page. - * - * innerHTML is non-standard IE extension, though supported by most - * browsers; however Firefox up to version 1.5 didn't implement it in - * a strict mode (application/xml+xhtml mimetype). - * - * Also my simple benchmarks show that using elem.firstChild.data = - * 'content' is slightly faster than elem.innerHTML = 'content'. It - * is however more fragile (text element fragment must exists), and - * less feature-rich (we cannot add HTML). - * - * Note that DOM 2 HTML is preferred over generic DOM 2 Core; the - * equivalent using DOM 2 Core is usually shown in comments. - */ - - -/* ............................................................ */ -/* utility/helper functions (and variables) */ - -var projectUrl; // partial query + separator ('?' or ';') - -// 'commits' is an associative map. It maps SHA1s to Commit objects. -var commits = {}; - -/** - * constructor for Commit objects, used in 'blame' - * @class Represents a blamed commit - * @param {String} sha1: SHA-1 identifier of a commit - */ -function Commit(sha1) { - if (this instanceof Commit) { - this.sha1 = sha1; - this.nprevious = 0; /* number of 'previous', effective parents */ - } else { - return new Commit(sha1); - } -} - -/* ............................................................ */ -/* progress info, timing, error reporting */ - -var blamedLines = 0; -var totalLines = '???'; -var div_progress_bar; -var div_progress_info; - -/** - * Detects how many lines does a blamed file have, - * This information is used in progress info - * - * @returns {Number|String} Number of lines in file, or string '...' - */ -function countLines() { - var table = - document.getElementById('blame_table') || - document.getElementsByTagName('table')[0]; - - if (table) { - return table.getElementsByTagName('tr').length - 1; // for header - } else { - return '...'; - } -} - -/** - * update progress info and length (width) of progress bar - * - * @globals div_progress_info, div_progress_bar, blamedLines, totalLines - */ -function updateProgressInfo() { - if (!div_progress_info) { - div_progress_info = document.getElementById('progress_info'); - } - if (!div_progress_bar) { - div_progress_bar = document.getElementById('progress_bar'); - } - if (!div_progress_info && !div_progress_bar) { - return; - } - - var percentage = Math.floor(100.0*blamedLines/totalLines); - - if (div_progress_info) { - div_progress_info.firstChild.data = blamedLines + ' / ' + totalLines + - ' (' + padLeftStr(percentage, 3, '\u00A0') + '%)'; - } - - if (div_progress_bar) { - //div_progress_bar.setAttribute('style', 'width: '+percentage+'%;'); - div_progress_bar.style.width = percentage + '%'; - } -} - - -var t_interval_server = ''; -var cmds_server = ''; -var t0 = new Date(); - -/** - * write how much it took to generate data, and to run script - * - * @globals t0, t_interval_server, cmds_server - */ -function writeTimeInterval() { - var info_time = document.getElementById('generating_time'); - if (!info_time || !t_interval_server) { - return; - } - var t1 = new Date(); - info_time.firstChild.data += ' + (' + - t_interval_server + ' sec server blame_data / ' + - (t1.getTime() - t0.getTime())/1000 + ' sec client JavaScript)'; - - var info_cmds = document.getElementById('generating_cmd'); - if (!info_time || !cmds_server) { - return; - } - info_cmds.firstChild.data += ' + ' + cmds_server; -} - -/** - * show an error message alert to user within page (in progress info area) - * @param {String} str: plain text error message (no HTML) - * - * @globals div_progress_info - */ -function errorInfo(str) { - if (!div_progress_info) { - div_progress_info = document.getElementById('progress_info'); - } - if (div_progress_info) { - div_progress_info.className = 'error'; - div_progress_info.firstChild.data = str; - } -} - -/* ............................................................ */ -/* coloring rows during blame_data (git blame --incremental) run */ - -/** - * used to extract N from 'colorN', where N is a number, - * @constant - */ -var colorRe = /\bcolor([0-9]*)\b/; - -/** - * return N if , otherwise return null - * (some browsers require CSS class names to begin with letter) - * - * @param {HTMLElement} tr: table row element to check - * @param {String} tr.className: 'class' attribute of tr element - * @returns {Number|null} N if tr.className == 'colorN', otherwise null - * - * @globals colorRe - */ -function getColorNo(tr) { - if (!tr) { - return null; - } - var className = tr.className; - if (className) { - var match = colorRe.exec(className); - if (match) { - return parseInt(match[1], 10); - } - } - return null; -} - -var colorsFreq = [0, 0, 0]; -/** - * return one of given possible colors (currently least used one) - * example: chooseColorNoFrom(2, 3) returns 2 or 3 - * - * @param {Number[]} arguments: one or more numbers - * assumes that 1 <= arguments[i] <= colorsFreq.length - * @returns {Number} Least used color number from arguments - * @globals colorsFreq - */ -function chooseColorNoFrom() { - // choose the color which is least used - var colorNo = arguments[0]; - for (var i = 1; i < arguments.length; i++) { - if (colorsFreq[arguments[i]-1] < colorsFreq[colorNo-1]) { - colorNo = arguments[i]; - } - } - colorsFreq[colorNo-1]++; - return colorNo; -} - -/** - * given two neighbor elements, find color which would be different - * from color of both of neighbors; used to 3-color blame table - * - * @param {HTMLElement} tr_prev - * @param {HTMLElement} tr_next - * @returns {Number} color number N such that - * colorN != tr_prev.className && colorN != tr_next.className - */ -function findColorNo(tr_prev, tr_next) { - var color_prev = getColorNo(tr_prev); - var color_next = getColorNo(tr_next); - - - // neither of neighbors has color set - // THEN we can use any of 3 possible colors - if (!color_prev && !color_next) { - return chooseColorNoFrom(1,2,3); - } - - // either both neighbors have the same color, - // or only one of neighbors have color set - // THEN we can use any color except given - var color; - if (color_prev === color_next) { - color = color_prev; // = color_next; - } else if (!color_prev) { - color = color_next; - } else if (!color_next) { - color = color_prev; - } - if (color) { - return chooseColorNoFrom((color % 3) + 1, ((color+1) % 3) + 1); - } - - // neighbors have different colors - // THEN there is only one color left - return (3 - ((color_prev + color_next) % 3)); -} - -/* ............................................................ */ -/* coloring rows like 'blame' after 'blame_data' finishes */ - -/** - * returns true if given row element (tr) is first in commit group - * to be used only after 'blame_data' finishes (after processing) - * - * @param {HTMLElement} tr: table row - * @returns {Boolean} true if TR is first in commit group - */ -function isStartOfGroup(tr) { - return tr.firstChild.className === 'sha1'; -} - -/** - * change colors to use zebra coloring (2 colors) instead of 3 colors - * concatenate neighbor commit groups belonging to the same commit - * - * @globals colorRe - */ -function fixColorsAndGroups() { - var colorClasses = ['light', 'dark']; - var linenum = 1; - var tr, prev_group; - var colorClass = 0; - var table = - document.getElementById('blame_table') || - document.getElementsByTagName('table')[0]; - - while ((tr = document.getElementById('l'+linenum))) { - // index origin is 0, which is table header; start from 1 - //while ((tr = table.rows[linenum])) { // <- it is slower - if (isStartOfGroup(tr, linenum, document)) { - if (prev_group && - prev_group.firstChild.firstChild.href === - tr.firstChild.firstChild.href) { - // we have to concatenate groups - var prev_rows = prev_group.firstChild.rowSpan || 1; - var curr_rows = tr.firstChild.rowSpan || 1; - prev_group.firstChild.rowSpan = prev_rows + curr_rows; - //tr.removeChild(tr.firstChild); - tr.deleteCell(0); // DOM2 HTML way - } else { - colorClass = (colorClass + 1) % 2; - prev_group = tr; - } - } - var tr_class = tr.className; - tr.className = tr_class.replace(colorRe, colorClasses[colorClass]); - linenum++; - } -} - - -/* ============================================================ */ -/* main part: parsing response */ - -/** - * Function called for each blame entry, as soon as it finishes. - * It updates page via DOM manipulation, adding sha1 info, etc. - * - * @param {Commit} commit: blamed commit - * @param {Object} group: object representing group of lines, - * which blame the same commit (blame entry) - * - * @globals blamedLines - */ -function handleLine(commit, group) { - /* - This is the structure of the HTML fragment we are working - with: - - - - 123 - # times (my ext3 doesn't). - - */ - - var resline = group.resline; - - // format date and time string only once per commit - if (!commit.info) { - /* e.g. 'Kay Sievers, 2005-08-07 21:49:46 +0200' */ - commit.info = commit.author + ', ' + - formatDateISOLocal(commit.authorTime, commit.authorTimezone); - } - - // color depends on group of lines, not only on blamed commit - var colorNo = findColorNo( - document.getElementById('l'+(resline-1)), - document.getElementById('l'+(resline+group.numlines)) - ); - - // loop over lines in commit group - for (var i = 0; i < group.numlines; i++, resline++) { - var tr = document.getElementById('l'+resline); - if (!tr) { - break; - } - /* - - - 123 - # times (my ext3 doesn't). - - */ - var td_sha1 = tr.firstChild; - var a_sha1 = td_sha1.firstChild; - var a_linenr = td_sha1.nextSibling.firstChild; - - /* */ - var tr_class = ''; - if (colorNo !== null) { - tr_class = 'color'+colorNo; - } - if (commit.boundary) { - tr_class += ' boundary'; - } - if (commit.nprevious === 0) { - tr_class += ' no-previous'; - } else if (commit.nprevious > 1) { - tr_class += ' multiple-previous'; - } - tr.className = tr_class; - - /* ? */ - if (i === 0) { - td_sha1.title = commit.info; - td_sha1.rowSpan = group.numlines; - - a_sha1.href = projectUrl + 'a=commit;h=' + commit.sha1; - if (a_sha1.firstChild) { - a_sha1.firstChild.data = commit.sha1.substr(0, 8); - } else { - a_sha1.appendChild( - document.createTextNode(commit.sha1.substr(0, 8))); - } - if (group.numlines >= 2) { - var fragment = document.createDocumentFragment(); - var br = document.createElement("br"); - var match = commit.author.match(/\b([A-Z])\B/g); - if (match) { - var text = document.createTextNode( - match.join('')); - } - if (br && text) { - var elem = fragment || td_sha1; - elem.appendChild(br); - elem.appendChild(text); - if (fragment) { - td_sha1.appendChild(fragment); - } - } - } - } else { - //tr.removeChild(td_sha1); // DOM2 Core way - tr.deleteCell(0); // DOM2 HTML way - } - - /* 123 */ - var linenr_commit = - ('previous' in commit ? commit.previous : commit.sha1); - var linenr_filename = - ('file_parent' in commit ? commit.file_parent : commit.filename); - a_linenr.href = projectUrl + 'a=blame_incremental' + - ';hb=' + linenr_commit + - ';f=' + encodeURIComponent(linenr_filename) + - '#l' + (group.srcline + i); - - blamedLines++; - - //updateProgressInfo(); - } -} - -// ---------------------------------------------------------------------- - -/**#@+ - * @constant - */ -var sha1Re = /^([0-9a-f]{40}) ([0-9]+) ([0-9]+) ([0-9]+)/; -var infoRe = /^([a-z-]+) ?(.*)/; -var endRe = /^END ?([^ ]*) ?(.*)/; -/**@-*/ - -var curCommit = new Commit(); -var curGroup = {}; - -/** - * Parse output from 'git blame --incremental [...]', received via - * XMLHttpRequest from server (blamedataUrl), and call handleLine - * (which updates page) as soon as blame entry is completed. - * - * @param {String[]} lines: new complete lines from blamedata server - * - * @globals commits, curCommit, curGroup, t_interval_server, cmds_server - * @globals sha1Re, infoRe, endRe - */ -function processBlameLines(lines) { - var match; - - for (var i = 0, len = lines.length; i < len; i++) { - - if ((match = sha1Re.exec(lines[i]))) { - var sha1 = match[1]; - var srcline = parseInt(match[2], 10); - var resline = parseInt(match[3], 10); - var numlines = parseInt(match[4], 10); - - var c = commits[sha1]; - if (!c) { - c = new Commit(sha1); - commits[sha1] = c; - } - curCommit = c; - - curGroup.srcline = srcline; - curGroup.resline = resline; - curGroup.numlines = numlines; - - } else if ((match = infoRe.exec(lines[i]))) { - var info = match[1]; - var data = match[2]; - switch (info) { - case 'filename': - curCommit.filename = unquote(data); - // 'filename' information terminates the entry - handleLine(curCommit, curGroup); - updateProgressInfo(); - break; - case 'author': - curCommit.author = data; - break; - case 'author-time': - curCommit.authorTime = parseInt(data, 10); - break; - case 'author-tz': - curCommit.authorTimezone = data; - break; - case 'previous': - curCommit.nprevious++; - // store only first 'previous' header - if (!'previous' in curCommit) { - var parts = data.split(' ', 2); - curCommit.previous = parts[0]; - curCommit.file_parent = unquote(parts[1]); - } - break; - case 'boundary': - curCommit.boundary = true; - break; - } // end switch - - } else if ((match = endRe.exec(lines[i]))) { - t_interval_server = match[1]; - cmds_server = match[2]; - - } else if (lines[i] !== '') { - // malformed line - - } // end if (match) - - } // end for (lines) -} - -/** - * Process new data and return pointer to end of processed part - * - * @param {String} unprocessed: new data (from nextReadPos) - * @param {Number} nextReadPos: end of last processed data - * @return {Number} end of processed data (new value for nextReadPos) - */ -function processData(unprocessed, nextReadPos) { - var lastLineEnd = unprocessed.lastIndexOf('\n'); - if (lastLineEnd !== -1) { - var lines = unprocessed.substring(0, lastLineEnd).split('\n'); - nextReadPos += lastLineEnd + 1 /* 1 == '\n'.length */; - - processBlameLines(lines); - } // end if - - return nextReadPos; -} - -/** - * Handle XMLHttpRequest errors - * - * @param {XMLHttpRequest} xhr: XMLHttpRequest object - * @param {Number} [xhr.pollTimer] ID of the timeout to clear - * - * @globals commits - */ -function handleError(xhr) { - errorInfo('Server error: ' + - xhr.status + ' - ' + (xhr.statusText || 'Error contacting server')); - - if (typeof xhr.pollTimer === "number") { - clearTimeout(xhr.pollTimer); - delete xhr.pollTimer; - } - commits = {}; // free memory -} - -/** - * Called after XMLHttpRequest finishes (loads) - * - * @param {XMLHttpRequest} xhr: XMLHttpRequest object - * @param {Number} [xhr.pollTimer] ID of the timeout to clear - * - * @globals commits - */ -function responseLoaded(xhr) { - if (typeof xhr.pollTimer === "number") { - clearTimeout(xhr.pollTimer); - delete xhr.pollTimer; - } - - fixColorsAndGroups(); - writeTimeInterval(); - commits = {}; // free memory -} - -/** - * handler for XMLHttpRequest onreadystatechange event - * @see startBlame - * - * @param {XMLHttpRequest} xhr: XMLHttpRequest object - * @param {Number} xhr.prevDataLength: previous value of xhr.responseText.length - * @param {Number} xhr.nextReadPos: start of unread part of xhr.responseText - * @param {Number} [xhr.pollTimer] ID of the timeout (to reset or cancel) - * @param {Boolean} fromTimer: if handler was called from timer - */ -function handleResponse(xhr, fromTimer) { - - /* - * xhr.readyState - * - * Value Constant (W3C) Description - * ------------------------------------------------------------------- - * 0 UNSENT open() has not been called yet. - * 1 OPENED send() has not been called yet. - * 2 HEADERS_RECEIVED send() has been called, and headers - * and status are available. - * 3 LOADING Downloading; responseText holds partial data. - * 4 DONE The operation is complete. - */ - - if (xhr.readyState !== 4 && xhr.readyState !== 3) { - return; - } - - // the server returned error - // try ... catch block is to work around bug in IE8 - try { - if (xhr.readyState === 3 && xhr.status !== 200) { - return; - } - } catch (e) { - return; - } - if (xhr.readyState === 4 && xhr.status !== 200) { - handleError(xhr); - return; - } - - // In konqueror xhr.responseText is sometimes null here... - if (xhr.responseText === null) { - return; - } - - - // extract new whole (complete) lines, and process them - if (xhr.prevDataLength !== xhr.responseText.length) { - xhr.prevDataLength = xhr.responseText.length; - var unprocessed = xhr.responseText.substring(xhr.nextReadPos); - xhr.nextReadPos = processData(unprocessed, xhr.nextReadPos); - } - - // did we finish work? - if (xhr.readyState === 4) { - responseLoaded(xhr); - return; - } - - // if we get from timer, we have to restart it - // otherwise onreadystatechange gives us partial response, timer not needed - if (fromTimer) { - setTimeout(function () { - handleResponse(xhr, true); - }, 1000); - - } else if (typeof xhr.pollTimer === "number") { - clearTimeout(xhr.pollTimer); - delete xhr.pollTimer; - } -} - -// ============================================================ -// ------------------------------------------------------------ - -/** - * Incrementally update line data in blame_incremental view in gitweb. - * - * @param {String} blamedataUrl: URL to server script generating blame data. - * @param {String} bUrl: partial URL to project, used to generate links. - * - * Called from 'blame_incremental' view after loading table with - * file contents, a base for blame view. - * - * @globals t0, projectUrl, div_progress_bar, totalLines -*/ -function startBlame(blamedataUrl, bUrl) { - - var xhr = createRequestObject(); - if (!xhr) { - errorInfo('ERROR: XMLHttpRequest not supported'); - return; - } - - t0 = new Date(); - projectUrl = bUrl + (bUrl.indexOf('?') === -1 ? '?' : ';'); - if ((div_progress_bar = document.getElementById('progress_bar'))) { - //div_progress_bar.setAttribute('style', 'width: 100%;'); - div_progress_bar.style.cssText = 'width: 100%;'; - } - totalLines = countLines(); - updateProgressInfo(); - - /* add extra properties to xhr object to help processing response */ - xhr.prevDataLength = -1; // used to detect if we have new data - xhr.nextReadPos = 0; // where unread part of response starts - - xhr.onreadystatechange = function () { - handleResponse(xhr, false); - }; - - xhr.open('GET', blamedataUrl); - xhr.setRequestHeader('Accept', 'text/plain'); - xhr.send(null); - - // not all browsers call onreadystatechange event on each server flush - // poll response using timer every second to handle this issue - xhr.pollTimer = setTimeout(function () { - handleResponse(xhr, true); - }, 1000); -} - -/* end of blame_incremental.js */ diff --git a/bin/gitweb/static/js/javascript-detection.js b/bin/gitweb/static/js/javascript-detection.js deleted file mode 100644 index fa2596f..0000000 --- a/bin/gitweb/static/js/javascript-detection.js +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2007, Fredrik Kuivinen -// 2007, Petr Baudis -// 2008-2011, Jakub Narebski - -/** - * @fileOverview Detect if JavaScript is enabled, and pass it to server-side - * @license GPLv2 or later - */ - - -/* ============================================================ */ -/* Manipulating links */ - -/** - * used to check if link has 'js' query parameter already (at end), - * and other reasons to not add 'js=1' param at the end of link - * @constant - */ -var jsExceptionsRe = /[;?]js=[01](#.*)?$/; - -/** - * Add '?js=1' or ';js=1' to the end of every link in the document - * that doesn't have 'js' query parameter set already. - * - * Links with 'js=1' lead to JavaScript version of given action, if it - * exists (currently there is only 'blame_incremental' for 'blame') - * - * To be used as `window.onload` handler - * - * @globals jsExceptionsRe - */ -function fixLinks() { - var allLinks = document.getElementsByTagName("a") || document.links; - for (var i = 0, len = allLinks.length; i < len; i++) { - var link = allLinks[i]; - if (!jsExceptionsRe.test(link)) { - link.href = link.href.replace(/(#|$)/, - (link.href.indexOf('?') === -1 ? '?' : ';') + 'js=1$1'); - } - } -} - -/* end of javascript-detection.js */ diff --git a/bin/gitweb/static/js/lib/common-lib.js b/bin/gitweb/static/js/lib/common-lib.js deleted file mode 100644 index 018bbb7..0000000 --- a/bin/gitweb/static/js/lib/common-lib.js +++ /dev/null @@ -1,224 +0,0 @@ -// Copyright (C) 2007, Fredrik Kuivinen -// 2007, Petr Baudis -// 2008-2011, Jakub Narebski - -/** - * @fileOverview Generic JavaScript code (helper functions) - * @license GPLv2 or later - */ - - -/* ============================================================ */ -/* ............................................................ */ -/* Padding */ - -/** - * pad INPUT on the left with STR that is assumed to have visible - * width of single character (for example nonbreakable spaces), - * to WIDTH characters - * - * example: padLeftStr(12, 3, '\u00A0') == '\u00A012' - * ('\u00A0' is nonbreakable space) - * - * @param {Number|String} input: number to pad - * @param {Number} width: visible width of output - * @param {String} str: string to prefix to string, defaults to '\u00A0' - * @returns {String} INPUT prefixed with STR x (WIDTH - INPUT.length) - */ -function padLeftStr(input, width, str) { - var prefix = ''; - if (typeof str === 'undefined') { - ch = '\u00A0'; // using ' ' doesn't work in all browsers - } - - width -= input.toString().length; - while (width > 0) { - prefix += str; - width--; - } - return prefix + input; -} - -/** - * Pad INPUT on the left to WIDTH, using given padding character CH, - * for example padLeft('a', 3, '_') is '__a' - * padLeft(4, 2) is '04' (same as padLeft(4, 2, '0')) - * - * @param {String} input: input value converted to string. - * @param {Number} width: desired length of output. - * @param {String} ch: single character to prefix to string, defaults to '0'. - * - * @returns {String} Modified string, at least SIZE length. - */ -function padLeft(input, width, ch) { - var s = input + ""; - if (typeof ch === 'undefined') { - ch = '0'; - } - - while (s.length < width) { - s = ch + s; - } - return s; -} - - -/* ............................................................ */ -/* Handling browser incompatibilities */ - -/** - * Create XMLHttpRequest object in cross-browser way - * @returns XMLHttpRequest object, or null - */ -function createRequestObject() { - try { - return new XMLHttpRequest(); - } catch (e) {} - try { - return window.createRequest(); - } catch (e) {} - try { - return new ActiveXObject("Msxml2.XMLHTTP"); - } catch (e) {} - try { - return new ActiveXObject("Microsoft.XMLHTTP"); - } catch (e) {} - - return null; -} - - -/** - * Insert rule giving specified STYLE to given SELECTOR at the end of - * first CSS stylesheet. - * - * @param {String} selector: CSS selector, e.g. '.class' - * @param {String} style: rule contents, e.g. 'background-color: red;' - */ -function addCssRule(selector, style) { - var stylesheet = document.styleSheets[0]; - - var theRules = []; - if (stylesheet.cssRules) { // W3C way - theRules = stylesheet.cssRules; - } else if (stylesheet.rules) { // IE way - theRules = stylesheet.rules; - } - - if (stylesheet.insertRule) { // W3C way - stylesheet.insertRule(selector + ' { ' + style + ' }', theRules.length); - } else if (stylesheet.addRule) { // IE way - stylesheet.addRule(selector, style); - } -} - - -/* ............................................................ */ -/* Support for legacy browsers */ - -/** - * Provides getElementsByClassName method, if there is no native - * implementation of this method. - * - * NOTE that there are limits and differences compared to native - * getElementsByClassName as defined by e.g.: - * https://developer.mozilla.org/en/DOM/document.getElementsByClassName - * http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-getelementsbyclassname - * http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-getelementsbyclassname - * - * Namely, this implementation supports only single class name as - * argument and not set of space-separated tokens representing classes, - * it returns Array of nodes rather than live NodeList, and has - * additional optional argument where you can limit search to given tags - * (via getElementsByTagName). - * - * Based on - * http://code.google.com/p/getelementsbyclassname/ - * http://www.dustindiaz.com/getelementsbyclass/ - * http://stackoverflow.com/questions/1818865/do-we-have-getelementsbyclassname-in-javascript - * - * See also http://ejohn.org/blog/getelementsbyclassname-speed-comparison/ - * - * @param {String} class: name of _single_ class to find - * @param {String} [taghint] limit search to given tags - * @returns {Node[]} array of matching elements - */ -if (!('getElementsByClassName' in document)) { - document.getElementsByClassName = function (classname, taghint) { - taghint = taghint || "*"; - var elements = (taghint === "*" && document.all) ? - document.all : - document.getElementsByTagName(taghint); - var pattern = new RegExp("(^|\\s)" + classname + "(\\s|$)"); - var matches= []; - for (var i = 0, j = 0, n = elements.length; i < n; i++) { - var el= elements[i]; - if (el.className && pattern.test(el.className)) { - // matches.push(el); - matches[j] = el; - j++; - } - } - return matches; - }; -} // end if - - -/* ............................................................ */ -/* unquoting/unescaping filenames */ - -/**#@+ - * @constant - */ -var escCodeRe = /\\([^0-7]|[0-7]{1,3})/g; -var octEscRe = /^[0-7]{1,3}$/; -var maybeQuotedRe = /^\"(.*)\"$/; -/**#@-*/ - -/** - * unquote maybe C-quoted filename (as used by git, i.e. it is - * in double quotes '"' if there is any escape character used) - * e.g. 'aa' -> 'aa', '"a\ta"' -> 'a a' - * - * @param {String} str: git-quoted string - * @returns {String} Unquoted and unescaped string - * - * @globals escCodeRe, octEscRe, maybeQuotedRe - */ -function unquote(str) { - function unq(seq) { - var es = { - // character escape codes, aka escape sequences (from C) - // replacements are to some extent JavaScript specific - t: "\t", // tab (HT, TAB) - n: "\n", // newline (NL) - r: "\r", // return (CR) - f: "\f", // form feed (FF) - b: "\b", // backspace (BS) - a: "\x07", // alarm (bell) (BEL) - e: "\x1B", // escape (ESC) - v: "\v" // vertical tab (VT) - }; - - if (seq.search(octEscRe) !== -1) { - // octal char sequence - return String.fromCharCode(parseInt(seq, 8)); - } else if (seq in es) { - // C escape sequence, aka character escape code - return es[seq]; - } - // quoted ordinary character - return seq; - } - - var match = str.match(maybeQuotedRe); - if (match) { - str = match[1]; - // perhaps str = eval('"'+str+'"'); would be enough? - str = str.replace(escCodeRe, - function (substr, p1, offset, s) { return unq(p1); }); - } - return str; -} - -/* end of common-lib.js */ diff --git a/bin/gitweb/static/js/lib/cookies.js b/bin/gitweb/static/js/lib/cookies.js deleted file mode 100644 index 66b9a07..0000000 --- a/bin/gitweb/static/js/lib/cookies.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @fileOverview Accessing cookies from JavaScript - * @license GPLv2 or later - */ - -/* - * Based on subsection "Cookies in JavaScript" of "Professional - * JavaScript for Web Developers" by Nicholas C. Zakas and cookie - * plugin from jQuery (dual licensed under the MIT and GPL licenses) - */ - - -/** - * Create a cookie with the given name and value, - * and other optional parameters. - * - * @example - * setCookie('foo', 'bar'); // will be deleted when browser exits - * setCookie('foo', 'bar', { expires: new Date(Date.parse('Jan 1, 2012')) }); - * setCookie('foo', 'bar', { expires: 7 }); // 7 days = 1 week - * setCookie('foo', 'bar', { expires: 14, path: '/' }); - * - * @param {String} sName: Unique name of a cookie (letters, numbers, underscores). - * @param {String} sValue: The string value stored in a cookie. - * @param {Object} [options] An object literal containing key/value pairs - * to provide optional cookie attributes. - * @param {String|Number|Date} [options.expires] Either literal string to be used as cookie expires, - * or an integer specifying the expiration date from now on in days, - * or a Date object to be used as cookie expiration date. - * If a negative value is specified or a date in the past), - * the cookie will be deleted. - * If set to null or omitted, the cookie will be a session cookie - * and will not be retained when the browser exits. - * @param {String} [options.path] Restrict access of a cookie to particular directory - * (default: path of page that created the cookie). - * @param {String} [options.domain] Override what web sites are allowed to access cookie - * (default: domain of page that created the cookie). - * @param {Boolean} [options.secure] If true, the secure attribute of the cookie will be set - * and the cookie would be accessible only from secure sites - * (cookie transmission will require secure protocol like HTTPS). - */ -function setCookie(sName, sValue, options) { - options = options || {}; - if (sValue === null) { - sValue = ''; - option.expires = 'delete'; - } - - var sCookie = sName + '=' + encodeURIComponent(sValue); - - if (options.expires) { - var oExpires = options.expires, sDate; - if (oExpires === 'delete') { - sDate = 'Thu, 01 Jan 1970 00:00:00 GMT'; - } else if (typeof oExpires === 'string') { - sDate = oExpires; - } else { - var oDate; - if (typeof oExpires === 'number') { - oDate = new Date(); - oDate.setTime(oDate.getTime() + (oExpires * 24 * 60 * 60 * 1000)); // days to ms - } else { - oDate = oExpires; - } - sDate = oDate.toGMTString(); - } - sCookie += '; expires=' + sDate; - } - - if (options.path) { - sCookie += '; path=' + (options.path); - } - if (options.domain) { - sCookie += '; domain=' + (options.domain); - } - if (options.secure) { - sCookie += '; secure'; - } - document.cookie = sCookie; -} - -/** - * Get the value of a cookie with the given name. - * - * @param {String} sName: Unique name of a cookie (letters, numbers, underscores) - * @returns {String|null} The string value stored in a cookie - */ -function getCookie(sName) { - var sRE = '(?:; )?' + sName + '=([^;]*);?'; - var oRE = new RegExp(sRE); - if (oRE.test(document.cookie)) { - return decodeURIComponent(RegExp['$1']); - } else { - return null; - } -} - -/** - * Delete cookie with given name - * - * @param {String} sName: Unique name of a cookie (letters, numbers, underscores) - * @param {Object} [options] An object literal containing key/value pairs - * to provide optional cookie attributes. - * @param {String} [options.path] Must be the same as when setting a cookie - * @param {String} [options.domain] Must be the same as when setting a cookie - */ -function deleteCookie(sName, options) { - options = options || {}; - options.expires = 'delete'; - - setCookie(sName, '', options); -} - -/* end of cookies.js */ diff --git a/bin/gitweb/static/js/lib/datetime.js b/bin/gitweb/static/js/lib/datetime.js deleted file mode 100644 index f78c60a..0000000 --- a/bin/gitweb/static/js/lib/datetime.js +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (C) 2007, Fredrik Kuivinen -// 2007, Petr Baudis -// 2008-2011, Jakub Narebski - -/** - * @fileOverview Datetime manipulation: parsing and formatting - * @license GPLv2 or later - */ - - -/* ............................................................ */ -/* parsing and retrieving datetime related information */ - -/** - * used to extract hours and minutes from timezone info, e.g '-0900' - * @constant - */ -var tzRe = /^([+\-])([0-9][0-9])([0-9][0-9])$/; - -/** - * convert numeric timezone +/-ZZZZ to offset from UTC in seconds - * - * @param {String} timezoneInfo: numeric timezone '(+|-)HHMM' - * @returns {Number} offset from UTC in seconds for timezone - * - * @globals tzRe - */ -function timezoneOffset(timezoneInfo) { - var match = tzRe.exec(timezoneInfo); - var tz_sign = (match[1] === '-' ? -1 : +1); - var tz_hour = parseInt(match[2],10); - var tz_min = parseInt(match[3],10); - - return tz_sign*(((tz_hour*60) + tz_min)*60); -} - -/** - * return local (browser) timezone as offset from UTC in seconds - * - * @returns {Number} offset from UTC in seconds for local timezone - */ -function localTimezoneOffset() { - // getTimezoneOffset returns the time-zone offset from UTC, - // in _minutes_, for the current locale - return ((new Date()).getTimezoneOffset() * -60); -} - -/** - * return local (browser) timezone as numeric timezone '(+|-)HHMM' - * - * @returns {String} locat timezone as -/+ZZZZ - */ -function localTimezoneInfo() { - var tzOffsetMinutes = (new Date()).getTimezoneOffset() * -1; - - return formatTimezoneInfo(0, tzOffsetMinutes); -} - - -/** - * Parse RFC-2822 date into a Unix timestamp (into epoch) - * - * @param {String} date: date in RFC-2822 format, e.g. 'Thu, 21 Dec 2000 16:01:07 +0200' - * @returns {Number} epoch i.e. seconds since '00:00:00 1970-01-01 UTC' - */ -function parseRFC2822Date(date) { - // Date.parse accepts the IETF standard (RFC 1123 Section 5.2.14 and elsewhere) - // date syntax, which is defined in RFC 2822 (obsoletes RFC 822) - // and returns number of _milli_seconds since January 1, 1970, 00:00:00 UTC - return Date.parse(date) / 1000; -} - - -/* ............................................................ */ -/* formatting date */ - -/** - * format timezone offset as numerical timezone '(+|-)HHMM' or '(+|-)HH:MM' - * - * @param {Number} hours: offset in hours, e.g. 2 for '+0200' - * @param {Number} [minutes] offset in minutes, e.g. 30 for '-4030'; - * it is split into hours if not 0 <= minutes < 60, - * for example 1200 would give '+0100'; - * defaults to 0 - * @param {String} [sep] separator between hours and minutes part, - * default is '', might be ':' for W3CDTF (rfc-3339) - * @returns {String} timezone in '(+|-)HHMM' or '(+|-)HH:MM' format - */ -function formatTimezoneInfo(hours, minutes, sep) { - minutes = minutes || 0; // to be able to use formatTimezoneInfo(hh) - sep = sep || ''; // default format is +/-ZZZZ - - if (minutes < 0 || minutes > 59) { - hours = minutes > 0 ? Math.floor(minutes / 60) : Math.ceil(minutes / 60); - minutes = Math.abs(minutes - 60*hours); // sign of minutes is sign of hours - // NOTE: this works correctly because there is no UTC-00:30 timezone - } - - var tzSign = hours >= 0 ? '+' : '-'; - if (hours < 0) { - hours = -hours; // sign is stored in tzSign - } - - return tzSign + padLeft(hours, 2, '0') + sep + padLeft(minutes, 2, '0'); -} - -/** - * translate 'utc' and 'local' to numerical timezone - * @param {String} timezoneInfo: might be 'utc' or 'local' (browser) - */ -function normalizeTimezoneInfo(timezoneInfo) { - switch (timezoneInfo) { - case 'utc': - return '+0000'; - case 'local': // 'local' is browser timezone - return localTimezoneInfo(); - } - return timezoneInfo; -} - - -/** - * return date in local time formatted in iso-8601 like format - * 'yyyy-mm-dd HH:MM:SS +/-ZZZZ' e.g. '2005-08-07 21:49:46 +0200' - * - * @param {Number} epoch: seconds since '00:00:00 1970-01-01 UTC' - * @param {String} timezoneInfo: numeric timezone '(+|-)HHMM' - * @returns {String} date in local time in iso-8601 like format - */ -function formatDateISOLocal(epoch, timezoneInfo) { - // date corrected by timezone - var localDate = new Date(1000 * (epoch + - timezoneOffset(timezoneInfo))); - var localDateStr = // e.g. '2005-08-07' - localDate.getUTCFullYear() + '-' + - padLeft(localDate.getUTCMonth()+1, 2, '0') + '-' + - padLeft(localDate.getUTCDate(), 2, '0'); - var localTimeStr = // e.g. '21:49:46' - padLeft(localDate.getUTCHours(), 2, '0') + ':' + - padLeft(localDate.getUTCMinutes(), 2, '0') + ':' + - padLeft(localDate.getUTCSeconds(), 2, '0'); - - return localDateStr + ' ' + localTimeStr + ' ' + timezoneInfo; -} - -/** - * return date in local time formatted in rfc-2822 format - * e.g. 'Thu, 21 Dec 2000 16:01:07 +0200' - * - * @param {Number} epoch: seconds since '00:00:00 1970-01-01 UTC' - * @param {String} timezoneInfo: numeric timezone '(+|-)HHMM' - * @param {Boolean} [padDay] e.g. 'Sun, 07 Aug' if true, 'Sun, 7 Aug' otherwise - * @returns {String} date in local time in rfc-2822 format - */ -function formatDateRFC2882(epoch, timezoneInfo, padDay) { - // A short textual representation of a month, three letters - var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; - // A textual representation of a day, three letters - var days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; - // date corrected by timezone - var localDate = new Date(1000 * (epoch + - timezoneOffset(timezoneInfo))); - var localDateStr = // e.g. 'Sun, 7 Aug 2005' or 'Sun, 07 Aug 2005' - days[localDate.getUTCDay()] + ', ' + - (padDay ? padLeft(localDate.getUTCDate(),2,'0') : localDate.getUTCDate()) + ' ' + - months[localDate.getUTCMonth()] + ' ' + - localDate.getUTCFullYear(); - var localTimeStr = // e.g. '21:49:46' - padLeft(localDate.getUTCHours(), 2, '0') + ':' + - padLeft(localDate.getUTCMinutes(), 2, '0') + ':' + - padLeft(localDate.getUTCSeconds(), 2, '0'); - - return localDateStr + ' ' + localTimeStr + ' ' + timezoneInfo; -} - -/* end of datetime.js */ diff --git a/bin/sqlitedumpdata.pl b/bin/sqlitedumpdata.pl new file mode 100644 index 0000000..00ad087 --- /dev/null +++ b/bin/sqlitedumpdata.pl @@ -0,0 +1,47 @@ +#!/usr/bin/perl +use strict; +use File::Basename; +use Getopt::Long; +use lib (dirname($0).'/cgi/lib'); +use sqlite; +use pgsql; +use localconfig; +my $sdb = ""; +my $ident = ""; +my $schema = 0; +my $data = 0; +GetOptions("database|db=s" => \$sdb,"ident|i=s" => \$ident,"schema|s" => \$schema,"data|d" => \$data); +my $db = sqlite->new($sdb); + +$db->dbbackup(dirname($0).'/cursqlitedb.sql','sql'); +my $cfgpath=dirname($0).'/conf'; +my $cfg = localconfig->new($cfgpath.'/'.$ident.'.conf'); +my $rcfg = $cfg->readconfig(); +my $pg = pgsql->new($rcfg); +if ($schema == 1){ + open(SDB,dirname($0).'/cursqlitedb.sql'); + my $ddlschema = ""; + while (my $l = ){ + #chomp($l); + if (($l !~ /^INSERT/) && ($l !~ /^UPDATE/) && ($l !~ /^DELETE/)){ + $ddlschema .= $l; + } + + } + my $r = $pg->dbexec("INSERT INTO ".$rcfg->{schema}.".ddlschema (ddlschema) VALUES ('".$pg->strreplace($ddlschema)."');"); +} +if ($data == 1){ + my @sqldata = (); + open(SDB,dirname($0).'/cursqlitedb.sql'); + while (my $l = ){ + chomp($l); + if (($l =~ /^INSERT/) || ($l =~ /^UPDATE/) || ($l =~ /^DELETE/)){ + push(@sqldata,$l); + } + } + close(SDB); + + foreach my $d (@sqldata){ + my $r = $pg->dbexec("INSERT INTO ".$rcfg->{schema}.".sqlsync (tsquery,sqlquery,client) VALUES (now(),'".$pg->strreplace($d)."','system');"); + } +} diff --git a/bin/station/configuration.html b/bin/station/configuration.html deleted file mode 100644 index d870731..0000000 --- a/bin/station/configuration.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - - - - - -DKS - NAS - Configuration - - - - - - - -
    - -
    - -
    -
    - -
    -
    -
    -

    DKS NAS

    -
    - - - -
    -
    -
    -
    -
    -

    Protect Web-Interface

    -
    -
    -
    -
    - -
    -
    -
    -
    - -
    - -
    -
    - -
    -
    - Save -
    - -
    -
    - -
    -
    -
    - -
    -
    -

    Cable LAN

    -
    -
    -
    - -
    -
    - -
    - -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    - Save -
    - -
    - -
    -
    -
    - -
    -
    -

    Wireless LAN

    -
    -
    - -
    - -
    -
    - -
    -
    - Save -
    - -
    - -
    -
    -
    - -
    -
    -

    Current OpenVPN Configuration

    -
    -
    - - -
    - -
    -
    -
    - -
    -
    - -
    -
    - - - - -
    - Save -
    - -
    - -
    -
    -
    - -
    -
    -

    External Drives

    -
    - - - - - - - - - - - - -
    NAMESizeFile-SystemMount-FolderAction
    - -
    -
    -
    - -
    -
    -

    Share Users

    -
    -
    - - - -
    - - - - - - - - - -
    NamePasswordAction
    -
    -
    -
    - -
    -
    -

    Shared Folders

    -
    -
    -

    Global

    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    - -
    -
    -

    New Share

    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - - -
    - -
    -
    -

    Current Shares

    - - - - - - - - - - -
    NameDescriptionAuthorized UsersAction
    - -
    -
    -
    -
    -
    -
    - - - - - - - - diff --git a/bin/station/css/station.css b/bin/station/css/station.css deleted file mode 100644 index 6fc3734..0000000 --- a/bin/station/css/station.css +++ /dev/null @@ -1,12 +0,0 @@ -.card { - margin: 5px; - padding: 0px; -} - -.card-body { - margin: 0px; -} - -.card-header { - margin: 0px; -} diff --git a/bin/station/index.html b/bin/station/index.html deleted file mode 100644 index 5e1189d..0000000 --- a/bin/station/index.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - DKS NAS - - - - - - - - - -
    - -
    - -
    -
    -
    - -
    - - - -
    -
    - - - -
    NameAction
    - - -
    - -
    -
    -
    - - - - - - - - - - diff --git a/bin/station/js/browser.js b/bin/station/js/browser.js deleted file mode 100644 index 14a8b76..0000000 --- a/bin/station/js/browser.js +++ /dev/null @@ -1,85 +0,0 @@ - function initdata(){ - browser.getdirectory(null); - } - -var mimetypeicons = { - "unknown":"file", - "text/csv":"file-alt", - "text/plain":"file-alt", - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"file-excel", - "application/vnd.openxmlformats-officedocument.wordprocessingml.document":"file-word", - "application/pdf":"file-pdf", - "image/svg+xml":"image", - "image/png":"image", - "application/javascript":"file-code", - "application/zip":"file-archive", - "image/jpeg":"image", - "image/tif":"image", - "image/jpeg":"image", - "audio/mpeg":"file-audio", - "audio/ogg":"file-audio" -} - -$("#btn-home").on('click',function(){ - browser.getdirectory(dksnas.info.home); -}); - -$("#btn-folderup").on('click',function(){ - browser.getdirectory($("#btn-folderup").attr('data-folder')); -}); - -$("#btn-share").on('click',function(){ - alert($("#btn-share").attr('data-folder')); -}); - -$("#btn-currentfolder").on('click',function(){ - browser.getdirectory($("#btn-currentfolder").attr('data-folder')); -}); - - var browser = { - getdirectory: function(dir){ - if (!dir){ - dir = dksnas.info.home; - } - dir = dir.replace(/\\/g,'/'); - if (dir == dksnas.info.home){ - $('#btn-currentfolder').hide(); - $('#btn-share').hide(); - $('#btn-folderup').hide(); - } else { - $('#btn-currentfolder').show(); - $('#btn-currentfolder').attr("data-folder",dir); - $('#btn-share').show(); - $('#btn-share').attr("data-folder",dir); - $('#btn-folderup').show(); - var parent = dir.substring(0,dir.lastIndexOf('/')); - $('#btn-folderup').attr("data-folder",parent); - } - var displaycurdir = dir.substring(dksnas.info.home.length); - console.log(displaycurdir); - $('#current_folder').html(displaycurdir); - $('#browsetable > tbody').html(""); - console.log(dir); - console.log(window.location.origin + "/system/directory/list?path=" + encodeURIComponent(dir)); - $.ajax({ - encoding:"UTF-8", - url: window.location.origin + "/system/directory/list?path=" + encodeURIComponent(dir) , - success: function (data){ - console.log(data.result.file); - for (var i=0;i tbody:last-child').append(''+data.result.directory[i]+ ''); - } - for (var i=0;i tbody:last-child').append(''+fd.name+ ''); - } - }, - error: function(data){ - alert("Error:" + JSON.stringify(data)); - console.log("Error:" + JSON.stringify(data)); - }, - async:true - }); - } - } \ No newline at end of file diff --git a/bin/station/js/configure.js b/bin/station/js/configure.js deleted file mode 100644 index 57d33e8..0000000 --- a/bin/station/js/configure.js +++ /dev/null @@ -1,170 +0,0 @@ - function initdata(){ - $.ajax({ - encoding:"UTF-8", - url:"/app/config", - success: function (data){ - console.log("DATA"); - config.fillconfig(data.result); - }, - error: function(data){ - console.log("Error:" + JSON.stringify(data)); - }, - async:false - }); - } - - var config = { - setlogin: function(){ - var bok = 0; - var errmsg = "Please fill all fields!"; - if (($("#login").val() != "") && ($("#apppassword2").val() != "") && ($("#apppassword1").val() != "")){ - if ($("#apppassword2").val() != $("#apppassword1").val()){ - errmsg = "Passwords does not match eachother!"; - }else if ($("#apppassword1").val().length < 8 ){ - errmsg = "Passwords length must have at least 8 characters!"; - }else { - bok=1; - } - } - if (bok == 0){ - alert(errmsg); - }else { - $.ajax({ - method: 'POST', - encoding:"UTF-8", - url:"/app/save/login", - data: "login=" + encodeURIComponent($("#login").val()) + "&pwd=" + encodeURIComponent($("#apppassword1").val()), - success: function (data){ - console.log("Error:" + JSON.stringify(data)); - }, - error: function(data){ - console.log("Error:" + JSON.stringify(data)); - }, - async:false - }); - } - }, - fillconfig: function(data){ - console.log(data); - if (data){ - if (data.weblogin){ - if (data.weblogin.user){ - $("#login").val(data.weblogin.user); - } - } - if (data.cablenet){ - if (data.cablenet.type){ - $("#cablenet_type_"+ data.cablenet.type).prop("checked",true); - - } - - } - if (data.extdrives){ - $("#tbl_extdrives > tbody").html(""); - for (var drv in data.extdrives){ - var trow = ''; - trow += ''+ data.extdrives[drv].label+'
    ('+ data.extdrives[drv].serial +')'; - trow += ''+ data.extdrives[drv].size +''; - trow += ''+ data.extdrives[drv].fs+ ''; - if (data.extdrives[drv].mounted){ - trow += ''; - trow += ''; - } - else { - - trow += ''; - trow += ''; - } - trow += ''; - $("#tbl_extdrives > tbody").append(trow); - } - } - if (data.shareusers){ - $('#tbl_shareusers > tbody').html(""); - for (var u in data.shareusers){ - var trow = ''; - trow += ''+u+''; - trow += ''; - trow += ' '; - trow += ''; - $("#tbl_shareusers> tbody").append(trow); - } - } - if (data.shares){ - if (data.shares.global){ - $("#shareworkgroup").val(data.shares.global.workgroup); - $("#shareserverdesc").val(data.shares.global["server string"]); - $("#sharenetbios").val(data.shares.global["netbios name"]); - } - $('#tbl_shares > tbody').html(""); - if (data.shares.folders){ - for (var f in data.shares.folders){ - var trow = ''; - trow += ''+f+''; - trow += ''+data.shares.folders[f].comment+''; - - trow += '
    '; - trow += ''; - trow += '
    '; - trow += ' '; - trow += ''; - $("#tbl_shares > tbody").append(trow); - } - } - } - } - } - }; - - - - $('input[name="cable_type"]:radio').on('change',function() { - console.log("TEST RADIO CHECK!"); - if (this.value == 'dhcp'){ - $("#cablenet_ip").prop("disabled",true); - $("#cablenet_subnet").prop("disabled",true); - $("#cablenet_gateway").prop("disabled",true); - $("#cablenet_dns").prop("disabled",true); - } else { - $("#cablenet_ip").prop("disabled",false); - $("#cablenet_subnet").prop("disabled",false); - $("#cablenet_gateway").prop("disabled",false); - $("#cablenet_dns").prop("disabled",false); - } - }); - - $('#btn_shudown').on('click',function(){ - if (confirm("shutdown DKS-NAS now?")){ - $.ajax({ - encoding:"UTF-8", - url:"/app/shutdown", - success: function (data){ - console.log("Success:" + data); - }, - error: function(data){ - console.log("Error:" + data); - }, - async:false - }); - } - }); - - $('#btn_restart').on('click',function(){ - if (confirm("restart DKS-NAS now?")){ - $.ajax({ - encoding:"UTF-8", - url:"/app/restart", - success: function (data){ - console.log("Success:" + data); - }, - error: function(data){ - console.log("Error:" + data); - }, - async:false - }); - } - }); \ No newline at end of file diff --git a/bin/station/js/dksnas.js b/bin/station/js/dksnas.js deleted file mode 100644 index 24e1c76..0000000 --- a/bin/station/js/dksnas.js +++ /dev/null @@ -1,25 +0,0 @@ -var dksnas = { - info: null, - getinfo: function(){ - $.ajax({ - encoding:"UTF-8", - url:"/app/info" , - success: function (data){ - //dump(data + "\n"); - dksnas.info=data.result; - dksnas.info.home = dksnas.info.home.replace(/\\/g,'/'); - }, - error: function(data){ - alert("Error:" + JSON.stringify(data)); - console.log("Error:" + JSON.stringify(data)); - }, - async:false - }); - - } -}; - -$(document).ready(function() { - dksnas.getinfo(); - initdata(); -}); \ No newline at end of file diff --git a/bin/station/test.html b/bin/station/test.html deleted file mode 100644 index 061e455..0000000 --- a/bin/station/test.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - -Station redirect - - - - - diff --git a/bin/station/vendor/bootstrap/css/bootstrap-grid.css b/bin/station/vendor/bootstrap/css/bootstrap-grid.css deleted file mode 100644 index bcd4f33..0000000 --- a/bin/station/vendor/bootstrap/css/bootstrap-grid.css +++ /dev/null @@ -1,1567 +0,0 @@ -/*! - * Bootstrap Grid v4.0.0-beta.2 (https://getbootstrap.com) - * Copyright 2011-2017 The Bootstrap Authors - * Copyright 2011-2017 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -@-ms-viewport { - width: device-width; -} - -html { - box-sizing: border-box; - -ms-overflow-style: scrollbar; -} - -*, -*::before, -*::after { - box-sizing: inherit; -} - -.container { - width: 100%; - padding-right: 15px; - padding-left: 15px; - margin-right: auto; - margin-left: auto; -} - -@media (min-width: 576px) { - .container { - max-width: 540px; - } -} - -@media (min-width: 768px) { - .container { - max-width: 720px; - } -} - -@media (min-width: 992px) { - .container { - max-width: 960px; - } -} - -@media (min-width: 1200px) { - .container { - max-width: 1140px; - } -} - -.container-fluid { - width: 100%; - padding-right: 15px; - padding-left: 15px; - margin-right: auto; - margin-left: auto; -} - -.row { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-right: -15px; - margin-left: -15px; -} - -.no-gutters { - margin-right: 0; - margin-left: 0; -} - -.no-gutters > .col, -.no-gutters > [class*="col-"] { - padding-right: 0; - padding-left: 0; -} - -.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, -.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, -.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, -.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, -.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, -.col-xl-auto { - position: relative; - width: 100%; - min-height: 1px; - padding-right: 15px; - padding-left: 15px; -} - -.col { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; -} - -.col-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; -} - -.col-1 { - -ms-flex: 0 0 8.333333%; - flex: 0 0 8.333333%; - max-width: 8.333333%; -} - -.col-2 { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; -} - -.col-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; -} - -.col-4 { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; -} - -.col-5 { - -ms-flex: 0 0 41.666667%; - flex: 0 0 41.666667%; - max-width: 41.666667%; -} - -.col-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; -} - -.col-7 { - -ms-flex: 0 0 58.333333%; - flex: 0 0 58.333333%; - max-width: 58.333333%; -} - -.col-8 { - -ms-flex: 0 0 66.666667%; - flex: 0 0 66.666667%; - max-width: 66.666667%; -} - -.col-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; -} - -.col-10 { - -ms-flex: 0 0 83.333333%; - flex: 0 0 83.333333%; - max-width: 83.333333%; -} - -.col-11 { - -ms-flex: 0 0 91.666667%; - flex: 0 0 91.666667%; - max-width: 91.666667%; -} - -.col-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; -} - -.order-first { - -ms-flex-order: -1; - order: -1; -} - -.order-1 { - -ms-flex-order: 1; - order: 1; -} - -.order-2 { - -ms-flex-order: 2; - order: 2; -} - -.order-3 { - -ms-flex-order: 3; - order: 3; -} - -.order-4 { - -ms-flex-order: 4; - order: 4; -} - -.order-5 { - -ms-flex-order: 5; - order: 5; -} - -.order-6 { - -ms-flex-order: 6; - order: 6; -} - -.order-7 { - -ms-flex-order: 7; - order: 7; -} - -.order-8 { - -ms-flex-order: 8; - order: 8; -} - -.order-9 { - -ms-flex-order: 9; - order: 9; -} - -.order-10 { - -ms-flex-order: 10; - order: 10; -} - -.order-11 { - -ms-flex-order: 11; - order: 11; -} - -.order-12 { - -ms-flex-order: 12; - order: 12; -} - -.offset-1 { - margin-left: 8.333333%; -} - -.offset-2 { - margin-left: 16.666667%; -} - -.offset-3 { - margin-left: 25%; -} - -.offset-4 { - margin-left: 33.333333%; -} - -.offset-5 { - margin-left: 41.666667%; -} - -.offset-6 { - margin-left: 50%; -} - -.offset-7 { - margin-left: 58.333333%; -} - -.offset-8 { - margin-left: 66.666667%; -} - -.offset-9 { - margin-left: 75%; -} - -.offset-10 { - margin-left: 83.333333%; -} - -.offset-11 { - margin-left: 91.666667%; -} - -@media (min-width: 576px) { - .col-sm { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-sm-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-sm-1 { - -ms-flex: 0 0 8.333333%; - flex: 0 0 8.333333%; - max-width: 8.333333%; - } - .col-sm-2 { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-sm-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-sm-4 { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .col-sm-5 { - -ms-flex: 0 0 41.666667%; - flex: 0 0 41.666667%; - max-width: 41.666667%; - } - .col-sm-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-sm-7 { - -ms-flex: 0 0 58.333333%; - flex: 0 0 58.333333%; - max-width: 58.333333%; - } - .col-sm-8 { - -ms-flex: 0 0 66.666667%; - flex: 0 0 66.666667%; - max-width: 66.666667%; - } - .col-sm-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-sm-10 { - -ms-flex: 0 0 83.333333%; - flex: 0 0 83.333333%; - max-width: 83.333333%; - } - .col-sm-11 { - -ms-flex: 0 0 91.666667%; - flex: 0 0 91.666667%; - max-width: 91.666667%; - } - .col-sm-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-sm-first { - -ms-flex-order: -1; - order: -1; - } - .order-sm-1 { - -ms-flex-order: 1; - order: 1; - } - .order-sm-2 { - -ms-flex-order: 2; - order: 2; - } - .order-sm-3 { - -ms-flex-order: 3; - order: 3; - } - .order-sm-4 { - -ms-flex-order: 4; - order: 4; - } - .order-sm-5 { - -ms-flex-order: 5; - order: 5; - } - .order-sm-6 { - -ms-flex-order: 6; - order: 6; - } - .order-sm-7 { - -ms-flex-order: 7; - order: 7; - } - .order-sm-8 { - -ms-flex-order: 8; - order: 8; - } - .order-sm-9 { - -ms-flex-order: 9; - order: 9; - } - .order-sm-10 { - -ms-flex-order: 10; - order: 10; - } - .order-sm-11 { - -ms-flex-order: 11; - order: 11; - } - .order-sm-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-sm-0 { - margin-left: 0; - } - .offset-sm-1 { - margin-left: 8.333333%; - } - .offset-sm-2 { - margin-left: 16.666667%; - } - .offset-sm-3 { - margin-left: 25%; - } - .offset-sm-4 { - margin-left: 33.333333%; - } - .offset-sm-5 { - margin-left: 41.666667%; - } - .offset-sm-6 { - margin-left: 50%; - } - .offset-sm-7 { - margin-left: 58.333333%; - } - .offset-sm-8 { - margin-left: 66.666667%; - } - .offset-sm-9 { - margin-left: 75%; - } - .offset-sm-10 { - margin-left: 83.333333%; - } - .offset-sm-11 { - margin-left: 91.666667%; - } -} - -@media (min-width: 768px) { - .col-md { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-md-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-md-1 { - -ms-flex: 0 0 8.333333%; - flex: 0 0 8.333333%; - max-width: 8.333333%; - } - .col-md-2 { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-md-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-md-4 { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .col-md-5 { - -ms-flex: 0 0 41.666667%; - flex: 0 0 41.666667%; - max-width: 41.666667%; - } - .col-md-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-md-7 { - -ms-flex: 0 0 58.333333%; - flex: 0 0 58.333333%; - max-width: 58.333333%; - } - .col-md-8 { - -ms-flex: 0 0 66.666667%; - flex: 0 0 66.666667%; - max-width: 66.666667%; - } - .col-md-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-md-10 { - -ms-flex: 0 0 83.333333%; - flex: 0 0 83.333333%; - max-width: 83.333333%; - } - .col-md-11 { - -ms-flex: 0 0 91.666667%; - flex: 0 0 91.666667%; - max-width: 91.666667%; - } - .col-md-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-md-first { - -ms-flex-order: -1; - order: -1; - } - .order-md-1 { - -ms-flex-order: 1; - order: 1; - } - .order-md-2 { - -ms-flex-order: 2; - order: 2; - } - .order-md-3 { - -ms-flex-order: 3; - order: 3; - } - .order-md-4 { - -ms-flex-order: 4; - order: 4; - } - .order-md-5 { - -ms-flex-order: 5; - order: 5; - } - .order-md-6 { - -ms-flex-order: 6; - order: 6; - } - .order-md-7 { - -ms-flex-order: 7; - order: 7; - } - .order-md-8 { - -ms-flex-order: 8; - order: 8; - } - .order-md-9 { - -ms-flex-order: 9; - order: 9; - } - .order-md-10 { - -ms-flex-order: 10; - order: 10; - } - .order-md-11 { - -ms-flex-order: 11; - order: 11; - } - .order-md-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-md-0 { - margin-left: 0; - } - .offset-md-1 { - margin-left: 8.333333%; - } - .offset-md-2 { - margin-left: 16.666667%; - } - .offset-md-3 { - margin-left: 25%; - } - .offset-md-4 { - margin-left: 33.333333%; - } - .offset-md-5 { - margin-left: 41.666667%; - } - .offset-md-6 { - margin-left: 50%; - } - .offset-md-7 { - margin-left: 58.333333%; - } - .offset-md-8 { - margin-left: 66.666667%; - } - .offset-md-9 { - margin-left: 75%; - } - .offset-md-10 { - margin-left: 83.333333%; - } - .offset-md-11 { - margin-left: 91.666667%; - } -} - -@media (min-width: 992px) { - .col-lg { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-lg-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-lg-1 { - -ms-flex: 0 0 8.333333%; - flex: 0 0 8.333333%; - max-width: 8.333333%; - } - .col-lg-2 { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-lg-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-lg-4 { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .col-lg-5 { - -ms-flex: 0 0 41.666667%; - flex: 0 0 41.666667%; - max-width: 41.666667%; - } - .col-lg-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-lg-7 { - -ms-flex: 0 0 58.333333%; - flex: 0 0 58.333333%; - max-width: 58.333333%; - } - .col-lg-8 { - -ms-flex: 0 0 66.666667%; - flex: 0 0 66.666667%; - max-width: 66.666667%; - } - .col-lg-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-lg-10 { - -ms-flex: 0 0 83.333333%; - flex: 0 0 83.333333%; - max-width: 83.333333%; - } - .col-lg-11 { - -ms-flex: 0 0 91.666667%; - flex: 0 0 91.666667%; - max-width: 91.666667%; - } - .col-lg-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-lg-first { - -ms-flex-order: -1; - order: -1; - } - .order-lg-1 { - -ms-flex-order: 1; - order: 1; - } - .order-lg-2 { - -ms-flex-order: 2; - order: 2; - } - .order-lg-3 { - -ms-flex-order: 3; - order: 3; - } - .order-lg-4 { - -ms-flex-order: 4; - order: 4; - } - .order-lg-5 { - -ms-flex-order: 5; - order: 5; - } - .order-lg-6 { - -ms-flex-order: 6; - order: 6; - } - .order-lg-7 { - -ms-flex-order: 7; - order: 7; - } - .order-lg-8 { - -ms-flex-order: 8; - order: 8; - } - .order-lg-9 { - -ms-flex-order: 9; - order: 9; - } - .order-lg-10 { - -ms-flex-order: 10; - order: 10; - } - .order-lg-11 { - -ms-flex-order: 11; - order: 11; - } - .order-lg-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-lg-0 { - margin-left: 0; - } - .offset-lg-1 { - margin-left: 8.333333%; - } - .offset-lg-2 { - margin-left: 16.666667%; - } - .offset-lg-3 { - margin-left: 25%; - } - .offset-lg-4 { - margin-left: 33.333333%; - } - .offset-lg-5 { - margin-left: 41.666667%; - } - .offset-lg-6 { - margin-left: 50%; - } - .offset-lg-7 { - margin-left: 58.333333%; - } - .offset-lg-8 { - margin-left: 66.666667%; - } - .offset-lg-9 { - margin-left: 75%; - } - .offset-lg-10 { - margin-left: 83.333333%; - } - .offset-lg-11 { - margin-left: 91.666667%; - } -} - -@media (min-width: 1200px) { - .col-xl { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-xl-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-xl-1 { - -ms-flex: 0 0 8.333333%; - flex: 0 0 8.333333%; - max-width: 8.333333%; - } - .col-xl-2 { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-xl-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-xl-4 { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .col-xl-5 { - -ms-flex: 0 0 41.666667%; - flex: 0 0 41.666667%; - max-width: 41.666667%; - } - .col-xl-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-xl-7 { - -ms-flex: 0 0 58.333333%; - flex: 0 0 58.333333%; - max-width: 58.333333%; - } - .col-xl-8 { - -ms-flex: 0 0 66.666667%; - flex: 0 0 66.666667%; - max-width: 66.666667%; - } - .col-xl-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-xl-10 { - -ms-flex: 0 0 83.333333%; - flex: 0 0 83.333333%; - max-width: 83.333333%; - } - .col-xl-11 { - -ms-flex: 0 0 91.666667%; - flex: 0 0 91.666667%; - max-width: 91.666667%; - } - .col-xl-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-xl-first { - -ms-flex-order: -1; - order: -1; - } - .order-xl-1 { - -ms-flex-order: 1; - order: 1; - } - .order-xl-2 { - -ms-flex-order: 2; - order: 2; - } - .order-xl-3 { - -ms-flex-order: 3; - order: 3; - } - .order-xl-4 { - -ms-flex-order: 4; - order: 4; - } - .order-xl-5 { - -ms-flex-order: 5; - order: 5; - } - .order-xl-6 { - -ms-flex-order: 6; - order: 6; - } - .order-xl-7 { - -ms-flex-order: 7; - order: 7; - } - .order-xl-8 { - -ms-flex-order: 8; - order: 8; - } - .order-xl-9 { - -ms-flex-order: 9; - order: 9; - } - .order-xl-10 { - -ms-flex-order: 10; - order: 10; - } - .order-xl-11 { - -ms-flex-order: 11; - order: 11; - } - .order-xl-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-xl-0 { - margin-left: 0; - } - .offset-xl-1 { - margin-left: 8.333333%; - } - .offset-xl-2 { - margin-left: 16.666667%; - } - .offset-xl-3 { - margin-left: 25%; - } - .offset-xl-4 { - margin-left: 33.333333%; - } - .offset-xl-5 { - margin-left: 41.666667%; - } - .offset-xl-6 { - margin-left: 50%; - } - .offset-xl-7 { - margin-left: 58.333333%; - } - .offset-xl-8 { - margin-left: 66.666667%; - } - .offset-xl-9 { - margin-left: 75%; - } - .offset-xl-10 { - margin-left: 83.333333%; - } - .offset-xl-11 { - margin-left: 91.666667%; - } -} - -.flex-row { - -ms-flex-direction: row !important; - flex-direction: row !important; -} - -.flex-column { - -ms-flex-direction: column !important; - flex-direction: column !important; -} - -.flex-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; -} - -.flex-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; -} - -.flex-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; -} - -.flex-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; -} - -.flex-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; -} - -.justify-content-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; -} - -.justify-content-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; -} - -.justify-content-center { - -ms-flex-pack: center !important; - justify-content: center !important; -} - -.justify-content-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; -} - -.justify-content-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; -} - -.align-items-start { - -ms-flex-align: start !important; - align-items: flex-start !important; -} - -.align-items-end { - -ms-flex-align: end !important; - align-items: flex-end !important; -} - -.align-items-center { - -ms-flex-align: center !important; - align-items: center !important; -} - -.align-items-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; -} - -.align-items-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; -} - -.align-content-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; -} - -.align-content-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; -} - -.align-content-center { - -ms-flex-line-pack: center !important; - align-content: center !important; -} - -.align-content-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; -} - -.align-content-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; -} - -.align-content-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; -} - -.align-self-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; -} - -.align-self-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; -} - -.align-self-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; -} - -.align-self-center { - -ms-flex-item-align: center !important; - align-self: center !important; -} - -.align-self-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; -} - -.align-self-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; -} - -@media (min-width: 576px) { - .flex-sm-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-sm-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-sm-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-sm-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-sm-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-sm-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-sm-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .justify-content-sm-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-sm-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-sm-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-sm-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-sm-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-sm-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-sm-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-sm-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-sm-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-sm-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-sm-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-sm-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-sm-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-sm-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-sm-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-sm-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-sm-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-sm-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-sm-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-sm-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-sm-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-sm-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 768px) { - .flex-md-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-md-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-md-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-md-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-md-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-md-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-md-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .justify-content-md-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-md-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-md-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-md-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-md-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-md-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-md-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-md-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-md-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-md-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-md-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-md-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-md-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-md-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-md-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-md-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-md-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-md-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-md-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-md-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-md-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-md-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 992px) { - .flex-lg-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-lg-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-lg-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-lg-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-lg-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-lg-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-lg-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .justify-content-lg-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-lg-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-lg-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-lg-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-lg-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-lg-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-lg-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-lg-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-lg-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-lg-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-lg-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-lg-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-lg-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-lg-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-lg-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-lg-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-lg-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-lg-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-lg-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-lg-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-lg-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-lg-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 1200px) { - .flex-xl-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-xl-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-xl-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-xl-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-xl-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-xl-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-xl-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .justify-content-xl-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-xl-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-xl-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-xl-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-xl-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-xl-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-xl-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-xl-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-xl-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-xl-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-xl-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-xl-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-xl-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-xl-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-xl-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-xl-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-xl-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-xl-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-xl-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-xl-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-xl-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-xl-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} -/*# sourceMappingURL=bootstrap-grid.css.map */ \ No newline at end of file diff --git a/bin/station/vendor/bootstrap/css/bootstrap-grid.css.map b/bin/station/vendor/bootstrap/css/bootstrap-grid.css.map deleted file mode 100644 index acfe453..0000000 --- a/bin/station/vendor/bootstrap/css/bootstrap-grid.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../scss/bootstrap-grid.scss","bootstrap-grid.css","../../scss/_grid.scss","../../scss/mixins/_grid.scss","../../scss/mixins/_breakpoints.scss","../../scss/_variables.scss","../../scss/mixins/_grid-framework.scss","../../scss/utilities/_flex.scss"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGD;EAAgB,oBAAmB;CCApC;;ADGD;EACE,uBAAsB;EACtB,8BAA6B;CAC9B;;AAED;;;EAGE,oBAAmB;CACpB;;AEfC;ECAA,YAAW;EACX,oBAAuC;EACvC,mBAAsC;EACtC,mBAAkB;EAClB,kBAAiB;CDDhB;;AEgDC;EFnDF;ICYI,iBE4JK;GHrKR;CDyBF;;AGuBG;EFnDF;ICYI,iBE6JK;GHtKR;CD+BF;;AGiBG;EFnDF;ICYI,iBE8JK;GHvKR;CDqCF;;AGWG;EFnDF;ICYI,kBE+JM;GHxKT;CD2CF;;AClCC;ECZA,YAA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gC,yCAA+B;QAA/B,gCAA+B;GAAK;EACpE;IAAgC,wCAA8B;QAA9B,+BAA8B;GAAK;CNmtCtE","file":"bootstrap-grid.css","sourcesContent":["/*!\n * Bootstrap Grid v4.0.0-beta.2 (https://getbootstrap.com)\n * Copyright 2011-2017 The Bootstrap Authors\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n@at-root {\n @-ms-viewport { width: device-width; } // stylelint-disable-line at-rule-no-vendor-prefix\n}\n\nhtml {\n box-sizing: border-box;\n -ms-overflow-style: scrollbar;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\n@import \"functions\";\n@import \"variables\";\n\n//\n// Grid mixins\n//\n\n@import \"mixins/breakpoints\";\n@import \"mixins/grid-framework\";\n@import \"mixins/grid\";\n\n@import \"grid\";\n@import \"utilities/flex\";\n","/*!\n * Bootstrap Grid v4.0.0-beta.2 (https://getbootstrap.com)\n * Copyright 2011-2017 The Bootstrap Authors\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n@-ms-viewport {\n width: device-width;\n}\n\nhtml {\n box-sizing: border-box;\n -ms-overflow-style: scrollbar;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\n.container {\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto;\n}\n\n@media (min-width: 576px) {\n .container {\n max-width: 540px;\n }\n}\n\n@media (min-width: 768px) {\n .container {\n max-width: 720px;\n }\n}\n\n@media (min-width: 992px) {\n .container {\n max-width: 960px;\n }\n}\n\n@media (min-width: 1200px) {\n .container {\n max-width: 1140px;\n }\n}\n\n.container-fluid {\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto;\n}\n\n.row {\n display: flex;\n flex-wrap: wrap;\n margin-right: -15px;\n margin-left: -15px;\n}\n\n.no-gutters {\n margin-right: 0;\n margin-left: 0;\n}\n\n.no-gutters > .col,\n.no-gutters > [class*=\"col-\"] {\n padding-right: 0;\n padding-left: 0;\n}\n\n.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col,\n.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm,\n.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md,\n.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg,\n.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl,\n.col-xl-auto {\n position: relative;\n width: 100%;\n min-height: 1px;\n padding-right: 15px;\n padding-left: 15px;\n}\n\n.col {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n}\n\n.col-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n}\n\n.col-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n}\n\n.col-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n}\n\n.col-3 {\n flex: 0 0 25%;\n max-width: 25%;\n}\n\n.col-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n}\n\n.col-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n}\n\n.col-6 {\n flex: 0 0 50%;\n max-width: 50%;\n}\n\n.col-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n}\n\n.col-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n}\n\n.col-9 {\n flex: 0 0 75%;\n max-width: 75%;\n}\n\n.col-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n}\n\n.col-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n}\n\n.col-12 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n\n.order-first {\n order: -1;\n}\n\n.order-1 {\n order: 1;\n}\n\n.order-2 {\n order: 2;\n}\n\n.order-3 {\n order: 3;\n}\n\n.order-4 {\n order: 4;\n}\n\n.order-5 {\n order: 5;\n}\n\n.order-6 {\n order: 6;\n}\n\n.order-7 {\n order: 7;\n}\n\n.order-8 {\n order: 8;\n}\n\n.order-9 {\n order: 9;\n}\n\n.order-10 {\n order: 10;\n}\n\n.order-11 {\n order: 11;\n}\n\n.order-12 {\n order: 12;\n}\n\n.offset-1 {\n margin-left: 8.333333%;\n}\n\n.offset-2 {\n margin-left: 16.666667%;\n}\n\n.offset-3 {\n margin-left: 25%;\n}\n\n.offset-4 {\n margin-left: 33.333333%;\n}\n\n.offset-5 {\n margin-left: 41.666667%;\n}\n\n.offset-6 {\n margin-left: 50%;\n}\n\n.offset-7 {\n margin-left: 58.333333%;\n}\n\n.offset-8 {\n margin-left: 66.666667%;\n}\n\n.offset-9 {\n margin-left: 75%;\n}\n\n.offset-10 {\n margin-left: 83.333333%;\n}\n\n.offset-11 {\n margin-left: 91.666667%;\n}\n\n@media (min-width: 576px) {\n .col-sm {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-sm-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-sm-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-sm-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-sm-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-sm-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-sm-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-sm-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-sm-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-sm-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-sm-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-sm-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-sm-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-sm-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-sm-first {\n order: -1;\n }\n .order-sm-1 {\n order: 1;\n }\n .order-sm-2 {\n order: 2;\n }\n .order-sm-3 {\n order: 3;\n }\n .order-sm-4 {\n order: 4;\n }\n .order-sm-5 {\n order: 5;\n }\n .order-sm-6 {\n order: 6;\n }\n .order-sm-7 {\n order: 7;\n }\n .order-sm-8 {\n order: 8;\n }\n .order-sm-9 {\n order: 9;\n }\n .order-sm-10 {\n order: 10;\n }\n .order-sm-11 {\n order: 11;\n }\n .order-sm-12 {\n order: 12;\n }\n .offset-sm-0 {\n margin-left: 0;\n }\n .offset-sm-1 {\n margin-left: 8.333333%;\n }\n .offset-sm-2 {\n margin-left: 16.666667%;\n }\n .offset-sm-3 {\n margin-left: 25%;\n }\n .offset-sm-4 {\n margin-left: 33.333333%;\n }\n .offset-sm-5 {\n margin-left: 41.666667%;\n }\n .offset-sm-6 {\n margin-left: 50%;\n }\n .offset-sm-7 {\n margin-left: 58.333333%;\n }\n .offset-sm-8 {\n margin-left: 66.666667%;\n }\n .offset-sm-9 {\n margin-left: 75%;\n }\n .offset-sm-10 {\n margin-left: 83.333333%;\n }\n .offset-sm-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 768px) {\n .col-md {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-md-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-md-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-md-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-md-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-md-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-md-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-md-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-md-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-md-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-md-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-md-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-md-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-md-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-md-first {\n order: -1;\n }\n .order-md-1 {\n order: 1;\n }\n .order-md-2 {\n order: 2;\n }\n .order-md-3 {\n order: 3;\n }\n .order-md-4 {\n order: 4;\n }\n .order-md-5 {\n order: 5;\n }\n .order-md-6 {\n order: 6;\n }\n .order-md-7 {\n order: 7;\n }\n .order-md-8 {\n order: 8;\n }\n .order-md-9 {\n order: 9;\n }\n .order-md-10 {\n order: 10;\n }\n .order-md-11 {\n order: 11;\n }\n .order-md-12 {\n order: 12;\n }\n .offset-md-0 {\n margin-left: 0;\n }\n .offset-md-1 {\n margin-left: 8.333333%;\n }\n .offset-md-2 {\n margin-left: 16.666667%;\n }\n .offset-md-3 {\n margin-left: 25%;\n }\n .offset-md-4 {\n margin-left: 33.333333%;\n }\n .offset-md-5 {\n margin-left: 41.666667%;\n }\n .offset-md-6 {\n margin-left: 50%;\n }\n .offset-md-7 {\n margin-left: 58.333333%;\n }\n .offset-md-8 {\n margin-left: 66.666667%;\n }\n .offset-md-9 {\n margin-left: 75%;\n }\n .offset-md-10 {\n margin-left: 83.333333%;\n }\n .offset-md-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 992px) {\n .col-lg {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-lg-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-lg-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-lg-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-lg-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-lg-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-lg-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-lg-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-lg-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-lg-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-lg-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-lg-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-lg-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-lg-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-lg-first {\n order: -1;\n }\n .order-lg-1 {\n order: 1;\n }\n .order-lg-2 {\n order: 2;\n }\n .order-lg-3 {\n order: 3;\n }\n .order-lg-4 {\n order: 4;\n }\n .order-lg-5 {\n order: 5;\n }\n .order-lg-6 {\n order: 6;\n }\n .order-lg-7 {\n order: 7;\n }\n .order-lg-8 {\n order: 8;\n }\n .order-lg-9 {\n order: 9;\n }\n .order-lg-10 {\n order: 10;\n }\n .order-lg-11 {\n order: 11;\n }\n .order-lg-12 {\n order: 12;\n }\n .offset-lg-0 {\n margin-left: 0;\n }\n .offset-lg-1 {\n margin-left: 8.333333%;\n }\n .offset-lg-2 {\n margin-left: 16.666667%;\n }\n .offset-lg-3 {\n margin-left: 25%;\n }\n .offset-lg-4 {\n margin-left: 33.333333%;\n }\n .offset-lg-5 {\n margin-left: 41.666667%;\n }\n .offset-lg-6 {\n margin-left: 50%;\n }\n .offset-lg-7 {\n margin-left: 58.333333%;\n }\n .offset-lg-8 {\n margin-left: 66.666667%;\n }\n .offset-lg-9 {\n margin-left: 75%;\n }\n .offset-lg-10 {\n margin-left: 83.333333%;\n }\n .offset-lg-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 1200px) {\n .col-xl {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-xl-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-xl-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-xl-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-xl-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-xl-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-xl-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-xl-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-xl-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-xl-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-xl-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-xl-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-xl-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-xl-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-xl-first {\n order: -1;\n }\n .order-xl-1 {\n order: 1;\n }\n .order-xl-2 {\n order: 2;\n }\n .order-xl-3 {\n order: 3;\n }\n .order-xl-4 {\n order: 4;\n }\n .order-xl-5 {\n order: 5;\n }\n .order-xl-6 {\n order: 6;\n }\n .order-xl-7 {\n order: 7;\n }\n .order-xl-8 {\n order: 8;\n }\n .order-xl-9 {\n order: 9;\n }\n .order-xl-10 {\n order: 10;\n }\n .order-xl-11 {\n order: 11;\n }\n .order-xl-12 {\n order: 12;\n }\n .offset-xl-0 {\n margin-left: 0;\n }\n .offset-xl-1 {\n margin-left: 8.333333%;\n }\n .offset-xl-2 {\n margin-left: 16.666667%;\n }\n .offset-xl-3 {\n margin-left: 25%;\n }\n .offset-xl-4 {\n margin-left: 33.333333%;\n }\n .offset-xl-5 {\n margin-left: 41.666667%;\n }\n .offset-xl-6 {\n margin-left: 50%;\n }\n .offset-xl-7 {\n margin-left: 58.333333%;\n }\n .offset-xl-8 {\n margin-left: 66.666667%;\n }\n .offset-xl-9 {\n margin-left: 75%;\n }\n .offset-xl-10 {\n margin-left: 83.333333%;\n }\n .offset-xl-11 {\n margin-left: 91.666667%;\n }\n}\n\n.flex-row {\n flex-direction: row !important;\n}\n\n.flex-column {\n flex-direction: column !important;\n}\n\n.flex-row-reverse {\n flex-direction: row-reverse !important;\n}\n\n.flex-column-reverse {\n flex-direction: column-reverse !important;\n}\n\n.flex-wrap {\n flex-wrap: wrap !important;\n}\n\n.flex-nowrap {\n flex-wrap: nowrap !important;\n}\n\n.flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n}\n\n.justify-content-start {\n justify-content: flex-start !important;\n}\n\n.justify-content-end {\n justify-content: flex-end !important;\n}\n\n.justify-content-center {\n justify-content: center !important;\n}\n\n.justify-content-between {\n justify-content: space-between !important;\n}\n\n.justify-content-around {\n justify-content: space-around !important;\n}\n\n.align-items-start {\n align-items: flex-start !important;\n}\n\n.align-items-end {\n align-items: flex-end !important;\n}\n\n.align-items-center {\n align-items: center !important;\n}\n\n.align-items-baseline {\n align-items: baseline !important;\n}\n\n.align-items-stretch {\n align-items: stretch !important;\n}\n\n.align-content-start {\n align-content: flex-start !important;\n}\n\n.align-content-end {\n align-content: flex-end !important;\n}\n\n.align-content-center {\n align-content: center !important;\n}\n\n.align-content-between {\n align-content: space-between !important;\n}\n\n.align-content-around {\n align-content: space-around !important;\n}\n\n.align-content-stretch {\n align-content: stretch !important;\n}\n\n.align-self-auto {\n align-self: auto !important;\n}\n\n.align-self-start {\n align-self: flex-start !important;\n}\n\n.align-self-end {\n align-self: flex-end !important;\n}\n\n.align-self-center {\n align-self: center !important;\n}\n\n.align-self-baseline {\n align-self: baseline !important;\n}\n\n.align-self-stretch {\n align-self: stretch !important;\n}\n\n@media (min-width: 576px) {\n .flex-sm-row {\n flex-direction: row !important;\n }\n .flex-sm-column {\n flex-direction: column !important;\n }\n .flex-sm-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-sm-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-sm-wrap {\n flex-wrap: wrap !important;\n }\n .flex-sm-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-sm-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-sm-start {\n justify-content: flex-start !important;\n }\n .justify-content-sm-end {\n justify-content: flex-end !important;\n }\n .justify-content-sm-center {\n justify-content: center !important;\n }\n .justify-content-sm-between {\n justify-content: space-between !important;\n }\n .justify-content-sm-around {\n justify-content: space-around !important;\n }\n .align-items-sm-start {\n align-items: flex-start !important;\n }\n .align-items-sm-end {\n align-items: flex-end !important;\n }\n .align-items-sm-center {\n align-items: center !important;\n }\n .align-items-sm-baseline {\n align-items: baseline !important;\n }\n .align-items-sm-stretch {\n align-items: stretch !important;\n }\n .align-content-sm-start {\n align-content: flex-start !important;\n }\n .align-content-sm-end {\n align-content: flex-end !important;\n }\n .align-content-sm-center {\n align-content: center !important;\n }\n .align-content-sm-between {\n align-content: space-between !important;\n }\n .align-content-sm-around {\n align-content: space-around !important;\n }\n .align-content-sm-stretch {\n align-content: stretch !important;\n }\n .align-self-sm-auto {\n align-self: auto !important;\n }\n .align-self-sm-start {\n align-self: flex-start !important;\n }\n .align-self-sm-end {\n align-self: flex-end !important;\n }\n .align-self-sm-center {\n align-self: center !important;\n }\n .align-self-sm-baseline {\n align-self: baseline !important;\n }\n .align-self-sm-stretch {\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 768px) {\n .flex-md-row {\n flex-direction: row !important;\n }\n .flex-md-column {\n flex-direction: column !important;\n }\n .flex-md-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-md-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-md-wrap {\n flex-wrap: wrap !important;\n }\n .flex-md-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-md-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-md-start {\n justify-content: flex-start !important;\n }\n .justify-content-md-end {\n justify-content: flex-end !important;\n }\n .justify-content-md-center {\n justify-content: center !important;\n }\n .justify-content-md-between {\n justify-content: space-between !important;\n }\n .justify-content-md-around {\n justify-content: space-around !important;\n }\n .align-items-md-start {\n align-items: flex-start !important;\n }\n .align-items-md-end {\n align-items: flex-end !important;\n }\n .align-items-md-center {\n align-items: center !important;\n }\n .align-items-md-baseline {\n align-items: baseline !important;\n }\n .align-items-md-stretch {\n align-items: stretch !important;\n }\n .align-content-md-start {\n align-content: flex-start !important;\n }\n .align-content-md-end {\n align-content: flex-end !important;\n }\n .align-content-md-center {\n align-content: center !important;\n }\n .align-content-md-between {\n align-content: space-between !important;\n }\n .align-content-md-around {\n align-content: space-around !important;\n }\n .align-content-md-stretch {\n align-content: stretch !important;\n }\n .align-self-md-auto {\n align-self: auto !important;\n }\n .align-self-md-start {\n align-self: flex-start !important;\n }\n .align-self-md-end {\n align-self: flex-end !important;\n }\n .align-self-md-center {\n align-self: center !important;\n }\n .align-self-md-baseline {\n align-self: baseline !important;\n }\n .align-self-md-stretch {\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 992px) {\n .flex-lg-row {\n flex-direction: row !important;\n }\n .flex-lg-column {\n flex-direction: column !important;\n }\n .flex-lg-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-lg-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-lg-wrap {\n flex-wrap: wrap !important;\n }\n .flex-lg-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-lg-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-lg-start {\n justify-content: flex-start !important;\n }\n .justify-content-lg-end {\n justify-content: flex-end !important;\n }\n .justify-content-lg-center {\n justify-content: center !important;\n }\n .justify-content-lg-between {\n justify-content: space-between !important;\n }\n .justify-content-lg-around {\n justify-content: space-around !important;\n }\n .align-items-lg-start {\n align-items: flex-start !important;\n }\n .align-items-lg-end {\n align-items: flex-end !important;\n }\n .align-items-lg-center {\n align-items: center !important;\n }\n .align-items-lg-baseline {\n align-items: baseline !important;\n }\n .align-items-lg-stretch {\n align-items: stretch !important;\n }\n .align-content-lg-start {\n align-content: flex-start !important;\n }\n .align-content-lg-end {\n align-content: flex-end !important;\n }\n .align-content-lg-center {\n align-content: center !important;\n }\n .align-content-lg-between {\n align-content: space-between !important;\n }\n .align-content-lg-around {\n align-content: space-around !important;\n }\n .align-content-lg-stretch {\n align-content: stretch !important;\n }\n .align-self-lg-auto {\n align-self: auto !important;\n }\n .align-self-lg-start {\n align-self: flex-start !important;\n }\n .align-self-lg-end {\n align-self: flex-end !important;\n }\n .align-self-lg-center {\n align-self: center !important;\n }\n .align-self-lg-baseline {\n align-self: baseline !important;\n }\n .align-self-lg-stretch {\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 1200px) {\n .flex-xl-row {\n flex-direction: row !important;\n }\n .flex-xl-column {\n flex-direction: column !important;\n }\n .flex-xl-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-xl-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-xl-wrap {\n flex-wrap: wrap !important;\n }\n .flex-xl-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-xl-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-xl-start {\n justify-content: flex-start !important;\n }\n .justify-content-xl-end {\n justify-content: flex-end !important;\n }\n .justify-content-xl-center {\n justify-content: center !important;\n }\n .justify-content-xl-between {\n justify-content: space-between !important;\n }\n .justify-content-xl-around {\n justify-content: space-around !important;\n }\n .align-items-xl-start {\n align-items: flex-start !important;\n }\n .align-items-xl-end {\n align-items: flex-end !important;\n }\n .align-items-xl-center {\n align-items: center !important;\n }\n .align-items-xl-baseline {\n align-items: baseline !important;\n }\n .align-items-xl-stretch {\n align-items: stretch !important;\n }\n .align-content-xl-start {\n align-content: flex-start !important;\n }\n .align-content-xl-end {\n align-content: flex-end !important;\n }\n .align-content-xl-center {\n align-content: center !important;\n }\n .align-content-xl-between {\n align-content: space-between !important;\n }\n .align-content-xl-around {\n align-content: space-around !important;\n }\n .align-content-xl-stretch {\n align-content: stretch !important;\n }\n .align-self-xl-auto {\n align-self: auto !important;\n }\n .align-self-xl-start {\n align-self: flex-start !important;\n }\n .align-self-xl-end {\n align-self: flex-end !important;\n }\n .align-self-xl-center {\n align-self: center !important;\n }\n .align-self-xl-baseline {\n align-self: baseline !important;\n }\n .align-self-xl-stretch {\n align-self: stretch !important;\n }\n}\n\n/*# sourceMappingURL=bootstrap-grid.css.map */","// Container widths\n//\n// Set the container width, and override it for fixed navbars in media queries.\n\n@if $enable-grid-classes {\n .container {\n @include make-container();\n @include make-container-max-widths();\n }\n}\n\n// Fluid container\n//\n// Utilizes the mixin meant for fixed width containers, but with 100% width for\n// fluid, full width layouts.\n\n@if $enable-grid-classes {\n .container-fluid {\n @include make-container();\n }\n}\n\n// Row\n//\n// Rows contain and clear the floats of your columns.\n\n@if $enable-grid-classes {\n .row {\n @include make-row();\n }\n\n // Remove the negative margin from default .row, then the horizontal padding\n // from all immediate children columns (to prevent runaway style inheritance).\n .no-gutters {\n margin-right: 0;\n margin-left: 0;\n\n > .col,\n > [class*=\"col-\"] {\n padding-right: 0;\n padding-left: 0;\n }\n }\n}\n\n// Columns\n//\n// Common styles for small and large grid columns\n\n@if $enable-grid-classes {\n @include make-grid-columns();\n}\n","/// Grid system\n//\n// Generate semantic grid columns with these mixins.\n\n@mixin make-container() {\n width: 100%;\n padding-right: ($grid-gutter-width / 2);\n padding-left: ($grid-gutter-width / 2);\n margin-right: auto;\n margin-left: auto;\n}\n\n\n// For each breakpoint, define the maximum width of the container in a media query\n@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {\n @each $breakpoint, $container-max-width in $max-widths {\n @include media-breakpoint-up($breakpoint, $breakpoints) {\n max-width: $container-max-width;\n }\n }\n}\n\n@mixin make-row() {\n display: flex;\n flex-wrap: wrap;\n margin-right: ($grid-gutter-width / -2);\n margin-left: ($grid-gutter-width / -2);\n}\n\n@mixin make-col-ready() {\n position: relative;\n // Prevent columns from becoming too narrow when at smaller grid tiers by\n // always setting `width: 100%;`. This works because we use `flex` values\n // later on to override this initial width.\n width: 100%;\n min-height: 1px; // Prevent collapsing\n padding-right: ($grid-gutter-width / 2);\n padding-left: ($grid-gutter-width / 2);\n}\n\n@mixin make-col($size, $columns: $grid-columns) {\n flex: 0 0 percentage($size / $columns);\n // Add a `max-width` to ensure content within each column does not blow out\n // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari\n // do not appear to require this.\n max-width: percentage($size / $columns);\n}\n\n@mixin make-col-offset($size, $columns: $grid-columns) {\n $num: $size / $columns;\n margin-left: if($num == 0, 0, percentage($num));\n}\n","// Breakpoint viewport sizes and media queries.\n//\n// Breakpoints are defined as a map of (name: minimum width), order from small to large:\n//\n// (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n//\n// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n\n// Name of the next breakpoint, or null for the last breakpoint.\n//\n// >> breakpoint-next(sm)\n// md\n// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// md\n// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n// md\n@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {\n $n: index($breakpoint-names, $name);\n @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);\n}\n\n// Minimum breakpoint width. Null for the smallest (first) breakpoint.\n//\n// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// 576px\n@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {\n $min: map-get($breakpoints, $name);\n @return if($min != 0, $min, null);\n}\n\n// Maximum breakpoint width. Null for the largest (last) breakpoint.\n// The maximum value is calculated as the minimum of the next one less 0.1.\n//\n// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// 767px\n@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {\n $next: breakpoint-next($name, $breakpoints);\n @return if($next, breakpoint-min($next, $breakpoints) - 1px, null);\n}\n\n// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.\n// Useful for making responsive utilities.\n//\n// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// \"\" (Returns a blank string)\n// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// \"-sm\"\n@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {\n @return if(breakpoint-min($name, $breakpoints) == null, \"\", \"-#{$name}\");\n}\n\n// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n// Makes the @content apply to the given breakpoint and wider.\n@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($name, $breakpoints);\n @if $min {\n @media (min-width: $min) {\n @content;\n }\n } @else {\n @content;\n }\n}\n\n// Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n// Makes the @content apply to the given breakpoint and narrower.\n@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {\n $max: breakpoint-max($name, $breakpoints);\n @if $max {\n @media (max-width: $max) {\n @content;\n }\n } @else {\n @content;\n }\n}\n\n// Media that spans multiple breakpoint widths.\n// Makes the @content apply between the min and max breakpoints\n@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($lower, $breakpoints);\n $max: breakpoint-max($upper, $breakpoints);\n\n @if $min != null and $max != null {\n @media (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else if $max == null {\n @include media-breakpoint-up($lower) {\n @content;\n }\n } @else if $min == null {\n @include media-breakpoint-down($upper) {\n @content;\n }\n }\n}\n\n// Media between the breakpoint's minimum and maximum widths.\n// No minimum for the smallest breakpoint, and no maximum for the largest one.\n// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($name, $breakpoints);\n $max: breakpoint-max($name, $breakpoints);\n\n @if $min != null and $max != null {\n @media (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else if $max == null {\n @include media-breakpoint-up($name) {\n @content;\n }\n } @else if $min == null {\n @include media-breakpoint-down($name) {\n @content;\n }\n }\n}\n","// Variables\n//\n// Variables should follow the `$component-state-property-size` formula for\n// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.\n\n\n//\n// Color system\n//\n\n// stylelint-disable\n$white: #fff !default;\n$gray-100: #f8f9fa !default;\n$gray-200: #e9ecef !default;\n$gray-300: #dee2e6 !default;\n$gray-400: #ced4da !default;\n$gray-500: #adb5bd !default;\n$gray-600: #868e96 !default;\n$gray-700: #495057 !default;\n$gray-800: #343a40 !default;\n$gray-900: #212529 !default;\n$black: #000 !default;\n\n$grays: () !default;\n$grays: map-merge((\n \"100\": $gray-100,\n \"200\": $gray-200,\n \"300\": $gray-300,\n \"400\": $gray-400,\n \"500\": $gray-500,\n \"600\": $gray-600,\n \"700\": $gray-700,\n \"800\": $gray-800,\n \"900\": $gray-900\n), $grays);\n\n$blue: #007bff !default;\n$indigo: #6610f2 !default;\n$purple: #6f42c1 !default;\n$pink: #e83e8c !default;\n$red: #dc3545 !default;\n$orange: #fd7e14 !default;\n$yellow: #ffc107 !default;\n$green: #28a745 !default;\n$teal: #20c997 !default;\n$cyan: #17a2b8 !default;\n\n$colors: () !default;\n$colors: map-merge((\n \"blue\": $blue,\n \"indigo\": $indigo,\n \"purple\": $purple,\n \"pink\": $pink,\n \"red\": $red,\n \"orange\": $orange,\n \"yellow\": $yellow,\n \"green\": $green,\n \"teal\": $teal,\n \"cyan\": $cyan,\n \"white\": $white,\n \"gray\": $gray-600,\n \"gray-dark\": $gray-800\n), $colors);\n\n$primary: $blue !default;\n$secondary: $gray-600 !default;\n$success: $green !default;\n$info: $cyan !default;\n$warning: $yellow !default;\n$danger: $red !default;\n$light: $gray-100 !default;\n$dark: $gray-800 !default;\n\n$theme-colors: () !default;\n$theme-colors: map-merge((\n \"primary\": $primary,\n \"secondary\": $secondary,\n \"success\": $success,\n \"info\": $info,\n \"warning\": $warning,\n \"danger\": $danger,\n \"light\": $light,\n \"dark\": $dark\n), $theme-colors);\n// stylelint-enable\n\n// Set a specific jump point for requesting color jumps\n$theme-color-interval: 8% !default;\n\n\n// Options\n//\n// Quickly modify global styling by enabling or disabling optional features.\n\n$enable-caret: true !default;\n$enable-rounded: true !default;\n$enable-shadows: false !default;\n$enable-gradients: false !default;\n$enable-transitions: true !default;\n$enable-hover-media-query: false !default;\n$enable-grid-classes: true !default;\n$enable-print-styles: true !default;\n\n\n// Spacing\n//\n// Control the default styling of most Bootstrap elements by modifying these\n// variables. Mostly focused on spacing.\n// You can add more entries to the $spacers map, should you need more variation.\n\n$spacer: 1rem !default;\n$spacers: (\n 0: 0,\n 1: ($spacer * .25),\n 2: ($spacer * .5),\n 3: $spacer,\n 4: ($spacer * 1.5),\n 5: ($spacer * 3)\n) !default;\n\n// This variable affects the `.h-*` and `.w-*` classes.\n$sizes: (\n 25: 25%,\n 50: 50%,\n 75: 75%,\n 100: 100%\n) !default;\n\n// Body\n//\n// Settings for the `` element.\n\n$body-bg: $white !default;\n$body-color: $gray-900 !default;\n\n// Links\n//\n// Style anchor elements.\n\n$link-color: theme-color(\"primary\") !default;\n$link-decoration: none !default;\n$link-hover-color: darken($link-color, 15%) !default;\n$link-hover-decoration: underline !default;\n\n// Paragraphs\n//\n// Style p element.\n\n$paragraph-margin-bottom: 1rem !default;\n\n\n// Grid breakpoints\n//\n// Define the minimum dimensions at which your layout will change,\n// adapting to different screen sizes, for use in media queries.\n\n$grid-breakpoints: (\n xs: 0,\n sm: 576px,\n md: 768px,\n lg: 992px,\n xl: 1200px\n) !default;\n\n@include _assert-ascending($grid-breakpoints, \"$grid-breakpoints\");\n@include _assert-starts-at-zero($grid-breakpoints);\n\n\n// Grid containers\n//\n// Define the maximum width of `.container` for different screen sizes.\n\n$container-max-widths: (\n sm: 540px,\n md: 720px,\n lg: 960px,\n xl: 1140px\n) !default;\n\n@include _assert-ascending($container-max-widths, \"$container-max-widths\");\n\n\n// Grid columns\n//\n// Set the number of columns and specify the width of the gutters.\n\n$grid-columns: 12 !default;\n$grid-gutter-width: 30px !default;\n\n// Components\n//\n// Define common padding and border radius sizes and more.\n\n$line-height-lg: 1.5 !default;\n$line-height-sm: 1.5 !default;\n\n$border-width: 1px !default;\n$border-color: $gray-200 !default;\n\n$border-radius: .25rem !default;\n$border-radius-lg: .3rem !default;\n$border-radius-sm: .2rem !default;\n\n$component-active-color: $white !default;\n$component-active-bg: theme-color(\"primary\") !default;\n\n$caret-width: .3em !default;\n\n$transition-base: all .2s ease-in-out !default;\n$transition-fade: opacity .15s linear !default;\n$transition-collapse: height .35s ease !default;\n\n\n// Fonts\n//\n// Font, line-height, and color for body text, headings, and more.\n\n// stylelint-disable value-keyword-case\n$font-family-sans-serif: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !default;\n$font-family-monospace: \"SFMono-Regular\", Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace !default;\n$font-family-base: $font-family-sans-serif !default;\n// stylelint-enable value-keyword-case\n\n$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`\n$font-size-lg: ($font-size-base * 1.25) !default;\n$font-size-sm: ($font-size-base * .875) !default;\n\n$font-weight-light: 300 !default;\n$font-weight-normal: 400 !default;\n$font-weight-bold: 700 !default;\n\n$font-weight-base: $font-weight-normal !default;\n$line-height-base: 1.5 !default;\n\n$h1-font-size: $font-size-base * 2.5 !default;\n$h2-font-size: $font-size-base * 2 !default;\n$h3-font-size: $font-size-base * 1.75 !default;\n$h4-font-size: $font-size-base * 1.5 !default;\n$h5-font-size: $font-size-base * 1.25 !default;\n$h6-font-size: $font-size-base !default;\n\n$headings-margin-bottom: ($spacer / 2) !default;\n$headings-font-family: inherit !default;\n$headings-font-weight: 500 !default;\n$headings-line-height: 1.2 !default;\n$headings-color: inherit !default;\n\n$display1-size: 6rem !default;\n$display2-size: 5.5rem !default;\n$display3-size: 4.5rem !default;\n$display4-size: 3.5rem !default;\n\n$display1-weight: 300 !default;\n$display2-weight: 300 !default;\n$display3-weight: 300 !default;\n$display4-weight: 300 !default;\n$display-line-height: $headings-line-height !default;\n\n$lead-font-size: ($font-size-base * 1.25) !default;\n$lead-font-weight: 300 !default;\n\n$small-font-size: 80% !default;\n\n$text-muted: $gray-600 !default;\n\n$blockquote-small-color: $gray-600 !default;\n$blockquote-font-size: ($font-size-base * 1.25) !default;\n\n$hr-border-color: rgba($black,.1) !default;\n$hr-border-width: $border-width !default;\n\n$mark-padding: .2em !default;\n\n$dt-font-weight: $font-weight-bold !default;\n\n$kbd-box-shadow: inset 0 -.1rem 0 rgba($black,.25) !default;\n$nested-kbd-font-weight: $font-weight-bold !default;\n\n$list-inline-padding: 5px !default;\n\n$mark-bg: #fcf8e3 !default;\n\n\n// Tables\n//\n// Customizes the `.table` component with basic values, each used across all table variations.\n\n$table-cell-padding: .75rem !default;\n$table-cell-padding-sm: .3rem !default;\n\n$table-bg: transparent !default;\n$table-accent-bg: rgba($black,.05) !default;\n$table-hover-bg: rgba($black,.075) !default;\n$table-active-bg: $table-hover-bg !default;\n\n$table-border-width: $border-width !default;\n$table-border-color: $gray-200 !default;\n\n$table-head-bg: $gray-200 !default;\n$table-head-color: $gray-700 !default;\n\n$table-dark-bg: $gray-900 !default;\n$table-dark-accent-bg: rgba($white, .05) !default;\n$table-dark-hover-bg: rgba($white, .075) !default;\n$table-dark-border-color: lighten($gray-900, 7.5%) !default;\n$table-dark-color: $body-bg !default;\n\n\n// Buttons\n//\n// For each of Bootstrap's buttons, define text, background and border color.\n\n$input-btn-padding-y: .375rem !default;\n$input-btn-padding-x: .75rem !default;\n$input-btn-line-height: $line-height-base !default;\n\n$input-btn-focus-width: .2rem !default;\n$input-btn-focus-color: rgba(theme-color(\"primary\"), .25) !default;\n$input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color !default;\n\n$input-btn-padding-y-sm: .25rem !default;\n$input-btn-padding-x-sm: .5rem !default;\n$input-btn-line-height-sm: $line-height-sm !default;\n\n$input-btn-padding-y-lg: .5rem !default;\n$input-btn-padding-x-lg: 1rem !default;\n$input-btn-line-height-lg: $line-height-lg !default;\n\n$btn-font-weight: $font-weight-normal !default;\n$btn-box-shadow: inset 0 1px 0 rgba($white,.15), 0 1px 1px rgba($black,.075) !default;\n$btn-active-box-shadow: inset 0 3px 5px rgba($black,.125) !default;\n\n$btn-link-disabled-color: $gray-600 !default;\n\n$btn-block-spacing-y: .5rem !default;\n\n// Allows for customizing button radius independently from global border radius\n$btn-border-radius: $border-radius !default;\n$btn-border-radius-lg: $border-radius-lg !default;\n$btn-border-radius-sm: $border-radius-sm !default;\n\n$btn-transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;\n\n\n// Forms\n\n$input-bg: $white !default;\n$input-disabled-bg: $gray-200 !default;\n\n$input-color: $gray-700 !default;\n$input-border-color: $gray-400 !default;\n$input-btn-border-width: $border-width !default; // For form controls and buttons\n$input-box-shadow: inset 0 1px 1px rgba($black,.075) !default;\n\n$input-border-radius: $border-radius !default;\n$input-border-radius-lg: $border-radius-lg !default;\n$input-border-radius-sm: $border-radius-sm !default;\n\n$input-focus-bg: $input-bg !default;\n$input-focus-border-color: lighten(theme-color(\"primary\"), 25%) !default;\n$input-focus-color: $input-color !default;\n\n$input-placeholder-color: $gray-600 !default;\n\n$input-height-border: $input-btn-border-width * 2 !default;\n\n$input-height-inner: ($font-size-base * $input-btn-line-height) + ($input-btn-padding-y * 2) !default;\n$input-height: calc(#{$input-height-inner} + #{$input-height-border}) !default;\n\n$input-height-inner-sm: ($font-size-sm * $input-btn-line-height-sm) + ($input-btn-padding-y-sm * 2) !default;\n$input-height-sm: calc(#{$input-height-inner-sm} + #{$input-height-border}) !default;\n\n$input-height-inner-lg: ($font-size-lg * $input-btn-line-height-lg) + ($input-btn-padding-y-lg * 2) !default;\n$input-height-lg: calc(#{$input-height-inner-lg} + #{$input-height-border}) !default;\n\n$input-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s !default;\n\n$form-text-margin-top: .25rem !default;\n\n$form-check-margin-bottom: .5rem !default;\n$form-check-input-gutter: 1.25rem !default;\n$form-check-input-margin-y: .25rem !default;\n$form-check-input-margin-x: .25rem !default;\n\n$form-check-inline-margin-x: .75rem !default;\n\n$form-group-margin-bottom: 1rem !default;\n\n$input-group-addon-color: $input-color !default;\n$input-group-addon-bg: $gray-200 !default;\n$input-group-addon-border-color: $input-border-color !default;\n\n$custom-control-gutter: 1.5rem !default;\n$custom-control-spacer-y: .25rem !default;\n$custom-control-spacer-x: 1rem !default;\n\n$custom-control-indicator-size: 1rem !default;\n$custom-control-indicator-bg: #ddd !default;\n$custom-control-indicator-bg-size: 50% 50% !default;\n$custom-control-indicator-box-shadow: inset 0 .25rem .25rem rgba($black,.1) !default;\n\n$custom-control-indicator-disabled-bg: $gray-200 !default;\n$custom-control-description-disabled-color: $gray-600 !default;\n\n$custom-control-indicator-checked-color: $white !default;\n$custom-control-indicator-checked-bg: theme-color(\"primary\") !default;\n$custom-control-indicator-checked-box-shadow: none !default;\n\n$custom-control-indicator-focus-box-shadow: 0 0 0 1px $body-bg, $input-btn-focus-box-shadow !default;\n\n$custom-control-indicator-active-color: $white !default;\n$custom-control-indicator-active-bg: lighten(theme-color(\"primary\"), 35%) !default;\n$custom-control-indicator-active-box-shadow: none !default;\n\n$custom-checkbox-indicator-border-radius: $border-radius !default;\n$custom-checkbox-indicator-icon-checked: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#{$custom-control-indicator-checked-color}' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n\n$custom-checkbox-indicator-indeterminate-bg: theme-color(\"primary\") !default;\n$custom-checkbox-indicator-indeterminate-color: $custom-control-indicator-checked-color !default;\n$custom-checkbox-indicator-icon-indeterminate: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='#{$custom-checkbox-indicator-indeterminate-color}' d='M0 2h4'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$custom-checkbox-indicator-indeterminate-box-shadow: none !default;\n\n$custom-radio-indicator-border-radius: 50% !default;\n$custom-radio-indicator-icon-checked: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='#{$custom-control-indicator-checked-color}'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n\n$custom-select-padding-y: .375rem !default;\n$custom-select-padding-x: .75rem !default;\n$custom-select-height: $input-height !default;\n$custom-select-indicator-padding: 1rem !default; // Extra padding to account for the presence of the background-image based indicator\n$custom-select-line-height: $input-btn-line-height !default;\n$custom-select-color: $input-color !default;\n$custom-select-disabled-color: $gray-600 !default;\n$custom-select-bg: $white !default;\n$custom-select-disabled-bg: $gray-200 !default;\n$custom-select-bg-size: 8px 10px !default; // In pixels because image dimensions\n$custom-select-indicator-color: #333 !default;\n$custom-select-indicator: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='#{$custom-select-indicator-color}' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$custom-select-border-width: $input-btn-border-width !default;\n$custom-select-border-color: $input-border-color !default;\n$custom-select-border-radius: $border-radius !default;\n\n$custom-select-focus-border-color: lighten(theme-color(\"primary\"), 25%) !default;\n$custom-select-focus-box-shadow: inset 0 1px 2px rgba($black, .075), 0 0 5px rgba($custom-select-focus-border-color, .5) !default;\n\n$custom-select-font-size-sm: 75% !default;\n$custom-select-height-sm: $input-height-sm !default;\n\n$custom-file-height: $input-height !default;\n$custom-file-width: 14rem !default;\n$custom-file-focus-box-shadow: 0 0 0 .075rem $white, 0 0 0 .2rem theme-color(\"primary\") !default;\n\n$custom-file-padding-y: $input-btn-padding-y !default;\n$custom-file-padding-x: $input-btn-padding-x !default;\n$custom-file-line-height: $input-btn-line-height !default;\n$custom-file-color: $input-color !default;\n$custom-file-bg: $input-bg !default;\n$custom-file-border-width: $input-btn-border-width !default;\n$custom-file-border-color: $input-border-color !default;\n$custom-file-border-radius: $input-border-radius !default;\n$custom-file-box-shadow: $input-box-shadow !default;\n$custom-file-button-color: $custom-file-color !default;\n$custom-file-button-bg: $input-group-addon-bg !default;\n$custom-file-text: (\n placeholder: (\n en: \"Choose file...\"\n ),\n button-label: (\n en: \"Browse\"\n )\n) !default;\n\n\n// Form validation\n$form-feedback-valid-color: theme-color(\"success\") !default;\n$form-feedback-invalid-color: theme-color(\"danger\") !default;\n\n\n// Dropdowns\n//\n// Dropdown menu container and contents.\n\n$dropdown-min-width: 10rem !default;\n$dropdown-padding-y: .5rem !default;\n$dropdown-spacer: .125rem !default;\n$dropdown-bg: $white !default;\n$dropdown-border-color: rgba($black,.15) !default;\n$dropdown-border-width: $border-width !default;\n$dropdown-divider-bg: $gray-200 !default;\n$dropdown-box-shadow: 0 .5rem 1rem rgba($black,.175) !default;\n\n$dropdown-link-color: $gray-900 !default;\n$dropdown-link-hover-color: darken($gray-900, 5%) !default;\n$dropdown-link-hover-bg: $gray-100 !default;\n\n$dropdown-link-active-color: $component-active-color !default;\n$dropdown-link-active-bg: $component-active-bg !default;\n\n$dropdown-link-disabled-color: $gray-600 !default;\n\n$dropdown-item-padding-y: .25rem !default;\n$dropdown-item-padding-x: 1.5rem !default;\n\n$dropdown-header-color: $gray-600 !default;\n\n\n// Z-index master list\n//\n// Warning: Avoid customizing these values. They're used for a bird's eye view\n// of components dependent on the z-axis and are designed to all work together.\n\n$zindex-dropdown: 1000 !default;\n$zindex-sticky: 1020 !default;\n$zindex-fixed: 1030 !default;\n$zindex-modal-backdrop: 1040 !default;\n$zindex-modal: 1050 !default;\n$zindex-popover: 1060 !default;\n$zindex-tooltip: 1070 !default;\n\n// Navs\n\n$nav-link-padding-y: .5rem !default;\n$nav-link-padding-x: 1rem !default;\n$nav-link-disabled-color: $gray-600 !default;\n\n$nav-tabs-border-color: #ddd !default;\n$nav-tabs-border-width: $border-width !default;\n$nav-tabs-border-radius: $border-radius !default;\n$nav-tabs-link-hover-border-color: $gray-200 !default;\n$nav-tabs-link-active-color: $gray-700 !default;\n$nav-tabs-link-active-bg: $body-bg !default;\n$nav-tabs-link-active-border-color: #ddd !default;\n\n$nav-pills-border-radius: $border-radius !default;\n$nav-pills-link-active-color: $component-active-color !default;\n$nav-pills-link-active-bg: $component-active-bg !default;\n\n// Navbar\n\n$navbar-padding-y: ($spacer / 2) !default;\n$navbar-padding-x: $spacer !default;\n\n$navbar-brand-font-size: $font-size-lg !default;\n// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link\n$nav-link-height: ($font-size-base * $line-height-base + $nav-link-padding-y * 2) !default;\n$navbar-brand-height: $navbar-brand-font-size * $line-height-base !default;\n$navbar-brand-padding-y: ($nav-link-height - $navbar-brand-height) / 2 !default;\n\n$navbar-toggler-padding-y: .25rem !default;\n$navbar-toggler-padding-x: .75rem !default;\n$navbar-toggler-font-size: $font-size-lg !default;\n$navbar-toggler-border-radius: $btn-border-radius !default;\n\n$navbar-dark-color: rgba($white,.5) !default;\n$navbar-dark-hover-color: rgba($white,.75) !default;\n$navbar-dark-active-color: $white !default;\n$navbar-dark-disabled-color: rgba($white,.25) !default;\n$navbar-dark-toggler-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-dark-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$navbar-dark-toggler-border-color: rgba($white,.1) !default;\n\n$navbar-light-color: rgba($black,.5) !default;\n$navbar-light-hover-color: rgba($black,.7) !default;\n$navbar-light-active-color: rgba($black,.9) !default;\n$navbar-light-disabled-color: rgba($black,.3) !default;\n$navbar-light-toggler-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-light-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$navbar-light-toggler-border-color: rgba($black,.1) !default;\n\n// Pagination\n\n$pagination-padding-y: .5rem !default;\n$pagination-padding-x: .75rem !default;\n$pagination-padding-y-sm: .25rem !default;\n$pagination-padding-x-sm: .5rem !default;\n$pagination-padding-y-lg: .75rem !default;\n$pagination-padding-x-lg: 1.5rem !default;\n$pagination-line-height: 1.25 !default;\n\n$pagination-color: $link-color !default;\n$pagination-bg: $white !default;\n$pagination-border-width: $border-width !default;\n$pagination-border-color: #ddd !default;\n\n$pagination-hover-color: $link-hover-color !default;\n$pagination-hover-bg: $gray-200 !default;\n$pagination-hover-border-color: #ddd !default;\n\n$pagination-active-color: $white !default;\n$pagination-active-bg: theme-color(\"primary\") !default;\n$pagination-active-border-color: theme-color(\"primary\") !default;\n\n$pagination-disabled-color: $gray-600 !default;\n$pagination-disabled-bg: $white !default;\n$pagination-disabled-border-color: #ddd !default;\n\n\n// Jumbotron\n\n$jumbotron-padding: 2rem !default;\n$jumbotron-bg: $gray-200 !default;\n\n\n// Cards\n\n$card-spacer-y: .75rem !default;\n$card-spacer-x: 1.25rem !default;\n$card-border-width: $border-width !default;\n$card-border-radius: $border-radius !default;\n$card-border-color: rgba($black,.125) !default;\n$card-inner-border-radius: calc(#{$card-border-radius} - #{$card-border-width}) !default;\n$card-cap-bg: rgba($black, .03) !default;\n$card-bg: $white !default;\n\n$card-img-overlay-padding: 1.25rem !default;\n\n$card-group-margin: ($grid-gutter-width / 2) !default;\n$card-deck-margin: $card-group-margin !default;\n\n$card-columns-count: 3 !default;\n$card-columns-gap: 1.25rem !default;\n$card-columns-margin: $card-spacer-y !default;\n\n\n// Tooltips\n\n$tooltip-max-width: 200px !default;\n$tooltip-color: $white !default;\n$tooltip-bg: $black !default;\n$tooltip-opacity: .9 !default;\n$tooltip-padding-y: 3px !default;\n$tooltip-padding-x: 8px !default;\n$tooltip-margin: 0 !default;\n\n\n$tooltip-arrow-width: 5px !default;\n$tooltip-arrow-height: 5px !default;\n$tooltip-arrow-color: $tooltip-bg !default;\n\n\n// Popovers\n\n$popover-bg: $white !default;\n$popover-max-width: 276px !default;\n$popover-border-width: $border-width !default;\n$popover-border-color: rgba($black,.2) !default;\n$popover-box-shadow: 0 .25rem .5rem rgba($black,.2) !default;\n\n$popover-header-bg: darken($popover-bg, 3%) !default;\n$popover-header-color: $headings-color !default;\n$popover-header-padding-y: .5rem !default;\n$popover-header-padding-x: .75rem !default;\n\n$popover-body-color: $body-color !default;\n$popover-body-padding-y: $popover-header-padding-y !default;\n$popover-body-padding-x: $popover-header-padding-x !default;\n\n$popover-arrow-width: .8rem !default;\n$popover-arrow-height: .4rem !default;\n$popover-arrow-color: $popover-bg !default;\n\n$popover-arrow-outer-color: fade-in($popover-border-color, .05) !default;\n\n\n// Badges\n\n$badge-font-size: 75% !default;\n$badge-font-weight: $font-weight-bold !default;\n$badge-padding-y: .25em !default;\n$badge-padding-x: .4em !default;\n$badge-border-radius: $border-radius !default;\n\n$badge-pill-padding-x: .6em !default;\n// Use a higher than normal value to ensure completely rounded edges when\n// customizing padding or font-size on labels.\n$badge-pill-border-radius: 10rem !default;\n\n\n// Modals\n\n// Padding applied to the modal body\n$modal-inner-padding: 15px !default;\n\n$modal-dialog-margin: 10px !default;\n$modal-dialog-margin-y-sm-up: 30px !default;\n\n$modal-title-line-height: $line-height-base !default;\n\n$modal-content-bg: $white !default;\n$modal-content-border-color: rgba($black,.2) !default;\n$modal-content-border-width: $border-width !default;\n$modal-content-box-shadow-xs: 0 3px 9px rgba($black,.5) !default;\n$modal-content-box-shadow-sm-up: 0 5px 15px rgba($black,.5) !default;\n\n$modal-backdrop-bg: $black !default;\n$modal-backdrop-opacity: .5 !default;\n$modal-header-border-color: $gray-200 !default;\n$modal-footer-border-color: $modal-header-border-color !default;\n$modal-header-border-width: $modal-content-border-width !default;\n$modal-footer-border-width: $modal-header-border-width !default;\n$modal-header-padding: 15px !default;\n\n$modal-lg: 800px !default;\n$modal-md: 500px !default;\n$modal-sm: 300px !default;\n\n$modal-transition: transform .3s ease-out !default;\n\n\n// Alerts\n//\n// Define alert colors, border radius, and padding.\n\n$alert-padding-y: .75rem !default;\n$alert-padding-x: 1.25rem !default;\n$alert-margin-bottom: 1rem !default;\n$alert-border-radius: $border-radius !default;\n$alert-link-font-weight: $font-weight-bold !default;\n$alert-border-width: $border-width !default;\n\n\n// Progress bars\n\n$progress-height: 1rem !default;\n$progress-font-size: ($font-size-base * .75) !default;\n$progress-bg: $gray-200 !default;\n$progress-border-radius: $border-radius !default;\n$progress-box-shadow: inset 0 .1rem .1rem rgba($black,.1) !default;\n$progress-bar-color: $white !default;\n$progress-bar-bg: theme-color(\"primary\") !default;\n$progress-bar-animation-timing: 1s linear infinite !default;\n$progress-bar-transition: width .6s ease !default;\n\n// List group\n\n$list-group-bg: $white !default;\n$list-group-border-color: rgba($black,.125) !default;\n$list-group-border-width: $border-width !default;\n$list-group-border-radius: $border-radius !default;\n\n$list-group-item-padding-y: .75rem !default;\n$list-group-item-padding-x: 1.25rem !default;\n\n$list-group-hover-bg: $gray-100 !default;\n$list-group-active-color: $component-active-color !default;\n$list-group-active-bg: $component-active-bg !default;\n$list-group-active-border-color: $list-group-active-bg !default;\n\n$list-group-disabled-color: $gray-600 !default;\n$list-group-disabled-bg: $list-group-bg !default;\n\n$list-group-action-color: $gray-700 !default;\n$list-group-action-hover-color: $list-group-action-color !default;\n\n$list-group-action-active-color: $body-color !default;\n$list-group-action-active-bg: $gray-200 !default;\n\n\n// Image thumbnails\n\n$thumbnail-padding: .25rem !default;\n$thumbnail-bg: $body-bg !default;\n$thumbnail-border-width: $border-width !default;\n$thumbnail-border-color: #ddd !default;\n$thumbnail-border-radius: $border-radius !default;\n$thumbnail-box-shadow: 0 1px 2px rgba($black,.075) !default;\n$thumbnail-transition: all .2s ease-in-out !default;\n\n\n// Figures\n\n$figure-caption-font-size: 90% !default;\n$figure-caption-color: $gray-600 !default;\n\n\n// Breadcrumbs\n\n$breadcrumb-padding-y: .75rem !default;\n$breadcrumb-padding-x: 1rem !default;\n$breadcrumb-item-padding: .5rem !default;\n\n$breadcrumb-margin-bottom: 1rem !default;\n\n$breadcrumb-bg: $gray-200 !default;\n$breadcrumb-divider-color: $gray-600 !default;\n$breadcrumb-active-color: $gray-600 !default;\n$breadcrumb-divider: \"/\" !default;\n\n\n// Carousel\n\n$carousel-control-color: $white !default;\n$carousel-control-width: 15% !default;\n$carousel-control-opacity: .5 !default;\n\n$carousel-indicator-width: 30px !default;\n$carousel-indicator-height: 3px !default;\n$carousel-indicator-spacer: 3px !default;\n$carousel-indicator-active-bg: $white !default;\n\n$carousel-caption-width: 70% !default;\n$carousel-caption-color: $white !default;\n\n$carousel-control-icon-width: 20px !default;\n\n$carousel-control-prev-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$carousel-control-next-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n\n$carousel-transition: transform .6s ease !default;\n\n\n// Close\n\n$close-font-size: $font-size-base * 1.5 !default;\n$close-font-weight: $font-weight-bold !default;\n$close-color: $black !default;\n$close-text-shadow: 0 1px 0 $white !default;\n\n// Code\n\n$code-font-size: 90% !default;\n$code-padding-y: .2rem !default;\n$code-padding-x: .4rem !default;\n$code-color: #bd4147 !default;\n$code-bg: $gray-100 !default;\n\n$kbd-color: $white !default;\n$kbd-bg: $gray-900 !default;\n\n$pre-color: $gray-900 !default;\n$pre-scrollable-max-height: 340px !default;\n","// Framework grid generation\n//\n// Used only by Bootstrap to generate the correct number of grid classes given\n// any value of `$grid-columns`.\n\n@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {\n // Common properties for all breakpoints\n %grid-column {\n position: relative;\n width: 100%;\n min-height: 1px; // Prevent columns from collapsing when empty\n padding-right: ($gutter / 2);\n padding-left: ($gutter / 2);\n }\n\n @each $breakpoint in map-keys($breakpoints) {\n $infix: breakpoint-infix($breakpoint, $breakpoints);\n\n // Allow columns to stretch full width below their breakpoints\n @for $i from 1 through $columns {\n .col#{$infix}-#{$i} {\n @extend %grid-column;\n }\n }\n .col#{$infix},\n .col#{$infix}-auto {\n @extend %grid-column;\n }\n\n @include media-breakpoint-up($breakpoint, $breakpoints) {\n // Provide basic `.col-{bp}` classes for equal-width flexbox columns\n .col#{$infix} {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .col#{$infix}-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none; // Reset earlier grid tiers\n }\n\n @for $i from 1 through $columns {\n .col#{$infix}-#{$i} {\n @include make-col($i, $columns);\n }\n }\n\n .order#{$infix}-first {\n order: -1;\n }\n\n @for $i from 1 through $columns {\n .order#{$infix}-#{$i} {\n order: $i;\n }\n }\n\n // `$columns - 1` because offsetting by the width of an entire row isn't possible\n @for $i from 0 through ($columns - 1) {\n @if not ($infix == \"\" and $i == 0) { // Avoid emitting useless .offset-0\n .offset#{$infix}-#{$i} {\n @include make-col-offset($i, $columns);\n }\n }\n }\n }\n }\n}\n","// stylelint-disable declaration-no-important\n\n// Flex variation\n//\n// Custom styles for additional flex alignment options.\n\n@each $breakpoint in map-keys($grid-breakpoints) {\n @include media-breakpoint-up($breakpoint) {\n $infix: breakpoint-infix($breakpoint, $grid-breakpoints);\n\n .flex#{$infix}-row { flex-direction: row !important; }\n .flex#{$infix}-column { flex-direction: column !important; }\n .flex#{$infix}-row-reverse { flex-direction: row-reverse !important; }\n .flex#{$infix}-column-reverse { flex-direction: column-reverse !important; }\n\n .flex#{$infix}-wrap { flex-wrap: wrap !important; }\n .flex#{$infix}-nowrap { flex-wrap: nowrap !important; }\n .flex#{$infix}-wrap-reverse { flex-wrap: wrap-reverse !important; }\n\n .justify-content#{$infix}-start { justify-content: flex-start !important; }\n .justify-content#{$infix}-end { justify-content: flex-end !important; }\n .justify-content#{$infix}-center { justify-content: center !important; }\n .justify-content#{$infix}-between { justify-content: space-between !important; }\n .justify-content#{$infix}-around { justify-content: space-around !important; }\n\n .align-items#{$infix}-start { align-items: flex-start !important; }\n .align-items#{$infix}-end { align-items: flex-end !important; }\n .align-items#{$infix}-center { align-items: center !important; }\n .align-items#{$infix}-baseline { align-items: baseline !important; }\n .align-items#{$infix}-stretch { align-items: stretch !important; }\n\n .align-content#{$infix}-start { align-content: flex-start !important; }\n .align-content#{$infix}-end { align-content: flex-end !important; }\n .align-content#{$infix}-center { align-content: center !important; }\n .align-content#{$infix}-between { align-content: space-between !important; }\n .align-content#{$infix}-around { align-content: space-around !important; }\n .align-content#{$infix}-stretch { align-content: stretch !important; }\n\n .align-self#{$infix}-auto { align-self: auto !important; }\n .align-self#{$infix}-start { align-self: flex-start !important; }\n .align-self#{$infix}-end { align-self: flex-end !important; }\n .align-self#{$infix}-center { align-self: center !important; }\n .align-self#{$infix}-baseline { align-self: baseline !important; }\n .align-self#{$infix}-stretch { align-self: stretch !important; }\n }\n}\n"]} \ No newline at end of file diff --git a/bin/station/vendor/bootstrap/css/bootstrap-grid.min.css b/bin/station/vendor/bootstrap/css/bootstrap-grid.min.css deleted file mode 100644 index a7b220f..0000000 --- a/bin/station/vendor/bootstrap/css/bootstrap-grid.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * Bootstrap Grid v4.0.0-beta.2 (https://getbootstrap.com) - * Copyright 2011-2017 The Bootstrap Authors - * Copyright 2011-2017 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */@-ms-viewport{width:device-width}html{box-sizing:border-box;-ms-overflow-style:scrollbar}*,::after,::before{box-sizing:inherit}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;min-height:1px;padding-right:15px;padding-left:15px}.col{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-first{-ms-flex-order:-1;order:-1}.order-1{-ms-flex-order:1;order:1}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-sm-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-sm-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-sm-first{-ms-flex-order:-1;order:-1}.order-sm-1{-ms-flex-order:1;order:1}.order-sm-2{-ms-flex-order:2;order:2}.order-sm-3{-ms-flex-order:3;order:3}.order-sm-4{-ms-flex-order:4;order:4}.order-sm-5{-ms-flex-order:5;order:5}.order-sm-6{-ms-flex-order:6;order:6}.order-sm-7{-ms-flex-order:7;order:7}.order-sm-8{-ms-flex-order:8;order:8}.order-sm-9{-ms-flex-order:9;order:9}.order-sm-10{-ms-flex-order:10;order:10}.order-sm-11{-ms-flex-order:11;order:11}.order-sm-12{-ms-flex-order:12;order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-md-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-md-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-md-first{-ms-flex-order:-1;order:-1}.order-md-1{-ms-flex-order:1;order:1}.order-md-2{-ms-flex-order:2;order:2}.order-md-3{-ms-flex-order:3;order:3}.order-md-4{-ms-flex-order:4;order:4}.order-md-5{-ms-flex-order:5;order:5}.order-md-6{-ms-flex-order:6;order:6}.order-md-7{-ms-flex-order:7;order:7}.order-md-8{-ms-flex-order:8;order:8}.order-md-9{-ms-flex-order:9;order:9}.order-md-10{-ms-flex-order:10;order:10}.order-md-11{-ms-flex-order:11;order:11}.order-md-12{-ms-flex-order:12;order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-lg-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-lg-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-lg-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-lg-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-lg-first{-ms-flex-order:-1;order:-1}.order-lg-1{-ms-flex-order:1;order:1}.order-lg-2{-ms-flex-order:2;order:2}.order-lg-3{-ms-flex-order:3;order:3}.order-lg-4{-ms-flex-order:4;order:4}.order-lg-5{-ms-flex-order:5;order:5}.order-lg-6{-ms-flex-order:6;order:6}.order-lg-7{-ms-flex-order:7;order:7}.order-lg-8{-ms-flex-order:8;order:8}.order-lg-9{-ms-flex-order:9;order:9}.order-lg-10{-ms-flex-order:10;order:10}.order-lg-11{-ms-flex-order:11;order:11}.order-lg-12{-ms-flex-order:12;order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-xl-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-xl-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-xl-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-xl-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-xl-first{-ms-flex-order:-1;order:-1}.order-xl-1{-ms-flex-order:1;order:1}.order-xl-2{-ms-flex-order:2;order:2}.order-xl-3{-ms-flex-order:3;order:3}.order-xl-4{-ms-flex-order:4;order:4}.order-xl-5{-ms-flex-order:5;order:5}.order-xl-6{-ms-flex-order:6;order:6}.order-xl-7{-ms-flex-order:7;order:7}.order-xl-8{-ms-flex-order:8;order:8}.order-xl-9{-ms-flex-order:9;order:9}.order-xl-10{-ms-flex-order:10;order:10}.order-xl-11{-ms-flex-order:11;order:11}.order-xl-12{-ms-flex-order:12;order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.flex-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.justify-content-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-center{-ms-flex-align:center!important;align-items:center!important}.align-items-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}@media (min-width:576px){.flex-sm-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-sm-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-sm-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-sm-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-sm-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-sm-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-sm-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.justify-content-sm-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-sm-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-sm-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-sm-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-sm-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-sm-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-sm-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-sm-center{-ms-flex-align:center!important;align-items:center!important}.align-items-sm-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-sm-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-sm-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-sm-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-sm-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-sm-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-sm-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-sm-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-sm-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-sm-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-sm-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-sm-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-sm-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-sm-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:768px){.flex-md-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-md-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-md-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-md-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-md-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-md-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-md-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.justify-content-md-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-md-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-md-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-md-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-md-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-md-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-md-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-md-center{-ms-flex-align:center!important;align-items:center!important}.align-items-md-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-md-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-md-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-md-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-md-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-md-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-md-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-md-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-md-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-md-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-md-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-md-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-md-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-md-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-lg-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-lg-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-lg-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-lg-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-lg-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-lg-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.justify-content-lg-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-lg-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-lg-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-lg-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-lg-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-lg-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-lg-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-lg-center{-ms-flex-align:center!important;align-items:center!important}.align-items-lg-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-lg-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-lg-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-lg-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-lg-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-lg-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-lg-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-lg-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-lg-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-lg-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-lg-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-lg-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-lg-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-lg-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-xl-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-xl-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-xl-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-xl-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-xl-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-xl-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.justify-content-xl-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-xl-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-xl-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-xl-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-xl-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-xl-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-xl-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-xl-center{-ms-flex-align:center!important;align-items:center!important}.align-items-xl-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-xl-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-xl-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-xl-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-xl-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-xl-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-xl-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-xl-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-xl-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-xl-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-xl-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-xl-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-xl-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-xl-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}} -/*# sourceMappingURL=bootstrap-grid.min.css.map */ \ No newline at end of file diff --git a/bin/station/vendor/bootstrap/css/bootstrap-grid.min.css.map b/bin/station/vendor/bootstrap/css/bootstrap-grid.min.css.map deleted file mode 100644 index de236e9..0000000 --- a/bin/station/vendor/bootstrap/css/bootstrap-grid.min.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../scss/bootstrap-grid.scss","dist/css/bootstrap-grid.css","../../scss/_grid.scss","../../scss/mixins/_grid.scss","../../scss/mixins/_breakpoints.scss","../../scss/mixins/_grid-framework.scss","../../scss/utilities/_flex.scss"],"names":[],"mappings":"AAAA;;;;;AAQE,cAAgB,MAAA,aAGlB,KACE,WAAA,WACA,mBAAA,UAGF,ECCA,QADA,SDGE,WAAA,QEdA,WCAA,MAAA,KACA,cAAA,KACA,aAAA,KACA,aAAA,KACA,YAAA,KC+CE,yBFnDF,WCYI,UAAA,OCuCF,yBFnDF,WCYI,UAAA,OCuCF,yBFnDF,WCYI,UAAA,OCuCF,0BFnDF,WCYI,UAAA,QDAJ,iBCZA,MAAA,KACA,cAAA,KACA,aAAA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)\n * Copyright 2011-2017 The Bootstrap Authors\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n@at-root {\n @-ms-viewport { width: device-width; } // stylelint-disable-line at-rule-no-vendor-prefix\n}\n\nhtml {\n box-sizing: border-box;\n -ms-overflow-style: scrollbar;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\n@import \"functions\";\n@import \"variables\";\n\n//\n// Grid mixins\n//\n\n@import \"mixins/breakpoints\";\n@import \"mixins/grid-framework\";\n@import \"mixins/grid\";\n\n@import \"grid\";\n@import \"utilities/flex\";\n","/*!\n * Bootstrap Grid v4.0.0-beta.2 (https://getbootstrap.com)\n * Copyright 2011-2017 The Bootstrap Authors\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n@-ms-viewport {\n width: device-width;\n}\n\nhtml {\n box-sizing: border-box;\n -ms-overflow-style: scrollbar;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\n.container {\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto;\n}\n\n@media (min-width: 576px) {\n .container {\n max-width: 540px;\n }\n}\n\n@media (min-width: 768px) {\n .container {\n max-width: 720px;\n }\n}\n\n@media (min-width: 992px) {\n .container {\n max-width: 960px;\n }\n}\n\n@media (min-width: 1200px) {\n .container {\n max-width: 1140px;\n }\n}\n\n.container-fluid {\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto;\n}\n\n.row {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n margin-right: -15px;\n margin-left: -15px;\n}\n\n.no-gutters {\n margin-right: 0;\n margin-left: 0;\n}\n\n.no-gutters > .col,\n.no-gutters > [class*=\"col-\"] {\n padding-right: 0;\n padding-left: 0;\n}\n\n.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col,\n.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm,\n.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md,\n.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg,\n.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl,\n.col-xl-auto {\n position: relative;\n width: 100%;\n min-height: 1px;\n padding-right: 15px;\n padding-left: 15px;\n}\n\n.col {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n}\n\n.col-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n}\n\n.col-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n}\n\n.col-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n}\n\n.col-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n}\n\n.col-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n}\n\n.col-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n}\n\n.col-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n}\n\n.col-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n}\n\n.col-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n}\n\n.col-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n}\n\n.col-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n}\n\n.col-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n}\n\n.col-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n}\n\n.order-first {\n -ms-flex-order: -1;\n order: -1;\n}\n\n.order-1 {\n -ms-flex-order: 1;\n order: 1;\n}\n\n.order-2 {\n -ms-flex-order: 2;\n order: 2;\n}\n\n.order-3 {\n -ms-flex-order: 3;\n order: 3;\n}\n\n.order-4 {\n -ms-flex-order: 4;\n order: 4;\n}\n\n.order-5 {\n -ms-flex-order: 5;\n order: 5;\n}\n\n.order-6 {\n -ms-flex-order: 6;\n order: 6;\n}\n\n.order-7 {\n -ms-flex-order: 7;\n order: 7;\n}\n\n.order-8 {\n -ms-flex-order: 8;\n order: 8;\n}\n\n.order-9 {\n -ms-flex-order: 9;\n order: 9;\n}\n\n.order-10 {\n -ms-flex-order: 10;\n order: 10;\n}\n\n.order-11 {\n -ms-flex-order: 11;\n order: 11;\n}\n\n.order-12 {\n -ms-flex-order: 12;\n order: 12;\n}\n\n.offset-1 {\n margin-left: 8.333333%;\n}\n\n.offset-2 {\n margin-left: 16.666667%;\n}\n\n.offset-3 {\n margin-left: 25%;\n}\n\n.offset-4 {\n margin-left: 33.333333%;\n}\n\n.offset-5 {\n margin-left: 41.666667%;\n}\n\n.offset-6 {\n margin-left: 50%;\n}\n\n.offset-7 {\n margin-left: 58.333333%;\n}\n\n.offset-8 {\n margin-left: 66.666667%;\n}\n\n.offset-9 {\n margin-left: 75%;\n}\n\n.offset-10 {\n margin-left: 83.333333%;\n}\n\n.offset-11 {\n margin-left: 91.666667%;\n}\n\n@media (min-width: 576px) {\n .col-sm {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-sm-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-sm-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-sm-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-sm-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-sm-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-sm-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-sm-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-sm-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-sm-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-sm-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-sm-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-sm-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-sm-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-sm-first {\n -ms-flex-order: -1;\n order: -1;\n }\n .order-sm-1 {\n -ms-flex-order: 1;\n order: 1;\n }\n .order-sm-2 {\n -ms-flex-order: 2;\n order: 2;\n }\n .order-sm-3 {\n -ms-flex-order: 3;\n order: 3;\n }\n .order-sm-4 {\n -ms-flex-order: 4;\n order: 4;\n }\n .order-sm-5 {\n -ms-flex-order: 5;\n order: 5;\n }\n .order-sm-6 {\n -ms-flex-order: 6;\n order: 6;\n }\n .order-sm-7 {\n -ms-flex-order: 7;\n order: 7;\n }\n .order-sm-8 {\n -ms-flex-order: 8;\n order: 8;\n }\n .order-sm-9 {\n -ms-flex-order: 9;\n order: 9;\n }\n .order-sm-10 {\n -ms-flex-order: 10;\n order: 10;\n }\n .order-sm-11 {\n -ms-flex-order: 11;\n order: 11;\n }\n .order-sm-12 {\n -ms-flex-order: 12;\n order: 12;\n }\n .offset-sm-0 {\n margin-left: 0;\n }\n .offset-sm-1 {\n margin-left: 8.333333%;\n }\n .offset-sm-2 {\n margin-left: 16.666667%;\n }\n .offset-sm-3 {\n margin-left: 25%;\n }\n .offset-sm-4 {\n margin-left: 33.333333%;\n }\n .offset-sm-5 {\n margin-left: 41.666667%;\n }\n .offset-sm-6 {\n margin-left: 50%;\n }\n .offset-sm-7 {\n margin-left: 58.333333%;\n }\n .offset-sm-8 {\n margin-left: 66.666667%;\n }\n .offset-sm-9 {\n margin-left: 75%;\n }\n .offset-sm-10 {\n margin-left: 83.333333%;\n }\n .offset-sm-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 768px) {\n .col-md {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-md-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-md-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-md-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-md-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-md-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-md-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-md-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-md-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-md-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-md-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-md-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-md-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-md-first {\n -ms-flex-order: -1;\n order: -1;\n }\n .order-md-1 {\n -ms-flex-order: 1;\n order: 1;\n }\n .order-md-2 {\n -ms-flex-order: 2;\n order: 2;\n }\n .order-md-3 {\n -ms-flex-order: 3;\n order: 3;\n }\n .order-md-4 {\n -ms-flex-order: 4;\n order: 4;\n }\n .order-md-5 {\n -ms-flex-order: 5;\n order: 5;\n }\n .order-md-6 {\n -ms-flex-order: 6;\n order: 6;\n }\n .order-md-7 {\n -ms-flex-order: 7;\n order: 7;\n }\n .order-md-8 {\n -ms-flex-order: 8;\n order: 8;\n }\n .order-md-9 {\n -ms-flex-order: 9;\n order: 9;\n }\n .order-md-10 {\n -ms-flex-order: 10;\n order: 10;\n }\n .order-md-11 {\n -ms-flex-order: 11;\n order: 11;\n }\n .order-md-12 {\n -ms-flex-order: 12;\n order: 12;\n }\n .offset-md-0 {\n margin-left: 0;\n }\n .offset-md-1 {\n margin-left: 8.333333%;\n }\n .offset-md-2 {\n margin-left: 16.666667%;\n }\n .offset-md-3 {\n margin-left: 25%;\n }\n .offset-md-4 {\n margin-left: 33.333333%;\n }\n .offset-md-5 {\n margin-left: 41.666667%;\n }\n .offset-md-6 {\n margin-left: 50%;\n }\n .offset-md-7 {\n margin-left: 58.333333%;\n }\n .offset-md-8 {\n margin-left: 66.666667%;\n }\n .offset-md-9 {\n margin-left: 75%;\n }\n .offset-md-10 {\n margin-left: 83.333333%;\n }\n .offset-md-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 992px) {\n .col-lg {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-lg-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-lg-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-lg-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-lg-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-lg-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-lg-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-lg-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-lg-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-lg-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-lg-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-lg-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-lg-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-lg-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-lg-first {\n -ms-flex-order: -1;\n order: -1;\n }\n .order-lg-1 {\n -ms-flex-order: 1;\n order: 1;\n }\n .order-lg-2 {\n -ms-flex-order: 2;\n order: 2;\n }\n .order-lg-3 {\n -ms-flex-order: 3;\n order: 3;\n }\n .order-lg-4 {\n -ms-flex-order: 4;\n order: 4;\n }\n .order-lg-5 {\n -ms-flex-order: 5;\n order: 5;\n }\n .order-lg-6 {\n -ms-flex-order: 6;\n order: 6;\n }\n .order-lg-7 {\n -ms-flex-order: 7;\n order: 7;\n }\n .order-lg-8 {\n -ms-flex-order: 8;\n order: 8;\n }\n .order-lg-9 {\n -ms-flex-order: 9;\n order: 9;\n }\n .order-lg-10 {\n -ms-flex-order: 10;\n order: 10;\n }\n .order-lg-11 {\n -ms-flex-order: 11;\n order: 11;\n }\n .order-lg-12 {\n -ms-flex-order: 12;\n order: 12;\n }\n .offset-lg-0 {\n margin-left: 0;\n }\n .offset-lg-1 {\n margin-left: 8.333333%;\n }\n .offset-lg-2 {\n margin-left: 16.666667%;\n }\n .offset-lg-3 {\n margin-left: 25%;\n }\n .offset-lg-4 {\n margin-left: 33.333333%;\n }\n .offset-lg-5 {\n margin-left: 41.666667%;\n }\n .offset-lg-6 {\n margin-left: 50%;\n }\n .offset-lg-7 {\n margin-left: 58.333333%;\n }\n .offset-lg-8 {\n margin-left: 66.666667%;\n }\n .offset-lg-9 {\n margin-left: 75%;\n }\n .offset-lg-10 {\n margin-left: 83.333333%;\n }\n .offset-lg-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 1200px) {\n .col-xl {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-xl-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-xl-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-xl-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-xl-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-xl-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-xl-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-xl-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-xl-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-xl-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-xl-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-xl-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-xl-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-xl-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-xl-first {\n -ms-flex-order: -1;\n order: -1;\n }\n .order-xl-1 {\n -ms-flex-order: 1;\n order: 1;\n }\n .order-xl-2 {\n -ms-flex-order: 2;\n order: 2;\n }\n .order-xl-3 {\n -ms-flex-order: 3;\n order: 3;\n }\n .order-xl-4 {\n -ms-flex-order: 4;\n order: 4;\n }\n .order-xl-5 {\n -ms-flex-order: 5;\n order: 5;\n }\n .order-xl-6 {\n -ms-flex-order: 6;\n order: 6;\n }\n .order-xl-7 {\n -ms-flex-order: 7;\n order: 7;\n }\n .order-xl-8 {\n -ms-flex-order: 8;\n order: 8;\n }\n .order-xl-9 {\n -ms-flex-order: 9;\n order: 9;\n }\n .order-xl-10 {\n -ms-flex-order: 10;\n order: 10;\n }\n .order-xl-11 {\n -ms-flex-order: 11;\n order: 11;\n }\n .order-xl-12 {\n -ms-flex-order: 12;\n order: 12;\n }\n .offset-xl-0 {\n margin-left: 0;\n }\n .offset-xl-1 {\n margin-left: 8.333333%;\n }\n .offset-xl-2 {\n margin-left: 16.666667%;\n }\n .offset-xl-3 {\n margin-left: 25%;\n }\n .offset-xl-4 {\n margin-left: 33.333333%;\n }\n .offset-xl-5 {\n margin-left: 41.666667%;\n }\n .offset-xl-6 {\n margin-left: 50%;\n }\n .offset-xl-7 {\n margin-left: 58.333333%;\n }\n .offset-xl-8 {\n margin-left: 66.666667%;\n }\n .offset-xl-9 {\n margin-left: 75%;\n }\n .offset-xl-10 {\n margin-left: 83.333333%;\n }\n .offset-xl-11 {\n margin-left: 91.666667%;\n }\n}\n\n.flex-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n}\n\n.flex-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n}\n\n.flex-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n}\n\n.flex-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n}\n\n.flex-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n}\n\n.flex-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n}\n\n.flex-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n}\n\n.justify-content-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n}\n\n.justify-content-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n}\n\n.justify-content-center {\n -ms-flex-pack: center !important;\n justify-content: center !important;\n}\n\n.justify-content-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n}\n\n.justify-content-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n}\n\n.align-items-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n}\n\n.align-items-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n}\n\n.align-items-center {\n -ms-flex-align: center !important;\n align-items: center !important;\n}\n\n.align-items-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n}\n\n.align-items-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n}\n\n.align-content-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n}\n\n.align-content-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n}\n\n.align-content-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n}\n\n.align-content-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n}\n\n.align-content-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n}\n\n.align-content-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n}\n\n.align-self-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n}\n\n.align-self-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n}\n\n.align-self-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n}\n\n.align-self-center {\n -ms-flex-item-align: center !important;\n align-self: center !important;\n}\n\n.align-self-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n}\n\n.align-self-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n}\n\n@media (min-width: 576px) {\n .flex-sm-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-sm-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-sm-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-sm-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-sm-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-sm-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-sm-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-sm-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-sm-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-sm-center {\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-sm-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-sm-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-sm-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-sm-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-sm-center {\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-sm-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-sm-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-sm-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-sm-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-sm-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-sm-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-sm-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-sm-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-sm-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-sm-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-sm-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-sm-center {\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-sm-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-sm-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 768px) {\n .flex-md-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-md-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-md-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-md-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-md-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-md-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-md-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-md-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-md-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-md-center {\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-md-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-md-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-md-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-md-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-md-center {\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-md-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-md-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-md-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-md-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-md-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-md-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-md-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-md-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-md-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-md-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-md-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-md-center {\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-md-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-md-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 992px) {\n .flex-lg-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-lg-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-lg-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-lg-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-lg-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-lg-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-lg-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-lg-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-lg-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-lg-center {\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-lg-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-lg-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-lg-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-lg-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-lg-center {\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-lg-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-lg-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-lg-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-lg-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-lg-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-lg-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-lg-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-lg-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-lg-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-lg-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-lg-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-lg-center {\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-lg-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-lg-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 1200px) {\n .flex-xl-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-xl-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-xl-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-xl-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-xl-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-xl-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-xl-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-xl-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-xl-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-xl-center {\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-xl-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-xl-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-xl-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-xl-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-xl-center {\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-xl-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-xl-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-xl-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-xl-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-xl-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-xl-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-xl-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-xl-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-xl-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-xl-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-xl-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-xl-center {\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-xl-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-xl-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n/*# sourceMappingURL=bootstrap-grid.css.map */","// Container widths\n//\n// Set the container width, and override it for fixed navbars in media queries.\n\n@if $enable-grid-classes {\n .container {\n @include make-container();\n @include make-container-max-widths();\n }\n}\n\n// Fluid container\n//\n// Utilizes the mixin meant for fixed width containers, but with 100% width for\n// fluid, full width layouts.\n\n@if $enable-grid-classes {\n .container-fluid {\n @include make-container();\n }\n}\n\n// Row\n//\n// Rows contain and clear the floats of your columns.\n\n@if $enable-grid-classes {\n .row {\n @include make-row();\n }\n\n // Remove the negative margin from default .row, then the horizontal padding\n // from all immediate children columns (to prevent runaway style inheritance).\n .no-gutters {\n margin-right: 0;\n margin-left: 0;\n\n > .col,\n > [class*=\"col-\"] {\n padding-right: 0;\n padding-left: 0;\n }\n }\n}\n\n// Columns\n//\n// Common styles for small and large grid columns\n\n@if $enable-grid-classes {\n @include make-grid-columns();\n}\n","/// Grid system\n//\n// Generate semantic grid columns with these mixins.\n\n@mixin make-container() {\n width: 100%;\n padding-right: ($grid-gutter-width / 2);\n padding-left: ($grid-gutter-width / 2);\n margin-right: auto;\n margin-left: auto;\n}\n\n\n// For each breakpoint, define the maximum width of the container in a media query\n@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {\n @each $breakpoint, $container-max-width in $max-widths {\n @include media-breakpoint-up($breakpoint, $breakpoints) {\n max-width: $container-max-width;\n }\n }\n}\n\n@mixin make-row() {\n display: flex;\n flex-wrap: wrap;\n margin-right: ($grid-gutter-width / -2);\n margin-left: ($grid-gutter-width / -2);\n}\n\n@mixin make-col-ready() {\n position: relative;\n // Prevent columns from becoming too narrow when at smaller grid tiers by\n // always setting `width: 100%;`. This works because we use `flex` values\n // later on to override this initial width.\n width: 100%;\n min-height: 1px; // Prevent collapsing\n padding-right: ($grid-gutter-width / 2);\n padding-left: ($grid-gutter-width / 2);\n}\n\n@mixin make-col($size, $columns: $grid-columns) {\n flex: 0 0 percentage($size / $columns);\n // Add a `max-width` to ensure content within each column does not blow out\n // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari\n // do not appear to require this.\n max-width: percentage($size / $columns);\n}\n\n@mixin make-col-offset($size, $columns: $grid-columns) {\n $num: $size / $columns;\n margin-left: if($num == 0, 0, percentage($num));\n}\n","// Breakpoint viewport sizes and media queries.\n//\n// Breakpoints are defined as a map of (name: minimum width), order from small to large:\n//\n// (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n//\n// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n\n// Name of the next breakpoint, or null for the last breakpoint.\n//\n// >> breakpoint-next(sm)\n// md\n// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// md\n// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n// md\n@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {\n $n: index($breakpoint-names, $name);\n @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);\n}\n\n// Minimum breakpoint width. Null for the smallest (first) breakpoint.\n//\n// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// 576px\n@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {\n $min: map-get($breakpoints, $name);\n @return if($min != 0, $min, null);\n}\n\n// Maximum breakpoint width. Null for the largest (last) breakpoint.\n// The maximum value is calculated as the minimum of the next one less 0.1.\n//\n// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// 767px\n@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {\n $next: breakpoint-next($name, $breakpoints);\n @return if($next, breakpoint-min($next, $breakpoints) - 1px, null);\n}\n\n// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.\n// Useful for making responsive utilities.\n//\n// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// \"\" (Returns a blank string)\n// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// \"-sm\"\n@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {\n @return if(breakpoint-min($name, $breakpoints) == null, \"\", \"-#{$name}\");\n}\n\n// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n// Makes the @content apply to the given breakpoint and wider.\n@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($name, $breakpoints);\n @if $min {\n @media (min-width: $min) {\n @content;\n }\n } @else {\n @content;\n }\n}\n\n// Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n// Makes the @content apply to the given breakpoint and narrower.\n@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {\n $max: breakpoint-max($name, $breakpoints);\n @if $max {\n @media (max-width: $max) {\n @content;\n }\n } @else {\n @content;\n }\n}\n\n// Media that spans multiple breakpoint widths.\n// Makes the @content apply between the min and max breakpoints\n@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($lower, $breakpoints);\n $max: breakpoint-max($upper, $breakpoints);\n\n @if $min != null and $max != null {\n @media (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else if $max == null {\n @include media-breakpoint-up($lower) {\n @content;\n }\n } @else if $min == null {\n @include media-breakpoint-down($upper) {\n @content;\n }\n }\n}\n\n// Media between the breakpoint's minimum and maximum widths.\n// No minimum for the smallest breakpoint, and no maximum for the largest one.\n// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($name, $breakpoints);\n $max: breakpoint-max($name, $breakpoints);\n\n @if $min != null and $max != null {\n @media (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else if $max == null {\n @include media-breakpoint-up($name) {\n @content;\n }\n } @else if $min == null {\n @include media-breakpoint-down($name) {\n @content;\n }\n }\n}\n","// Framework grid generation\n//\n// Used only by Bootstrap to generate the correct number of grid classes given\n// any value of `$grid-columns`.\n\n@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {\n // Common properties for all breakpoints\n %grid-column {\n position: relative;\n width: 100%;\n min-height: 1px; // Prevent columns from collapsing when empty\n padding-right: ($gutter / 2);\n padding-left: ($gutter / 2);\n }\n\n @each $breakpoint in map-keys($breakpoints) {\n $infix: breakpoint-infix($breakpoint, $breakpoints);\n\n // Allow columns to stretch full width below their breakpoints\n @for $i from 1 through $columns {\n .col#{$infix}-#{$i} {\n @extend %grid-column;\n }\n }\n .col#{$infix},\n .col#{$infix}-auto {\n @extend %grid-column;\n }\n\n @include media-breakpoint-up($breakpoint, $breakpoints) {\n // Provide basic `.col-{bp}` classes for equal-width flexbox columns\n .col#{$infix} {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .col#{$infix}-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none; // Reset earlier grid tiers\n }\n\n @for $i from 1 through $columns {\n .col#{$infix}-#{$i} {\n @include make-col($i, $columns);\n }\n }\n\n .order#{$infix}-first {\n order: -1;\n }\n\n @for $i from 1 through $columns {\n .order#{$infix}-#{$i} {\n order: $i;\n }\n }\n\n // `$columns - 1` because offsetting by the width of an entire row isn't possible\n @for $i from 0 through ($columns - 1) {\n @if not ($infix == \"\" and $i == 0) { // Avoid emitting useless .offset-0\n .offset#{$infix}-#{$i} {\n @include make-col-offset($i, $columns);\n }\n }\n }\n }\n }\n}\n","// stylelint-disable declaration-no-important\n\n// Flex variation\n//\n// Custom styles for additional flex alignment options.\n\n@each $breakpoint in map-keys($grid-breakpoints) {\n @include media-breakpoint-up($breakpoint) {\n $infix: breakpoint-infix($breakpoint, $grid-breakpoints);\n\n .flex#{$infix}-row { flex-direction: row !important; }\n .flex#{$infix}-column { flex-direction: column !important; }\n .flex#{$infix}-row-reverse { flex-direction: row-reverse !important; }\n .flex#{$infix}-column-reverse { flex-direction: column-reverse !important; }\n\n .flex#{$infix}-wrap { flex-wrap: wrap !important; }\n .flex#{$infix}-nowrap { flex-wrap: nowrap !important; }\n .flex#{$infix}-wrap-reverse { flex-wrap: wrap-reverse !important; }\n\n .justify-content#{$infix}-start { justify-content: flex-start !important; }\n .justify-content#{$infix}-end { justify-content: flex-end !important; }\n .justify-content#{$infix}-center { justify-content: center !important; }\n .justify-content#{$infix}-between { justify-content: space-between !important; }\n .justify-content#{$infix}-around { justify-content: space-around !important; }\n\n .align-items#{$infix}-start { align-items: flex-start !important; }\n .align-items#{$infix}-end { align-items: flex-end !important; }\n .align-items#{$infix}-center { align-items: center !important; }\n .align-items#{$infix}-baseline { align-items: baseline !important; }\n .align-items#{$infix}-stretch { align-items: stretch !important; }\n\n .align-content#{$infix}-start { align-content: flex-start !important; }\n .align-content#{$infix}-end { align-content: flex-end !important; }\n .align-content#{$infix}-center { align-content: center !important; }\n .align-content#{$infix}-between { align-content: space-between !important; }\n .align-content#{$infix}-around { align-content: space-around !important; }\n .align-content#{$infix}-stretch { align-content: stretch !important; }\n\n .align-self#{$infix}-auto { align-self: auto !important; }\n .align-self#{$infix}-start { align-self: flex-start !important; }\n .align-self#{$infix}-end { align-self: flex-end !important; }\n .align-self#{$infix}-center { align-self: center !important; }\n .align-self#{$infix}-baseline { align-self: baseline !important; }\n .align-self#{$infix}-stretch { align-self: stretch !important; }\n }\n}\n"]} \ No newline at end of file diff --git a/bin/station/vendor/bootstrap/css/bootstrap-reboot.css.map b/bin/station/vendor/bootstrap/css/bootstrap-reboot.css.map deleted file mode 100644 index 0071ed2..0000000 --- a/bin/station/vendor/bootstrap/css/bootstrap-reboot.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../scss/bootstrap-reboot.scss","../../scss/_reboot.scss","bootstrap-reboot.css","../../scss/_variables.scss","../../scss/mixins/_hover.scss"],"names":[],"mappings":"AAAA;;;;;;GAMG;ACcH;;;EAGE,uBAAsB;CACvB;;AAED;EACE,wBAAuB;EACvB,kBAAiB;EACjB,+BAA8B;EAC9B,2BAA0B;EAC1B,8BAA6B;EAC7B,yCAA0C;CAC3C;;AAIC;EACE,oBAAmB;CCdtB;;ADoBD;EACE,eAAc;CACf;;AAUD;EACE,UAAS;EACT,kKEgKgL;EF/JhL,gBEoKgC;EFnKhC,iBEwK+B;EFvK/B,iBE2K+B;EF1K/B,eE1CgB;EF2ChB,iBAAgB;EAChB,uBErDa;CFsDd;;ACxBD;EDgCE,yBAAwB;CACzB;;AAQD;EACE,wBAAuB;EACvB,UAAS;EACT,kBAAiB;CAClB;;AAYD;EACE,cAAa;EACb,sBE6IyC;CF5I1C;;AAOD;EACE,cAAa;EACb,oBEsC8B;CFrC/B;;AASD;;EAEE,2BAA0B;EAC1B,0CAAiC;UAAjC,kCAAiC;EACjC,aAAY;EACZ,iBAAgB;CACjB;;AAED;EACE,oBAAmB;EACnB,mBAAkB;EAClB,qBAAoB;CACrB;;AAED;;;EAGE,cAAa;EACb,oBAAmB;CACpB;;AAED;;;;EAIE,iBAAgB;CACjB;;AAED;EACE,iBEgF+B;CF/EhC;;AAED;EACE,qBAAoB;EACpB,eAAc;CACf;;AAED;EACE,iBAAgB;CACjB;;AAED;EACE,mBAAkB;CACnB;;AAGD;;EAEE,oBAAmB;CACpB;;AAGD;EACE,eAAc;CACf;;AAOD;;EAEE,mBAAkB;EAClB,eAAc;EACd,eAAc;EACd,yBAAwB;CACzB;;AAED;EAAM,eAAc;CAAK;;AACzB;EAAM,WAAU;CAAK;;AAOrB;EACE,eElKe;EFmKf,sBE3D8B;EF4D9B,8BAA6B;EAC7B,sCAAqC;CAMtC;;AGpMG;EHiMA,eE/DgD;EFgEhD,2BE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ED4JE,yBAAwB;CACzB;;AAOD;EACE,cAAa;EACb,2BAA0B;CAC3B;;AAMD;EACE,sBAAqB;CACtB;;AAED;EACE,mBAAkB;CACnB;;AAED;EACE,cAAa;CACd;;ACjKD;EDsKE,yBAAwB;CACzB","file":"bootstrap-reboot.css","sourcesContent":["/*!\n * Bootstrap Reboot v4.0.0-beta.2 (https://getbootstrap.com)\n * Copyright 2011-2017 The Bootstrap Authors\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)\n */\n\n@import \"functions\";\n@import \"variables\";\n@import \"mixins\";\n@import \"reboot\";\n","// stylelint-disable at-rule-no-vendor-prefix, declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix\n\n// Reboot\n//\n// Normalization of HTML elements, manually forked from Normalize.css to remove\n// styles targeting irrelevant browsers while applying new styles.\n//\n// Normalize is licensed MIT. https://github.com/necolas/normalize.css\n\n\n// Document\n//\n// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.\n// 2. Change the default font family in all browsers.\n// 3. Correct the line height in all browsers.\n// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.\n// 5. Setting @viewport causes scrollbars to overlap content in IE11 and Edge, so\n// we force a non-overlapping, non-auto-hiding scrollbar to counteract.\n// 6. Change the default tap highlight to be completely transparent in iOS.\n\n*,\n*::before,\n*::after {\n box-sizing: border-box; // 1\n}\n\nhtml {\n font-family: sans-serif; // 2\n line-height: 1.15; // 3\n -webkit-text-size-adjust: 100%; // 4\n -ms-text-size-adjust: 100%; // 4\n -ms-overflow-style: scrollbar; // 5\n -webkit-tap-highlight-color: rgba(0,0,0,0); // 6\n}\n\n// IE10+ doesn't honor `` in some cases.\n@at-root {\n @-ms-viewport {\n width: device-width;\n }\n}\n\n// stylelint-disable selector-list-comma-newline-after\n// Shim for \"new\" HTML5 structural elements to display correctly (IE10, older browsers)\narticle, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {\n display: block;\n}\n// stylelint-enable selector-list-comma-newline-after\n\n// Body\n//\n// 1. Remove the margin in all browsers.\n// 2. As a best practice, apply a default `background-color`.\n// 3. Set an explicit initial text-align value so that we can later use the\n// the `inherit` value on things like `` elements.\n\nbody {\n margin: 0; // 1\n font-family: $font-family-base;\n font-size: $font-size-base;\n font-weight: $font-weight-base;\n line-height: $line-height-base;\n color: $body-color;\n text-align: left; // 3\n background-color: $body-bg; // 2\n}\n\n// Suppress the focus outline on elements that cannot be accessed via keyboard.\n// This prevents an unwanted focus outline from appearing around elements that\n// might still respond to pointer events.\n//\n// Credit: https://github.com/suitcss/base\n[tabindex=\"-1\"]:focus {\n outline: none !important;\n}\n\n\n// Content grouping\n//\n// 1. Add the correct box sizing in Firefox.\n// 2. Show the overflow in Edge and IE.\n\nhr {\n box-sizing: content-box; // 1\n height: 0; // 1\n overflow: visible; // 2\n}\n\n\n//\n// Typography\n//\n\n// Remove top margins from headings\n//\n// By default, `

    `-`

    ` all receive top and bottom margins. We nuke the top\n// margin for easier control within type scales as it avoids margin collapsing.\n// stylelint-disable selector-list-comma-newline-after\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: $headings-margin-bottom;\n}\n// stylelint-enable selector-list-comma-newline-after\n\n// Reset margins on paragraphs\n//\n// Similarly, the top margin on `

    `s get reset. However, we also reset the\n// bottom margin to use `rem` units instead of `em`.\np {\n margin-top: 0;\n margin-bottom: $paragraph-margin-bottom;\n}\n\n// Abbreviations\n//\n// 1. Remove the bottom border in Firefox 39-.\n// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n// 3. Add explicit cursor to indicate changed behavior.\n// 4. Duplicate behavior to the data-* attribute for our tooltip plugin\n\nabbr[title],\nabbr[data-original-title] { // 4\n text-decoration: underline; // 2\n text-decoration: underline dotted; // 2\n cursor: help; // 3\n border-bottom: 0; // 1\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: $dt-font-weight;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0; // Undo browser default\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\ndfn {\n font-style: italic; // Add the correct font style in Android 4.3-\n}\n\n// stylelint-disable font-weight-notation\nb,\nstrong {\n font-weight: bolder; // Add the correct font weight in Chrome, Edge, and Safari\n}\n// stylelint-enable font-weight-notation\n\nsmall {\n font-size: 80%; // Add the correct font size in all browsers\n}\n\n//\n// Prevent `sub` and `sup` elements from affecting the line height in\n// all browsers.\n//\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub { bottom: -.25em; }\nsup { top: -.5em; }\n\n\n//\n// Links\n//\n\na {\n color: $link-color;\n text-decoration: $link-decoration;\n background-color: transparent; // Remove the gray background on active links in IE 10.\n -webkit-text-decoration-skip: objects; // Remove gaps in links underline in iOS 8+ and Safari 8+.\n\n @include hover {\n color: $link-hover-color;\n text-decoration: $link-hover-decoration;\n }\n}\n\n// And undo these styles for placeholder links/named anchors (without href)\n// which have not been made explicitly keyboard-focusable (without tabindex).\n// It would be more straightforward to just use a[href] in previous block, but that\n// causes specificity issues in many other styles that are too complex to fix.\n// See https://github.com/twbs/bootstrap/issues/19402\n\na:not([href]):not([tabindex]) {\n color: inherit;\n text-decoration: none;\n\n @include hover-focus {\n color: inherit;\n text-decoration: none;\n }\n\n &:focus {\n outline: 0;\n }\n}\n\n\n//\n// Code\n//\n\n// stylelint-disable font-family-no-duplicate-names\npre,\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; // Correct the inheritance and scaling of font size in all browsers.\n font-size: 1em; // Correct the odd `em` font sizing in all browsers.\n}\n// stylelint-enable font-family-no-duplicate-names\n\npre {\n // Remove browser default top margin\n margin-top: 0;\n // Reset browser default of `1em` to use `rem`s\n margin-bottom: 1rem;\n // Don't allow content to break outside\n overflow: auto;\n // We have @viewport set which causes scrollbars to overlap content in IE11 and Edge, so\n // we force a non-overlapping, non-auto-hiding scrollbar to counteract.\n -ms-overflow-style: scrollbar;\n}\n\n\n//\n// Figures\n//\n\nfigure {\n // Apply a consistent margin strategy (matches our type styles).\n margin: 0 0 1rem;\n}\n\n\n//\n// Images and content\n//\n\nimg {\n vertical-align: middle;\n border-style: none; // Remove the border on images inside links in IE 10-.\n}\n\nsvg:not(:root) {\n overflow: hidden; // Hide the overflow in IE\n}\n\n\n// Avoid 300ms click delay on touch devices that support the `touch-action` CSS property.\n//\n// In particular, unlike most other browsers, IE11+Edge on Windows 10 on touch devices and IE Mobile 10-11\n// DON'T remove the click delay when `` is present.\n// However, they DO support removing the click delay via `touch-action: manipulation`.\n// See:\n// * https://getbootstrap.com/docs/4.0/content/reboot/#click-delay-optimization-for-touch\n// * https://caniuse.com/#feat=css-touch-action\n// * https://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay\n\na,\narea,\nbutton,\n[role=\"button\"],\ninput:not([type=\"range\"]),\nlabel,\nselect,\nsummary,\ntextarea {\n touch-action: manipulation;\n}\n\n\n//\n// Tables\n//\n\ntable {\n border-collapse: collapse; // Prevent double borders\n}\n\ncaption {\n padding-top: $table-cell-padding;\n padding-bottom: $table-cell-padding;\n color: $text-muted;\n text-align: left;\n caption-side: bottom;\n}\n\nth {\n // Matches default `` alignment by inheriting from the ``, or the\n // closest parent with a set `text-align`.\n text-align: inherit;\n}\n\n\n//\n// Forms\n//\n\nlabel {\n // Allow labels to use `margin` for spacing.\n display: inline-block;\n margin-bottom: .5rem;\n}\n\n// Remove the default `border-radius` that macOS Chrome adds.\n//\n// Details at https://github.com/twbs/bootstrap/issues/24093\nbutton {\n border-radius: 0;\n}\n\n// Work around a Firefox/IE bug where the transparent `button` background\n// results in a loss of the default `button` focus styles.\n//\n// Credit: https://github.com/suitcss/base/\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0; // Remove the margin in Firefox and Safari\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible; // Show the overflow in Edge\n}\n\nbutton,\nselect {\n text-transform: none; // Remove the inheritance of text transform in Firefox\n}\n\n// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`\n// controls in Android 4.\n// 2. Correct the inability to style clickable types in iOS and Safari.\nbutton,\nhtml [type=\"button\"], // 1\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button; // 2\n}\n\n// Remove inner border and padding from Firefox, but don't restore the outline like Normalize.\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n box-sizing: border-box; // 1. Add the correct box sizing in IE 10-\n padding: 0; // 2. Remove the padding in IE 10-\n}\n\n\ninput[type=\"date\"],\ninput[type=\"time\"],\ninput[type=\"datetime-local\"],\ninput[type=\"month\"] {\n // Remove the default appearance of temporal inputs to avoid a Mobile Safari\n // bug where setting a custom line-height prevents text from being vertically\n // centered within the input.\n // See https://bugs.webkit.org/show_bug.cgi?id=139848\n // and https://github.com/twbs/bootstrap/issues/11266\n -webkit-appearance: listbox;\n}\n\ntextarea {\n overflow: auto; // Remove the default vertical scrollbar in IE.\n // Textareas should really only resize vertically so they don't break their (horizontal) containers.\n resize: vertical;\n}\n\nfieldset {\n // Browsers set a default `min-width: min-content;` on fieldsets,\n // unlike e.g. `

    `s, which have `min-width: 0;` by default.\n // So we reset that to ensure fieldsets behave more like a standard block element.\n // See https://github.com/twbs/bootstrap/issues/12359\n // and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements\n min-width: 0;\n // Reset the default outline behavior of fieldsets so they don't affect page layout.\n padding: 0;\n margin: 0;\n border: 0;\n}\n\n// 1. Correct the text wrapping in Edge and IE.\n// 2. Correct the color inheritance from `fieldset` elements in IE.\nlegend {\n display: block;\n width: 100%;\n max-width: 100%; // 1\n padding: 0;\n margin-bottom: .5rem;\n font-size: 1.5rem;\n line-height: inherit;\n color: inherit; // 2\n white-space: normal; // 1\n}\n\nprogress {\n vertical-align: baseline; // Add the correct vertical alignment in Chrome, Firefox, and Opera.\n}\n\n// Correct the cursor style of increment and decrement buttons in Chrome.\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type=\"search\"] {\n // This overrides the extra rounded corners on search inputs in iOS so that our\n // `.form-control` class can properly style them. Note that this cannot simply\n // be added to `.form-control` as it's not specific enough. For details, see\n // https://github.com/twbs/bootstrap/issues/11586.\n outline-offset: -2px; // 2. Correct the outline style in Safari.\n -webkit-appearance: none;\n}\n\n//\n// Remove the inner padding and cancel buttons in Chrome and Safari on macOS.\n//\n\n[type=\"search\"]::-webkit-search-cancel-button,\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n//\n// 1. Correct the inability to style clickable types in iOS and Safari.\n// 2. Change font properties to `inherit` in Safari.\n//\n\n::-webkit-file-upload-button {\n font: inherit; // 2\n -webkit-appearance: button; // 1\n}\n\n//\n// Correct element displays\n//\n\noutput {\n display: inline-block;\n}\n\nsummary {\n display: list-item; // Add the correct display in all browsers\n}\n\ntemplate {\n display: none; // Add the correct display in IE\n}\n\n// Always hide an element with the `hidden` HTML attribute (from PureCSS).\n// Needed for proper display in IE 10-.\n[hidden] {\n display: none !important;\n}\n","/*!\n * Bootstrap Reboot v4.0.0-beta.2 (https://getbootstrap.com)\n * Copyright 2011-2017 The Bootstrap Authors\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)\n */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: transparent;\n}\n\n@-ms-viewport {\n width: device-width;\n}\n\narticle, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {\n display: block;\n}\n\nbody {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n text-align: left;\n background-color: #fff;\n}\n\n[tabindex=\"-1\"]:focus {\n outline: none !important;\n}\n\nhr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: 0.5rem;\n}\n\np {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nabbr[title],\nabbr[data-original-title] {\n text-decoration: underline;\n text-decoration: underline dotted;\n cursor: help;\n border-bottom: 0;\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: 700;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0;\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\ndfn {\n font-style: italic;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -.25em;\n}\n\nsup {\n top: -.5em;\n}\n\na {\n color: #007bff;\n text-decoration: none;\n background-color: transparent;\n -webkit-text-decoration-skip: objects;\n}\n\na:hover {\n color: #0056b3;\n text-decoration: underline;\n}\n\na:not([href]):not([tabindex]) {\n color: inherit;\n text-decoration: none;\n}\n\na:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {\n color: inherit;\n text-decoration: none;\n}\n\na:not([href]):not([tabindex]):focus {\n outline: 0;\n}\n\npre,\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\npre {\n margin-top: 0;\n margin-bottom: 1rem;\n overflow: auto;\n -ms-overflow-style: scrollbar;\n}\n\nfigure {\n margin: 0 0 1rem;\n}\n\nimg {\n vertical-align: middle;\n border-style: none;\n}\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\na,\narea,\nbutton,\n[role=\"button\"],\ninput:not([type=\"range\"]),\nlabel,\nselect,\nsummary,\ntextarea {\n touch-action: manipulation;\n}\n\ntable {\n border-collapse: collapse;\n}\n\ncaption {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n color: #868e96;\n text-align: left;\n caption-side: bottom;\n}\n\nth {\n text-align: inherit;\n}\n\nlabel {\n display: inline-block;\n margin-bottom: .5rem;\n}\n\nbutton {\n border-radius: 0;\n}\n\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\nhtml [type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n box-sizing: border-box;\n padding: 0;\n}\n\ninput[type=\"date\"],\ninput[type=\"time\"],\ninput[type=\"datetime-local\"],\ninput[type=\"month\"] {\n -webkit-appearance: listbox;\n}\n\ntextarea {\n overflow: auto;\n resize: vertical;\n}\n\nfieldset {\n min-width: 0;\n padding: 0;\n margin: 0;\n border: 0;\n}\n\nlegend {\n display: block;\n width: 100%;\n max-width: 100%;\n padding: 0;\n margin-bottom: .5rem;\n font-size: 1.5rem;\n line-height: inherit;\n color: inherit;\n white-space: normal;\n}\n\nprogress {\n vertical-align: baseline;\n}\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type=\"search\"] {\n outline-offset: -2px;\n -webkit-appearance: none;\n}\n\n[type=\"search\"]::-webkit-search-cancel-button,\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n}\n\noutput {\n display: inline-block;\n}\n\nsummary {\n display: list-item;\n}\n\ntemplate {\n display: none;\n}\n\n[hidden] {\n display: none !important;\n}\n\n/*# sourceMappingURL=bootstrap-reboot.css.map */","// Variables\n//\n// Variables should follow the `$component-state-property-size` formula for\n// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.\n\n\n//\n// Color system\n//\n\n// stylelint-disable\n$white: #fff !default;\n$gray-100: #f8f9fa !default;\n$gray-200: #e9ecef !default;\n$gray-300: #dee2e6 !default;\n$gray-400: #ced4da !default;\n$gray-500: #adb5bd !default;\n$gray-600: #868e96 !default;\n$gray-700: #495057 !default;\n$gray-800: #343a40 !default;\n$gray-900: #212529 !default;\n$black: #000 !default;\n\n$grays: () !default;\n$grays: map-merge((\n \"100\": $gray-100,\n \"200\": $gray-200,\n \"300\": $gray-300,\n \"400\": $gray-400,\n \"500\": $gray-500,\n \"600\": $gray-600,\n \"700\": $gray-700,\n \"800\": $gray-800,\n \"900\": $gray-900\n), $grays);\n\n$blue: #007bff !default;\n$indigo: #6610f2 !default;\n$purple: #6f42c1 !default;\n$pink: #e83e8c !default;\n$red: #dc3545 !default;\n$orange: #fd7e14 !default;\n$yellow: #ffc107 !default;\n$green: #28a745 !default;\n$teal: #20c997 !default;\n$cyan: #17a2b8 !default;\n\n$colors: () !default;\n$colors: map-merge((\n \"blue\": $blue,\n \"indigo\": $indigo,\n \"purple\": $purple,\n \"pink\": $pink,\n \"red\": $red,\n \"orange\": $orange,\n \"yellow\": $yellow,\n \"green\": $green,\n \"teal\": $teal,\n \"cyan\": $cyan,\n \"white\": $white,\n \"gray\": $gray-600,\n \"gray-dark\": $gray-800\n), $colors);\n\n$primary: $blue !default;\n$secondary: $gray-600 !default;\n$success: $green !default;\n$info: $cyan !default;\n$warning: $yellow !default;\n$danger: $red !default;\n$light: $gray-100 !default;\n$dark: $gray-800 !default;\n\n$theme-colors: () !default;\n$theme-colors: map-merge((\n \"primary\": $primary,\n \"secondary\": $secondary,\n \"success\": $success,\n \"info\": $info,\n \"warning\": $warning,\n \"danger\": $danger,\n \"light\": $light,\n \"dark\": $dark\n), $theme-colors);\n// stylelint-enable\n\n// Set a specific jump point for requesting color jumps\n$theme-color-interval: 8% !default;\n\n\n// Options\n//\n// Quickly modify global styling by enabling or disabling optional features.\n\n$enable-caret: true !default;\n$enable-rounded: true !default;\n$enable-shadows: false !default;\n$enable-gradients: false !default;\n$enable-transitions: true !default;\n$enable-hover-media-query: false !default;\n$enable-grid-classes: true !default;\n$enable-print-styles: true !default;\n\n\n// Spacing\n//\n// Control the default styling of most Bootstrap elements by modifying these\n// variables. Mostly focused on spacing.\n// You can add more entries to the $spacers map, should you need more variation.\n\n$spacer: 1rem !default;\n$spacers: (\n 0: 0,\n 1: ($spacer * .25),\n 2: ($spacer * .5),\n 3: $spacer,\n 4: ($spacer * 1.5),\n 5: ($spacer * 3)\n) !default;\n\n// This variable affects the `.h-*` and `.w-*` classes.\n$sizes: (\n 25: 25%,\n 50: 50%,\n 75: 75%,\n 100: 100%\n) !default;\n\n// Body\n//\n// Settings for the `` element.\n\n$body-bg: $white !default;\n$body-color: $gray-900 !default;\n\n// Links\n//\n// Style anchor elements.\n\n$link-color: theme-color(\"primary\") !default;\n$link-decoration: none !default;\n$link-hover-color: darken($link-color, 15%) !default;\n$link-hover-decoration: underline !default;\n\n// Paragraphs\n//\n// Style p element.\n\n$paragraph-margin-bottom: 1rem !default;\n\n\n// Grid breakpoints\n//\n// Define the minimum dimensions at which your layout will change,\n// adapting to different screen sizes, for use in media queries.\n\n$grid-breakpoints: (\n xs: 0,\n sm: 576px,\n md: 768px,\n lg: 992px,\n xl: 1200px\n) !default;\n\n@include _assert-ascending($grid-breakpoints, \"$grid-breakpoints\");\n@include _assert-starts-at-zero($grid-breakpoints);\n\n\n// Grid containers\n//\n// Define the maximum width of `.container` for different screen sizes.\n\n$container-max-widths: (\n sm: 540px,\n md: 720px,\n lg: 960px,\n xl: 1140px\n) !default;\n\n@include _assert-ascending($container-max-widths, \"$container-max-widths\");\n\n\n// Grid columns\n//\n// Set the number of columns and specify the width of the gutters.\n\n$grid-columns: 12 !default;\n$grid-gutter-width: 30px !default;\n\n// Components\n//\n// Define common padding and border radius sizes and more.\n\n$line-height-lg: 1.5 !default;\n$line-height-sm: 1.5 !default;\n\n$border-width: 1px !default;\n$border-color: $gray-200 !default;\n\n$border-radius: .25rem !default;\n$border-radius-lg: .3rem !default;\n$border-radius-sm: .2rem !default;\n\n$component-active-color: $white !default;\n$component-active-bg: theme-color(\"primary\") !default;\n\n$caret-width: .3em !default;\n\n$transition-base: all .2s ease-in-out !default;\n$transition-fade: opacity .15s linear !default;\n$transition-collapse: height .35s ease !default;\n\n\n// Fonts\n//\n// Font, line-height, and color for body text, headings, and more.\n\n// stylelint-disable value-keyword-case\n$font-family-sans-serif: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !default;\n$font-family-monospace: \"SFMono-Regular\", Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace !default;\n$font-family-base: $font-family-sans-serif !default;\n// stylelint-enable value-keyword-case\n\n$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`\n$font-size-lg: ($font-size-base * 1.25) !default;\n$font-size-sm: ($font-size-base * .875) !default;\n\n$font-weight-light: 300 !default;\n$font-weight-normal: 400 !default;\n$font-weight-bold: 700 !default;\n\n$font-weight-base: $font-weight-normal !default;\n$line-height-base: 1.5 !default;\n\n$h1-font-size: $font-size-base * 2.5 !default;\n$h2-font-size: $font-size-base * 2 !default;\n$h3-font-size: $font-size-base * 1.75 !default;\n$h4-font-size: $font-size-base * 1.5 !default;\n$h5-font-size: $font-size-base * 1.25 !default;\n$h6-font-size: $font-size-base !default;\n\n$headings-margin-bottom: ($spacer / 2) !default;\n$headings-font-family: inherit !default;\n$headings-font-weight: 500 !default;\n$headings-line-height: 1.2 !default;\n$headings-color: inherit !default;\n\n$display1-size: 6rem !default;\n$display2-size: 5.5rem !default;\n$display3-size: 4.5rem !default;\n$display4-size: 3.5rem !default;\n\n$display1-weight: 300 !default;\n$display2-weight: 300 !default;\n$display3-weight: 300 !default;\n$display4-weight: 300 !default;\n$display-line-height: $headings-line-height !default;\n\n$lead-font-size: ($font-size-base * 1.25) !default;\n$lead-font-weight: 300 !default;\n\n$small-font-size: 80% !default;\n\n$text-muted: $gray-600 !default;\n\n$blockquote-small-color: $gray-600 !default;\n$blockquote-font-size: ($font-size-base * 1.25) !default;\n\n$hr-border-color: rgba($black,.1) !default;\n$hr-border-width: $border-width !default;\n\n$mark-padding: .2em !default;\n\n$dt-font-weight: $font-weight-bold !default;\n\n$kbd-box-shadow: inset 0 -.1rem 0 rgba($black,.25) !default;\n$nested-kbd-font-weight: $font-weight-bold !default;\n\n$list-inline-padding: 5px !default;\n\n$mark-bg: #fcf8e3 !default;\n\n\n// Tables\n//\n// Customizes the `.table` component with basic values, each used across all table variations.\n\n$table-cell-padding: .75rem !default;\n$table-cell-padding-sm: .3rem !default;\n\n$table-bg: transparent !default;\n$table-accent-bg: rgba($black,.05) !default;\n$table-hover-bg: rgba($black,.075) !default;\n$table-active-bg: $table-hover-bg !default;\n\n$table-border-width: $border-width !default;\n$table-border-color: $gray-200 !default;\n\n$table-head-bg: $gray-200 !default;\n$table-head-color: $gray-700 !default;\n\n$table-dark-bg: $gray-900 !default;\n$table-dark-accent-bg: rgba($white, .05) !default;\n$table-dark-hover-bg: rgba($white, .075) !default;\n$table-dark-border-color: lighten($gray-900, 7.5%) !default;\n$table-dark-color: $body-bg !default;\n\n\n// Buttons\n//\n// For each of Bootstrap's buttons, define text, background and border color.\n\n$input-btn-padding-y: .375rem !default;\n$input-btn-padding-x: .75rem !default;\n$input-btn-line-height: $line-height-base !default;\n\n$input-btn-focus-width: .2rem !default;\n$input-btn-focus-color: rgba(theme-color(\"primary\"), .25) !default;\n$input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color !default;\n\n$input-btn-padding-y-sm: .25rem !default;\n$input-btn-padding-x-sm: .5rem !default;\n$input-btn-line-height-sm: $line-height-sm !default;\n\n$input-btn-padding-y-lg: .5rem !default;\n$input-btn-padding-x-lg: 1rem !default;\n$input-btn-line-height-lg: $line-height-lg !default;\n\n$btn-font-weight: $font-weight-normal !default;\n$btn-box-shadow: inset 0 1px 0 rgba($white,.15), 0 1px 1px rgba($black,.075) !default;\n$btn-active-box-shadow: inset 0 3px 5px rgba($black,.125) !default;\n\n$btn-link-disabled-color: $gray-600 !default;\n\n$btn-block-spacing-y: .5rem !default;\n\n// Allows for customizing button radius independently from global border radius\n$btn-border-radius: $border-radius !default;\n$btn-border-radius-lg: $border-radius-lg !default;\n$btn-border-radius-sm: $border-radius-sm !default;\n\n$btn-transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;\n\n\n// Forms\n\n$input-bg: $white !default;\n$input-disabled-bg: $gray-200 !default;\n\n$input-color: $gray-700 !default;\n$input-border-color: $gray-400 !default;\n$input-btn-border-width: $border-width !default; // For form controls and buttons\n$input-box-shadow: inset 0 1px 1px rgba($black,.075) !default;\n\n$input-border-radius: $border-radius !default;\n$input-border-radius-lg: $border-radius-lg !default;\n$input-border-radius-sm: $border-radius-sm !default;\n\n$input-focus-bg: $input-bg !default;\n$input-focus-border-color: lighten(theme-color(\"primary\"), 25%) !default;\n$input-focus-color: $input-color !default;\n\n$input-placeholder-color: $gray-600 !default;\n\n$input-height-border: $input-btn-border-width * 2 !default;\n\n$input-height-inner: ($font-size-base * $input-btn-line-height) + ($input-btn-padding-y * 2) !default;\n$input-height: calc(#{$input-height-inner} + #{$input-height-border}) !default;\n\n$input-height-inner-sm: ($font-size-sm * $input-btn-line-height-sm) + ($input-btn-padding-y-sm * 2) !default;\n$input-height-sm: calc(#{$input-height-inner-sm} + #{$input-height-border}) !default;\n\n$input-height-inner-lg: ($font-size-lg * $input-btn-line-height-lg) + ($input-btn-padding-y-lg * 2) !default;\n$input-height-lg: calc(#{$input-height-inner-lg} + #{$input-height-border}) !default;\n\n$input-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s !default;\n\n$form-text-margin-top: .25rem !default;\n\n$form-check-margin-bottom: .5rem !default;\n$form-check-input-gutter: 1.25rem !default;\n$form-check-input-margin-y: .25rem !default;\n$form-check-input-margin-x: .25rem !default;\n\n$form-check-inline-margin-x: .75rem !default;\n\n$form-group-margin-bottom: 1rem !default;\n\n$input-group-addon-color: $input-color !default;\n$input-group-addon-bg: $gray-200 !default;\n$input-group-addon-border-color: $input-border-color !default;\n\n$custom-control-gutter: 1.5rem !default;\n$custom-control-spacer-y: .25rem !default;\n$custom-control-spacer-x: 1rem !default;\n\n$custom-control-indicator-size: 1rem !default;\n$custom-control-indicator-bg: #ddd !default;\n$custom-control-indicator-bg-size: 50% 50% !default;\n$custom-control-indicator-box-shadow: inset 0 .25rem .25rem rgba($black,.1) !default;\n\n$custom-control-indicator-disabled-bg: $gray-200 !default;\n$custom-control-description-disabled-color: $gray-600 !default;\n\n$custom-control-indicator-checked-color: $white !default;\n$custom-control-indicator-checked-bg: theme-color(\"primary\") !default;\n$custom-control-indicator-checked-box-shadow: none !default;\n\n$custom-control-indicator-focus-box-shadow: 0 0 0 1px $body-bg, $input-btn-focus-box-shadow !default;\n\n$custom-control-indicator-active-color: $white !default;\n$custom-control-indicator-active-bg: lighten(theme-color(\"primary\"), 35%) !default;\n$custom-control-indicator-active-box-shadow: none !default;\n\n$custom-checkbox-indicator-border-radius: $border-radius !default;\n$custom-checkbox-indicator-icon-checked: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#{$custom-control-indicator-checked-color}' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n\n$custom-checkbox-indicator-indeterminate-bg: theme-color(\"primary\") !default;\n$custom-checkbox-indicator-indeterminate-color: $custom-control-indicator-checked-color !default;\n$custom-checkbox-indicator-icon-indeterminate: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='#{$custom-checkbox-indicator-indeterminate-color}' d='M0 2h4'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$custom-checkbox-indicator-indeterminate-box-shadow: none !default;\n\n$custom-radio-indicator-border-radius: 50% !default;\n$custom-radio-indicator-icon-checked: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='#{$custom-control-indicator-checked-color}'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n\n$custom-select-padding-y: .375rem !default;\n$custom-select-padding-x: .75rem !default;\n$custom-select-height: $input-height !default;\n$custom-select-indicator-padding: 1rem !default; // Extra padding to account for the presence of the background-image based indicator\n$custom-select-line-height: $input-btn-line-height !default;\n$custom-select-color: $input-color !default;\n$custom-select-disabled-color: $gray-600 !default;\n$custom-select-bg: $white !default;\n$custom-select-disabled-bg: $gray-200 !default;\n$custom-select-bg-size: 8px 10px !default; // In pixels because image dimensions\n$custom-select-indicator-color: #333 !default;\n$custom-select-indicator: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='#{$custom-select-indicator-color}' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$custom-select-border-width: $input-btn-border-width !default;\n$custom-select-border-color: $input-border-color !default;\n$custom-select-border-radius: $border-radius !default;\n\n$custom-select-focus-border-color: lighten(theme-color(\"primary\"), 25%) !default;\n$custom-select-focus-box-shadow: inset 0 1px 2px rgba($black, .075), 0 0 5px rgba($custom-select-focus-border-color, .5) !default;\n\n$custom-select-font-size-sm: 75% !default;\n$custom-select-height-sm: $input-height-sm !default;\n\n$custom-file-height: $input-height !default;\n$custom-file-width: 14rem !default;\n$custom-file-focus-box-shadow: 0 0 0 .075rem $white, 0 0 0 .2rem theme-color(\"primary\") !default;\n\n$custom-file-padding-y: $input-btn-padding-y !default;\n$custom-file-padding-x: $input-btn-padding-x !default;\n$custom-file-line-height: $input-btn-line-height !default;\n$custom-file-color: $input-color !default;\n$custom-file-bg: $input-bg !default;\n$custom-file-border-width: $input-btn-border-width !default;\n$custom-file-border-color: $input-border-color !default;\n$custom-file-border-radius: $input-border-radius !default;\n$custom-file-box-shadow: $input-box-shadow !default;\n$custom-file-button-color: $custom-file-color !default;\n$custom-file-button-bg: $input-group-addon-bg !default;\n$custom-file-text: (\n placeholder: (\n en: \"Choose file...\"\n ),\n button-label: (\n en: \"Browse\"\n )\n) !default;\n\n\n// Form validation\n$form-feedback-valid-color: theme-color(\"success\") !default;\n$form-feedback-invalid-color: theme-color(\"danger\") !default;\n\n\n// Dropdowns\n//\n// Dropdown menu container and contents.\n\n$dropdown-min-width: 10rem !default;\n$dropdown-padding-y: .5rem !default;\n$dropdown-spacer: .125rem !default;\n$dropdown-bg: $white !default;\n$dropdown-border-color: rgba($black,.15) !default;\n$dropdown-border-width: $border-width !default;\n$dropdown-divider-bg: $gray-200 !default;\n$dropdown-box-shadow: 0 .5rem 1rem rgba($black,.175) !default;\n\n$dropdown-link-color: $gray-900 !default;\n$dropdown-link-hover-color: darken($gray-900, 5%) !default;\n$dropdown-link-hover-bg: $gray-100 !default;\n\n$dropdown-link-active-color: $component-active-color !default;\n$dropdown-link-active-bg: $component-active-bg !default;\n\n$dropdown-link-disabled-color: $gray-600 !default;\n\n$dropdown-item-padding-y: .25rem !default;\n$dropdown-item-padding-x: 1.5rem !default;\n\n$dropdown-header-color: $gray-600 !default;\n\n\n// Z-index master list\n//\n// Warning: Avoid customizing these values. They're used for a bird's eye view\n// of components dependent on the z-axis and are designed to all work together.\n\n$zindex-dropdown: 1000 !default;\n$zindex-sticky: 1020 !default;\n$zindex-fixed: 1030 !default;\n$zindex-modal-backdrop: 1040 !default;\n$zindex-modal: 1050 !default;\n$zindex-popover: 1060 !default;\n$zindex-tooltip: 1070 !default;\n\n// Navs\n\n$nav-link-padding-y: .5rem !default;\n$nav-link-padding-x: 1rem !default;\n$nav-link-disabled-color: $gray-600 !default;\n\n$nav-tabs-border-color: #ddd !default;\n$nav-tabs-border-width: $border-width !default;\n$nav-tabs-border-radius: $border-radius !default;\n$nav-tabs-link-hover-border-color: $gray-200 !default;\n$nav-tabs-link-active-color: $gray-700 !default;\n$nav-tabs-link-active-bg: $body-bg !default;\n$nav-tabs-link-active-border-color: #ddd !default;\n\n$nav-pills-border-radius: $border-radius !default;\n$nav-pills-link-active-color: $component-active-color !default;\n$nav-pills-link-active-bg: $component-active-bg !default;\n\n// Navbar\n\n$navbar-padding-y: ($spacer / 2) !default;\n$navbar-padding-x: $spacer !default;\n\n$navbar-brand-font-size: $font-size-lg !default;\n// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link\n$nav-link-height: ($font-size-base * $line-height-base + $nav-link-padding-y * 2) !default;\n$navbar-brand-height: $navbar-brand-font-size * $line-height-base !default;\n$navbar-brand-padding-y: ($nav-link-height - $navbar-brand-height) / 2 !default;\n\n$navbar-toggler-padding-y: .25rem !default;\n$navbar-toggler-padding-x: .75rem !default;\n$navbar-toggler-font-size: $font-size-lg !default;\n$navbar-toggler-border-radius: $btn-border-radius !default;\n\n$navbar-dark-color: rgba($white,.5) !default;\n$navbar-dark-hover-color: rgba($white,.75) !default;\n$navbar-dark-active-color: $white !default;\n$navbar-dark-disabled-color: rgba($white,.25) !default;\n$navbar-dark-toggler-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-dark-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$navbar-dark-toggler-border-color: rgba($white,.1) !default;\n\n$navbar-light-color: rgba($black,.5) !default;\n$navbar-light-hover-color: rgba($black,.7) !default;\n$navbar-light-active-color: rgba($black,.9) !default;\n$navbar-light-disabled-color: rgba($black,.3) !default;\n$navbar-light-toggler-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-light-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$navbar-light-toggler-border-color: rgba($black,.1) !default;\n\n// Pagination\n\n$pagination-padding-y: .5rem !default;\n$pagination-padding-x: .75rem !default;\n$pagination-padding-y-sm: .25rem !default;\n$pagination-padding-x-sm: .5rem !default;\n$pagination-padding-y-lg: .75rem !default;\n$pagination-padding-x-lg: 1.5rem !default;\n$pagination-line-height: 1.25 !default;\n\n$pagination-color: $link-color !default;\n$pagination-bg: $white !default;\n$pagination-border-width: $border-width !default;\n$pagination-border-color: #ddd !default;\n\n$pagination-hover-color: $link-hover-color !default;\n$pagination-hover-bg: $gray-200 !default;\n$pagination-hover-border-color: #ddd !default;\n\n$pagination-active-color: $white !default;\n$pagination-active-bg: theme-color(\"primary\") !default;\n$pagination-active-border-color: theme-color(\"primary\") !default;\n\n$pagination-disabled-color: $gray-600 !default;\n$pagination-disabled-bg: $white !default;\n$pagination-disabled-border-color: #ddd !default;\n\n\n// Jumbotron\n\n$jumbotron-padding: 2rem !default;\n$jumbotron-bg: $gray-200 !default;\n\n\n// Cards\n\n$card-spacer-y: .75rem !default;\n$card-spacer-x: 1.25rem !default;\n$card-border-width: $border-width !default;\n$card-border-radius: $border-radius !default;\n$card-border-color: rgba($black,.125) !default;\n$card-inner-border-radius: calc(#{$card-border-radius} - #{$card-border-width}) !default;\n$card-cap-bg: rgba($black, .03) !default;\n$card-bg: $white !default;\n\n$card-img-overlay-padding: 1.25rem !default;\n\n$card-group-margin: ($grid-gutter-width / 2) !default;\n$card-deck-margin: $card-group-margin !default;\n\n$card-columns-count: 3 !default;\n$card-columns-gap: 1.25rem !default;\n$card-columns-margin: $card-spacer-y !default;\n\n\n// Tooltips\n\n$tooltip-max-width: 200px !default;\n$tooltip-color: $white !default;\n$tooltip-bg: $black !default;\n$tooltip-opacity: .9 !default;\n$tooltip-padding-y: 3px !default;\n$tooltip-padding-x: 8px !default;\n$tooltip-margin: 0 !default;\n\n\n$tooltip-arrow-width: 5px !default;\n$tooltip-arrow-height: 5px !default;\n$tooltip-arrow-color: $tooltip-bg !default;\n\n\n// Popovers\n\n$popover-bg: $white !default;\n$popover-max-width: 276px !default;\n$popover-border-width: $border-width !default;\n$popover-border-color: rgba($black,.2) !default;\n$popover-box-shadow: 0 .25rem .5rem rgba($black,.2) !default;\n\n$popover-header-bg: darken($popover-bg, 3%) !default;\n$popover-header-color: $headings-color !default;\n$popover-header-padding-y: .5rem !default;\n$popover-header-padding-x: .75rem !default;\n\n$popover-body-color: $body-color !default;\n$popover-body-padding-y: $popover-header-padding-y !default;\n$popover-body-padding-x: $popover-header-padding-x !default;\n\n$popover-arrow-width: .8rem !default;\n$popover-arrow-height: .4rem !default;\n$popover-arrow-color: $popover-bg !default;\n\n$popover-arrow-outer-color: fade-in($popover-border-color, .05) !default;\n\n\n// Badges\n\n$badge-font-size: 75% !default;\n$badge-font-weight: $font-weight-bold !default;\n$badge-padding-y: .25em !default;\n$badge-padding-x: .4em !default;\n$badge-border-radius: $border-radius !default;\n\n$badge-pill-padding-x: .6em !default;\n// Use a higher than normal value to ensure completely rounded edges when\n// customizing padding or font-size on labels.\n$badge-pill-border-radius: 10rem !default;\n\n\n// Modals\n\n// Padding applied to the modal body\n$modal-inner-padding: 15px !default;\n\n$modal-dialog-margin: 10px !default;\n$modal-dialog-margin-y-sm-up: 30px !default;\n\n$modal-title-line-height: $line-height-base !default;\n\n$modal-content-bg: $white !default;\n$modal-content-border-color: rgba($black,.2) !default;\n$modal-content-border-width: $border-width !default;\n$modal-content-box-shadow-xs: 0 3px 9px rgba($black,.5) !default;\n$modal-content-box-shadow-sm-up: 0 5px 15px rgba($black,.5) !default;\n\n$modal-backdrop-bg: $black !default;\n$modal-backdrop-opacity: .5 !default;\n$modal-header-border-color: $gray-200 !default;\n$modal-footer-border-color: $modal-header-border-color !default;\n$modal-header-border-width: $modal-content-border-width !default;\n$modal-footer-border-width: $modal-header-border-width !default;\n$modal-header-padding: 15px !default;\n\n$modal-lg: 800px !default;\n$modal-md: 500px !default;\n$modal-sm: 300px !default;\n\n$modal-transition: transform .3s ease-out !default;\n\n\n// Alerts\n//\n// Define alert colors, border radius, and padding.\n\n$alert-padding-y: .75rem !default;\n$alert-padding-x: 1.25rem !default;\n$alert-margin-bottom: 1rem !default;\n$alert-border-radius: $border-radius !default;\n$alert-link-font-weight: $font-weight-bold !default;\n$alert-border-width: $border-width !default;\n\n\n// Progress bars\n\n$progress-height: 1rem !default;\n$progress-font-size: ($font-size-base * .75) !default;\n$progress-bg: $gray-200 !default;\n$progress-border-radius: $border-radius !default;\n$progress-box-shadow: inset 0 .1rem .1rem rgba($black,.1) !default;\n$progress-bar-color: $white !default;\n$progress-bar-bg: theme-color(\"primary\") !default;\n$progress-bar-animation-timing: 1s linear infinite !default;\n$progress-bar-transition: width .6s ease !default;\n\n// List group\n\n$list-group-bg: $white !default;\n$list-group-border-color: rgba($black,.125) !default;\n$list-group-border-width: $border-width !default;\n$list-group-border-radius: $border-radius !default;\n\n$list-group-item-padding-y: .75rem !default;\n$list-group-item-padding-x: 1.25rem !default;\n\n$list-group-hover-bg: $gray-100 !default;\n$list-group-active-color: $component-active-color !default;\n$list-group-active-bg: $component-active-bg !default;\n$list-group-active-border-color: $list-group-active-bg !default;\n\n$list-group-disabled-color: $gray-600 !default;\n$list-group-disabled-bg: $list-group-bg !default;\n\n$list-group-action-color: $gray-700 !default;\n$list-group-action-hover-color: $list-group-action-color !default;\n\n$list-group-action-active-color: $body-color !default;\n$list-group-action-active-bg: $gray-200 !default;\n\n\n// Image thumbnails\n\n$thumbnail-padding: .25rem !default;\n$thumbnail-bg: $body-bg !default;\n$thumbnail-border-width: $border-width !default;\n$thumbnail-border-color: #ddd !default;\n$thumbnail-border-radius: $border-radius !default;\n$thumbnail-box-shadow: 0 1px 2px rgba($black,.075) !default;\n$thumbnail-transition: all .2s ease-in-out !default;\n\n\n// Figures\n\n$figure-caption-font-size: 90% !default;\n$figure-caption-color: $gray-600 !default;\n\n\n// Breadcrumbs\n\n$breadcrumb-padding-y: .75rem !default;\n$breadcrumb-padding-x: 1rem !default;\n$breadcrumb-item-padding: .5rem !default;\n\n$breadcrumb-margin-bottom: 1rem !default;\n\n$breadcrumb-bg: $gray-200 !default;\n$breadcrumb-divider-color: $gray-600 !default;\n$breadcrumb-active-color: $gray-600 !default;\n$breadcrumb-divider: \"/\" !default;\n\n\n// Carousel\n\n$carousel-control-color: $white !default;\n$carousel-control-width: 15% !default;\n$carousel-control-opacity: .5 !default;\n\n$carousel-indicator-width: 30px !default;\n$carousel-indicator-height: 3px !default;\n$carousel-indicator-spacer: 3px !default;\n$carousel-indicator-active-bg: $white !default;\n\n$carousel-caption-width: 70% !default;\n$carousel-caption-color: $white !default;\n\n$carousel-control-icon-width: 20px !default;\n\n$carousel-control-prev-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$carousel-control-next-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n\n$carousel-transition: transform .6s ease !default;\n\n\n// Close\n\n$close-font-size: $font-size-base * 1.5 !default;\n$close-font-weight: $font-weight-bold !default;\n$close-color: $black !default;\n$close-text-shadow: 0 1px 0 $white !default;\n\n// Code\n\n$code-font-size: 90% !default;\n$code-padding-y: .2rem !default;\n$code-padding-x: .4rem !default;\n$code-color: #bd4147 !default;\n$code-bg: $gray-100 !default;\n\n$kbd-color: $white !default;\n$kbd-bg: $gray-900 !default;\n\n$pre-color: $gray-900 !default;\n$pre-scrollable-max-height: 340px !default;\n","// stylelint-disable indentation\n@mixin hover {\n // TODO: re-enable along with mq4-hover-shim\n// @if $enable-hover-media-query {\n// // See Media Queries Level 4: https://drafts.csswg.org/mediaqueries/#hover\n// // Currently shimmed by https://github.com/twbs/mq4-hover-shim\n// @media (hover: hover) {\n// &:hover { @content }\n// }\n// }\n// @else {\n &:hover { @content; }\n// }\n}\n\n\n@mixin hover-focus {\n @if $enable-hover-media-query {\n &:focus {\n @content;\n }\n @include hover { @content; }\n } @else {\n &:focus,\n &:hover {\n @content;\n }\n }\n}\n\n@mixin plain-hover-focus {\n @if $enable-hover-media-query {\n &,\n &:focus {\n @content;\n }\n @include hover { @content; }\n } @else {\n &,\n &:focus,\n &:hover {\n @content;\n }\n }\n}\n\n@mixin hover-focus-active {\n @if $enable-hover-media-query {\n &:focus,\n &:active {\n @content;\n }\n @include hover { @content; }\n } @else {\n &:focus,\n &:active,\n &:hover {\n @content;\n }\n }\n}\n"]} \ No newline at end of file diff --git a/bin/station/vendor/bootstrap/css/bootstrap-reboot.min.css b/bin/station/vendor/bootstrap/css/bootstrap-reboot.min.css deleted file mode 100644 index 3f4f1a8..0000000 --- a/bin/station/vendor/bootstrap/css/bootstrap-reboot.min.css +++ /dev/null @@ -1,8 +0,0 @@ -/*! - * Bootstrap Reboot v4.0.0-beta.2 (https://getbootstrap.com) - * Copyright 2011-2017 The Bootstrap Authors - * Copyright 2011-2017 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) - */*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#868e96;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important} -/*# sourceMappingURL=bootstrap-reboot.min.css.map */ \ No newline at end of file diff --git a/bin/station/vendor/bootstrap/css/bootstrap-reboot.min.css.map b/bin/station/vendor/bootstrap/css/bootstrap-reboot.min.css.map deleted file mode 100644 index 4b8e662..0000000 --- a/bin/station/vendor/bootstrap/css/bootstrap-reboot.min.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../scss/bootstrap-reboot.scss","../../scss/_reboot.scss","dist/css/bootstrap-reboot.css","bootstrap-reboot.css","../../scss/mixins/_hover.scss"],"names":[],"mappings":"AAAA;;;;;;ACoBA,ECXA,QADA,SDeE,WAAA,WAGF,KACE,YAAA,WACA,YAAA,KACA,yBAAA,KACA,qBAAA,KACA,mBAAA,UACA,4BAAA,YAKA,cACE,MAAA,aAMJ,QAAA,MAAA,OAAA,WAAA,OAAA,OAAA,OAAA,OAAA,KAAA,IAAA,QACE,QAAA,MAWF,KACE,OAAA,EACA,YAAA,aAAA,CAAA,kBAAA,CAAA,UAAA,CAAA,MAAA,CAAA,gBAAA,CAAA,KAAA,CAAA,UAAA,CAAA,mBAAA,CAAA,gBAAA,CAAA,kBACA,UAAA,KACA,YAAA,IACA,YAAA,IACA,MAAA,QACA,WAAA,KACA,iBAAA,KEvBF,sB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AEA,SD6HE,OAAA,EACA,YAAA,QACA,UAAA,QACA,YAAA,QAGF,OC3HA,MD6HE,SAAA,QAGF,OC3HA,OD6HE,eAAA,KCvHF,aACA,cD4HA,OC9HA,mBDkIE,mBAAA,OC3HF,gCACA,+BACA,gCD6HA,yBAIE,QAAA,EACA,aAAA,KC5HF,qBD+HA,kBAEE,WAAA,WACA,QAAA,EAIF,iBC/HA,2BACA,kBAFA,iBDyIE,mBAAA,QAGF,SACE,SAAA,KAEA,OAAA,SAGF,SAME,UAAA,EAEA,QAAA,EACA,OAAA,EACA,OAAA,EAKF,OACE,QAAA,MACA,MAAA,KACA,UAAA,KACA,QAAA,EACA,cAAA,MACA,UAAA,OACA,YAAA,QACA,MAAA,QACA,YAAA,OAGF,SACE,eAAA,SE9IF,yCDGA,yCDiJE,OAAA,KE/IF,cFuJE,eAAA,KACA,mBAAA,KEnJF,4CDGA,yCDyJE,mBAAA,KAQF,6BACE,KAAA,QACA,mBAAA,OAOF,OACE,QAAA,aAGF,QACE,QAAA,UAGF,SACE,QAAA,KEhKF,SFsKE,QAAA","sourcesContent":["/*!\n * Bootstrap Reboot v4.0.0-beta.2 (https://getbootstrap.com)\n * Copyright 2011-2017 The Bootstrap Authors\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)\n */\n\n@import \"functions\";\n@import \"variables\";\n@import \"mixins\";\n@import \"reboot\";\n","// stylelint-disable at-rule-no-vendor-prefix, declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix\n\n// Reboot\n//\n// Normalization of HTML elements, manually forked from Normalize.css to remove\n// styles targeting irrelevant browsers while applying new styles.\n//\n// Normalize is licensed MIT. https://github.com/necolas/normalize.css\n\n\n// Document\n//\n// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.\n// 2. Change the default font family in all browsers.\n// 3. Correct the line height in all browsers.\n// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.\n// 5. Setting @viewport causes scrollbars to overlap content in IE11 and Edge, so\n// we force a non-overlapping, non-auto-hiding scrollbar to counteract.\n// 6. Change the default tap highlight to be completely transparent in iOS.\n\n*,\n*::before,\n*::after {\n box-sizing: border-box; // 1\n}\n\nhtml {\n font-family: sans-serif; // 2\n line-height: 1.15; // 3\n -webkit-text-size-adjust: 100%; // 4\n -ms-text-size-adjust: 100%; // 4\n -ms-overflow-style: scrollbar; // 5\n -webkit-tap-highlight-color: rgba(0,0,0,0); // 6\n}\n\n// IE10+ doesn't honor `` in some cases.\n@at-root {\n @-ms-viewport {\n width: device-width;\n }\n}\n\n// stylelint-disable selector-list-comma-newline-after\n// Shim for \"new\" HTML5 structural elements to display correctly (IE10, older browsers)\narticle, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {\n display: block;\n}\n// stylelint-enable selector-list-comma-newline-after\n\n// Body\n//\n// 1. Remove the margin in all browsers.\n// 2. As a best practice, apply a default `background-color`.\n// 3. Set an explicit initial text-align value so that we can later use the\n// the `inherit` value on things like `` elements.\n\nbody {\n margin: 0; // 1\n font-family: $font-family-base;\n font-size: $font-size-base;\n font-weight: $font-weight-base;\n line-height: $line-height-base;\n color: $body-color;\n text-align: left; // 3\n background-color: $body-bg; // 2\n}\n\n// Suppress the focus outline on elements that cannot be accessed via keyboard.\n// This prevents an unwanted focus outline from appearing around elements that\n// might still respond to pointer events.\n//\n// Credit: https://github.com/suitcss/base\n[tabindex=\"-1\"]:focus {\n outline: none !important;\n}\n\n\n// Content grouping\n//\n// 1. Add the correct box sizing in Firefox.\n// 2. Show the overflow in Edge and IE.\n\nhr {\n box-sizing: content-box; // 1\n height: 0; // 1\n overflow: visible; // 2\n}\n\n\n//\n// Typography\n//\n\n// Remove top margins from headings\n//\n// By default, `

    `-`

    ` all receive top and bottom margins. We nuke the top\n// margin for easier control within type scales as it avoids margin collapsing.\n// stylelint-disable selector-list-comma-newline-after\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: $headings-margin-bottom;\n}\n// stylelint-enable selector-list-comma-newline-after\n\n// Reset margins on paragraphs\n//\n// Similarly, the top margin on `

    `s get reset. However, we also reset the\n// bottom margin to use `rem` units instead of `em`.\np {\n margin-top: 0;\n margin-bottom: $paragraph-margin-bottom;\n}\n\n// Abbreviations\n//\n// 1. Remove the bottom border in Firefox 39-.\n// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n// 3. Add explicit cursor to indicate changed behavior.\n// 4. Duplicate behavior to the data-* attribute for our tooltip plugin\n\nabbr[title],\nabbr[data-original-title] { // 4\n text-decoration: underline; // 2\n text-decoration: underline dotted; // 2\n cursor: help; // 3\n border-bottom: 0; // 1\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: $dt-font-weight;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0; // Undo browser default\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\ndfn {\n font-style: italic; // Add the correct font style in Android 4.3-\n}\n\n// stylelint-disable font-weight-notation\nb,\nstrong {\n font-weight: bolder; // Add the correct font weight in Chrome, Edge, and Safari\n}\n// stylelint-enable font-weight-notation\n\nsmall {\n font-size: 80%; // Add the correct font size in all browsers\n}\n\n//\n// Prevent `sub` and `sup` elements from affecting the line height in\n// all browsers.\n//\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub { bottom: -.25em; }\nsup { top: -.5em; }\n\n\n//\n// Links\n//\n\na {\n color: $link-color;\n text-decoration: $link-decoration;\n background-color: transparent; // Remove the gray background on active links in IE 10.\n -webkit-text-decoration-skip: objects; // Remove gaps in links underline in iOS 8+ and Safari 8+.\n\n @include hover {\n color: $link-hover-color;\n text-decoration: $link-hover-decoration;\n }\n}\n\n// And undo these styles for placeholder links/named anchors (without href)\n// which have not been made explicitly keyboard-focusable (without tabindex).\n// It would be more straightforward to just use a[href] in previous block, but that\n// causes specificity issues in many other styles that are too complex to fix.\n// See https://github.com/twbs/bootstrap/issues/19402\n\na:not([href]):not([tabindex]) {\n color: inherit;\n text-decoration: none;\n\n @include hover-focus {\n color: inherit;\n text-decoration: none;\n }\n\n &:focus {\n outline: 0;\n }\n}\n\n\n//\n// Code\n//\n\n// stylelint-disable font-family-no-duplicate-names\npre,\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; // Correct the inheritance and scaling of font size in all browsers.\n font-size: 1em; // Correct the odd `em` font sizing in all browsers.\n}\n// stylelint-enable font-family-no-duplicate-names\n\npre {\n // Remove browser default top margin\n margin-top: 0;\n // Reset browser default of `1em` to use `rem`s\n margin-bottom: 1rem;\n // Don't allow content to break outside\n overflow: auto;\n // We have @viewport set which causes scrollbars to overlap content in IE11 and Edge, so\n // we force a non-overlapping, non-auto-hiding scrollbar to counteract.\n -ms-overflow-style: scrollbar;\n}\n\n\n//\n// Figures\n//\n\nfigure {\n // Apply a consistent margin strategy (matches our type styles).\n margin: 0 0 1rem;\n}\n\n\n//\n// Images and content\n//\n\nimg {\n vertical-align: middle;\n border-style: none; // Remove the border on images inside links in IE 10-.\n}\n\nsvg:not(:root) {\n overflow: hidden; // Hide the overflow in IE\n}\n\n\n// Avoid 300ms click delay on touch devices that support the `touch-action` CSS property.\n//\n// In particular, unlike most other browsers, IE11+Edge on Windows 10 on touch devices and IE Mobile 10-11\n// DON'T remove the click delay when `` is present.\n// However, they DO support removing the click delay via `touch-action: manipulation`.\n// See:\n// * https://getbootstrap.com/docs/4.0/content/reboot/#click-delay-optimization-for-touch\n// * https://caniuse.com/#feat=css-touch-action\n// * https://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay\n\na,\narea,\nbutton,\n[role=\"button\"],\ninput:not([type=\"range\"]),\nlabel,\nselect,\nsummary,\ntextarea {\n touch-action: manipulation;\n}\n\n\n//\n// Tables\n//\n\ntable {\n border-collapse: collapse; // Prevent double borders\n}\n\ncaption {\n padding-top: $table-cell-padding;\n padding-bottom: $table-cell-padding;\n color: $text-muted;\n text-align: left;\n caption-side: bottom;\n}\n\nth {\n // Matches default `` alignment by inheriting from the ``, or the\n // closest parent with a set `text-align`.\n text-align: inherit;\n}\n\n\n//\n// Forms\n//\n\nlabel {\n // Allow labels to use `margin` for spacing.\n display: inline-block;\n margin-bottom: .5rem;\n}\n\n// Remove the default `border-radius` that macOS Chrome adds.\n//\n// Details at https://github.com/twbs/bootstrap/issues/24093\nbutton {\n border-radius: 0;\n}\n\n// Work around a Firefox/IE bug where the transparent `button` background\n// results in a loss of the default `button` focus styles.\n//\n// Credit: https://github.com/suitcss/base/\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0; // Remove the margin in Firefox and Safari\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible; // Show the overflow in Edge\n}\n\nbutton,\nselect {\n text-transform: none; // Remove the inheritance of text transform in Firefox\n}\n\n// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`\n// controls in Android 4.\n// 2. Correct the inability to style clickable types in iOS and Safari.\nbutton,\nhtml [type=\"button\"], // 1\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button; // 2\n}\n\n// Remove inner border and padding from Firefox, but don't restore the outline like Normalize.\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n box-sizing: border-box; // 1. Add the correct box sizing in IE 10-\n padding: 0; // 2. Remove the padding in IE 10-\n}\n\n\ninput[type=\"date\"],\ninput[type=\"time\"],\ninput[type=\"datetime-local\"],\ninput[type=\"month\"] {\n // Remove the default appearance of temporal inputs to avoid a Mobile Safari\n // bug where setting a custom line-height prevents text from being vertically\n // centered within the input.\n // See https://bugs.webkit.org/show_bug.cgi?id=139848\n // and https://github.com/twbs/bootstrap/issues/11266\n -webkit-appearance: listbox;\n}\n\ntextarea {\n overflow: auto; // Remove the default vertical scrollbar in IE.\n // Textareas should really only resize vertically so they don't break their (horizontal) containers.\n resize: vertical;\n}\n\nfieldset {\n // Browsers set a default `min-width: min-content;` on fieldsets,\n // unlike e.g. `

    `s, which have `min-width: 0;` by default.\n // So we reset that to ensure fieldsets behave more like a standard block element.\n // See https://github.com/twbs/bootstrap/issues/12359\n // and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements\n min-width: 0;\n // Reset the default outline behavior of fieldsets so they don't affect page layout.\n padding: 0;\n margin: 0;\n border: 0;\n}\n\n// 1. Correct the text wrapping in Edge and IE.\n// 2. Correct the color inheritance from `fieldset` elements in IE.\nlegend {\n display: block;\n width: 100%;\n max-width: 100%; // 1\n padding: 0;\n margin-bottom: .5rem;\n font-size: 1.5rem;\n line-height: inherit;\n color: inherit; // 2\n white-space: normal; // 1\n}\n\nprogress {\n vertical-align: baseline; // Add the correct vertical alignment in Chrome, Firefox, and Opera.\n}\n\n// Correct the cursor style of increment and decrement buttons in Chrome.\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type=\"search\"] {\n // This overrides the extra rounded corners on search inputs in iOS so that our\n // `.form-control` class can properly style them. Note that this cannot simply\n // be added to `.form-control` as it's not specific enough. For details, see\n // https://github.com/twbs/bootstrap/issues/11586.\n outline-offset: -2px; // 2. Correct the outline style in Safari.\n -webkit-appearance: none;\n}\n\n//\n// Remove the inner padding and cancel buttons in Chrome and Safari on macOS.\n//\n\n[type=\"search\"]::-webkit-search-cancel-button,\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n//\n// 1. Correct the inability to style clickable types in iOS and Safari.\n// 2. Change font properties to `inherit` in Safari.\n//\n\n::-webkit-file-upload-button {\n font: inherit; // 2\n -webkit-appearance: button; // 1\n}\n\n//\n// Correct element displays\n//\n\noutput {\n display: inline-block;\n}\n\nsummary {\n display: list-item; // Add the correct display in all browsers\n}\n\ntemplate {\n display: none; // Add the correct display in IE\n}\n\n// Always hide an element with the `hidden` HTML attribute (from PureCSS).\n// Needed for proper display in IE 10-.\n[hidden] {\n display: none !important;\n}\n","/*!\n * Bootstrap Reboot v4.0.0-beta.2 (https://getbootstrap.com)\n * Copyright 2011-2017 The Bootstrap Authors\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)\n */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: transparent;\n}\n\n@-ms-viewport {\n width: device-width;\n}\n\narticle, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {\n display: block;\n}\n\nbody {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n text-align: left;\n background-color: #fff;\n}\n\n[tabindex=\"-1\"]:focus {\n outline: none !important;\n}\n\nhr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: 0.5rem;\n}\n\np {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nabbr[title],\nabbr[data-original-title] {\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n cursor: help;\n border-bottom: 0;\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: 700;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0;\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\ndfn {\n font-style: italic;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -.25em;\n}\n\nsup {\n top: -.5em;\n}\n\na {\n color: #007bff;\n text-decoration: none;\n background-color: transparent;\n -webkit-text-decoration-skip: objects;\n}\n\na:hover {\n color: #0056b3;\n text-decoration: underline;\n}\n\na:not([href]):not([tabindex]) {\n color: inherit;\n text-decoration: none;\n}\n\na:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {\n color: inherit;\n text-decoration: none;\n}\n\na:not([href]):not([tabindex]):focus {\n outline: 0;\n}\n\npre,\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\npre {\n margin-top: 0;\n margin-bottom: 1rem;\n overflow: auto;\n -ms-overflow-style: scrollbar;\n}\n\nfigure {\n margin: 0 0 1rem;\n}\n\nimg {\n vertical-align: middle;\n border-style: none;\n}\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\na,\narea,\nbutton,\n[role=\"button\"],\ninput:not([type=\"range\"]),\nlabel,\nselect,\nsummary,\ntextarea {\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n}\n\ntable {\n border-collapse: collapse;\n}\n\ncaption {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n color: #868e96;\n text-align: left;\n caption-side: bottom;\n}\n\nth {\n text-align: inherit;\n}\n\nlabel {\n display: inline-block;\n margin-bottom: .5rem;\n}\n\nbutton {\n border-radius: 0;\n}\n\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\nhtml [type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n box-sizing: border-box;\n padding: 0;\n}\n\ninput[type=\"date\"],\ninput[type=\"time\"],\ninput[type=\"datetime-local\"],\ninput[type=\"month\"] {\n -webkit-appearance: listbox;\n}\n\ntextarea {\n overflow: auto;\n resize: vertical;\n}\n\nfieldset {\n min-width: 0;\n padding: 0;\n margin: 0;\n border: 0;\n}\n\nlegend {\n display: block;\n width: 100%;\n max-width: 100%;\n padding: 0;\n margin-bottom: .5rem;\n font-size: 1.5rem;\n line-height: inherit;\n color: inherit;\n white-space: normal;\n}\n\nprogress {\n vertical-align: baseline;\n}\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type=\"search\"] {\n outline-offset: -2px;\n -webkit-appearance: none;\n}\n\n[type=\"search\"]::-webkit-search-cancel-button,\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n}\n\noutput {\n display: inline-block;\n}\n\nsummary {\n display: list-item;\n}\n\ntemplate {\n display: none;\n}\n\n[hidden] {\n display: none !important;\n}\n/*# sourceMappingURL=bootstrap-reboot.css.map */","/*!\n * Bootstrap Reboot v4.0.0-beta.2 (https://getbootstrap.com)\n * Copyright 2011-2017 The Bootstrap Authors\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)\n */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: transparent;\n}\n\n@-ms-viewport {\n width: device-width;\n}\n\narticle, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {\n display: block;\n}\n\nbody {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n text-align: left;\n background-color: #fff;\n}\n\n[tabindex=\"-1\"]:focus {\n outline: none !important;\n}\n\nhr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: 0.5rem;\n}\n\np {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nabbr[title],\nabbr[data-original-title] {\n text-decoration: underline;\n text-decoration: underline dotted;\n cursor: help;\n border-bottom: 0;\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: 700;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0;\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\ndfn {\n font-style: italic;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -.25em;\n}\n\nsup {\n top: -.5em;\n}\n\na {\n color: #007bff;\n text-decoration: none;\n background-color: transparent;\n -webkit-text-decoration-skip: objects;\n}\n\na:hover {\n color: #0056b3;\n text-decoration: underline;\n}\n\na:not([href]):not([tabindex]) {\n color: inherit;\n text-decoration: none;\n}\n\na:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {\n color: inherit;\n text-decoration: none;\n}\n\na:not([href]):not([tabindex]):focus {\n outline: 0;\n}\n\npre,\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\npre {\n margin-top: 0;\n margin-bottom: 1rem;\n overflow: auto;\n -ms-overflow-style: scrollbar;\n}\n\nfigure {\n margin: 0 0 1rem;\n}\n\nimg {\n vertical-align: middle;\n border-style: none;\n}\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\na,\narea,\nbutton,\n[role=\"button\"],\ninput:not([type=\"range\"]),\nlabel,\nselect,\nsummary,\ntextarea {\n touch-action: manipulation;\n}\n\ntable {\n border-collapse: collapse;\n}\n\ncaption {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n color: #868e96;\n text-align: left;\n caption-side: bottom;\n}\n\nth {\n text-align: inherit;\n}\n\nlabel {\n display: inline-block;\n margin-bottom: .5rem;\n}\n\nbutton {\n border-radius: 0;\n}\n\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\nhtml [type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n box-sizing: border-box;\n padding: 0;\n}\n\ninput[type=\"date\"],\ninput[type=\"time\"],\ninput[type=\"datetime-local\"],\ninput[type=\"month\"] {\n -webkit-appearance: listbox;\n}\n\ntextarea {\n overflow: auto;\n resize: vertical;\n}\n\nfieldset {\n min-width: 0;\n padding: 0;\n margin: 0;\n border: 0;\n}\n\nlegend {\n display: block;\n width: 100%;\n max-width: 100%;\n padding: 0;\n margin-bottom: .5rem;\n font-size: 1.5rem;\n line-height: inherit;\n color: inherit;\n white-space: normal;\n}\n\nprogress {\n vertical-align: baseline;\n}\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type=\"search\"] {\n outline-offset: -2px;\n -webkit-appearance: none;\n}\n\n[type=\"search\"]::-webkit-search-cancel-button,\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n}\n\noutput {\n display: inline-block;\n}\n\nsummary {\n display: list-item;\n}\n\ntemplate {\n display: none;\n}\n\n[hidden] {\n display: none !important;\n}\n\n/*# sourceMappingURL=bootstrap-reboot.css.map */","// stylelint-disable indentation\n@mixin hover {\n // TODO: re-enable along with mq4-hover-shim\n// @if $enable-hover-media-query {\n// // See Media Queries Level 4: https://drafts.csswg.org/mediaqueries/#hover\n// // Currently shimmed by https://github.com/twbs/mq4-hover-shim\n// @media (hover: hover) {\n// &:hover { @content }\n// }\n// }\n// @else {\n &:hover { @content; }\n// }\n}\n\n\n@mixin hover-focus {\n @if $enable-hover-media-query {\n &:focus {\n @content;\n }\n @include hover { @content; }\n } @else {\n &:focus,\n &:hover {\n @content;\n }\n }\n}\n\n@mixin plain-hover-focus {\n @if $enable-hover-media-query {\n &,\n &:focus {\n @content;\n }\n @include hover { @content; }\n } @else {\n &,\n &:focus,\n &:hover {\n @content;\n }\n }\n}\n\n@mixin hover-focus-active {\n @if $enable-hover-media-query {\n &:focus,\n &:active {\n @content;\n }\n @include hover { @content; }\n } @else {\n &:focus,\n &:active,\n &:hover {\n @content;\n }\n }\n}\n"]} \ No newline at end of file diff --git a/bin/station/vendor/bootstrap/css/bootstrap.css.map b/bin/station/vendor/bootstrap/css/bootstrap.css.map deleted file mode 100644 index 77a5c8e..0000000 --- a/bin/station/vendor/bootstrap/css/bootstrap.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../scss/bootstrap.scss","../../scss/_root.scss","../../scss/_print.scss","bootstrap.css","../../scss/_reboot.scss","../../scss/_variables.scss","../../scss/mixins/_hover.scss","../../scss/_type.scss","../../scss/mixins/_lists.scss","../../scss/_images.scss","../../scss/mixins/_image.scss","../../scss/mixins/_border-radius.scss","../../scss/mixins/_transition.scss","../../scss/_code.scss","../../scss/_grid.scss","../../scss/mixins/_grid.scss","../../scss/mixins/_breakpoints.scss","../../scss/mixins/_grid-framework.scss","../../scss/_tables.scss","../../scss/mixins/_table-row.scss","../../scss/_functions.scss","../../scss/_forms.scss","../../scss/mixins/_forms.scss","../../scss/_buttons.scss","../../scss/mixins/_buttons.scss","../../scss/mixins/_gradients.scss","../../scss/_transitions.scss","../../scss/_dropdown.scss","../../scss/mixins/_caret.scss","../../scss/mixins/_nav-divider.scss","../../scss/_button-group.scss","../../scss/_input-group.scss","../../scss/_custom-forms.scss","../../scss/_nav.scss","../../scss/_navbar.scss","../../scss/_card.scss","../../scss/_breadcrumb.scss","../../scss/_pagination.scss","../../scss/mixins/_pagination.scss","../../scss/_badge.scss","../../scss/mixins/_badge.scss","../../scss/_jumbotron.scss","../../scss/_alert.scss","../../scss/mixins/_alert.scss","../../scss/_progress.scss","../../scss/_media.scss","../../scss/_list-group.scss","../../scss/mixins/_list-group.scss","../../scss/_close.scss","../../scss/_modal.scss","../../scss/_tooltip.scss","../../scss/mixins/_reset-text.scss","../../scss/_popover.scss","../../scss/_carousel.scss","../../scss/utilities/_align.scss","../../scss/mixins/_background-variant.scss","../../scss/utilities/_background.scss","../../scss/utilities/_borders.scss","../../scss/mixins/_clearfix.scss","../../scss/utilities/_display.scss","../../scss/utilities/_embed.scss","../../scss/utilities/_flex.scss","../../scss/utilities/_float.scss","../../scss/mixins/_float.scss","../../scss/utilities/_position.scss","../../scss/utilities/_screenreaders.scss","../../scss/mixins/_screen-reader.scss","../../scss/utilities/_sizing.scss","../../scss/utilities/_spacing.scss","../../scss/utilities/_text.scss","../../scss/mixins/_text-truncate.scss","../../scss/mixins/_text-emphasis.scss","../../scss/mixins/_text-hide.scss","../../scss/utilities/_visibility.scss","../../scss/mixins/_visibility.scss"],"names":[],"mappings":"AAAA;;;;;GAKG;ACLH;EAGI,gBAAe;EAAf,kBAAe;EAAf,kBAAe;EAAf,gBAAe;EAAf,eAAe;EAAf,kBAAe;EAAf,kBAAe;EAAf,iBAAe;EAAf,gBAAe;EAAf,gBAAe;EAAf,cAAe;EAAf,gBAAe;EAAf,qBAAe;EAIf,mBAAe;EAAf,qBAAe;EAAf,mBAAe;EAAf,gBAAe;EAAf,mBAAe;EAAf,kBAAe;EAAf,iBAAe;EAAf,gBAAe;EAIf,mBAAkC;EAAlC,uBAAkC;EAAlC,uBAAkC;EAAlC,uBAAkC;EAAlC,wBAAkC;EAKpC,+KAA0B;EAC1B,gHAAyB;CAC1B;;ACPC;EACE;;;IAKE,6BAA4B;IAE5B,4BAA2B;GAC5B;EAED;;IAEE,2BAA0B;GAC3B;EAOD;IACE,8BAA6B;GAC9B;EAaD;IACE,iCAAgC;GACjC;EACD;;IAEE,uBAAgC;IAChC,yBAAwB;GACzB;EAOD;IACE,4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* Copyright 2011-2017 The Bootstrap Authors\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n@import \"functions\";\n@import \"variables\";\n@import \"mixins\";\n@import \"root\";\n@import \"print\";\n@import \"reboot\";\n@import \"type\";\n@import \"images\";\n@import \"code\";\n@import \"grid\";\n@import \"tables\";\n@import \"forms\";\n@import \"buttons\";\n@import \"transitions\";\n@import \"dropdown\";\n@import \"button-group\";\n@import \"input-group\";\n@import \"custom-forms\";\n@import \"nav\";\n@import \"navbar\";\n@import \"card\";\n@import \"breadcrumb\";\n@import \"pagination\";\n@import \"badge\";\n@import \"jumbotron\";\n@import \"alert\";\n@import \"progress\";\n@import \"media\";\n@import \"list-group\";\n@import \"close\";\n@import \"modal\";\n@import \"tooltip\";\n@import \"popover\";\n@import \"carousel\";\n@import \"utilities\";\n",":root {\n // Custom variable values only support SassScript inside `#{}`.\n @each $color, $value in $colors {\n --#{$color}: #{$value};\n }\n\n @each $color, $value in $theme-colors {\n --#{$color}: #{$value};\n }\n\n @each $bp, $value in $grid-breakpoints {\n --breakpoint-#{$bp}: #{$value};\n }\n\n // Use `inspect` for lists so that quoted items keep the quotes.\n // See https://github.com/sass/sass/issues/2383#issuecomment-336349172\n --font-family-sans-serif: #{inspect($font-family-sans-serif)};\n --font-family-monospace: #{inspect($font-family-monospace)};\n}\n","// stylelint-disable declaration-no-important, selector-no-qualifying-type\n\n// Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css\n\n// ==========================================================================\n// Print styles.\n// Inlined to avoid the additional HTTP request:\n// http://www.phpied.com/delay-loading-your-print-css/\n// ==========================================================================\n\n@if $enable-print-styles {\n @media print {\n *,\n *::before,\n *::after {\n // Bootstrap specific; comment out `color` and `background`\n //color: #000 !important; // Black prints faster: http://www.sanbeiji.com/archives/953\n text-shadow: none !important;\n //background: transparent !important;\n box-shadow: none !important;\n }\n\n a,\n a:visited {\n text-decoration: underline;\n }\n\n // Bootstrap specific; comment the following selector out\n //a[href]::after {\n // content: \" (\" attr(href) \")\";\n //}\n\n abbr[title]::after {\n content: \" (\" attr(title) \")\";\n }\n\n // Bootstrap specific; comment the following selector out\n //\n // Don't show links that are fragment identifiers,\n // or use the `javascript:` pseudo protocol\n //\n\n //a[href^=\"#\"]::after,\n //a[href^=\"javascript:\"]::after {\n // content: \"\";\n //}\n\n pre {\n white-space: pre-wrap !important;\n }\n pre,\n blockquote {\n border: $border-width solid #999; // Bootstrap custom code; using `$border-width` instead of 1px\n page-break-inside: avoid;\n }\n\n //\n // Printing Tables:\n // http://css-discuss.incutio.com/wiki/Printing_Tables\n //\n\n thead {\n display: table-header-group;\n }\n\n tr,\n img {\n page-break-inside: avoid;\n }\n\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n\n h2,\n h3 {\n page-break-after: avoid;\n }\n\n // Bootstrap specific changes start\n\n // Bootstrap components\n .navbar {\n display: none;\n }\n .badge {\n border: $border-width solid #000;\n }\n\n .table {\n border-collapse: collapse !important;\n\n td,\n th {\n background-color: #fff !important;\n }\n }\n .table-bordered {\n th,\n td {\n border: 1px solid #ddd !important;\n }\n }\n\n // Bootstrap specific changes end\n }\n}\n","/*!\n * Bootstrap v4.0.0-beta.2 (https://getbootstrap.com)\n * Copyright 2011-2017 The Bootstrap Authors\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n:root {\n --blue: #007bff;\n --indigo: #6610f2;\n --purple: #6f42c1;\n --pink: #e83e8c;\n --red: #dc3545;\n --orange: #fd7e14;\n --yellow: #ffc107;\n --green: #28a745;\n --teal: #20c997;\n --cyan: #17a2b8;\n --white: #fff;\n --gray: #868e96;\n --gray-dark: #343a40;\n --primary: #007bff;\n --secondary: #868e96;\n --success: #28a745;\n --info: #17a2b8;\n --warning: #ffc107;\n --danger: #dc3545;\n --light: #f8f9fa;\n --dark: #343a40;\n --breakpoint-xs: 0;\n --breakpoint-sm: 576px;\n --breakpoint-md: 768px;\n --breakpoint-lg: 992px;\n --breakpoint-xl: 1200px;\n --font-family-sans-serif: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n --font-family-monospace: \"SFMono-Regular\", Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n}\n\n@media print {\n *,\n *::before,\n *::after {\n text-shadow: none !important;\n box-shadow: none !important;\n }\n a,\n a:visited {\n text-decoration: underline;\n }\n abbr[title]::after {\n content: \" (\" attr(title) \")\";\n }\n pre {\n white-space: pre-wrap !important;\n }\n pre,\n blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n thead {\n display: table-header-group;\n }\n tr,\n img {\n page-break-inside: avoid;\n }\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n h2,\n h3 {\n page-break-after: avoid;\n }\n .navbar {\n display: none;\n }\n .badge {\n border: 1px solid #000;\n }\n .table {\n border-collapse: collapse !important;\n }\n .table td,\n .table th {\n background-color: #fff !important;\n }\n .table-bordered th,\n .table-bordered td {\n border: 1px solid #ddd !important;\n }\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: transparent;\n}\n\n@-ms-viewport {\n width: device-width;\n}\n\narticle, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {\n display: block;\n}\n\nbody {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n text-align: left;\n background-color: #fff;\n}\n\n[tabindex=\"-1\"]:focus {\n outline: none !important;\n}\n\nhr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: 0.5rem;\n}\n\np {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nabbr[title],\nabbr[data-original-title] {\n text-decoration: underline;\n text-decoration: underline dotted;\n cursor: help;\n border-bottom: 0;\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: 700;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0;\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\ndfn {\n font-style: italic;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -.25em;\n}\n\nsup {\n top: -.5em;\n}\n\na {\n color: #007bff;\n text-decoration: none;\n background-color: transparent;\n -webkit-text-decoration-skip: objects;\n}\n\na:hover {\n color: #0056b3;\n text-decoration: underline;\n}\n\na:not([href]):not([tabindex]) {\n color: inherit;\n text-decoration: none;\n}\n\na:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {\n color: inherit;\n text-decoration: none;\n}\n\na:not([href]):not([tabindex]):focus {\n outline: 0;\n}\n\npre,\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\npre {\n margin-top: 0;\n margin-bottom: 1rem;\n overflow: auto;\n -ms-overflow-style: scrollbar;\n}\n\nfigure {\n margin: 0 0 1rem;\n}\n\nimg {\n vertical-align: middle;\n border-style: none;\n}\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\na,\narea,\nbutton,\n[role=\"button\"],\ninput:not([type=\"range\"]),\nlabel,\nselect,\nsummary,\ntextarea {\n touch-action: manipulation;\n}\n\ntable {\n border-collapse: collapse;\n}\n\ncaption {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n color: #868e96;\n text-align: left;\n caption-side: bottom;\n}\n\nth {\n text-align: inherit;\n}\n\nlabel {\n display: inline-block;\n margin-bottom: .5rem;\n}\n\nbutton {\n border-radius: 0;\n}\n\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\nhtml [type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n box-sizing: border-box;\n padding: 0;\n}\n\ninput[type=\"date\"],\ninput[type=\"time\"],\ninput[type=\"datetime-local\"],\ninput[type=\"month\"] {\n -webkit-appearance: listbox;\n}\n\ntextarea {\n overflow: auto;\n resize: vertical;\n}\n\nfieldset {\n min-width: 0;\n padding: 0;\n margin: 0;\n border: 0;\n}\n\nlegend {\n display: block;\n width: 100%;\n max-width: 100%;\n padding: 0;\n margin-bottom: .5rem;\n font-size: 1.5rem;\n line-height: inherit;\n color: inherit;\n white-space: normal;\n}\n\nprogress {\n vertical-align: baseline;\n}\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type=\"search\"] {\n outline-offset: -2px;\n -webkit-appearance: none;\n}\n\n[type=\"search\"]::-webkit-search-cancel-button,\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n}\n\noutput {\n display: inline-block;\n}\n\nsummary {\n display: list-item;\n}\n\ntemplate {\n display: none;\n}\n\n[hidden] {\n display: none !important;\n}\n\nh1, h2, h3, h4, h5, h6,\n.h1, .h2, .h3, .h4, .h5, .h6 {\n margin-bottom: 0.5rem;\n font-family: inherit;\n font-weight: 500;\n line-height: 1.2;\n color: inherit;\n}\n\nh1, .h1 {\n font-size: 2.5rem;\n}\n\nh2, .h2 {\n font-size: 2rem;\n}\n\nh3, .h3 {\n font-size: 1.75rem;\n}\n\nh4, .h4 {\n font-size: 1.5rem;\n}\n\nh5, .h5 {\n font-size: 1.25rem;\n}\n\nh6, .h6 {\n font-size: 1rem;\n}\n\n.lead {\n font-size: 1.25rem;\n font-weight: 300;\n}\n\n.display-1 {\n font-size: 6rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\n.display-2 {\n font-size: 5.5rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\n.display-3 {\n font-size: 4.5rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\n.display-4 {\n font-size: 3.5rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\nhr {\n margin-top: 1rem;\n margin-bottom: 1rem;\n border: 0;\n border-top: 1px solid rgba(0, 0, 0, 0.1);\n}\n\nsmall,\n.small {\n font-size: 80%;\n font-weight: 400;\n}\n\nmark,\n.mark {\n padding: 0.2em;\n background-color: #fcf8e3;\n}\n\n.list-unstyled {\n padding-left: 0;\n list-style: none;\n}\n\n.list-inline {\n padding-left: 0;\n list-style: none;\n}\n\n.list-inline-item {\n display: inline-block;\n}\n\n.list-inline-item:not(:last-child) {\n margin-right: 5px;\n}\n\n.initialism {\n font-size: 90%;\n text-transform: uppercase;\n}\n\n.blockquote {\n margin-bottom: 1rem;\n font-size: 1.25rem;\n}\n\n.blockquote-footer {\n display: block;\n font-size: 80%;\n color: #868e96;\n}\n\n.blockquote-footer::before {\n content: \"\\2014 \\00A0\";\n}\n\n.img-fluid {\n max-width: 100%;\n height: auto;\n}\n\n.img-thumbnail {\n padding: 0.25rem;\n background-color: #fff;\n border: 1px solid #ddd;\n border-radius: 0.25rem;\n transition: all 0.2s ease-in-out;\n max-width: 100%;\n height: auto;\n}\n\n.figure {\n display: inline-block;\n}\n\n.figure-img {\n margin-bottom: 0.5rem;\n line-height: 1;\n}\n\n.figure-caption {\n font-size: 90%;\n color: #868e96;\n}\n\ncode,\nkbd,\npre,\nsamp {\n font-family: \"SFMono-Regular\", Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n}\n\ncode {\n padding: 0.2rem 0.4rem;\n font-size: 90%;\n color: #bd4147;\n background-color: #f8f9fa;\n border-radius: 0.25rem;\n}\n\na > code {\n padding: 0;\n color: inherit;\n background-color: inherit;\n}\n\nkbd {\n padding: 0.2rem 0.4rem;\n font-size: 90%;\n color: #fff;\n background-color: #212529;\n border-radius: 0.2rem;\n}\n\nkbd kbd {\n padding: 0;\n font-size: 100%;\n font-weight: 700;\n}\n\npre {\n display: block;\n margin-top: 0;\n margin-bottom: 1rem;\n font-size: 90%;\n color: #212529;\n}\n\npre code {\n padding: 0;\n font-size: inherit;\n color: inherit;\n background-color: transparent;\n border-radius: 0;\n}\n\n.pre-scrollable {\n max-height: 340px;\n overflow-y: scroll;\n}\n\n.container {\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto;\n}\n\n@media (min-width: 576px) {\n .container {\n max-width: 540px;\n }\n}\n\n@media (min-width: 768px) {\n .container {\n max-width: 720px;\n }\n}\n\n@media (min-width: 992px) {\n .container {\n max-width: 960px;\n }\n}\n\n@media (min-width: 1200px) {\n .container {\n max-width: 1140px;\n }\n}\n\n.container-fluid {\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto;\n}\n\n.row {\n display: flex;\n flex-wrap: wrap;\n margin-right: -15px;\n margin-left: -15px;\n}\n\n.no-gutters {\n margin-right: 0;\n margin-left: 0;\n}\n\n.no-gutters > .col,\n.no-gutters > [class*=\"col-\"] {\n padding-right: 0;\n padding-left: 0;\n}\n\n.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col,\n.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm,\n.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md,\n.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg,\n.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl,\n.col-xl-auto {\n position: relative;\n width: 100%;\n min-height: 1px;\n padding-right: 15px;\n padding-left: 15px;\n}\n\n.col {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n}\n\n.col-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n}\n\n.col-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n}\n\n.col-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n}\n\n.col-3 {\n flex: 0 0 25%;\n max-width: 25%;\n}\n\n.col-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n}\n\n.col-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n}\n\n.col-6 {\n flex: 0 0 50%;\n max-width: 50%;\n}\n\n.col-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n}\n\n.col-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n}\n\n.col-9 {\n flex: 0 0 75%;\n max-width: 75%;\n}\n\n.col-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n}\n\n.col-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n}\n\n.col-12 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n\n.order-first {\n order: -1;\n}\n\n.order-1 {\n order: 1;\n}\n\n.order-2 {\n order: 2;\n}\n\n.order-3 {\n order: 3;\n}\n\n.order-4 {\n order: 4;\n}\n\n.order-5 {\n order: 5;\n}\n\n.order-6 {\n order: 6;\n}\n\n.order-7 {\n order: 7;\n}\n\n.order-8 {\n order: 8;\n}\n\n.order-9 {\n order: 9;\n}\n\n.order-10 {\n order: 10;\n}\n\n.order-11 {\n order: 11;\n}\n\n.order-12 {\n order: 12;\n}\n\n.offset-1 {\n margin-left: 8.333333%;\n}\n\n.offset-2 {\n margin-left: 16.666667%;\n}\n\n.offset-3 {\n margin-left: 25%;\n}\n\n.offset-4 {\n margin-left: 33.333333%;\n}\n\n.offset-5 {\n margin-left: 41.666667%;\n}\n\n.offset-6 {\n margin-left: 50%;\n}\n\n.offset-7 {\n margin-left: 58.333333%;\n}\n\n.offset-8 {\n margin-left: 66.666667%;\n}\n\n.offset-9 {\n margin-left: 75%;\n}\n\n.offset-10 {\n margin-left: 83.333333%;\n}\n\n.offset-11 {\n margin-left: 91.666667%;\n}\n\n@media (min-width: 576px) {\n .col-sm {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-sm-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-sm-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-sm-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-sm-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-sm-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-sm-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-sm-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-sm-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-sm-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-sm-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-sm-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-sm-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-sm-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-sm-first {\n order: -1;\n }\n .order-sm-1 {\n order: 1;\n }\n .order-sm-2 {\n order: 2;\n }\n .order-sm-3 {\n order: 3;\n }\n .order-sm-4 {\n order: 4;\n }\n .order-sm-5 {\n order: 5;\n }\n .order-sm-6 {\n order: 6;\n }\n .order-sm-7 {\n order: 7;\n }\n .order-sm-8 {\n order: 8;\n }\n .order-sm-9 {\n order: 9;\n }\n .order-sm-10 {\n order: 10;\n }\n .order-sm-11 {\n order: 11;\n }\n .order-sm-12 {\n order: 12;\n }\n .offset-sm-0 {\n margin-left: 0;\n }\n .offset-sm-1 {\n margin-left: 8.333333%;\n }\n .offset-sm-2 {\n margin-left: 16.666667%;\n }\n .offset-sm-3 {\n margin-left: 25%;\n }\n .offset-sm-4 {\n margin-left: 33.333333%;\n }\n .offset-sm-5 {\n margin-left: 41.666667%;\n }\n .offset-sm-6 {\n margin-left: 50%;\n }\n .offset-sm-7 {\n margin-left: 58.333333%;\n }\n .offset-sm-8 {\n margin-left: 66.666667%;\n }\n .offset-sm-9 {\n margin-left: 75%;\n }\n .offset-sm-10 {\n margin-left: 83.333333%;\n }\n .offset-sm-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 768px) {\n .col-md {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-md-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-md-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-md-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-md-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-md-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-md-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-md-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-md-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-md-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-md-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-md-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-md-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-md-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-md-first {\n order: -1;\n }\n .order-md-1 {\n order: 1;\n }\n .order-md-2 {\n order: 2;\n }\n .order-md-3 {\n order: 3;\n }\n .order-md-4 {\n order: 4;\n }\n .order-md-5 {\n order: 5;\n }\n .order-md-6 {\n order: 6;\n }\n .order-md-7 {\n order: 7;\n }\n .order-md-8 {\n order: 8;\n }\n .order-md-9 {\n order: 9;\n }\n .order-md-10 {\n order: 10;\n }\n .order-md-11 {\n order: 11;\n }\n .order-md-12 {\n order: 12;\n }\n .offset-md-0 {\n margin-left: 0;\n }\n .offset-md-1 {\n margin-left: 8.333333%;\n }\n .offset-md-2 {\n margin-left: 16.666667%;\n }\n .offset-md-3 {\n margin-left: 25%;\n }\n .offset-md-4 {\n margin-left: 33.333333%;\n }\n .offset-md-5 {\n margin-left: 41.666667%;\n }\n .offset-md-6 {\n margin-left: 50%;\n }\n .offset-md-7 {\n margin-left: 58.333333%;\n }\n .offset-md-8 {\n margin-left: 66.666667%;\n }\n .offset-md-9 {\n margin-left: 75%;\n }\n .offset-md-10 {\n margin-left: 83.333333%;\n }\n .offset-md-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 992px) {\n .col-lg {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-lg-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-lg-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-lg-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-lg-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-lg-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-lg-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-lg-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-lg-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-lg-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-lg-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-lg-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-lg-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-lg-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-lg-first {\n order: -1;\n }\n .order-lg-1 {\n order: 1;\n }\n .order-lg-2 {\n order: 2;\n }\n .order-lg-3 {\n order: 3;\n }\n .order-lg-4 {\n order: 4;\n }\n .order-lg-5 {\n order: 5;\n }\n .order-lg-6 {\n order: 6;\n }\n .order-lg-7 {\n order: 7;\n }\n .order-lg-8 {\n order: 8;\n }\n .order-lg-9 {\n order: 9;\n }\n .order-lg-10 {\n order: 10;\n }\n .order-lg-11 {\n order: 11;\n }\n .order-lg-12 {\n order: 12;\n }\n .offset-lg-0 {\n margin-left: 0;\n }\n .offset-lg-1 {\n margin-left: 8.333333%;\n }\n .offset-lg-2 {\n margin-left: 16.666667%;\n }\n .offset-lg-3 {\n margin-left: 25%;\n }\n .offset-lg-4 {\n margin-left: 33.333333%;\n }\n .offset-lg-5 {\n margin-left: 41.666667%;\n }\n .offset-lg-6 {\n margin-left: 50%;\n }\n .offset-lg-7 {\n margin-left: 58.333333%;\n }\n .offset-lg-8 {\n margin-left: 66.666667%;\n }\n .offset-lg-9 {\n margin-left: 75%;\n }\n .offset-lg-10 {\n margin-left: 83.333333%;\n }\n .offset-lg-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 1200px) {\n .col-xl {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .col-xl-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n }\n .col-xl-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-xl-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-xl-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-xl-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-xl-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-xl-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-xl-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-xl-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-xl-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-xl-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-xl-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-xl-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-xl-first {\n order: -1;\n }\n .order-xl-1 {\n order: 1;\n }\n .order-xl-2 {\n order: 2;\n }\n .order-xl-3 {\n order: 3;\n }\n .order-xl-4 {\n order: 4;\n }\n .order-xl-5 {\n order: 5;\n }\n .order-xl-6 {\n order: 6;\n }\n .order-xl-7 {\n order: 7;\n }\n .order-xl-8 {\n order: 8;\n }\n .order-xl-9 {\n order: 9;\n }\n .order-xl-10 {\n order: 10;\n }\n .order-xl-11 {\n order: 11;\n }\n .order-xl-12 {\n order: 12;\n }\n .offset-xl-0 {\n margin-left: 0;\n }\n .offset-xl-1 {\n margin-left: 8.333333%;\n }\n .offset-xl-2 {\n margin-left: 16.666667%;\n }\n .offset-xl-3 {\n margin-left: 25%;\n }\n .offset-xl-4 {\n margin-left: 33.333333%;\n }\n .offset-xl-5 {\n margin-left: 41.666667%;\n }\n .offset-xl-6 {\n margin-left: 50%;\n }\n .offset-xl-7 {\n margin-left: 58.333333%;\n }\n .offset-xl-8 {\n margin-left: 66.666667%;\n }\n .offset-xl-9 {\n margin-left: 75%;\n }\n .offset-xl-10 {\n margin-left: 83.333333%;\n }\n .offset-xl-11 {\n margin-left: 91.666667%;\n }\n}\n\n.table {\n width: 100%;\n max-width: 100%;\n margin-bottom: 1rem;\n background-color: transparent;\n}\n\n.table th,\n.table td {\n padding: 0.75rem;\n vertical-align: top;\n border-top: 1px solid #e9ecef;\n}\n\n.table thead th {\n vertical-align: bottom;\n border-bottom: 2px solid #e9ecef;\n}\n\n.table tbody + tbody {\n border-top: 2px solid #e9ecef;\n}\n\n.table .table {\n background-color: #fff;\n}\n\n.table-sm th,\n.table-sm td {\n padding: 0.3rem;\n}\n\n.table-bordered {\n border: 1px solid #e9ecef;\n}\n\n.table-bordered th,\n.table-bordered td {\n border: 1px solid #e9ecef;\n}\n\n.table-bordered thead th,\n.table-bordered thead td {\n border-bottom-width: 2px;\n}\n\n.table-striped tbody tr:nth-of-type(odd) {\n background-color: rgba(0, 0, 0, 0.05);\n}\n\n.table-hover tbody tr:hover {\n background-color: rgba(0, 0, 0, 0.075);\n}\n\n.table-primary,\n.table-primary > th,\n.table-primary > td {\n background-color: #b8daff;\n}\n\n.table-hover .table-primary:hover {\n background-color: #9fcdff;\n}\n\n.table-hover .table-primary:hover > td,\n.table-hover .table-primary:hover > th {\n background-color: #9fcdff;\n}\n\n.table-secondary,\n.table-secondary > th,\n.table-secondary > td {\n background-color: #dddfe2;\n}\n\n.table-hover .table-secondary:hover {\n background-color: #cfd2d6;\n}\n\n.table-hover .table-secondary:hover > td,\n.table-hover .table-secondary:hover > th {\n background-color: #cfd2d6;\n}\n\n.table-success,\n.table-success > th,\n.table-success > td {\n background-color: #c3e6cb;\n}\n\n.table-hover .table-success:hover {\n background-color: #b1dfbb;\n}\n\n.table-hover .table-success:hover > td,\n.table-hover .table-success:hover > th {\n background-color: #b1dfbb;\n}\n\n.table-info,\n.table-info > th,\n.table-info > td {\n background-color: #bee5eb;\n}\n\n.table-hover .table-info:hover {\n background-color: #abdde5;\n}\n\n.table-hover .table-info:hover > td,\n.table-hover .table-info:hover > th {\n background-color: #abdde5;\n}\n\n.table-warning,\n.table-warning > th,\n.table-warning > td {\n background-color: #ffeeba;\n}\n\n.table-hover .table-warning:hover {\n background-color: #ffe8a1;\n}\n\n.table-hover .table-warning:hover > td,\n.table-hover .table-warning:hover > th {\n background-color: #ffe8a1;\n}\n\n.table-danger,\n.table-danger > th,\n.table-danger > td {\n background-color: #f5c6cb;\n}\n\n.table-hover .table-danger:hover {\n background-color: #f1b0b7;\n}\n\n.table-hover .table-danger:hover > td,\n.table-hover .table-danger:hover > th {\n background-color: #f1b0b7;\n}\n\n.table-light,\n.table-light > th,\n.table-light > td {\n background-color: #fdfdfe;\n}\n\n.table-hover .table-light:hover {\n background-color: #ececf6;\n}\n\n.table-hover .table-light:hover > td,\n.table-hover .table-light:hover > th {\n background-color: #ececf6;\n}\n\n.table-dark,\n.table-dark > th,\n.table-dark > td {\n background-color: #c6c8ca;\n}\n\n.table-hover .table-dark:hover {\n background-color: #b9bbbe;\n}\n\n.table-hover .table-dark:hover > td,\n.table-hover .table-dark:hover > th {\n background-color: #b9bbbe;\n}\n\n.table-active,\n.table-active > th,\n.table-active > td {\n background-color: rgba(0, 0, 0, 0.075);\n}\n\n.table-hover .table-active:hover {\n background-color: rgba(0, 0, 0, 0.075);\n}\n\n.table-hover .table-active:hover > td,\n.table-hover .table-active:hover > th {\n background-color: rgba(0, 0, 0, 0.075);\n}\n\n.table .thead-dark th {\n color: #fff;\n background-color: #212529;\n border-color: #32383e;\n}\n\n.table .thead-light th {\n color: #495057;\n background-color: #e9ecef;\n border-color: #e9ecef;\n}\n\n.table-dark {\n color: #fff;\n background-color: #212529;\n}\n\n.table-dark th,\n.table-dark td,\n.table-dark thead th {\n border-color: #32383e;\n}\n\n.table-dark.table-bordered {\n border: 0;\n}\n\n.table-dark.table-striped tbody tr:nth-of-type(odd) {\n background-color: rgba(255, 255, 255, 0.05);\n}\n\n.table-dark.table-hover tbody tr:hover {\n background-color: rgba(255, 255, 255, 0.075);\n}\n\n@media (max-width: 575px) {\n .table-responsive-sm {\n display: block;\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n }\n .table-responsive-sm.table-bordered {\n border: 0;\n }\n}\n\n@media (max-width: 767px) {\n .table-responsive-md {\n display: block;\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n }\n .table-responsive-md.table-bordered {\n border: 0;\n }\n}\n\n@media (max-width: 991px) {\n .table-responsive-lg {\n display: block;\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n }\n .table-responsive-lg.table-bordered {\n border: 0;\n }\n}\n\n@media (max-width: 1199px) {\n .table-responsive-xl {\n display: block;\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n }\n .table-responsive-xl.table-bordered {\n border: 0;\n }\n}\n\n.table-responsive {\n display: block;\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n}\n\n.table-responsive.table-bordered {\n border: 0;\n}\n\n.form-control {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n line-height: 1.5;\n color: #495057;\n background-color: #fff;\n background-image: none;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n border-radius: 0.25rem;\n transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;\n}\n\n.form-control::-ms-expand {\n background-color: transparent;\n border: 0;\n}\n\n.form-control:focus {\n color: #495057;\n background-color: #fff;\n border-color: #80bdff;\n outline: none;\n box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.form-control::placeholder {\n color: #868e96;\n opacity: 1;\n}\n\n.form-control:disabled, .form-control[readonly] {\n background-color: #e9ecef;\n opacity: 1;\n}\n\nselect.form-control:not([size]):not([multiple]) {\n height: calc(2.25rem + 2px);\n}\n\nselect.form-control:focus::-ms-value {\n color: #495057;\n background-color: #fff;\n}\n\n.form-control-file,\n.form-control-range {\n display: block;\n}\n\n.col-form-label {\n padding-top: calc(0.375rem + 1px);\n padding-bottom: calc(0.375rem + 1px);\n margin-bottom: 0;\n line-height: 1.5;\n}\n\n.col-form-label-lg {\n padding-top: calc(0.5rem + 1px);\n padding-bottom: calc(0.5rem + 1px);\n font-size: 1.25rem;\n line-height: 1.5;\n}\n\n.col-form-label-sm {\n padding-top: calc(0.25rem + 1px);\n padding-bottom: calc(0.25rem + 1px);\n font-size: 0.875rem;\n line-height: 1.5;\n}\n\n.col-form-legend {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n margin-bottom: 0;\n font-size: 1rem;\n}\n\n.form-control-plaintext {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n margin-bottom: 0;\n line-height: 1.5;\n background-color: transparent;\n border: solid transparent;\n border-width: 1px 0;\n}\n\n.form-control-plaintext.form-control-sm, .input-group-sm > .form-control-plaintext.form-control,\n.input-group-sm > .form-control-plaintext.input-group-addon,\n.input-group-sm > .input-group-btn > .form-control-plaintext.btn, .form-control-plaintext.form-control-lg, .input-group-lg > .form-control-plaintext.form-control,\n.input-group-lg > .form-control-plaintext.input-group-addon,\n.input-group-lg > .input-group-btn > .form-control-plaintext.btn {\n padding-right: 0;\n padding-left: 0;\n}\n\n.form-control-sm, .input-group-sm > .form-control,\n.input-group-sm > .input-group-addon,\n.input-group-sm > .input-group-btn > .btn {\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n line-height: 1.5;\n border-radius: 0.2rem;\n}\n\nselect.form-control-sm:not([size]):not([multiple]), .input-group-sm > select.form-control:not([size]):not([multiple]),\n.input-group-sm > select.input-group-addon:not([size]):not([multiple]),\n.input-group-sm > .input-group-btn > select.btn:not([size]):not([multiple]) {\n height: calc(1.8125rem + 2px);\n}\n\n.form-control-lg, .input-group-lg > .form-control,\n.input-group-lg > .input-group-addon,\n.input-group-lg > .input-group-btn > .btn {\n padding: 0.5rem 1rem;\n font-size: 1.25rem;\n line-height: 1.5;\n border-radius: 0.3rem;\n}\n\nselect.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.form-control:not([size]):not([multiple]),\n.input-group-lg > select.input-group-addon:not([size]):not([multiple]),\n.input-group-lg > .input-group-btn > select.btn:not([size]):not([multiple]) {\n height: calc(2.875rem + 2px);\n}\n\n.form-group {\n margin-bottom: 1rem;\n}\n\n.form-text {\n display: block;\n margin-top: 0.25rem;\n}\n\n.form-row {\n display: flex;\n flex-wrap: wrap;\n margin-right: -5px;\n margin-left: -5px;\n}\n\n.form-row > .col,\n.form-row > [class*=\"col-\"] {\n padding-right: 5px;\n padding-left: 5px;\n}\n\n.form-check {\n position: relative;\n display: block;\n margin-bottom: 0.5rem;\n}\n\n.form-check.disabled .form-check-label {\n color: #868e96;\n}\n\n.form-check-label {\n padding-left: 1.25rem;\n margin-bottom: 0;\n}\n\n.form-check-input {\n position: absolute;\n margin-top: 0.25rem;\n margin-left: -1.25rem;\n}\n\n.form-check-inline {\n display: inline-block;\n margin-right: 0.75rem;\n}\n\n.form-check-inline .form-check-label {\n vertical-align: middle;\n}\n\n.valid-feedback {\n display: none;\n margin-top: .25rem;\n font-size: .875rem;\n color: #28a745;\n}\n\n.valid-tooltip {\n position: absolute;\n top: 100%;\n z-index: 5;\n display: none;\n width: 250px;\n padding: .5rem;\n margin-top: .1rem;\n font-size: .875rem;\n line-height: 1;\n color: #fff;\n background-color: rgba(40, 167, 69, 0.8);\n border-radius: .2rem;\n}\n\n.was-validated .form-control:valid, .form-control.is-valid, .was-validated\n.custom-select:valid,\n.custom-select.is-valid {\n border-color: #28a745;\n}\n\n.was-validated .form-control:valid:focus, .form-control.is-valid:focus, .was-validated\n.custom-select:valid:focus,\n.custom-select.is-valid:focus {\n box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);\n}\n\n.was-validated .form-control:valid ~ .valid-feedback,\n.was-validated .form-control:valid ~ .valid-tooltip, .form-control.is-valid ~ .valid-feedback,\n.form-control.is-valid ~ .valid-tooltip, .was-validated\n.custom-select:valid ~ .valid-feedback,\n.was-validated\n.custom-select:valid ~ .valid-tooltip,\n.custom-select.is-valid ~ .valid-feedback,\n.custom-select.is-valid ~ .valid-tooltip {\n display: block;\n}\n\n.was-validated .form-check-input:valid + .form-check-label, .form-check-input.is-valid + .form-check-label {\n color: #28a745;\n}\n\n.was-validated .custom-control-input:valid ~ .custom-control-indicator, .custom-control-input.is-valid ~ .custom-control-indicator {\n background-color: rgba(40, 167, 69, 0.25);\n}\n\n.was-validated .custom-control-input:valid ~ .custom-control-description, .custom-control-input.is-valid ~ .custom-control-description {\n color: #28a745;\n}\n\n.was-validated .custom-file-input:valid ~ .custom-file-control, .custom-file-input.is-valid ~ .custom-file-control {\n border-color: #28a745;\n}\n\n.was-validated .custom-file-input:valid ~ .custom-file-control::before, .custom-file-input.is-valid ~ .custom-file-control::before {\n border-color: inherit;\n}\n\n.was-validated .custom-file-input:valid:focus, .custom-file-input.is-valid:focus {\n box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);\n}\n\n.invalid-feedback {\n display: none;\n margin-top: .25rem;\n font-size: .875rem;\n color: #dc3545;\n}\n\n.invalid-tooltip {\n position: absolute;\n top: 100%;\n z-index: 5;\n display: none;\n width: 250px;\n padding: .5rem;\n margin-top: .1rem;\n font-size: .875rem;\n line-height: 1;\n color: #fff;\n background-color: rgba(220, 53, 69, 0.8);\n border-radius: .2rem;\n}\n\n.was-validated .form-control:invalid, .form-control.is-invalid, .was-validated\n.custom-select:invalid,\n.custom-select.is-invalid {\n border-color: #dc3545;\n}\n\n.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus, .was-validated\n.custom-select:invalid:focus,\n.custom-select.is-invalid:focus {\n box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);\n}\n\n.was-validated .form-control:invalid ~ .invalid-feedback,\n.was-validated .form-control:invalid ~ .invalid-tooltip, .form-control.is-invalid ~ .invalid-feedback,\n.form-control.is-invalid ~ .invalid-tooltip, .was-validated\n.custom-select:invalid ~ .invalid-feedback,\n.was-validated\n.custom-select:invalid ~ .invalid-tooltip,\n.custom-select.is-invalid ~ .invalid-feedback,\n.custom-select.is-invalid ~ .invalid-tooltip {\n display: block;\n}\n\n.was-validated .form-check-input:invalid + .form-check-label, .form-check-input.is-invalid + .form-check-label {\n color: #dc3545;\n}\n\n.was-validated .custom-control-input:invalid ~ .custom-control-indicator, .custom-control-input.is-invalid ~ .custom-control-indicator {\n background-color: rgba(220, 53, 69, 0.25);\n}\n\n.was-validated .custom-control-input:invalid ~ .custom-control-description, .custom-control-input.is-invalid ~ .custom-control-description {\n color: #dc3545;\n}\n\n.was-validated .custom-file-input:invalid ~ .custom-file-control, .custom-file-input.is-invalid ~ .custom-file-control {\n border-color: #dc3545;\n}\n\n.was-validated .custom-file-input:invalid ~ .custom-file-control::before, .custom-file-input.is-invalid ~ .custom-file-control::before {\n border-color: inherit;\n}\n\n.was-validated .custom-file-input:invalid:focus, .custom-file-input.is-invalid:focus {\n box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);\n}\n\n.form-inline {\n display: flex;\n flex-flow: row wrap;\n align-items: center;\n}\n\n.form-inline .form-check {\n width: 100%;\n}\n\n@media (min-width: 576px) {\n .form-inline label {\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 0;\n }\n .form-inline .form-group {\n display: flex;\n flex: 0 0 auto;\n flex-flow: row wrap;\n align-items: center;\n margin-bottom: 0;\n }\n .form-inline .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle;\n }\n .form-inline .form-control-plaintext {\n display: inline-block;\n }\n .form-inline .input-group {\n width: auto;\n }\n .form-inline .form-check {\n display: flex;\n align-items: center;\n justify-content: center;\n width: auto;\n margin-top: 0;\n margin-bottom: 0;\n }\n .form-inline .form-check-label {\n padding-left: 0;\n }\n .form-inline .form-check-input {\n position: relative;\n margin-top: 0;\n margin-right: 0.25rem;\n margin-left: 0;\n }\n .form-inline .custom-control {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-left: 0;\n }\n .form-inline .custom-control-indicator {\n position: static;\n display: inline-block;\n margin-right: 0.25rem;\n vertical-align: text-bottom;\n }\n .form-inline .has-feedback .form-control-feedback {\n top: 0;\n }\n}\n\n.btn {\n display: inline-block;\n font-weight: 400;\n text-align: center;\n white-space: nowrap;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n line-height: 1.5;\n border-radius: 0.25rem;\n transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n\n.btn:focus, .btn:hover {\n text-decoration: none;\n}\n\n.btn:focus, .btn.focus {\n outline: 0;\n box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.btn.disabled, .btn:disabled {\n opacity: .65;\n}\n\n.btn:not([disabled]):not(.disabled):active, .btn:not([disabled]):not(.disabled).active {\n background-image: none;\n}\n\na.btn.disabled,\nfieldset[disabled] a.btn {\n pointer-events: none;\n}\n\n.btn-primary {\n color: #fff;\n background-color: #007bff;\n border-color: #007bff;\n}\n\n.btn-primary:hover {\n color: #fff;\n background-color: #0069d9;\n border-color: #0062cc;\n}\n\n.btn-primary:focus, .btn-primary.focus {\n box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);\n}\n\n.btn-primary.disabled, .btn-primary:disabled {\n background-color: #007bff;\n border-color: #007bff;\n}\n\n.btn-primary:not([disabled]):not(.disabled):active, .btn-primary:not([disabled]):not(.disabled).active,\n.show > .btn-primary.dropdown-toggle {\n color: #fff;\n background-color: #0062cc;\n border-color: #005cbf;\n box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);\n}\n\n.btn-secondary {\n color: #fff;\n background-color: #868e96;\n border-color: #868e96;\n}\n\n.btn-secondary:hover {\n color: #fff;\n background-color: #727b84;\n border-color: #6c757d;\n}\n\n.btn-secondary:focus, .btn-secondary.focus {\n box-shadow: 0 0 0 0.2rem rgba(134, 142, 150, 0.5);\n}\n\n.btn-secondary.disabled, .btn-secondary:disabled {\n background-color: #868e96;\n border-color: #868e96;\n}\n\n.btn-secondary:not([disabled]):not(.disabled):active, .btn-secondary:not([disabled]):not(.disabled).active,\n.show > .btn-secondary.dropdown-toggle {\n color: #fff;\n background-color: #6c757d;\n border-color: #666e76;\n box-shadow: 0 0 0 0.2rem rgba(134, 142, 150, 0.5);\n}\n\n.btn-success {\n color: #fff;\n background-color: #28a745;\n border-color: #28a745;\n}\n\n.btn-success:hover {\n color: #fff;\n background-color: #218838;\n border-color: #1e7e34;\n}\n\n.btn-success:focus, .btn-success.focus {\n box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);\n}\n\n.btn-success.disabled, .btn-success:disabled {\n background-color: #28a745;\n border-color: #28a745;\n}\n\n.btn-success:not([disabled]):not(.disabled):active, .btn-success:not([disabled]):not(.disabled).active,\n.show > .btn-success.dropdown-toggle {\n color: #fff;\n background-color: #1e7e34;\n border-color: #1c7430;\n box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);\n}\n\n.btn-info {\n color: #fff;\n background-color: #17a2b8;\n border-color: #17a2b8;\n}\n\n.btn-info:hover {\n color: #fff;\n background-color: #138496;\n border-color: #117a8b;\n}\n\n.btn-info:focus, .btn-info.focus {\n box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);\n}\n\n.btn-info.disabled, .btn-info:disabled {\n background-color: #17a2b8;\n border-color: #17a2b8;\n}\n\n.btn-info:not([disabled]):not(.disabled):active, .btn-info:not([disabled]):not(.disabled).active,\n.show > .btn-info.dropdown-toggle {\n color: #fff;\n background-color: #117a8b;\n border-color: #10707f;\n box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);\n}\n\n.btn-warning {\n color: #111;\n background-color: #ffc107;\n border-color: #ffc107;\n}\n\n.btn-warning:hover {\n color: #111;\n background-color: #e0a800;\n border-color: #d39e00;\n}\n\n.btn-warning:focus, .btn-warning.focus {\n box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);\n}\n\n.btn-warning.disabled, .btn-warning:disabled {\n background-color: #ffc107;\n border-color: #ffc107;\n}\n\n.btn-warning:not([disabled]):not(.disabled):active, .btn-warning:not([disabled]):not(.disabled).active,\n.show > .btn-warning.dropdown-toggle {\n color: #111;\n background-color: #d39e00;\n border-color: #c69500;\n box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);\n}\n\n.btn-danger {\n color: #fff;\n background-color: #dc3545;\n border-color: #dc3545;\n}\n\n.btn-danger:hover {\n color: #fff;\n background-color: #c82333;\n border-color: #bd2130;\n}\n\n.btn-danger:focus, .btn-danger.focus {\n box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);\n}\n\n.btn-danger.disabled, .btn-danger:disabled {\n background-color: #dc3545;\n border-color: #dc3545;\n}\n\n.btn-danger:not([disabled]):not(.disabled):active, .btn-danger:not([disabled]):not(.disabled).active,\n.show > .btn-danger.dropdown-toggle {\n color: #fff;\n background-color: #bd2130;\n border-color: #b21f2d;\n box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);\n}\n\n.btn-light {\n color: #111;\n background-color: #f8f9fa;\n border-color: #f8f9fa;\n}\n\n.btn-light:hover {\n color: #111;\n background-color: #e2e6ea;\n border-color: #dae0e5;\n}\n\n.btn-light:focus, .btn-light.focus {\n box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5);\n}\n\n.btn-light.disabled, .btn-light:disabled {\n background-color: #f8f9fa;\n border-color: #f8f9fa;\n}\n\n.btn-light:not([disabled]):not(.disabled):active, .btn-light:not([disabled]):not(.disabled).active,\n.show > .btn-light.dropdown-toggle {\n color: #111;\n background-color: #dae0e5;\n border-color: #d3d9df;\n box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5);\n}\n\n.btn-dark {\n color: #fff;\n background-color: #343a40;\n border-color: #343a40;\n}\n\n.btn-dark:hover {\n color: #fff;\n background-color: #23272b;\n border-color: #1d2124;\n}\n\n.btn-dark:focus, .btn-dark.focus {\n box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);\n}\n\n.btn-dark.disabled, .btn-dark:disabled {\n background-color: #343a40;\n border-color: #343a40;\n}\n\n.btn-dark:not([disabled]):not(.disabled):active, .btn-dark:not([disabled]):not(.disabled).active,\n.show > .btn-dark.dropdown-toggle {\n color: #fff;\n background-color: #1d2124;\n border-color: #171a1d;\n box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);\n}\n\n.btn-outline-primary {\n color: #007bff;\n background-color: transparent;\n background-image: none;\n border-color: #007bff;\n}\n\n.btn-outline-primary:hover {\n color: #fff;\n background-color: #007bff;\n border-color: #007bff;\n}\n\n.btn-outline-primary:focus, .btn-outline-primary.focus {\n box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);\n}\n\n.btn-outline-primary.disabled, .btn-outline-primary:disabled {\n color: #007bff;\n background-color: transparent;\n}\n\n.btn-outline-primary:not([disabled]):not(.disabled):active, .btn-outline-primary:not([disabled]):not(.disabled).active,\n.show > .btn-outline-primary.dropdown-toggle {\n color: #fff;\n background-color: #007bff;\n border-color: #007bff;\n box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);\n}\n\n.btn-outline-secondary {\n color: #868e96;\n background-color: transparent;\n background-image: none;\n border-color: #868e96;\n}\n\n.btn-outline-secondary:hover {\n color: #fff;\n background-color: #868e96;\n border-color: #868e96;\n}\n\n.btn-outline-secondary:focus, .btn-outline-secondary.focus {\n box-shadow: 0 0 0 0.2rem rgba(134, 142, 150, 0.5);\n}\n\n.btn-outline-secondary.disabled, .btn-outline-secondary:disabled {\n color: #868e96;\n background-color: transparent;\n}\n\n.btn-outline-secondary:not([disabled]):not(.disabled):active, .btn-outline-secondary:not([disabled]):not(.disabled).active,\n.show > .btn-outline-secondary.dropdown-toggle {\n color: #fff;\n background-color: #868e96;\n border-color: #868e96;\n box-shadow: 0 0 0 0.2rem rgba(134, 142, 150, 0.5);\n}\n\n.btn-outline-success {\n color: #28a745;\n background-color: transparent;\n background-image: none;\n border-color: #28a745;\n}\n\n.btn-outline-success:hover {\n color: #fff;\n background-color: #28a745;\n border-color: #28a745;\n}\n\n.btn-outline-success:focus, .btn-outline-success.focus {\n box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);\n}\n\n.btn-outline-success.disabled, .btn-outline-success:disabled {\n color: #28a745;\n background-color: transparent;\n}\n\n.btn-outline-success:not([disabled]):not(.disabled):active, .btn-outline-success:not([disabled]):not(.disabled).active,\n.show > .btn-outline-success.dropdown-toggle {\n color: #fff;\n background-color: #28a745;\n border-color: #28a745;\n box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);\n}\n\n.btn-outline-info {\n color: #17a2b8;\n background-color: transparent;\n background-image: none;\n border-color: #17a2b8;\n}\n\n.btn-outline-info:hover {\n color: #fff;\n background-color: #17a2b8;\n border-color: #17a2b8;\n}\n\n.btn-outline-info:focus, .btn-outline-info.focus {\n box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);\n}\n\n.btn-outline-info.disabled, .btn-outline-info:disabled {\n color: #17a2b8;\n background-color: transparent;\n}\n\n.btn-outline-info:not([disabled]):not(.disabled):active, .btn-outline-info:not([disabled]):not(.disabled).active,\n.show > .btn-outline-info.dropdown-toggle {\n color: #fff;\n background-color: #17a2b8;\n border-color: #17a2b8;\n box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);\n}\n\n.btn-outline-warning {\n color: #ffc107;\n background-color: transparent;\n background-image: none;\n border-color: #ffc107;\n}\n\n.btn-outline-warning:hover {\n color: #fff;\n background-color: #ffc107;\n border-color: #ffc107;\n}\n\n.btn-outline-warning:focus, .btn-outline-warning.focus {\n box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);\n}\n\n.btn-outline-warning.disabled, .btn-outline-warning:disabled {\n color: #ffc107;\n background-color: transparent;\n}\n\n.btn-outline-warning:not([disabled]):not(.disabled):active, .btn-outline-warning:not([disabled]):not(.disabled).active,\n.show > .btn-outline-warning.dropdown-toggle {\n color: #fff;\n background-color: #ffc107;\n border-color: #ffc107;\n box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);\n}\n\n.btn-outline-danger {\n color: #dc3545;\n background-color: transparent;\n background-image: none;\n border-color: #dc3545;\n}\n\n.btn-outline-danger:hover {\n color: #fff;\n background-color: #dc3545;\n border-color: #dc3545;\n}\n\n.btn-outline-danger:focus, .btn-outline-danger.focus {\n box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);\n}\n\n.btn-outline-danger.disabled, .btn-outline-danger:disabled {\n color: #dc3545;\n background-color: transparent;\n}\n\n.btn-outline-danger:not([disabled]):not(.disabled):active, .btn-outline-danger:not([disabled]):not(.disabled).active,\n.show > .btn-outline-danger.dropdown-toggle {\n color: #fff;\n background-color: #dc3545;\n border-color: #dc3545;\n box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);\n}\n\n.btn-outline-light {\n color: #f8f9fa;\n background-color: transparent;\n background-image: none;\n border-color: #f8f9fa;\n}\n\n.btn-outline-light:hover {\n color: #212529;\n background-color: #f8f9fa;\n border-color: #f8f9fa;\n}\n\n.btn-outline-light:focus, .btn-outline-light.focus {\n box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5);\n}\n\n.btn-outline-light.disabled, .btn-outline-light:disabled {\n color: #f8f9fa;\n background-color: transparent;\n}\n\n.btn-outline-light:not([disabled]):not(.disabled):active, .btn-outline-light:not([disabled]):not(.disabled).active,\n.show > .btn-outline-light.dropdown-toggle {\n color: #212529;\n background-color: #f8f9fa;\n border-color: #f8f9fa;\n box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5);\n}\n\n.btn-outline-dark {\n color: #343a40;\n background-color: transparent;\n background-image: none;\n border-color: #343a40;\n}\n\n.btn-outline-dark:hover {\n color: #fff;\n background-color: #343a40;\n border-color: #343a40;\n}\n\n.btn-outline-dark:focus, .btn-outline-dark.focus {\n box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);\n}\n\n.btn-outline-dark.disabled, .btn-outline-dark:disabled {\n color: #343a40;\n background-color: transparent;\n}\n\n.btn-outline-dark:not([disabled]):not(.disabled):active, .btn-outline-dark:not([disabled]):not(.disabled).active,\n.show > .btn-outline-dark.dropdown-toggle {\n color: #fff;\n background-color: #343a40;\n border-color: #343a40;\n box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);\n}\n\n.btn-link {\n font-weight: 400;\n color: #007bff;\n background-color: transparent;\n}\n\n.btn-link:hover {\n color: #0056b3;\n text-decoration: underline;\n background-color: transparent;\n border-color: transparent;\n}\n\n.btn-link:focus, .btn-link.focus {\n border-color: transparent;\n box-shadow: none;\n}\n\n.btn-link:disabled, .btn-link.disabled {\n color: #868e96;\n}\n\n.btn-lg, .btn-group-lg > .btn {\n padding: 0.5rem 1rem;\n font-size: 1.25rem;\n line-height: 1.5;\n border-radius: 0.3rem;\n}\n\n.btn-sm, .btn-group-sm > .btn {\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n line-height: 1.5;\n border-radius: 0.2rem;\n}\n\n.btn-block {\n display: block;\n width: 100%;\n}\n\n.btn-block + .btn-block {\n margin-top: 0.5rem;\n}\n\ninput[type=\"submit\"].btn-block,\ninput[type=\"reset\"].btn-block,\ninput[type=\"button\"].btn-block {\n width: 100%;\n}\n\n.fade {\n opacity: 0;\n transition: opacity 0.15s linear;\n}\n\n.fade.show {\n opacity: 1;\n}\n\n.collapse {\n display: none;\n}\n\n.collapse.show {\n display: block;\n}\n\ntr.collapse.show {\n display: table-row;\n}\n\ntbody.collapse.show {\n display: table-row-group;\n}\n\n.collapsing {\n position: relative;\n height: 0;\n overflow: hidden;\n transition: height 0.35s ease;\n}\n\n.dropup,\n.dropdown {\n position: relative;\n}\n\n.dropdown-toggle::after {\n display: inline-block;\n width: 0;\n height: 0;\n margin-left: 0.255em;\n vertical-align: 0.255em;\n content: \"\";\n border-top: 0.3em solid;\n border-right: 0.3em solid transparent;\n border-bottom: 0;\n border-left: 0.3em solid transparent;\n}\n\n.dropdown-toggle:empty::after {\n margin-left: 0;\n}\n\n.dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1000;\n display: none;\n float: left;\n min-width: 10rem;\n padding: 0.5rem 0;\n margin: 0.125rem 0 0;\n font-size: 1rem;\n color: #212529;\n text-align: left;\n list-style: none;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n border-radius: 0.25rem;\n}\n\n.dropup .dropdown-menu {\n margin-top: 0;\n margin-bottom: 0.125rem;\n}\n\n.dropup .dropdown-toggle::after {\n display: inline-block;\n width: 0;\n height: 0;\n margin-left: 0.255em;\n vertical-align: 0.255em;\n content: \"\";\n border-top: 0;\n border-right: 0.3em solid transparent;\n border-bottom: 0.3em solid;\n border-left: 0.3em solid transparent;\n}\n\n.dropup .dropdown-toggle:empty::after {\n margin-left: 0;\n}\n\n.dropdown-divider {\n height: 0;\n margin: 0.5rem 0;\n overflow: hidden;\n border-top: 1px solid #e9ecef;\n}\n\n.dropdown-item {\n display: block;\n width: 100%;\n padding: 0.25rem 1.5rem;\n clear: both;\n font-weight: 400;\n color: #212529;\n text-align: inherit;\n white-space: nowrap;\n background: none;\n border: 0;\n}\n\n.dropdown-item:focus, .dropdown-item:hover {\n color: #16181b;\n text-decoration: none;\n background-color: #f8f9fa;\n}\n\n.dropdown-item.active, .dropdown-item:active {\n color: #fff;\n text-decoration: none;\n background-color: #007bff;\n}\n\n.dropdown-item.disabled, .dropdown-item:disabled {\n color: #868e96;\n background-color: transparent;\n}\n\n.dropdown-menu.show {\n display: block;\n}\n\n.dropdown-header {\n display: block;\n padding: 0.5rem 1.5rem;\n margin-bottom: 0;\n font-size: 0.875rem;\n color: #868e96;\n white-space: nowrap;\n}\n\n.btn-group,\n.btn-group-vertical {\n position: relative;\n display: inline-flex;\n vertical-align: middle;\n}\n\n.btn-group > .btn,\n.btn-group-vertical > .btn {\n position: relative;\n flex: 0 1 auto;\n}\n\n.btn-group > .btn:hover,\n.btn-group-vertical > .btn:hover {\n z-index: 2;\n}\n\n.btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active,\n.btn-group-vertical > .btn:focus,\n.btn-group-vertical > .btn:active,\n.btn-group-vertical > .btn.active {\n z-index: 2;\n}\n\n.btn-group .btn + .btn,\n.btn-group .btn + .btn-group,\n.btn-group .btn-group + .btn,\n.btn-group .btn-group + .btn-group,\n.btn-group-vertical .btn + .btn,\n.btn-group-vertical .btn + .btn-group,\n.btn-group-vertical .btn-group + .btn,\n.btn-group-vertical .btn-group + .btn-group {\n margin-left: -1px;\n}\n\n.btn-toolbar {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n}\n\n.btn-toolbar .input-group {\n width: auto;\n}\n\n.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {\n border-radius: 0;\n}\n\n.btn-group > .btn:first-child {\n margin-left: 0;\n}\n\n.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.btn-group > .btn:last-child:not(:first-child),\n.btn-group > .dropdown-toggle:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.btn-group > .btn-group {\n float: left;\n}\n\n.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n\n.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.btn + .dropdown-toggle-split {\n padding-right: 0.5625rem;\n padding-left: 0.5625rem;\n}\n\n.btn + .dropdown-toggle-split::after {\n margin-left: 0;\n}\n\n.btn-sm + .dropdown-toggle-split, .btn-group-sm > .btn + .dropdown-toggle-split {\n padding-right: 0.375rem;\n padding-left: 0.375rem;\n}\n\n.btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split {\n padding-right: 0.75rem;\n padding-left: 0.75rem;\n}\n\n.btn-group-vertical {\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n}\n\n.btn-group-vertical .btn,\n.btn-group-vertical .btn-group {\n width: 100%;\n}\n\n.btn-group-vertical > .btn + .btn,\n.btn-group-vertical > .btn + .btn-group,\n.btn-group-vertical > .btn-group + .btn,\n.btn-group-vertical > .btn-group + .btn-group {\n margin-top: -1px;\n margin-left: 0;\n}\n\n.btn-group-vertical > .btn:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n\n.btn-group-vertical > .btn:first-child:not(:last-child) {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.btn-group-vertical > .btn:last-child:not(:first-child) {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {\n border-radius: 0;\n}\n\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n[data-toggle=\"buttons\"] > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn input[type=\"checkbox\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn-group > .btn input[type=\"checkbox\"] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n pointer-events: none;\n}\n\n.input-group {\n position: relative;\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.input-group .form-control {\n position: relative;\n z-index: 2;\n flex: 1 1 auto;\n width: 1%;\n margin-bottom: 0;\n}\n\n.input-group .form-control:focus, .input-group .form-control:active, .input-group .form-control:hover {\n z-index: 3;\n}\n\n.input-group-addon,\n.input-group-btn,\n.input-group .form-control {\n display: flex;\n align-items: center;\n}\n\n.input-group-addon:not(:first-child):not(:last-child),\n.input-group-btn:not(:first-child):not(:last-child),\n.input-group .form-control:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n\n.input-group-addon,\n.input-group-btn {\n white-space: nowrap;\n}\n\n.input-group-addon {\n padding: 0.375rem 0.75rem;\n margin-bottom: 0;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #495057;\n text-align: center;\n background-color: #e9ecef;\n border: 1px solid #ced4da;\n border-radius: 0.25rem;\n}\n\n.input-group-addon.form-control-sm,\n.input-group-sm > .input-group-addon,\n.input-group-sm > .input-group-btn > .input-group-addon.btn {\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n border-radius: 0.2rem;\n}\n\n.input-group-addon.form-control-lg,\n.input-group-lg > .input-group-addon,\n.input-group-lg > .input-group-btn > .input-group-addon.btn {\n padding: 0.5rem 1rem;\n font-size: 1.25rem;\n border-radius: 0.3rem;\n}\n\n.input-group-addon input[type=\"radio\"],\n.input-group-addon input[type=\"checkbox\"] {\n margin-top: 0;\n}\n\n.input-group .form-control:not(:last-child),\n.input-group-addon:not(:last-child),\n.input-group-btn:not(:last-child) > .btn,\n.input-group-btn:not(:last-child) > .btn-group > .btn,\n.input-group-btn:not(:last-child) > .dropdown-toggle,\n.input-group-btn:not(:first-child) > .btn:not(:last-child):not(.dropdown-toggle),\n.input-group-btn:not(:first-child) > .btn-group:not(:last-child) > .btn {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.input-group-addon:not(:last-child) {\n border-right: 0;\n}\n\n.input-group .form-control:not(:first-child),\n.input-group-addon:not(:first-child),\n.input-group-btn:not(:first-child) > .btn,\n.input-group-btn:not(:first-child) > .btn-group > .btn,\n.input-group-btn:not(:first-child) > .dropdown-toggle,\n.input-group-btn:not(:last-child) > .btn:not(:first-child),\n.input-group-btn:not(:last-child) > .btn-group:not(:first-child) > .btn {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.form-control + .input-group-addon:not(:first-child) {\n border-left: 0;\n}\n\n.input-group-btn {\n position: relative;\n align-items: stretch;\n font-size: 0;\n white-space: nowrap;\n}\n\n.input-group-btn > .btn {\n position: relative;\n}\n\n.input-group-btn > .btn + .btn {\n margin-left: -1px;\n}\n\n.input-group-btn > .btn:focus, .input-group-btn > .btn:active, .input-group-btn > .btn:hover {\n z-index: 3;\n}\n\n.input-group-btn:first-child > .btn + .btn {\n margin-left: 0;\n}\n\n.input-group-btn:not(:last-child) > .btn,\n.input-group-btn:not(:last-child) > .btn-group {\n margin-right: -1px;\n}\n\n.input-group-btn:not(:first-child) > .btn,\n.input-group-btn:not(:first-child) > .btn-group {\n z-index: 2;\n margin-left: 0;\n}\n\n.input-group-btn:not(:first-child) > .btn:first-child,\n.input-group-btn:not(:first-child) > .btn-group:first-child {\n margin-left: -1px;\n}\n\n.input-group-btn:not(:first-child) > .btn:focus, .input-group-btn:not(:first-child) > .btn:active, .input-group-btn:not(:first-child) > .btn:hover,\n.input-group-btn:not(:first-child) > .btn-group:focus,\n.input-group-btn:not(:first-child) > .btn-group:active,\n.input-group-btn:not(:first-child) > .btn-group:hover {\n z-index: 3;\n}\n\n.custom-control {\n position: relative;\n display: inline-flex;\n min-height: 1.5rem;\n padding-left: 1.5rem;\n margin-right: 1rem;\n}\n\n.custom-control-input {\n position: absolute;\n z-index: -1;\n opacity: 0;\n}\n\n.custom-control-input:checked ~ .custom-control-indicator {\n color: #fff;\n background-color: #007bff;\n}\n\n.custom-control-input:focus ~ .custom-control-indicator {\n box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.custom-control-input:active ~ .custom-control-indicator {\n color: #fff;\n background-color: #b3d7ff;\n}\n\n.custom-control-input:disabled ~ .custom-control-indicator {\n background-color: #e9ecef;\n}\n\n.custom-control-input:disabled ~ .custom-control-description {\n color: #868e96;\n}\n\n.custom-control-indicator {\n position: absolute;\n top: 0.25rem;\n left: 0;\n display: block;\n width: 1rem;\n height: 1rem;\n pointer-events: none;\n user-select: none;\n background-color: #ddd;\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 50% 50%;\n}\n\n.custom-checkbox .custom-control-indicator {\n border-radius: 0.25rem;\n}\n\n.custom-checkbox .custom-control-input:checked ~ .custom-control-indicator {\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E\");\n}\n\n.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-indicator {\n background-color: #007bff;\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E\");\n}\n\n.custom-radio .custom-control-indicator {\n border-radius: 50%;\n}\n\n.custom-radio .custom-control-input:checked ~ .custom-control-indicator {\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E\");\n}\n\n.custom-controls-stacked {\n display: flex;\n flex-direction: column;\n}\n\n.custom-controls-stacked .custom-control {\n margin-bottom: 0.25rem;\n}\n\n.custom-controls-stacked .custom-control + .custom-control {\n margin-left: 0;\n}\n\n.custom-select {\n display: inline-block;\n max-width: 100%;\n height: calc(2.25rem + 2px);\n padding: 0.375rem 1.75rem 0.375rem 0.75rem;\n line-height: 1.5;\n color: #495057;\n vertical-align: middle;\n background: #fff url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E\") no-repeat right 0.75rem center;\n background-size: 8px 10px;\n border: 1px solid #ced4da;\n border-radius: 0.25rem;\n appearance: none;\n}\n\n.custom-select:focus {\n border-color: #80bdff;\n outline: none;\n}\n\n.custom-select:focus::-ms-value {\n color: #495057;\n background-color: #fff;\n}\n\n.custom-select[multiple] {\n height: auto;\n background-image: none;\n}\n\n.custom-select:disabled {\n color: #868e96;\n background-color: #e9ecef;\n}\n\n.custom-select::-ms-expand {\n opacity: 0;\n}\n\n.custom-select-sm {\n height: calc(1.8125rem + 2px);\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n font-size: 75%;\n}\n\n.custom-file {\n position: relative;\n display: inline-block;\n max-width: 100%;\n height: calc(2.25rem + 2px);\n margin-bottom: 0;\n}\n\n.custom-file-input {\n min-width: 14rem;\n max-width: 100%;\n height: calc(2.25rem + 2px);\n margin: 0;\n opacity: 0;\n}\n\n.custom-file-input:focus ~ .custom-file-control {\n box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.2rem #007bff;\n}\n\n.custom-file-control {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n z-index: 5;\n height: calc(2.25rem + 2px);\n padding: 0.375rem 0.75rem;\n line-height: 1.5;\n color: #495057;\n pointer-events: none;\n user-select: none;\n background-color: #fff;\n border: 1px solid #ced4da;\n border-radius: 0.25rem;\n}\n\n.custom-file-control:lang(en):empty::after {\n content: \"Choose file...\";\n}\n\n.custom-file-control::before {\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n z-index: 6;\n display: block;\n height: calc(2.25rem + 2px);\n padding: 0.375rem 0.75rem;\n line-height: 1.5;\n color: #495057;\n background-color: #e9ecef;\n border: 1px solid #ced4da;\n border-radius: 0 0.25rem 0.25rem 0;\n}\n\n.custom-file-control:lang(en)::before {\n content: \"Browse\";\n}\n\n.nav {\n display: flex;\n flex-wrap: wrap;\n padding-left: 0;\n margin-bottom: 0;\n list-style: none;\n}\n\n.nav-link {\n display: block;\n padding: 0.5rem 1rem;\n}\n\n.nav-link:focus, .nav-link:hover {\n text-decoration: none;\n}\n\n.nav-link.disabled {\n color: #868e96;\n}\n\n.nav-tabs {\n border-bottom: 1px solid #ddd;\n}\n\n.nav-tabs .nav-item {\n margin-bottom: -1px;\n}\n\n.nav-tabs .nav-link {\n border: 1px solid transparent;\n border-top-left-radius: 0.25rem;\n border-top-right-radius: 0.25rem;\n}\n\n.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {\n border-color: #e9ecef #e9ecef #ddd;\n}\n\n.nav-tabs .nav-link.disabled {\n color: #868e96;\n background-color: transparent;\n border-color: transparent;\n}\n\n.nav-tabs .nav-link.active,\n.nav-tabs .nav-item.show .nav-link {\n color: #495057;\n background-color: #fff;\n border-color: #ddd #ddd #fff;\n}\n\n.nav-tabs .dropdown-menu {\n margin-top: -1px;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n.nav-pills .nav-link {\n border-radius: 0.25rem;\n}\n\n.nav-pills .nav-link.active,\n.nav-pills .show > .nav-link {\n color: #fff;\n background-color: #007bff;\n}\n\n.nav-fill .nav-item {\n flex: 1 1 auto;\n text-align: center;\n}\n\n.nav-justified .nav-item {\n flex-basis: 0;\n flex-grow: 1;\n text-align: center;\n}\n\n.tab-content > .tab-pane {\n display: none;\n}\n\n.tab-content > .active {\n display: block;\n}\n\n.navbar {\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n padding: 0.5rem 1rem;\n}\n\n.navbar > .container,\n.navbar > .container-fluid {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n}\n\n.navbar-brand {\n display: inline-block;\n padding-top: 0.3125rem;\n padding-bottom: 0.3125rem;\n margin-right: 1rem;\n font-size: 1.25rem;\n line-height: inherit;\n white-space: nowrap;\n}\n\n.navbar-brand:focus, .navbar-brand:hover {\n text-decoration: none;\n}\n\n.navbar-nav {\n display: flex;\n flex-direction: column;\n padding-left: 0;\n margin-bottom: 0;\n list-style: none;\n}\n\n.navbar-nav .nav-link {\n padding-right: 0;\n padding-left: 0;\n}\n\n.navbar-nav .dropdown-menu {\n position: static;\n float: none;\n}\n\n.navbar-text {\n display: inline-block;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.navbar-collapse {\n flex-basis: 100%;\n flex-grow: 1;\n align-items: center;\n}\n\n.navbar-toggler {\n padding: 0.25rem 0.75rem;\n font-size: 1.25rem;\n line-height: 1;\n background: transparent;\n border: 1px solid transparent;\n border-radius: 0.25rem;\n}\n\n.navbar-toggler:focus, .navbar-toggler:hover {\n text-decoration: none;\n}\n\n.navbar-toggler-icon {\n display: inline-block;\n width: 1.5em;\n height: 1.5em;\n vertical-align: middle;\n content: \"\";\n background: no-repeat center center;\n background-size: 100% 100%;\n}\n\n@media (max-width: 575px) {\n .navbar-expand-sm > .container,\n .navbar-expand-sm > .container-fluid {\n padding-right: 0;\n padding-left: 0;\n }\n}\n\n@media (min-width: 576px) {\n .navbar-expand-sm {\n flex-flow: row nowrap;\n justify-content: flex-start;\n }\n .navbar-expand-sm .navbar-nav {\n flex-direction: row;\n }\n .navbar-expand-sm .navbar-nav .dropdown-menu {\n position: absolute;\n }\n .navbar-expand-sm .navbar-nav .dropdown-menu-right {\n right: 0;\n left: auto;\n }\n .navbar-expand-sm .navbar-nav .nav-link {\n padding-right: .5rem;\n padding-left: .5rem;\n }\n .navbar-expand-sm > .container,\n .navbar-expand-sm > .container-fluid {\n flex-wrap: nowrap;\n }\n .navbar-expand-sm .navbar-collapse {\n display: flex !important;\n flex-basis: auto;\n }\n .navbar-expand-sm .navbar-toggler {\n display: none;\n }\n .navbar-expand-sm .dropup .dropdown-menu {\n top: auto;\n bottom: 100%;\n }\n}\n\n@media (max-width: 767px) {\n .navbar-expand-md > .container,\n .navbar-expand-md > .container-fluid {\n padding-right: 0;\n padding-left: 0;\n }\n}\n\n@media (min-width: 768px) {\n .navbar-expand-md {\n flex-flow: row nowrap;\n justify-content: flex-start;\n }\n .navbar-expand-md .navbar-nav {\n flex-direction: row;\n }\n .navbar-expand-md .navbar-nav .dropdown-menu {\n position: absolute;\n }\n .navbar-expand-md .navbar-nav .dropdown-menu-right {\n right: 0;\n left: auto;\n }\n .navbar-expand-md .navbar-nav .nav-link {\n padding-right: .5rem;\n padding-left: .5rem;\n }\n .navbar-expand-md > .container,\n .navbar-expand-md > .container-fluid {\n flex-wrap: nowrap;\n }\n .navbar-expand-md .navbar-collapse {\n display: flex !important;\n flex-basis: auto;\n }\n .navbar-expand-md .navbar-toggler {\n display: none;\n }\n .navbar-expand-md .dropup .dropdown-menu {\n top: auto;\n bottom: 100%;\n }\n}\n\n@media (max-width: 991px) {\n .navbar-expand-lg > .container,\n .navbar-expand-lg > .container-fluid {\n padding-right: 0;\n padding-left: 0;\n }\n}\n\n@media (min-width: 992px) {\n .navbar-expand-lg {\n flex-flow: row nowrap;\n justify-content: flex-start;\n }\n .navbar-expand-lg .navbar-nav {\n flex-direction: row;\n }\n .navbar-expand-lg .navbar-nav .dropdown-menu {\n position: absolute;\n }\n .navbar-expand-lg .navbar-nav .dropdown-menu-right {\n right: 0;\n left: auto;\n }\n .navbar-expand-lg .navbar-nav .nav-link {\n padding-right: .5rem;\n padding-left: .5rem;\n }\n .navbar-expand-lg > .container,\n .navbar-expand-lg > .container-fluid {\n flex-wrap: nowrap;\n }\n .navbar-expand-lg .navbar-collapse {\n display: flex !important;\n flex-basis: auto;\n }\n .navbar-expand-lg .navbar-toggler {\n display: none;\n }\n .navbar-expand-lg .dropup .dropdown-menu {\n top: auto;\n bottom: 100%;\n }\n}\n\n@media (max-width: 1199px) {\n .navbar-expand-xl > .container,\n .navbar-expand-xl > .container-fluid {\n padding-right: 0;\n padding-left: 0;\n }\n}\n\n@media (min-width: 1200px) {\n .navbar-expand-xl {\n flex-flow: row nowrap;\n justify-content: flex-start;\n }\n .navbar-expand-xl .navbar-nav {\n flex-direction: row;\n }\n .navbar-expand-xl .navbar-nav .dropdown-menu {\n position: absolute;\n }\n .navbar-expand-xl .navbar-nav .dropdown-menu-right {\n right: 0;\n left: auto;\n }\n .navbar-expand-xl .navbar-nav .nav-link {\n padding-right: .5rem;\n padding-left: .5rem;\n }\n .navbar-expand-xl > .container,\n .navbar-expand-xl > .container-fluid {\n flex-wrap: nowrap;\n }\n .navbar-expand-xl .navbar-collapse {\n display: flex !important;\n flex-basis: auto;\n }\n .navbar-expand-xl .navbar-toggler {\n display: none;\n }\n .navbar-expand-xl .dropup .dropdown-menu {\n top: auto;\n bottom: 100%;\n }\n}\n\n.navbar-expand {\n flex-flow: row nowrap;\n justify-content: flex-start;\n}\n\n.navbar-expand > .container,\n.navbar-expand > .container-fluid {\n padding-right: 0;\n padding-left: 0;\n}\n\n.navbar-expand .navbar-nav {\n flex-direction: row;\n}\n\n.navbar-expand .navbar-nav .dropdown-menu {\n position: absolute;\n}\n\n.navbar-expand .navbar-nav .dropdown-menu-right {\n right: 0;\n left: auto;\n}\n\n.navbar-expand .navbar-nav .nav-link {\n padding-right: .5rem;\n padding-left: .5rem;\n}\n\n.navbar-expand > .container,\n.navbar-expand > .container-fluid {\n flex-wrap: nowrap;\n}\n\n.navbar-expand .navbar-collapse {\n display: flex !important;\n flex-basis: auto;\n}\n\n.navbar-expand .navbar-toggler {\n display: none;\n}\n\n.navbar-expand .dropup .dropdown-menu {\n top: auto;\n bottom: 100%;\n}\n\n.navbar-light .navbar-brand {\n color: rgba(0, 0, 0, 0.9);\n}\n\n.navbar-light .navbar-brand:focus, .navbar-light .navbar-brand:hover {\n color: rgba(0, 0, 0, 0.9);\n}\n\n.navbar-light .navbar-nav .nav-link {\n color: rgba(0, 0, 0, 0.5);\n}\n\n.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {\n color: rgba(0, 0, 0, 0.7);\n}\n\n.navbar-light .navbar-nav .nav-link.disabled {\n color: rgba(0, 0, 0, 0.3);\n}\n\n.navbar-light .navbar-nav .show > .nav-link,\n.navbar-light .navbar-nav .active > .nav-link,\n.navbar-light .navbar-nav .nav-link.show,\n.navbar-light .navbar-nav .nav-link.active {\n color: rgba(0, 0, 0, 0.9);\n}\n\n.navbar-light .navbar-toggler {\n color: rgba(0, 0, 0, 0.5);\n border-color: rgba(0, 0, 0, 0.1);\n}\n\n.navbar-light .navbar-toggler-icon {\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E\");\n}\n\n.navbar-light .navbar-text {\n color: rgba(0, 0, 0, 0.5);\n}\n\n.navbar-light .navbar-text a {\n color: rgba(0, 0, 0, 0.9);\n}\n\n.navbar-light .navbar-text a:focus, .navbar-light .navbar-text a:hover {\n color: rgba(0, 0, 0, 0.9);\n}\n\n.navbar-dark .navbar-brand {\n color: #fff;\n}\n\n.navbar-dark .navbar-brand:focus, .navbar-dark .navbar-brand:hover {\n color: #fff;\n}\n\n.navbar-dark .navbar-nav .nav-link {\n color: rgba(255, 255, 255, 0.5);\n}\n\n.navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover {\n color: rgba(255, 255, 255, 0.75);\n}\n\n.navbar-dark .navbar-nav .nav-link.disabled {\n color: rgba(255, 255, 255, 0.25);\n}\n\n.navbar-dark .navbar-nav .show > .nav-link,\n.navbar-dark .navbar-nav .active > .nav-link,\n.navbar-dark .navbar-nav .nav-link.show,\n.navbar-dark .navbar-nav .nav-link.active {\n color: #fff;\n}\n\n.navbar-dark .navbar-toggler {\n color: rgba(255, 255, 255, 0.5);\n border-color: rgba(255, 255, 255, 0.1);\n}\n\n.navbar-dark .navbar-toggler-icon {\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E\");\n}\n\n.navbar-dark .navbar-text {\n color: rgba(255, 255, 255, 0.5);\n}\n\n.navbar-dark .navbar-text a {\n color: #fff;\n}\n\n.navbar-dark .navbar-text a:focus, .navbar-dark .navbar-text a:hover {\n color: #fff;\n}\n\n.card {\n position: relative;\n display: flex;\n flex-direction: column;\n min-width: 0;\n word-wrap: break-word;\n background-color: #fff;\n background-clip: border-box;\n border: 1px solid rgba(0, 0, 0, 0.125);\n border-radius: 0.25rem;\n}\n\n.card > hr {\n margin-right: 0;\n margin-left: 0;\n}\n\n.card > .list-group:first-child .list-group-item:first-child {\n border-top-left-radius: 0.25rem;\n border-top-right-radius: 0.25rem;\n}\n\n.card > .list-group:last-child .list-group-item:last-child {\n border-bottom-right-radius: 0.25rem;\n border-bottom-left-radius: 0.25rem;\n}\n\n.card-body {\n flex: 1 1 auto;\n padding: 1.25rem;\n}\n\n.card-title {\n margin-bottom: 0.75rem;\n}\n\n.card-subtitle {\n margin-top: -0.375rem;\n margin-bottom: 0;\n}\n\n.card-text:last-child {\n margin-bottom: 0;\n}\n\n.card-link:hover {\n text-decoration: none;\n}\n\n.card-link + .card-link {\n margin-left: 1.25rem;\n}\n\n.card-header {\n padding: 0.75rem 1.25rem;\n margin-bottom: 0;\n background-color: rgba(0, 0, 0, 0.03);\n border-bottom: 1px solid rgba(0, 0, 0, 0.125);\n}\n\n.card-header:first-child {\n border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;\n}\n\n.card-header + .list-group .list-group-item:first-child {\n border-top: 0;\n}\n\n.card-footer {\n padding: 0.75rem 1.25rem;\n background-color: rgba(0, 0, 0, 0.03);\n border-top: 1px solid rgba(0, 0, 0, 0.125);\n}\n\n.card-footer:last-child {\n border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);\n}\n\n.card-header-tabs {\n margin-right: -0.625rem;\n margin-bottom: -0.75rem;\n margin-left: -0.625rem;\n border-bottom: 0;\n}\n\n.card-header-pills {\n margin-right: -0.625rem;\n margin-left: -0.625rem;\n}\n\n.card-img-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: 1.25rem;\n}\n\n.card-img {\n width: 100%;\n border-radius: calc(0.25rem - 1px);\n}\n\n.card-img-top {\n width: 100%;\n border-top-left-radius: calc(0.25rem - 1px);\n border-top-right-radius: calc(0.25rem - 1px);\n}\n\n.card-img-bottom {\n width: 100%;\n border-bottom-right-radius: calc(0.25rem - 1px);\n border-bottom-left-radius: calc(0.25rem - 1px);\n}\n\n.card-deck {\n display: flex;\n flex-direction: column;\n}\n\n.card-deck .card {\n margin-bottom: 15px;\n}\n\n@media (min-width: 576px) {\n .card-deck {\n flex-flow: row wrap;\n margin-right: -15px;\n margin-left: -15px;\n }\n .card-deck .card {\n display: flex;\n flex: 1 0 0%;\n flex-direction: column;\n margin-right: 15px;\n margin-bottom: 0;\n margin-left: 15px;\n }\n}\n\n.card-group {\n display: flex;\n flex-direction: column;\n}\n\n.card-group .card {\n margin-bottom: 15px;\n}\n\n@media (min-width: 576px) {\n .card-group {\n flex-flow: row wrap;\n }\n .card-group .card {\n flex: 1 0 0%;\n margin-bottom: 0;\n }\n .card-group .card + .card {\n margin-left: 0;\n border-left: 0;\n }\n .card-group .card:first-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n .card-group .card:first-child .card-img-top {\n border-top-right-radius: 0;\n }\n .card-group .card:first-child .card-img-bottom {\n border-bottom-right-radius: 0;\n }\n .card-group .card:last-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .card-group .card:last-child .card-img-top {\n border-top-left-radius: 0;\n }\n .card-group .card:last-child .card-img-bottom {\n border-bottom-left-radius: 0;\n }\n .card-group .card:only-child {\n border-radius: 0.25rem;\n }\n .card-group .card:only-child .card-img-top {\n border-top-left-radius: 0.25rem;\n border-top-right-radius: 0.25rem;\n }\n .card-group .card:only-child .card-img-bottom {\n border-bottom-right-radius: 0.25rem;\n border-bottom-left-radius: 0.25rem;\n }\n .card-group .card:not(:first-child):not(:last-child):not(:only-child) {\n border-radius: 0;\n }\n .card-group .card:not(:first-child):not(:last-child):not(:only-child) .card-img-top,\n .card-group .card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom {\n border-radius: 0;\n }\n}\n\n.card-columns .card {\n margin-bottom: 0.75rem;\n}\n\n@media (min-width: 576px) {\n .card-columns {\n column-count: 3;\n column-gap: 1.25rem;\n }\n .card-columns .card {\n display: inline-block;\n width: 100%;\n }\n}\n\n.breadcrumb {\n display: flex;\n flex-wrap: wrap;\n padding: 0.75rem 1rem;\n margin-bottom: 1rem;\n list-style: none;\n background-color: #e9ecef;\n border-radius: 0.25rem;\n}\n\n.breadcrumb-item + .breadcrumb-item::before {\n display: inline-block;\n padding-right: 0.5rem;\n padding-left: 0.5rem;\n color: #868e96;\n content: \"/\";\n}\n\n.breadcrumb-item + .breadcrumb-item:hover::before {\n text-decoration: underline;\n}\n\n.breadcrumb-item + .breadcrumb-item:hover::before {\n text-decoration: none;\n}\n\n.breadcrumb-item.active {\n color: #868e96;\n}\n\n.pagination {\n display: flex;\n padding-left: 0;\n list-style: none;\n border-radius: 0.25rem;\n}\n\n.page-item:first-child .page-link {\n margin-left: 0;\n border-top-left-radius: 0.25rem;\n border-bottom-left-radius: 0.25rem;\n}\n\n.page-item:last-child .page-link {\n border-top-right-radius: 0.25rem;\n border-bottom-right-radius: 0.25rem;\n}\n\n.page-item.active .page-link {\n z-index: 2;\n color: #fff;\n background-color: #007bff;\n border-color: #007bff;\n}\n\n.page-item.disabled .page-link {\n color: #868e96;\n pointer-events: none;\n background-color: #fff;\n border-color: #ddd;\n}\n\n.page-link {\n position: relative;\n display: block;\n padding: 0.5rem 0.75rem;\n margin-left: -1px;\n line-height: 1.25;\n color: #007bff;\n background-color: #fff;\n border: 1px solid #ddd;\n}\n\n.page-link:focus, .page-link:hover {\n color: #0056b3;\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #ddd;\n}\n\n.pagination-lg .page-link {\n padding: 0.75rem 1.5rem;\n font-size: 1.25rem;\n line-height: 1.5;\n}\n\n.pagination-lg .page-item:first-child .page-link {\n border-top-left-radius: 0.3rem;\n border-bottom-left-radius: 0.3rem;\n}\n\n.pagination-lg .page-item:last-child .page-link {\n border-top-right-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n}\n\n.pagination-sm .page-link {\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n line-height: 1.5;\n}\n\n.pagination-sm .page-item:first-child .page-link {\n border-top-left-radius: 0.2rem;\n border-bottom-left-radius: 0.2rem;\n}\n\n.pagination-sm .page-item:last-child .page-link {\n border-top-right-radius: 0.2rem;\n border-bottom-right-radius: 0.2rem;\n}\n\n.badge {\n display: inline-block;\n padding: 0.25em 0.4em;\n font-size: 75%;\n font-weight: 700;\n line-height: 1;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: 0.25rem;\n}\n\n.badge:empty {\n display: none;\n}\n\n.btn .badge {\n position: relative;\n top: -1px;\n}\n\n.badge-pill {\n padding-right: 0.6em;\n padding-left: 0.6em;\n border-radius: 10rem;\n}\n\n.badge-primary {\n color: #fff;\n background-color: #007bff;\n}\n\n.badge-primary[href]:focus, .badge-primary[href]:hover {\n color: #fff;\n text-decoration: none;\n background-color: #0062cc;\n}\n\n.badge-secondary {\n color: #fff;\n background-color: #868e96;\n}\n\n.badge-secondary[href]:focus, .badge-secondary[href]:hover {\n color: #fff;\n text-decoration: none;\n background-color: #6c757d;\n}\n\n.badge-success {\n color: #fff;\n background-color: #28a745;\n}\n\n.badge-success[href]:focus, .badge-success[href]:hover {\n color: #fff;\n text-decoration: none;\n background-color: #1e7e34;\n}\n\n.badge-info {\n color: #fff;\n background-color: #17a2b8;\n}\n\n.badge-info[href]:focus, .badge-info[href]:hover {\n color: #fff;\n text-decoration: none;\n background-color: #117a8b;\n}\n\n.badge-warning {\n color: #111;\n background-color: #ffc107;\n}\n\n.badge-warning[href]:focus, .badge-warning[href]:hover {\n color: #111;\n text-decoration: none;\n background-color: #d39e00;\n}\n\n.badge-danger {\n color: #fff;\n background-color: #dc3545;\n}\n\n.badge-danger[href]:focus, .badge-danger[href]:hover {\n color: #fff;\n text-decoration: none;\n background-color: #bd2130;\n}\n\n.badge-light {\n color: #111;\n background-color: #f8f9fa;\n}\n\n.badge-light[href]:focus, .badge-light[href]:hover {\n color: #111;\n text-decoration: none;\n background-color: #dae0e5;\n}\n\n.badge-dark {\n color: #fff;\n background-color: #343a40;\n}\n\n.badge-dark[href]:focus, .badge-dark[href]:hover {\n color: #fff;\n text-decoration: none;\n background-color: #1d2124;\n}\n\n.jumbotron {\n padding: 2rem 1rem;\n margin-bottom: 2rem;\n background-color: #e9ecef;\n border-radius: 0.3rem;\n}\n\n@media (min-width: 576px) {\n .jumbotron {\n padding: 4rem 2rem;\n }\n}\n\n.jumbotron-fluid {\n padding-right: 0;\n padding-left: 0;\n border-radius: 0;\n}\n\n.alert {\n position: relative;\n padding: 0.75rem 1.25rem;\n margin-bottom: 1rem;\n border: 1px solid transparent;\n border-radius: 0.25rem;\n}\n\n.alert-heading {\n color: inherit;\n}\n\n.alert-link {\n font-weight: 700;\n}\n\n.alert-dismissible .close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 0.75rem 1.25rem;\n color: inherit;\n}\n\n.alert-primary {\n color: #004085;\n background-color: #cce5ff;\n border-color: #b8daff;\n}\n\n.alert-primary hr {\n border-top-color: #9fcdff;\n}\n\n.alert-primary .alert-link {\n color: #002752;\n}\n\n.alert-secondary {\n color: #464a4e;\n background-color: #e7e8ea;\n border-color: #dddfe2;\n}\n\n.alert-secondary hr {\n border-top-color: #cfd2d6;\n}\n\n.alert-secondary .alert-link {\n color: #2e3133;\n}\n\n.alert-success {\n color: #155724;\n background-color: #d4edda;\n border-color: #c3e6cb;\n}\n\n.alert-success hr {\n border-top-color: #b1dfbb;\n}\n\n.alert-success .alert-link {\n color: #0b2e13;\n}\n\n.alert-info {\n color: #0c5460;\n background-color: #d1ecf1;\n border-color: #bee5eb;\n}\n\n.alert-info hr {\n border-top-color: #abdde5;\n}\n\n.alert-info .alert-link {\n color: #062c33;\n}\n\n.alert-warning {\n color: #856404;\n background-color: #fff3cd;\n border-color: #ffeeba;\n}\n\n.alert-warning hr {\n border-top-color: #ffe8a1;\n}\n\n.alert-warning .alert-link {\n color: #533f03;\n}\n\n.alert-danger {\n color: #721c24;\n background-color: #f8d7da;\n border-color: #f5c6cb;\n}\n\n.alert-danger hr {\n border-top-color: #f1b0b7;\n}\n\n.alert-danger .alert-link {\n color: #491217;\n}\n\n.alert-light {\n color: #818182;\n background-color: #fefefe;\n border-color: #fdfdfe;\n}\n\n.alert-light hr {\n border-top-color: #ececf6;\n}\n\n.alert-light .alert-link {\n color: #686868;\n}\n\n.alert-dark {\n color: #1b1e21;\n background-color: #d6d8d9;\n border-color: #c6c8ca;\n}\n\n.alert-dark hr {\n border-top-color: #b9bbbe;\n}\n\n.alert-dark .alert-link {\n color: #040505;\n}\n\n@keyframes progress-bar-stripes {\n from {\n background-position: 1rem 0;\n }\n to {\n background-position: 0 0;\n }\n}\n\n.progress {\n display: flex;\n height: 1rem;\n overflow: hidden;\n font-size: 0.75rem;\n background-color: #e9ecef;\n border-radius: 0.25rem;\n}\n\n.progress-bar {\n display: flex;\n align-items: center;\n justify-content: center;\n color: #fff;\n background-color: #007bff;\n}\n\n.progress-bar-striped {\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-size: 1rem 1rem;\n}\n\n.progress-bar-animated {\n animation: progress-bar-stripes 1s linear infinite;\n}\n\n.media {\n display: flex;\n align-items: flex-start;\n}\n\n.media-body {\n flex: 1;\n}\n\n.list-group {\n display: flex;\n flex-direction: column;\n padding-left: 0;\n margin-bottom: 0;\n}\n\n.list-group-item-action {\n width: 100%;\n color: #495057;\n text-align: inherit;\n}\n\n.list-group-item-action:focus, .list-group-item-action:hover {\n color: #495057;\n text-decoration: none;\n background-color: #f8f9fa;\n}\n\n.list-group-item-action:active {\n color: #212529;\n background-color: #e9ecef;\n}\n\n.list-group-item {\n position: relative;\n display: block;\n padding: 0.75rem 1.25rem;\n margin-bottom: -1px;\n background-color: #fff;\n border: 1px solid rgba(0, 0, 0, 0.125);\n}\n\n.list-group-item:first-child {\n border-top-left-radius: 0.25rem;\n border-top-right-radius: 0.25rem;\n}\n\n.list-group-item:last-child {\n margin-bottom: 0;\n border-bottom-right-radius: 0.25rem;\n border-bottom-left-radius: 0.25rem;\n}\n\n.list-group-item:focus, .list-group-item:hover {\n text-decoration: none;\n}\n\n.list-group-item.disabled, .list-group-item:disabled {\n color: #868e96;\n background-color: #fff;\n}\n\n.list-group-item.active {\n z-index: 2;\n color: #fff;\n background-color: #007bff;\n border-color: #007bff;\n}\n\n.list-group-flush .list-group-item {\n border-right: 0;\n border-left: 0;\n border-radius: 0;\n}\n\n.list-group-flush:first-child .list-group-item:first-child {\n border-top: 0;\n}\n\n.list-group-flush:last-child .list-group-item:last-child {\n border-bottom: 0;\n}\n\n.list-group-item-primary {\n color: #004085;\n background-color: #b8daff;\n}\n\na.list-group-item-primary,\nbutton.list-group-item-primary {\n color: #004085;\n}\n\na.list-group-item-primary:focus, a.list-group-item-primary:hover,\nbutton.list-group-item-primary:focus,\nbutton.list-group-item-primary:hover {\n color: #004085;\n background-color: #9fcdff;\n}\n\na.list-group-item-primary.active,\nbutton.list-group-item-primary.active {\n color: #fff;\n background-color: #004085;\n border-color: #004085;\n}\n\n.list-group-item-secondary {\n color: #464a4e;\n background-color: #dddfe2;\n}\n\na.list-group-item-secondary,\nbutton.list-group-item-secondary {\n color: #464a4e;\n}\n\na.list-group-item-secondary:focus, a.list-group-item-secondary:hover,\nbutton.list-group-item-secondary:focus,\nbutton.list-group-item-secondary:hover {\n color: #464a4e;\n background-color: #cfd2d6;\n}\n\na.list-group-item-secondary.active,\nbutton.list-group-item-secondary.active {\n color: #fff;\n background-color: #464a4e;\n border-color: #464a4e;\n}\n\n.list-group-item-success {\n color: #155724;\n background-color: #c3e6cb;\n}\n\na.list-group-item-success,\nbutton.list-group-item-success {\n color: #155724;\n}\n\na.list-group-item-success:focus, a.list-group-item-success:hover,\nbutton.list-group-item-success:focus,\nbutton.list-group-item-success:hover {\n color: #155724;\n background-color: #b1dfbb;\n}\n\na.list-group-item-success.active,\nbutton.list-group-item-success.active {\n color: #fff;\n background-color: #155724;\n border-color: #155724;\n}\n\n.list-group-item-info {\n color: #0c5460;\n background-color: #bee5eb;\n}\n\na.list-group-item-info,\nbutton.list-group-item-info {\n color: #0c5460;\n}\n\na.list-group-item-info:focus, a.list-group-item-info:hover,\nbutton.list-group-item-info:focus,\nbutton.list-group-item-info:hover {\n color: #0c5460;\n background-color: #abdde5;\n}\n\na.list-group-item-info.active,\nbutton.list-group-item-info.active {\n color: #fff;\n background-color: #0c5460;\n border-color: #0c5460;\n}\n\n.list-group-item-warning {\n color: #856404;\n background-color: #ffeeba;\n}\n\na.list-group-item-warning,\nbutton.list-group-item-warning {\n color: #856404;\n}\n\na.list-group-item-warning:focus, a.list-group-item-warning:hover,\nbutton.list-group-item-warning:focus,\nbutton.list-group-item-warning:hover {\n color: #856404;\n background-color: #ffe8a1;\n}\n\na.list-group-item-warning.active,\nbutton.list-group-item-warning.active {\n color: #fff;\n background-color: #856404;\n border-color: #856404;\n}\n\n.list-group-item-danger {\n color: #721c24;\n background-color: #f5c6cb;\n}\n\na.list-group-item-danger,\nbutton.list-group-item-danger {\n color: #721c24;\n}\n\na.list-group-item-danger:focus, a.list-group-item-danger:hover,\nbutton.list-group-item-danger:focus,\nbutton.list-group-item-danger:hover {\n color: #721c24;\n background-color: #f1b0b7;\n}\n\na.list-group-item-danger.active,\nbutton.list-group-item-danger.active {\n color: #fff;\n background-color: #721c24;\n border-color: #721c24;\n}\n\n.list-group-item-light {\n color: #818182;\n background-color: #fdfdfe;\n}\n\na.list-group-item-light,\nbutton.list-group-item-light {\n color: #818182;\n}\n\na.list-group-item-light:focus, a.list-group-item-light:hover,\nbutton.list-group-item-light:focus,\nbutton.list-group-item-light:hover {\n color: #818182;\n background-color: #ececf6;\n}\n\na.list-group-item-light.active,\nbutton.list-group-item-light.active {\n color: #fff;\n background-color: #818182;\n border-color: #818182;\n}\n\n.list-group-item-dark {\n color: #1b1e21;\n background-color: #c6c8ca;\n}\n\na.list-group-item-dark,\nbutton.list-group-item-dark {\n color: #1b1e21;\n}\n\na.list-group-item-dark:focus, a.list-group-item-dark:hover,\nbutton.list-group-item-dark:focus,\nbutton.list-group-item-dark:hover {\n color: #1b1e21;\n background-color: #b9bbbe;\n}\n\na.list-group-item-dark.active,\nbutton.list-group-item-dark.active {\n color: #fff;\n background-color: #1b1e21;\n border-color: #1b1e21;\n}\n\n.close {\n float: right;\n font-size: 1.5rem;\n font-weight: 700;\n line-height: 1;\n color: #000;\n text-shadow: 0 1px 0 #fff;\n opacity: .5;\n}\n\n.close:focus, .close:hover {\n color: #000;\n text-decoration: none;\n opacity: .75;\n}\n\nbutton.close {\n padding: 0;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n}\n\n.modal-open {\n overflow: hidden;\n}\n\n.modal {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1050;\n display: none;\n overflow: hidden;\n outline: 0;\n}\n\n.modal.fade .modal-dialog {\n transition: transform 0.3s ease-out;\n transform: translate(0, -25%);\n}\n\n.modal.show .modal-dialog {\n transform: translate(0, 0);\n}\n\n.modal-open .modal {\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.modal-dialog {\n position: relative;\n width: auto;\n margin: 10px;\n pointer-events: none;\n}\n\n.modal-content {\n position: relative;\n display: flex;\n flex-direction: column;\n pointer-events: auto;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 0.3rem;\n outline: 0;\n}\n\n.modal-backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1040;\n background-color: #000;\n}\n\n.modal-backdrop.fade {\n opacity: 0;\n}\n\n.modal-backdrop.show {\n opacity: 0.5;\n}\n\n.modal-header {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n padding: 15px;\n border-bottom: 1px solid #e9ecef;\n border-top-left-radius: 0.3rem;\n border-top-right-radius: 0.3rem;\n}\n\n.modal-header .close {\n padding: 15px;\n margin: -15px -15px -15px auto;\n}\n\n.modal-title {\n margin-bottom: 0;\n line-height: 1.5;\n}\n\n.modal-body {\n position: relative;\n flex: 1 1 auto;\n padding: 15px;\n}\n\n.modal-footer {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 15px;\n border-top: 1px solid #e9ecef;\n}\n\n.modal-footer > :not(:first-child) {\n margin-left: .25rem;\n}\n\n.modal-footer > :not(:last-child) {\n margin-right: .25rem;\n}\n\n.modal-scrollbar-measure {\n position: absolute;\n top: -9999px;\n width: 50px;\n height: 50px;\n overflow: scroll;\n}\n\n@media (min-width: 576px) {\n .modal-dialog {\n max-width: 500px;\n margin: 30px auto;\n }\n .modal-sm {\n max-width: 300px;\n }\n}\n\n@media (min-width: 992px) {\n .modal-lg {\n max-width: 800px;\n }\n}\n\n.tooltip {\n position: absolute;\n z-index: 1070;\n display: block;\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-style: normal;\n font-weight: 400;\n line-height: 1.5;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n letter-spacing: normal;\n word-break: normal;\n word-spacing: normal;\n white-space: normal;\n line-break: auto;\n font-size: 0.875rem;\n word-wrap: break-word;\n opacity: 0;\n}\n\n.tooltip.show {\n opacity: 0.9;\n}\n\n.tooltip .arrow {\n position: absolute;\n display: block;\n width: 5px;\n height: 5px;\n}\n\n.tooltip .arrow::before {\n position: absolute;\n border-color: transparent;\n border-style: solid;\n}\n\n.tooltip.bs-tooltip-top, .tooltip.bs-tooltip-auto[x-placement^=\"top\"] {\n padding: 5px 0;\n}\n\n.tooltip.bs-tooltip-top .arrow, .tooltip.bs-tooltip-auto[x-placement^=\"top\"] .arrow {\n bottom: 0;\n}\n\n.tooltip.bs-tooltip-top .arrow::before, .tooltip.bs-tooltip-auto[x-placement^=\"top\"] .arrow::before {\n margin-left: -3px;\n content: \"\";\n border-width: 5px 5px 0;\n border-top-color: #000;\n}\n\n.tooltip.bs-tooltip-right, .tooltip.bs-tooltip-auto[x-placement^=\"right\"] {\n padding: 0 5px;\n}\n\n.tooltip.bs-tooltip-right .arrow, .tooltip.bs-tooltip-auto[x-placement^=\"right\"] .arrow {\n left: 0;\n}\n\n.tooltip.bs-tooltip-right .arrow::before, .tooltip.bs-tooltip-auto[x-placement^=\"right\"] .arrow::before {\n margin-top: -3px;\n content: \"\";\n border-width: 5px 5px 5px 0;\n border-right-color: #000;\n}\n\n.tooltip.bs-tooltip-bottom, .tooltip.bs-tooltip-auto[x-placement^=\"bottom\"] {\n padding: 5px 0;\n}\n\n.tooltip.bs-tooltip-bottom .arrow, .tooltip.bs-tooltip-auto[x-placement^=\"bottom\"] .arrow {\n top: 0;\n}\n\n.tooltip.bs-tooltip-bottom .arrow::before, .tooltip.bs-tooltip-auto[x-placement^=\"bottom\"] .arrow::before {\n margin-left: -3px;\n content: \"\";\n border-width: 0 5px 5px;\n border-bottom-color: #000;\n}\n\n.tooltip.bs-tooltip-left, .tooltip.bs-tooltip-auto[x-placement^=\"left\"] {\n padding: 0 5px;\n}\n\n.tooltip.bs-tooltip-left .arrow, .tooltip.bs-tooltip-auto[x-placement^=\"left\"] .arrow {\n right: 0;\n}\n\n.tooltip.bs-tooltip-left .arrow::before, .tooltip.bs-tooltip-auto[x-placement^=\"left\"] .arrow::before {\n right: 0;\n margin-top: -3px;\n content: \"\";\n border-width: 5px 0 5px 5px;\n border-left-color: #000;\n}\n\n.tooltip-inner {\n max-width: 200px;\n padding: 3px 8px;\n color: #fff;\n text-align: center;\n background-color: #000;\n border-radius: 0.25rem;\n}\n\n.popover {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1060;\n display: block;\n max-width: 276px;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-style: normal;\n font-weight: 400;\n line-height: 1.5;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n letter-spacing: normal;\n word-break: normal;\n word-spacing: normal;\n white-space: normal;\n line-break: auto;\n font-size: 0.875rem;\n word-wrap: break-word;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 0.3rem;\n}\n\n.popover .arrow {\n position: absolute;\n display: block;\n width: 0.8rem;\n height: 0.4rem;\n}\n\n.popover .arrow::before,\n.popover .arrow::after {\n position: absolute;\n display: block;\n border-color: transparent;\n border-style: solid;\n}\n\n.popover .arrow::before {\n content: \"\";\n border-width: 0.8rem;\n}\n\n.popover .arrow::after {\n content: \"\";\n border-width: 0.8rem;\n}\n\n.popover.bs-popover-top, .popover.bs-popover-auto[x-placement^=\"top\"] {\n margin-bottom: 0.8rem;\n}\n\n.popover.bs-popover-top .arrow, .popover.bs-popover-auto[x-placement^=\"top\"] .arrow {\n bottom: 0;\n}\n\n.popover.bs-popover-top .arrow::before, .popover.bs-popover-auto[x-placement^=\"top\"] .arrow::before,\n.popover.bs-popover-top .arrow::after, .popover.bs-popover-auto[x-placement^=\"top\"] .arrow::after {\n border-bottom-width: 0;\n}\n\n.popover.bs-popover-top .arrow::before, .popover.bs-popover-auto[x-placement^=\"top\"] .arrow::before {\n bottom: -0.8rem;\n margin-left: -0.8rem;\n border-top-color: rgba(0, 0, 0, 0.25);\n}\n\n.popover.bs-popover-top .arrow::after, .popover.bs-popover-auto[x-placement^=\"top\"] .arrow::after {\n bottom: calc((0.8rem - 1px) * -1);\n margin-left: -0.8rem;\n border-top-color: #fff;\n}\n\n.popover.bs-popover-right, .popover.bs-popover-auto[x-placement^=\"right\"] {\n margin-left: 0.8rem;\n}\n\n.popover.bs-popover-right .arrow, .popover.bs-popover-auto[x-placement^=\"right\"] .arrow {\n left: 0;\n}\n\n.popover.bs-popover-right .arrow::before, .popover.bs-popover-auto[x-placement^=\"right\"] .arrow::before,\n.popover.bs-popover-right .arrow::after, .popover.bs-popover-auto[x-placement^=\"right\"] .arrow::after {\n margin-top: -0.8rem;\n border-left-width: 0;\n}\n\n.popover.bs-popover-right .arrow::before, .popover.bs-popover-auto[x-placement^=\"right\"] .arrow::before {\n left: -0.8rem;\n border-right-color: rgba(0, 0, 0, 0.25);\n}\n\n.popover.bs-popover-right .arrow::after, .popover.bs-popover-auto[x-placement^=\"right\"] .arrow::after {\n left: calc((0.8rem - 1px) * -1);\n border-right-color: #fff;\n}\n\n.popover.bs-popover-bottom, .popover.bs-popover-auto[x-placement^=\"bottom\"] {\n margin-top: 0.8rem;\n}\n\n.popover.bs-popover-bottom .arrow, .popover.bs-popover-auto[x-placement^=\"bottom\"] .arrow {\n top: 0;\n}\n\n.popover.bs-popover-bottom .arrow::before, .popover.bs-popover-auto[x-placement^=\"bottom\"] .arrow::before,\n.popover.bs-popover-bottom .arrow::after, .popover.bs-popover-auto[x-placement^=\"bottom\"] .arrow::after {\n margin-left: -0.8rem;\n border-top-width: 0;\n}\n\n.popover.bs-popover-bottom .arrow::before, .popover.bs-popover-auto[x-placement^=\"bottom\"] .arrow::before {\n top: -0.8rem;\n border-bottom-color: rgba(0, 0, 0, 0.25);\n}\n\n.popover.bs-popover-bottom .arrow::after, .popover.bs-popover-auto[x-placement^=\"bottom\"] .arrow::after {\n top: calc((0.8rem - 1px) * -1);\n border-bottom-color: #fff;\n}\n\n.popover.bs-popover-bottom .popover-header::before, .popover.bs-popover-auto[x-placement^=\"bottom\"] .popover-header::before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 20px;\n margin-left: -10px;\n content: \"\";\n border-bottom: 1px solid #f7f7f7;\n}\n\n.popover.bs-popover-left, .popover.bs-popover-auto[x-placement^=\"left\"] {\n margin-right: 0.8rem;\n}\n\n.popover.bs-popover-left .arrow, .popover.bs-popover-auto[x-placement^=\"left\"] .arrow {\n right: 0;\n}\n\n.popover.bs-popover-left .arrow::before, .popover.bs-popover-auto[x-placement^=\"left\"] .arrow::before,\n.popover.bs-popover-left .arrow::after, .popover.bs-popover-auto[x-placement^=\"left\"] .arrow::after {\n margin-top: -0.8rem;\n border-right-width: 0;\n}\n\n.popover.bs-popover-left .arrow::before, .popover.bs-popover-auto[x-placement^=\"left\"] .arrow::before {\n right: -0.8rem;\n border-left-color: rgba(0, 0, 0, 0.25);\n}\n\n.popover.bs-popover-left .arrow::after, .popover.bs-popover-auto[x-placement^=\"left\"] .arrow::after {\n right: calc((0.8rem - 1px) * -1);\n border-left-color: #fff;\n}\n\n.popover-header {\n padding: 0.5rem 0.75rem;\n margin-bottom: 0;\n font-size: 1rem;\n color: inherit;\n background-color: #f7f7f7;\n border-bottom: 1px solid #ebebeb;\n border-top-left-radius: calc(0.3rem - 1px);\n border-top-right-radius: calc(0.3rem - 1px);\n}\n\n.popover-header:empty {\n display: none;\n}\n\n.popover-body {\n padding: 0.5rem 0.75rem;\n color: #212529;\n}\n\n.carousel {\n position: relative;\n}\n\n.carousel-inner {\n position: relative;\n width: 100%;\n overflow: hidden;\n}\n\n.carousel-item {\n position: relative;\n display: none;\n align-items: center;\n width: 100%;\n transition: transform 0.6s ease;\n backface-visibility: hidden;\n perspective: 1000px;\n}\n\n.carousel-item.active,\n.carousel-item-next,\n.carousel-item-prev {\n display: block;\n}\n\n.carousel-item-next,\n.carousel-item-prev {\n position: absolute;\n top: 0;\n}\n\n.carousel-item-next.carousel-item-left,\n.carousel-item-prev.carousel-item-right {\n transform: translateX(0);\n}\n\n@supports (transform-style: preserve-3d) {\n .carousel-item-next.carousel-item-left,\n .carousel-item-prev.carousel-item-right {\n transform: translate3d(0, 0, 0);\n }\n}\n\n.carousel-item-next,\n.active.carousel-item-right {\n transform: translateX(100%);\n}\n\n@supports (transform-style: preserve-3d) {\n .carousel-item-next,\n .active.carousel-item-right {\n transform: translate3d(100%, 0, 0);\n }\n}\n\n.carousel-item-prev,\n.active.carousel-item-left {\n transform: translateX(-100%);\n}\n\n@supports (transform-style: preserve-3d) {\n .carousel-item-prev,\n .active.carousel-item-left {\n transform: translate3d(-100%, 0, 0);\n }\n}\n\n.carousel-control-prev,\n.carousel-control-next {\n position: absolute;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 15%;\n color: #fff;\n text-align: center;\n opacity: 0.5;\n}\n\n.carousel-control-prev:focus, .carousel-control-prev:hover,\n.carousel-control-next:focus,\n.carousel-control-next:hover {\n color: #fff;\n text-decoration: none;\n outline: 0;\n opacity: .9;\n}\n\n.carousel-control-prev {\n left: 0;\n}\n\n.carousel-control-next {\n right: 0;\n}\n\n.carousel-control-prev-icon,\n.carousel-control-next-icon {\n display: inline-block;\n width: 20px;\n height: 20px;\n background: transparent no-repeat center center;\n background-size: 100% 100%;\n}\n\n.carousel-control-prev-icon {\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E\");\n}\n\n.carousel-control-next-icon {\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E\");\n}\n\n.carousel-indicators {\n position: absolute;\n right: 0;\n bottom: 10px;\n left: 0;\n z-index: 15;\n display: flex;\n justify-content: center;\n padding-left: 0;\n margin-right: 15%;\n margin-left: 15%;\n list-style: none;\n}\n\n.carousel-indicators li {\n position: relative;\n flex: 0 1 auto;\n width: 30px;\n height: 3px;\n margin-right: 3px;\n margin-left: 3px;\n text-indent: -999px;\n background-color: rgba(255, 255, 255, 0.5);\n}\n\n.carousel-indicators li::before {\n position: absolute;\n top: -10px;\n left: 0;\n display: inline-block;\n width: 100%;\n height: 10px;\n content: \"\";\n}\n\n.carousel-indicators li::after {\n position: absolute;\n bottom: -10px;\n left: 0;\n display: inline-block;\n width: 100%;\n height: 10px;\n content: \"\";\n}\n\n.carousel-indicators .active {\n background-color: #fff;\n}\n\n.carousel-caption {\n position: absolute;\n right: 15%;\n bottom: 20px;\n left: 15%;\n z-index: 10;\n padding-top: 20px;\n padding-bottom: 20px;\n color: #fff;\n text-align: center;\n}\n\n.align-baseline {\n vertical-align: baseline !important;\n}\n\n.align-top {\n vertical-align: top !important;\n}\n\n.align-middle {\n vertical-align: middle !important;\n}\n\n.align-bottom {\n vertical-align: bottom !important;\n}\n\n.align-text-bottom {\n vertical-align: text-bottom !important;\n}\n\n.align-text-top {\n vertical-align: text-top !important;\n}\n\n.bg-primary {\n background-color: #007bff !important;\n}\n\na.bg-primary:focus, a.bg-primary:hover {\n background-color: #0062cc !important;\n}\n\n.bg-secondary {\n background-color: #868e96 !important;\n}\n\na.bg-secondary:focus, a.bg-secondary:hover {\n background-color: #6c757d !important;\n}\n\n.bg-success {\n background-color: #28a745 !important;\n}\n\na.bg-success:focus, a.bg-success:hover {\n background-color: #1e7e34 !important;\n}\n\n.bg-info {\n background-color: #17a2b8 !important;\n}\n\na.bg-info:focus, a.bg-info:hover {\n background-color: #117a8b !important;\n}\n\n.bg-warning {\n background-color: #ffc107 !important;\n}\n\na.bg-warning:focus, a.bg-warning:hover {\n background-color: #d39e00 !important;\n}\n\n.bg-danger {\n background-color: #dc3545 !important;\n}\n\na.bg-danger:focus, a.bg-danger:hover {\n background-color: #bd2130 !important;\n}\n\n.bg-light {\n background-color: #f8f9fa !important;\n}\n\na.bg-light:focus, a.bg-light:hover {\n background-color: #dae0e5 !important;\n}\n\n.bg-dark {\n background-color: #343a40 !important;\n}\n\na.bg-dark:focus, a.bg-dark:hover {\n background-color: #1d2124 !important;\n}\n\n.bg-white {\n background-color: #fff !important;\n}\n\n.bg-transparent {\n background-color: transparent !important;\n}\n\n.border {\n border: 1px solid #e9ecef !important;\n}\n\n.border-0 {\n border: 0 !important;\n}\n\n.border-top-0 {\n border-top: 0 !important;\n}\n\n.border-right-0 {\n border-right: 0 !important;\n}\n\n.border-bottom-0 {\n border-bottom: 0 !important;\n}\n\n.border-left-0 {\n border-left: 0 !important;\n}\n\n.border-primary {\n border-color: #007bff !important;\n}\n\n.border-secondary {\n border-color: #868e96 !important;\n}\n\n.border-success {\n border-color: #28a745 !important;\n}\n\n.border-info {\n border-color: #17a2b8 !important;\n}\n\n.border-warning {\n border-color: #ffc107 !important;\n}\n\n.border-danger {\n border-color: #dc3545 !important;\n}\n\n.border-light {\n border-color: #f8f9fa !important;\n}\n\n.border-dark {\n border-color: #343a40 !important;\n}\n\n.border-white {\n border-color: #fff !important;\n}\n\n.rounded {\n border-radius: 0.25rem !important;\n}\n\n.rounded-top {\n border-top-left-radius: 0.25rem !important;\n border-top-right-radius: 0.25rem !important;\n}\n\n.rounded-right {\n border-top-right-radius: 0.25rem !important;\n border-bottom-right-radius: 0.25rem !important;\n}\n\n.rounded-bottom {\n border-bottom-right-radius: 0.25rem !important;\n border-bottom-left-radius: 0.25rem !important;\n}\n\n.rounded-left {\n border-top-left-radius: 0.25rem !important;\n border-bottom-left-radius: 0.25rem !important;\n}\n\n.rounded-circle {\n border-radius: 50% !important;\n}\n\n.rounded-0 {\n border-radius: 0 !important;\n}\n\n.clearfix::after {\n display: block;\n clear: both;\n content: \"\";\n}\n\n.d-none {\n display: none !important;\n}\n\n.d-inline {\n display: inline !important;\n}\n\n.d-inline-block {\n display: inline-block !important;\n}\n\n.d-block {\n display: block !important;\n}\n\n.d-table {\n display: table !important;\n}\n\n.d-table-row {\n display: table-row !important;\n}\n\n.d-table-cell {\n display: table-cell !important;\n}\n\n.d-flex {\n display: flex !important;\n}\n\n.d-inline-flex {\n display: inline-flex !important;\n}\n\n@media (min-width: 576px) {\n .d-sm-none {\n display: none !important;\n }\n .d-sm-inline {\n display: inline !important;\n }\n .d-sm-inline-block {\n display: inline-block !important;\n }\n .d-sm-block {\n display: block !important;\n }\n .d-sm-table {\n display: table !important;\n }\n .d-sm-table-row {\n display: table-row !important;\n }\n .d-sm-table-cell {\n display: table-cell !important;\n }\n .d-sm-flex {\n display: flex !important;\n }\n .d-sm-inline-flex {\n display: inline-flex !important;\n }\n}\n\n@media (min-width: 768px) {\n .d-md-none {\n display: none !important;\n }\n .d-md-inline {\n display: inline !important;\n }\n .d-md-inline-block {\n display: inline-block !important;\n }\n .d-md-block {\n display: block !important;\n }\n .d-md-table {\n display: table !important;\n }\n .d-md-table-row {\n display: table-row !important;\n }\n .d-md-table-cell {\n display: table-cell !important;\n }\n .d-md-flex {\n display: flex !important;\n }\n .d-md-inline-flex {\n display: inline-flex !important;\n }\n}\n\n@media (min-width: 992px) {\n .d-lg-none {\n display: none !important;\n }\n .d-lg-inline {\n display: inline !important;\n }\n .d-lg-inline-block {\n display: inline-block !important;\n }\n .d-lg-block {\n display: block !important;\n }\n .d-lg-table {\n display: table !important;\n }\n .d-lg-table-row {\n display: table-row !important;\n }\n .d-lg-table-cell {\n display: table-cell !important;\n }\n .d-lg-flex {\n display: flex !important;\n }\n .d-lg-inline-flex {\n display: inline-flex !important;\n }\n}\n\n@media (min-width: 1200px) {\n .d-xl-none {\n display: none !important;\n }\n .d-xl-inline {\n display: inline !important;\n }\n .d-xl-inline-block {\n display: inline-block !important;\n }\n .d-xl-block {\n display: block !important;\n }\n .d-xl-table {\n display: table !important;\n }\n .d-xl-table-row {\n display: table-row !important;\n }\n .d-xl-table-cell {\n display: table-cell !important;\n }\n .d-xl-flex {\n display: flex !important;\n }\n .d-xl-inline-flex {\n display: inline-flex !important;\n }\n}\n\n.d-print-block {\n display: none !important;\n}\n\n@media print {\n .d-print-block {\n display: block !important;\n }\n}\n\n.d-print-inline {\n display: none !important;\n}\n\n@media print {\n .d-print-inline {\n display: inline !important;\n }\n}\n\n.d-print-inline-block {\n display: none !important;\n}\n\n@media print {\n .d-print-inline-block {\n display: inline-block !important;\n }\n}\n\n@media print {\n .d-print-none {\n display: none !important;\n }\n}\n\n.embed-responsive {\n position: relative;\n display: block;\n width: 100%;\n padding: 0;\n overflow: hidden;\n}\n\n.embed-responsive::before {\n display: block;\n content: \"\";\n}\n\n.embed-responsive .embed-responsive-item,\n.embed-responsive iframe,\n.embed-responsive embed,\n.embed-responsive object,\n.embed-responsive video {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 0;\n}\n\n.embed-responsive-21by9::before {\n padding-top: 42.857143%;\n}\n\n.embed-responsive-16by9::before {\n padding-top: 56.25%;\n}\n\n.embed-responsive-4by3::before {\n padding-top: 75%;\n}\n\n.embed-responsive-1by1::before {\n padding-top: 100%;\n}\n\n.flex-row {\n flex-direction: row !important;\n}\n\n.flex-column {\n flex-direction: column !important;\n}\n\n.flex-row-reverse {\n flex-direction: row-reverse !important;\n}\n\n.flex-column-reverse {\n flex-direction: column-reverse !important;\n}\n\n.flex-wrap {\n flex-wrap: wrap !important;\n}\n\n.flex-nowrap {\n flex-wrap: nowrap !important;\n}\n\n.flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n}\n\n.justify-content-start {\n justify-content: flex-start !important;\n}\n\n.justify-content-end {\n justify-content: flex-end !important;\n}\n\n.justify-content-center {\n justify-content: center !important;\n}\n\n.justify-content-between {\n justify-content: space-between !important;\n}\n\n.justify-content-around {\n justify-content: space-around !important;\n}\n\n.align-items-start {\n align-items: flex-start !important;\n}\n\n.align-items-end {\n align-items: flex-end !important;\n}\n\n.align-items-center {\n align-items: center !important;\n}\n\n.align-items-baseline {\n align-items: baseline !important;\n}\n\n.align-items-stretch {\n align-items: stretch !important;\n}\n\n.align-content-start {\n align-content: flex-start !important;\n}\n\n.align-content-end {\n align-content: flex-end !important;\n}\n\n.align-content-center {\n align-content: center !important;\n}\n\n.align-content-between {\n align-content: space-between !important;\n}\n\n.align-content-around {\n align-content: space-around !important;\n}\n\n.align-content-stretch {\n align-content: stretch !important;\n}\n\n.align-self-auto {\n align-self: auto !important;\n}\n\n.align-self-start {\n align-self: flex-start !important;\n}\n\n.align-self-end {\n align-self: flex-end !important;\n}\n\n.align-self-center {\n align-self: center !important;\n}\n\n.align-self-baseline {\n align-self: baseline !important;\n}\n\n.align-self-stretch {\n align-self: stretch !important;\n}\n\n@media (min-width: 576px) {\n .flex-sm-row {\n flex-direction: row !important;\n }\n .flex-sm-column {\n flex-direction: column !important;\n }\n .flex-sm-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-sm-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-sm-wrap {\n flex-wrap: wrap !important;\n }\n .flex-sm-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-sm-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-sm-start {\n justify-content: flex-start !important;\n }\n .justify-content-sm-end {\n justify-content: flex-end !important;\n }\n .justify-content-sm-center {\n justify-content: center !important;\n }\n .justify-content-sm-between {\n justify-content: space-between !important;\n }\n .justify-content-sm-around {\n justify-content: space-around !important;\n }\n .align-items-sm-start {\n align-items: flex-start !important;\n }\n .align-items-sm-end {\n align-items: flex-end !important;\n }\n .align-items-sm-center {\n align-items: center !important;\n }\n .align-items-sm-baseline {\n align-items: baseline !important;\n }\n .align-items-sm-stretch {\n align-items: stretch !important;\n }\n .align-content-sm-start {\n align-content: flex-start !important;\n }\n .align-content-sm-end {\n align-content: flex-end !important;\n }\n .align-content-sm-center {\n align-content: center !important;\n }\n .align-content-sm-between {\n align-content: space-between !important;\n }\n .align-content-sm-around {\n align-content: space-around !important;\n }\n .align-content-sm-stretch {\n align-content: stretch !important;\n }\n .align-self-sm-auto {\n align-self: auto !important;\n }\n .align-self-sm-start {\n align-self: flex-start !important;\n }\n .align-self-sm-end {\n align-self: flex-end !important;\n }\n .align-self-sm-center {\n align-self: center !important;\n }\n .align-self-sm-baseline {\n align-self: baseline !important;\n }\n .align-self-sm-stretch {\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 768px) {\n .flex-md-row {\n flex-direction: row !important;\n }\n .flex-md-column {\n flex-direction: column !important;\n }\n .flex-md-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-md-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-md-wrap {\n flex-wrap: wrap !important;\n }\n .flex-md-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-md-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-md-start {\n justify-content: flex-start !important;\n }\n .justify-content-md-end {\n justify-content: flex-end !important;\n }\n .justify-content-md-center {\n justify-content: center !important;\n }\n .justify-content-md-between {\n justify-content: space-between !important;\n }\n .justify-content-md-around {\n justify-content: space-around !important;\n }\n .align-items-md-start {\n align-items: flex-start !important;\n }\n .align-items-md-end {\n align-items: flex-end !important;\n }\n .align-items-md-center {\n align-items: center !important;\n }\n .align-items-md-baseline {\n align-items: baseline !important;\n }\n .align-items-md-stretch {\n align-items: stretch !important;\n }\n .align-content-md-start {\n align-content: flex-start !important;\n }\n .align-content-md-end {\n align-content: flex-end !important;\n }\n .align-content-md-center {\n align-content: center !important;\n }\n .align-content-md-between {\n align-content: space-between !important;\n }\n .align-content-md-around {\n align-content: space-around !important;\n }\n .align-content-md-stretch {\n align-content: stretch !important;\n }\n .align-self-md-auto {\n align-self: auto !important;\n }\n .align-self-md-start {\n align-self: flex-start !important;\n }\n .align-self-md-end {\n align-self: flex-end !important;\n }\n .align-self-md-center {\n align-self: center !important;\n }\n .align-self-md-baseline {\n align-self: baseline !important;\n }\n .align-self-md-stretch {\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 992px) {\n .flex-lg-row {\n flex-direction: row !important;\n }\n .flex-lg-column {\n flex-direction: column !important;\n }\n .flex-lg-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-lg-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-lg-wrap {\n flex-wrap: wrap !important;\n }\n .flex-lg-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-lg-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-lg-start {\n justify-content: flex-start !important;\n }\n .justify-content-lg-end {\n justify-content: flex-end !important;\n }\n .justify-content-lg-center {\n justify-content: center !important;\n }\n .justify-content-lg-between {\n justify-content: space-between !important;\n }\n .justify-content-lg-around {\n justify-content: space-around !important;\n }\n .align-items-lg-start {\n align-items: flex-start !important;\n }\n .align-items-lg-end {\n align-items: flex-end !important;\n }\n .align-items-lg-center {\n align-items: center !important;\n }\n .align-items-lg-baseline {\n align-items: baseline !important;\n }\n .align-items-lg-stretch {\n align-items: stretch !important;\n }\n .align-content-lg-start {\n align-content: flex-start !important;\n }\n .align-content-lg-end {\n align-content: flex-end !important;\n }\n .align-content-lg-center {\n align-content: center !important;\n }\n .align-content-lg-between {\n align-content: space-between !important;\n }\n .align-content-lg-around {\n align-content: space-around !important;\n }\n .align-content-lg-stretch {\n align-content: stretch !important;\n }\n .align-self-lg-auto {\n align-self: auto !important;\n }\n .align-self-lg-start {\n align-self: flex-start !important;\n }\n .align-self-lg-end {\n align-self: flex-end !important;\n }\n .align-self-lg-center {\n align-self: center !important;\n }\n .align-self-lg-baseline {\n align-self: baseline !important;\n }\n .align-self-lg-stretch {\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 1200px) {\n .flex-xl-row {\n flex-direction: row !important;\n }\n .flex-xl-column {\n flex-direction: column !important;\n }\n .flex-xl-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-xl-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-xl-wrap {\n flex-wrap: wrap !important;\n }\n .flex-xl-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-xl-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .justify-content-xl-start {\n justify-content: flex-start !important;\n }\n .justify-content-xl-end {\n justify-content: flex-end !important;\n }\n .justify-content-xl-center {\n justify-content: center !important;\n }\n .justify-content-xl-between {\n justify-content: space-between !important;\n }\n .justify-content-xl-around {\n justify-content: space-around !important;\n }\n .align-items-xl-start {\n align-items: flex-start !important;\n }\n .align-items-xl-end {\n align-items: flex-end !important;\n }\n .align-items-xl-center {\n align-items: center !important;\n }\n .align-items-xl-baseline {\n align-items: baseline !important;\n }\n .align-items-xl-stretch {\n align-items: stretch !important;\n }\n .align-content-xl-start {\n align-content: flex-start !important;\n }\n .align-content-xl-end {\n align-content: flex-end !important;\n }\n .align-content-xl-center {\n align-content: center !important;\n }\n .align-content-xl-between {\n align-content: space-between !important;\n }\n .align-content-xl-around {\n align-content: space-around !important;\n }\n .align-content-xl-stretch {\n align-content: stretch !important;\n }\n .align-self-xl-auto {\n align-self: auto !important;\n }\n .align-self-xl-start {\n align-self: flex-start !important;\n }\n .align-self-xl-end {\n align-self: flex-end !important;\n }\n .align-self-xl-center {\n align-self: center !important;\n }\n .align-self-xl-baseline {\n align-self: baseline !important;\n }\n .align-self-xl-stretch {\n align-self: stretch !important;\n }\n}\n\n.float-left {\n float: left !important;\n}\n\n.float-right {\n float: right !important;\n}\n\n.float-none {\n float: none !important;\n}\n\n@media (min-width: 576px) {\n .float-sm-left {\n float: left !important;\n }\n .float-sm-right {\n float: right !important;\n }\n .float-sm-none {\n float: none !important;\n }\n}\n\n@media (min-width: 768px) {\n .float-md-left {\n float: left !important;\n }\n .float-md-right {\n float: right !important;\n }\n .float-md-none {\n float: none !important;\n }\n}\n\n@media (min-width: 992px) {\n .float-lg-left {\n float: left !important;\n }\n .float-lg-right {\n float: right !important;\n }\n .float-lg-none {\n float: none !important;\n }\n}\n\n@media (min-width: 1200px) {\n .float-xl-left {\n float: left !important;\n }\n .float-xl-right {\n float: right !important;\n }\n .float-xl-none {\n float: none !important;\n }\n}\n\n.position-static {\n position: static !important;\n}\n\n.position-relative {\n position: relative !important;\n}\n\n.position-absolute {\n position: absolute !important;\n}\n\n.position-fixed {\n position: fixed !important;\n}\n\n.position-sticky {\n position: sticky !important;\n}\n\n.fixed-top {\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n z-index: 1030;\n}\n\n.fixed-bottom {\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1030;\n}\n\n@supports (position: sticky) {\n .sticky-top {\n position: sticky;\n top: 0;\n z-index: 1020;\n }\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n clip-path: inset(50%);\n border: 0;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n white-space: normal;\n clip-path: none;\n}\n\n.w-25 {\n width: 25% !important;\n}\n\n.w-50 {\n width: 50% !important;\n}\n\n.w-75 {\n width: 75% !important;\n}\n\n.w-100 {\n width: 100% !important;\n}\n\n.h-25 {\n height: 25% !important;\n}\n\n.h-50 {\n height: 50% !important;\n}\n\n.h-75 {\n height: 75% !important;\n}\n\n.h-100 {\n height: 100% !important;\n}\n\n.mw-100 {\n max-width: 100% !important;\n}\n\n.mh-100 {\n max-height: 100% !important;\n}\n\n.m-0 {\n margin: 0 !important;\n}\n\n.mt-0,\n.my-0 {\n margin-top: 0 !important;\n}\n\n.mr-0,\n.mx-0 {\n margin-right: 0 !important;\n}\n\n.mb-0,\n.my-0 {\n margin-bottom: 0 !important;\n}\n\n.ml-0,\n.mx-0 {\n margin-left: 0 !important;\n}\n\n.m-1 {\n margin: 0.25rem !important;\n}\n\n.mt-1,\n.my-1 {\n margin-top: 0.25rem !important;\n}\n\n.mr-1,\n.mx-1 {\n margin-right: 0.25rem !important;\n}\n\n.mb-1,\n.my-1 {\n margin-bottom: 0.25rem !important;\n}\n\n.ml-1,\n.mx-1 {\n margin-left: 0.25rem !important;\n}\n\n.m-2 {\n margin: 0.5rem !important;\n}\n\n.mt-2,\n.my-2 {\n margin-top: 0.5rem !important;\n}\n\n.mr-2,\n.mx-2 {\n margin-right: 0.5rem !important;\n}\n\n.mb-2,\n.my-2 {\n margin-bottom: 0.5rem !important;\n}\n\n.ml-2,\n.mx-2 {\n margin-left: 0.5rem !important;\n}\n\n.m-3 {\n margin: 1rem !important;\n}\n\n.mt-3,\n.my-3 {\n margin-top: 1rem !important;\n}\n\n.mr-3,\n.mx-3 {\n margin-right: 1rem !important;\n}\n\n.mb-3,\n.my-3 {\n margin-bottom: 1rem !important;\n}\n\n.ml-3,\n.mx-3 {\n margin-left: 1rem !important;\n}\n\n.m-4 {\n margin: 1.5rem !important;\n}\n\n.mt-4,\n.my-4 {\n margin-top: 1.5rem !important;\n}\n\n.mr-4,\n.mx-4 {\n margin-right: 1.5rem !important;\n}\n\n.mb-4,\n.my-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.ml-4,\n.mx-4 {\n margin-left: 1.5rem !important;\n}\n\n.m-5 {\n margin: 3rem !important;\n}\n\n.mt-5,\n.my-5 {\n margin-top: 3rem !important;\n}\n\n.mr-5,\n.mx-5 {\n margin-right: 3rem !important;\n}\n\n.mb-5,\n.my-5 {\n margin-bottom: 3rem !important;\n}\n\n.ml-5,\n.mx-5 {\n margin-left: 3rem !important;\n}\n\n.p-0 {\n padding: 0 !important;\n}\n\n.pt-0,\n.py-0 {\n padding-top: 0 !important;\n}\n\n.pr-0,\n.px-0 {\n padding-right: 0 !important;\n}\n\n.pb-0,\n.py-0 {\n padding-bottom: 0 !important;\n}\n\n.pl-0,\n.px-0 {\n padding-left: 0 !important;\n}\n\n.p-1 {\n padding: 0.25rem !important;\n}\n\n.pt-1,\n.py-1 {\n padding-top: 0.25rem !important;\n}\n\n.pr-1,\n.px-1 {\n padding-right: 0.25rem !important;\n}\n\n.pb-1,\n.py-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.pl-1,\n.px-1 {\n padding-left: 0.25rem !important;\n}\n\n.p-2 {\n padding: 0.5rem !important;\n}\n\n.pt-2,\n.py-2 {\n padding-top: 0.5rem !important;\n}\n\n.pr-2,\n.px-2 {\n padding-right: 0.5rem !important;\n}\n\n.pb-2,\n.py-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.pl-2,\n.px-2 {\n padding-left: 0.5rem !important;\n}\n\n.p-3 {\n padding: 1rem !important;\n}\n\n.pt-3,\n.py-3 {\n padding-top: 1rem !important;\n}\n\n.pr-3,\n.px-3 {\n padding-right: 1rem !important;\n}\n\n.pb-3,\n.py-3 {\n padding-bottom: 1rem !important;\n}\n\n.pl-3,\n.px-3 {\n padding-left: 1rem !important;\n}\n\n.p-4 {\n padding: 1.5rem !important;\n}\n\n.pt-4,\n.py-4 {\n padding-top: 1.5rem !important;\n}\n\n.pr-4,\n.px-4 {\n padding-right: 1.5rem !important;\n}\n\n.pb-4,\n.py-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.pl-4,\n.px-4 {\n padding-left: 1.5rem !important;\n}\n\n.p-5 {\n padding: 3rem !important;\n}\n\n.pt-5,\n.py-5 {\n padding-top: 3rem !important;\n}\n\n.pr-5,\n.px-5 {\n padding-right: 3rem !important;\n}\n\n.pb-5,\n.py-5 {\n padding-bottom: 3rem !important;\n}\n\n.pl-5,\n.px-5 {\n padding-left: 3rem !important;\n}\n\n.m-auto {\n margin: auto !important;\n}\n\n.mt-auto,\n.my-auto {\n margin-top: auto !important;\n}\n\n.mr-auto,\n.mx-auto {\n margin-right: auto !important;\n}\n\n.mb-auto,\n.my-auto {\n margin-bottom: auto !important;\n}\n\n.ml-auto,\n.mx-auto {\n margin-left: auto !important;\n}\n\n@media (min-width: 576px) {\n .m-sm-0 {\n margin: 0 !important;\n }\n .mt-sm-0,\n .my-sm-0 {\n margin-top: 0 !important;\n }\n .mr-sm-0,\n .mx-sm-0 {\n margin-right: 0 !important;\n }\n .mb-sm-0,\n .my-sm-0 {\n margin-bottom: 0 !important;\n }\n .ml-sm-0,\n .mx-sm-0 {\n margin-left: 0 !important;\n }\n .m-sm-1 {\n margin: 0.25rem !important;\n }\n .mt-sm-1,\n .my-sm-1 {\n margin-top: 0.25rem !important;\n }\n .mr-sm-1,\n .mx-sm-1 {\n margin-right: 0.25rem !important;\n }\n .mb-sm-1,\n .my-sm-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-sm-1,\n .mx-sm-1 {\n margin-left: 0.25rem !important;\n }\n .m-sm-2 {\n margin: 0.5rem !important;\n }\n .mt-sm-2,\n .my-sm-2 {\n margin-top: 0.5rem !important;\n }\n .mr-sm-2,\n .mx-sm-2 {\n margin-right: 0.5rem !important;\n }\n .mb-sm-2,\n .my-sm-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-sm-2,\n .mx-sm-2 {\n margin-left: 0.5rem !important;\n }\n .m-sm-3 {\n margin: 1rem !important;\n }\n .mt-sm-3,\n .my-sm-3 {\n margin-top: 1rem !important;\n }\n .mr-sm-3,\n .mx-sm-3 {\n margin-right: 1rem !important;\n }\n .mb-sm-3,\n .my-sm-3 {\n margin-bottom: 1rem !important;\n }\n .ml-sm-3,\n .mx-sm-3 {\n margin-left: 1rem !important;\n }\n .m-sm-4 {\n margin: 1.5rem !important;\n }\n .mt-sm-4,\n .my-sm-4 {\n margin-top: 1.5rem !important;\n }\n .mr-sm-4,\n .mx-sm-4 {\n margin-right: 1.5rem !important;\n }\n .mb-sm-4,\n .my-sm-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-sm-4,\n .mx-sm-4 {\n margin-left: 1.5rem !important;\n }\n .m-sm-5 {\n margin: 3rem !important;\n }\n .mt-sm-5,\n .my-sm-5 {\n margin-top: 3rem !important;\n }\n .mr-sm-5,\n .mx-sm-5 {\n margin-right: 3rem !important;\n }\n .mb-sm-5,\n .my-sm-5 {\n margin-bottom: 3rem !important;\n }\n .ml-sm-5,\n .mx-sm-5 {\n margin-left: 3rem !important;\n }\n .p-sm-0 {\n padding: 0 !important;\n }\n .pt-sm-0,\n .py-sm-0 {\n padding-top: 0 !important;\n }\n .pr-sm-0,\n .px-sm-0 {\n padding-right: 0 !important;\n }\n .pb-sm-0,\n .py-sm-0 {\n padding-bottom: 0 !important;\n }\n .pl-sm-0,\n .px-sm-0 {\n padding-left: 0 !important;\n }\n .p-sm-1 {\n padding: 0.25rem !important;\n }\n .pt-sm-1,\n .py-sm-1 {\n padding-top: 0.25rem !important;\n }\n .pr-sm-1,\n .px-sm-1 {\n padding-right: 0.25rem !important;\n }\n .pb-sm-1,\n .py-sm-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-sm-1,\n .px-sm-1 {\n padding-left: 0.25rem !important;\n }\n .p-sm-2 {\n padding: 0.5rem !important;\n }\n .pt-sm-2,\n .py-sm-2 {\n padding-top: 0.5rem !important;\n }\n .pr-sm-2,\n .px-sm-2 {\n padding-right: 0.5rem !important;\n }\n .pb-sm-2,\n .py-sm-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-sm-2,\n .px-sm-2 {\n padding-left: 0.5rem !important;\n }\n .p-sm-3 {\n padding: 1rem !important;\n }\n .pt-sm-3,\n .py-sm-3 {\n padding-top: 1rem !important;\n }\n .pr-sm-3,\n .px-sm-3 {\n padding-right: 1rem !important;\n }\n .pb-sm-3,\n .py-sm-3 {\n padding-bottom: 1rem !important;\n }\n .pl-sm-3,\n .px-sm-3 {\n padding-left: 1rem !important;\n }\n .p-sm-4 {\n padding: 1.5rem !important;\n }\n .pt-sm-4,\n .py-sm-4 {\n padding-top: 1.5rem !important;\n }\n .pr-sm-4,\n .px-sm-4 {\n padding-right: 1.5rem !important;\n }\n .pb-sm-4,\n .py-sm-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-sm-4,\n .px-sm-4 {\n padding-left: 1.5rem !important;\n }\n .p-sm-5 {\n padding: 3rem !important;\n }\n .pt-sm-5,\n .py-sm-5 {\n padding-top: 3rem !important;\n }\n .pr-sm-5,\n .px-sm-5 {\n padding-right: 3rem !important;\n }\n .pb-sm-5,\n .py-sm-5 {\n padding-bottom: 3rem !important;\n }\n .pl-sm-5,\n .px-sm-5 {\n padding-left: 3rem !important;\n }\n .m-sm-auto {\n margin: auto !important;\n }\n .mt-sm-auto,\n .my-sm-auto {\n margin-top: auto !important;\n }\n .mr-sm-auto,\n .mx-sm-auto {\n margin-right: auto !important;\n }\n .mb-sm-auto,\n .my-sm-auto {\n margin-bottom: auto !important;\n }\n .ml-sm-auto,\n .mx-sm-auto {\n margin-left: auto !important;\n }\n}\n\n@media (min-width: 768px) {\n .m-md-0 {\n margin: 0 !important;\n }\n .mt-md-0,\n .my-md-0 {\n margin-top: 0 !important;\n }\n .mr-md-0,\n .mx-md-0 {\n margin-right: 0 !important;\n }\n .mb-md-0,\n .my-md-0 {\n margin-bottom: 0 !important;\n }\n .ml-md-0,\n .mx-md-0 {\n margin-left: 0 !important;\n }\n .m-md-1 {\n margin: 0.25rem !important;\n }\n .mt-md-1,\n .my-md-1 {\n margin-top: 0.25rem !important;\n }\n .mr-md-1,\n .mx-md-1 {\n margin-right: 0.25rem !important;\n }\n .mb-md-1,\n .my-md-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-md-1,\n .mx-md-1 {\n margin-left: 0.25rem !important;\n }\n .m-md-2 {\n margin: 0.5rem !important;\n }\n .mt-md-2,\n .my-md-2 {\n margin-top: 0.5rem !important;\n }\n .mr-md-2,\n .mx-md-2 {\n margin-right: 0.5rem !important;\n }\n .mb-md-2,\n .my-md-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-md-2,\n .mx-md-2 {\n margin-left: 0.5rem !important;\n }\n .m-md-3 {\n margin: 1rem !important;\n }\n .mt-md-3,\n .my-md-3 {\n margin-top: 1rem !important;\n }\n .mr-md-3,\n .mx-md-3 {\n margin-right: 1rem !important;\n }\n .mb-md-3,\n .my-md-3 {\n margin-bottom: 1rem !important;\n }\n .ml-md-3,\n .mx-md-3 {\n margin-left: 1rem !important;\n }\n .m-md-4 {\n margin: 1.5rem !important;\n }\n .mt-md-4,\n .my-md-4 {\n margin-top: 1.5rem !important;\n }\n .mr-md-4,\n .mx-md-4 {\n margin-right: 1.5rem !important;\n }\n .mb-md-4,\n .my-md-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-md-4,\n .mx-md-4 {\n margin-left: 1.5rem !important;\n }\n .m-md-5 {\n margin: 3rem !important;\n }\n .mt-md-5,\n .my-md-5 {\n margin-top: 3rem !important;\n }\n .mr-md-5,\n .mx-md-5 {\n margin-right: 3rem !important;\n }\n .mb-md-5,\n .my-md-5 {\n margin-bottom: 3rem !important;\n }\n .ml-md-5,\n .mx-md-5 {\n margin-left: 3rem !important;\n }\n .p-md-0 {\n padding: 0 !important;\n }\n .pt-md-0,\n .py-md-0 {\n padding-top: 0 !important;\n }\n .pr-md-0,\n .px-md-0 {\n padding-right: 0 !important;\n }\n .pb-md-0,\n .py-md-0 {\n padding-bottom: 0 !important;\n }\n .pl-md-0,\n .px-md-0 {\n padding-left: 0 !important;\n }\n .p-md-1 {\n padding: 0.25rem !important;\n }\n .pt-md-1,\n .py-md-1 {\n padding-top: 0.25rem !important;\n }\n .pr-md-1,\n .px-md-1 {\n padding-right: 0.25rem !important;\n }\n .pb-md-1,\n .py-md-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-md-1,\n .px-md-1 {\n padding-left: 0.25rem !important;\n }\n .p-md-2 {\n padding: 0.5rem !important;\n }\n .pt-md-2,\n .py-md-2 {\n padding-top: 0.5rem !important;\n }\n .pr-md-2,\n .px-md-2 {\n padding-right: 0.5rem !important;\n }\n .pb-md-2,\n .py-md-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-md-2,\n .px-md-2 {\n padding-left: 0.5rem !important;\n }\n .p-md-3 {\n padding: 1rem !important;\n }\n .pt-md-3,\n .py-md-3 {\n padding-top: 1rem !important;\n }\n .pr-md-3,\n .px-md-3 {\n padding-right: 1rem !important;\n }\n .pb-md-3,\n .py-md-3 {\n padding-bottom: 1rem !important;\n }\n .pl-md-3,\n .px-md-3 {\n padding-left: 1rem !important;\n }\n .p-md-4 {\n padding: 1.5rem !important;\n }\n .pt-md-4,\n .py-md-4 {\n padding-top: 1.5rem !important;\n }\n .pr-md-4,\n .px-md-4 {\n padding-right: 1.5rem !important;\n }\n .pb-md-4,\n .py-md-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-md-4,\n .px-md-4 {\n padding-left: 1.5rem !important;\n }\n .p-md-5 {\n padding: 3rem !important;\n }\n .pt-md-5,\n .py-md-5 {\n padding-top: 3rem !important;\n }\n .pr-md-5,\n .px-md-5 {\n padding-right: 3rem !important;\n }\n .pb-md-5,\n .py-md-5 {\n padding-bottom: 3rem !important;\n }\n .pl-md-5,\n .px-md-5 {\n padding-left: 3rem !important;\n }\n .m-md-auto {\n margin: auto !important;\n }\n .mt-md-auto,\n .my-md-auto {\n margin-top: auto !important;\n }\n .mr-md-auto,\n .mx-md-auto {\n margin-right: auto !important;\n }\n .mb-md-auto,\n .my-md-auto {\n margin-bottom: auto !important;\n }\n .ml-md-auto,\n .mx-md-auto {\n margin-left: auto !important;\n }\n}\n\n@media (min-width: 992px) {\n .m-lg-0 {\n margin: 0 !important;\n }\n .mt-lg-0,\n .my-lg-0 {\n margin-top: 0 !important;\n }\n .mr-lg-0,\n .mx-lg-0 {\n margin-right: 0 !important;\n }\n .mb-lg-0,\n .my-lg-0 {\n margin-bottom: 0 !important;\n }\n .ml-lg-0,\n .mx-lg-0 {\n margin-left: 0 !important;\n }\n .m-lg-1 {\n margin: 0.25rem !important;\n }\n .mt-lg-1,\n .my-lg-1 {\n margin-top: 0.25rem !important;\n }\n .mr-lg-1,\n .mx-lg-1 {\n margin-right: 0.25rem !important;\n }\n .mb-lg-1,\n .my-lg-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-lg-1,\n .mx-lg-1 {\n margin-left: 0.25rem !important;\n }\n .m-lg-2 {\n margin: 0.5rem !important;\n }\n .mt-lg-2,\n .my-lg-2 {\n margin-top: 0.5rem !important;\n }\n .mr-lg-2,\n .mx-lg-2 {\n margin-right: 0.5rem !important;\n }\n .mb-lg-2,\n .my-lg-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-lg-2,\n .mx-lg-2 {\n margin-left: 0.5rem !important;\n }\n .m-lg-3 {\n margin: 1rem !important;\n }\n .mt-lg-3,\n .my-lg-3 {\n margin-top: 1rem !important;\n }\n .mr-lg-3,\n .mx-lg-3 {\n margin-right: 1rem !important;\n }\n .mb-lg-3,\n .my-lg-3 {\n margin-bottom: 1rem !important;\n }\n .ml-lg-3,\n .mx-lg-3 {\n margin-left: 1rem !important;\n }\n .m-lg-4 {\n margin: 1.5rem !important;\n }\n .mt-lg-4,\n .my-lg-4 {\n margin-top: 1.5rem !important;\n }\n .mr-lg-4,\n .mx-lg-4 {\n margin-right: 1.5rem !important;\n }\n .mb-lg-4,\n .my-lg-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-lg-4,\n .mx-lg-4 {\n margin-left: 1.5rem !important;\n }\n .m-lg-5 {\n margin: 3rem !important;\n }\n .mt-lg-5,\n .my-lg-5 {\n margin-top: 3rem !important;\n }\n .mr-lg-5,\n .mx-lg-5 {\n margin-right: 3rem !important;\n }\n .mb-lg-5,\n .my-lg-5 {\n margin-bottom: 3rem !important;\n }\n .ml-lg-5,\n .mx-lg-5 {\n margin-left: 3rem !important;\n }\n .p-lg-0 {\n padding: 0 !important;\n }\n .pt-lg-0,\n .py-lg-0 {\n padding-top: 0 !important;\n }\n .pr-lg-0,\n .px-lg-0 {\n padding-right: 0 !important;\n }\n .pb-lg-0,\n .py-lg-0 {\n padding-bottom: 0 !important;\n }\n .pl-lg-0,\n .px-lg-0 {\n padding-left: 0 !important;\n }\n .p-lg-1 {\n padding: 0.25rem !important;\n }\n .pt-lg-1,\n .py-lg-1 {\n padding-top: 0.25rem !important;\n }\n .pr-lg-1,\n .px-lg-1 {\n padding-right: 0.25rem !important;\n }\n .pb-lg-1,\n .py-lg-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-lg-1,\n .px-lg-1 {\n padding-left: 0.25rem !important;\n }\n .p-lg-2 {\n padding: 0.5rem !important;\n }\n .pt-lg-2,\n .py-lg-2 {\n padding-top: 0.5rem !important;\n }\n .pr-lg-2,\n .px-lg-2 {\n padding-right: 0.5rem !important;\n }\n .pb-lg-2,\n .py-lg-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-lg-2,\n .px-lg-2 {\n padding-left: 0.5rem !important;\n }\n .p-lg-3 {\n padding: 1rem !important;\n }\n .pt-lg-3,\n .py-lg-3 {\n padding-top: 1rem !important;\n }\n .pr-lg-3,\n .px-lg-3 {\n padding-right: 1rem !important;\n }\n .pb-lg-3,\n .py-lg-3 {\n padding-bottom: 1rem !important;\n }\n .pl-lg-3,\n .px-lg-3 {\n padding-left: 1rem !important;\n }\n .p-lg-4 {\n padding: 1.5rem !important;\n }\n .pt-lg-4,\n .py-lg-4 {\n padding-top: 1.5rem !important;\n }\n .pr-lg-4,\n .px-lg-4 {\n padding-right: 1.5rem !important;\n }\n .pb-lg-4,\n .py-lg-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-lg-4,\n .px-lg-4 {\n padding-left: 1.5rem !important;\n }\n .p-lg-5 {\n padding: 3rem !important;\n }\n .pt-lg-5,\n .py-lg-5 {\n padding-top: 3rem !important;\n }\n .pr-lg-5,\n .px-lg-5 {\n padding-right: 3rem !important;\n }\n .pb-lg-5,\n .py-lg-5 {\n padding-bottom: 3rem !important;\n }\n .pl-lg-5,\n .px-lg-5 {\n padding-left: 3rem !important;\n }\n .m-lg-auto {\n margin: auto !important;\n }\n .mt-lg-auto,\n .my-lg-auto {\n margin-top: auto !important;\n }\n .mr-lg-auto,\n .mx-lg-auto {\n margin-right: auto !important;\n }\n .mb-lg-auto,\n .my-lg-auto {\n margin-bottom: auto !important;\n }\n .ml-lg-auto,\n .mx-lg-auto {\n margin-left: auto !important;\n }\n}\n\n@media (min-width: 1200px) {\n .m-xl-0 {\n margin: 0 !important;\n }\n .mt-xl-0,\n .my-xl-0 {\n margin-top: 0 !important;\n }\n .mr-xl-0,\n .mx-xl-0 {\n margin-right: 0 !important;\n }\n .mb-xl-0,\n .my-xl-0 {\n margin-bottom: 0 !important;\n }\n .ml-xl-0,\n .mx-xl-0 {\n margin-left: 0 !important;\n }\n .m-xl-1 {\n margin: 0.25rem !important;\n }\n .mt-xl-1,\n .my-xl-1 {\n margin-top: 0.25rem !important;\n }\n .mr-xl-1,\n .mx-xl-1 {\n margin-right: 0.25rem !important;\n }\n .mb-xl-1,\n .my-xl-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-xl-1,\n .mx-xl-1 {\n margin-left: 0.25rem !important;\n }\n .m-xl-2 {\n margin: 0.5rem !important;\n }\n .mt-xl-2,\n .my-xl-2 {\n margin-top: 0.5rem !important;\n }\n .mr-xl-2,\n .mx-xl-2 {\n margin-right: 0.5rem !important;\n }\n .mb-xl-2,\n .my-xl-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-xl-2,\n .mx-xl-2 {\n margin-left: 0.5rem !important;\n }\n .m-xl-3 {\n margin: 1rem !important;\n }\n .mt-xl-3,\n .my-xl-3 {\n margin-top: 1rem !important;\n }\n .mr-xl-3,\n .mx-xl-3 {\n margin-right: 1rem !important;\n }\n .mb-xl-3,\n .my-xl-3 {\n margin-bottom: 1rem !important;\n }\n .ml-xl-3,\n .mx-xl-3 {\n margin-left: 1rem !important;\n }\n .m-xl-4 {\n margin: 1.5rem !important;\n }\n .mt-xl-4,\n .my-xl-4 {\n margin-top: 1.5rem !important;\n }\n .mr-xl-4,\n .mx-xl-4 {\n margin-right: 1.5rem !important;\n }\n .mb-xl-4,\n .my-xl-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-xl-4,\n .mx-xl-4 {\n margin-left: 1.5rem !important;\n }\n .m-xl-5 {\n margin: 3rem !important;\n }\n .mt-xl-5,\n .my-xl-5 {\n margin-top: 3rem !important;\n }\n .mr-xl-5,\n .mx-xl-5 {\n margin-right: 3rem !important;\n }\n .mb-xl-5,\n .my-xl-5 {\n margin-bottom: 3rem !important;\n }\n .ml-xl-5,\n .mx-xl-5 {\n margin-left: 3rem !important;\n }\n .p-xl-0 {\n padding: 0 !important;\n }\n .pt-xl-0,\n .py-xl-0 {\n padding-top: 0 !important;\n }\n .pr-xl-0,\n .px-xl-0 {\n padding-right: 0 !important;\n }\n .pb-xl-0,\n .py-xl-0 {\n padding-bottom: 0 !important;\n }\n .pl-xl-0,\n .px-xl-0 {\n padding-left: 0 !important;\n }\n .p-xl-1 {\n padding: 0.25rem !important;\n }\n .pt-xl-1,\n .py-xl-1 {\n padding-top: 0.25rem !important;\n }\n .pr-xl-1,\n .px-xl-1 {\n padding-right: 0.25rem !important;\n }\n .pb-xl-1,\n .py-xl-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-xl-1,\n .px-xl-1 {\n padding-left: 0.25rem !important;\n }\n .p-xl-2 {\n padding: 0.5rem !important;\n }\n .pt-xl-2,\n .py-xl-2 {\n padding-top: 0.5rem !important;\n }\n .pr-xl-2,\n .px-xl-2 {\n padding-right: 0.5rem !important;\n }\n .pb-xl-2,\n .py-xl-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-xl-2,\n .px-xl-2 {\n padding-left: 0.5rem !important;\n }\n .p-xl-3 {\n padding: 1rem !important;\n }\n .pt-xl-3,\n .py-xl-3 {\n padding-top: 1rem !important;\n }\n .pr-xl-3,\n .px-xl-3 {\n padding-right: 1rem !important;\n }\n .pb-xl-3,\n .py-xl-3 {\n padding-bottom: 1rem !important;\n }\n .pl-xl-3,\n .px-xl-3 {\n padding-left: 1rem !important;\n }\n .p-xl-4 {\n padding: 1.5rem !important;\n }\n .pt-xl-4,\n .py-xl-4 {\n padding-top: 1.5rem !important;\n }\n .pr-xl-4,\n .px-xl-4 {\n padding-right: 1.5rem !important;\n }\n .pb-xl-4,\n .py-xl-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-xl-4,\n .px-xl-4 {\n padding-left: 1.5rem !important;\n }\n .p-xl-5 {\n padding: 3rem !important;\n }\n .pt-xl-5,\n .py-xl-5 {\n padding-top: 3rem !important;\n }\n .pr-xl-5,\n .px-xl-5 {\n padding-right: 3rem !important;\n }\n .pb-xl-5,\n .py-xl-5 {\n padding-bottom: 3rem !important;\n }\n .pl-xl-5,\n .px-xl-5 {\n padding-left: 3rem !important;\n }\n .m-xl-auto {\n margin: auto !important;\n }\n .mt-xl-auto,\n .my-xl-auto {\n margin-top: auto !important;\n }\n .mr-xl-auto,\n .mx-xl-auto {\n margin-right: auto !important;\n }\n .mb-xl-auto,\n .my-xl-auto {\n margin-bottom: auto !important;\n }\n .ml-xl-auto,\n .mx-xl-auto {\n margin-left: auto !important;\n }\n}\n\n.text-justify {\n text-align: justify !important;\n}\n\n.text-nowrap {\n white-space: nowrap !important;\n}\n\n.text-truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.text-left {\n text-align: left !important;\n}\n\n.text-right {\n text-align: right !important;\n}\n\n.text-center {\n text-align: center !important;\n}\n\n@media (min-width: 576px) {\n .text-sm-left {\n text-align: left !important;\n }\n .text-sm-right {\n text-align: right !important;\n }\n .text-sm-center {\n text-align: center !important;\n }\n}\n\n@media (min-width: 768px) {\n .text-md-left {\n text-align: left !important;\n }\n .text-md-right {\n text-align: right !important;\n }\n .text-md-center {\n text-align: center !important;\n }\n}\n\n@media (min-width: 992px) {\n .text-lg-left {\n text-align: left !important;\n }\n .text-lg-right {\n text-align: right !important;\n }\n .text-lg-center {\n text-align: center !important;\n }\n}\n\n@media (min-width: 1200px) {\n .text-xl-left {\n text-align: left !important;\n }\n .text-xl-right {\n text-align: right !important;\n }\n .text-xl-center {\n text-align: center !important;\n }\n}\n\n.text-lowercase {\n text-transform: lowercase !important;\n}\n\n.text-uppercase {\n text-transform: uppercase !important;\n}\n\n.text-capitalize {\n text-transform: capitalize !important;\n}\n\n.font-weight-light {\n font-weight: 300 !important;\n}\n\n.font-weight-normal {\n font-weight: 400 !important;\n}\n\n.font-weight-bold {\n font-weight: 700 !important;\n}\n\n.font-italic {\n font-style: italic !important;\n}\n\n.text-white {\n color: #fff !important;\n}\n\n.text-primary {\n color: #007bff !important;\n}\n\na.text-primary:focus, a.text-primary:hover {\n color: #0062cc !important;\n}\n\n.text-secondary {\n color: #868e96 !important;\n}\n\na.text-secondary:focus, a.text-secondary:hover {\n color: #6c757d !important;\n}\n\n.text-success {\n color: #28a745 !important;\n}\n\na.text-success:focus, a.text-success:hover {\n color: #1e7e34 !important;\n}\n\n.text-info {\n color: #17a2b8 !important;\n}\n\na.text-info:focus, a.text-info:hover {\n color: #117a8b !important;\n}\n\n.text-warning {\n color: #ffc107 !important;\n}\n\na.text-warning:focus, a.text-warning:hover {\n color: #d39e00 !important;\n}\n\n.text-danger {\n color: #dc3545 !important;\n}\n\na.text-danger:focus, a.text-danger:hover {\n color: #bd2130 !important;\n}\n\n.text-light {\n color: #f8f9fa !important;\n}\n\na.text-light:focus, a.text-light:hover {\n color: #dae0e5 !important;\n}\n\n.text-dark {\n color: #343a40 !important;\n}\n\na.text-dark:focus, a.text-dark:hover {\n color: #1d2124 !important;\n}\n\n.text-muted {\n color: #868e96 !important;\n}\n\n.text-hide {\n font: 0/0 a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n\n.visible {\n visibility: visible !important;\n}\n\n.invisible {\n visibility: hidden !important;\n}\n\n/*# sourceMappingURL=bootstrap.css.map */","// stylelint-disable at-rule-no-vendor-prefix, declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix\n\n// Reboot\n//\n// Normalization of HTML elements, manually forked from Normalize.css to remove\n// styles targeting irrelevant browsers while applying new styles.\n//\n// Normalize is licensed MIT. https://github.com/necolas/normalize.css\n\n\n// Document\n//\n// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.\n// 2. Change the default font family in all browsers.\n// 3. Correct the line height in all browsers.\n// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.\n// 5. Setting @viewport causes scrollbars to overlap content in IE11 and Edge, so\n// we force a non-overlapping, non-auto-hiding scrollbar to counteract.\n// 6. Change the default tap highlight to be completely transparent in iOS.\n\n*,\n*::before,\n*::after {\n box-sizing: border-box; // 1\n}\n\nhtml {\n font-family: sans-serif; // 2\n line-height: 1.15; // 3\n -webkit-text-size-adjust: 100%; // 4\n -ms-text-size-adjust: 100%; // 4\n -ms-overflow-style: scrollbar; // 5\n -webkit-tap-highlight-color: rgba(0,0,0,0); // 6\n}\n\n// IE10+ doesn't honor `` in some cases.\n@at-root {\n @-ms-viewport {\n width: device-width;\n }\n}\n\n// stylelint-disable selector-list-comma-newline-after\n// Shim for \"new\" HTML5 structural elements to display correctly (IE10, older browsers)\narticle, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {\n display: block;\n}\n// stylelint-enable selector-list-comma-newline-after\n\n// Body\n//\n// 1. Remove the margin in all browsers.\n// 2. As a best practice, apply a default `background-color`.\n// 3. Set an explicit initial text-align value so that we can later use the\n// the `inherit` value on things like `` elements.\n\nbody {\n margin: 0; // 1\n font-family: $font-family-base;\n font-size: $font-size-base;\n font-weight: $font-weight-base;\n line-height: $line-height-base;\n color: $body-color;\n text-align: left; // 3\n background-color: $body-bg; // 2\n}\n\n// Suppress the focus outline on elements that cannot be accessed via keyboard.\n// This prevents an unwanted focus outline from appearing around elements that\n// might still respond to pointer events.\n//\n// Credit: https://github.com/suitcss/base\n[tabindex=\"-1\"]:focus {\n outline: none !important;\n}\n\n\n// Content grouping\n//\n// 1. Add the correct box sizing in Firefox.\n// 2. Show the overflow in Edge and IE.\n\nhr {\n box-sizing: content-box; // 1\n height: 0; // 1\n overflow: visible; // 2\n}\n\n\n//\n// Typography\n//\n\n// Remove top margins from headings\n//\n// By default, `

    `-`

    ` all receive top and bottom margins. We nuke the top\n// margin for easier control within type scales as it avoids margin collapsing.\n// stylelint-disable selector-list-comma-newline-after\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: $headings-margin-bottom;\n}\n// stylelint-enable selector-list-comma-newline-after\n\n// Reset margins on paragraphs\n//\n// Similarly, the top margin on `

    `s get reset. However, we also reset the\n// bottom margin to use `rem` units instead of `em`.\np {\n margin-top: 0;\n margin-bottom: $paragraph-margin-bottom;\n}\n\n// Abbreviations\n//\n// 1. Remove the bottom border in Firefox 39-.\n// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n// 3. Add explicit cursor to indicate changed behavior.\n// 4. Duplicate behavior to the data-* attribute for our tooltip plugin\n\nabbr[title],\nabbr[data-original-title] { // 4\n text-decoration: underline; // 2\n text-decoration: underline dotted; // 2\n cursor: help; // 3\n border-bottom: 0; // 1\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: $dt-font-weight;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0; // Undo browser default\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\ndfn {\n font-style: italic; // Add the correct font style in Android 4.3-\n}\n\n// stylelint-disable font-weight-notation\nb,\nstrong {\n font-weight: bolder; // Add the correct font weight in Chrome, Edge, and Safari\n}\n// stylelint-enable font-weight-notation\n\nsmall {\n font-size: 80%; // Add the correct font size in all browsers\n}\n\n//\n// Prevent `sub` and `sup` elements from affecting the line height in\n// all browsers.\n//\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub { bottom: -.25em; }\nsup { top: -.5em; }\n\n\n//\n// Links\n//\n\na {\n color: $link-color;\n text-decoration: $link-decoration;\n background-color: transparent; // Remove the gray background on active links in IE 10.\n -webkit-text-decoration-skip: objects; // Remove gaps in links underline in iOS 8+ and Safari 8+.\n\n @include hover {\n color: $link-hover-color;\n text-decoration: $link-hover-decoration;\n }\n}\n\n// And undo these styles for placeholder links/named anchors (without href)\n// which have not been made explicitly keyboard-focusable (without tabindex).\n// It would be more straightforward to just use a[href] in previous block, but that\n// causes specificity issues in many other styles that are too complex to fix.\n// See https://github.com/twbs/bootstrap/issues/19402\n\na:not([href]):not([tabindex]) {\n color: inherit;\n text-decoration: none;\n\n @include hover-focus {\n color: inherit;\n text-decoration: none;\n }\n\n &:focus {\n outline: 0;\n }\n}\n\n\n//\n// Code\n//\n\n// stylelint-disable font-family-no-duplicate-names\npre,\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; // Correct the inheritance and scaling of font size in all browsers.\n font-size: 1em; // Correct the odd `em` font sizing in all browsers.\n}\n// stylelint-enable font-family-no-duplicate-names\n\npre {\n // Remove browser default top margin\n margin-top: 0;\n // Reset browser default of `1em` to use `rem`s\n margin-bottom: 1rem;\n // Don't allow content to break outside\n overflow: auto;\n // We have @viewport set which causes scrollbars to overlap content in IE11 and Edge, so\n // we force a non-overlapping, non-auto-hiding scrollbar to counteract.\n -ms-overflow-style: scrollbar;\n}\n\n\n//\n// Figures\n//\n\nfigure {\n // Apply a consistent margin strategy (matches our type styles).\n margin: 0 0 1rem;\n}\n\n\n//\n// Images and content\n//\n\nimg {\n vertical-align: middle;\n border-style: none; // Remove the border on images inside links in IE 10-.\n}\n\nsvg:not(:root) {\n overflow: hidden; // Hide the overflow in IE\n}\n\n\n// Avoid 300ms click delay on touch devices that support the `touch-action` CSS property.\n//\n// In particular, unlike most other browsers, IE11+Edge on Windows 10 on touch devices and IE Mobile 10-11\n// DON'T remove the click delay when `` is present.\n// However, they DO support removing the click delay via `touch-action: manipulation`.\n// See:\n// * https://getbootstrap.com/docs/4.0/content/reboot/#click-delay-optimization-for-touch\n// * https://caniuse.com/#feat=css-touch-action\n// * https://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay\n\na,\narea,\nbutton,\n[role=\"button\"],\ninput:not([type=\"range\"]),\nlabel,\nselect,\nsummary,\ntextarea {\n touch-action: manipulation;\n}\n\n\n//\n// Tables\n//\n\ntable {\n border-collapse: collapse; // Prevent double borders\n}\n\ncaption {\n padding-top: $table-cell-padding;\n padding-bottom: $table-cell-padding;\n color: $text-muted;\n text-align: left;\n caption-side: bottom;\n}\n\nth {\n // Matches default `` alignment by inheriting from the ``, or the\n // closest parent with a set `text-align`.\n text-align: inherit;\n}\n\n\n//\n// Forms\n//\n\nlabel {\n // Allow labels to use `margin` for spacing.\n display: inline-block;\n margin-bottom: .5rem;\n}\n\n// Remove the default `border-radius` that macOS Chrome adds.\n//\n// Details at https://github.com/twbs/bootstrap/issues/24093\nbutton {\n border-radius: 0;\n}\n\n// Work around a Firefox/IE bug where the transparent `button` background\n// results in a loss of the default `button` focus styles.\n//\n// Credit: https://github.com/suitcss/base/\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0; // Remove the margin in Firefox and Safari\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible; // Show the overflow in Edge\n}\n\nbutton,\nselect {\n text-transform: none; // Remove the inheritance of text transform in Firefox\n}\n\n// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`\n// controls in Android 4.\n// 2. Correct the inability to style clickable types in iOS and Safari.\nbutton,\nhtml [type=\"button\"], // 1\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button; // 2\n}\n\n// Remove inner border and padding from Firefox, but don't restore the outline like Normalize.\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n box-sizing: border-box; // 1. Add the correct box sizing in IE 10-\n padding: 0; // 2. Remove the padding in IE 10-\n}\n\n\ninput[type=\"date\"],\ninput[type=\"time\"],\ninput[type=\"datetime-local\"],\ninput[type=\"month\"] {\n // Remove the default appearance of temporal inputs to avoid a Mobile Safari\n // bug where setting a custom line-height prevents text from being vertically\n // centered within the input.\n // See https://bugs.webkit.org/show_bug.cgi?id=139848\n // and https://github.com/twbs/bootstrap/issues/11266\n -webkit-appearance: listbox;\n}\n\ntextarea {\n overflow: auto; // Remove the default vertical scrollbar in IE.\n // Textareas should really only resize vertically so they don't break their (horizontal) containers.\n resize: vertical;\n}\n\nfieldset {\n // Browsers set a default `min-width: min-content;` on fieldsets,\n // unlike e.g. `

    `s, which have `min-width: 0;` by default.\n // So we reset that to ensure fieldsets behave more like a standard block element.\n // See https://github.com/twbs/bootstrap/issues/12359\n // and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements\n min-width: 0;\n // Reset the default outline behavior of fieldsets so they don't affect page layout.\n padding: 0;\n margin: 0;\n border: 0;\n}\n\n// 1. Correct the text wrapping in Edge and IE.\n// 2. Correct the color inheritance from `fieldset` elements in IE.\nlegend {\n display: block;\n width: 100%;\n max-width: 100%; // 1\n padding: 0;\n margin-bottom: .5rem;\n font-size: 1.5rem;\n line-height: inherit;\n color: inherit; // 2\n white-space: normal; // 1\n}\n\nprogress {\n vertical-align: baseline; // Add the correct vertical alignment in Chrome, Firefox, and Opera.\n}\n\n// Correct the cursor style of increment and decrement buttons in Chrome.\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type=\"search\"] {\n // This overrides the extra rounded corners on search inputs in iOS so that our\n // `.form-control` class can properly style them. Note that this cannot simply\n // be added to `.form-control` as it's not specific enough. For details, see\n // https://github.com/twbs/bootstrap/issues/11586.\n outline-offset: -2px; // 2. Correct the outline style in Safari.\n -webkit-appearance: none;\n}\n\n//\n// Remove the inner padding and cancel buttons in Chrome and Safari on macOS.\n//\n\n[type=\"search\"]::-webkit-search-cancel-button,\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n//\n// 1. Correct the inability to style clickable types in iOS and Safari.\n// 2. Change font properties to `inherit` in Safari.\n//\n\n::-webkit-file-upload-button {\n font: inherit; // 2\n -webkit-appearance: button; // 1\n}\n\n//\n// Correct element displays\n//\n\noutput {\n display: inline-block;\n}\n\nsummary {\n display: list-item; // Add the correct display in all browsers\n}\n\ntemplate {\n display: none; // Add the correct display in IE\n}\n\n// Always hide an element with the `hidden` HTML attribute (from PureCSS).\n// Needed for proper display in IE 10-.\n[hidden] {\n display: none !important;\n}\n","// Variables\n//\n// Variables should follow the `$component-state-property-size` formula for\n// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.\n\n\n//\n// Color system\n//\n\n// stylelint-disable\n$white: #fff !default;\n$gray-100: #f8f9fa !default;\n$gray-200: #e9ecef !default;\n$gray-300: #dee2e6 !default;\n$gray-400: #ced4da !default;\n$gray-500: #adb5bd !default;\n$gray-600: #868e96 !default;\n$gray-700: #495057 !default;\n$gray-800: #343a40 !default;\n$gray-900: #212529 !default;\n$black: #000 !default;\n\n$grays: () !default;\n$grays: map-merge((\n \"100\": $gray-100,\n \"200\": $gray-200,\n \"300\": $gray-300,\n \"400\": $gray-400,\n \"500\": $gray-500,\n \"600\": $gray-600,\n \"700\": $gray-700,\n \"800\": $gray-800,\n \"900\": $gray-900\n), $grays);\n\n$blue: #007bff !default;\n$indigo: #6610f2 !default;\n$purple: #6f42c1 !default;\n$pink: #e83e8c !default;\n$red: #dc3545 !default;\n$orange: #fd7e14 !default;\n$yellow: #ffc107 !default;\n$green: #28a745 !default;\n$teal: #20c997 !default;\n$cyan: #17a2b8 !default;\n\n$colors: () !default;\n$colors: map-merge((\n \"blue\": $blue,\n \"indigo\": $indigo,\n \"purple\": $purple,\n \"pink\": $pink,\n \"red\": $red,\n \"orange\": $orange,\n \"yellow\": $yellow,\n \"green\": $green,\n \"teal\": $teal,\n \"cyan\": $cyan,\n \"white\": $white,\n \"gray\": $gray-600,\n \"gray-dark\": $gray-800\n), $colors);\n\n$primary: $blue !default;\n$secondary: $gray-600 !default;\n$success: $green !default;\n$info: $cyan !default;\n$warning: $yellow !default;\n$danger: $red !default;\n$light: $gray-100 !default;\n$dark: $gray-800 !default;\n\n$theme-colors: () !default;\n$theme-colors: map-merge((\n \"primary\": $primary,\n \"secondary\": $secondary,\n \"success\": $success,\n \"info\": $info,\n \"warning\": $warning,\n \"danger\": $danger,\n \"light\": $light,\n \"dark\": $dark\n), $theme-colors);\n// stylelint-enable\n\n// Set a specific jump point for requesting color jumps\n$theme-color-interval: 8% !default;\n\n\n// Options\n//\n// Quickly modify global styling by enabling or disabling optional features.\n\n$enable-caret: true !default;\n$enable-rounded: true !default;\n$enable-shadows: false !default;\n$enable-gradients: false !default;\n$enable-transitions: true !default;\n$enable-hover-media-query: false !default;\n$enable-grid-classes: true !default;\n$enable-print-styles: true !default;\n\n\n// Spacing\n//\n// Control the default styling of most Bootstrap elements by modifying these\n// variables. Mostly focused on spacing.\n// You can add more entries to the $spacers map, should you need more variation.\n\n$spacer: 1rem !default;\n$spacers: (\n 0: 0,\n 1: ($spacer * .25),\n 2: ($spacer * .5),\n 3: $spacer,\n 4: ($spacer * 1.5),\n 5: ($spacer * 3)\n) !default;\n\n// This variable affects the `.h-*` and `.w-*` classes.\n$sizes: (\n 25: 25%,\n 50: 50%,\n 75: 75%,\n 100: 100%\n) !default;\n\n// Body\n//\n// Settings for the `` element.\n\n$body-bg: $white !default;\n$body-color: $gray-900 !default;\n\n// Links\n//\n// Style anchor elements.\n\n$link-color: theme-color(\"primary\") !default;\n$link-decoration: none !default;\n$link-hover-color: darken($link-color, 15%) !default;\n$link-hover-decoration: underline !default;\n\n// Paragraphs\n//\n// Style p element.\n\n$paragraph-margin-bottom: 1rem !default;\n\n\n// Grid breakpoints\n//\n// Define the minimum dimensions at which your layout will change,\n// adapting to different screen sizes, for use in media queries.\n\n$grid-breakpoints: (\n xs: 0,\n sm: 576px,\n md: 768px,\n lg: 992px,\n xl: 1200px\n) !default;\n\n@include _assert-ascending($grid-breakpoints, \"$grid-breakpoints\");\n@include _assert-starts-at-zero($grid-breakpoints);\n\n\n// Grid containers\n//\n// Define the maximum width of `.container` for different screen sizes.\n\n$container-max-widths: (\n sm: 540px,\n md: 720px,\n lg: 960px,\n xl: 1140px\n) !default;\n\n@include _assert-ascending($container-max-widths, \"$container-max-widths\");\n\n\n// Grid columns\n//\n// Set the number of columns and specify the width of the gutters.\n\n$grid-columns: 12 !default;\n$grid-gutter-width: 30px !default;\n\n// Components\n//\n// Define common padding and border radius sizes and more.\n\n$line-height-lg: 1.5 !default;\n$line-height-sm: 1.5 !default;\n\n$border-width: 1px !default;\n$border-color: $gray-200 !default;\n\n$border-radius: .25rem !default;\n$border-radius-lg: .3rem !default;\n$border-radius-sm: .2rem !default;\n\n$component-active-color: $white !default;\n$component-active-bg: theme-color(\"primary\") !default;\n\n$caret-width: .3em !default;\n\n$transition-base: all .2s ease-in-out !default;\n$transition-fade: opacity .15s linear !default;\n$transition-collapse: height .35s ease !default;\n\n\n// Fonts\n//\n// Font, line-height, and color for body text, headings, and more.\n\n// stylelint-disable value-keyword-case\n$font-family-sans-serif: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !default;\n$font-family-monospace: \"SFMono-Regular\", Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace !default;\n$font-family-base: $font-family-sans-serif !default;\n// stylelint-enable value-keyword-case\n\n$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`\n$font-size-lg: ($font-size-base * 1.25) !default;\n$font-size-sm: ($font-size-base * .875) !default;\n\n$font-weight-light: 300 !default;\n$font-weight-normal: 400 !default;\n$font-weight-bold: 700 !default;\n\n$font-weight-base: $font-weight-normal !default;\n$line-height-base: 1.5 !default;\n\n$h1-font-size: $font-size-base * 2.5 !default;\n$h2-font-size: $font-size-base * 2 !default;\n$h3-font-size: $font-size-base * 1.75 !default;\n$h4-font-size: $font-size-base * 1.5 !default;\n$h5-font-size: $font-size-base * 1.25 !default;\n$h6-font-size: $font-size-base !default;\n\n$headings-margin-bottom: ($spacer / 2) !default;\n$headings-font-family: inherit !default;\n$headings-font-weight: 500 !default;\n$headings-line-height: 1.2 !default;\n$headings-color: inherit !default;\n\n$display1-size: 6rem !default;\n$display2-size: 5.5rem !default;\n$display3-size: 4.5rem !default;\n$display4-size: 3.5rem !default;\n\n$display1-weight: 300 !default;\n$display2-weight: 300 !default;\n$display3-weight: 300 !default;\n$display4-weight: 300 !default;\n$display-line-height: $headings-line-height !default;\n\n$lead-font-size: ($font-size-base * 1.25) !default;\n$lead-font-weight: 300 !default;\n\n$small-font-size: 80% !default;\n\n$text-muted: $gray-600 !default;\n\n$blockquote-small-color: $gray-600 !default;\n$blockquote-font-size: ($font-size-base * 1.25) !default;\n\n$hr-border-color: rgba($black,.1) !default;\n$hr-border-width: $border-width !default;\n\n$mark-padding: .2em !default;\n\n$dt-font-weight: $font-weight-bold !default;\n\n$kbd-box-shadow: inset 0 -.1rem 0 rgba($black,.25) !default;\n$nested-kbd-font-weight: $font-weight-bold !default;\n\n$list-inline-padding: 5px !default;\n\n$mark-bg: #fcf8e3 !default;\n\n\n// Tables\n//\n// Customizes the `.table` component with basic values, each used across all table variations.\n\n$table-cell-padding: .75rem !default;\n$table-cell-padding-sm: .3rem !default;\n\n$table-bg: transparent !default;\n$table-accent-bg: rgba($black,.05) !default;\n$table-hover-bg: rgba($black,.075) !default;\n$table-active-bg: $table-hover-bg !default;\n\n$table-border-width: $border-width !default;\n$table-border-color: $gray-200 !default;\n\n$table-head-bg: $gray-200 !default;\n$table-head-color: $gray-700 !default;\n\n$table-dark-bg: $gray-900 !default;\n$table-dark-accent-bg: rgba($white, .05) !default;\n$table-dark-hover-bg: rgba($white, .075) !default;\n$table-dark-border-color: lighten($gray-900, 7.5%) !default;\n$table-dark-color: $body-bg !default;\n\n\n// Buttons\n//\n// For each of Bootstrap's buttons, define text, background and border color.\n\n$input-btn-padding-y: .375rem !default;\n$input-btn-padding-x: .75rem !default;\n$input-btn-line-height: $line-height-base !default;\n\n$input-btn-focus-width: .2rem !default;\n$input-btn-focus-color: rgba(theme-color(\"primary\"), .25) !default;\n$input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color !default;\n\n$input-btn-padding-y-sm: .25rem !default;\n$input-btn-padding-x-sm: .5rem !default;\n$input-btn-line-height-sm: $line-height-sm !default;\n\n$input-btn-padding-y-lg: .5rem !default;\n$input-btn-padding-x-lg: 1rem !default;\n$input-btn-line-height-lg: $line-height-lg !default;\n\n$btn-font-weight: $font-weight-normal !default;\n$btn-box-shadow: inset 0 1px 0 rgba($white,.15), 0 1px 1px rgba($black,.075) !default;\n$btn-active-box-shadow: inset 0 3px 5px rgba($black,.125) !default;\n\n$btn-link-disabled-color: $gray-600 !default;\n\n$btn-block-spacing-y: .5rem !default;\n\n// Allows for customizing button radius independently from global border radius\n$btn-border-radius: $border-radius !default;\n$btn-border-radius-lg: $border-radius-lg !default;\n$btn-border-radius-sm: $border-radius-sm !default;\n\n$btn-transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;\n\n\n// Forms\n\n$input-bg: $white !default;\n$input-disabled-bg: $gray-200 !default;\n\n$input-color: $gray-700 !default;\n$input-border-color: $gray-400 !default;\n$input-btn-border-width: $border-width !default; // For form controls and buttons\n$input-box-shadow: inset 0 1px 1px rgba($black,.075) !default;\n\n$input-border-radius: $border-radius !default;\n$input-border-radius-lg: $border-radius-lg !default;\n$input-border-radius-sm: $border-radius-sm !default;\n\n$input-focus-bg: $input-bg !default;\n$input-focus-border-color: lighten(theme-color(\"primary\"), 25%) !default;\n$input-focus-color: $input-color !default;\n\n$input-placeholder-color: $gray-600 !default;\n\n$input-height-border: $input-btn-border-width * 2 !default;\n\n$input-height-inner: ($font-size-base * $input-btn-line-height) + ($input-btn-padding-y * 2) !default;\n$input-height: calc(#{$input-height-inner} + #{$input-height-border}) !default;\n\n$input-height-inner-sm: ($font-size-sm * $input-btn-line-height-sm) + ($input-btn-padding-y-sm * 2) !default;\n$input-height-sm: calc(#{$input-height-inner-sm} + #{$input-height-border}) !default;\n\n$input-height-inner-lg: ($font-size-lg * $input-btn-line-height-lg) + ($input-btn-padding-y-lg * 2) !default;\n$input-height-lg: calc(#{$input-height-inner-lg} + #{$input-height-border}) !default;\n\n$input-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s !default;\n\n$form-text-margin-top: .25rem !default;\n\n$form-check-margin-bottom: .5rem !default;\n$form-check-input-gutter: 1.25rem !default;\n$form-check-input-margin-y: .25rem !default;\n$form-check-input-margin-x: .25rem !default;\n\n$form-check-inline-margin-x: .75rem !default;\n\n$form-group-margin-bottom: 1rem !default;\n\n$input-group-addon-color: $input-color !default;\n$input-group-addon-bg: $gray-200 !default;\n$input-group-addon-border-color: $input-border-color !default;\n\n$custom-control-gutter: 1.5rem !default;\n$custom-control-spacer-y: .25rem !default;\n$custom-control-spacer-x: 1rem !default;\n\n$custom-control-indicator-size: 1rem !default;\n$custom-control-indicator-bg: #ddd !default;\n$custom-control-indicator-bg-size: 50% 50% !default;\n$custom-control-indicator-box-shadow: inset 0 .25rem .25rem rgba($black,.1) !default;\n\n$custom-control-indicator-disabled-bg: $gray-200 !default;\n$custom-control-description-disabled-color: $gray-600 !default;\n\n$custom-control-indicator-checked-color: $white !default;\n$custom-control-indicator-checked-bg: theme-color(\"primary\") !default;\n$custom-control-indicator-checked-box-shadow: none !default;\n\n$custom-control-indicator-focus-box-shadow: 0 0 0 1px $body-bg, $input-btn-focus-box-shadow !default;\n\n$custom-control-indicator-active-color: $white !default;\n$custom-control-indicator-active-bg: lighten(theme-color(\"primary\"), 35%) !default;\n$custom-control-indicator-active-box-shadow: none !default;\n\n$custom-checkbox-indicator-border-radius: $border-radius !default;\n$custom-checkbox-indicator-icon-checked: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#{$custom-control-indicator-checked-color}' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n\n$custom-checkbox-indicator-indeterminate-bg: theme-color(\"primary\") !default;\n$custom-checkbox-indicator-indeterminate-color: $custom-control-indicator-checked-color !default;\n$custom-checkbox-indicator-icon-indeterminate: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='#{$custom-checkbox-indicator-indeterminate-color}' d='M0 2h4'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$custom-checkbox-indicator-indeterminate-box-shadow: none !default;\n\n$custom-radio-indicator-border-radius: 50% !default;\n$custom-radio-indicator-icon-checked: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='#{$custom-control-indicator-checked-color}'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n\n$custom-select-padding-y: .375rem !default;\n$custom-select-padding-x: .75rem !default;\n$custom-select-height: $input-height !default;\n$custom-select-indicator-padding: 1rem !default; // Extra padding to account for the presence of the background-image based indicator\n$custom-select-line-height: $input-btn-line-height !default;\n$custom-select-color: $input-color !default;\n$custom-select-disabled-color: $gray-600 !default;\n$custom-select-bg: $white !default;\n$custom-select-disabled-bg: $gray-200 !default;\n$custom-select-bg-size: 8px 10px !default; // In pixels because image dimensions\n$custom-select-indicator-color: #333 !default;\n$custom-select-indicator: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='#{$custom-select-indicator-color}' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$custom-select-border-width: $input-btn-border-width !default;\n$custom-select-border-color: $input-border-color !default;\n$custom-select-border-radius: $border-radius !default;\n\n$custom-select-focus-border-color: lighten(theme-color(\"primary\"), 25%) !default;\n$custom-select-focus-box-shadow: inset 0 1px 2px rgba($black, .075), 0 0 5px rgba($custom-select-focus-border-color, .5) !default;\n\n$custom-select-font-size-sm: 75% !default;\n$custom-select-height-sm: $input-height-sm !default;\n\n$custom-file-height: $input-height !default;\n$custom-file-width: 14rem !default;\n$custom-file-focus-box-shadow: 0 0 0 .075rem $white, 0 0 0 .2rem theme-color(\"primary\") !default;\n\n$custom-file-padding-y: $input-btn-padding-y !default;\n$custom-file-padding-x: $input-btn-padding-x !default;\n$custom-file-line-height: $input-btn-line-height !default;\n$custom-file-color: $input-color !default;\n$custom-file-bg: $input-bg !default;\n$custom-file-border-width: $input-btn-border-width !default;\n$custom-file-border-color: $input-border-color !default;\n$custom-file-border-radius: $input-border-radius !default;\n$custom-file-box-shadow: $input-box-shadow !default;\n$custom-file-button-color: $custom-file-color !default;\n$custom-file-button-bg: $input-group-addon-bg !default;\n$custom-file-text: (\n placeholder: (\n en: \"Choose file...\"\n ),\n button-label: (\n en: \"Browse\"\n )\n) !default;\n\n\n// Form validation\n$form-feedback-valid-color: theme-color(\"success\") !default;\n$form-feedback-invalid-color: theme-color(\"danger\") !default;\n\n\n// Dropdowns\n//\n// Dropdown menu container and contents.\n\n$dropdown-min-width: 10rem !default;\n$dropdown-padding-y: .5rem !default;\n$dropdown-spacer: .125rem !default;\n$dropdown-bg: $white !default;\n$dropdown-border-color: rgba($black,.15) !default;\n$dropdown-border-width: $border-width !default;\n$dropdown-divider-bg: $gray-200 !default;\n$dropdown-box-shadow: 0 .5rem 1rem rgba($black,.175) !default;\n\n$dropdown-link-color: $gray-900 !default;\n$dropdown-link-hover-color: darken($gray-900, 5%) !default;\n$dropdown-link-hover-bg: $gray-100 !default;\n\n$dropdown-link-active-color: $component-active-color !default;\n$dropdown-link-active-bg: $component-active-bg !default;\n\n$dropdown-link-disabled-color: $gray-600 !default;\n\n$dropdown-item-padding-y: .25rem !default;\n$dropdown-item-padding-x: 1.5rem !default;\n\n$dropdown-header-color: $gray-600 !default;\n\n\n// Z-index master list\n//\n// Warning: Avoid customizing these values. They're used for a bird's eye view\n// of components dependent on the z-axis and are designed to all work together.\n\n$zindex-dropdown: 1000 !default;\n$zindex-sticky: 1020 !default;\n$zindex-fixed: 1030 !default;\n$zindex-modal-backdrop: 1040 !default;\n$zindex-modal: 1050 !default;\n$zindex-popover: 1060 !default;\n$zindex-tooltip: 1070 !default;\n\n// Navs\n\n$nav-link-padding-y: .5rem !default;\n$nav-link-padding-x: 1rem !default;\n$nav-link-disabled-color: $gray-600 !default;\n\n$nav-tabs-border-color: #ddd !default;\n$nav-tabs-border-width: $border-width !default;\n$nav-tabs-border-radius: $border-radius !default;\n$nav-tabs-link-hover-border-color: $gray-200 !default;\n$nav-tabs-link-active-color: $gray-700 !default;\n$nav-tabs-link-active-bg: $body-bg !default;\n$nav-tabs-link-active-border-color: #ddd !default;\n\n$nav-pills-border-radius: $border-radius !default;\n$nav-pills-link-active-color: $component-active-color !default;\n$nav-pills-link-active-bg: $component-active-bg !default;\n\n// Navbar\n\n$navbar-padding-y: ($spacer / 2) !default;\n$navbar-padding-x: $spacer !default;\n\n$navbar-brand-font-size: $font-size-lg !default;\n// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link\n$nav-link-height: ($font-size-base * $line-height-base + $nav-link-padding-y * 2) !default;\n$navbar-brand-height: $navbar-brand-font-size * $line-height-base !default;\n$navbar-brand-padding-y: ($nav-link-height - $navbar-brand-height) / 2 !default;\n\n$navbar-toggler-padding-y: .25rem !default;\n$navbar-toggler-padding-x: .75rem !default;\n$navbar-toggler-font-size: $font-size-lg !default;\n$navbar-toggler-border-radius: $btn-border-radius !default;\n\n$navbar-dark-color: rgba($white,.5) !default;\n$navbar-dark-hover-color: rgba($white,.75) !default;\n$navbar-dark-active-color: $white !default;\n$navbar-dark-disabled-color: rgba($white,.25) !default;\n$navbar-dark-toggler-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-dark-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$navbar-dark-toggler-border-color: rgba($white,.1) !default;\n\n$navbar-light-color: rgba($black,.5) !default;\n$navbar-light-hover-color: rgba($black,.7) !default;\n$navbar-light-active-color: rgba($black,.9) !default;\n$navbar-light-disabled-color: rgba($black,.3) !default;\n$navbar-light-toggler-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-light-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$navbar-light-toggler-border-color: rgba($black,.1) !default;\n\n// Pagination\n\n$pagination-padding-y: .5rem !default;\n$pagination-padding-x: .75rem !default;\n$pagination-padding-y-sm: .25rem !default;\n$pagination-padding-x-sm: .5rem !default;\n$pagination-padding-y-lg: .75rem !default;\n$pagination-padding-x-lg: 1.5rem !default;\n$pagination-line-height: 1.25 !default;\n\n$pagination-color: $link-color !default;\n$pagination-bg: $white !default;\n$pagination-border-width: $border-width !default;\n$pagination-border-color: #ddd !default;\n\n$pagination-hover-color: $link-hover-color !default;\n$pagination-hover-bg: $gray-200 !default;\n$pagination-hover-border-color: #ddd !default;\n\n$pagination-active-color: $white !default;\n$pagination-active-bg: theme-color(\"primary\") !default;\n$pagination-active-border-color: theme-color(\"primary\") !default;\n\n$pagination-disabled-color: $gray-600 !default;\n$pagination-disabled-bg: $white !default;\n$pagination-disabled-border-color: #ddd !default;\n\n\n// Jumbotron\n\n$jumbotron-padding: 2rem !default;\n$jumbotron-bg: $gray-200 !default;\n\n\n// Cards\n\n$card-spacer-y: .75rem !default;\n$card-spacer-x: 1.25rem !default;\n$card-border-width: $border-width !default;\n$card-border-radius: $border-radius !default;\n$card-border-color: rgba($black,.125) !default;\n$card-inner-border-radius: calc(#{$card-border-radius} - #{$card-border-width}) !default;\n$card-cap-bg: rgba($black, .03) !default;\n$card-bg: $white !default;\n\n$card-img-overlay-padding: 1.25rem !default;\n\n$card-group-margin: ($grid-gutter-width / 2) !default;\n$card-deck-margin: $card-group-margin !default;\n\n$card-columns-count: 3 !default;\n$card-columns-gap: 1.25rem !default;\n$card-columns-margin: $card-spacer-y !default;\n\n\n// Tooltips\n\n$tooltip-max-width: 200px !default;\n$tooltip-color: $white !default;\n$tooltip-bg: $black !default;\n$tooltip-opacity: .9 !default;\n$tooltip-padding-y: 3px !default;\n$tooltip-padding-x: 8px !default;\n$tooltip-margin: 0 !default;\n\n\n$tooltip-arrow-width: 5px !default;\n$tooltip-arrow-height: 5px !default;\n$tooltip-arrow-color: $tooltip-bg !default;\n\n\n// Popovers\n\n$popover-bg: $white !default;\n$popover-max-width: 276px !default;\n$popover-border-width: $border-width !default;\n$popover-border-color: rgba($black,.2) !default;\n$popover-box-shadow: 0 .25rem .5rem rgba($black,.2) !default;\n\n$popover-header-bg: darken($popover-bg, 3%) !default;\n$popover-header-color: $headings-color !default;\n$popover-header-padding-y: .5rem !default;\n$popover-header-padding-x: .75rem !default;\n\n$popover-body-color: $body-color !default;\n$popover-body-padding-y: $popover-header-padding-y !default;\n$popover-body-padding-x: $popover-header-padding-x !default;\n\n$popover-arrow-width: .8rem !default;\n$popover-arrow-height: .4rem !default;\n$popover-arrow-color: $popover-bg !default;\n\n$popover-arrow-outer-color: fade-in($popover-border-color, .05) !default;\n\n\n// Badges\n\n$badge-font-size: 75% !default;\n$badge-font-weight: $font-weight-bold !default;\n$badge-padding-y: .25em !default;\n$badge-padding-x: .4em !default;\n$badge-border-radius: $border-radius !default;\n\n$badge-pill-padding-x: .6em !default;\n// Use a higher than normal value to ensure completely rounded edges when\n// customizing padding or font-size on labels.\n$badge-pill-border-radius: 10rem !default;\n\n\n// Modals\n\n// Padding applied to the modal body\n$modal-inner-padding: 15px !default;\n\n$modal-dialog-margin: 10px !default;\n$modal-dialog-margin-y-sm-up: 30px !default;\n\n$modal-title-line-height: $line-height-base !default;\n\n$modal-content-bg: $white !default;\n$modal-content-border-color: rgba($black,.2) !default;\n$modal-content-border-width: $border-width !default;\n$modal-content-box-shadow-xs: 0 3px 9px rgba($black,.5) !default;\n$modal-content-box-shadow-sm-up: 0 5px 15px rgba($black,.5) !default;\n\n$modal-backdrop-bg: $black !default;\n$modal-backdrop-opacity: .5 !default;\n$modal-header-border-color: $gray-200 !default;\n$modal-footer-border-color: $modal-header-border-color !default;\n$modal-header-border-width: $modal-content-border-width !default;\n$modal-footer-border-width: $modal-header-border-width !default;\n$modal-header-padding: 15px !default;\n\n$modal-lg: 800px !default;\n$modal-md: 500px !default;\n$modal-sm: 300px !default;\n\n$modal-transition: transform .3s ease-out !default;\n\n\n// Alerts\n//\n// Define alert colors, border radius, and padding.\n\n$alert-padding-y: .75rem !default;\n$alert-padding-x: 1.25rem !default;\n$alert-margin-bottom: 1rem !default;\n$alert-border-radius: $border-radius !default;\n$alert-link-font-weight: $font-weight-bold !default;\n$alert-border-width: $border-width !default;\n\n\n// Progress bars\n\n$progress-height: 1rem !default;\n$progress-font-size: ($font-size-base * .75) !default;\n$progress-bg: $gray-200 !default;\n$progress-border-radius: $border-radius !default;\n$progress-box-shadow: inset 0 .1rem .1rem rgba($black,.1) !default;\n$progress-bar-color: $white !default;\n$progress-bar-bg: theme-color(\"primary\") !default;\n$progress-bar-animation-timing: 1s linear infinite !default;\n$progress-bar-transition: width .6s ease !default;\n\n// List group\n\n$list-group-bg: $white !default;\n$list-group-border-color: rgba($black,.125) !default;\n$list-group-border-width: $border-width !default;\n$list-group-border-radius: $border-radius !default;\n\n$list-group-item-padding-y: .75rem !default;\n$list-group-item-padding-x: 1.25rem !default;\n\n$list-group-hover-bg: $gray-100 !default;\n$list-group-active-color: $component-active-color !default;\n$list-group-active-bg: $component-active-bg !default;\n$list-group-active-border-color: $list-group-active-bg !default;\n\n$list-group-disabled-color: $gray-600 !default;\n$list-group-disabled-bg: $list-group-bg !default;\n\n$list-group-action-color: $gray-700 !default;\n$list-group-action-hover-color: $list-group-action-color !default;\n\n$list-group-action-active-color: $body-color !default;\n$list-group-action-active-bg: $gray-200 !default;\n\n\n// Image thumbnails\n\n$thumbnail-padding: .25rem !default;\n$thumbnail-bg: $body-bg !default;\n$thumbnail-border-width: $border-width !default;\n$thumbnail-border-color: #ddd !default;\n$thumbnail-border-radius: $border-radius !default;\n$thumbnail-box-shadow: 0 1px 2px rgba($black,.075) !default;\n$thumbnail-transition: all .2s ease-in-out !default;\n\n\n// Figures\n\n$figure-caption-font-size: 90% !default;\n$figure-caption-color: $gray-600 !default;\n\n\n// Breadcrumbs\n\n$breadcrumb-padding-y: .75rem !default;\n$breadcrumb-padding-x: 1rem !default;\n$breadcrumb-item-padding: .5rem !default;\n\n$breadcrumb-margin-bottom: 1rem !default;\n\n$breadcrumb-bg: $gray-200 !default;\n$breadcrumb-divider-color: $gray-600 !default;\n$breadcrumb-active-color: $gray-600 !default;\n$breadcrumb-divider: \"/\" !default;\n\n\n// Carousel\n\n$carousel-control-color: $white !default;\n$carousel-control-width: 15% !default;\n$carousel-control-opacity: .5 !default;\n\n$carousel-indicator-width: 30px !default;\n$carousel-indicator-height: 3px !default;\n$carousel-indicator-spacer: 3px !default;\n$carousel-indicator-active-bg: $white !default;\n\n$carousel-caption-width: 70% !default;\n$carousel-caption-color: $white !default;\n\n$carousel-control-icon-width: 20px !default;\n\n$carousel-control-prev-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n$carousel-control-next-icon-bg: str-replace(url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E\"), \"#\", \"%23\") !default;\n\n$carousel-transition: transform .6s ease !default;\n\n\n// Close\n\n$close-font-size: $font-size-base * 1.5 !default;\n$close-font-weight: $font-weight-bold !default;\n$close-color: $black !default;\n$close-text-shadow: 0 1px 0 $white !default;\n\n// Code\n\n$code-font-size: 90% !default;\n$code-padding-y: .2rem !default;\n$code-padding-x: .4rem !default;\n$code-color: #bd4147 !default;\n$code-bg: $gray-100 !default;\n\n$kbd-color: $white !default;\n$kbd-bg: $gray-900 !default;\n\n$pre-color: $gray-900 !default;\n$pre-scrollable-max-height: 340px !default;\n","// stylelint-disable indentation\n@mixin hover {\n // TODO: re-enable along with mq4-hover-shim\n// @if $enable-hover-media-query {\n// // See Media Queries Level 4: https://drafts.csswg.org/mediaqueries/#hover\n// // Currently shimmed by https://github.com/twbs/mq4-hover-shim\n// @media (hover: hover) {\n// &:hover { @content }\n// }\n// }\n// @else {\n &:hover { @content; }\n// }\n}\n\n\n@mixin hover-focus {\n @if $enable-hover-media-query {\n &:focus {\n @content;\n }\n @include hover { @content; }\n } @else {\n &:focus,\n &:hover {\n @content;\n }\n }\n}\n\n@mixin plain-hover-focus {\n @if $enable-hover-media-query {\n &,\n &:focus {\n @content;\n }\n @include hover { @content; }\n } @else {\n &,\n &:focus,\n &:hover {\n @content;\n }\n }\n}\n\n@mixin hover-focus-active {\n @if $enable-hover-media-query {\n &:focus,\n &:active {\n @content;\n }\n @include hover { @content; }\n } @else {\n &:focus,\n &:active,\n &:hover {\n @content;\n }\n }\n}\n","// stylelint-disable declaration-no-important, selector-list-comma-newline-after\n\n//\n// Headings\n//\n\nh1, h2, h3, h4, h5, h6,\n.h1, .h2, .h3, .h4, .h5, .h6 {\n margin-bottom: $headings-margin-bottom;\n font-family: $headings-font-family;\n font-weight: $headings-font-weight;\n line-height: $headings-line-height;\n color: $headings-color;\n}\n\nh1, .h1 { font-size: $h1-font-size; }\nh2, .h2 { font-size: $h2-font-size; }\nh3, .h3 { font-size: $h3-font-size; }\nh4, .h4 { font-size: $h4-font-size; }\nh5, .h5 { font-size: $h5-font-size; }\nh6, .h6 { font-size: $h6-font-size; }\n\n.lead {\n font-size: $lead-font-size;\n font-weight: $lead-font-weight;\n}\n\n// Type display classes\n.display-1 {\n font-size: $display1-size;\n font-weight: $display1-weight;\n line-height: $display-line-height;\n}\n.display-2 {\n font-size: $display2-size;\n font-weight: $display2-weight;\n line-height: $display-line-height;\n}\n.display-3 {\n font-size: $display3-size;\n font-weight: $display3-weight;\n line-height: $display-line-height;\n}\n.display-4 {\n font-size: $display4-size;\n font-weight: $display4-weight;\n line-height: $display-line-height;\n}\n\n\n//\n// Horizontal rules\n//\n\nhr {\n margin-top: 1rem;\n margin-bottom: 1rem;\n border: 0;\n border-top: $hr-border-width solid $hr-border-color;\n}\n\n\n//\n// Emphasis\n//\n\nsmall,\n.small {\n font-size: $small-font-size;\n font-weight: $font-weight-normal;\n}\n\nmark,\n.mark {\n padding: $mark-padding;\n background-color: $mark-bg;\n}\n\n\n//\n// Lists\n//\n\n.list-unstyled {\n @include list-unstyled;\n}\n\n// Inline turns list items into inline-block\n.list-inline {\n @include list-unstyled;\n}\n.list-inline-item {\n display: inline-block;\n\n &:not(:last-child) {\n margin-right: $list-inline-padding;\n }\n}\n\n\n//\n// Misc\n//\n\n// Builds on `abbr`\n.initialism {\n font-size: 90%;\n text-transform: uppercase;\n}\n\n// Blockquotes\n.blockquote {\n margin-bottom: $spacer;\n font-size: $blockquote-font-size;\n}\n\n.blockquote-footer {\n display: block;\n font-size: 80%; // back to default font-size\n color: $blockquote-small-color;\n\n &::before {\n content: \"\\2014 \\00A0\"; // em dash, nbsp\n }\n}\n","// Lists\n\n// Unstyled keeps list items block level, just removes default browser padding and list-style\n@mixin list-unstyled {\n padding-left: 0;\n list-style: none;\n}\n","// Responsive images (ensure images don't scale beyond their parents)\n//\n// This is purposefully opt-in via an explicit class rather than being the default for all ``s.\n// We previously tried the \"images are responsive by default\" approach in Bootstrap v2,\n// and abandoned it in Bootstrap v3 because it breaks lots of third-party widgets (including Google Maps)\n// which weren't expecting the images within themselves to be involuntarily resized.\n// See also https://github.com/twbs/bootstrap/issues/18178\n.img-fluid {\n @include img-fluid;\n}\n\n\n// Image thumbnails\n.img-thumbnail {\n padding: $thumbnail-padding;\n background-color: $thumbnail-bg;\n border: $thumbnail-border-width solid $thumbnail-border-color;\n @include border-radius($thumbnail-border-radius);\n @include transition($thumbnail-transition);\n @include box-shadow($thumbnail-box-shadow);\n\n // Keep them at most 100% wide\n @include img-fluid;\n}\n\n//\n// Figures\n//\n\n.figure {\n // Ensures the caption's text aligns with the image.\n display: inline-block;\n}\n\n.figure-img {\n margin-bottom: ($spacer / 2);\n line-height: 1;\n}\n\n.figure-caption {\n font-size: $figure-caption-font-size;\n color: $figure-caption-color;\n}\n","// Image Mixins\n// - Responsive image\n// - Retina image\n\n\n// Responsive image\n//\n// Keep images from scaling beyond the width of their parents.\n\n@mixin img-fluid {\n // Part 1: Set a maximum relative to the parent\n max-width: 100%;\n // Part 2: Override the height to auto, otherwise images will be stretched\n // when setting a width and height attribute on the img element.\n height: auto;\n}\n\n\n// Retina image\n//\n// Short retina mixin for setting background-image and -size.\n\n// stylelint-disable indentation, media-query-list-comma-newline-after\n@mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) {\n background-image: url($file-1x);\n\n // Autoprefixer takes care of adding -webkit-min-device-pixel-ratio and -o-min-device-pixel-ratio,\n // but doesn't convert dppx=>dpi.\n // There's no such thing as unprefixed min-device-pixel-ratio since it's nonstandard.\n // Compatibility info: https://caniuse.com/#feat=css-media-resolution\n @media only screen and (min-resolution: 192dpi), // IE9-11 don't support dppx\n only screen and (min-resolution: 2dppx) { // Standardized\n background-image: url($file-2x);\n background-size: $width-1x $height-1x;\n }\n}\n","// Single side border-radius\n\n@mixin border-radius($radius: $border-radius) {\n @if $enable-rounded {\n border-radius: $radius;\n }\n}\n\n@mixin border-top-radius($radius) {\n @if $enable-rounded {\n border-top-left-radius: $radius;\n border-top-right-radius: $radius;\n }\n}\n\n@mixin border-right-radius($radius) {\n @if $enable-rounded {\n border-top-right-radius: $radius;\n border-bottom-right-radius: $radius;\n }\n}\n\n@mixin border-bottom-radius($radius) {\n @if $enable-rounded {\n border-bottom-right-radius: $radius;\n border-bottom-left-radius: $radius;\n }\n}\n\n@mixin border-left-radius($radius) {\n @if $enable-rounded {\n border-top-left-radius: $radius;\n border-bottom-left-radius: $radius;\n }\n}\n","@mixin transition($transition...) {\n @if $enable-transitions {\n @if length($transition) == 0 {\n transition: $transition-base;\n } @else {\n transition: $transition;\n }\n }\n}\n","// Inline and block code styles\ncode,\nkbd,\npre,\nsamp {\n font-family: $font-family-monospace;\n}\n\n// Inline code\ncode {\n padding: $code-padding-y $code-padding-x;\n font-size: $code-font-size;\n color: $code-color;\n background-color: $code-bg;\n @include border-radius($border-radius);\n\n // Streamline the style when inside anchors to avoid broken underline and more\n a > & {\n padding: 0;\n color: inherit;\n background-color: inherit;\n }\n}\n\n// User input typically entered via keyboard\nkbd {\n padding: $code-padding-y $code-padding-x;\n font-size: $code-font-size;\n color: $kbd-color;\n background-color: $kbd-bg;\n @include border-radius($border-radius-sm);\n @include box-shadow($kbd-box-shadow);\n\n kbd {\n padding: 0;\n font-size: 100%;\n font-weight: $nested-kbd-font-weight;\n @include box-shadow(none);\n }\n}\n\n// Blocks of code\npre {\n display: block;\n margin-top: 0;\n margin-bottom: 1rem;\n font-size: $code-font-size;\n color: $pre-color;\n\n // Account for some code outputs that place code tags in pre tags\n code {\n padding: 0;\n font-size: inherit;\n color: inherit;\n background-color: transparent;\n border-radius: 0;\n }\n}\n\n// Enable scrollable blocks of code\n.pre-scrollable {\n max-height: $pre-scrollable-max-height;\n overflow-y: scroll;\n}\n","// Container widths\n//\n// Set the container width, and override it for fixed navbars in media queries.\n\n@if $enable-grid-classes {\n .container {\n @include make-container();\n @include make-container-max-widths();\n }\n}\n\n// Fluid container\n//\n// Utilizes the mixin meant for fixed width containers, but with 100% width for\n// fluid, full width layouts.\n\n@if $enable-grid-classes {\n .container-fluid {\n @include make-container();\n }\n}\n\n// Row\n//\n// Rows contain and clear the floats of your columns.\n\n@if $enable-grid-classes {\n .row {\n @include make-row();\n }\n\n // Remove the negative margin from default .row, then the horizontal padding\n // from all immediate children columns (to prevent runaway style inheritance).\n .no-gutters {\n margin-right: 0;\n margin-left: 0;\n\n > .col,\n > [class*=\"col-\"] {\n padding-right: 0;\n padding-left: 0;\n }\n }\n}\n\n// Columns\n//\n// Common styles for small and large grid columns\n\n@if $enable-grid-classes {\n @include make-grid-columns();\n}\n","/// Grid system\n//\n// Generate semantic grid columns with these mixins.\n\n@mixin make-container() {\n width: 100%;\n padding-right: ($grid-gutter-width / 2);\n padding-left: ($grid-gutter-width / 2);\n margin-right: auto;\n margin-left: auto;\n}\n\n\n// For each breakpoint, define the maximum width of the container in a media query\n@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {\n @each $breakpoint, $container-max-width in $max-widths {\n @include media-breakpoint-up($breakpoint, $breakpoints) {\n max-width: $container-max-width;\n }\n }\n}\n\n@mixin make-row() {\n display: flex;\n flex-wrap: wrap;\n margin-right: ($grid-gutter-width / -2);\n margin-left: ($grid-gutter-width / -2);\n}\n\n@mixin make-col-ready() {\n position: relative;\n // Prevent columns from becoming too narrow when at smaller grid tiers by\n // always setting `width: 100%;`. This works because we use `flex` values\n // later on to override this initial width.\n width: 100%;\n min-height: 1px; // Prevent collapsing\n padding-right: ($grid-gutter-width / 2);\n padding-left: ($grid-gutter-width / 2);\n}\n\n@mixin make-col($size, $columns: $grid-columns) {\n flex: 0 0 percentage($size / $columns);\n // Add a `max-width` to ensure content within each column does not blow out\n // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari\n // do not appear to require this.\n max-width: percentage($size / $columns);\n}\n\n@mixin make-col-offset($size, $columns: $grid-columns) {\n $num: $size / $columns;\n margin-left: if($num == 0, 0, percentage($num));\n}\n","// Breakpoint viewport sizes and media queries.\n//\n// Breakpoints are defined as a map of (name: minimum width), order from small to large:\n//\n// (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n//\n// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n\n// Name of the next breakpoint, or null for the last breakpoint.\n//\n// >> breakpoint-next(sm)\n// md\n// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// md\n// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n// md\n@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {\n $n: index($breakpoint-names, $name);\n @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);\n}\n\n// Minimum breakpoint width. Null for the smallest (first) breakpoint.\n//\n// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// 576px\n@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {\n $min: map-get($breakpoints, $name);\n @return if($min != 0, $min, null);\n}\n\n// Maximum breakpoint width. Null for the largest (last) breakpoint.\n// The maximum value is calculated as the minimum of the next one less 0.1.\n//\n// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// 767px\n@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {\n $next: breakpoint-next($name, $breakpoints);\n @return if($next, breakpoint-min($next, $breakpoints) - 1px, null);\n}\n\n// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.\n// Useful for making responsive utilities.\n//\n// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// \"\" (Returns a blank string)\n// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// \"-sm\"\n@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {\n @return if(breakpoint-min($name, $breakpoints) == null, \"\", \"-#{$name}\");\n}\n\n// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n// Makes the @content apply to the given breakpoint and wider.\n@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($name, $breakpoints);\n @if $min {\n @media (min-width: $min) {\n @content;\n }\n } @else {\n @content;\n }\n}\n\n// Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n// Makes the @content apply to the given breakpoint and narrower.\n@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {\n $max: breakpoint-max($name, $breakpoints);\n @if $max {\n @media (max-width: $max) {\n @content;\n }\n } @else {\n @content;\n }\n}\n\n// Media that spans multiple breakpoint widths.\n// Makes the @content apply between the min and max breakpoints\n@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($lower, $breakpoints);\n $max: breakpoint-max($upper, $breakpoints);\n\n @if $min != null and $max != null {\n @media (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else if $max == null {\n @include media-breakpoint-up($lower) {\n @content;\n }\n } @else if $min == null {\n @include media-breakpoint-down($upper) {\n @content;\n }\n }\n}\n\n// Media between the breakpoint's minimum and maximum widths.\n// No minimum for the smallest breakpoint, and no maximum for the largest one.\n// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($name, $breakpoints);\n $max: breakpoint-max($name, $breakpoints);\n\n @if $min != null and $max != null {\n @media (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else if $max == null {\n @include media-breakpoint-up($name) {\n @content;\n }\n } @else if $min == null {\n @include media-breakpoint-down($name) {\n @content;\n }\n }\n}\n","// Framework grid generation\n//\n// Used only by Bootstrap to generate the correct number of grid classes given\n// any value of `$grid-columns`.\n\n@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {\n // Common properties for all breakpoints\n %grid-column {\n position: relative;\n width: 100%;\n min-height: 1px; // Prevent columns from collapsing when empty\n padding-right: ($gutter / 2);\n padding-left: ($gutter / 2);\n }\n\n @each $breakpoint in map-keys($breakpoints) {\n $infix: breakpoint-infix($breakpoint, $breakpoints);\n\n // Allow columns to stretch full width below their breakpoints\n @for $i from 1 through $columns {\n .col#{$infix}-#{$i} {\n @extend %grid-column;\n }\n }\n .col#{$infix},\n .col#{$infix}-auto {\n @extend %grid-column;\n }\n\n @include media-breakpoint-up($breakpoint, $breakpoints) {\n // Provide basic `.col-{bp}` classes for equal-width flexbox columns\n .col#{$infix} {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .col#{$infix}-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: none; // Reset earlier grid tiers\n }\n\n @for $i from 1 through $columns {\n .col#{$infix}-#{$i} {\n @include make-col($i, $columns);\n }\n }\n\n .order#{$infix}-first {\n order: -1;\n }\n\n @for $i from 1 through $columns {\n .order#{$infix}-#{$i} {\n order: $i;\n }\n }\n\n // `$columns - 1` because offsetting by the width of an entire row isn't possible\n @for $i from 0 through ($columns - 1) {\n @if not ($infix == \"\" and $i == 0) { // Avoid emitting useless .offset-0\n .offset#{$infix}-#{$i} {\n @include make-col-offset($i, $columns);\n }\n }\n }\n }\n }\n}\n","//\n// Basic Bootstrap table\n//\n\n.table {\n width: 100%;\n max-width: 100%;\n margin-bottom: $spacer;\n background-color: $table-bg; // Reset for nesting within parents with `background-color`.\n\n th,\n td {\n padding: $table-cell-padding;\n vertical-align: top;\n border-top: $table-border-width solid $table-border-color;\n }\n\n thead th {\n vertical-align: bottom;\n border-bottom: (2 * $table-border-width) solid $table-border-color;\n }\n\n tbody + tbody {\n border-top: (2 * $table-border-width) solid $table-border-color;\n }\n\n .table {\n background-color: $body-bg;\n }\n}\n\n\n//\n// Condensed table w/ half padding\n//\n\n.table-sm {\n th,\n td {\n padding: $table-cell-padding-sm;\n }\n}\n\n\n// Bordered version\n//\n// Add borders all around the table and between all the columns.\n\n.table-bordered {\n border: $table-border-width solid $table-border-color;\n\n th,\n td {\n border: $table-border-width solid $table-border-color;\n }\n\n thead {\n th,\n td {\n border-bottom-width: (2 * $table-border-width);\n }\n }\n}\n\n\n// Zebra-striping\n//\n// Default zebra-stripe styles (alternating gray and transparent backgrounds)\n\n.table-striped {\n tbody tr:nth-of-type(odd) {\n background-color: $table-accent-bg;\n }\n}\n\n\n// Hover effect\n//\n// Placed here since it has to come after the potential zebra striping\n\n.table-hover {\n tbody tr {\n @include hover {\n background-color: $table-hover-bg;\n }\n }\n}\n\n\n// Table backgrounds\n//\n// Exact selectors below required to override `.table-striped` and prevent\n// inheritance to nested tables.\n\n@each $color, $value in $theme-colors {\n @include table-row-variant($color, theme-color-level($color, -9));\n}\n\n@include table-row-variant(active, $table-active-bg);\n\n\n// Dark styles\n//\n// Same table markup, but inverted color scheme: dark background and light text.\n\n// stylelint-disable-next-line no-duplicate-selectors\n.table {\n .thead-dark {\n th {\n color: $table-dark-color;\n background-color: $table-dark-bg;\n border-color: $table-dark-border-color;\n }\n }\n\n .thead-light {\n th {\n color: $table-head-color;\n background-color: $table-head-bg;\n border-color: $table-border-color;\n }\n }\n}\n\n.table-dark {\n color: $table-dark-color;\n background-color: $table-dark-bg;\n\n th,\n td,\n thead th {\n border-color: $table-dark-border-color;\n }\n\n &.table-bordered {\n border: 0;\n }\n\n &.table-striped {\n tbody tr:nth-of-type(odd) {\n background-color: $table-dark-accent-bg;\n }\n }\n\n &.table-hover {\n tbody tr {\n @include hover {\n background-color: $table-dark-hover-bg;\n }\n }\n }\n}\n\n\n// Responsive tables\n//\n// Generate series of `.table-responsive-*` classes for configuring the screen\n// size of where your table will overflow.\n\n.table-responsive {\n @each $breakpoint in map-keys($grid-breakpoints) {\n $next: breakpoint-next($breakpoint, $grid-breakpoints);\n $infix: breakpoint-infix($next, $grid-breakpoints);\n\n &#{$infix} {\n @include media-breakpoint-down($breakpoint) {\n display: block;\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057\n\n // Prevent double border on horizontal scroll due to use of `display: block;`\n &.table-bordered {\n border: 0;\n }\n }\n }\n }\n}\n","// Tables\n\n@mixin table-row-variant($state, $background) {\n // Exact selectors below required to override `.table-striped` and prevent\n // inheritance to nested tables.\n .table-#{$state} {\n &,\n > th,\n > td {\n background-color: $background;\n }\n }\n\n // Hover states for `.table-hover`\n // Note: this is not available for cells or rows within `thead` or `tfoot`.\n .table-hover {\n $hover-background: darken($background, 5%);\n\n .table-#{$state} {\n @include hover {\n background-color: $hover-background;\n\n > td,\n > th {\n background-color: $hover-background;\n }\n }\n }\n }\n}\n","// Bootstrap functions\n//\n// Utility mixins and functions for evalutating source code across our variables, maps, and mixins.\n\n// Ascending\n// Used to evaluate Sass maps like our grid breakpoints.\n@mixin _assert-ascending($map, $map-name) {\n $prev-key: null;\n $prev-num: null;\n @each $key, $num in $map {\n @if $prev-num == null {\n // Do nothing\n } @else if not comparable($prev-num, $num) {\n @warn \"Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !\";\n } @else if $prev-num >= $num {\n @warn \"Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !\";\n }\n $prev-key: $key;\n $prev-num: $num;\n }\n}\n\n// Starts at zero\n// Another grid mixin that ensures the min-width of the lowest breakpoint starts at 0.\n@mixin _assert-starts-at-zero($map) {\n $values: map-values($map);\n $first-value: nth($values, 1);\n @if $first-value != 0 {\n @warn \"First breakpoint in `$grid-breakpoints` must start at 0, but starts at #{$first-value}.\";\n }\n}\n\n// Replace `$search` with `$replace` in `$string`\n// Used on our SVG icon backgrounds for custom forms.\n//\n// @author Hugo Giraudel\n// @param {String} $string - Initial string\n// @param {String} $search - Substring to replace\n// @param {String} $replace ('') - New value\n// @return {String} - Updated string\n@function str-replace($string, $search, $replace: \"\") {\n $index: str-index($string, $search);\n\n @if $index {\n @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);\n }\n\n @return $string;\n}\n\n// Color contrast\n@function color-yiq($color) {\n $r: red($color);\n $g: green($color);\n $b: blue($color);\n\n $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;\n\n @if ($yiq >= 150) {\n @return #111;\n } @else {\n @return #fff;\n }\n}\n\n// Retreive color Sass maps\n@function color($key: \"blue\") {\n @return map-get($colors, $key);\n}\n\n@function theme-color($key: \"primary\") {\n @return map-get($theme-colors, $key);\n}\n\n@function gray($key: \"100\") {\n @return map-get($grays, $key);\n}\n\n// Request a theme color level\n@function theme-color-level($color-name: \"primary\", $level: 0) {\n $color: theme-color($color-name);\n $color-base: if($level > 0, #000, #fff);\n $level: abs($level);\n\n @return mix($color-base, $color, $level * $theme-color-interval);\n}\n","// stylelint-disable selector-no-qualifying-type\n\n//\n// Textual form controls\n//\n\n.form-control {\n display: block;\n width: 100%;\n padding: $input-btn-padding-y $input-btn-padding-x;\n font-size: $font-size-base;\n line-height: $input-btn-line-height;\n color: $input-color;\n background-color: $input-bg;\n // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214.\n background-image: none;\n background-clip: padding-box;\n border: $input-btn-border-width solid $input-border-color;\n\n // Note: This has no effect on `s in CSS.\n @if $enable-rounded {\n // Manually use the if/else instead of the mixin to account for iOS override\n border-radius: $input-border-radius;\n } @else {\n // Otherwise undo the iOS default\n border-radius: 0;\n }\n\n @include box-shadow($input-box-shadow);\n @include transition($input-transition);\n\n // Unstyle the caret on ` receives focus\n // in IE and (under certain conditions) Edge, as it looks bad and cannot be made to\n // match the appearance of the native widget.\n // See https://github.com/twbs/bootstrap/issues/19398.\n color: $input-color;\n background-color: $input-bg;\n }\n}\n\n// Make file inputs better match text inputs by forcing them to new lines.\n.form-control-file,\n.form-control-range {\n display: block;\n}\n\n\n//\n// Labels\n//\n\n// For use with horizontal and inline forms, when you need the label text to\n// align with the form controls.\n.col-form-label {\n padding-top: calc(#{$input-btn-padding-y} + #{$input-btn-border-width});\n padding-bottom: calc(#{$input-btn-padding-y} + #{$input-btn-border-width});\n margin-bottom: 0; // Override the `
    ',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip"},u={SHOW:"show",OUT:"out"},d={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,INSERTED:"inserted"+i,CLICK:"click"+i,FOCUSIN:"focusin"+i,FOCUSOUT:"focusout"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i},f={FADE:"fade",SHOW:"show"},_={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},g={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},m=function(){function o(t,e){this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var m=o.prototype;return m.enable=function(){this._isEnabled=!0},m.disable=function(){this._isEnabled=!1},m.toggleEnabled=function(){this._isEnabled=!this._isEnabled},m.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass(f.SHOW))return void this._leave(null,this);this._enter(null,this)}},m.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},m.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var i=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(i);var r=e.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!r)return;var a=this.getTipElement(),l=s.getUID(this.constructor.NAME);a.setAttribute("id",l),this.element.setAttribute("aria-describedby",l),this.setContent(),this.config.animation&&e(a).addClass(f.FADE);var h="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,c=this._getAttachment(h);this.addAttachmentClass(c);var d=!1===this.config.container?document.body:e(this.config.container);e(a).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(a).appendTo(d),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,a,{placement:c,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:_.ARROW}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),e(a).addClass(f.SHOW),"ontouchstart"in document.documentElement&&e("body").children().on("mouseover",null,e.noop);var g=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),n===u.OUT&&t._leave(null,t)};s.supportsTransitionEnd()&&e(this.tip).hasClass(f.FADE)?e(this.tip).one(s.TRANSITION_END,g).emulateTransitionEnd(o._TRANSITION_DURATION):g()}},m.hide=function(t){var n=this,i=this.getTipElement(),r=e.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==u.SHOW&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};e(this.element).trigger(r),r.isDefaultPrevented()||(e(i).removeClass(f.SHOW),"ontouchstart"in document.documentElement&&e("body").children().off("mouseover",null,e.noop),this._activeTrigger[g.CLICK]=!1,this._activeTrigger[g.FOCUS]=!1,this._activeTrigger[g.HOVER]=!1,s.supportsTransitionEnd()&&e(this.tip).hasClass(f.FADE)?e(i).one(s.TRANSITION_END,o).emulateTransitionEnd(150):o(),this._hoverState="")},m.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},m.isWithContent=function(){return Boolean(this.getTitle())},m.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-tooltip-"+t)},m.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},m.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(_.TOOLTIP_INNER),this.getTitle()),t.removeClass(f.FADE+" "+f.SHOW)},m.setElementContent=function(t,n){var i=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?i?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text()):t[i?"html":"text"](n)},m.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},m._getAttachment=function(t){return h[t.toUpperCase()]},m._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(n!==g.MANUAL){var i=n===g.HOVER?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,s=n===g.HOVER?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(i,t.config.selector,function(e){return t._enter(e)}).on(s,t.config.selector,function(e){return t._leave(e)})}e(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=e.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},m._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},m._enter=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?g.FOCUS:g.HOVER]=!0),e(n.getTipElement()).hasClass(f.SHOW)||n._hoverState===u.SHOW?n._hoverState=u.SHOW:(clearTimeout(n._timeout),n._hoverState=u.SHOW,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===u.SHOW&&n.show()},n.config.delay.show):n.show())},m._leave=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?g.FOCUS:g.HOVER]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=u.OUT,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===u.OUT&&n.hide()},n.config.delay.hide):n.hide())},m._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},m._getConfig=function(n){return"number"==typeof(n=e.extend({},this.constructor.Default,e(this.element).data(),n)).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),s.typeCheckConfig(t,n,this.constructor.DefaultType),n},m._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},m._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(a);null!==n&&n.length>0&&t.removeClass(n.join(""))},m._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},m._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(f.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},o._jQueryInterface=function(t){return this.each(function(){var n=e(this).data("bs.tooltip"),i="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new o(this,i),e(this).data("bs.tooltip",n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new Error('No method named "'+t+'"');n[t]()}})},r(o,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return c}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return i}},{key:"DefaultType",get:function(){return l}}]),o}();return e.fn[t]=m._jQueryInterface,e.fn[t].Constructor=m,e.fn[t].noConflict=function(){return e.fn[t]=o,m._jQueryInterface},m}(),_=function(){var t="popover",n=".bs.popover",i=e.fn[t],s=new RegExp("(^|\\s)bs-popover\\S+","g"),a=e.extend({},f.Default,{placement:"right",trigger:"click",content:"",template:''}),l=e.extend({},f.DefaultType,{content:"(string|element|function)"}),h={FADE:"fade",SHOW:"show"},c={TITLE:".popover-header",CONTENT:".popover-body"},u={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},d=function(i){function d(){return i.apply(this,arguments)||this}o(d,i);var f=d.prototype;return f.isWithContent=function(){return this.getTitle()||this._getContent()},f.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-popover-"+t)},f.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},f.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(c.TITLE),this.getTitle()),this.setElementContent(t.find(c.CONTENT),this._getContent()),t.removeClass(h.FADE+" "+h.SHOW)},f._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},f._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(s);null!==n&&n.length>0&&t.removeClass(n.join(""))},d._jQueryInterface=function(t){return this.each(function(){var n=e(this).data("bs.popover"),i="object"==typeof t?t:null;if((n||!/destroy|hide/.test(t))&&(n||(n=new d(this,i),e(this).data("bs.popover",n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new Error('No method named "'+t+'"');n[t]()}})},r(d,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return a}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return u}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return l}}]),d}(f);return e.fn[t]=d._jQueryInterface,e.fn[t].Constructor=d,e.fn[t].noConflict=function(){return e.fn[t]=i,d._jQueryInterface},d}(),g=function(){var t="scrollspy",n=e.fn[t],i={offset:10,method:"auto",target:""},o={offset:"number",method:"string",target:"(string|element)"},a={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},l={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},h={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},c={OFFSET:"offset",POSITION:"position"},u=function(){function n(t,n){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" "+h.NAV_LINKS+","+this._config.target+" "+h.LIST_ITEMS+","+this._config.target+" "+h.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(a.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var u=n.prototype;return u.refresh=function(){var t=this,n=this._scrollElement!==this._scrollElement.window?c.POSITION:c.OFFSET,i="auto"===this._config.method?n:this._config.method,r=i===c.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),e.makeArray(e(this._selector)).map(function(t){var n,o=s.getSelectorFromElement(t);if(o&&(n=e(o)[0]),n){var a=n.getBoundingClientRect();if(a.width||a.height)return[e(n)[i]().top+r,o]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},u.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},u._getConfig=function(n){if("string"!=typeof(n=e.extend({},i,n)).target){var r=e(n.target).attr("id");r||(r=s.getUID(t),e(n.target).attr("id",r)),n.target="#"+r}return s.typeCheckConfig(t,n,o),n},u._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},u._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},u._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},u._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&("undefined"==typeof this._offsets[s+1]||t li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},a=function(){function t(t){this._element=t}var a=t.prototype;return a.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(i.ACTIVE)||e(this._element).hasClass(i.DISABLED))){var r,a,l=e(this._element).closest(o.NAV_LIST_GROUP)[0],h=s.getSelectorFromElement(this._element);if(l){var c="UL"===l.nodeName?o.ACTIVE_UL:o.ACTIVE;a=e.makeArray(e(l).find(c)),a=a[a.length-1]}var u=e.Event(n.HIDE,{relatedTarget:this._element}),d=e.Event(n.SHOW,{relatedTarget:a});if(a&&e(a).trigger(u),e(this._element).trigger(d),!d.isDefaultPrevented()&&!u.isDefaultPrevented()){h&&(r=e(h)[0]),this._activate(this._element,l);var f=function(){var i=e.Event(n.HIDDEN,{relatedTarget:t._element}),s=e.Event(n.SHOWN,{relatedTarget:a});e(a).trigger(i),e(t._element).trigger(s)};r?this._activate(r,r.parentNode,f):f()}}},a.dispose=function(){e.removeData(this._element,"bs.tab"),this._element=null},a._activate=function(t,n,r){var a,l=this,h=(a="UL"===n.nodeName?e(n).find(o.ACTIVE_UL):e(n).children(o.ACTIVE))[0],c=r&&s.supportsTransitionEnd()&&h&&e(h).hasClass(i.FADE),u=function(){return l._transitionComplete(t,h,c,r)};h&&c?e(h).one(s.TRANSITION_END,u).emulateTransitionEnd(150):u(),h&&e(h).removeClass(i.SHOW)},a._transitionComplete=function(t,n,r,a){if(n){e(n).removeClass(i.ACTIVE);var l=e(n.parentNode).find(o.DROPDOWN_ACTIVE_CHILD)[0];l&&e(l).removeClass(i.ACTIVE),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass(i.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),r?(s.reflow(t),e(t).addClass(i.SHOW)):e(t).removeClass(i.FADE),t.parentNode&&e(t.parentNode).hasClass(i.DROPDOWN_MENU)){var h=e(t).closest(o.DROPDOWN)[0];h&&e(h).find(o.DROPDOWN_TOGGLE).addClass(i.ACTIVE),t.setAttribute("aria-expanded",!0)}a&&a()},t._jQueryInterface=function(n){return this.each(function(){var i=e(this),s=i.data("bs.tab");if(s||(s=new t(this),i.data("bs.tab",s)),"string"==typeof n){if("undefined"==typeof s[n])throw new Error('No method named "'+n+'"');s[n]()}})},r(t,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),t}();return e(document).on(n.CLICK_DATA_API,o.DATA_TOGGLE,function(t){t.preventDefault(),a._jQueryInterface.call(e(this),"show")}),e.fn.tab=a._jQueryInterface,e.fn.tab.Constructor=a,e.fn.tab.noConflict=function(){return e.fn.tab=t,a._jQueryInterface},a}();return function(){if("undefined"==typeof e)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),t.Util=s,t.Alert=a,t.Button=l,t.Carousel=h,t.Collapse=c,t.Dropdown=u,t.Modal=d,t.Popover=_,t.Scrollspy=g,t.Tab=m,t.Tooltip=f,t}({},$,Popper); -//# sourceMappingURL=bootstrap.min.js.map \ No newline at end of file diff --git a/bin/station/vendor/bootstrap/js/bootstrap.min.js.map b/bin/station/vendor/bootstrap/js/bootstrap.min.js.map deleted file mode 100644 index 613897d..0000000 --- a/bin/station/vendor/bootstrap/js/bootstrap.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../js/src/util.js","../../js/src/alert.js","../../js/src/button.js","../../js/src/carousel.js","../../js/src/collapse.js","../../js/src/dropdown.js","../../js/src/modal.js","../../js/src/tooltip.js","../../js/src/popover.js","../../js/src/scrollspy.js","../../js/src/tab.js","../../js/src/index.js"],"names":["Util","toType","obj","toString","call","match","toLowerCase","getSpecialTransitionEndEvent","transition","end","event","$","target","is","this","handleObj","handler","apply","arguments","transitionEndTest","window","QUnit","el","document","createElement","name","TransitionEndEvent","style","transitionEndEmulator","duration","called","one","TRANSITION_END","triggerTransitionEnd","_this","prefix","Math","random","getElementById","element","selector","getAttribute","find","length","error","offsetHeight","trigger","Boolean","nodeType","componentName","config","configTypes","property","Object","prototype","hasOwnProperty","expectedTypes","value","valueType","isElement","RegExp","test","Error","toUpperCase","fn","emulateTransitionEnd","supportsTransitionEnd","special","Alert","NAME","JQUERY_NO_CONFLICT","Event","ClassName","_element","close","rootElement","_getRootElement","_triggerCloseEvent","isDefaultPrevented","_removeElement","dispose","removeData","getSelectorFromElement","parent","closest","ALERT","closeEvent","CLOSE","removeClass","SHOW","hasClass","FADE","_destroyElement","detach","CLOSED","remove","_jQueryInterface","each","$element","data","_handleDismiss","alertInstance","preventDefault","on","CLICK_DATA_API","DISMISS","Constructor","noConflict","Button","Selector","toggle","triggerChangeEvent","addAriaPressed","DATA_TOGGLE","input","INPUT","type","checked","ACTIVE","activeElement","hasAttribute","classList","contains","focus","setAttribute","toggleClass","DATA_TOGGLE_CARROT","button","BUTTON","FOCUS_BLUR_DATA_API","FOCUS","Carousel","DATA_KEY","EVENT_KEY","Default","DefaultType","Direction","_items","_interval","_activeElement","_isPaused","_isSliding","touchTimeout","_config","_getConfig","_indicatorsElement","INDICATORS","_addEventListeners","next","_slide","NEXT","nextWhenVisible","hidden","css","prev","PREV","pause","NEXT_PREV","cycle","interval","setInterval","visibilityState","bind","to","index","ACTIVE_ITEM","activeIndex","_getItemIndex","SLID","direction","off","extend","typeCheckConfig","keyboard","KEYDOWN","_this2","_keydown","MOUSEENTER","MOUSELEAVE","documentElement","TOUCHEND","setTimeout","tagName","which","makeArray","ITEM","indexOf","_getItemByDirection","isNextDirection","isPrevDirection","lastItemIndex","wrap","itemIndex","_triggerSlideEvent","relatedTarget","eventDirectionName","targetIndex","fromIndex","slideEvent","SLIDE","_setActiveIndicatorElement","nextIndicator","children","addClass","directionalClassName","orderClassName","activeElementIndex","nextElement","nextElementIndex","isCycling","LEFT","RIGHT","slidEvent","reflow","_this3","action","slide","_dataApiClickHandler","CAROUSEL","slideIndex","DATA_SLIDE","LOAD_DATA_API","DATA_RIDE","$carousel","Collapse","Dimension","_isTransitioning","_triggerArray","id","tabToggles","i","elem","filter","push","_parent","_getParent","_addAriaAndCollapsedClass","hide","show","actives","activesData","ACTIVES","startEvent","dimension","_getDimension","COLLAPSE","COLLAPSING","COLLAPSED","attr","setTransitioning","complete","SHOWN","scrollSize","slice","HIDE","getBoundingClientRect","HIDDEN","isTransitioning","WIDTH","HEIGHT","jquery","_getTargetFromElement","triggerArray","isOpen","$this","currentTarget","$trigger","$target","Dropdown","Popper","REGEXP_KEYDOWN","ARROW_UP_KEYCODE","AttachmentMap","_popper","_menu","_getMenuElement","_inNavbar","_detectNavbar","disabled","DISABLED","_getParentFromElement","isActive","_clearMenus","showEvent","DROPUP","MENULEFT","MENURIGHT","_getPopperConfig","NAVBAR_NAV","noop","destroy","update","scheduleUpdate","CLICK","stopPropagation","constructor","MENU","_getPlacement","$parentDropdown","placement","BOTTOM","TOP","TOPEND","BOTTOMEND","offsetConf","offset","offsets","popperConfig","flip","modifiers","applyStyle","toggles","context","dropdownMenu","hideEvent","parentNode","_dataApiKeydownHandler","items","VISIBLE_ITEMS","get","KEYDOWN_DATA_API","KEYUP_DATA_API","FORM_CHILD","e","Modal","_dialog","DIALOG","_backdrop","_isShown","_isBodyOverflowing","_ignoreBackdropClick","_originalBodyPadding","_scrollbarWidth","_checkScrollbar","_setScrollbar","_adjustDialog","body","OPEN","_setEscapeEvent","_setResizeEvent","CLICK_DISMISS","DATA_DISMISS","MOUSEDOWN_DISMISS","MOUSEUP_DISMISS","_showBackdrop","_showElement","FOCUSIN","_hideModal","handleUpdate","Node","ELEMENT_NODE","appendChild","display","removeAttribute","scrollTop","_enforceFocus","shownEvent","transitionComplete","_this4","has","KEYDOWN_DISMISS","RESIZE","_this6","_resetAdjustments","_resetScrollbar","_this7","_removeBackdrop","callback","animate","backdrop","doAnimate","className","BACKDROP","appendTo","_this8","callbackRemove","isModalOverflowing","scrollHeight","clientHeight","paddingLeft","paddingRight","rect","left","right","innerWidth","_getScrollbarWidth","FIXED_CONTENT","actualPadding","calculatedPadding","parseFloat","_this9","STICKY_CONTENT","actualMargin","marginRight","calculatedMargin","NAVBAR_TOGGLER","padding","margin","scrollDiv","SCROLLBAR_MEASURER","scrollbarWidth","width","clientWidth","removeChild","Tooltip","BSCLS_PREFIX_REGEX","HoverState","Trigger","_isEnabled","_timeout","_hoverState","_activeTrigger","tip","_setListeners","enable","disable","toggleEnabled","dataKey","_getDelegateConfig","click","_isWithActiveTrigger","_enter","_leave","getTipElement","isWithContent","isInTheDom","ownerDocument","tipId","getUID","setContent","animation","attachment","_getAttachment","addAttachmentClass","container","INSERTED","fallbackPlacement","ARROW","originalPlacement","_handlePopperPlacementChange","_fixTransition","prevHoverState","OUT","_TRANSITION_DURATION","_cleanTipClass","HOVER","getTitle","CLASS_PREFIX","template","$tip","setElementContent","TOOLTIP_INNER","content","html","empty","append","text","title","split","forEach","MANUAL","eventIn","eventOut","FOCUSOUT","_fixTitle","titleType","delay","key","tabClass","join","initConfigAnimation","Popover","_getContent","TITLE","CONTENT","ScrollSpy","OffsetMethod","_scrollElement","_selector","NAV_LINKS","LIST_ITEMS","DROPDOWN_ITEMS","_offsets","_targets","_activeTarget","_scrollHeight","SCROLL","_process","refresh","autoMethod","POSITION","OFFSET","offsetMethod","method","offsetBase","_getScrollTop","_getScrollHeight","map","targetSelector","targetBCR","height","top","item","sort","a","b","pageYOffset","max","_getOffsetHeight","innerHeight","maxScroll","_activate","_clear","queries","$link","DROPDOWN_ITEM","DROPDOWN","DROPDOWN_TOGGLE","parents","NAV_LIST_GROUP","NAV_ITEMS","ACTIVATE","scrollSpys","DATA_SPY","$spy","Tab","previous","listElement","itemSelector","nodeName","ACTIVE_UL","hiddenEvent","activeElements","active","_transitionComplete","dropdownChild","DROPDOWN_ACTIVE_CHILD","DROPDOWN_MENU","dropdownElement","version"],"mappings":";;;;;2SASA,IAAMA,EAAQ,oBAqBH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AKmF,KAAK,eACTuK,EAAQ7P,EAAEG,MACZqF,EAAUqK,EAAMrK,KAvNE,aAyNjBA,MACI,IAAI0a,EAAI/f,QACTqF,KA3Nc,SA2NCA,IAGD,iBAAXjD,EAAqB,IACF,oBAAjBiD,EAAKjD,SACR,IAAIY,MAAJ,oBAA8BZ,EAA9B,OAEHA,uDAnOe,iCAiP1B3B,UACCgF,GAAGhC,EAAMiC,eAAgBK,EAASI,YAAa,SAAUvG,KAClD4F,mBACFN,iBAAiB5F,KAAKO,EAAEG,MAAO,YAUrCkD,GAAF,IAAyB6c,EAAI7a,mBAC3BhC,GAAF,IAAW0C,YAAcma,IACvB7c,GAAF,IAAW2C,WAAc,oBACrB3C,GAAF,IAAaM,EACNuc,EAAI7a,kBAGN6a,EA/QI,UCSb,cACmB,oBAANlgB,QACH,IAAImD,MAAM,sGAGZ6d,EAAUhhB,EAAEqD,GAAGoM,OAAOsM,MAAM,KAAK,GAAGA,MAAM,QAO5CiF,EAAQ,GALK,GAKWA,EAAQ,GAJnB,GAFA,IAMoCA,EAAQ,IAJ5C,IAI+DA,EAAQ,IAAmBA,EAAQ,GAHlG,GAGmHA,EAAQ,IAF3H,QAGT,IAAI7d,MAAM,+EAbpB","sourcesContent":["import $ from 'jquery'\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.0.0-beta.2): util.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Util = (() => {\n\n\n /**\n * ------------------------------------------------------------------------\n * Private TransitionEnd Helpers\n * ------------------------------------------------------------------------\n */\n\n let transition = false\n\n const MAX_UID = 1000000\n\n const TransitionEndEvent = {\n WebkitTransition : 'webkitTransitionEnd',\n MozTransition : 'transitionend',\n OTransition : 'oTransitionEnd otransitionend',\n transition : 'transitionend'\n }\n\n // shoutout AngusCroll (https://goo.gl/pxwQGp)\n function toType(obj) {\n return {}.toString.call(obj).match(/\\s([a-zA-Z]+)/)[1].toLowerCase()\n }\n\n function getSpecialTransitionEndEvent() {\n return {\n bindType: transition.end,\n delegateType: transition.end,\n handle(event) {\n if ($(event.target).is(this)) {\n return event.handleObj.handler.apply(this, arguments) // eslint-disable-line prefer-rest-params\n }\n return undefined // eslint-disable-line no-undefined\n }\n }\n }\n\n function transitionEndTest() {\n if (window.QUnit) {\n return false\n }\n\n const el = document.createElement('bootstrap')\n\n for (const name in TransitionEndEvent) {\n if (typeof el.style[name] !== 'undefined') {\n return {\n end: TransitionEndEvent[name]\n }\n }\n }\n\n return false\n }\n\n function transitionEndEmulator(duration) {\n let called = false\n\n $(this).one(Util.TRANSITION_END, () => {\n called = true\n })\n\n setTimeout(() => {\n if (!called) {\n Util.triggerTransitionEnd(this)\n }\n }, duration)\n\n return this\n }\n\n function setTransitionEndSupport() {\n transition = transitionEndTest()\n\n $.fn.emulateTransitionEnd = transitionEndEmulator\n\n if (Util.supportsTransitionEnd()) {\n $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent()\n }\n }\n\n\n /**\n * --------------------------------------------------------------------------\n * Public Util Api\n * --------------------------------------------------------------------------\n */\n\n const Util = {\n\n TRANSITION_END: 'bsTransitionEnd',\n\n getUID(prefix) {\n do {\n // eslint-disable-next-line no-bitwise\n prefix += ~~(Math.random() * MAX_UID) // \"~~\" acts like a faster Math.floor() here\n } while (document.getElementById(prefix))\n return prefix\n },\n\n getSelectorFromElement(element) {\n let selector = element.getAttribute('data-target')\n if (!selector || selector === '#') {\n selector = element.getAttribute('href') || ''\n }\n\n try {\n const $selector = $(document).find(selector)\n return $selector.length > 0 ? selector : null\n } catch (error) {\n return null\n }\n },\n\n reflow(element) {\n return element.offsetHeight\n },\n\n triggerTransitionEnd(element) {\n $(element).trigger(transition.end)\n },\n\n supportsTransitionEnd() {\n return Boolean(transition)\n },\n\n isElement(obj) {\n return (obj[0] || obj).nodeType\n },\n\n typeCheckConfig(componentName, config, configTypes) {\n for (const property in configTypes) {\n if (Object.prototype.hasOwnProperty.call(configTypes, property)) {\n const expectedTypes = configTypes[property]\n const value = config[property]\n const valueType = value && Util.isElement(value) ?\n 'element' : toType(value)\n\n if (!new RegExp(expectedTypes).test(valueType)) {\n throw new Error(\n `${componentName.toUpperCase()}: ` +\n `Option \"${property}\" provided type \"${valueType}\" ` +\n `but expected type \"${expectedTypes}\".`)\n }\n }\n }\n }\n }\n\n setTransitionEndSupport()\n\n return Util\n\n})($)\n\nexport default Util\n","import $ from 'jquery'\nimport Util from './util'\n\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.0.0-beta.2): alert.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Alert = (() => {\n\n\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'alert'\n const VERSION = '4.0.0-beta.2'\n const DATA_KEY = 'bs.alert'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const TRANSITION_DURATION = 150\n\n const Selector = {\n DISMISS : '[data-dismiss=\"alert\"]'\n }\n\n const Event = {\n CLOSE : `close${EVENT_KEY}`,\n CLOSED : `closed${EVENT_KEY}`,\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n ALERT : 'alert',\n FADE : 'fade',\n SHOW : 'show'\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Alert {\n\n constructor(element) {\n this._element = element\n }\n\n\n // getters\n\n static get VERSION() {\n return VERSION\n }\n\n\n // public\n\n close(element) {\n element = element || this._element\n\n const rootElement = this._getRootElement(element)\n const customEvent = this._triggerCloseEvent(rootElement)\n\n if (customEvent.isDefaultPrevented()) {\n return\n }\n\n this._removeElement(rootElement)\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n this._element = null\n }\n\n\n // private\n\n _getRootElement(element) {\n const selector = Util.getSelectorFromElement(element)\n let parent = false\n\n if (selector) {\n parent = $(selector)[0]\n }\n\n if (!parent) {\n parent = $(element).closest(`.${ClassName.ALERT}`)[0]\n }\n\n return parent\n }\n\n _triggerCloseEvent(element) {\n const closeEvent = $.Event(Event.CLOSE)\n\n $(element).trigger(closeEvent)\n return closeEvent\n }\n\n _removeElement(element) {\n $(element).removeClass(ClassName.SHOW)\n\n if (!Util.supportsTransitionEnd() ||\n !$(element).hasClass(ClassName.FADE)) {\n this._destroyElement(element)\n return\n }\n\n $(element)\n .one(Util.TRANSITION_END, (event) => this._destroyElement(element, event))\n .emulateTransitionEnd(TRANSITION_DURATION)\n }\n\n _destroyElement(element) {\n $(element)\n .detach()\n .trigger(Event.CLOSED)\n .remove()\n }\n\n\n // static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n const $element = $(this)\n let data = $element.data(DATA_KEY)\n\n if (!data) {\n data = new Alert(this)\n $element.data(DATA_KEY, data)\n }\n\n if (config === 'close') {\n data[config](this)\n }\n })\n }\n\n static _handleDismiss(alertInstance) {\n return function (event) {\n if (event) {\n event.preventDefault()\n }\n\n alertInstance.close(this)\n }\n }\n\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document).on(\n Event.CLICK_DATA_API,\n Selector.DISMISS,\n Alert._handleDismiss(new Alert())\n )\n\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Alert._jQueryInterface\n $.fn[NAME].Constructor = Alert\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Alert._jQueryInterface\n }\n\n return Alert\n\n})($)\n\nexport default Alert\n","import $ from 'jquery'\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.0.0-beta.2): button.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Button = (() => {\n\n\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'button'\n const VERSION = '4.0.0-beta.2'\n const DATA_KEY = 'bs.button'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n\n const ClassName = {\n ACTIVE : 'active',\n BUTTON : 'btn',\n FOCUS : 'focus'\n }\n\n const Selector = {\n DATA_TOGGLE_CARROT : '[data-toggle^=\"button\"]',\n DATA_TOGGLE : '[data-toggle=\"buttons\"]',\n INPUT : 'input',\n ACTIVE : '.active',\n BUTTON : '.btn'\n }\n\n const Event = {\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`,\n FOCUS_BLUR_DATA_API : `focus${EVENT_KEY}${DATA_API_KEY} `\n + `blur${EVENT_KEY}${DATA_API_KEY}`\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Button {\n\n constructor(element) {\n this._element = element\n }\n\n\n // getters\n\n static get VERSION() {\n return VERSION\n }\n\n\n // public\n\n toggle() {\n let triggerChangeEvent = true\n let addAriaPressed = true\n const rootElement = $(this._element).closest(\n Selector.DATA_TOGGLE\n )[0]\n\n if (rootElement) {\n const input = $(this._element).find(Selector.INPUT)[0]\n\n if (input) {\n if (input.type === 'radio') {\n if (input.checked &&\n $(this._element).hasClass(ClassName.ACTIVE)) {\n triggerChangeEvent = false\n\n } else {\n const activeElement = $(rootElement).find(Selector.ACTIVE)[0]\n\n if (activeElement) {\n $(activeElement).removeClass(ClassName.ACTIVE)\n }\n }\n }\n\n if (triggerChangeEvent) {\n if (input.hasAttribute('disabled') ||\n rootElement.hasAttribute('disabled') ||\n input.classList.contains('disabled') ||\n rootElement.classList.contains('disabled')) {\n return\n }\n input.checked = !$(this._element).hasClass(ClassName.ACTIVE)\n $(input).trigger('change')\n }\n\n input.focus()\n addAriaPressed = false\n }\n\n }\n\n if (addAriaPressed) {\n this._element.setAttribute('aria-pressed',\n !$(this._element).hasClass(ClassName.ACTIVE))\n }\n\n if (triggerChangeEvent) {\n $(this._element).toggleClass(ClassName.ACTIVE)\n }\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n this._element = null\n }\n\n\n // static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n\n if (!data) {\n data = new Button(this)\n $(this).data(DATA_KEY, data)\n }\n\n if (config === 'toggle') {\n data[config]()\n }\n })\n }\n\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document)\n .on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, (event) => {\n event.preventDefault()\n\n let button = event.target\n\n if (!$(button).hasClass(ClassName.BUTTON)) {\n button = $(button).closest(Selector.BUTTON)\n }\n\n Button._jQueryInterface.call($(button), 'toggle')\n })\n .on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, (event) => {\n const button = $(event.target).closest(Selector.BUTTON)[0]\n $(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type))\n })\n\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Button._jQueryInterface\n $.fn[NAME].Constructor = Button\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Button._jQueryInterface\n }\n\n return Button\n\n})($)\n\nexport default Button\n","import $ from 'jquery'\nimport Util from './util'\n\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.0.0-beta.2): carousel.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Carousel = (() => {\n\n\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'carousel'\n const VERSION = '4.0.0-beta.2'\n const DATA_KEY = 'bs.carousel'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const TRANSITION_DURATION = 600\n const ARROW_LEFT_KEYCODE = 37 // KeyboardEvent.which value for left arrow key\n const ARROW_RIGHT_KEYCODE = 39 // KeyboardEvent.which value for right arrow key\n const TOUCHEVENT_COMPAT_WAIT = 500 // Time for mouse compat events to fire after touch\n\n const Default = {\n interval : 5000,\n keyboard : true,\n slide : false,\n pause : 'hover',\n wrap : true\n }\n\n const DefaultType = {\n interval : '(number|boolean)',\n keyboard : 'boolean',\n slide : '(boolean|string)',\n pause : '(string|boolean)',\n wrap : 'boolean'\n }\n\n const Direction = {\n NEXT : 'next',\n PREV : 'prev',\n LEFT : 'left',\n RIGHT : 'right'\n }\n\n const Event = {\n SLIDE : `slide${EVENT_KEY}`,\n SLID : `slid${EVENT_KEY}`,\n KEYDOWN : `keydown${EVENT_KEY}`,\n MOUSEENTER : `mouseenter${EVENT_KEY}`,\n MOUSELEAVE : `mouseleave${EVENT_KEY}`,\n TOUCHEND : `touchend${EVENT_KEY}`,\n LOAD_DATA_API : `load${EVENT_KEY}${DATA_API_KEY}`,\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n CAROUSEL : 'carousel',\n ACTIVE : 'active',\n SLIDE : 'slide',\n RIGHT : 'carousel-item-right',\n LEFT : 'carousel-item-left',\n NEXT : 'carousel-item-next',\n PREV : 'carousel-item-prev',\n ITEM : 'carousel-item'\n }\n\n const Selector = {\n ACTIVE : '.active',\n ACTIVE_ITEM : '.active.carousel-item',\n ITEM : '.carousel-item',\n NEXT_PREV : '.carousel-item-next, .carousel-item-prev',\n INDICATORS : '.carousel-indicators',\n DATA_SLIDE : '[data-slide], [data-slide-to]',\n DATA_RIDE : '[data-ride=\"carousel\"]'\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Carousel {\n\n constructor(element, config) {\n this._items = null\n this._interval = null\n this._activeElement = null\n\n this._isPaused = false\n this._isSliding = false\n\n this.touchTimeout = null\n\n this._config = this._getConfig(config)\n this._element = $(element)[0]\n this._indicatorsElement = $(this._element).find(Selector.INDICATORS)[0]\n\n this._addEventListeners()\n }\n\n\n // getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n\n // public\n\n next() {\n if (!this._isSliding) {\n this._slide(Direction.NEXT)\n }\n }\n\n nextWhenVisible() {\n // Don't call next when the page isn't visible\n // or the carousel or its parent isn't visible\n if (!document.hidden &&\n ($(this._element).is(':visible') && $(this._element).css('visibility') !== 'hidden')) {\n this.next()\n }\n }\n\n prev() {\n if (!this._isSliding) {\n this._slide(Direction.PREV)\n }\n }\n\n pause(event) {\n if (!event) {\n this._isPaused = true\n }\n\n if ($(this._element).find(Selector.NEXT_PREV)[0] &&\n Util.supportsTransitionEnd()) {\n Util.triggerTransitionEnd(this._element)\n this.cycle(true)\n }\n\n clearInterval(this._interval)\n this._interval = null\n }\n\n cycle(event) {\n if (!event) {\n this._isPaused = false\n }\n\n if (this._interval) {\n clearInterval(this._interval)\n this._interval = null\n }\n\n if (this._config.interval && !this._isPaused) {\n this._interval = setInterval(\n (document.visibilityState ? this.nextWhenVisible : this.next).bind(this),\n this._config.interval\n )\n }\n }\n\n to(index) {\n this._activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0]\n\n const activeIndex = this._getItemIndex(this._activeElement)\n\n if (index > this._items.length - 1 || index < 0) {\n return\n }\n\n if (this._isSliding) {\n $(this._element).one(Event.SLID, () => this.to(index))\n return\n }\n\n if (activeIndex === index) {\n this.pause()\n this.cycle()\n return\n }\n\n const direction = index > activeIndex ?\n Direction.NEXT :\n Direction.PREV\n\n this._slide(direction, this._items[index])\n }\n\n dispose() {\n $(this._element).off(EVENT_KEY)\n $.removeData(this._element, DATA_KEY)\n\n this._items = null\n this._config = null\n this._element = null\n this._interval = null\n this._isPaused = null\n this._isSliding = null\n this._activeElement = null\n this._indicatorsElement = null\n }\n\n\n // private\n\n _getConfig(config) {\n config = $.extend({}, Default, config)\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _addEventListeners() {\n if (this._config.keyboard) {\n $(this._element)\n .on(Event.KEYDOWN, (event) => this._keydown(event))\n }\n\n if (this._config.pause === 'hover') {\n $(this._element)\n .on(Event.MOUSEENTER, (event) => this.pause(event))\n .on(Event.MOUSELEAVE, (event) => this.cycle(event))\n if ('ontouchstart' in document.documentElement) {\n // if it's a touch-enabled device, mouseenter/leave are fired as\n // part of the mouse compatibility events on first tap - the carousel\n // would stop cycling until user tapped out of it;\n // here, we listen for touchend, explicitly pause the carousel\n // (as if it's the second time we tap on it, mouseenter compat event\n // is NOT fired) and after a timeout (to allow for mouse compatibility\n // events to fire) we explicitly restart cycling\n $(this._element).on(Event.TOUCHEND, () => {\n this.pause()\n if (this.touchTimeout) {\n clearTimeout(this.touchTimeout)\n }\n this.touchTimeout = setTimeout((event) => this.cycle(event), TOUCHEVENT_COMPAT_WAIT + this._config.interval)\n })\n }\n }\n }\n\n _keydown(event) {\n if (/input|textarea/i.test(event.target.tagName)) {\n return\n }\n\n switch (event.which) {\n case ARROW_LEFT_KEYCODE:\n event.preventDefault()\n this.prev()\n break\n case ARROW_RIGHT_KEYCODE:\n event.preventDefault()\n this.next()\n break\n default:\n return\n }\n }\n\n _getItemIndex(element) {\n this._items = $.makeArray($(element).parent().find(Selector.ITEM))\n return this._items.indexOf(element)\n }\n\n _getItemByDirection(direction, activeElement) {\n const isNextDirection = direction === Direction.NEXT\n const isPrevDirection = direction === Direction.PREV\n const activeIndex = this._getItemIndex(activeElement)\n const lastItemIndex = this._items.length - 1\n const isGoingToWrap = isPrevDirection && activeIndex === 0 ||\n isNextDirection && activeIndex === lastItemIndex\n\n if (isGoingToWrap && !this._config.wrap) {\n return activeElement\n }\n\n const delta = direction === Direction.PREV ? -1 : 1\n const itemIndex = (activeIndex + delta) % this._items.length\n\n return itemIndex === -1 ?\n this._items[this._items.length - 1] : this._items[itemIndex]\n }\n\n\n _triggerSlideEvent(relatedTarget, eventDirectionName) {\n const targetIndex = this._getItemIndex(relatedTarget)\n const fromIndex = this._getItemIndex($(this._element).find(Selector.ACTIVE_ITEM)[0])\n const slideEvent = $.Event(Event.SLIDE, {\n relatedTarget,\n direction: eventDirectionName,\n from: fromIndex,\n to: targetIndex\n })\n\n $(this._element).trigger(slideEvent)\n\n return slideEvent\n }\n\n _setActiveIndicatorElement(element) {\n if (this._indicatorsElement) {\n $(this._indicatorsElement)\n .find(Selector.ACTIVE)\n .removeClass(ClassName.ACTIVE)\n\n const nextIndicator = this._indicatorsElement.children[\n this._getItemIndex(element)\n ]\n\n if (nextIndicator) {\n $(nextIndicator).addClass(ClassName.ACTIVE)\n }\n }\n }\n\n _slide(direction, element) {\n const activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0]\n const activeElementIndex = this._getItemIndex(activeElement)\n const nextElement = element || activeElement &&\n this._getItemByDirection(direction, activeElement)\n const nextElementIndex = this._getItemIndex(nextElement)\n const isCycling = Boolean(this._interval)\n\n let directionalClassName\n let orderClassName\n let eventDirectionName\n\n if (direction === Direction.NEXT) {\n directionalClassName = ClassName.LEFT\n orderClassName = ClassName.NEXT\n eventDirectionName = Direction.LEFT\n } else {\n directionalClassName = ClassName.RIGHT\n orderClassName = ClassName.PREV\n eventDirectionName = Direction.RIGHT\n }\n\n if (nextElement && $(nextElement).hasClass(ClassName.ACTIVE)) {\n this._isSliding = false\n return\n }\n\n const slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName)\n if (slideEvent.isDefaultPrevented()) {\n return\n }\n\n if (!activeElement || !nextElement) {\n // some weirdness is happening, so we bail\n return\n }\n\n this._isSliding = true\n\n if (isCycling) {\n this.pause()\n }\n\n this._setActiveIndicatorElement(nextElement)\n\n const slidEvent = $.Event(Event.SLID, {\n relatedTarget: nextElement,\n direction: eventDirectionName,\n from: activeElementIndex,\n to: nextElementIndex\n })\n\n if (Util.supportsTransitionEnd() &&\n $(this._element).hasClass(ClassName.SLIDE)) {\n\n $(nextElement).addClass(orderClassName)\n\n Util.reflow(nextElement)\n\n $(activeElement).addClass(directionalClassName)\n $(nextElement).addClass(directionalClassName)\n\n $(activeElement)\n .one(Util.TRANSITION_END, () => {\n $(nextElement)\n .removeClass(`${directionalClassName} ${orderClassName}`)\n .addClass(ClassName.ACTIVE)\n\n $(activeElement).removeClass(`${ClassName.ACTIVE} ${orderClassName} ${directionalClassName}`)\n\n this._isSliding = false\n\n setTimeout(() => $(this._element).trigger(slidEvent), 0)\n\n })\n .emulateTransitionEnd(TRANSITION_DURATION)\n\n } else {\n $(activeElement).removeClass(ClassName.ACTIVE)\n $(nextElement).addClass(ClassName.ACTIVE)\n\n this._isSliding = false\n $(this._element).trigger(slidEvent)\n }\n\n if (isCycling) {\n this.cycle()\n }\n }\n\n\n // static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n const _config = $.extend({}, Default, $(this).data())\n\n if (typeof config === 'object') {\n $.extend(_config, config)\n }\n\n const action = typeof config === 'string' ? config : _config.slide\n\n if (!data) {\n data = new Carousel(this, _config)\n $(this).data(DATA_KEY, data)\n }\n\n if (typeof config === 'number') {\n data.to(config)\n } else if (typeof action === 'string') {\n if (typeof data[action] === 'undefined') {\n throw new Error(`No method named \"${action}\"`)\n }\n data[action]()\n } else if (_config.interval) {\n data.pause()\n data.cycle()\n }\n })\n }\n\n static _dataApiClickHandler(event) {\n const selector = Util.getSelectorFromElement(this)\n\n if (!selector) {\n return\n }\n\n const target = $(selector)[0]\n\n if (!target || !$(target).hasClass(ClassName.CAROUSEL)) {\n return\n }\n\n const config = $.extend({}, $(target).data(), $(this).data())\n const slideIndex = this.getAttribute('data-slide-to')\n\n if (slideIndex) {\n config.interval = false\n }\n\n Carousel._jQueryInterface.call($(target), config)\n\n if (slideIndex) {\n $(target).data(DATA_KEY).to(slideIndex)\n }\n\n event.preventDefault()\n }\n\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document)\n .on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler)\n\n $(window).on(Event.LOAD_DATA_API, () => {\n $(Selector.DATA_RIDE).each(function () {\n const $carousel = $(this)\n Carousel._jQueryInterface.call($carousel, $carousel.data())\n })\n })\n\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Carousel._jQueryInterface\n $.fn[NAME].Constructor = Carousel\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Carousel._jQueryInterface\n }\n\n return Carousel\n\n})($)\n\nexport default Carousel\n","import $ from 'jquery'\nimport Util from './util'\n\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.0.0-beta.2): collapse.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Collapse = (() => {\n\n\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'collapse'\n const VERSION = '4.0.0-beta.2'\n const DATA_KEY = 'bs.collapse'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const TRANSITION_DURATION = 600\n\n const Default = {\n toggle : true,\n parent : ''\n }\n\n const DefaultType = {\n toggle : 'boolean',\n parent : '(string|element)'\n }\n\n const Event = {\n SHOW : `show${EVENT_KEY}`,\n SHOWN : `shown${EVENT_KEY}`,\n HIDE : `hide${EVENT_KEY}`,\n HIDDEN : `hidden${EVENT_KEY}`,\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n SHOW : 'show',\n COLLAPSE : 'collapse',\n COLLAPSING : 'collapsing',\n COLLAPSED : 'collapsed'\n }\n\n const Dimension = {\n WIDTH : 'width',\n HEIGHT : 'height'\n }\n\n const Selector = {\n ACTIVES : '.show, .collapsing',\n DATA_TOGGLE : '[data-toggle=\"collapse\"]'\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Collapse {\n\n constructor(element, config) {\n this._isTransitioning = false\n this._element = element\n this._config = this._getConfig(config)\n this._triggerArray = $.makeArray($(\n `[data-toggle=\"collapse\"][href=\"#${element.id}\"],` +\n `[data-toggle=\"collapse\"][data-target=\"#${element.id}\"]`\n ))\n const tabToggles = $(Selector.DATA_TOGGLE)\n for (let i = 0; i < tabToggles.length; i++) {\n const elem = tabToggles[i]\n const selector = Util.getSelectorFromElement(elem)\n if (selector !== null && $(selector).filter(element).length > 0) {\n this._triggerArray.push(elem)\n }\n }\n\n this._parent = this._config.parent ? this._getParent() : null\n\n if (!this._config.parent) {\n this._addAriaAndCollapsedClass(this._element, this._triggerArray)\n }\n\n if (this._config.toggle) {\n this.toggle()\n }\n }\n\n\n // getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n\n // public\n\n toggle() {\n if ($(this._element).hasClass(ClassName.SHOW)) {\n this.hide()\n } else {\n this.show()\n }\n }\n\n show() {\n if (this._isTransitioning ||\n $(this._element).hasClass(ClassName.SHOW)) {\n return\n }\n\n let actives\n let activesData\n\n if (this._parent) {\n actives = $.makeArray($(this._parent).children().children(Selector.ACTIVES))\n if (!actives.length) {\n actives = null\n }\n }\n\n if (actives) {\n activesData = $(actives).data(DATA_KEY)\n if (activesData && activesData._isTransitioning) {\n return\n }\n }\n\n const startEvent = $.Event(Event.SHOW)\n $(this._element).trigger(startEvent)\n if (startEvent.isDefaultPrevented()) {\n return\n }\n\n if (actives) {\n Collapse._jQueryInterface.call($(actives), 'hide')\n if (!activesData) {\n $(actives).data(DATA_KEY, null)\n }\n }\n\n const dimension = this._getDimension()\n\n $(this._element)\n .removeClass(ClassName.COLLAPSE)\n .addClass(ClassName.COLLAPSING)\n\n this._element.style[dimension] = 0\n\n if (this._triggerArray.length) {\n $(this._triggerArray)\n .removeClass(ClassName.COLLAPSED)\n .attr('aria-expanded', true)\n }\n\n this.setTransitioning(true)\n\n const complete = () => {\n $(this._element)\n .removeClass(ClassName.COLLAPSING)\n .addClass(ClassName.COLLAPSE)\n .addClass(ClassName.SHOW)\n\n this._element.style[dimension] = ''\n\n this.setTransitioning(false)\n\n $(this._element).trigger(Event.SHOWN)\n }\n\n if (!Util.supportsTransitionEnd()) {\n complete()\n return\n }\n\n const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1)\n const scrollSize = `scroll${capitalizedDimension}`\n\n $(this._element)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(TRANSITION_DURATION)\n\n this._element.style[dimension] = `${this._element[scrollSize]}px`\n }\n\n hide() {\n if (this._isTransitioning ||\n !$(this._element).hasClass(ClassName.SHOW)) {\n return\n }\n\n const startEvent = $.Event(Event.HIDE)\n $(this._element).trigger(startEvent)\n if (startEvent.isDefaultPrevented()) {\n return\n }\n\n const dimension = this._getDimension()\n\n this._element.style[dimension] = `${this._element.getBoundingClientRect()[dimension]}px`\n\n Util.reflow(this._element)\n\n $(this._element)\n .addClass(ClassName.COLLAPSING)\n .removeClass(ClassName.COLLAPSE)\n .removeClass(ClassName.SHOW)\n\n if (this._triggerArray.length) {\n for (let i = 0; i < this._triggerArray.length; i++) {\n const trigger = this._triggerArray[i]\n const selector = Util.getSelectorFromElement(trigger)\n if (selector !== null) {\n const $elem = $(selector)\n if (!$elem.hasClass(ClassName.SHOW)) {\n $(trigger).addClass(ClassName.COLLAPSED)\n .attr('aria-expanded', false)\n }\n }\n }\n }\n\n this.setTransitioning(true)\n\n const complete = () => {\n this.setTransitioning(false)\n $(this._element)\n .removeClass(ClassName.COLLAPSING)\n .addClass(ClassName.COLLAPSE)\n .trigger(Event.HIDDEN)\n }\n\n this._element.style[dimension] = ''\n\n if (!Util.supportsTransitionEnd()) {\n complete()\n return\n }\n\n $(this._element)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(TRANSITION_DURATION)\n }\n\n setTransitioning(isTransitioning) {\n this._isTransitioning = isTransitioning\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n\n this._config = null\n this._parent = null\n this._element = null\n this._triggerArray = null\n this._isTransitioning = null\n }\n\n\n // private\n\n _getConfig(config) {\n config = $.extend({}, Default, config)\n config.toggle = Boolean(config.toggle) // coerce string values\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _getDimension() {\n const hasWidth = $(this._element).hasClass(Dimension.WIDTH)\n return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT\n }\n\n _getParent() {\n let parent = null\n if (Util.isElement(this._config.parent)) {\n parent = this._config.parent\n\n // it's a jQuery object\n if (typeof this._config.parent.jquery !== 'undefined') {\n parent = this._config.parent[0]\n }\n } else {\n parent = $(this._config.parent)[0]\n }\n\n const selector =\n `[data-toggle=\"collapse\"][data-parent=\"${this._config.parent}\"]`\n\n $(parent).find(selector).each((i, element) => {\n this._addAriaAndCollapsedClass(\n Collapse._getTargetFromElement(element),\n [element]\n )\n })\n\n return parent\n }\n\n _addAriaAndCollapsedClass(element, triggerArray) {\n if (element) {\n const isOpen = $(element).hasClass(ClassName.SHOW)\n\n if (triggerArray.length) {\n $(triggerArray)\n .toggleClass(ClassName.COLLAPSED, !isOpen)\n .attr('aria-expanded', isOpen)\n }\n }\n }\n\n\n // static\n\n static _getTargetFromElement(element) {\n const selector = Util.getSelectorFromElement(element)\n return selector ? $(selector)[0] : null\n }\n\n static _jQueryInterface(config) {\n return this.each(function () {\n const $this = $(this)\n let data = $this.data(DATA_KEY)\n const _config = $.extend(\n {},\n Default,\n $this.data(),\n typeof config === 'object' && config\n )\n\n if (!data && _config.toggle && /show|hide/.test(config)) {\n _config.toggle = false\n }\n\n if (!data) {\n data = new Collapse(this, _config)\n $this.data(DATA_KEY, data)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new Error(`No method named \"${config}\"`)\n }\n data[config]()\n }\n })\n }\n\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {\n // preventDefault only for elements (which change the URL) not inside the collapsible element\n if (event.currentTarget.tagName === 'A') {\n event.preventDefault()\n }\n\n const $trigger = $(this)\n const selector = Util.getSelectorFromElement(this)\n $(selector).each(function () {\n const $target = $(this)\n const data = $target.data(DATA_KEY)\n const config = data ? 'toggle' : $trigger.data()\n Collapse._jQueryInterface.call($target, config)\n })\n })\n\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Collapse._jQueryInterface\n $.fn[NAME].Constructor = Collapse\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Collapse._jQueryInterface\n }\n\n return Collapse\n\n})($)\n\nexport default Collapse\n","import $ from 'jquery'\nimport Popper from 'popper.js'\nimport Util from './util'\n\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.0.0-beta.2): dropdown.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Dropdown = (() => {\n\n /**\n * Check for Popper dependency\n * Popper - https://popper.js.org\n */\n if (typeof Popper === 'undefined') {\n throw new Error('Bootstrap dropdown require Popper.js (https://popper.js.org)')\n }\n\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'dropdown'\n const VERSION = '4.0.0-beta.2'\n const DATA_KEY = 'bs.dropdown'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const ESCAPE_KEYCODE = 27 // KeyboardEvent.which value for Escape (Esc) key\n const SPACE_KEYCODE = 32 // KeyboardEvent.which value for space key\n const TAB_KEYCODE = 9 // KeyboardEvent.which value for tab key\n const ARROW_UP_KEYCODE = 38 // KeyboardEvent.which value for up arrow key\n const ARROW_DOWN_KEYCODE = 40 // KeyboardEvent.which value for down arrow key\n const RIGHT_MOUSE_BUTTON_WHICH = 3 // MouseEvent.which value for the right button (assuming a right-handed mouse)\n const REGEXP_KEYDOWN = new RegExp(`${ARROW_UP_KEYCODE}|${ARROW_DOWN_KEYCODE}|${ESCAPE_KEYCODE}`)\n\n const Event = {\n HIDE : `hide${EVENT_KEY}`,\n HIDDEN : `hidden${EVENT_KEY}`,\n SHOW : `show${EVENT_KEY}`,\n SHOWN : `shown${EVENT_KEY}`,\n CLICK : `click${EVENT_KEY}`,\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`,\n KEYDOWN_DATA_API : `keydown${EVENT_KEY}${DATA_API_KEY}`,\n KEYUP_DATA_API : `keyup${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n DISABLED : 'disabled',\n SHOW : 'show',\n DROPUP : 'dropup',\n MENURIGHT : 'dropdown-menu-right',\n MENULEFT : 'dropdown-menu-left'\n }\n\n const Selector = {\n DATA_TOGGLE : '[data-toggle=\"dropdown\"]',\n FORM_CHILD : '.dropdown form',\n MENU : '.dropdown-menu',\n NAVBAR_NAV : '.navbar-nav',\n VISIBLE_ITEMS : '.dropdown-menu .dropdown-item:not(.disabled)'\n }\n\n const AttachmentMap = {\n TOP : 'top-start',\n TOPEND : 'top-end',\n BOTTOM : 'bottom-start',\n BOTTOMEND : 'bottom-end'\n }\n\n const Default = {\n offset : 0,\n flip : true\n }\n\n const DefaultType = {\n offset : '(number|string|function)',\n flip : 'boolean'\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Dropdown {\n\n constructor(element, config) {\n this._element = element\n this._popper = null\n this._config = this._getConfig(config)\n this._menu = this._getMenuElement()\n this._inNavbar = this._detectNavbar()\n\n this._addEventListeners()\n }\n\n\n // getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n static get DefaultType() {\n return DefaultType\n }\n\n // public\n\n toggle() {\n if (this._element.disabled || $(this._element).hasClass(ClassName.DISABLED)) {\n return\n }\n\n const parent = Dropdown._getParentFromElement(this._element)\n const isActive = $(this._menu).hasClass(ClassName.SHOW)\n\n Dropdown._clearMenus()\n\n if (isActive) {\n return\n }\n\n const relatedTarget = {\n relatedTarget : this._element\n }\n const showEvent = $.Event(Event.SHOW, relatedTarget)\n\n $(parent).trigger(showEvent)\n\n if (showEvent.isDefaultPrevented()) {\n return\n }\n\n let element = this._element\n // for dropup with alignment we use the parent as popper container\n if ($(parent).hasClass(ClassName.DROPUP)) {\n if ($(this._menu).hasClass(ClassName.MENULEFT) || $(this._menu).hasClass(ClassName.MENURIGHT)) {\n element = parent\n }\n }\n this._popper = new Popper(element, this._menu, this._getPopperConfig())\n\n // if this is a touch-enabled device we add extra\n // empty mouseover listeners to the body's immediate children;\n // only needed because of broken event delegation on iOS\n // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n if ('ontouchstart' in document.documentElement &&\n !$(parent).closest(Selector.NAVBAR_NAV).length) {\n $('body').children().on('mouseover', null, $.noop)\n }\n\n this._element.focus()\n this._element.setAttribute('aria-expanded', true)\n\n $(this._menu).toggleClass(ClassName.SHOW)\n $(parent)\n .toggleClass(ClassName.SHOW)\n .trigger($.Event(Event.SHOWN, relatedTarget))\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n $(this._element).off(EVENT_KEY)\n this._element = null\n this._menu = null\n if (this._popper !== null) {\n this._popper.destroy()\n }\n this._popper = null\n }\n\n update() {\n this._inNavbar = this._detectNavbar()\n if (this._popper !== null) {\n this._popper.scheduleUpdate()\n }\n }\n\n // private\n\n _addEventListeners() {\n $(this._element).on(Event.CLICK, (event) => {\n event.preventDefault()\n event.stopPropagation()\n this.toggle()\n })\n }\n\n _getConfig(config) {\n config = $.extend(\n {},\n this.constructor.Default,\n $(this._element).data(),\n config\n )\n\n Util.typeCheckConfig(\n NAME,\n config,\n this.constructor.DefaultType\n )\n\n return config\n }\n\n _getMenuElement() {\n if (!this._menu) {\n const parent = Dropdown._getParentFromElement(this._element)\n this._menu = $(parent).find(Selector.MENU)[0]\n }\n return this._menu\n }\n\n _getPlacement() {\n const $parentDropdown = $(this._element).parent()\n let placement = AttachmentMap.BOTTOM\n\n // Handle dropup\n if ($parentDropdown.hasClass(ClassName.DROPUP)) {\n placement = AttachmentMap.TOP\n if ($(this._menu).hasClass(ClassName.MENURIGHT)) {\n placement = AttachmentMap.TOPEND\n }\n } else if ($(this._menu).hasClass(ClassName.MENURIGHT)) {\n placement = AttachmentMap.BOTTOMEND\n }\n return placement\n }\n\n _detectNavbar() {\n return $(this._element).closest('.navbar').length > 0\n }\n\n _getPopperConfig() {\n const offsetConf = {}\n if (typeof this._config.offset === 'function') {\n offsetConf.fn = (data) => {\n data.offsets = $.extend({}, data.offsets, this._config.offset(data.offsets) || {})\n return data\n }\n } else {\n offsetConf.offset = this._config.offset\n }\n const popperConfig = {\n placement : this._getPlacement(),\n modifiers : {\n offset : offsetConf,\n flip : {\n enabled : this._config.flip\n }\n }\n }\n\n // Disable Popper.js for Dropdown in Navbar\n if (this._inNavbar) {\n popperConfig.modifiers.applyStyle = {\n enabled: !this._inNavbar\n }\n }\n return popperConfig\n }\n\n // static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n const _config = typeof config === 'object' ? config : null\n\n if (!data) {\n data = new Dropdown(this, _config)\n $(this).data(DATA_KEY, data)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new Error(`No method named \"${config}\"`)\n }\n data[config]()\n }\n })\n }\n\n static _clearMenus(event) {\n if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH ||\n event.type === 'keyup' && event.which !== TAB_KEYCODE)) {\n return\n }\n\n const toggles = $.makeArray($(Selector.DATA_TOGGLE))\n for (let i = 0; i < toggles.length; i++) {\n const parent = Dropdown._getParentFromElement(toggles[i])\n const context = $(toggles[i]).data(DATA_KEY)\n const relatedTarget = {\n relatedTarget : toggles[i]\n }\n\n if (!context) {\n continue\n }\n\n const dropdownMenu = context._menu\n if (!$(parent).hasClass(ClassName.SHOW)) {\n continue\n }\n\n if (event && (event.type === 'click' &&\n /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE)\n && $.contains(parent, event.target)) {\n continue\n }\n\n const hideEvent = $.Event(Event.HIDE, relatedTarget)\n $(parent).trigger(hideEvent)\n if (hideEvent.isDefaultPrevented()) {\n continue\n }\n\n // if this is a touch-enabled device we remove the extra\n // empty mouseover listeners we added for iOS support\n if ('ontouchstart' in document.documentElement) {\n $('body').children().off('mouseover', null, $.noop)\n }\n\n toggles[i].setAttribute('aria-expanded', 'false')\n\n $(dropdownMenu).removeClass(ClassName.SHOW)\n $(parent)\n .removeClass(ClassName.SHOW)\n .trigger($.Event(Event.HIDDEN, relatedTarget))\n }\n }\n\n static _getParentFromElement(element) {\n let parent\n const selector = Util.getSelectorFromElement(element)\n\n if (selector) {\n parent = $(selector)[0]\n }\n\n return parent || element.parentNode\n }\n\n static _dataApiKeydownHandler(event) {\n if (!REGEXP_KEYDOWN.test(event.which) || /button/i.test(event.target.tagName) && event.which === SPACE_KEYCODE ||\n /input|textarea/i.test(event.target.tagName)) {\n return\n }\n\n event.preventDefault()\n event.stopPropagation()\n\n if (this.disabled || $(this).hasClass(ClassName.DISABLED)) {\n return\n }\n\n const parent = Dropdown._getParentFromElement(this)\n const isActive = $(parent).hasClass(ClassName.SHOW)\n\n if (!isActive && (event.which !== ESCAPE_KEYCODE || event.which !== SPACE_KEYCODE) ||\n isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {\n\n if (event.which === ESCAPE_KEYCODE) {\n const toggle = $(parent).find(Selector.DATA_TOGGLE)[0]\n $(toggle).trigger('focus')\n }\n\n $(this).trigger('click')\n return\n }\n\n const items = $(parent).find(Selector.VISIBLE_ITEMS).get()\n\n if (!items.length) {\n return\n }\n\n let index = items.indexOf(event.target)\n\n if (event.which === ARROW_UP_KEYCODE && index > 0) { // up\n index--\n }\n\n if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) { // down\n index++\n }\n\n if (index < 0) {\n index = 0\n }\n\n items[index].focus()\n }\n\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document)\n .on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler)\n .on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler)\n .on(`${Event.CLICK_DATA_API} ${Event.KEYUP_DATA_API}`, Dropdown._clearMenus)\n .on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {\n event.preventDefault()\n event.stopPropagation()\n Dropdown._jQueryInterface.call($(this), 'toggle')\n })\n .on(Event.CLICK_DATA_API, Selector.FORM_CHILD, (e) => {\n e.stopPropagation()\n })\n\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Dropdown._jQueryInterface\n $.fn[NAME].Constructor = Dropdown\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Dropdown._jQueryInterface\n }\n\n return Dropdown\n\n})($, Popper)\n\nexport default Dropdown\n","import $ from 'jquery'\nimport Util from './util'\n\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.0.0-beta.2): modal.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Modal = (() => {\n\n\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'modal'\n const VERSION = '4.0.0-beta.2'\n const DATA_KEY = 'bs.modal'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const TRANSITION_DURATION = 300\n const BACKDROP_TRANSITION_DURATION = 150\n const ESCAPE_KEYCODE = 27 // KeyboardEvent.which value for Escape (Esc) key\n\n const Default = {\n backdrop : true,\n keyboard : true,\n focus : true,\n show : true\n }\n\n const DefaultType = {\n backdrop : '(boolean|string)',\n keyboard : 'boolean',\n focus : 'boolean',\n show : 'boolean'\n }\n\n const Event = {\n HIDE : `hide${EVENT_KEY}`,\n HIDDEN : `hidden${EVENT_KEY}`,\n SHOW : `show${EVENT_KEY}`,\n SHOWN : `shown${EVENT_KEY}`,\n FOCUSIN : `focusin${EVENT_KEY}`,\n RESIZE : `resize${EVENT_KEY}`,\n CLICK_DISMISS : `click.dismiss${EVENT_KEY}`,\n KEYDOWN_DISMISS : `keydown.dismiss${EVENT_KEY}`,\n MOUSEUP_DISMISS : `mouseup.dismiss${EVENT_KEY}`,\n MOUSEDOWN_DISMISS : `mousedown.dismiss${EVENT_KEY}`,\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n SCROLLBAR_MEASURER : 'modal-scrollbar-measure',\n BACKDROP : 'modal-backdrop',\n OPEN : 'modal-open',\n FADE : 'fade',\n SHOW : 'show'\n }\n\n const Selector = {\n DIALOG : '.modal-dialog',\n DATA_TOGGLE : '[data-toggle=\"modal\"]',\n DATA_DISMISS : '[data-dismiss=\"modal\"]',\n FIXED_CONTENT : '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',\n STICKY_CONTENT : '.sticky-top',\n NAVBAR_TOGGLER : '.navbar-toggler'\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Modal {\n\n constructor(element, config) {\n this._config = this._getConfig(config)\n this._element = element\n this._dialog = $(element).find(Selector.DIALOG)[0]\n this._backdrop = null\n this._isShown = false\n this._isBodyOverflowing = false\n this._ignoreBackdropClick = false\n this._originalBodyPadding = 0\n this._scrollbarWidth = 0\n }\n\n\n // getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n\n // public\n\n toggle(relatedTarget) {\n return this._isShown ? this.hide() : this.show(relatedTarget)\n }\n\n show(relatedTarget) {\n if (this._isTransitioning || this._isShown) {\n return\n }\n\n if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {\n this._isTransitioning = true\n }\n\n const showEvent = $.Event(Event.SHOW, {\n relatedTarget\n })\n\n $(this._element).trigger(showEvent)\n\n if (this._isShown || showEvent.isDefaultPrevented()) {\n return\n }\n\n this._isShown = true\n\n this._checkScrollbar()\n this._setScrollbar()\n\n this._adjustDialog()\n\n $(document.body).addClass(ClassName.OPEN)\n\n this._setEscapeEvent()\n this._setResizeEvent()\n\n $(this._element).on(\n Event.CLICK_DISMISS,\n Selector.DATA_DISMISS,\n (event) => this.hide(event)\n )\n\n $(this._dialog).on(Event.MOUSEDOWN_DISMISS, () => {\n $(this._element).one(Event.MOUSEUP_DISMISS, (event) => {\n if ($(event.target).is(this._element)) {\n this._ignoreBackdropClick = true\n }\n })\n })\n\n this._showBackdrop(() => this._showElement(relatedTarget))\n }\n\n hide(event) {\n if (event) {\n event.preventDefault()\n }\n\n if (this._isTransitioning || !this._isShown) {\n return\n }\n\n const hideEvent = $.Event(Event.HIDE)\n\n $(this._element).trigger(hideEvent)\n\n if (!this._isShown || hideEvent.isDefaultPrevented()) {\n return\n }\n\n this._isShown = false\n\n const transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)\n\n if (transition) {\n this._isTransitioning = true\n }\n\n this._setEscapeEvent()\n this._setResizeEvent()\n\n $(document).off(Event.FOCUSIN)\n\n $(this._element).removeClass(ClassName.SHOW)\n\n $(this._element).off(Event.CLICK_DISMISS)\n $(this._dialog).off(Event.MOUSEDOWN_DISMISS)\n\n if (transition) {\n\n $(this._element)\n .one(Util.TRANSITION_END, (event) => this._hideModal(event))\n .emulateTransitionEnd(TRANSITION_DURATION)\n } else {\n this._hideModal()\n }\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n\n $(window, document, this._element, this._backdrop).off(EVENT_KEY)\n\n this._config = null\n this._element = null\n this._dialog = null\n this._backdrop = null\n this._isShown = null\n this._isBodyOverflowing = null\n this._ignoreBackdropClick = null\n this._scrollbarWidth = null\n }\n\n handleUpdate() {\n this._adjustDialog()\n }\n\n // private\n\n _getConfig(config) {\n config = $.extend({}, Default, config)\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _showElement(relatedTarget) {\n const transition = Util.supportsTransitionEnd() &&\n $(this._element).hasClass(ClassName.FADE)\n\n if (!this._element.parentNode ||\n this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {\n // don't move modals dom position\n document.body.appendChild(this._element)\n }\n\n this._element.style.display = 'block'\n this._element.removeAttribute('aria-hidden')\n this._element.scrollTop = 0\n\n if (transition) {\n Util.reflow(this._element)\n }\n\n $(this._element).addClass(ClassName.SHOW)\n\n if (this._config.focus) {\n this._enforceFocus()\n }\n\n const shownEvent = $.Event(Event.SHOWN, {\n relatedTarget\n })\n\n const transitionComplete = () => {\n if (this._config.focus) {\n this._element.focus()\n }\n this._isTransitioning = false\n $(this._element).trigger(shownEvent)\n }\n\n if (transition) {\n $(this._dialog)\n .one(Util.TRANSITION_END, transitionComplete)\n .emulateTransitionEnd(TRANSITION_DURATION)\n } else {\n transitionComplete()\n }\n }\n\n _enforceFocus() {\n $(document)\n .off(Event.FOCUSIN) // guard against infinite focus loop\n .on(Event.FOCUSIN, (event) => {\n if (document !== event.target &&\n this._element !== event.target &&\n !$(this._element).has(event.target).length) {\n this._element.focus()\n }\n })\n }\n\n _setEscapeEvent() {\n if (this._isShown && this._config.keyboard) {\n $(this._element).on(Event.KEYDOWN_DISMISS, (event) => {\n if (event.which === ESCAPE_KEYCODE) {\n event.preventDefault()\n this.hide()\n }\n })\n\n } else if (!this._isShown) {\n $(this._element).off(Event.KEYDOWN_DISMISS)\n }\n }\n\n _setResizeEvent() {\n if (this._isShown) {\n $(window).on(Event.RESIZE, (event) => this.handleUpdate(event))\n } else {\n $(window).off(Event.RESIZE)\n }\n }\n\n _hideModal() {\n this._element.style.display = 'none'\n this._element.setAttribute('aria-hidden', true)\n this._isTransitioning = false\n this._showBackdrop(() => {\n $(document.body).removeClass(ClassName.OPEN)\n this._resetAdjustments()\n this._resetScrollbar()\n $(this._element).trigger(Event.HIDDEN)\n })\n }\n\n _removeBackdrop() {\n if (this._backdrop) {\n $(this._backdrop).remove()\n this._backdrop = null\n }\n }\n\n _showBackdrop(callback) {\n const animate = $(this._element).hasClass(ClassName.FADE) ?\n ClassName.FADE : ''\n\n if (this._isShown && this._config.backdrop) {\n const doAnimate = Util.supportsTransitionEnd() && animate\n\n this._backdrop = document.createElement('div')\n this._backdrop.className = ClassName.BACKDROP\n\n if (animate) {\n $(this._backdrop).addClass(animate)\n }\n\n $(this._backdrop).appendTo(document.body)\n\n $(this._element).on(Event.CLICK_DISMISS, (event) => {\n if (this._ignoreBackdropClick) {\n this._ignoreBackdropClick = false\n return\n }\n if (event.target !== event.currentTarget) {\n return\n }\n if (this._config.backdrop === 'static') {\n this._element.focus()\n } else {\n this.hide()\n }\n })\n\n if (doAnimate) {\n Util.reflow(this._backdrop)\n }\n\n $(this._backdrop).addClass(ClassName.SHOW)\n\n if (!callback) {\n return\n }\n\n if (!doAnimate) {\n callback()\n return\n }\n\n $(this._backdrop)\n .one(Util.TRANSITION_END, callback)\n .emulateTransitionEnd(BACKDROP_TRANSITION_DURATION)\n\n } else if (!this._isShown && this._backdrop) {\n $(this._backdrop).removeClass(ClassName.SHOW)\n\n const callbackRemove = () => {\n this._removeBackdrop()\n if (callback) {\n callback()\n }\n }\n\n if (Util.supportsTransitionEnd() &&\n $(this._element).hasClass(ClassName.FADE)) {\n $(this._backdrop)\n .one(Util.TRANSITION_END, callbackRemove)\n .emulateTransitionEnd(BACKDROP_TRANSITION_DURATION)\n } else {\n callbackRemove()\n }\n\n } else if (callback) {\n callback()\n }\n }\n\n\n // ----------------------------------------------------------------------\n // the following methods are used to handle overflowing modals\n // todo (fat): these should probably be refactored out of modal.js\n // ----------------------------------------------------------------------\n\n _adjustDialog() {\n const isModalOverflowing =\n this._element.scrollHeight > document.documentElement.clientHeight\n\n if (!this._isBodyOverflowing && isModalOverflowing) {\n this._element.style.paddingLeft = `${this._scrollbarWidth}px`\n }\n\n if (this._isBodyOverflowing && !isModalOverflowing) {\n this._element.style.paddingRight = `${this._scrollbarWidth}px`\n }\n }\n\n _resetAdjustments() {\n this._element.style.paddingLeft = ''\n this._element.style.paddingRight = ''\n }\n\n _checkScrollbar() {\n const rect = document.body.getBoundingClientRect()\n this._isBodyOverflowing = rect.left + rect.right < window.innerWidth\n this._scrollbarWidth = this._getScrollbarWidth()\n }\n\n _setScrollbar() {\n if (this._isBodyOverflowing) {\n // Note: DOMNode.style.paddingRight returns the actual value or '' if not set\n // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set\n\n // Adjust fixed content padding\n $(Selector.FIXED_CONTENT).each((index, element) => {\n const actualPadding = $(element)[0].style.paddingRight\n const calculatedPadding = $(element).css('padding-right')\n $(element).data('padding-right', actualPadding).css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)\n })\n\n // Adjust sticky content margin\n $(Selector.STICKY_CONTENT).each((index, element) => {\n const actualMargin = $(element)[0].style.marginRight\n const calculatedMargin = $(element).css('margin-right')\n $(element).data('margin-right', actualMargin).css('margin-right', `${parseFloat(calculatedMargin) - this._scrollbarWidth}px`)\n })\n\n // Adjust navbar-toggler margin\n $(Selector.NAVBAR_TOGGLER).each((index, element) => {\n const actualMargin = $(element)[0].style.marginRight\n const calculatedMargin = $(element).css('margin-right')\n $(element).data('margin-right', actualMargin).css('margin-right', `${parseFloat(calculatedMargin) + this._scrollbarWidth}px`)\n })\n\n // Adjust body padding\n const actualPadding = document.body.style.paddingRight\n const calculatedPadding = $('body').css('padding-right')\n $('body').data('padding-right', actualPadding).css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)\n }\n }\n\n _resetScrollbar() {\n // Restore fixed content padding\n $(Selector.FIXED_CONTENT).each((index, element) => {\n const padding = $(element).data('padding-right')\n if (typeof padding !== 'undefined') {\n $(element).css('padding-right', padding).removeData('padding-right')\n }\n })\n\n // Restore sticky content and navbar-toggler margin\n $(`${Selector.STICKY_CONTENT}, ${Selector.NAVBAR_TOGGLER}`).each((index, element) => {\n const margin = $(element).data('margin-right')\n if (typeof margin !== 'undefined') {\n $(element).css('margin-right', margin).removeData('margin-right')\n }\n })\n\n // Restore body padding\n const padding = $('body').data('padding-right')\n if (typeof padding !== 'undefined') {\n $('body').css('padding-right', padding).removeData('padding-right')\n }\n }\n\n _getScrollbarWidth() { // thx d.walsh\n const scrollDiv = document.createElement('div')\n scrollDiv.className = ClassName.SCROLLBAR_MEASURER\n document.body.appendChild(scrollDiv)\n const scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth\n document.body.removeChild(scrollDiv)\n return scrollbarWidth\n }\n\n\n // static\n\n static _jQueryInterface(config, relatedTarget) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n const _config = $.extend(\n {},\n Modal.Default,\n $(this).data(),\n typeof config === 'object' && config\n )\n\n if (!data) {\n data = new Modal(this, _config)\n $(this).data(DATA_KEY, data)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new Error(`No method named \"${config}\"`)\n }\n data[config](relatedTarget)\n } else if (_config.show) {\n data.show(relatedTarget)\n }\n })\n }\n\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {\n let target\n const selector = Util.getSelectorFromElement(this)\n\n if (selector) {\n target = $(selector)[0]\n }\n\n const config = $(target).data(DATA_KEY) ?\n 'toggle' : $.extend({}, $(target).data(), $(this).data())\n\n if (this.tagName === 'A' || this.tagName === 'AREA') {\n event.preventDefault()\n }\n\n const $target = $(target).one(Event.SHOW, (showEvent) => {\n if (showEvent.isDefaultPrevented()) {\n // only register focus restorer if modal will actually get shown\n return\n }\n\n $target.one(Event.HIDDEN, () => {\n if ($(this).is(':visible')) {\n this.focus()\n }\n })\n })\n\n Modal._jQueryInterface.call($(target), config, this)\n })\n\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Modal._jQueryInterface\n $.fn[NAME].Constructor = Modal\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Modal._jQueryInterface\n }\n\n return Modal\n\n})($)\n\nexport default Modal\n","import $ from 'jquery'\nimport Popper from 'popper.js'\nimport Util from './util'\n\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.0.0-beta.2): tooltip.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Tooltip = (() => {\n\n /**\n * Check for Popper dependency\n * Popper - https://popper.js.org\n */\n if (typeof Popper === 'undefined') {\n throw new Error('Bootstrap tooltips require Popper.js (https://popper.js.org)')\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'tooltip'\n const VERSION = '4.0.0-beta.2'\n const DATA_KEY = 'bs.tooltip'\n const EVENT_KEY = `.${DATA_KEY}`\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const TRANSITION_DURATION = 150\n const CLASS_PREFIX = 'bs-tooltip'\n const BSCLS_PREFIX_REGEX = new RegExp(`(^|\\\\s)${CLASS_PREFIX}\\\\S+`, 'g')\n\n const DefaultType = {\n animation : 'boolean',\n template : 'string',\n title : '(string|element|function)',\n trigger : 'string',\n delay : '(number|object)',\n html : 'boolean',\n selector : '(string|boolean)',\n placement : '(string|function)',\n offset : '(number|string)',\n container : '(string|element|boolean)',\n fallbackPlacement : '(string|array)'\n }\n\n const AttachmentMap = {\n AUTO : 'auto',\n TOP : 'top',\n RIGHT : 'right',\n BOTTOM : 'bottom',\n LEFT : 'left'\n }\n\n const Default = {\n animation : true,\n template : '
    '\n + '
    '\n + '
    ',\n trigger : 'hover focus',\n title : '',\n delay : 0,\n html : false,\n selector : false,\n placement : 'top',\n offset : 0,\n container : false,\n fallbackPlacement : 'flip'\n }\n\n const HoverState = {\n SHOW : 'show',\n OUT : 'out'\n }\n\n const Event = {\n HIDE : `hide${EVENT_KEY}`,\n HIDDEN : `hidden${EVENT_KEY}`,\n SHOW : `show${EVENT_KEY}`,\n SHOWN : `shown${EVENT_KEY}`,\n INSERTED : `inserted${EVENT_KEY}`,\n CLICK : `click${EVENT_KEY}`,\n FOCUSIN : `focusin${EVENT_KEY}`,\n FOCUSOUT : `focusout${EVENT_KEY}`,\n MOUSEENTER : `mouseenter${EVENT_KEY}`,\n MOUSELEAVE : `mouseleave${EVENT_KEY}`\n }\n\n const ClassName = {\n FADE : 'fade',\n SHOW : 'show'\n }\n\n const Selector = {\n TOOLTIP : '.tooltip',\n TOOLTIP_INNER : '.tooltip-inner',\n ARROW : '.arrow'\n }\n\n const Trigger = {\n HOVER : 'hover',\n FOCUS : 'focus',\n CLICK : 'click',\n MANUAL : 'manual'\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Tooltip {\n\n constructor(element, config) {\n\n // private\n this._isEnabled = true\n this._timeout = 0\n this._hoverState = ''\n this._activeTrigger = {}\n this._popper = null\n\n // protected\n this.element = element\n this.config = this._getConfig(config)\n this.tip = null\n\n this._setListeners()\n\n }\n\n\n // getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n static get NAME() {\n return NAME\n }\n\n static get DATA_KEY() {\n return DATA_KEY\n }\n\n static get Event() {\n return Event\n }\n\n static get EVENT_KEY() {\n return EVENT_KEY\n }\n\n static get DefaultType() {\n return DefaultType\n }\n\n\n // public\n\n enable() {\n this._isEnabled = true\n }\n\n disable() {\n this._isEnabled = false\n }\n\n toggleEnabled() {\n this._isEnabled = !this._isEnabled\n }\n\n toggle(event) {\n if (!this._isEnabled) {\n return\n }\n\n if (event) {\n const dataKey = this.constructor.DATA_KEY\n let context = $(event.currentTarget).data(dataKey)\n\n if (!context) {\n context = new this.constructor(\n event.currentTarget,\n this._getDelegateConfig()\n )\n $(event.currentTarget).data(dataKey, context)\n }\n\n context._activeTrigger.click = !context._activeTrigger.click\n\n if (context._isWithActiveTrigger()) {\n context._enter(null, context)\n } else {\n context._leave(null, context)\n }\n\n } else {\n\n if ($(this.getTipElement()).hasClass(ClassName.SHOW)) {\n this._leave(null, this)\n return\n }\n\n this._enter(null, this)\n }\n }\n\n dispose() {\n clearTimeout(this._timeout)\n\n $.removeData(this.element, this.constructor.DATA_KEY)\n\n $(this.element).off(this.constructor.EVENT_KEY)\n $(this.element).closest('.modal').off('hide.bs.modal')\n\n if (this.tip) {\n $(this.tip).remove()\n }\n\n this._isEnabled = null\n this._timeout = null\n this._hoverState = null\n this._activeTrigger = null\n if (this._popper !== null) {\n this._popper.destroy()\n }\n\n this._popper = null\n this.element = null\n this.config = null\n this.tip = null\n }\n\n show() {\n if ($(this.element).css('display') === 'none') {\n throw new Error('Please use show on visible elements')\n }\n\n const showEvent = $.Event(this.constructor.Event.SHOW)\n if (this.isWithContent() && this._isEnabled) {\n $(this.element).trigger(showEvent)\n\n const isInTheDom = $.contains(\n this.element.ownerDocument.documentElement,\n this.element\n )\n\n if (showEvent.isDefaultPrevented() || !isInTheDom) {\n return\n }\n\n const tip = this.getTipElement()\n const tipId = Util.getUID(this.constructor.NAME)\n\n tip.setAttribute('id', tipId)\n this.element.setAttribute('aria-describedby', tipId)\n\n this.setContent()\n\n if (this.config.animation) {\n $(tip).addClass(ClassName.FADE)\n }\n\n const placement = typeof this.config.placement === 'function' ?\n this.config.placement.call(this, tip, this.element) :\n this.config.placement\n\n const attachment = this._getAttachment(placement)\n this.addAttachmentClass(attachment)\n\n const container = this.config.container === false ? document.body : $(this.config.container)\n\n $(tip).data(this.constructor.DATA_KEY, this)\n\n if (!$.contains(this.element.ownerDocument.documentElement, this.tip)) {\n $(tip).appendTo(container)\n }\n\n $(this.element).trigger(this.constructor.Event.INSERTED)\n\n this._popper = new Popper(this.element, tip, {\n placement: attachment,\n modifiers: {\n offset: {\n offset: this.config.offset\n },\n flip: {\n behavior: this.config.fallbackPlacement\n },\n arrow: {\n element: Selector.ARROW\n }\n },\n onCreate: (data) => {\n if (data.originalPlacement !== data.placement) {\n this._handlePopperPlacementChange(data)\n }\n },\n onUpdate : (data) => {\n this._handlePopperPlacementChange(data)\n }\n })\n\n $(tip).addClass(ClassName.SHOW)\n\n // if this is a touch-enabled device we add extra\n // empty mouseover listeners to the body's immediate children;\n // only needed because of broken event delegation on iOS\n // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n if ('ontouchstart' in document.documentElement) {\n $('body').children().on('mouseover', null, $.noop)\n }\n\n const complete = () => {\n if (this.config.animation) {\n this._fixTransition()\n }\n const prevHoverState = this._hoverState\n this._hoverState = null\n\n $(this.element).trigger(this.constructor.Event.SHOWN)\n\n if (prevHoverState === HoverState.OUT) {\n this._leave(null, this)\n }\n }\n\n if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {\n $(this.tip)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(Tooltip._TRANSITION_DURATION)\n } else {\n complete()\n }\n }\n }\n\n hide(callback) {\n const tip = this.getTipElement()\n const hideEvent = $.Event(this.constructor.Event.HIDE)\n const complete = () => {\n if (this._hoverState !== HoverState.SHOW && tip.parentNode) {\n tip.parentNode.removeChild(tip)\n }\n\n this._cleanTipClass()\n this.element.removeAttribute('aria-describedby')\n $(this.element).trigger(this.constructor.Event.HIDDEN)\n if (this._popper !== null) {\n this._popper.destroy()\n }\n\n if (callback) {\n callback()\n }\n }\n\n $(this.element).trigger(hideEvent)\n\n if (hideEvent.isDefaultPrevented()) {\n return\n }\n\n $(tip).removeClass(ClassName.SHOW)\n\n // if this is a touch-enabled device we remove the extra\n // empty mouseover listeners we added for iOS support\n if ('ontouchstart' in document.documentElement) {\n $('body').children().off('mouseover', null, $.noop)\n }\n\n this._activeTrigger[Trigger.CLICK] = false\n this._activeTrigger[Trigger.FOCUS] = false\n this._activeTrigger[Trigger.HOVER] = false\n\n if (Util.supportsTransitionEnd() &&\n $(this.tip).hasClass(ClassName.FADE)) {\n\n $(tip)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(TRANSITION_DURATION)\n\n } else {\n complete()\n }\n\n this._hoverState = ''\n\n }\n\n update() {\n if (this._popper !== null) {\n this._popper.scheduleUpdate()\n }\n }\n\n // protected\n\n isWithContent() {\n return Boolean(this.getTitle())\n }\n\n addAttachmentClass(attachment) {\n $(this.getTipElement()).addClass(`${CLASS_PREFIX}-${attachment}`)\n }\n\n getTipElement() {\n this.tip = this.tip || $(this.config.template)[0]\n return this.tip\n }\n\n setContent() {\n const $tip = $(this.getTipElement())\n this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle())\n $tip.removeClass(`${ClassName.FADE} ${ClassName.SHOW}`)\n }\n\n setElementContent($element, content) {\n const html = this.config.html\n if (typeof content === 'object' && (content.nodeType || content.jquery)) {\n // content is a DOM node or a jQuery\n if (html) {\n if (!$(content).parent().is($element)) {\n $element.empty().append(content)\n }\n } else {\n $element.text($(content).text())\n }\n } else {\n $element[html ? 'html' : 'text'](content)\n }\n }\n\n getTitle() {\n let title = this.element.getAttribute('data-original-title')\n\n if (!title) {\n title = typeof this.config.title === 'function' ?\n this.config.title.call(this.element) :\n this.config.title\n }\n\n return title\n }\n\n\n // private\n\n _getAttachment(placement) {\n return AttachmentMap[placement.toUpperCase()]\n }\n\n _setListeners() {\n const triggers = this.config.trigger.split(' ')\n\n triggers.forEach((trigger) => {\n if (trigger === 'click') {\n $(this.element).on(\n this.constructor.Event.CLICK,\n this.config.selector,\n (event) => this.toggle(event)\n )\n\n } else if (trigger !== Trigger.MANUAL) {\n const eventIn = trigger === Trigger.HOVER ?\n this.constructor.Event.MOUSEENTER :\n this.constructor.Event.FOCUSIN\n const eventOut = trigger === Trigger.HOVER ?\n this.constructor.Event.MOUSELEAVE :\n this.constructor.Event.FOCUSOUT\n\n $(this.element)\n .on(\n eventIn,\n this.config.selector,\n (event) => this._enter(event)\n )\n .on(\n eventOut,\n this.config.selector,\n (event) => this._leave(event)\n )\n }\n\n $(this.element).closest('.modal').on(\n 'hide.bs.modal',\n () => this.hide()\n )\n })\n\n if (this.config.selector) {\n this.config = $.extend({}, this.config, {\n trigger : 'manual',\n selector : ''\n })\n } else {\n this._fixTitle()\n }\n }\n\n _fixTitle() {\n const titleType = typeof this.element.getAttribute('data-original-title')\n if (this.element.getAttribute('title') ||\n titleType !== 'string') {\n this.element.setAttribute(\n 'data-original-title',\n this.element.getAttribute('title') || ''\n )\n this.element.setAttribute('title', '')\n }\n }\n\n _enter(event, context) {\n const dataKey = this.constructor.DATA_KEY\n\n context = context || $(event.currentTarget).data(dataKey)\n\n if (!context) {\n context = new this.constructor(\n event.currentTarget,\n this._getDelegateConfig()\n )\n $(event.currentTarget).data(dataKey, context)\n }\n\n if (event) {\n context._activeTrigger[\n event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER\n ] = true\n }\n\n if ($(context.getTipElement()).hasClass(ClassName.SHOW) ||\n context._hoverState === HoverState.SHOW) {\n context._hoverState = HoverState.SHOW\n return\n }\n\n clearTimeout(context._timeout)\n\n context._hoverState = HoverState.SHOW\n\n if (!context.config.delay || !context.config.delay.show) {\n context.show()\n return\n }\n\n context._timeout = setTimeout(() => {\n if (context._hoverState === HoverState.SHOW) {\n context.show()\n }\n }, context.config.delay.show)\n }\n\n _leave(event, context) {\n const dataKey = this.constructor.DATA_KEY\n\n context = context || $(event.currentTarget).data(dataKey)\n\n if (!context) {\n context = new this.constructor(\n event.currentTarget,\n this._getDelegateConfig()\n )\n $(event.currentTarget).data(dataKey, context)\n }\n\n if (event) {\n context._activeTrigger[\n event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER\n ] = false\n }\n\n if (context._isWithActiveTrigger()) {\n return\n }\n\n clearTimeout(context._timeout)\n\n context._hoverState = HoverState.OUT\n\n if (!context.config.delay || !context.config.delay.hide) {\n context.hide()\n return\n }\n\n context._timeout = setTimeout(() => {\n if (context._hoverState === HoverState.OUT) {\n context.hide()\n }\n }, context.config.delay.hide)\n }\n\n _isWithActiveTrigger() {\n for (const trigger in this._activeTrigger) {\n if (this._activeTrigger[trigger]) {\n return true\n }\n }\n\n return false\n }\n\n _getConfig(config) {\n config = $.extend(\n {},\n this.constructor.Default,\n $(this.element).data(),\n config\n )\n\n if (typeof config.delay === 'number') {\n config.delay = {\n show : config.delay,\n hide : config.delay\n }\n }\n\n if (typeof config.title === 'number') {\n config.title = config.title.toString()\n }\n\n if (typeof config.content === 'number') {\n config.content = config.content.toString()\n }\n\n Util.typeCheckConfig(\n NAME,\n config,\n this.constructor.DefaultType\n )\n\n return config\n }\n\n _getDelegateConfig() {\n const config = {}\n\n if (this.config) {\n for (const key in this.config) {\n if (this.constructor.Default[key] !== this.config[key]) {\n config[key] = this.config[key]\n }\n }\n }\n\n return config\n }\n\n _cleanTipClass() {\n const $tip = $(this.getTipElement())\n const tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX)\n if (tabClass !== null && tabClass.length > 0) {\n $tip.removeClass(tabClass.join(''))\n }\n }\n\n _handlePopperPlacementChange(data) {\n this._cleanTipClass()\n this.addAttachmentClass(this._getAttachment(data.placement))\n }\n\n _fixTransition() {\n const tip = this.getTipElement()\n const initConfigAnimation = this.config.animation\n if (tip.getAttribute('x-placement') !== null) {\n return\n }\n $(tip).removeClass(ClassName.FADE)\n this.config.animation = false\n this.hide()\n this.show()\n this.config.animation = initConfigAnimation\n }\n\n // static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n const _config = typeof config === 'object' && config\n\n if (!data && /dispose|hide/.test(config)) {\n return\n }\n\n if (!data) {\n data = new Tooltip(this, _config)\n $(this).data(DATA_KEY, data)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new Error(`No method named \"${config}\"`)\n }\n data[config]()\n }\n })\n }\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Tooltip._jQueryInterface\n $.fn[NAME].Constructor = Tooltip\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Tooltip._jQueryInterface\n }\n\n return Tooltip\n\n})($, Popper)\n\nexport default Tooltip\n","import $ from 'jquery'\nimport Tooltip from './tooltip'\n\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.0.0-beta.2): popover.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Popover = (() => {\n\n\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'popover'\n const VERSION = '4.0.0-beta.2'\n const DATA_KEY = 'bs.popover'\n const EVENT_KEY = `.${DATA_KEY}`\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const CLASS_PREFIX = 'bs-popover'\n const BSCLS_PREFIX_REGEX = new RegExp(`(^|\\\\s)${CLASS_PREFIX}\\\\S+`, 'g')\n\n const Default = $.extend({}, Tooltip.Default, {\n placement : 'right',\n trigger : 'click',\n content : '',\n template : '
    '\n + '
    '\n + '

    '\n + '
    '\n })\n\n const DefaultType = $.extend({}, Tooltip.DefaultType, {\n content : '(string|element|function)'\n })\n\n const ClassName = {\n FADE : 'fade',\n SHOW : 'show'\n }\n\n const Selector = {\n TITLE : '.popover-header',\n CONTENT : '.popover-body'\n }\n\n const Event = {\n HIDE : `hide${EVENT_KEY}`,\n HIDDEN : `hidden${EVENT_KEY}`,\n SHOW : `show${EVENT_KEY}`,\n SHOWN : `shown${EVENT_KEY}`,\n INSERTED : `inserted${EVENT_KEY}`,\n CLICK : `click${EVENT_KEY}`,\n FOCUSIN : `focusin${EVENT_KEY}`,\n FOCUSOUT : `focusout${EVENT_KEY}`,\n MOUSEENTER : `mouseenter${EVENT_KEY}`,\n MOUSELEAVE : `mouseleave${EVENT_KEY}`\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Popover extends Tooltip {\n\n\n // getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n static get NAME() {\n return NAME\n }\n\n static get DATA_KEY() {\n return DATA_KEY\n }\n\n static get Event() {\n return Event\n }\n\n static get EVENT_KEY() {\n return EVENT_KEY\n }\n\n static get DefaultType() {\n return DefaultType\n }\n\n\n // overrides\n\n isWithContent() {\n return this.getTitle() || this._getContent()\n }\n\n addAttachmentClass(attachment) {\n $(this.getTipElement()).addClass(`${CLASS_PREFIX}-${attachment}`)\n }\n\n getTipElement() {\n this.tip = this.tip || $(this.config.template)[0]\n return this.tip\n }\n\n setContent() {\n const $tip = $(this.getTipElement())\n\n // we use append for html objects to maintain js events\n this.setElementContent($tip.find(Selector.TITLE), this.getTitle())\n this.setElementContent($tip.find(Selector.CONTENT), this._getContent())\n\n $tip.removeClass(`${ClassName.FADE} ${ClassName.SHOW}`)\n }\n\n // private\n\n _getContent() {\n return this.element.getAttribute('data-content')\n || (typeof this.config.content === 'function' ?\n this.config.content.call(this.element) :\n this.config.content)\n }\n\n _cleanTipClass() {\n const $tip = $(this.getTipElement())\n const tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX)\n if (tabClass !== null && tabClass.length > 0) {\n $tip.removeClass(tabClass.join(''))\n }\n }\n\n\n // static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n const _config = typeof config === 'object' ? config : null\n\n if (!data && /destroy|hide/.test(config)) {\n return\n }\n\n if (!data) {\n data = new Popover(this, _config)\n $(this).data(DATA_KEY, data)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new Error(`No method named \"${config}\"`)\n }\n data[config]()\n }\n })\n }\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Popover._jQueryInterface\n $.fn[NAME].Constructor = Popover\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Popover._jQueryInterface\n }\n\n return Popover\n\n})($)\n\nexport default Popover\n","import $ from 'jquery'\nimport Util from './util'\n\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.0.0-beta.2): scrollspy.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst ScrollSpy = (() => {\n\n\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'scrollspy'\n const VERSION = '4.0.0-beta.2'\n const DATA_KEY = 'bs.scrollspy'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n\n const Default = {\n offset : 10,\n method : 'auto',\n target : ''\n }\n\n const DefaultType = {\n offset : 'number',\n method : 'string',\n target : '(string|element)'\n }\n\n const Event = {\n ACTIVATE : `activate${EVENT_KEY}`,\n SCROLL : `scroll${EVENT_KEY}`,\n LOAD_DATA_API : `load${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n DROPDOWN_ITEM : 'dropdown-item',\n DROPDOWN_MENU : 'dropdown-menu',\n ACTIVE : 'active'\n }\n\n const Selector = {\n DATA_SPY : '[data-spy=\"scroll\"]',\n ACTIVE : '.active',\n NAV_LIST_GROUP : '.nav, .list-group',\n NAV_LINKS : '.nav-link',\n NAV_ITEMS : '.nav-item',\n LIST_ITEMS : '.list-group-item',\n DROPDOWN : '.dropdown',\n DROPDOWN_ITEMS : '.dropdown-item',\n DROPDOWN_TOGGLE : '.dropdown-toggle'\n }\n\n const OffsetMethod = {\n OFFSET : 'offset',\n POSITION : 'position'\n }\n\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class ScrollSpy {\n\n constructor(element, config) {\n this._element = element\n this._scrollElement = element.tagName === 'BODY' ? window : element\n this._config = this._getConfig(config)\n this._selector = `${this._config.target} ${Selector.NAV_LINKS},`\n + `${this._config.target} ${Selector.LIST_ITEMS},`\n + `${this._config.target} ${Selector.DROPDOWN_ITEMS}`\n this._offsets = []\n this._targets = []\n this._activeTarget = null\n this._scrollHeight = 0\n\n $(this._scrollElement).on(Event.SCROLL, (event) => this._process(event))\n\n this.refresh()\n this._process()\n }\n\n\n // getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n\n // public\n\n refresh() {\n const autoMethod = this._scrollElement !== this._scrollElement.window ?\n OffsetMethod.POSITION : OffsetMethod.OFFSET\n\n const offsetMethod = this._config.method === 'auto' ?\n autoMethod : this._config.method\n\n const offsetBase = offsetMethod === OffsetMethod.POSITION ?\n this._getScrollTop() : 0\n\n this._offsets = []\n this._targets = []\n\n this._scrollHeight = this._getScrollHeight()\n\n const targets = $.makeArray($(this._selector))\n\n targets\n .map((element) => {\n let target\n const targetSelector = Util.getSelectorFromElement(element)\n\n if (targetSelector) {\n target = $(targetSelector)[0]\n }\n\n if (target) {\n const targetBCR = target.getBoundingClientRect()\n if (targetBCR.width || targetBCR.height) {\n // todo (fat): remove sketch reliance on jQuery position/offset\n return [\n $(target)[offsetMethod]().top + offsetBase,\n targetSelector\n ]\n }\n }\n return null\n })\n .filter((item) => item)\n .sort((a, b) => a[0] - b[0])\n .forEach((item) => {\n this._offsets.push(item[0])\n this._targets.push(item[1])\n })\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n $(this._scrollElement).off(EVENT_KEY)\n\n this._element = null\n this._scrollElement = null\n this._config = null\n this._selector = null\n this._offsets = null\n this._targets = null\n this._activeTarget = null\n this._scrollHeight = null\n }\n\n\n // private\n\n _getConfig(config) {\n config = $.extend({}, Default, config)\n\n if (typeof config.target !== 'string') {\n let id = $(config.target).attr('id')\n if (!id) {\n id = Util.getUID(NAME)\n $(config.target).attr('id', id)\n }\n config.target = `#${id}`\n }\n\n Util.typeCheckConfig(NAME, config, DefaultType)\n\n return config\n }\n\n _getScrollTop() {\n return this._scrollElement === window ?\n this._scrollElement.pageYOffset : this._scrollElement.scrollTop\n }\n\n _getScrollHeight() {\n return this._scrollElement.scrollHeight || Math.max(\n document.body.scrollHeight,\n document.documentElement.scrollHeight\n )\n }\n\n _getOffsetHeight() {\n return this._scrollElement === window ?\n window.innerHeight : this._scrollElement.getBoundingClientRect().height\n }\n\n _process() {\n const scrollTop = this._getScrollTop() + this._config.offset\n const scrollHeight = this._getScrollHeight()\n const maxScroll = this._config.offset\n + scrollHeight\n - this._getOffsetHeight()\n\n if (this._scrollHeight !== scrollHeight) {\n this.refresh()\n }\n\n if (scrollTop >= maxScroll) {\n const target = this._targets[this._targets.length - 1]\n\n if (this._activeTarget !== target) {\n this._activate(target)\n }\n return\n }\n\n if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {\n this._activeTarget = null\n this._clear()\n return\n }\n\n for (let i = this._offsets.length; i--;) {\n const isActiveTarget = this._activeTarget !== this._targets[i]\n && scrollTop >= this._offsets[i]\n && (typeof this._offsets[i + 1] === 'undefined' ||\n scrollTop < this._offsets[i + 1])\n\n if (isActiveTarget) {\n this._activate(this._targets[i])\n }\n }\n }\n\n _activate(target) {\n this._activeTarget = target\n\n this._clear()\n\n let queries = this._selector.split(',')\n // eslint-disable-next-line arrow-body-style\n queries = queries.map((selector) => {\n return `${selector}[data-target=\"${target}\"],` +\n `${selector}[href=\"${target}\"]`\n })\n\n const $link = $(queries.join(','))\n\n if ($link.hasClass(ClassName.DROPDOWN_ITEM)) {\n $link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE)\n $link.addClass(ClassName.ACTIVE)\n } else {\n // Set triggered link as active\n $link.addClass(ClassName.ACTIVE)\n // Set triggered links parents as active\n // With both
      and