PageSourceSearch

https://www.wineandspiritsmagazine.com/wp-content/plugins/ghostkit…/gist-simple/gist-simple.min.js?ver=1.0.1

js wineandspiritsmagazine.com collected 2026-10-02 04:21:42 UTC 13,111 bytes, 8 lines download raw bytes

1/*!
2 * Name    : Gist Simple - jQuery Gist Loader
3 * Version : 1.0.1
4 * Author  : nK <https://nkdev.info>
5 * GitHub  : https://github.com/nk-o/gist-simple
6 * Based   : https://github.com/blairvanderhoof/gist-embed by Blair Vanderhoof
7 */!function(n){var i={};function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n(4),c=n.n(o),r=n(5),u=n.n(r);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){("object"===("undefined"==typeof HTMLElement?"undefined":s(HTMLElement))?e instanceof HTMLElement:e&&"object"===s(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)&&(e=[e]);for(var n,i=t,o=Array.prototype.slice.call(arguments,2),r=e.length,a=0;a<r;a++)if("object"===s(i)||void 0===i?e[a].GistSimple||(e[a].GistSimple=new m(e[a],i)):e[a].GistSimple&&(n=e[a].GistSimple[i].apply(e[a].GistSimple,o)),void 0!==n)return n;return e}var p=i.window.jQuery,d={},h=0,m=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var n=this;n.instanceID=h++,n.$container=p(e),n.defaults={id:"",file:"",caption:"",lines:"",linesExpanded:!1,highlightLines:"",showFooter:!0,showLineNumbers:!0,enableCache:!0,onInit:null,onInitEnd:null,onDestroy:null,onDestroyEnd:null,onAjaxBeforeSend:null,onAjaxSuccess:null,onAjaxLoaded:null};var i=n.$container[0].dataset||{},o={};
7Object.keys(i).forEach(function(e){var t=e.substr(0,1).toLowerCase()+e.substr(1);t&&void 0!==n.defaults[t]&&(o[t]=i[e])}),n.options=Object.assign({},n.defaults,o,t),n.pureOptions=Object.assign({},n.options),["linesExpanded","showFooter","showLineNumbers","enableCache"].forEach(function(e){"true"===n.options[e]?n.options[e]=!0:"false"===n.options[e]&&(n.options[e]=!1)}),n.init()}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(r,[{key:"init",value:function(){var i=this,o=i.options,r="https://gist.github.com/".concat(o.id,".json"),a=o.lines,e={};if(i.options.onInit&&i.options.onInit.call(i),o.file&&(e.file=o.file),i.$container.addClass("gist-simple"),o.id){var t=r+o.file,n=o.enableCache||d[t];i.insertContent(c.a,!0),p.ajax({url:r,data:e,dataType:"jsonp",timeout:2e4,beforeSend:function(){if(i.options.onAjaxBeforeSend&&i.options.onAjaxBeforeSend.call(i),n){if(d[t])return d[t].then(function(e){s(e)},function(e){l(e)}),!1;d[t]=p.Deferred()}return!0},success:function(e){i.options.onAjaxSuccess&&i.options.onAjaxSuccess.call(i,e),n&&d[t]&&d[t].resolve(e),s(e)},error:function(e,t){l(t)}}),i.options.onInitEnd&&i.options.onInitEnd.call(i)}else i.insertContent("Gist ID is required",!0);function s(e){if(e&&e.div){var t=e.stylesheet;if(t)if(0===t.indexOf("<link"))t=f(t=t.replace(/\\/g,"").match(/href="([^\s]*)"/),1)[0];else 0!==t.indexOf("http")&&(0!==t.indexOf("/")&&(t="/".concat(t)),t="https://gist.github.com".concat(t));i.addStyles(t);var n=p(e.div);n.removeAttr("id"),i.insertContent(n),i.highlightLines(o.highlightLines),i.showSpecificLines(a,o.linesExpanded),i.showCaption(o.caption),o.showFooter||i.removeFooter(),o.showLineNumbers||i.removeLineNumbers(),i.options.onAjaxLoaded&&i.options.onAjaxLoaded.call(i,e)}else i.insertContent("Failed loading gist ".concat(r),!0)}function l(e){i.insertContent("Failed loading gist ".concat(r,": ").concat(e),!0)}}},{key:"destroy",value:function(){var e=this;e.options.onDestroy&&e.options.onDestroy.call(e),e.$container.html(""),delete e.$container[0].GistSimple,e.options.onDestroyEnd&&e.options.onDestroyEnd.call(e)}},{key:"chunkBy",value:function(e,n){return 0===e.length?[]:e.slice(1).reduce(function(e,t){return n(t)?e.push([t]):e.push(e.pop().concat([t])),e},[e.slice(0,1)])}},{key:"getLineNumbers",value:function(e){var t,n,i=[];if("number"==typeof e)i.push(e);else{n=e.split(",");for(var o=0;o<n.length;o++)if(2===(t=n[o].split("-")).length)for(var r=parseInt(t[0],10);r<=t[1];r++)i.push(r);else 1===t.length&&i.push(parseInt(t[0],10))}return i}},{key:"addStyles",value:function(e){e&&!p('link[href="'.concat(e,'"]')).length&&p('<link type="text/css" rel="stylesheet" href="'.concat(e,'">')).appendTo("head")}},{key:"insertContent",value:function(e,t){1<arguments.length&&void 0!==t&&t&&(e=p('<div class="gist-simple-wrap">').html(e)),this.$container.html(e)}},{key:"highlightLines",value:function(e){if(e){var t=this.getLineNumbers(e);this.$container.find("td.line-data").css({width:"100%"}),this.$container.find(".js-file-line").each(function(e){-1!==p.inArray(e+1,t)&&p(this).css({backgroundColor:"rgb(255, 255, 204)"})})}}},{key:"showSpecificLines",value:function(c,t){if(c){var n=this.getLineNumbers(c),i=[];if(this.$container.find(".js-file-line").each(function(e){-1===p.inArray(e+1,n)&&(t?(i.push(e+1),p(this).parent().hide()):p(this).parent().remove())}),t){var e=this.chunkBy(i,function(e){return!i.includes(e-1)});p.each(e,function(e,t){var n=t[0],i=n-1,o=t[t.length-1],r=p("<a></<a>").attr("lines",t.join()).css({display:"block",cursor:"pointer"}).html(u.a).on("click",function(e){e.preventDefault(),p(this).closest("tr").remove();var t=p(this);p("table.highlight").find("tr:hidden td[data-line-number]").each(function(){var e=p(this);c=t.attr("lines").split(","),-1!==p.inArray(e.attr("data-line-number"),c)&&e.parent().show()})}),a=p('\n                    <td\n                        class="blob-num js-line-number collapsed"\n                        style="background-color: #f9f9f9; color: #999; font-size: 12px; font-style: italic; text-align: center; padding-top: 5px !important; padding-bottom: 5px !important;"\n                    ></td>\n                ').append(r),s=p('\n                    <td\n                        class="blob-code blob-code-inner js-file-line collapsed"\n                        style="background-color: #f9f9f9; color: #999; font-size: 12px; font-style: italic; padding-top: 5px !important; padding-bottom: 5px !important;"\n                    >\n                    ... Lines '.concat(n," - ").concat(o,"\n                    </td>\n                ")),l=p("<tr></tr>").append(a).append(s);this.$container.find(".js-line-number[data-line-number=".concat(i,"]")).parent().after(l)})}}}},{key:"showCaption",value:function(e){if(e){var t=this.$container.find("table tbody"),n=p("<tr></tr>"),i=p("<td></td>").attr("style","padding: 10px !important; border-bottom: 10px solid white; background-color: #f9f9f9; font-weight: bold;").html(e);n.append(p('<td style="background-color: #f9f9f9; border-bottom: 10px solid white;"></td>')),n.append(i),t.prepend(n)}}},{key:"removeFooter",value:function(){this.$container.find(".gist-meta").remove(),this.$container.find(".gist-data").css("border-bottom","0px"),this.$container.find(".gist-file").css("border-bottom","1px solid #ddd")}},{key:"removeLineNumbers",value:function(){this.$container.find(".js-line-number").remove()}}]),r}();l.constructor=m,i.window.GistSimple=m;function b(){var e=arguments||[];Array.prototype.unshift.call(e,this);var t=l.apply(i.window,e);return"object"!==s(t)?t:this}b.constructor=l.constructor;var v=p.fn.gistsimple;p.fn.gistsimple=b,p.fn.gistsimple.noConflict=function(){return p.fn.gistsimple=v,this},p(function(){p(".gist-simple").gistsimple()})},function(n,e,t){(function(e){var t;t="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},n.exports=t}).call(this,t(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M28.4375 2.23438C32.8672 4.45312 35.9063 7.375 37.8906 11.7969L35.4375 12.9687C33.875 9.76562 30.5156 6.40625 27.2656 4.80469" fill="#eee"><animate attributeName="fill" values="#eee;#999;#eee;
7#eee" begin="0s" dur="0.875s" repeatCount="indefinite"></animate></path><path d="M38.5937 13.2031C40.1562 17.8906 40.2344 22.1094 38.5156 26.6406L35.9531 25.75C37.125 22.3672 37.125 17.625 35.9531 14.1875" fill="#eee"><animate attributeName="fill" values="#eee;#999;#eee;#eee" begin="0.125s" dur="0.875s" repeatCount="indefinite"></animate></path><path d="M37.9219 28.0625C35.7109 32.4844 32.7813 35.5234 28.3594 37.5156L27.1719 35.0625C30.3984 33.5 33.75 30.1406 35.3516 26.8906" fill="#eee"><animate attributeName="fill" values="#eee;#999;#eee;#eee" begin="0.250s" dur="0.875s" repeatCount="indefinite"></animate></path><path d="M26.9141 38.1641C22.2266 39.7266 18.0078 39.8047 13.4766 38.0859L14.3672 35.5078C17.7422 36.6797 22.4922 36.6797 25.9297 35.5078" fill="#eee"><animate attributeName="fill" values="#eee;#999;#eee;#eee" begin="0.375s" dur="0.875s" repeatCount="indefinite"></animate></path><path d="M12.0547 37.7187C7.63281 35.5 4.59375 32.5781 2.60156 28.1562L5.05469 26.9688C6.61719 30.1953 9.97656 33.5469 13.2266 35.1484" fill="#eee"><animate attributeName="fill" values="#eee;#999;#eee;#eee" begin="0.500s" dur="0.875s" repeatCount="indefinite"></animate></path><path d="M1.85156 26.7734C0.289062 22.0859 0.210938 17.8672 1.92969 13.3359L4.50781 14.2266C3.33594 17.625 3.33594 22.3516 4.50781 25.7891" fill="#eee"><animate attributeName="fill" values="#eee;#999;#eee;#eee" begin="0.625s" dur="0.875s" repeatCount="indefinite"></animate></path><path d="M2.48438 11.7969C4.6875 7.35938 7.61719 4.32031 12.0312 2.34375L13.2266 4.78906C10.0078 6.35156 6.66406 9.71094 5.05469 12.9609" fill="#eee"><animate attributeName="fill" values="#eee;#999;#eee;#eee" begin="0.750s" dur="0.875s" repeatCount="indefinite"></animate></path><path d="M13.5156 1.64062C18.2031 0.078125 22.4219 0 26.9531 1.71875L26.0547 4.28125C22.6719 3.10937 17.9297 3.10937 14.4922 4.28125" fill="#eee"><animate attributeName="fill" values="#eee;#999;#eee;#eee" begin="0.875s" dur="0.875s" repeatCount="indefinite"></animate></path><path d="M15.3906 35.8594V32.1094C15.3906 32.1094 15.0781 31.7969 12.8125 32.0313C10.625 32.2656 7.96875 26.875 7.73438 26.6406C9.60938 25.8594 11.0938 28.6719 12.8125 29.6094H15.2344C15.2344 29.6094 15.4688 26.1719 16.7969 26.7188C18.125 27.1875 11.1719 26.7969 9.21875 21.9531C7.26562 17.1094 10.7031 12.1094 10.7812 12.9688C10.7812 13.6719 9.45312 10.2344 10 9.375C11.5625 7.5 13.9062 10.2344 15.3906 10.5469C15.7812 10.5469 16.7969 9.92188 20 10C23.2031 10 24.2969 10.625 24.6875 10.4688C26.4062 9.6875 28.6719 7.96875 29.7656 9.14063C30.5469 10.0781 29.6875 13.9063 29.6875 12.9688C29.6875 12.0313 33.0469 19.2969 30.1562 23.2813C27.8906 26.875 22.7344 26.6406 23.5938 26.875C25.2344 28.0469 24.6875 33.9844 24.6875 35.8594L22.9688 36.1719V30.3906C22.9688 29.6875 22.2656 29.6094 22.2656 29.6875V36.3281L20.625 36.4063V29.6875H19.8438V36.4063L18.2812 36.3281V29.8438C18.2812 29.8438 17.6562 29.7656 17.6562 30.625V36.25" fill="#eee"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 44" style="height: 15px; position: relative; top: 2px;"><path fill="#bbb" fill-rule="evenodd" d="M8.0066 16.05305v-7.6523c0-.82422-.47656-1.0273-1.0586-.4414l-3.5117 3.5039c-1.8789 1.875-4.6953-.94142-2.8164-2.8164L8.7215.61564c.68359-.67579 1.8008-.6797 2.4922 0l8.1641 8.0312c1.8789 1.875-.9375 4.6914-2.8164 2.8164l-3.5078-3.5039c-.58984-.58985-1.0625-.38673-1.0625.4414v27.30827c0 .82031.47656 1.0273 1.0586.44141l3.5117-3.5039c1.8789-1.875 4.6953.9375 2.8164 2.8164l-8.1016 8.0273c-.6836.6797-1.8008.6797-2.4922 0l-8.1641-8.0273c-1.8789-1.8789.9375-4.6914 2.8164-2.8164l3.5078 3.5039c.58984.58984 1.0625.38672 1.0625-.4414V16.05304z"></path></svg>'}]);
8//# sourceMappingURL=gist-simple.min.js.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.