1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("Clappr")):"function"==typeof define&&define.amd?define(["Clappr"],e):"object"==typeof exports?exports.ClapprSubtitles=e(require("Clappr")):t.ClapprSubtitles=e(t.Clappr)}(window,function(n){return function(n){var r={};function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}return o.m=n,o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=3)}([function(t,e){t.exports=n},function(t,e){t.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve" style="pointer-events: none"><metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata><path d="M893.4,599V500H401.1V599H893.4z M893.4,794.5v-98.9H695.5v98.9H893.4z M598.9,794.5v-98.9H106.6v98.9H598.9z M106.6,500V599h197.8V500H106.6z M893.4,106.7c26.1,0,48.7,10,67.9,29.9s28.8,42.9,28.8,69v588.9c0,26.1-9.6,49.1-28.8,69c-19.2,19.9-41.8,29.9-67.9,29.9H106.6c-26.1,0-48.7-10-67.9-29.9c-19.2-19.9-28.8-42.9-28.8-69V205.5c0-26.1,9.6-49.1,28.8-69s41.8-29.9,67.9-29.9H893.4z"></path></svg>'},function(t,e){t.exports='<button\n type="button"\n class="clapprsubtitles-button media-control-button media-control-icon"\n data-clapprsubtitles-button\n aria-label="<%= buttonLabel %>"\n title="<%= buttonLabel %>"\n></button>\n<ul class="ui-plugin-selector">\n <li><a role="button" href="#" data-clapprsubtitles-select="-1"><%= disabledLabel %></a></li>\n <% for (var i = 0; i < tracks.length; i++) { %>\n <li><a role="button" href="#" data-clapprsubtitles-select="<%= i %>"><%= tracks[i].label %></a></li>\n <% }; %>\n</ul>'},function(t,h,b){"use strict";b.r(h),function(o){b.d(h,"default",function(){return d});var i=b(0),t=b(1),n=b.n(t),e=b(2),s=b.n(e);b(5);function r(t){return(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})(t)}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(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)}}function u(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f={ru:"СÑбÑиÑÑÑ (s)",en:"Subtitles (s)"},d=function(t){function r(t){var e,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(e=a(this,l(r).call(this,t))).isDisabled=e._options.subtitle?(n=e._options.subtitle,!!window.navigator.userAgent.match(n.disabledIn)):(console.error("Can't read subtitles options"),!0),e.isDisabled?a(e):(e.onMediaControlClick=function(t){return e.$(t.target).closest(e.$el).length||e.hideContextMenu()},e.getSettings(),e.createSubsElement(),e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}
1(r,i["UICorePlugin"]),u(r,[{key:"supportedVersion",get:function(){return{min:"0.4.0"}}},{key:"name",get:function(){return"clappr-subtitles"}},{key:"template",get:function(){return Object(i.template)(s.a)}},{key:"buttonLabel",get:function(){var t=this.settings.labelsLanguage;return f[t=f[t]?t:"en"]}},{key:"events",get:function(){return{"click [data-clapprsubtitles-button]":"toggleContextMenu","click [data-clapprsubtitles-select]":"onTrackSelect"}}},{key:"attributes",get:function(){return{class:"clapprsubtitles-controls ui-plugin","data-clapprsubtitles-controls":""}}}],[{key:"version",get:function(){return"0.2.0"}}]),u(r,[{key:"bindEvents",value:function(){var n=this;i.Events.CORE_ACTIVE_CONTAINER_CHANGED?this.listenTo(this.core,i.Events.CORE_ACTIVE_CONTAINER_CHANGED,this.onContainerChanged):this.listenTo(this.core.mediaControl,i.Events.MEDIACONTROL_CONTAINERCHANGED,this.onContainerChanged),this.listenTo(this.core,i.Events.CORE_FULLSCREEN,this.onFullscreen);!function t(){var e=n.core.mediaControl;e.settings?(n.mediaControl=e,n.listenTo(n.mediaControl,i.Events.MEDIACONTROL_RENDERED,n.onMediaControlRendered),n.listenTo(n.mediaControl,i.Events.MEDIACONTROL_SHOW,n.onMediaControlShow),n.listenTo(n.mediaControl,i.Events.MEDIACONTROL_HIDE,n.onMediaControlHide)):setTimeout(t,50)}()}},{key:"onContainerChanged",value:function(){var t=this;if(this.container=this.core.getCurrentContainer(),this.disarmPlyabackCCMethods(),this.stopListening(this.container,i.Events.CONTAINER_CLICK,this.hideContextMenu),this.listenTo(this.container,i.Events.CONTAINER_CLICK,this.hideContextMenu),this.$videoEl=this.core.getCurrentPlayback().$el,this.$trackEl=this.$videoEl.find("track"),this.tracks=this.$videoEl[0].textTracks?Array.from(this.$videoEl[0].textTracks):[],this.CC=this.core.getPlugin("closed_captions"),this.tracks.length){var e=this.container.$el;e.has(".subtitles-container").length||e.append(this.$subsContainer),this.createContextMenu(),this.$el.addClass("available"),this.$videoEl.one("canplay",function(){t.isDisabled?t.CC&&t.setCcShowing():(t.CC&&t.CC.disable(),t.$subsElement.html(""),t.active&&t.prepareTrack(),t.setCurrentContextMenuElement(t.active?0:-1))})}}},{key:"prepareTrack",value:function(){var t=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length?arguments[1]:void 0;if(Array.prototype.forEach.call(this.tracks,function(t,e){t.mode="disabled",t.current=!1,e===n&&(t.current=!0,i.Browser.isEdge?o.nextTick(function(){t.mode="hidden"}):t.mode="hidden")}),!(n<0)){switch(this.$trackEl[n].readyState){case 0:case 1:this.$trackEl.eq(n).one("load",function(){t.bindCueHandlers(n)});break;case 2:this.tracks[n].prepared||this.bindCueHandlers(n);break;default:console.error("Text track error",this.$trackEl[n].src),e||(console.log("trying to reload track"),this.$trackEl[n].src=this.$trackEl[n].src,this.prepareTrack(n,!0))}this.active=!0,this.toggleSubtitles()}}},{key:"bindCueHandlers",value:function(t){var e=this,n=this.tracks[t];Object.keys(n.cues).forEach(function(t){n.cues[t].onenter=e.onCueEnter.bind(e)}),n.prepared=!0}},{key:"onTrackSelect",value:function(t){var e=parseInt(t.target.dataset.clapprsubtitlesSelect,10);return e<0&&(this.active=!1,this.toggleSubtitles()),this.$subsElement.html(""),this.prepareTrack(e),this.hideContextMenu(),t.stopPropagation(),this.setCurrentContextMenuElement(e),!1}},{key:"onCueEnter",value:function(t){var e=t.target;e.$assignedEl||(e.$assignedEl=this.createCueEl(e.text),e.onexit=function(){return e.$assignedEl.remove()}),e.track.current?this.$subsElement.append(e.$assignedEl):e.track.mode="disabled"}},{key:"setCcShowing",value:function(){this.CC.containerChanged(),this.CC.onSubtitleAvailable();try{this._options.subtitle.auto&&(this.CC.setCurrentContextMenuElement(0),this.container.closedCaptionsTrackId=0)}catch(t){console.error(t)}}},{key:"hideContextMenu",value:function(){this.$el.find("ul").hide()}},{key:"toggleContextMenu",value:function(){this.$el.find("ul").toggle()}},{key:"toggleSubtitles",value:function(){var t=this.active?"addClass":"removeClass";this.$subsContainer&&this.$subsContainer[t]("active"),this.$subtitlesButton&&this.$subtitlesButton[t]("active")}},{key:"setCurrentContextMenuElement",value:function(t){this._trackId!==t&&(this.contextMenuElement().removeClass("current"),this.contextMenuElement(t).addClass("current"),this._trackId=t)}},{key:"contextMenuElement",value:function(t){return this.$el.find("ul a"+(isNaN(t)?"":'[data-clapprsubtitles-select="'+t+'"]'))}},{key:"onMediaControlShow",value:function(){this.$subsContainer&&this.$subsContainer.css("bottom","60px")}},{key:"onMediaControlHide",value:function(){this.hideContextMenu(),this.$subsContainer&&this.$subsContainer.css("bottom","15px")}},{key:"onFullscreen",value:function(t){this.$subsElement&&this.$subsElement.css("fontSize",this.getFontSize(this.settings.fontSize,this._options.width,18,t))}},{key:"getSettings",value:function(){var t=this._options.subtitle;this.settings=function(o){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},e=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),e.forEach(function(t){var e,n,r;e=o,r=i[n=t],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return o}({},{auto:!1,backgroundColor:"rgba(0, 0, 0, .8)",color:"#FFF",fontSize:"16px",fontWeight:"bold",textShadow:"rgb(0,0,0) 2px 2px 2px",fullScreenAdaptive:!0,maxWidth:"80%",srclang:"ru",labelsLanguage:"en"},t),this.active=!!this.settings.auto}},{key:"createSubsElement",value:function(){var t={maxWidth:this.settings.maxWidth,color:this.settings.color,backgroundColor:this.settings.backgroundColor,fontSize:this.getFontSize(this.settings.fontSize,this._options.width,18,!1),fontWeight:this.settings.fontWeight,textShadow:this.settings.textShadow};this.$subsElement=Object(i.$)('<div class="subtitles">').css(t),this.$subsContainer=Object(i.$)('<div class="subtitles-container">').append(this.$subsElement)}},{key:"createContextMenu",value:function(){var e=this,t=this.tracks;this.$el.html(this.template({buttonLabel:this.buttonLabel,disabledLabel:"OFF",tracks:t})),this.$subtitlesButton=this.$el.find("button.clapprsubtitles-button[data-clapprsubtitles-button]"),this._options.subtitle&&this._options.subtitle.icon?window.fetch(this._options.subtitle.icon).then(function(t){return t.text()}).then(function(t){e.$subtitlesButton.append(t)}
1).catch(function(t){console.error(t),e.$subtitlesButton.append(n.a)}):this.$subtitlesButton.append(n.a)}},{key:"createCueEl",value:function(t){return t=t.replace(/\n/gi,"<br>"),Object(i.$)("<p>",{class:"subtitles-cue"}).html(t)}},{key:"getFontSize",value:function(t,e,n,r){if(this.settings.fullScreenAdaptive&&r)return n*window.screen.width/640;if(t.match(/adaptive/i)){if(-1!==String(e).indexOf("%"))return n;switch(t){case"adaptive-small":n*=.75;break;case"adaptive-big":n*=1.2}return n*Number(String(e).replace(/px/g,""))/640}return this.settings.fontSize}},{key:"onMediaControlRendered",value:function(){this.isDisabled||(this.mediaControl.$el.off("click",this.onMediaControlClick).on("click",this.onMediaControlClick),this.mediaControl.$el.find(".media-control-right-panel").append(this.$el))}},{key:"disarmPlyabackCCMethods",value:function(){var t=this.container.playback;"hls"===t.name&&(t._onSubtitleLoaded=function(){},t.once(i.Events.PLAYBACK_PLAY,function(){t._hls.subtitleDisplay=!1}))}}]),r}()}.call(this,b(4))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var l,c=[],u=!1,p=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length&&d())}function d(){if(!u){var t=a(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++p<e;)l&&l[p].run();p=-1,e=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function b(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new h(t,e)),1!==c.length||u||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){var r=n(6);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(8)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(7)(!1)).push([t.i,"[data-player] .clapprsubtitles-controls[data-clapprsubtitles-controls] {\n float: right;\n position: relative;\n display: none;\n height: 100%;\n font-size: 10px; }\n [data-player] .clapprsubtitles-controls[data-clapprsubtitles-controls].available {\n display: block; }\n [data-player] .clapprsubtitles-controls[data-clapprsubtitles-controls] > ul {\n list-style-type: none;\n position: absolute;\n bottom: 35px;\n transform: translateX(-50%);\n left: 50%;\n border: 1px solid black;\n border-radius: 5px;\n display: none;\n color: white;\n background-color: rgba(0, 0, 0, 0.533);\n text-shadow: black 2px 2px 2px; }\n [data-player] .clapprsubtitles-controls[data-clapprsubtitles-controls] li a {\n color: white;\n padding: 5px 10px;\n display: block;\n text-decoration: none; }\n [data-player] .clapprsubtitles-controls[data-clapprsubtitles-controls] li a:hover {\n background-color: rgba(0, 0, 0, 0.6);\n color: #cccccc; }\n [data-player] .clapprsubtitles-controls[data-clapprsubtitles-controls] li a.current {\n color: #888888; }\n\n[data-player] .subtitles-container:not(.active) {\n display: none; }
1\n\n[data-player] .subtitles-container {\n position: absolute;\n bottom: 15px;\n width: 100%;\n z-index: 99;\n display: flex;\n justify-content: center; }\n [data-player] .subtitles-container i {\n font-style: italic; }\n [data-player] .subtitles-container b {\n font-weight: bold; }\n [data-player] .subtitles-container p {\n padding: 5px;\n line-height: 1; }\n [data-player] .subtitles-container .subtitles {\n box-sizing: border-box;\n border-radius: 6px;\n opacity: 0.8;\n pointer-events: none; }\n",""])},function(t,e,n){"use strict";t.exports=function(n){var s=[];return s.toString=function(){return this.map(function(t){var e=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(s=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),i=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(i).concat([o]).join("\n")}var s;return[n].join("\n")}(t,n);return t[2]?"@media "+t[2]+"{"+e+"}":e}).join("")},s.i=function(t,e){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];null!=o&&(n[o]=!0)}for(r=0;r<t.length;r++){var i=t[r];null!=i[0]&&n[i[0]]||(e&&!i[2]?i[2]=e:e&&(i[2]="("+i[2]+") and ("+e+")"),s.push(i))}},s}},function(t,e,n){var r,o,i,l={},c=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=(i={},function(t){if("function"==typeof t)return t();if(void 0===i[t]){var e=function(t){return document.querySelector(t)}.call(this,t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}i[t]=e}return i[t]}),u=null,p=0,a=[],f=n(9);function d(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=l[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(m(r.parts[i],e))}else{var s=[];for(i=0;i<r.parts.length;i++)s.push(m(r.parts[i],e));l[r.id]={id:r.id,refs:1,parts:s}}}}function h(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],s=e.base?i[0]+e.base:i[0],a={css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function b(t,e){var n=s(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=a[a.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),a.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=s(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,o)}}function v(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=a.indexOf(t);0<=e&&a.splice(e,1)}function y(t){var e=document.createElement("style");return t.attrs.type="text/css",g(e,t.attrs),b(t,e),e}function g(e,n){Object.keys(n).forEach(function(t){e.setAttribute(t,n[t])})}function m(e,t){var n,r,o,i,s,a;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var l=p++;n=u||(u=y(t)),r=x.bind(null,n,l,!1),o=x.bind(null,n,l,!0)}else o=e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=t,a=document.createElement("link"),s.attrs.type="text/css",s.attrs.rel="stylesheet",g(a,s.attrs),b(s,a),r=function(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=f(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([r],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,n=a,t),function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(t),r=function(t,e){var n=e.css,r=e.media;r&&t.setAttribute("media",r);
vendor: 1,787 bytes, line 1
1if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),function(){v(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}t.exports=function(t,s){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(s=s||{}).attrs="object"==typeof s.attrs?s.attrs:{},s.singleton||"boolean"==typeof s.singleton||(s.singleton=c()),s.insertInto||(s.insertInto="head"),s.insertAt||(s.insertAt="bottom");var a=h(t,s);return d(a,s),function(t){for(var e=[],n=0;n<a.length;n++){var r=a[n];(o=l[r.id]).refs--,e.push(o)}t&&d(h(t,s),s);for(n=0;n<e.length;n++){var o;if(0===(o=e[n]).refs){for(var i=0;i<o.parts.length;i++)o.parts[i]();delete l[o.id]}}}};var C,k=(C=[],function(t,e){return C[t]=e,C.filter(Boolean).join("\n")});function x(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=k(e,o);else{var i=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var o=e.protocol+"//"+e.host,i=o+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var n,r=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?t:(n=0===r.indexOf("//")?r:0===r.indexOf("/")?o+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")})}}]).default});
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.