1!function(){"use strict";var t=function(t,e){var a;t.rails!==e&&t.error("jquery-ujs has already been loaded!");var i=t(document);t.rails=a={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form:not([data-turbo=true])",formInputClickSelector:"form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return t("meta[name=csrf-token]").attr("content")},csrfParam:function(){return t("meta[name=csrf-param]").attr("content")},CSRFProtection:function(t){var e=a.csrfToken();e&&t.setRequestHeader("X-CSRF-Token",e)},refreshCSRFTokens:function(){t('form input[name="'+a.csrfParam()+'"]').val(a.csrfToken())},fire:function(e,a,i){var n=t.Event(a);return e.trigger(n,i),!1!==n.result},confirm:function(t){return confirm(t)},ajax:function(e){return t.ajax(e)},href:function(t){return t[0].href},isRemote:function(t){return t.data("remote")!==e&&!1!==t.data("remote")},handleRemote:function(i){var n,o,r,s,l,c;if(a.fire(i,"ajax:before")){if(s=i.data("with-credentials")||null,l=i.data("type")||t.ajaxSettings&&t.ajaxSettings.dataType,i.is("form")){n=i.data("ujs:submit-button-formmethod")||i.attr("method"),o=i.data("ujs:submit-button-formaction")||i.attr("action"),r=t(i[0]).serializeArray();var d=i.data("ujs:submit-button");d&&(r.push(d),i.data("ujs:submit-button",null)),i.data("ujs:submit-button-formmethod",null),i.data("ujs:submit-button-formaction",null)}else i.is(a.inputChangeSelector)?(n=i.data("method"),o=i.data("url"),r=i.serialize(),i.data("params")&&(r=r+"&"+i.data("params"))):i.is(a.buttonClickSelector)?(n=i.data("method")||"get",o=i.data("url"),r=i.serialize(),i.data("params")&&(r=r+"&"+i.data("params"))):(n=i.data("method"),o=a.href(i),r=i.data("params")||null);return c={type:n||"GET",data:r,dataType:l,beforeSend:function(t,n){if(n.dataType===e&&t.setRequestHeader("accept","*/*;q=0.5, "+n.accepts.script),!a.fire(i,"ajax:beforeSend",[t,n]))return!1;i.trigger("ajax:send",t)},success:function(t,e,a){i.trigger("ajax:success",[t,e,a])},complete:function(t,e){i.trigger("ajax:complete",[t,e])},error:function(t,e,a){i.trigger("ajax:error",[t,e,a])},crossDomain:a.isCrossDomain(o)},s&&(c.xhrFields={withCredentials:s}),o&&(c.url=o),a.ajax(c)}return!1},isCrossDomain:function(t){var e=document.createElement("a");e.href=location.href;var a=document.createElement("a");try{return a.href=t,a.href=a.href,!((!a.protocol||":"===a.protocol)&&!a.host||e.protocol+"//"+e.host==a.protocol+"//"+a.host)}catch(t){return!0}},handleMethod:function(i){var n=a.href(i),o=i.data("method"),r=i.attr("target"),s=a.csrfToken(),l=a.csrfParam(),c=t('<form method="post" action="'+n+'"></form>'),d='<input name="_method" value="'+o+'" type="hidden" />';l===e||s===e||a.isCrossDomain(n)||(d+='<input name="'+l+'" value="'+s+'" type="hidden" />'),r&&c.attr("target",r),c.hide().append(d).appendTo("body"),c.submit()},formElements:function(e,a){return e.is("form")?t(e[0].elements).filter(a):e.find(a)},disableFormElements:function(e){a.formElements(e,a.disableSelector).each((function(){a.disableFormElement(t(this))}))},disableFormElement:function(t){var a,i;a=t.is("button")?"html":"val",(i=t.data("disable-with"))!==e&&(t.data("ujs:enable-with",t[a]()),t[a](i)),t.prop("disabled",!0),t.data("ujs:disabled",!0)},enableFormElements:function(e){a.formElements(e,a.enableSelector).each((function(){a.enableFormElement(t(this))}))},enableFormElement:function(t){var a=t.is("button")?"html":"val";t.data("ujs:enable-with")!==e&&(t[a](t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.prop("disabled",!1),t.removeData("ujs:disabled")},allowAction:function(t){var e,i=t.data("confirm"),n=!1;if(!i)return!0;
1if(a.fire(t,"confirm")){try{n=a.confirm(i)}catch(t){(console.error||console.log).call(console,t.stack||t)}e=a.fire(t,"confirm:complete",[n])}return n&&e},blankInputs:function(e,a,i){var n,o,r,s=t(),l=a||"input,textarea",c=e.find(l),d={};return c.each((function(){(n=t(this)).is("input[type=radio]")?(r=n.attr("name"),d[r]||(0===e.find('input[type=radio]:checked[name="'+r+'"]').length&&(o=e.find('input[type=radio][name="'+r+'"]'),s=s.add(o)),d[r]=r)):(n.is("input[type=checkbox],input[type=radio]")?n.is(":checked"):!!n.val())===i&&(s=s.add(n))})),!!s.length&&s},nonBlankInputs:function(t,e){return a.blankInputs(t,e,!0)},stopEverything:function(e){return t(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(t){var i=t.data("disable-with");i!==e&&(t.data("ujs:enable-with",t.html()),t.html(i)),t.on("click.railsDisable",(function(t){return a.stopEverything(t)})),t.data("ujs:disabled",!0)},enableElement:function(t){t.data("ujs:enable-with")!==e&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.off("click.railsDisable"),t.removeData("ujs:disabled")}},a.fire(i,"rails:attachBindings")&&(t.ajaxPrefilter((function(t,e,i){t.crossDomain||a.CSRFProtection(i)})),t(window).on("pageshow.rails",(function(){t(t.rails.enableSelector).each((function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableFormElement(e)})),t(t.rails.linkDisableSelector).each((function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableElement(e)}))})),i.on("ajax:complete",a.linkDisableSelector,(function(){a.enableElement(t(this))})),i.on("ajax:complete",a.buttonDisableSelector,(function(){a.enableFormElement(t(this))})),i.on("click.rails",a.linkClickSelector,(function(e){var i=t(this),n=i.data("method"),o=i.data("params"),r=e.metaKey||e.ctrlKey;if(!a.allowAction(i))return a.stopEverything(e);if(!r&&i.is(a.linkDisableSelector)&&a.disableElement(i),a.isRemote(i)){if(r&&(!n||"GET"===n)&&!o)return!0;var s=a.handleRemote(i);return!1===s?a.enableElement(i):s.fail((function(){a.enableElement(i)})),!1}return n?(a.handleMethod(i),!1):void 0})),i.on("click.rails",a.buttonClickSelector,(function(e){var i=t(this);
1if(!a.allowAction(i)||!a.isRemote(i))return a.stopEverything(e);i.is(a.buttonDisableSelector)&&a.disableFormElement(i);var n=a.handleRemote(i);return!1===n?a.enableFormElement(i):n.fail((function(){a.enableFormElement(i)})),!1})),i.on("change.rails",a.inputChangeSelector,(function(e){var i=t(this);return a.allowAction(i)&&a.isRemote(i)?(a.handleRemote(i),!1):a.stopEverything(e)})),i.on("submit.rails",a.formSubmitSelector,(function(i){var n,o,r=t(this),s=a.isRemote(r);if(!a.allowAction(r))return a.stopEverything(i);if(r.attr("novalidate")===e)if(r.data("ujs:formnovalidate-button")===e){if((n=a.blankInputs(r,a.requiredInputSelector,!1))&&a.fire(r,"ajax:aborted:required",[n]))return a.stopEverything(i)}else r.data("ujs:formnovalidate-button",e);if(s){if(o=a.nonBlankInputs(r,a.fileInputSelector)){setTimeout((function(){a.disableFormElements(r)}),13);var l=a.fire(r,"ajax:aborted:file",[o]);return l||setTimeout((function(){a.enableFormElements(r)}),13),l}return a.handleRemote(r),!1}setTimeout((function(){a.disableFormElements(r)}),13)})),i.on("click.rails",a.formInputClickSelector,(function(e){var i=t(this);if(!a.allowAction(i))return a.stopEverything(e);var n=i.attr("name"),o=n?{name:n,value:i.val()}:null,r=i.closest("form");0===r.length&&(r=t("#"+i.attr("form"))),r.data("ujs:submit-button",o),r.data("ujs:formnovalidate-button",i.attr("formnovalidate")),r.data("ujs:submit-button-formaction",i.attr("formaction")),r.data("ujs:submit-button-formmethod",i.attr("formmethod"))})),i.on("ajax:send.rails",a.formSubmitSelector,(function(e){this===e.target&&a.disableFormElements(t(this))})),i.on("ajax:complete.rails",a.formSubmitSelector,(function(e){this===e.target&&a.enableFormElements(t(this))})),t((function(){a.refreshCSRFTokens()})))};window.jQuery?t(jQuery):"object"==typeof exports&&"object"==typeof module&&(module.exports=t)}(),function(){var t,e;t=window.jQuery,e=t(window),t.fn.stick_in_parent=function(a){var i,n,o,r,s,l,c,d,u,p,m,h;for(null==a&&(a={}),h=a.sticky_class,s=a.inner_scrolling,m=a.recalc_every,p=a.parent,d=a.offset_top,c=a.spacer,n=a.bottoming,null==d&&(d=0),null==p&&(p=void 0),null==s&&(s=!0),null==h&&(h="is_stuck"),i=t(document),null==n&&(n=!0),u=function(t){var e;return window.getComputedStyle?(t=window.getComputedStyle(t[0]),e=parseFloat(t.getPropertyValue("width"))+parseFloat(t.getPropertyValue("margin-left"))+parseFloat(t.getPropertyValue("margin-right")),"border-box"!==t.getPropertyValue("box-sizing")&&(e+=parseFloat(t.getPropertyValue("border-left-width"))+parseFloat(t.getPropertyValue("border-right-width"))+parseFloat(t.getPropertyValue("padding-left"))+parseFloat(t.getPropertyValue("padding-right"))),e):t.outerWidth(!0)},o=function(a,o,r,l,f,b,g,y){var v,k,w,_,E,S,j,x,C,F,T,$;if(!a.data("sticky_kit")){if(a.data("sticky_kit",!0),E=i.height(),j=a.parent(),null!=p&&(j=j.closest(p)),!j.length)throw"failed to find stick parent";if(v=w=!1,(T=null!=c?c&&a.closest(c):t("<div />"))&&T.css("position",a.css("position")),x=function(){var t,e,n;if(!y&&(E=i.height(),t=parseInt(j.css("border-top-width"),10),e=parseInt(j.css("padding-top"),10),o=parseInt(j.css("padding-bottom"),10),r=j.offset().top+t+e,l=j.height(),w&&(v=w=!1,null==c&&(a.insertAfter(T),T.detach()),a.css({position:"",top:"",width:"",bottom:""}).removeClass(h),n=!0),f=a.offset().top-(parseInt(a.css("margin-top"),10)||0)-d,b=a.outerHeight(!0),g=a.css("float"),T&&T.css({width:u(a),height:b,display:a.css("display"),"vertical-align":a.css("vertical-align"),float:g}),n))return $()},x(),b!==l)return _=void 0,S=d,F=m,$=function(){var t,u,p,k;if(!y&&(p=!1,null!=F&&(0>=--F&&(F=m,x(),p=!0)),p||i.height()===E||x(),p=e.scrollTop(),null!=_&&(u=p-_),_=p,w?(n&&(k=p+b+S>l+r,v&&!k&&(v=!1,a.css({position:"fixed",bottom:"",top:S}).trigger("sticky_kit:unbottom"))),p<f&&(w=!1,S=d,null==c&&("left"!==g&&"right"!==g||a.insertAfter(T),T.detach()),t={position:"",width:"",top:""},a.css(t).removeClass(h).trigger("sticky_kit:unstick")),s&&(t=e.height(),b+d>t&&!v&&(S-=u,S=Math.max(t-b,S),S=Math.min(d,S),w&&a.css({top:S+"px"})))):p>f&&(w=!0,(t={position:"fixed",top:S}).width="border-box"===a.css("box-sizing")?a.outerWidth()+"px":a.width()+"px",a.css(t).addClass(h),null==c&&(a.after(T),"left"!==g&&"right"!==g||T.append(a)),a.trigger("sticky_kit:stick")),w&&n&&(null==k&&(k=p+b+S>l+r),!v&&k)))return v=!0,"static"===j.css("position")&&j.css({position:"relative"}),a.css({position:"absolute",bottom:o,top:"auto"}).trigger("sticky_kit:bottom")},C=function(){return x(),$()},k=function(){if(y=!0,e.off("touchmove",$),e.off("scroll",$),e.off("resize",C),t(document.body).off("sticky_kit:recalc",C),a.off("sticky_kit:detach",k),a.removeData("sticky_kit"),a.css({position:"",bottom:"",top:"",width:""}),j.position("position",""),w)return null==c&&("left"!==g&&"right"!==g||a.insertAfter(T),T.remove()),a.removeClass(h)},e.on("touchmove",$),e.on("scroll",$),e.on("resize",C),t(document.body).on("sticky_kit:recalc",C),a.on("sticky_kit:detach",k),setTimeout($,0)}},r=0,l=this.length;r<l;r++)a=this[r],o(t(a));return this}}.call(this),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){var e=Array.prototype.slice,a=Array.prototype.splice,i={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"inherit"},n=t(window),o=t(document),r=[],s=n.height(),l=function(){for(var e=n.scrollTop(),a=o.height(),i=a-s,l=e>i?i-e:0,c=0,d=r.length;c<d;c++){var u=r[c],p=u.stickyWrapper.offset().top-u.topSpacing-l;if(u.stickyWrapper.css("height",u.stickyElement.outerHeight()),e<=p)null!==u.currentTop&&(u.stickyElement.css({width:"",position:"",top:"","z-index":""}),u.stickyElement.parent().removeClass(u.className),u.stickyElement.trigger("sticky-end",[u]),u.currentTop=null);else{var m,h=a-u.stickyElement.outerHeight()-u.topSpacing-u.bottomSpacing-e-l;if(h<0?h+=u.topSpacing:h=u.topSpacing,u.currentTop!==h)u.getWidthFrom?(padding=u.stickyElement.innerWidth()-u.stickyElement.width(),m=t(u.getWidthFrom).width()-padding||null):u.widthFromWrapper&&(m=u.stickyWrapper.width()),null==m&&(m=u.stickyElement.width()),u.stickyElement.css("width",m).css("position","fixed").css("top",h).css("z-index",u.zIndex),u.stickyElement.parent().addClass(u.className),null===u.currentTop?u.stickyElement.trigger("sticky-start",[u]):u.stickyElement.trigger("sticky-update",[u]),u.currentTop===u.topSpacing&&u.currentTop>h||null===u.currentTop&&h<u.topSpacing?u.stickyElement.trigger("sticky-bottom-reached",[u]):null!==u.currentTop&&h===u.topSpacing&&u.currentTop<h&&u.stickyElement.trigger("sticky-bottom-unreached",[u]),u.currentTop=h;var f=u.stickyWrapper.parent();u.stickyElement.offset().top+u.stickyElement.outerHeight()>=f.offset().top+f.outerHeight()&&u.stickyElement.offset().top<=u.topSpacing?u.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):u.stickyElement.css("position","fixed").css("top",h).css("bottom","").css("z-index",u.zIndex)}}},c=function(){s=n.height();for(var e=0,a=r.length;e<a;e++){var i=r[e],o=null;i.getWidthFrom?i.responsiveWidth&&(o=t(i.getWidthFrom).width()):i.widthFromWrapper&&(o=i.stickyWrapper.width()),null!=o&&i.stickyElement.css("width",o)}},d={init:function(e){return this.each((function(){var a=t.extend({},i,e),n=t(this),o=n.attr("id"),s=o?o+"-"+i.wrapperClassName:i.wrapperClassName,l=t("<div></div>").attr("id",s).addClass(a.wrapperClassName);n.wrapAll((function(){if(0==t(this).parent("#"+s).length)return l}));var c=n.parent();a.center&&c.css({width:n.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===n.css("float")&&n.css({float:"none"}).parent().css({float:"right"}),a.stickyElement=n,a.stickyWrapper=c,a.currentTop=null,r.push(a),d.setWrapperHeight(this),d.setupChangeListeners(this)}))},setWrapperHeight:function(e){var a=t(e),i=a.parent();i&&i.css("height",a.outerHeight())},setupChangeListeners:function(t){window.MutationObserver?new window.MutationObserver((function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&d.setWrapperHeight(t)})).observe(t,{subtree:!0,childList:!0}):window.addEventListener?(t.addEventListener("DOMNodeInserted",(function(){d.setWrapperHeight(t)}),!1),t.addEventListener("DOMNodeRemoved",(function(){d.setWrapperHeight(t)}),!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",(function(){d.setWrapperHeight(t)})),t.attachEvent("onDOMNodeRemoved",(function(){d.setWrapperHeight(t)})))},update:l,unstick:function(){return this.each((function(){for(var e=this,i=t(e),n=-1,o=r.length;o-- >0;)r[o].stickyElement.get(0)===e&&(a.call(r,o,1),n=o);-1!==n&&(i.unwrap(),i.css({width:"",position:"",top:"",float:"","z-index":""}))}))}};window.addEventListener?(window.addEventListener("scroll",l,!1),window.addEventListener("resize",c,!1)):window.attachEvent&&(window.attachEvent("onscroll",l),window.attachEvent("onresize",c)),t.fn.sticky=function(a){return d[a]?d[a].apply(this,e.call(arguments,1
1)):"object"!=typeof a&&a?void t.error("Method "+a+" does not exist on jQuery.sticky"):d.init.apply(this,arguments)},t.fn.unstick=function(a){return d[a]?d[a].apply(this,e.call(arguments,1)):"object"!=typeof a&&a?void t.error("Method "+a+" does not exist on jQuery.sticky"):d.unstick.apply(this,arguments)},t((function(){setTimeout(l,0)}))})),$(window).on("load",(function(){if(2==page_segmentation){var t=$(".p-article__detail__contents").height(),e=location.href.match(/^.+\/posts\/([0-9]+)/)[1];0==window.performance.navigation.type&&localStorage.removeItem("contents_height_"+e);var a=0;localStorage.getItem("contents_height_"+e)&&(a=localStorage.getItem("contents_height_"+e));var i=window.innerHeight/2;$(".p-article__detail__contents").css("height","0"),a>$(".p-article__detail__contents").offset().top?a<t?$(".p-article__detail__contents").css("height",a-i+"px"):$(".p-article__detail__contents").css("height",""):$(".p-article__detail__contents").css("height","3000px"),$(window).on("scroll",(function(){var t=$(window).scrollTop();localStorage.setItem("contents_height_"+e,t)}))}})),$("#p-article__detail__more-pager__link").on("click",(function(){var t=3e3,e=$(".p-article__detail__contents").height()+t;$(".p-article__detail__contents").css("height","");var a=$(".p-article__detail__contents").height();e>a&&(e=a,$("#p-article__detail__more-pager").css("display","none"),$(".p-article__detail__contents").removeClass("u-grad-b--white")),$(".p-article__detail__contents").css("height",e+"px")})),$(".u-sticky").stick_in_parent({offset_bottom:10}),$("a.scroll").on("click",(function(t){var e=location.href.match(/^.+(\/posts\/.+)/)[1];if(2==page_segmentation&&($("#p-article__detail__more-pager").css("display","none"),$(".p-article__detail__contents").css("height","auto")),-1!==location.href.search("#")){var a=e.search("#head-");e=e.substr(0,a)}if(-1===e.search("page"))var i=1;else i=e.match(/\?page=(.+)#*/)[1];if(!$(t.target).attr("href").match(/\?page=(.+)#/)||i===$(t.target).attr("href").match(/\?page=(.+)#/)[1]){var n=$(t.target),o=$(n.attr("href").match(/#head-.*/)[0]),r=0;$("html, body").animate({scrollTop:o.offset().top-r})}})),$("[id^=image-]").on("click",(function(){$("[id^=image-]").each((function(t,e){$(e).removeClass("selected")})),$("[id^=detail-]").each((function(t,e){$(e).removeClass("selectedDetail")}));var t=$(this).data("n");$(this).addClass("selected"),$("#detail-"+t).addClass("selectedDetail")}));
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.