!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.requestGuinnessApi=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return new Promise((function(o,a){var u=""+i.get().CONTENTS_LIST_API_URL+t,l=r.httpBuildQuery({results:n,start:s,type:e});r.fetch(""+u+l).then((function(t){o(t)})).catch((function(t){a(t)}))}))},e.requestGuinnessApiLargeTTL=function(t,e,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return new Promise((function(a,u){var l=""+i.get().CONTENTS_LIST_API_URL+t,c=e,h=n;n||(c="news,column,video,owned_column",h="1209600,1209600,1209600,1209600");var p=r.httpBuildQuery({results:s,start:o,type:e,ttlOverwriteType:c,ttlOverwriteValue:h});r.fetch(""+l+p).then((function(t){a(t)})).catch((function(t){u(t)}))}))};var r=s(n(12)),i=s(n(19));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}},function(t,e,n){"use strict";t.exports=function(t){return null!==t&&"object"==typeof t}},function(t,e,n){"use strict";function r(t){var e=String(t);return 1===e.length?"0"+e:e}Object.defineProperty(e,"__esModule",{value:!0}),e.transform=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"view",n=new Date(t.replace(/-/g,"/").replace(/T/g," ")),i=n.getFullYear(),s=n.getMonth()+1,o=n.getDate(),a=n.getHours(),u=n.getMinutes(),l=n.getSeconds();return"datetime"===e?i+"-"+r(s)+"-"+r(o)+"T"+r(a)+":"+r(u)+":"+r(l):i+"/"+s+"/"+o+" "+r(a)+":"+r(u)},e.secondsToMinutesAndSeconds=function(t){var e=Math.floor(t/60);return e+":"+r(Math.floor(t-60*e))}},function(t,e,n){t.exports=n(4)},function(t,e,n){"use strict";var r=n(5),i=f(n(8)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(9)),o=f(n(11)),a=f(n(20)),u=f(n(21)),l=f(n(22)),c=f(n(23)),h=f(n(24)),p=f(n(25)),d=f(n(26));function f(t){return t&&t.__esModule?t:{default:t}}(0,r.polyfill)(),window.sn=window.sn||{},window.sn.io=window.sn.io||{},window.sn.io=(0,i.default)({},window.sn.io,{detectDevice:l.default,contentListByGuinness:o.default,genreTimeline:p.default,photoGallery:a.default,autoLink:u.default,tournament:c.default,hideTable:h.default,returnCalc:d.default,clientDetector:s})},function(t,e,n){(function(e,n){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license   Licensed under MIT license *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version   v4.2.8+1e68dce6 */var r;r=function(){"use strict";function t(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,s=void 0,o=void 0,a=function(t,e){f[i]=t,f[i+1]=e,2===(i+=2)&&(o?o(m):g())},u="undefined"!=typeof window?window:void 0,l=u||{},c=l.MutationObserver||l.WebKitMutationObserver,h="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(m,1)}}var f=new Array(1e3);function m(){for(var t=0;t<i;t+=2)(0,f[t])(f[t+1]),f[t]=void 0,f[t+1]=void 0;i=0}var v,_,y,b,g=void 0;function w(t,e){var n=this,r=new this.constructor(L);void 0===r[k]&&I(r);var i=n._state;if(i){var s=arguments[i-1];a((function(){return R(i,r,s,n._result)}))}else A(n,r,t,e);return r}function T(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(L);return O(e,t),e}h?g=function(){return e.nextTick(m)}:c?(_=0,y=new c(m),b=document.createTextNode(""),y.observe(b,{characterData:!0}),g=function(){b.data=_=++_%2}):p?((v=new MessageChannel).port1.onmessage=m,g=function(){return v.port2.postMessage(0)}):g=void 0===u?function(){try{var t=Function("return this")().require("vertx");return void 0!==(s=t.runOnLoop||t.runOnContext)?function(){s(m)}:d()}catch(t){return d()}}():d();var k=Math.random().toString(36).substring(2);function L(){}var x=void 0;function j(e,n,r){n.constructor===e.constructor&&r===w&&n.constructor.resolve===T?function(t,e){1===e._state?E(t,e._result):2===e._state?P(t,e._result):A(e,void 0,(function(e){return O(t,e)}),(function(e){return P(t,e)}))}(e,n):void 0===r?E(e,n):t(r)?function(t,e,n){a((function(t){var r=!1,i=function(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}(n,e,(function(n){r||(r=!0,e!==n?O(t,n):E(t,n))}),(function(e){r||(r=!0,P(t,e))}),t._label);!r&&i&&(r=!0,P(t,i))}),t)}(e,n,r):E(e,n)}function O(t,e){if(t===e)P(t,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=e),null===r||"object"!==i&&"function"!==i)E(t,e);else{var n=void 0;try{n=e.then}catch(e){return void P(t,e)}j(t,e,n)}var r,i}function C(t){t._onerror&&t._onerror(t._result),M(t)}function E(t,e){t._state===x&&(t._result=e,t._state=1,0!==t._subscribers.length&&a(M,t))}function P(t,e){t._state===x&&(t._state=2,t._result=e,a(C,t))}function A(t,e,n,r){var i=t._subscribers,s=i.length;t._onerror=null,i[s]=e,i[s+1]=n,i[s+2]=r,0===s&&t._state&&a(M,t)}function M(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,i=void 0,s=t._result,o=0;o<e.length;o+=3)r=e[o],i=e[o+n],r?R(n,r,i,s):i(s);t._subscribers.length=0}}function R(e,n,r,i){var s=t(r),o=void 0,a=void 0,u=!0;if(s){try{o=r(i)}catch(t){u=!1,a=t}if(n===o)return void P(n,new TypeError("A promises callback cannot return that same promise."))}else o=i;n._state!==x||(s&&u?O(n,o):!1===u?P(n,a):1===e?E(n,o):2===e&&P(n,o))}var S=0;function I(t){t[k]=S++,t._state=void 0,t._result=void 0,t._subscribers=[]}var B=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(L),this.promise[k]||I(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?E(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&E(this.promise,this._result))):P(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===x&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===T){var i=void 0,s=void 0,o=!1;try{i=t.then}catch(t){o=!0,s=t}if(i===w&&t._state!==x)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(n===W){var a=new n(L);o?P(a,s):j(a,t,i),this._willSettleAt(a,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===x&&(this._remaining--,2===t?P(r,n):this._result[e]=n),0===this._remaining&&E(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;A(t,void 0,(function(t){return n._settledAt(1,e,t)}),(function(t){return n._settledAt(2,e,t)}))},t}(),W=function(){function e(t){this[k]=S++,this._result=this._state=void 0,this._subscribers=[],L!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(t,e){try{e((function(e){O(t,e)}),(function(e){P(t,e)}))}catch(e){P(t,e)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var n=this.constructor;return t(e)?this.then((function(t){return n.resolve(e()).then((function(){return t}))}),(function(t){return n.resolve(e()).then((function(){throw t}))})):this.then(e,e)},e}();return W.prototype.then=w,W.all=function(t){return new B(this,t).promise},W.race=function(t){var e=this;return r(t)?new e((function(n,r){for(var i=t.length,s=0;s<i;s++)e.resolve(t[s]).then(n,r)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))},W.resolve=T,W.reject=function(t){var e=new this(L);return P(e,t),e},W._setScheduler=function(t){o=t},W._setAsap=function(t){a=t},W._asap=a,W.polyfill=function(){var t=void 0;if(void 0!==n)t=n;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=W},W.Promise=W,W},t.exports=r()}).call(this,n(6),n(7))},function(t,e){var n,r,i=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var u,l=[],c=!1,h=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&d())}function d(){if(!c){var t=a(p);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h<e;)u&&u[h].run();h=-1,e=l.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||c||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";/*object-assign(c) Sindre Sorhus@license MIT*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,o,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))i.call(n,l)&&(a[l]=n[l]);if(r){o=r(n);for(var c=0;c<o.length;c++)s.call(n,o[c])&&(a[o[c]]=n[o[c]])}}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSnApp=e.isYjApp=e.isAndroid=e.isIos=e.addCssClassByClient=void 0;const r=n(10);e.addCssClassByClient=function(){const t=(0,r.detectClient)();void 0!==t.app.cssClass&&document.body.classList.add(t.app.cssClass)},e.isIos=function(){return"ios"===(0,r.detectOs)()},e.isAndroid=function(){return"android"===(0,r.detectOs)()},e.isYjApp=function(){return"yj-app"===(0,r.detectClient)().app.name},e.isSnApp=function(){const t=(0,r.detectClient)();return"sn-app"===t.app.name||"sn-app-tab"===t.app.name}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.detectOs=e.detectClient=void 0;const r=Object.freeze({name:"browser"}),i=Object.freeze({name:"sn-app",cssClass:"ua-sn"}),s=Object.freeze({name:"sn-app-tab",cssClass:"ua-sn-tab"}),o=Object.freeze({name:"bb-app",cssClass:"ua-bb"}),a=Object.freeze({name:"yj-app",cssClass:"ua-yj"});function u(){return navigator.userAgent.match(/iPhone | Android.+Mobile/)?"sp":"pc"}e.detectClient=function(){const t=u();return{device:t,app:function(t){if("pc"===t)return r;const e=navigator.userAgent;if(/sportsnavi./.test(e)){return new URL(location.href).searchParams.has("snapp_tab")?s:i}return/.*textlive./.test(e)?o:/yahoo.ipn/.test(e)||/yahoo.android.yjtop/.test(e)?a:r}(t)}},e.detectOs=function(){if("pc"===u())return;const t=navigator.userAgent;return/iPhone./.test(t)?"ios":/Android/.test(t)?"android":void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=o(n(0)),s=o(n(2));function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var a=function(){function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.documentId=i,this.cid=e,this.type=n,this.start=1,this.total=0,this.returnResult=0,this.result=20,this.target=document.getElementById(r),this.divObj=document.createElement("div"),this.divUlObj=document.createElement("ul"),this.divObj.classList.add("sn-list"),this.divObj.appendChild(this.divUlObj),this.target.appendChild(this.divObj),this.pObj=document.createElement("p"),this.pObj.classList.add("sn-moreView"),this.target.appendChild(this.pObj)}return r(t,[{key:"render",value:function(){this.fetchActoin()}},{key:"fetchActoin",value:function(){var t=this;this.renderLoading(),i.requestGuinnessApi(this.cid,this.type,this.result,this.start).then((function(e){t.removeLoading(),0===e.contentList.length?t.renderError():("video"===t.type?t.insertContentsListVideo(e):t.insertContentsList(e),t.updateListNum(e.firstResultsPosition,e.totalResultsAvailable,e.totalResultsReturned),t.renderMoreRead())})).catch((function(e){t.removeLoading(),t.renderError()}))}},{key:"updateListNum",value:function(t,e,n){this.start=n+t,this.total=e,this.returnResult=n}},{key:"renderLoading",value:function(){this.pObj.innerHTML='<img src="https://s.yimg.jp/images/sports/tokyo2020/common/images/load@2x.gif">'}},{key:"removeLoading",value:function(){this.pObj.classList.remove("sn-moreView"),this.pObj.innerHTML=""}},{key:"renderMoreRead",value:function(){var t=this;this.returnResult<this.result||20===this.total||this.start>=this.total||(this.pObj.classList.add("sn-moreView"),this.pObj.innerHTML="<button type='button' style='display: block;'>もっと見る</button>",this.pObj.onclick=function(){t.fetchActoin()})}},{key:"getPcImageUrl",value:function(t){return null!=t.pcLargeImage.url?t.pcLargeImage.url:t.pcSmallImage.url}},{key:"getSubText",value:function(t){return null!=t.writerName?t.writerName:t.subText}},{key:"insertContentsList",value:function(t){var e=this;t.contentList.forEach((function(t){var n=document.createElement("li");n.classList.add("sn-list__item");var r='<a class="sn-list__itemArticleLink" href="'+t.linkUrl+'">\n            <p class="sn-list__itemThumbnail" style="background-image:url('+e.getPcImageUrl(t)+');" aria-hidden="hidden"></p>\n            <div class="sn-list__itemText">\n              <p class="sn-list__itemTitle">'+t.headline+'</p>\n              <small class="sn-list__itemCredit">'+e.getSubText(t)+'</small>\n              <time datetime="'+s.transform(t.createdAt,"datetime")+'" class="sn-list__itemTime">'+s.transform(t.createdAt)+"</time>\n              "+(t.hasOwnProperty("prNotation")&&null!=t.prNotation?'<small class="sn-list__itemCredit">'+t.prNotation+"</small>":"")+"\n              "+(1==t.isApp?'<span class="sn-icon sn-icon--appLimited">アプリ限定</span>':"")+"\n            </div>\n          </a>";n.innerHTML=r,e.divObj.getElementsByTagName("ul")[0].appendChild(n)}))}},{key:"insertContentsListVideo",value:function(t){var e=this;this.divObj.classList.remove("remove"),this.divObj.classList.add("sn-videoList"),this.divObj.classList.remove("sn-list"),t.contentList.forEach((function(t){var n=document.createElement("li");n.classList.add("sn-videoList__item");var r='<a class="sn-videoList__itemPhoto" href="'+t.linkUrl+'">\n          <img src="'+e.getPcImageUrl(t)+'" alt="thumbnail">\n          <span class="sn-videoList__itemTime">'+s.secondsToMinutesAndSeconds(t.duration)+'</span>\n        </a>\n        <dl>\n          <dt class="sn-videoList__itemTitle">\n            <a href="'+t.linkUrl+'">'+t.headline+'</a>\n          </dt>\n          <dd class="sn-videoList__itemUpdate">\n            <time datetime="'+s.transform(t.createdAt,"datetime")+'">'+s.transform(t.createdAt)+'</time>\n          </dd>\n          <dd class="sn-videoList__itemCredit">\n            <small>'+t.subText+"</small>\n          </dd>\n        </dl>";n.innerHTML=r,e.divObj.getElementsByTagName("ul")[0].appendChild(n)}))}},{key:"renderError",value:function(){var t=document.createElement("li");t.classList.add("sn-list__item"),t.classList.add("sn-list__item--noData"),t.innerHTML='<div class="sn-list__itemText">記事を取得できませんでした。</div>',this.divObj.getElementsByTagName("ul")[0].appendChild(t)}}]),t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.fetch=function(t){return new Promise((function(e,n){s.default.get(t).set("X-API-Key","80cc88399198f48ace57bee10a9542f6").set("Accept","application/json").end((function(t,r){t?n(t):e(JSON.parse(r.text))}))}))},e.httpBuildQuery=function(t){return"?"+Object.keys(t).map((function(e){return"object"!==r(t[e])&&t[e]?e+"="+encodeURIComponent(t[e]):null})).filter(Boolean).join("&")};var i,s=(i=n(13))&&i.__esModule?i:{default:i}},function(t,e,n){var r;"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:(console.warn("Using browser-only version of superagent in non-browser environment"),r=this);var i=n(14),s=n(15),o=n(1),a=n(16),u=n(18);function l(){}var c=e=t.exports=function(t,n){return"function"==typeof n?new e.Request("GET",t).end(n):1==arguments.length?new e.Request("GET",t):new e.Request(t,n)};e.Request=_,c.getXHR=function(){if(!(!r.XMLHttpRequest||r.location&&"file:"==r.location.protocol&&r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw Error("Browser-only version of superagent could not find XHR")};var h="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function p(t){if(!o(t))return t;var e=[];for(var n in t)d(e,n,t[n]);return e.join("&")}function d(t,e,n){if(null!=n)if(Array.isArray(n))n.forEach((function(n){d(t,e,n)}));else if(o(n))for(var r in n)d(t,e+"["+r+"]",n[r]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(n));else null===n&&t.push(encodeURIComponent(e))}function f(t){for(var e,n,r={},i=t.split("&"),s=0,o=i.length;s<o;++s)-1==(n=(e=i[s]).indexOf("="))?r[decodeURIComponent(e)]="":r[decodeURIComponent(e.slice(0,n))]=decodeURIComponent(e.slice(n+1));return r}function m(t){return/[\/+]json($|[^-\w])/.test(t)}function v(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.header=this.headers=function(t){for(var e,n,r,i,s=t.split(/\r?\n/),o={},a=0,u=s.length;a<u;++a)-1!==(e=(n=s[a]).indexOf(":"))&&(r=n.slice(0,e).toLowerCase(),i=h(n.slice(e+1)),o[r]=i);return o}(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"!=this.req.method?this._parseBody(this.text?this.text:this.xhr.response):null}function _(t,e){var n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,r=null;try{r=new v(n)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,n.xhr?(e.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,e.status=n.xhr.status?n.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),n.callback(e)}n.emit("response",r);try{n._isResponseOK(r)||(t=new Error(r.statusText||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=r,t.status=r.status,n.callback(t,r)):n.callback(null,r)}))}function y(t,e,n){var r=c("DELETE",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}c.serializeObject=p,c.parseString=f,c.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},c.serialize={"application/x-www-form-urlencoded":p,"application/json":JSON.stringify},c.parse={"application/x-www-form-urlencoded":f,"application/json":JSON.parse},a(v.prototype),v.prototype._parseBody=function(t){var e=c.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&m(this.type)&&(e=c.parse["application/json"]),e&&t&&(t.length||t instanceof Object)?e(t):null)},v.prototype.toError=function(){var t=this.req,e=t.method,n=t.url,r="cannot "+e+" "+n+" ("+this.status+")",i=new Error(r);return i.status=this.status,i.method=e,i.url=n,i},c.Response=v,i(_.prototype),s(_.prototype),_.prototype.type=function(t){return this.set("Content-Type",c.types[t]||t),this},_.prototype.accept=function(t){return this.set("Accept",c.types[t]||t),this},_.prototype.auth=function(t,e,n){return 1===arguments.length&&(e=""),"object"==typeof e&&null!==e&&(n=e,e=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(t,e,n,(function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")}))},_.prototype.query=function(t){return"string"!=typeof t&&(t=p(t)),t&&this._query.push(t),this},_.prototype.attach=function(t,e,n){if(e){if(this._data)throw Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,n||e.name)}return this},_.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},_.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),n(t,e)},_.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},_.prototype.buffer=_.prototype.ca=_.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},_.prototype.pipe=_.prototype.write=function(){throw Error("Streaming is not supported in browser version of superagent")},_.prototype._isHost=function(t){return t&&"object"==typeof t&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},_.prototype.end=function(t){return this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||l,this._finalizeQueryString(),this._end()},_.prototype._end=function(){var t=this,e=this.xhr=c.getXHR(),n=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.onprogress=r.bind(null,"download"),e.upload&&(e.upload.onprogress=r.bind(null,"upload"))}catch(t){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],s=this._serializer||c.serialize[i?i.split(";")[0]:""];!s&&m(i)&&(s=c.serialize["application/json"]),s&&(n=s(n))}for(var o in this.header)null!=this.header[o]&&this.header.hasOwnProperty(o)&&e.setRequestHeader(o,this.header[o]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0!==n?n:null),this},c.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){u.prototype[t.toLowerCase()]=function(e,n){var r=new c.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}})),u.prototype.del=u.prototype.delete,c.get=function(t,e,n){var r=c("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},c.head=function(t,e,n){var r=c("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},c.options=function(t,e,n){var r=c("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},c.del=y,c.delete=y,c.patch=function(t,e,n){var r=c("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},c.post=function(t,e,n){var r=c("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},c.put=function(t,e,n){var r=c("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},function(t,e,n){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){"use strict";var r=n(1);function i(t){if(t)return function(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}(t)}t.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},i.prototype.parse=function(t){return this._parser=t,this},i.prototype.responseType=function(t){return this._responseType=t,this},i.prototype.serialize=function(t){return this._serializer=t,this},i.prototype.timeout=function(t){if(!t||"object"!=typeof t)return this._timeout=t,this._responseTimeout=0,this;for(var e in t)switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;default:console.warn("Unknown timeout option",e)}return this},i.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(t){if(t.code&&~s.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"==t.code)return!0;if(t.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},i.prototype.then=function(t,e){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){n.end((function(n,r){n?e(n):t(r)}))}))}return this._fullfilledPromise.then(t,e)},i.prototype.catch=function(t){return this.then(void 0,t)},i.prototype.use=function(t){return t(this),this},i.prototype.ok=function(t){if("function"!=typeof t)throw Error("Callback required");return this._okCallback=t,this},i.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},i.prototype.get=function(t){return this._header[t.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(t,e){if(r(t)){for(var n in t)this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},i.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},i.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),r(t)){for(var n in t)this.field(n,t[n]);return this}if(Array.isArray(e)){for(var i in e)this.field(t,e[i]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(t,e),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(t,e,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(t+":"+e));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},i.prototype.withCredentials=function(t){return null==t&&(t=!0),this._withCredentials=t,this},i.prototype.redirects=function(t){return this._maxRedirects=t,this},i.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(t){var e=r(t),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&r(this._data))for(var i in t)this._data[i]=t[i];else"string"==typeof t?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},i.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},i.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var n=this.url.substring(e+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,e)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.trace("Unsupported")},i.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error(t+e+"ms exceeded");r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(t,e,n){"use strict";var r=n(17);function i(t){if(t)return function(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}(t)}t.exports=i,i.prototype.get=function(t){return this.header[t.toLowerCase()]},i.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=r.type(e);var n=r.params(e);for(var i in n)this[i]=n[i];this.links={};try{t.link&&(this.links=r.parseLinks(t.link))}catch(t){}},i.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.created=201==t,this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t,this.unprocessableEntity=422==t}},function(t,e,n){"use strict";e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce((function(t,e){var n=e.split(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(t[r]=i),t}),{})},e.parseLinks=function(t){return t.split(/ *, */).reduce((function(t,e){var n=e.split(/ *; */),r=n[0].slice(1,-1);return t[n[1].split(/ *= */)[1].slice(1,-1)]=r,t}),{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach((function(t){n.prototype[t]=function(){return this._defaults.push({fn:t,arguments:arguments}),this}})),n.prototype._setDefaults=function(t){this._defaults.forEach((function(e){t[e.fn].apply(t,e.arguments)}))},t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.get=function(){return{CONTENTS_LIST_API_URL:"https://sports.yahoo.co.jp/ssp/v1/contents_list/"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.counterGallery=0,this.counterThumbnail=0,this.thumbnailCount=8,this.photoLength=n.length,this.list=n,this.id=e,this.sort=r}return r(t,[{key:"render",value:function(){Vue.createApp({components:{"photo-gallery":this.component()}}).mount("#js-photoGallery--"+this.id)}},{key:"component",value:function(){var t=this.thumbnailCount,e=this.photoLength,n=this.list,r=this.sort;return{delimiters:["${","}"],data:function(){return{counterGallery:0,counterThumbnail:0,thumbnailCount:t,photoLength:e,list:n,sort:r}},methods:{count:function(t){switch(t){case"up":this.counterGallery+1<this.photoLength?this.counterGallery++:this.counterGallery=0;break;case"down":0!=this.counterGallery?this.counterGallery--:this.counterGallery=this.photoLength-1;break;default:this.counterGallery=t}this.counterThumbnail=Math.floor(this.counterGallery/this.thumbnailCount)},slide:function(t){if(this.photoLength>this.thumbnailCount)switch(t){case"next":this.counterThumbnail+1<Math.floor(this.list.length/this.thumbnailCount)?this.counterThumbnail++:this.counterThumbnail=0;break;case"prev":0!=this.counterThumbnail?this.counterThumbnail--:this.counterThumbnail=Math.floor(this.list.length/this.thumbnailCount)-1}}},computed:{sortedList:function(){var t=this.sort?this.list.reverse():this.list,e=this.list.length,n=e%this.thumbnailCount!=0?this.thumbnailCount-e%this.thumbnailCount:0;if(0!==n)for(var r=0;r<n;r++)this.list.push("");return t}},template:'\n        <div>\n          <div class="sn-photoGallery" :class="{ \'sn-photoGallery--single\' : photoLength === 1 }">\n            <ul class="sn-photoGallery__frame">\n              <template v-for="(item, index) in sortedList">\n                <li class="sn-photoGallery__frameItem" v-if="index === counterGallery">\n                  <div>\n                    <p><img :src="item.photo" alt=""></p>\n                    <span class="sn-photoGallery__frameCaption" v-if="item.caption">${item.caption}</span>\n                  </div>\n                </li>\n              </template>\n            </ul>\n            <ul class="sn-photoGallery__navi" v-if="photoLength !== 1">\n              <li class="sn-photoGallery__naviItem" v-on:click="count(\'down\')"><span class="sn-icon sn-icon--angleLeft"></span></li>\n              <li class="sn-photoGallery__naviItem" v-on:click="count(\'up\')"><span class="sn-icon sn-icon--angleRight"></span></li>\n            </ul>\n            <p class="sn-photoGallery__counter" v-if="photoLength > 1">${counterGallery+1} / ${photoLength}</p>\n          </div>\n          <div class="sn-photoThumbnail" v-if="photoLength !== 1">\n            <ul class="sn-photoThumbnail__frame">\n              <template v-for="(item, index) in list">\n                <li v-if="Math.floor(index / thumbnailCount) == counterThumbnail" class="sn-photoThumbnail__frameItem":class="{ \'sn-photoThumbnail__frameItem--current\' : index === counterGallery}">\n                  <span v-if="item.photo" class="sn-photoThumbnail__frameClickable" v-on:click="count(index)" :style="{ backgroundImage: \'url(\' + item.photo + \')\' }"></span>\n                  <span v-else></span>\n                </li>\n              </template>\n            </ul>\n            <ul class="sn-photoThumbnail__navi">\n              <li class="sn-photoThumbnail__naviItem" :class="{ \'sn-photoThumbnail__naviItem--unclickable\' : photoLength <= thumbnailCount}" v-on:click="slide(\'prev\')"><span class="sn-icon sn-icon--angleLeft"></span></li>\n              <li class="sn-photoThumbnail__naviItem" :class="{ \'sn-photoThumbnail__naviItem--unclickable\' : photoLength <= thumbnailCount}" v-on:click="slide(\'next\')"><span class="sn-icon sn-icon--angleRight"></span></li>\n            </ul>\n          </div>\n        </div>\n      '}}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=e,this.words=n,this.dom=r}return r(t,[{key:"render",value:function(){var t,e=this.linkify,n=this.generateRegExpSeed,r=this.words.reduce((function(t,e){return t.forEach((function(t){if(~e.text.indexOf(t.text)<0)return t.ignore.push(e.text)})),t.push(e),t}),[]).reverse();t=this.dom?document.getElementById(this.id).querySelectorAll(this.dom):document.getElementById(this.id).querySelectorAll(".sn-timeline .sn-timeline__text"),Array.prototype.slice.call(t,0).forEach((function(t){var i=t.innerHTML;r.forEach((function(t,r){i=e(i,n(t.text,t.ignore,t.url))})),t.innerHTML=i}))}},{key:"linkify",value:function(t,e){var n=t;if(0!=e.back.length&&0!=e.front.length)n=n.replace(new RegExp("("+e.front.join("|")+")?"+e.mark,"g"),(function(t,n,r,i){return n||e.back.some((function(e){return i.slice(r+t.length,r+t.length+e.length).match(new RegExp(e))}))?t:'<a href="'+e.url+'">'+t+"</a>"}));else if(0==e.back.length&&0!=e.front.length){var r=reverse(n);n=reverse(r.replace(new RegExp(reverse(e.mark)+"(?!"+reverse(e.front.join("|"))+")","g"),reverse('<a href="'+e.url+'">'+e.mark+"</a>")))}else n=0!=e.back.length&&0==e.front.length?n.replace(new RegExp(e.mark+"(?!"+e.back.join("|")+")","g"),'<a href="'+e.url+'">$&</a>'):n.replace(new RegExp(e.mark,"g"),'<a href="'+e.url+'">$&</a>');return n}},{key:"reverse",value:function(t){return t.split("").reverse().join("")}},{key:"generateRegExpSeed",value:function(t,e,n){var r=t.replace(/[!"#$%&'()\*\+\-\.,\/:;<=>?@\[\\\]^_`{|}~]/g,"\\$&"),i=[],s=[];return 0!=e.length&&e.sort((function(t,e){return e.length-t.length})).forEach((function(e){var n=e.split(t);""!=n[0]&&""!=n[1]?(i.push(n[0]),s.push(n[1])):""==n[0]&&""!=n[1]?s.push(n[1]):""!=n[0]&&""==n[1]&&i.push(n[0])})),{front:i,back:s,mark:r,url:n}}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.ua=e.toLowerCase()||navigator.userAgent.toLowerCase()}return r(t,[{key:"isSpnaviApp",value:function(){return/sportsnavi.*/.test(this.ua)}},{key:"isBbApp",value:function(){return/.*textlive.*/.test(this.ua)}},{key:"isYjApp",value:function(){return/YJApp-.*/.test(this.ua)}},{key:"isApp",value:function(){return this.isSpnaviApp()||this.isYjApp()||this.isBbApp()}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=e,this.data=n}return r(t,[{key:"render",value:function(){document.getElementById("js-tournament--"+this.id),new Vue({el:"#js-tournament--"+this.id,components:{t:this.component()}})}},{key:"component",value:function(){var t=this.data.content.blocks,e=this.data.content.section,n=this.data.content.ui_pc,r=this.data.content.block_width_pc,i=this.data.content.bracket_width_pc,s=this.data.content.currentCounts;return{data:function(){return{currentBlocks:t,currentBrackets:e,uiLeftRight:n,blockWidthPc:r,bracketWidthPc:i,currentCounts:s,currentTournamentLR:this.tournamentLR}},components:{tournament:this.tournament(),tournamentBorderWrap:this.tournamentBorderWrap()},mounted:function(){this.uiLeftRight?this.updateTournamentLR():this.updateBracket()},updated:function(){this.$nextTick((function(){this.uiLeftRight&&this.updateBracketLR()}))},methods:{updateTournamentLR:function(){var t=this;if(this.uiLeftRight){var e=[],n=[],r=[],i=[],s=void 0;this.currentBlocks.forEach((function(r){r.id<=t.currentCounts/2?e.push(r):n.push(r)})),this.currentBrackets.forEach((function(e,n){e.forEach((function(o,a){0===a&&(r[n]=[],i[n]=[]),0===n?o.id<=t.currentCounts/2?r[0].push(o):i[0].push(o):n===t.currentBrackets.length-1?s=e[0]:o.children[0]<t.currentBrackets[n-1].slice(-1)[0].id/2?r[n].push(o):i[n].push(o)}))})),this.currentTournamentLR={block:[e,n],section:[r,i],sectionLast:s}}else this.currentTournamentLR=!1},setBracketsPos:function(t){var e=this,n=[],r=this.$el;Array.prototype.slice.call(t).forEach((function(i,s){if(0!==s){var o={};Array.prototype.slice.call(i.childNodes).forEach((function(i,a){if(1===s){var u=t[0].childNodes[a],l=[u.offsetTop,u.offsetTop+u.clientHeight];i.style.top=l[0]+"px",i.style.height=l[1]-l[0]+"px";var c=e.currentBrackets[s-1][a],h={top:l[0],height:l[1]-l[0],center:u.offsetTop+u.clientHeight/2,family_count:[1],players:c.children};o[c.id]=h}else{var p=e.currentBrackets[s-1][a];if(p.children[1]){var d=n[s-2][p.children[0]],f=n[s-2][p.children[1]],m=d.family_count.reduce((function(t,e){return t+e}),0),v=f.family_count.reduce((function(t,e){return t+e}),0),_=d.center,y=f.center,b=d.center+(f.center-d.center)/2;if(i.style.top=_+"px",i.style.height=y-_+"px",d.players.length!==f.players.length){var g=r.querySelector('.sn-tournament__player[data-player-id="'+f.players[0]+'"]');g.offsetTop<y&&g.offsetTop>_&&(i.querySelector(".sn-tournament__borderBox").style.top=g.offsetTop-_+"px",i.querySelectorAll(".sn-tournament__borderMargin")[0].style.height=g.offsetTop-_+"px",i.querySelectorAll(".sn-tournament__borderMargin")[1].style.height=y-g.offsetTop+"px",b=g.offsetTop)}var w={top:_,height:y-_,center:b,family_count:[m,v],players:d.players.concat(f.players)};o[p.id]=w}else{var T=n[s-2][p.children[0]];i.style.top=T.top+"px",i.style.height=T.height+"px";var k={top:T.top,height:T.height,center:T.top+T.height/2,family_count:T.family_count,players:T.players};o[p.id]=k}}})),n.push(o)}}))},updateBracketLR:function(){var t=this,e=this.$el,n=e.querySelectorAll(".sn-tournament .sn-tournament__wrapper"),r=[];Array.prototype.slice.call(n).forEach((function(e){var n=e.querySelectorAll(".sn-tournament__section");t.setBracketsPos(n),Array.prototype.slice.call(n).forEach((function(t,e){if(e===n.length-2){var i=t.querySelector(".sn-tournament__border"),s=Number(i.style.top.split("px")[0])+Number(i.style.height.split("px")[0])/2;r.push(s)}}))})),e.querySelector(".sn-tournament .sn-tournament__wrapper--last").style.top=r[0]-20+"px"},updateBracket:function(){var t=this.$el.querySelectorAll(".sn-tournament .sn-tournament__section");this.setBracketsPos(t)}},template:'\n      <tournament\n        :currentBrackets="currentBrackets"\n        :currentBlocks="currentBlocks"\n        :currentCounts="currentCounts"\n        :blockWidthPc="blockWidthPc"\n        :bracketWidthPc="bracketWidthPc"\n        :currentTournamentLR="currentTournamentLR">\n      </tournament>\n      '}}},{key:"tournament",value:function(){return{props:["currentBrackets","currentBlocks","currentTournamentLR","blockWidthPc","bracketWidthPc"],components:{tournamentBorderWrap:this.tournamentBorderWrap()},template:'\n      <div\n        :class="[\'sn-tournament\', currentTournamentLR ? \'sn-tournament--lr\' : \'\']">\n        <template v-if="currentTournamentLR">\n          <div class="sn-tournament__wrapper"\n            :class="currentTournamentLR.sectionLast.status === \'activeTop\' ? \'sn-tournament__wrapper--win\' : \'\' ">\n          \n            <div class="sn-tournament__section">\n              <div class="sn-tournament__player"\n                v-for="item in currentTournamentLR.block[0]"\n                :style="{ minWidth: blockWidthPc ? blockWidthPc + \'px\' : \'\' }"\n                :data-player-id="item.id">\n                <a\n                  v-if="item.url"\n                  :href="item.url"\n                  class="sn-tournament__playerWrap"\n                  :class="item.flag === \'false\' ? \'sn-tournament__playerWrap--disabled\' : \'\'">\n                  <div>\n                    <p class="sn-tournament__playerText">{{item.title}}</p>\n                    <p v-if="item.sub_text" class="sn-tournament__playerSubText">{{item.sub_text}}</p>\n                  </div>\n                </a>\n                <div v-else\n                  class="sn-tournament__playerWrap"\n                  :class="item.flag === \'false\' ? \'sn-tournament__playerWrap--disabled\' : \'\'">\n                  <div>\n                    <p class="sn-tournament__playerText">{{item.title}}</p>\n                    <p v-if="item.sub_text" class="sn-tournament__playerSubText">{{item.sub_text}}</p>\n                  </div>\n                </div>\n              </div>\x3c!-- .sn-tournament__player --\x3e\n            </div>\n\n            <div\n              v-for="(section, index) in currentTournamentLR.section[0]"\n              class="sn-tournament__section"\n              :style="{\n                width: index === 0 && bracketWidthPc ? bracketWidthPc + \'px\' : \'\',\n                maxWidth: index === 0 && bracketWidthPc ? bracketWidthPc + \'px\' : \'\',\n                flex:  index === 0 ? \'auto\' : 1\n              }">\n              <div\n                v-for="(border, borderIndex) in section"\n                class="sn-tournament__border"\n                :class="[\'sn-tournament__border--\' + border.type]">\n                \x3c!-- {{border}} --\x3e\n                <div\n                  class="sn-tournament__borderWrap"\n                  :class="border.status ? \'sn-tournament__borderWrap--\' + border.status : \'\'">\n                  <div class="sn-tournament__borderMargin"></div>\n                  <div class="sn-tournament__borderBox">\n                    <div class="sn-tournament__borderInfo">\n                      <div class="sn-tournament__borderInfoScore">\n                        <div>\n                          <p v-if="border.type !== \'single\'">{{border.score_top}}</p>\n                          <p v-if="border.type !== \'single\'">{{border.score_bottom}}</p>\n                        </div>\n                      </div>\n                      <div\n                        class="sn-tournament__borderInfoText"\n                        v-if="border.type !== \'single\'"\n                        :style="{\n                          width: bracketWidthPc ? bracketWidthPc + \'px\' : \'100%\',\n                          left: bracketWidthPc ? -1 * bracketWidthPc + \'px\' : \'-100%\'\n                        }">\n                        <p>\n                          <template v-if="!border.info_url">{{border.info_text}}</template>\n                          <a v-else :href="border.info_url">{{border.info_text}}</a>\n                        </p>\n                      </div>\n                    </div>\n                  </div>\n                  <div class="sn-tournament__borderMargin"></div>\n                </div>\n              </div>\x3c!-- .sn-tournament__border --\x3e\n            </div>\n          \n          </div>\n\n          <div class="sn-tournament__wrapper sn-tournament__wrapper--last">\n            <div class="sn-tournament__last">\n              <p class="sn-tournament__last">\n                <img src="https://i.yimg.jp/images/sports/all_device/common/images/sports50.png" alt="優勝" width="40">\n              </p>\n              <p class="sn-tournament__lastScore"\n                :class="currentTournamentLR.sectionLast.status ? \'sn-tournament__lastScore--\' + currentTournamentLR.sectionLast.status : \'\'">\n                <span>{{currentTournamentLR.sectionLast.score_top}}</span>\n                <span v-if="currentTournamentLR.sectionLast.score_top">-</span>\n                <span>{{currentTournamentLR.sectionLast.score_bottom}}</span>\n              </p>\n              <p class="sn-tournament__lastInfo">\n                {{currentTournamentLR.sectionLast.info_text}}\n              </p>\n            </div>\n          </div>\n\n          <div class="sn-tournament__wrapper"\n          :class="currentTournamentLR.sectionLast.status === \'activeBottom\' ? \'sn-tournament__wrapper--win\' : \'\' ">\n\n            <div class="sn-tournament__section">\n              <div class="sn-tournament__player"\n                  v-for="item in currentTournamentLR.block[1]"\n                  :style="{ minWidth: blockWidthPc ? blockWidthPc + \'px\' : \'\' }"\n                  :data-player-id="item.id">\n                <a\n                  v-if="item.url"\n                  :href="item.url"\n                  class="sn-tournament__playerWrap"\n                  :class="item.flag === \'false\' ? \'sn-tournament__playerWrap--disabled\' : \'\'">\n                  <div>\n                    <p class="sn-tournament__playerText">{{item.title}}</p>\n                    <p v-if="item.sub_text" class="sn-tournament__playerSubText">{{item.sub_text}}</p>\n                  </div>\n                </a>\n                <div v-else\n                  class="sn-tournament__playerWrap"\n                  :class="item.flag === \'false\' ? \'sn-tournament__playerWrap--disabled\' : \'\'">\n                  <div>\n                    <p class="sn-tournament__playerText">{{item.title}}</p>\n                    <p v-if="item.sub_text" class="sn-tournament__playerSubText">{{item.sub_text}}</p>\n                  </div>\n                </div>\n              </div>\x3c!-- .sn-tournament__player --\x3e\n            </div>\n\n            <div\n              v-for="(section, index) in currentTournamentLR.section[1]"\n              class="sn-tournament__section"\n              :style="{\n                width: index === 0 && bracketWidthPc ? bracketWidthPc + \'px\' : \'\',\n                maxWidth: index === 0 && bracketWidthPc ? bracketWidthPc + \'px\' : \'\',\n                flex:  index === 0 ? \'auto\' : 1\n              }">\n              <div\n              v-for="(border, borderIndex) in section"\n              class="sn-tournament__border"\n              :class="[\'sn-tournament__border--\' + border.type]">\n              \x3c!-- {{border}} --\x3e\n              <div\n                class="sn-tournament__borderWrap"\n                :class="border.status ? \'sn-tournament__borderWrap--\' + border.status : \'\'">\n                <div class="sn-tournament__borderMargin"></div>\n                <div class="sn-tournament__borderBox">\n                  <div class="sn-tournament__borderInfo">\n                    <div class="sn-tournament__borderInfoScore">\n                      <div>\n                        <p v-if="border.type !== \'single\'">{{border.score_top}}</p>\n                        <p v-if="border.type !== \'single\'">{{border.score_bottom}}</p>\n                      </div>\n                    </div>\n                    <div\n                      class="sn-tournament__borderInfoText"\n                      v-if="border.type !== \'single\'"\n                      :style="{\n                        width: bracketWidthPc ? bracketWidthPc + \'px\' : \'100%\',\n                        right: bracketWidthPc ? -1 * bracketWidthPc + \'px\' : \'-55px\'\n                      }">\n                      <p>\n                        <template v-if="!border.info_url">{{border.info_text}}</template>\n                        <a v-else :href="border.info_url">{{border.info_text}}</a>\n                      </p>\n                    </div>\n                  </div>\n                </div>\n                <div class="sn-tournament__borderMargin"></div>\n              </div>\n            </div>\x3c!-- .sn-tournament__border --\x3e\n            </div>\n          \n          </div>\n\n        </template>\n        <div class="sn-tournament__wrapper" v-else>\n          <div class="sn-tournament__section">\n            <div class="sn-tournament__player"\n              v-for="item in currentBlocks"\n              :data-player-id="item.id">\n              <a\n                v-if="item.url"\n                :href="item.url"\n                class="sn-tournament__playerWrap"\n                :class="item.flag === \'false\' ? \'sn-tournament__playerWrap--disabled\' : \'\'">\n                <div>\n                  <p class="sn-tournament__playerText">{{item.title}}</p>\n                  <p v-if="item.sub_text" class="sn-tournament__playerSubText">{{item.sub_text}}</p>\n                </div>\n              </a>\n              <div v-else\n                class="sn-tournament__playerWrap"\n                :class="item.flag === \'false\' ? \'sn-tournament__playerWrap--disabled\' : \'\'">\n                <div>\n                  <p class="sn-tournament__playerText">{{item.title}}</p>\n                  <p v-if="item.sub_text" class="sn-tournament__playerSubText">{{item.sub_text}}</p>\n                </div>\n              </div>\n            </div>\x3c!-- .sn-tournament__player --\x3e\n          </div>\n          <div\n            v-for="(section, index) in currentBrackets"\n            class="sn-tournament__section">\n            <div\n              v-for="(border, borderIndex) in section"\n              class="sn-tournament__border"\n              :class="[\'sn-tournament__border--\' + border.type]">\n              \x3c!-- {{border}} --\x3e\n              <div\n                :class="[\'sn-tournament__borderWrap\',\n                          border.status ? \'sn-tournament__borderWrap--\' + border.status : \'\',\n                          index === currentBrackets.length-1 ? \'sn-tournament__borderWrap--last\': \'\']">\n                <div class="sn-tournament__borderMargin"></div>\n                <div\n                  class="sn-tournament__borderBox">\n                  <div class="sn-tournament__borderInfo">\n                    <div class="sn-tournament__borderInfoScore">\n                      <div>\n                        <p v-if="border.type !== \'single\'">{{border.score_top}}</p>\n                        <p v-if="border.type !== \'single\'">{{border.score_bottom}}</p>\n                      </div>\n                    </div>\n                    <div class="sn-tournament__borderInfoText" v-if="border.type !== \'single\'">\n                      <p>\n                        <template v-if="!border.info_url">{{border.info_text}}</template>\n                        <a v-else :href="border.info_url">{{border.info_text}}</a>\n                      </p>\n                    </div>\n                  </div>\n                </div>\n                <div class="sn-tournament__borderMargin"></div>\n              </div>\n            </div>\x3c!-- .sn-tournament__border --\x3e\n          </div>\n        </div>\n      </div>\n      '}}},{key:"tournamentBorderWrap",value:function(){return{props:["section"],template:'\n      <p>\n        <span v-for="item in section">{{section}}</span>\n      </p>\n      '}}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e){var n=e.hideLine,r=e.targetTable;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.hideLine=n,this.table=r}return r(t,[{key:"init",value:function(){for(var t=this.hideLine,e=document.getElementById(this.table),n=e.querySelector("tbody"),r=e.querySelectorAll("th"),i=n.querySelectorAll("tr"),s=0;s<i.length;s++)s>i.length-t?(""==i[s].children[0].children[0].innerHTML&&(i[s].children[0].children[0].innerHTML=i[s-1].children[0].children[0].innerHTML,i[s-1].children[0].children[0].innerHTML=""),n.insertBefore(i[s],n.firstChild)):n.removeChild(i[s]);for(var o=0;o<r.length;o++)r[o].className="sn-table__itemTh",r[o].children.length>1&&r[o].children[1].remove();e.getElementsByTagName("table")[0].classList.add("sn-style--blur")}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=o(n(0)),s=o(n(2));function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var a=function(){function t(e,n,r,i,s,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.documentId=i,this.cid=e,this.type=n,this.typeTtl=o,this.ds=s,this.start=1,this.total=0,this.returnResult=0,this.result=20,this.infeedDisplayInterval=5,this.infeedCount=0,this.infeedDisplayMax=6,this.infeedRetryMax=10,this.infeedSleepMsec=300,this.infeedItems=[],this.itemCount=0,this.target=document.getElementById(r),this.divObj=document.createElement("div"),this.divObj.classList.add("sn-timeLine"),this.divUlObj=document.createElement("ul"),this.divObj.classList.add("sn-timeLine__list"),this.divObj.appendChild(this.divUlObj),this.target.appendChild(this.divObj),this.pObj=document.createElement("p"),this.pObj.classList.add("sn-timeLine__load"),this.target.appendChild(this.pObj)}return r(t,[{key:"render",value:function(){this.fetchActoin()}},{key:"fetchActoin",value:function(){var t=this;this.renderLoading(),i.requestGuinnessApiLargeTTL(this.cid,this.type,this.typeTtl,this.result,this.start).then((function(e){t.removeLoading(),0===e.contentList.length?t.renderError():(t.insertContentsList(e),t.updateListNum(e.firstResultsPosition,e.totalResultsAvailable,e.totalResultsReturned),t.renderMoreRead())})).catch((function(e){t.removeLoading(),t.renderError()}))}},{key:"updateListNum",value:function(t,e,n){this.start=n+t,this.total=e,this.returnResult=n}},{key:"renderLoading",value:function(){this.pObj.innerHTML='<img class="sn-timeLine__loadIcon" src="https://s.yimg.jp/images/sports/all_device/common/images/load@2x.gif" alt="読み込み中">'}},{key:"removeLoading",value:function(){this.pObj.classList.remove("sn-timeLine__load"),this.pObj.innerHTML=""}},{key:"renderMoreRead",value:function(){var t=this;this.returnResult<this.result||this.total<=20||this.start>=this.total||(this.pObj.classList.add("sn-timeLine__load"),this.pObj.innerHTML='<button class="sn-timeLine__moreView--button" type="button" data-cl-params="_cl_link:nl_more;_cl_position:1">もっと見る</button>',this.pObj.onclick=function(){t.fetchActoin()})}},{key:"getPcImageUrl",value:function(t){return t.pcLargeImage.url||t.pcSmallImage.url}},{key:"getPcImageWebpUrl",value:function(t){return t.pcLargeImage.webpUrl||t.pcSmallImage.webpUrl}},{key:"getSubText",value:function(t){return null!=t.writerName?t.writerName:t.subText}},{key:"prTag",value:function(t){return t.hasOwnProperty("prNotation")&&null!=t.prNotation?'<small class="sn-list__itemCredit">'+t.prNotation+"</small>":""}},{key:"isAppLimited",value:function(t){return 1==t.isApp?'<span class="sn-icon sn-icon--appLimited">アプリ限定</span>':""}},{key:"insertContentsList",value:function(t){var e=this;t.contentList.forEach((function(t){switch(e.itemCount+4===(e.infeedCount+1)*e.infeedDisplayInterval&&e.infeedCount<e.infeedDisplayMax&&(e.createInfeedHtml(e.infeedCount),e.infeedCount++),t.contentsType){case"video":e.insertContentsVideo(t);break;default:e.insertContents(t)}e.itemCount++}));for(var n=0;n<this.infeedItems.length;n++){var r=this.infeedItems[n];this.setInfeedItem(r)}if(this.infeedItems=[],"undefined"!=typeof customLoggerCore&&"function"==typeof customLoggerCore.refreshModule)customLoggerCore.refreshModule("nl_tl",!1);else if("undefined"!=typeof DSCustomLogger){var i=new DSCustomLogger.CustomLoggerCore(null);i.addModules("nl_tl",!1),i.refreshModule("nl_tl",!1)}}},{key:"insertContents",value:function(t){var e=document.createElement("li");e.classList.add("sn-timeLine__item");var n=this.createCustomLoggerParam(t),r='<a class="sn-timeLine__itemArticleLink" href="'+t.linkUrl+'" '+n+'>\n            <picture class="sn-timeLine__itemThumbnail">\n              <source type="image/webp" srcset="'+this.getPcImageWebpUrl(t)+'">\n              <img src="'+this.getPcImageUrl(t)+'" height="70" width="70" alt="">\n            </picture>\n            <div class="sn-timeLine__itemText">\n              <p class="sn-timeLine__itemTitle">'+t.headline+'</p>\n              <small class="sn-timeLine__itemCredit">'+this.getSubText(t)+'</small>\n              <time datetime="'+s.transform(t.createdAt,"datetime")+'" class="sn-timeLine__itemTime">'+s.transform(t.createdAt)+"</time>\n              "+this.prTag(t)+"\n              "+this.isAppLimited(t)+"\n            </div>\n          </a>";e.innerHTML=r,this.divObj.getElementsByTagName("ul")[0].appendChild(e)}},{key:"insertContentsVideo",value:function(t){var e=document.createElement("li");e.classList.add("sn-timeLine__item");var n=this.createCustomLoggerParam(t),r='<a class="sn-timeLine__itemArticleLink" href="'+t.linkUrl+'" '+n+'>\n          <p class="sn-timeLine__itemVideoThumbnail">\n            <picture>\n             <source type="image/webp" srcset="'+this.getPcImageWebpUrl(t)+'">\n             <img class="sn-timeLine__itemVideoThumbnailImg" src="'+this.getPcImageUrl(t)+'" alt="thumbnail">\n            </picture>\n            <span class="sn-timeLine__itemVideoTime">'+s.secondsToMinutesAndSeconds(t.duration)+'</span>\n          </p>\n          <div class="sn-timeLine__itemText">\n            <p class="sn-timeLine__itemTitle">'+t.headline+'</p>\n            <small class="sn-timeLine__itemCredit">'+t.subText+'</small>\n            <time class="sn-timeLine__itemTime" datetime="'+s.transform(t.createdAt,"datetime")+'">'+s.transform(t.createdAt)+"</time>\n          </div>\n        </a>";e.innerHTML=r,this.divObj.getElementsByTagName("ul")[0].appendChild(e)}},{key:"createCustomLoggerParam",value:function(t){var e='data-cl-params="_cl_link:';switch(t.contentsType){case"news":e+="nl_new_n;";break;case"column":e+="nl_new_c;";break;case"video":e+="nl_new_m;";break;case"owned_column":e+="nl_new_o;"}return e+"_cl_position:"+this.itemCount+'"'}},{key:"renderError",value:function(){var t=document.createElement("li");t.classList.add("sn-timeLine"),t.classList.add("sn-timeLine--noData"),t.innerHTML='<div class="sn-timeLine__itemText">記事を取得できませんでした。</div>',this.divObj.getElementsByTagName("ul")[0].appendChild(t)}},{key:"createInfeedHtml",value:function(t){var e="infe"+t,n=document.createElement("li");n.classList.add("sn-timeLine__item"),n.classList.add("sn-timeLine__item--infeed"),n.innerHTML='<div id="'+e+'"></div>',this.divObj.getElementsByTagName("ul")[0].appendChild(n),this.infeedItems.push(e)}},{key:"setInfeedItem",value:function(t){var e=this,n=document.getElementById(t).parentNode;n.setAttribute("hidden",!0);var r=0,i=setInterval((function(){r>e.infeedRetryMax?(clearInterval(i),n.remove()):inoYadsTimelineParam.isAdFetched&&(inoYadsTimelineParam.hasMoreAds()?(inoYadsTimelineParam.insertAd(t),n.removeAttribute("hidden"),clearInterval(i)):inoYadsTimelineParam=new YadsTimelineManager({yads_ad_ds:e.ds})),r++}),this.infeedSleepMsec)}}]),t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.val=e}return r(t,[{key:"formatDate",value:function(t){return t.getFullYear()+"/"+this.padZero(t.getMonth()+1)+"/"+this.padZero(t.getDate())+" "+t.getHours()+":"+this.padZero(t.getMinutes())}},{key:"formatDateTime",value:function(t){return t.getFullYear()+"-"+this.padZero(t.getMonth()+1)+"-"+this.padZero(t.getDate())+" "+t.getHours()+":"+this.padZero(t.getMinutes())}},{key:"date",value:function(){return this.formatDate(new Date(1e3*this.val))}},{key:"datetime",value:function(){return this.formatDateTime(new Date(1e3*this.val))}},{key:"datetime2date",value:function(){return this.formatDate(new Date(this.val))}},{key:"datetime2dateVideo",value:function(){return this.val.split(" +")[0].replace("-","/").replace("-","/").slice(0,-3)}},{key:"padZero",value:function(t){return t<10?"0"+t:t}},{key:"duration",value:function(){var t=this.val,e=t/3600|0,n=t%3600/60|0,r=t%60;return 0!=e?e+":"+this.padZero(n)+":"+this.padZero(r):0!=n?n+":"+this.padZero(r):"0:"+this.padZero(r)}},{key:"videoViewCount",value:function(){return this.val.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}},{key:"videoPlayerUrl",value:function(t){return"2120"===this.val.toString()?"https://2020.yahoo.co.jp/olympicchannel/video/player/"+t:"https://2020.yahoo.co.jp/video/player/"+t}},{key:"newsImageUrl",value:function(t,e){var n="https://sports-pctr.c.yimg.jp/dk/iwiz-sports/thumb/category/"+e+".jpg";if(t&&t.view&&t.view.uri){var r=t.view.uri,i=r.split(/(^.*?)\//);if("iwiz"==t.view.platform)"d"==i[1]?r="dk/"+i[2]:"r"==i[1]?r="r/"+i[2]:"c"==i[1]&&(r="dk/iwiz-"+i[2]);else if("dragon-kks"==t.view.platform)r="dk/"+r;else if("dragon-ssk"==t.view.platform)r="ds/"+r;else{if("riak"!=t.view.platform)return n;r="r/"+r}n="https://sports-pctr.c.yimg.jp/"+r}return n}}]),t}();e.default=i}]);