Files
silo-server/third_party/jellyfin-web/10.11.6/node_modules.webcomponents.js.bundle.js
T

2 lines
39 KiB
JavaScript
Raw Normal View History

2026-05-22 20:26:11 -04:00
/*! For license information please see node_modules.webcomponents.js.bundle.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[17060],{69177:function(){var e,t;!function(){window.WebComponents=window.WebComponents||{flags:{}};var e=document.querySelector('script[src*="webcomponents-lite.js"]'),t={};if(!t.noOpts){if(location.search.slice(1).split("&").forEach((function(e){var n,r=e.split("=");r[0]&&(n=r[0].match(/wc-(.+)/))&&(t[n[1]]=r[1]||!0)})),e)for(var n,r=0;n=e.attributes[r];r++)"src"!==n.name&&(t[n.name]=n.value||!0);if(t.log&&t.log.split){var o=t.log.split(",");t.log={},o.forEach((function(e){t.log[e]=!0}))}else t.log={}}t.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=t.register),WebComponents.flags=t}(),function(e){"use strict";var t=!1;if(!e.forceJURL)try{var n=new URL("b","http://a");n.pathname="c%20d",t="http://a/c%20d"===n.href}catch(e){}if(!t){var r=Object.create(null);r.ftp=21,r.file=0,r.gopher=70,r.http=80,r.https=443,r.ws=80,r.wss=443;var o=Object.create(null);o["%2e"]=".",o[".%2e"]="..",o["%2e."]="..",o["%2e%2e"]="..";var i=void 0,a=/[a-zA-Z]/,s=/[a-zA-Z0-9\+\-\.]/;v.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var e="";return""==this._username&&null==this._password||(e=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){m.call(this),f.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInvalid||f.call(this,e+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(e){!this._isInvalid&&this._isRelative&&f.call(this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid&&this._isRelative&&f.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&f.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],f.call(this,e,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"==this._query?"":this._query},set search(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),f.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice(1)),f.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}return(e=this.host)?this._scheme+"://"+e:""}};var c=e.URL;c&&(v.createObjectURL=function(e){return c.createObjectURL.apply(c,arguments)},v.revokeObjectURL=function(e){c.revokeObjectURL(e)}),e.URL=v}function d(e){return void 0!==r[e]}function l(){m.call(this),this._isInvalid=!0}function u(e){return""==e&&l.call(this),e.toLowerCase()}function h(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function p(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function f(e,t,n){function c(e){g.push(e)}var f=t||"scheme start",m=0,v="",w=!1,_=!1,g=[];e:for(;(e[m-1]!=i||0==m)&&!this._isInvalid;){var b=e[m];switch(f){case"scheme start":if(!b||!a.test(b)){if(t){c("Invalid scheme.");break e}v="",f="no scheme";continue}v+=b.toLowerCase(),f="scheme";break;case"scheme":if(b&&s.test(b))v+=b.toLowerCase();else{if(":"!=b){if(t){if(i==b)break e;c("Code point not allowed in scheme: "+b);break e}v="",m=0,f="no scheme";continue}if(this._scheme=v,v="",t)break e;d(this._scheme)&&(this._isRelative=!0),f="file"==this._scheme?"relative":this._isRelative&&n&&n._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"==b?(this._query="?",f="query"):"#"==b?(this._fragment="#",f="fragment"):i!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this._schemeData+=h(b));break;case"no sche