PageSourceSearch

https://biathlonresults.com/app~718316dd.726b47896ea9f3bce3de.chunk.js

js biathlonresults.com collected 2026-10-02 07:06:09 UTC 18,928 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"widgets/live/ranklist":function(t,e,i){"use strict";i.r(e),i.d(e,"RankList",(function(){return S})),i.d(e,"RankRow",(function(){return R}));var a,s=i("aurelia-framework"),n=i("aurelia-event-aggregator"),r=i("siwidata/LiveState/LiveState"),o=i("siwidata/FlagHandler/FlagHandler"),l=i("xA8H"),h=i("4fGU"),d=i("siwidata/FavoritesManager/FavoritesManager"),g=(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=function(t,e,i,a){var s,n=arguments.length,r=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r},p=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},S=function(t){function e(e,i,a,s,n,r,o){var l=t.call(this)||this;return l.eventAggregator=e,l.bindingEngine=i,l.liveState=a,l.favorites=s,l.bladeSystem=n,l.config=r,l.FlagHandler=o,l.StyleListRowsArea="",l.StyleLastRowsArea="",l.IsInMyState=!1,l.PageNr=1,l.PageScrollDelta=0,l.PageUpHandler=function(){l.PageUp()},l.PageDownHandler=function(){l.PageDown()},l.HasExtendedWidth=!1,l.ListRows=[],l.LastRows=[],l.lastMap=new Map,l.PenHeader="",l.IsRelay=!1,l.rowHeight=21,l.minStackTime=1e4,l.lastSize=3,l.CheckRowStatusHandler=function(t,e,i){l.CheckRankRowStatusToView(t,e,i)},l}return g(e,t),e.prototype.Init=function(){var t=this;this.DeInit(),"RL"!=this.liveState.CurrentUnit.BTH.IBUDisciplineId&&"SR"!=this.liveState.CurrentUnit.BTH.IBUDisciplineId&&"SQ"!=this.liveState.CurrentUnit.BTH.IBUDisciplineId&&"SF"!=this.liveState.CurrentUnit.BTH.IBUDisciplineId||(this.IsRelay=!0),this.DataPassing=this.liveState.CurrentUnit.UnitData[this.rankingId],this.Ranking=this.DataPassing.Ranking,this.DataShooting=this.DataPassing.LastCompletedShooting,this.AllShootings=[],this.DataShooting&&this.setPenHeader(),this.PageNr=1,this.adapt(),this.InitLastPassings(),this.Ranking.Rows.values().forEac
1h((function(e){e.Bind("SortOrder",t.CheckRowStatusHandler,!1),e.Bind("IsRanked",t.CheckRowStatusHandler,!1)}))},e.prototype.DeInit=function(){var t=this;this.Ranking&&(this.Ranking.Rows.values().forEach((function(e){e.UnBind("SortOrder",t.CheckRowStatusHandler),e.UnBind("IsRanked",t.CheckRowStatusHandler)})),this.DisposeAllRows())},e.prototype.activate=function(t){var e=this;this.headerModel=t.HeaderModel,t.ContentModel=this,t.ContentWidget?(this.Blade=t,this.rankingId=t.ContentWidget.Options.Code,this.bladeSizeChangeSubscription=this.bindingEngine.propertyObserver(t,"SquarePixel").subscribe((function(){e.adapt()})),t.PageUpCallback=this.PageUpHandler,t.PageDownCallback=this.PageDownHandler):window.onresize=function(t){e.adapt()};var i=this.bladeSystem.ContentDefinition.StateButtons.find((function(t){return"MY"==t.Id}));i&&(this.IsInMyState=i.IsActive),this.adapt(),this.intervalHandler1=setInterval((function(){return e.RollLastRows()}),1e3),this.liveStateSubscription=this.eventAggregator.subscribe("live",(function(t){t.SessionChanged&&e.Init(),t.SessionReset&&e.DeInit()})),this.myStateSubscription=this.eventAggregator.subscribe("State",(function(t){"MY"==t.Button.Id&&(e.IsInMyState=t.Button.IsActive)})),this.liveState.RaceSession&&this.Init()},e.prototype.detached=function(){this.liveStateSubscription&&this.liveStateSubscription.dispose(),this.myStateSubscription&&this.myStateSubscription.dispose(),this.bladeSizeChangeSubscription&&this.bladeSizeChangeSubscription.dispose(),this.intervalHandler1&&clearTimeout(this.intervalHandler1),this.DeInit()},e.prototype.adapt=function(){this.HasExtendedWidth=!this.IsRelay&&this.Blade.Width>=280||this.IsRelay&&this.Blade.Width>=350;var t=Math.floor((this.Blade.Height-82)/this.rowHeight)-1;this.Blade.IsHalfHeight||t<15?this.lastSize=2:this.lastSize=3,this.PageSize=t-this.lastSize,this.StyleListRowsArea="top: 0; height: "+((this.PageSize+1)*this.rowHeight).toString()+"px;",this.StyleLastRowsArea="top: "+(0+(this.PageSize+1)*this.rowHeight).toString()+"px; height: "+(0+this.lastSize*this.rowHeight).toString()+"px;",this.Ranking&&(this.calcPageCount(),this.UpdateView(!0))},e.prototype.calcPageCount=function(){var t=Math.floor(this.Ranking.RankedCount/this.PageSize);this.Ranking.RankedCount%this.PageSize>0&&t++,this.PageCount=t},e.prototype.setPenHeader=function(){this.AllShootings.push(this.DataShooting);for(var t=this.DataShooting.ShootingPosition,e=this.DataShooting;e.PreviousShooting;)t=(e=e.PreviousShooting).ShootingPosition+" "+t,this.AllShootings.push(e);this.AllShootings.reverse(),this.PenHeader=t},e.prototype.UpdateView=function(t){var e=this;t&&this.DisposeAllListRows(),this.PageFirstIndex=this.PageScrollDelta+(this.PageNr-1)*this.PageSize,this.PageLastIndex=this.PageFirstIndex+this.PageSize,this.Ranking.Rows.values().forEac
1h((function(t){t.IsRanked&&t.SortOrder>e.PageFirstIndex&&t.SortOrder<=e.PageLastIndex&&(e.ListRows.find((function(e){return e.RankingRow.Starter.Bib===t.Starter.Bib}))||e.ListRows.push(e.GetRow(t,e.PageFirstIndex)))}))},e.prototype.InitLastPassings=function(){var t=this.Ranking.RankedCount-this.lastSize+1;t<1&&(t=1);var e=0,i=0;for(e=0;e<this.lastSize;e++)for(i=0;i<this.Ranking.Rows.count();i++){if((s=(a=this.Ranking.Rows.values()[i]).Starter.RaceData[this.Ranking.Code].PassingOrder)==t+e){this.PushToLastRows(this.GetRow(a,0,!0));break}}for(i=0;i<this.Ranking.Rows.count();i++){var a,s;(s=(a=this.Ranking.Rows.values()[i]).Starter.RaceData[this.Ranking.Code].PassingOrder)&&s>0&&s<=this.Ranking.RankedCount&&(this.lastMap[a.Starter.Bib]=!0)}},e.prototype.CheckRankRowStatusToView=function(t,e,i){var a=this.ListRows.findIndex((function(t){return t.RankingRow.Starter.Bib===e.Starter.Bib}));(e.SortOrder&&e.IsRanked&&e.SortOrder>this.PageFirstIndex&&e.SortOrder<=this.PageLastIndex&&(a<0?this.ListRows.push(this.GetRow(e,this.PageFirstIndex)):this.ListRows[a].ViewOrder=e.SortOrder),e.SortOrder&&(!1===e.IsRanked||e.SortOrder<=this.PageFirstIndex||e.SortOrder>this.PageLastIndex)&&a>=0&&(this.DisposeRow(this.ListRows[a]),this.ListRows.splice(a,1)),e.SortOrder&&e.IsRanked&&!this.lastMap[e.Starter.Bib])&&(this.lastMap[e.Starter.Bib]=!0,this.LastRows.find((function(t){return t.RankingRow==e}))||this.PushToLastRows(this.GetRow(e,0,!0)));if(!1===e.IsRanked){var s=this.LastRows.findIndex((function(t){return t.RankingRow==e}));s>=0&&(this.DisposeRow(this.LastRows[s]),this.LastRows.splice(s,1)),this.lastMap[e.Starter.Bib]=!1}this.calcPageCount()},e.prototype.PageUp=function(){this.PageScrollDelta>=this.PageSize?(this.PageScrollDelta-=this.PageSize,this.UpdateView(!0)):this.PageNr>1?(this.PageNr--,this.UpdateView(!0)):this.PageScrollDelta>0&&(this.PageScrollDelta=0,this.UpdateView(!0))},e.prototype.PageDown=function(){this.PageNr<this.PageCount&&(this.PageNr++,this.UpdateView(!0))},e.prototype.MouseScroll=function(t){t=window.event||t;var e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail));e>0?this.PageScrollDelta>0&&this.PageScrollDelta--:e<0&&this.PageScrollDelta++,this.UpdateView(!0)},e.prototype.PushToLastRows=function(t){var e=this,i=0;this.LastRows.forEach((function(t){t.ViewOrder>i&&(i=t.ViewOrder)})),i<=this.lastSize&&(t.inStack=(new Date).getTime()),t.ViewOrder=i+1,this.LastRows.push(t),setTimeout((function(){e.RollLastRows()}),100)},e.prototype.RollLastRows=function(){var t=this,e=(new Date).getTime();if(this.LastRows.length>this.lastSize&&!this.lockRoll&&e-this.LastRows[0].inStack>this.minStackTime){var i;for(this.lockRoll=!0,i=0;i<this.LastRows.length;i++)this.LastRows[i].ViewOrder=this.LastRows[i].ViewOrder-1,this.LastRows[i].ViewOrder==this.lastSize&&(this.LastRows[i].inStack=e);setTimeout((function(){var e=t.LastRows.shift();t.DisposeRow(e),t.lockRoll=!1}),1e3)}},e.prototype.GetRow=function(t,e,i){var a=this,s=new R;s._rowHeight=this.rowHeight,s.RankingRow=t,s.Starter=t.Starter,s.PassingData=s.Starter.RaceData[this.rankingId],this.DataShooting&&(s.ShootingData=s.Starter.RaceData[this.DataShooting.Code]),i||(s.ViewOrder=t.SortOrder),this.DataPassing.Leg&&!this.DataPassing.Code.startsWith("FI")?s.Competitor=s.Starter.Members["LEG"+this.DataPassing.Leg.toString()]:s.Competitor=s.Starter.Competitor,s.Name=s.Competitor.Names[this.liveState.Name_Code],s.Nat=s.Competitor.Organisation.Code,s.Bib=s.Starter.Bib,s._isLastPassingRow=i,s.pageOffset=e;var n=this.AllShootings;this.IsRelay&&(n=n.filter((function(t){return t.Leg==a.DataPassing.Leg})));for(var r=0;r<n.length;r++)0==r&&s.Starter.RaceData[n[r].Code].Bind("Penalties",s.p1ChangedHandler),1==r&&s.Starter.RaceData[n[r].Code].Bind("Penalties",s.p2ChangedHandler),2==r&&s.Starter.RaceData[n[r].Code].Bind("Penalties",s.p3ChangedHandler),3==r&&s.Starter.RaceData[n[r].Code].Bind("Penalties",s.p4ChangedHandler),this.IsRelay&&(0==r&&s.Starter.RaceData[n[r].Code].Bind("SpareRounds",s.s1ChangedHandler),1==r&&s.Starter.RaceData[n[r].Code].Bind("SpareRounds",s.s2ChangedHandler),2==r&&s.Starter.RaceData[n[r].Code].Bind("SpareRounds",s.s3ChangedHandler),3==r&&s.Starter.RaceData[n[r].Code].Bind("SpareRounds",s.s4ChangedHandler));return s},e.prototype.DisposeAllListRows=function(){var t=this;this.ListRows.forEach((function(e){t.DisposeRow(e)})),this.ListRows.splice(0,this.ListRows.length)},e.prototype.DisposeRow=function(t){var e=this,i=t.Starter,a=this.AllShootings;this.IsRelay&&(a=a.filter((function(t){return t.Leg==e.DataPassing.Leg})));for(var s=0;s<a.length;
1s++)0==s&&i.RaceData[a[s].Code].UnBind("Penalties",t.p1ChangedHandler),1==s&&i.RaceData[a[s].Code].UnBind("Penalties",t.p2ChangedHandler),2==s&&i.RaceData[a[s].Code].UnBind("Penalties",t.p3ChangedHandler),3==s&&i.RaceData[a[s].Code].UnBind("Penalties",t.p4ChangedHandler),this.IsRelay&&(0==s&&t.Starter.RaceData[a[s].Code].UnBind("SpareRounds",t.s1ChangedHandler),1==s&&t.Starter.RaceData[a[s].Code].UnBind("SpareRounds",t.s2ChangedHandler),2==s&&t.Starter.RaceData[a[s].Code].UnBind("SpareRounds",t.s3ChangedHandler),3==s&&t.Starter.RaceData[a[s].Code].UnBind("SpareRounds",t.s4ChangedHandler));t.dispose()},e.prototype.DisposeAllRows=function(){var t=this;this.DisposeAllListRows(),this.LastRows.forEach((function(e){t.DisposeRow(e)})),this.LastRows.splice(0,this.LastRows.length)},e.prototype.RowClicked=function(t){if(this.IsRelay&&this.DataPassing.Leg&&!this.DataPassing.Code.startsWith("FI"))try{this.favorites.SetCurrentRelayCompetitor(t.Starter.Competitor.Code,t.Starter.Members["LEG"+this.DataPassing.Leg.toString()].Code,t.Starter.Bib,this.DataPassing.Leg,t.Starter.Members["LEG"+this.DataPassing.Leg.toString()].IFId)}catch(e){this.favorites.SetCurrentCompetitor(t.Starter.Competitor.Code,t.Starter.Bib,this.DataPassing.Leg,t.Starter.Competitor.IFId)}else this.favorites.SetCurrentCompetitor(t.Starter.Competitor.Code,t.Starter.Bib,this.DataPassing.Leg,t.Starter.Competitor.IFId)},e=c([Object(s.inject)(n.EventAggregator,s.BindingEngine,r.LiveState,d.FavoritesManager,l.a,h.Config,o.FlagHandler),p("design:paramtypes",[n.EventAggregator,s.BindingEngine,r.LiveState,d.FavoritesManager,l.a,h.Config,o.FlagHandler])],e)}(l.b),R=function(){function t(){var t=this;this.IsRelay=!1,this.P1=null,this.P2=null,this.P3=null,this.P4=null,this.S1=null,this.S2=null,this.S3=null,this.S4=null,this.ViewOrder=0,this.p1ChangedHandler=function(e){t.P1=e},this.p2ChangedHandler=function(e){t.P2=e},this.p3ChangedHandler=function(e){t.P3=e},this.p4ChangedHandler=function(e){t.P4=e},this.s1ChangedHandler=function(e){t.S1=e},this.s2ChangedHandler=function(e){t.S2=e},this.s3ChangedHandler=function(e){t.S3=e},this.s4ChangedHandler=function(e){t.S4=e}}return Object.defineProperty(t.prototype,"Penalties",{get:function(){var t="";return this.IsRelay?((this.P1||0==this.P1)&&(t+=this.P1.toString(),(this.S1||0==this.S1)&&(t=t+"+"+this.S1.toString())),(this.P2||0==this.P2)&&(t.length>0&&(t+="·"),t+=this.P2.toString(),(this.S2||0==this.S2)&&(t=t+"+"+this.S2.toString())),(this.P3||0==this.P3)&&(t.length>0&&(t+="·"),t+=this.P3.toString(),(this.S3||0==this.S3)&&(t=t+"+"+this.S3.toString())),(this.P4||0==this.P4)&&(t.length>0&&(t+="·"),t+=this.P4.toString(),(this.S4||0==this.S4)&&(t=t+"+"+this.S4.toString()))):((this.P1||0==this.P1)&&(t+=this.P1.toString()),(this.P2||0==this.P2)&&(t=t+"·"+this.P2.toString()),(this.P3||0==this.P3)&&(t=t+"·"+this.P3.toString()),(this.P4||0==this.P4)&&(t=t+"·"+this.P4.toString())),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Top",{get:function(){var t=2e3,e=this.ViewOrder-this.pageOffset;return null!==e&&(t=(e-1)*this._rowHeight),t.toString()},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){},c([Object(s.computedFrom)("P1","P2","P3","P4","S1","S2","S3","S4"),p("design:type",String),p("design:paramtypes",[])],t.prototype,"Penalties",null),c([Object(s.computedFrom)("ViewOrder","pageOffset"),p("design:type",String),p("design:paramtypes",[])],t.prototype,"Top",null),t}()},
1"widgets/live/ranklist.html":function(t,e,i){t.exports='<template>\r\n    <require from="../../siwidata/ValueConverters/net-time"></require>\r\n    <require from="@siwidata/siwiui/blade-widget"></require>\r\n    <require from="./ranklistheader"></require>\r\n \r\n    <blade-widget>\r\n        <rank-list-header blade.bind="Blade" slot="title-right"></rank-list-header>\r\n        <div slot="content">\r\n            <div class="contentElement" css.bind="StyleListRowsArea" mousewheel.delegate="MouseScroll($event)">\r\n                <div class="resultTable ${IsRelay ? \'resultTableRelay\' :\'\'}">\r\n                    <div class="rtHeader">\r\n                        <div class="colRank">Rk</div>\r\n                        <div class="colBib">Bib</div>\r\n                        <div class="colShortName">Name</div>\r\n                        <div class="colMargin"></div>\r\n                        <div class="colNat">NAT</div>\r\n                        <div class="colPen" if.bind="HasExtendedWidth">\r\n                            <span if.bind="IsRelay">&nbsp;</span>\r\n                            <span else>${PenHeader}</span>\r\n                        </div>\r\n                        <div class="colTotalPen">T</div>\r\n                        <div class="colResult">Result</div>\r\n                    </div>\r\n                    <div class="rtBody" >\r\n                        <div repeat.for="row of ListRows" class="rtLine ${row.Starter.Competitor.IsSelected ? \'current\':\'\'}" css="top: ${row.Top}px;" click.delegate="RowClicked(row)">\r\n                            <div class="colRank ${row.RankingRow.IsRecent ? \'recent\' : \'\'}"><span>${row.RankingRow.Rank}</span><span show.bind="row.Starter.HasStar">*</span></div>\r\n                            <div class="colBib"><span>${row.Starter.Bib}</span></div>\r\n                            <div class="colShortName  ${row.Starter.Competitor.IsFavorite ? \'highlight\':\'\'}"><span>${row.Name}</span></div>\r\n                            <div class="colMargin"></div>\r\n                            <div if.bind="!FlagHandler.ShowNocAsFlag" class="colNat ${row.Starter.Competitor.IsFavorite ? \'highlight\':\'\'}">${row.Nat}</div>\r\n                            <div else class="colNat"><img src="${FlagHandler.GetFlagUrl(row.Nat)}"/></div>\r\n\r\n                            <div class="colPen" show.bind="HasExtendedWidth"><span>${row.Penalties}</span></div>\r\n                            <div class="colTotalPen">\r\n                                <span>${row.ShootingData.Total}</span>\r\n                                <span show.bind="row.ShootingData.TotalSpareRounds != null" style="font-size:13px;margin-left:-3px;margin-right:-3px;">+</span>\r\n                                <span show-bind="row.ShootingData.TotalSpareRounds != null">${row.ShootingData.TotalSpareRounds}</span>\r\n                            </div>\r\n\r\n                            <div if.bind="row.RankingRow.Rank == \'1\'" class="colResult">${row.PassingData.NetTime | netTime:1}</div>\r\n                            <div if.bind="row.RankingRow.Rank != \'1\' && row.RankingRow.Behind !=\'\'" class="colResult">${row.RankingRow.Behind}</div>\r\n                            <div if.bind="row.RankingRow.Rank != \'1\' && row.RankingRow.Behind == \'\'" class="colResult">${row.Starter.IRM}</div>\r\n\r\n\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n\r\n\r\n            <div class="contentElement lastPassedArea" css.bind="StyleLastRowsArea">\r\n                <div class="resultTable ${IsRelay ? \'resultTableRelay\' :\'\'}">\r\n                    <div class="rtBody" >\r\n                        <div repeat.for="row of LastRows" class="rtLine rtLastPassedLine" css="top: ${row.Top}px;" show.bind="row.ViewOrder !== null" click.delegate="RowClicked(row)">\r\n                            <div class="colRank ${row.RankingRow.IsRecent ? \'recent\' : \'\'}"><span>${row.RankingRow.Rank}</span><span show.bind="row.Starter.HasStar">*</span></div>\r\n                            <div class="colBib"><span>${row.Starter.Bib}</span></div>\r\n                            <div class="colShortName ${row.Starter.Competitor.IsFavorite ? \'highlight\':\'\'}"><span>${row.Name}</span></div>\r\n                            <div class="colMargin"></div>\r\n                            <div if.bind="!FlagHandler.ShowNocAsFlag" class="colNat ${row.Starter.Competitor.IsFavorite ? \'highlight\':\'\'}">${row.Nat}</div>\r\n                            <div else class="colNat"><img src="${FlagHandler.GetFlagUrl(row.Nat)}" /></div>\r\n                            <div class="colPen" show.bind="HasExtendedWidth"><span>${row.Penalties}</span></div>\r\n                            <div class="colTotalPen">
1\r\n                                <span>${row.ShootingData.Total}</span>\r\n                                <span show.bind="row.ShootingData.TotalSpareRounds != null" style="font-size:13px;margin-left:-3px;margin-right:-3px;">+</span>\r\n                                <span show-bind="row.ShootingData.TotalSpareRounds != null">${row.ShootingData.TotalSpareRounds}</span>\r\n                            </div>\r\n\r\n                            <div if.bind="row.RankingRow.Rank == \'1\'" class="colResult">${row.PassingData.NetTime | netTime:1}</div>\r\n                            <div if.bind="row.RankingRow.Rank != \'1\'" class="colResult">${row.RankingRow.Behind}</div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </blade-widget>\r\n</template>\r\n'}
1}]);
2//# sourceMappingURL=app~718316dd.726b47896ea9f3bce3de.bundle.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.