UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

3 lines 26.6 kB
/*! For license information please see 53693.47551947cf49c119.js.LICENSE.txt */ "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["53693"],{70176:function(){window.JSCompiler_renameProperty=function(e,t){return e}},97333:function(e,t,r){r.d(t,{iY:()=>n});r(71695),r(19134),r(5740),r(97003),r(47021),r(72700),r(8038),r(71513),r(75656),r(50100),r(18084),r(70176);function n(e){return e.substring(0,e.lastIndexOf("/")+1)}},70617:function(e,t,r){r.r(t),r.d(t,{allowTemplateFromDomModule:()=>v,cancelSyntheticClickEvents:()=>A,fastDomIf:()=>x,getSanitizeDOMValue:()=>f,legacyNoObservedAttributes:()=>E,legacyOptimizations:()=>y,legacyUndefined:()=>R,legacyWarnings:()=>P,orderedComputed:()=>C,passiveTouchGestures:()=>p,removeNestedTemplates:()=>O,rootPath:()=>u,sanitizeDOMValue:()=>h,setAllowTemplateFromDomModule:()=>w,setCancelSyntheticClickEvents:()=>B,setFastDomIf:()=>z,setLegacyNoObservedAttributes:()=>N,setLegacyOptimizations:()=>S,setLegacyUndefined:()=>L,setLegacyWarnings:()=>b,setOrderedComputed:()=>q,setPassiveTouchGestures:()=>d,setRemoveNestedTemplates:()=>H,setRootPath:()=>l,setSanitizeDOMValue:()=>c,setStrictTemplatePolicy:()=>g,setSuppressTemplateNotifications:()=>T,setSyncInitialRender:()=>U,setUseAdoptedStyleSheetsWithBuiltCSS:()=>F,strictTemplatePolicy:()=>m,supportsAdoptingStyleSheets:()=>o,suppressTemplateNotifications:()=>I,syncInitialRender:()=>k,useAdoptedStyleSheetsWithBuiltCSS:()=>D,useNativeCSSProperties:()=>s,useNativeCustomElements:()=>a,useShadow:()=>i});r(70176);var n=r(97333);const i=!window.ShadyDOM||!window.ShadyDOM.inUse,s=Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),a=!window.customElements.polyfillWrapFlushCallback,o=i&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let u=window.Polymer&&window.Polymer.rootPath||(0,n.iY)(document.baseURI||window.location.href);const l=function(e){u=e};let h=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;const c=function(e){h=e},f=function(){return h};let p=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1;const d=function(e){p=e};let m=window.Polymer&&window.Polymer.strictTemplatePolicy||!1;const g=function(e){m=e};let v=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1;const w=function(e){v=e};let y=window.Polymer&&window.Polymer.legacyOptimizations||!1;const S=function(e){y=e};let P=window.Polymer&&window.Polymer.legacyWarnings||!1;const b=function(e){P=e};let k=window.Polymer&&window.Polymer.syncInitialRender||!1;const U=function(e){k=e};let R=window.Polymer&&window.Polymer.legacyUndefined||!1;const L=function(e){R=e};let C=window.Polymer&&window.Polymer.orderedComputed||!1;const q=function(e){C=e};let A=!0;const B=function(e){A=e};let O=window.Polymer&&window.Polymer.removeNestedTemplates||!1;const H=function(e){O=e};let x=window.Polymer&&window.Polymer.fastDomIf||!1;const z=function(e){x=e};let I=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;const T=function(e){I=e};let E=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1;const N=function(e){E=e};let D=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;const F=function(e){D=e}},68651:function(e,t,r){var n=r(31269),i=r(97934),s=r(12360),a=r(31534),o=r(95271),u=r(7046),l=r(13053),h=r(60848),c=r(99338),f=r(36760),p=Array;e.exports=function(e){var t=s(e),r=u(this),d=arguments.length,m=d>1?arguments[1]:void 0,g=void 0!==m;g&&(m=n(m,d>2?arguments[2]:void 0));var v,w,y,S,P,b,k=f(t),U=0;if(!k||this===p&&o(k))for(v=l(t),w=r?new this(v):p(v);v>U;U++)b=g?m(t[U],U):t[U],h(w,U,b);else for(w=r?new this:[],P=(S=c(t,k)).next;!(y=i(P,S)).done;U++)b=g?a(S,m,[y.value,U],!0):y.value,h(w,U,b);return w.length=U,w}},58208:function(e,t,r){var n=r(22707),i=Math.floor,s=function(e,t){var r=e.length;if(r<8)for(var a,o,u=1;u<r;){for(o=u,a=e[u];o&&t(e[o-1],a)>0;)e[o]=e[--o];o!==u++&&(e[o]=a)}else for(var l=i(r/2),h=s(n(e,0,l),t),c=s(n(e,l),t),f=h.length,p=c.length,d=0,m=0;d<f||m<p;)e[d+m]=d<f&&m<p?t(h[d],c[m])<=0?h[d++]:c[m++]:d<f?h[d++]:c[m++];return e};e.exports=s},49846:function(e,t,r){var n=r(72878),i=2147483647,s=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",u=RangeError,l=n(a.exec),h=Math.floor,c=String.fromCharCode,f=n("".charCodeAt),p=n([].join),d=n([].push),m=n("".replace),g=n("".split),v=n("".toLowerCase),w=function(e){return e+22+75*(e<26)},y=function(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;)e=h(e/35),n+=36;return h(n+36*e/(e+38))},S=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=f(e,r++);if(i>=55296&&i<=56319&&r<n){var s=f(e,r++);56320==(64512&s)?d(t,((1023&i)<<10)+(1023&s)+65536):(d(t,i),r--)}else d(t,i)}return t}(e);var r,n,s=e.length,a=128,l=0,m=72;for(r=0;r<e.length;r++)(n=e[r])<128&&d(t,c(n));var g=t.length,v=g;for(g&&d(t,"-");v<s;){var S=i;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<S&&(S=n);var P=v+1;if(S-a>h((i-l)/P))throw new u(o);for(l+=(S-a)*P,a=S,r=0;r<e.length;r++){if((n=e[r])<a&&++l>i)throw new u(o);if(n===a){for(var b=l,k=36;;){var U=k<=m?1:k>=m+26?26:k-m;if(b<U)break;var R=b-U,L=36-U;d(t,c(w(U+R%L))),b=h(R/L),k+=36}d(t,c(w(b))),m=y(l,P,v===g),l=0,v++}}l++,a++}return p(t,"")};e.exports=function(e){var t,r,n=[],i=g(m(v(e),a,"."),".");for(t=0;t<i.length;t++)r=i[t],d(n,l(s,r)?"xn--"+S(r):r);return p(n,".")}},83944:function(e,t,r){var n=r(29660),i=r(27847),s=r(85779),a=r(92288),o=i("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),a&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(a||!s)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}))},63256:function(e,t,r){var n=r(40810),i=r(72878),s=r(86070),a=RangeError,o=String.fromCharCode,u=String.fromCodePoint,l=i([].join);n({target:"String",stat:!0,arity:1,forced:!!u&&1!==u.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,i=0;n>i;){if(t=+arguments[i++],s(t,1114111)!==t)throw new a(t+" is not a valid code point");r[i]=t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320)}return l(r,"")}})},99341:function(e,t,r){var n=r(21954).charAt,i=r(72616),s=r(84238),a=r(92901),o=r(78996),u="String Iterator",l=s.set,h=s.getterFor(u);a(String,"String",(function(e){l(this,{type:u,string:i(e),index:0})}),(function(){var e,t=h(this),r=t.string,i=t.index;return i>=r.length?o(void 0,!0):(e=n(r,i),t.index+=e.length,o(e,!1))}))},65812:function(e,t,r){r(71695),r(63256);var n=r(40810),i=r(1569),s=r(99125),a=r(87831),o=r(97934),u=r(72878),l=r(85779),h=r(83944),c=r(99473),f=r(27803),p=r(48194),d=r(93327),m=r(33723),g=r(84238),v=r(60799),w=r(31947),y=r(39129),S=r(31269),P=r(59069),b=r(71998),k=r(61896),U=r(72616),R=r(72309),L=r(64628),C=r(99338),q=r(36760),A=r(78996),B=r(1451),O=r(27847),H=r(58208),x=O("iterator"),z="URLSearchParams",I=z+"Iterator",T=g.set,E=g.getterFor(z),N=g.getterFor(I),D=s("fetch"),F=s("Request"),M=s("Headers"),j=F&&F.prototype,W=M&&M.prototype,$=i.TypeError,G=i.encodeURIComponent,_=String.fromCharCode,J=a("String","fromCodePoint"),V=parseInt,Q=u("".charAt),Y=u([].join),K=u([].push),X=u("".replace),Z=u([].shift),ee=u([].splice),te=u("".split),re=u("".slice),ne=u(/./.exec),ie=/\+/g,se=/^[0-9a-f]+$/i,ae=function(e,t){var r=re(e,t,t+2);return ne(se,r)?V(r,16):NaN},oe=function(e){for(var t=0,r=128;r>0&&e&r;r>>=1)t++;return t},ue=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},le=function(e){for(var t=(e=X(e,ie," ")).length,r="",n=0;n<t;){var i=Q(e,n);if("%"===i){if("%"===Q(e,n+1)||n+3>t){r+="%",n++;continue}var s=ae(e,n+1);if(s!=s){r+=i,n++;continue}n+=2;var a=oe(s);if(0===a)i=_(s);else{if(1===a||a>4){r+="�",n++;continue}for(var o=[s],u=1;u<a&&!(++n+3>t||"%"!==Q(e,n));){var l=ae(e,n+1);if(l!=l){n+=3;break}if(l>191||l<128)break;K(o,l),n+=2,u++}if(o.length!==a){r+="�";continue}var h=ue(o);null===h?r+="�":i=J(h)}}r+=i,n++}return r},he=/[!'()~]|%20/g,ce={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fe=function(e){return ce[e]},pe=function(e){return X(G(e),he,fe)},de=m((function(e,t){T(this,{type:I,target:E(e).entries,index:0,kind:t})}),z,(function(){var e=N(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,A(void 0,!0);var n=t[r];switch(e.kind){case"keys":return A(n.key,!1);case"values":return A(n.value,!1)}return A([n.key,n.value],!1)}),!0),me=function(e){this.entries=[],this.url=null,void 0!==e&&(k(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Q(e,0)?re(e,1):e:U(e)))};me.prototype={type:z,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,s,a,u,l=this.entries,h=q(e);if(h)for(r=(t=C(e,h)).next;!(n=o(r,t)).done;){if(s=(i=C(b(n.value))).next,(a=o(s,i)).done||(u=o(s,i)).done||!o(s,i).done)throw new $("Expected sequence with length 2");K(l,{key:U(a.value),value:U(u.value)})}else for(var c in e)y(e,c)&&K(l,{key:c,value:U(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=te(e,"&"),s=0;s<i.length;)(t=i[s++]).length&&(r=te(t,"="),K(n,{key:le(Z(r)),value:le(Y(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,pe(e.key)+"="+pe(e.value));return Y(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ge=function(){v(this,ve);var e=T(this,new me(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},ve=ge.prototype;if(p(ve,{append:function(e,t){var r=E(this);B(arguments.length,2),K(r.entries,{key:U(e),value:U(t)}),l||this.length++,r.updateURL()},delete:function(e){for(var t=E(this),r=B(arguments.length,1),n=t.entries,i=U(e),s=r<2?void 0:arguments[1],a=void 0===s?s:U(s),o=0;o<n.length;){var u=n[o];if(u.key!==i||void 0!==a&&u.value!==a)o++;else if(ee(n,o,1),void 0!==a)break}l||(this.size=n.length),t.updateURL()},get:function(e){var t=E(this).entries;B(arguments.length,1);for(var r=U(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=E(this).entries;B(arguments.length,1);for(var r=U(e),n=[],i=0;i<t.length;i++)t[i].key===r&&K(n,t[i].value);return n},has:function(e){for(var t=E(this).entries,r=B(arguments.length,1),n=U(e),i=r<2?void 0:arguments[1],s=void 0===i?i:U(i),a=0;a<t.length;){var o=t[a++];if(o.key===n&&(void 0===s||o.value===s))return!0}return!1},set:function(e,t){var r=E(this);B(arguments.length,1);for(var n,i=r.entries,s=!1,a=U(e),o=U(t),u=0;u<i.length;u++)(n=i[u]).key===a&&(s?ee(i,u--,1):(s=!0,n.value=o));s||K(i,{key:a,value:o}),l||(this.size=i.length),r.updateURL()},sort:function(){var e=E(this);H(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=E(this).entries,n=S(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new de(this,"keys")},values:function(){return new de(this,"values")},entries:function(){return new de(this,"entries")}},{enumerable:!0}),c(ve,x,ve.entries,{name:"entries"}),c(ve,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),l&&f(ve,"size",{get:function(){return E(this).entries.length},configurable:!0,enumerable:!0}),d(ge,z),n({global:!0,constructor:!0,forced:!h},{URLSearchParams:ge}),!h&&w(M)){var we=u(W.has),ye=u(W.set),Se=function(e){if(k(e)){var t,r=e.body;if(P(r)===z)return t=e.headers?new M(e.headers):new M,we(t,"content-type")||ye(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),R(e,{body:L(0,U(r)),headers:L(0,t)})}return e};if(w(D)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?Se(arguments[1]):{})}}),w(F)){var Pe=function(e){return v(this,j),new F(e,arguments.length>1?Se(arguments[1]):{})};j.constructor=Pe,Pe.prototype=j,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pe})}}e.exports={URLSearchParams:ge,getState:E}},75656:function(e,t,r){var n=r(99473),i=r(72878),s=r(72616),a=r(1451),o=URLSearchParams,u=o.prototype,l=i(u.append),h=i(u.delete),c=i(u.forEach),f=i([].push),p=new o("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&n(u,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return h(this,e);var n=[];c(this,(function(e,t){f(n,{key:t,value:e})})),a(t,1);for(var i,o=s(e),u=s(r),p=0,d=0,m=!1,g=n.length;p<g;)i=n[p++],m||i.key===o?(m=!0,h(this,i.key)):d++;for(;d<g;)(i=n[d++]).key===o&&i.value===u||l(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},50100:function(e,t,r){var n=r(99473),i=r(72878),s=r(72616),a=r(1451),o=URLSearchParams,u=o.prototype,l=i(u.getAll),h=i(u.has),c=new o("a=1");!c.has("a",2)&&c.has("a",void 0)||n(u,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return h(this,e);var n=l(this,e);a(t,1);for(var i=s(r),o=0;o<n.length;)if(n[o++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},71513:function(e,t,r){r(65812)},18084:function(e,t,r){var n=r(85779),i=r(72878),s=r(27803),a=URLSearchParams.prototype,o=i(a.forEach);n&&!("size"in a)&&s(a,"size",{get:function(){var e=0;return o(this,(function(){e++})),e},configurable:!0,enumerable:!0})},41773:function(e,t,r){r(99341);var n,i=r(40810),s=r(85779),a=r(83944),o=r(1569),u=r(31269),l=r(72878),h=r(99473),c=r(27803),f=r(60799),p=r(39129),d=r(78020),m=r(68651),g=r(22707),v=r(21954).codeAt,w=r(49846),y=r(72616),S=r(93327),P=r(1451),b=r(65812),k=r(84238),U=k.set,R=k.getterFor("URL"),L=b.URLSearchParams,C=b.getState,q=o.URL,A=o.TypeError,B=o.parseInt,O=Math.floor,H=Math.pow,x=l("".charAt),z=l(/./.exec),I=l([].join),T=l(1..toString),E=l([].pop),N=l([].push),D=l("".replace),F=l([].shift),M=l("".split),j=l("".slice),W=l("".toLowerCase),$=l([].unshift),G="Invalid scheme",_="Invalid host",J="Invalid port",V=/[a-z]/i,Q=/[\d+-.a-z]/i,Y=/\d/,K=/^0x/i,X=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,se=/[\t\n\r]/g,ae=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)$(t,e%256),e=O(e/256);return I(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,s=0;s<8;s++)0!==e[s]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=s),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=T(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},oe={},ue=d({},oe,{" ":1,'"':1,"<":1,">":1,"`":1}),le=d({},ue,{"#":1,"?":1,"{":1,"}":1}),he=d({},le,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ce=function(e,t){var r=v(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var r;return 2===e.length&&z(V,x(e,0))&&(":"===(r=x(e,1))||!t&&"|"===r)},de=function(e){var t;return e.length>1&&pe(j(e,0,2))&&(2===e.length||"/"===(t=x(e,2))||"\\"===t||"?"===t||"#"===t)},me=function(e){return"."===e||"%2e"===W(e)},ge={},ve={},we={},ye={},Se={},Pe={},be={},ke={},Ue={},Re={},Le={},Ce={},qe={},Ae={},Be={},Oe={},He={},xe={},ze={},Ie={},Te={},Ee=function(e,t,r){var n,i,s,a=y(e);if(t){if(i=this.parse(a))throw new A(i);this.searchParams=null}else{if(void 0!==r&&(n=new Ee(r,!0)),i=this.parse(a,null,n))throw new A(i);(s=C(new L)).bindURL(this),this.searchParams=s}};Ee.prototype={type:"URL",parse:function(e,t,r){var i,s,a,o,u,l=this,h=t||ge,c=0,f="",d=!1,v=!1,w=!1;for(e=y(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=D(e,ne,""),e=D(e,ie,"$1")),e=D(e,se,""),i=m(e);c<=i.length;){switch(s=i[c],h){case ge:if(!s||!z(V,s)){if(t)return G;h=we;continue}f+=W(s),h=ve;break;case ve:if(s&&(z(Q,s)||"+"===s||"-"===s||"."===s))f+=W(s);else{if(":"!==s){if(t)return G;f="",h=we,c=0;continue}if(t&&(l.isSpecial()!==p(fe,f)||"file"===f&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&fe[l.scheme]===l.port&&(l.port=null));f="","file"===l.scheme?h=Ae:l.isSpecial()&&r&&r.scheme===l.scheme?h=ye:l.isSpecial()?h=ke:"/"===i[c+1]?(h=Se,c++):(l.cannotBeABaseURL=!0,N(l.path,""),h=ze)}break;case we:if(!r||r.cannotBeABaseURL&&"#"!==s)return G;if(r.cannotBeABaseURL&&"#"===s){l.scheme=r.scheme,l.path=g(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,h=Te;break}h="file"===r.scheme?Ae:Pe;continue;case ye:if("/"!==s||"/"!==i[c+1]){h=Pe;continue}h=Ue,c++;break;case Se:if("/"===s){h=Re;break}h=xe;continue;case Pe:if(l.scheme=r.scheme,s===n)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=g(r.path),l.query=r.query;else if("/"===s||"\\"===s&&l.isSpecial())h=be;else if("?"===s)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=g(r.path),l.query="",h=Ie;else{if("#"!==s){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=g(r.path),l.path.length--,h=xe;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=g(r.path),l.query=r.query,l.fragment="",h=Te}break;case be:if(!l.isSpecial()||"/"!==s&&"\\"!==s){if("/"!==s){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,h=xe;continue}h=Re}else h=Ue;break;case ke:if(h=Ue,"/"!==s||"/"!==x(f,c+1))continue;c++;break;case Ue:if("/"!==s&&"\\"!==s){h=Re;continue}break;case Re:if("@"===s){d&&(f="%40"+f),d=!0,a=m(f);for(var S=0;S<a.length;S++){var P=a[S];if(":"!==P||w){var b=ce(P,he);w?l.password+=b:l.username+=b}else w=!0}f=""}else if(s===n||"/"===s||"?"===s||"#"===s||"\\"===s&&l.isSpecial()){if(d&&""===f)return"Invalid authority";c-=m(f).length+1,f="",h=Le}else f+=s;break;case Le:case Ce:if(t&&"file"===l.scheme){h=Oe;continue}if(":"!==s||v){if(s===n||"/"===s||"?"===s||"#"===s||"\\"===s&&l.isSpecial()){if(l.isSpecial()&&""===f)return _;if(t&&""===f&&(l.includesCredentials()||null!==l.port))return;if(o=l.parseHost(f))return o;if(f="",h=He,t)return;continue}"["===s?v=!0:"]"===s&&(v=!1),f+=s}else{if(""===f)return _;if(o=l.parseHost(f))return o;if(f="",h=qe,t===Ce)return}break;case qe:if(!z(Y,s)){if(s===n||"/"===s||"?"===s||"#"===s||"\\"===s&&l.isSpecial()||t){if(""!==f){var k=B(f,10);if(k>65535)return J;l.port=l.isSpecial()&&k===fe[l.scheme]?null:k,f=""}if(t)return;h=He;continue}return J}f+=s;break;case Ae:if(l.scheme="file","/"===s||"\\"===s)h=Be;else{if(!r||"file"!==r.scheme){h=xe;continue}switch(s){case n:l.host=r.host,l.path=g(r.path),l.query=r.query;break;case"?":l.host=r.host,l.path=g(r.path),l.query="",h=Ie;break;case"#":l.host=r.host,l.path=g(r.path),l.query=r.query,l.fragment="",h=Te;break;default:de(I(g(i,c),""))||(l.host=r.host,l.path=g(r.path),l.shortenPath()),h=xe;continue}}break;case Be:if("/"===s||"\\"===s){h=Oe;break}r&&"file"===r.scheme&&!de(I(g(i,c),""))&&(pe(r.path[0],!0)?N(l.path,r.path[0]):l.host=r.host),h=xe;continue;case Oe:if(s===n||"/"===s||"\\"===s||"?"===s||"#"===s){if(!t&&pe(f))h=xe;else if(""===f){if(l.host="",t)return;h=He}else{if(o=l.parseHost(f))return o;if("localhost"===l.host&&(l.host=""),t)return;f="",h=He}continue}f+=s;break;case He:if(l.isSpecial()){if(h=xe,"/"!==s&&"\\"!==s)continue}else if(t||"?"!==s)if(t||"#"!==s){if(s!==n&&(h=xe,"/"!==s))continue}else l.fragment="",h=Te;else l.query="",h=Ie;break;case xe:if(s===n||"/"===s||"\\"===s&&l.isSpecial()||!t&&("?"===s||"#"===s)){if(".."===(u=W(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(l.shortenPath(),"/"===s||"\\"===s&&l.isSpecial()||N(l.path,"")):me(f)?"/"===s||"\\"===s&&l.isSpecial()||N(l.path,""):("file"===l.scheme&&!l.path.length&&pe(f)&&(l.host&&(l.host=""),f=x(f,0)+":"),N(l.path,f)),f="","file"===l.scheme&&(s===n||"?"===s||"#"===s))for(;l.path.length>1&&""===l.path[0];)F(l.path);"?"===s?(l.query="",h=Ie):"#"===s&&(l.fragment="",h=Te)}else f+=ce(s,le);break;case ze:"?"===s?(l.query="",h=Ie):"#"===s?(l.fragment="",h=Te):s!==n&&(l.path[0]+=ce(s,oe));break;case Ie:t||"#"!==s?s!==n&&("'"===s&&l.isSpecial()?l.query+="%27":l.query+="#"===s?"%23":ce(s,oe)):(l.fragment="",h=Te);break;case Te:s!==n&&(l.fragment+=ce(s,ue))}c++}},parseHost:function(e){var t,r,n;if("["===x(e,0)){if("]"!==x(e,e.length-1))return _;if(t=function(e){var t,r,n,i,s,a,o,u=[0,0,0,0,0,0,0,0],l=0,h=null,c=0,f=function(){return x(e,c)};if(":"===f()){if(":"!==x(e,1))return;c+=2,h=++l}for(;f();){if(8===l)return;if(":"!==f()){for(t=r=0;r<4&&z(ee,f());)t=16*t+B(f(),16),c++,r++;if("."===f()){if(0===r)return;if(c-=r,l>6)return;for(n=0;f();){if(i=null,n>0){if(!("."===f()&&n<4))return;c++}if(!z(Y,f()))return;for(;z(Y,f());){if(s=B(f(),10),null===i)i=s;else{if(0===i)return;i=10*i+s}if(i>255)return;c++}u[l]=256*u[l]+i,2!=++n&&4!==n||l++}if(4!==n)return;break}if(":"===f()){if(c++,!f())return}else if(f())return;u[l++]=t}else{if(null!==h)return;c++,h=++l}}if(null!==h)for(a=l-h,l=7;0!==l&&a>0;)o=u[l],u[l--]=u[h+a-1],u[h+--a]=o;else if(8!==l)return;return u}(j(e,1,-1)),!t)return _;this.host=t}else if(this.isSpecial()){if(e=w(e),z(te,e))return _;if(t=function(e){var t,r,n,i,s,a,o,u=M(e,".");if(u.length&&""===u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=u[n]))return e;if(s=10,i.length>1&&"0"===x(i,0)&&(s=z(K,i)?16:8,i=j(i,8===s?1:2)),""===i)a=0;else{if(!z(10===s?Z:8===s?X:ee,i))return e;a=B(i,s)}N(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=H(256,5-t))return null}else if(a>255)return null;for(o=E(r),n=0;n<r.length;n++)o+=r[n]*H(256,3-n);return o}(e),null===t)return _;this.host=t}else{if(z(re,e))return _;for(t="",r=m(e),n=0;n<r.length;n++)t+=ce(r[n],oe);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(fe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,s=e.port,a=e.path,o=e.query,u=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=r+(n?":"+n:"")+"@"),l+=ae(i),null!==s&&(l+=":"+s)):"file"===t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+I(a,"/"):"",null!==o&&(l+="?"+o),null!==u&&(l+="#"+u),l},setHref:function(e){var t=this.parse(e);if(t)throw new A(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Ne(e.path[0]).origin}catch(r){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(y(e)+":",ge)},getUsername:function(){return this.username},setUsername:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=ce(t[r],he)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=ce(t[r],he)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Le)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ce)},getPort:function(){var e=this.port;return null===e?"":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=y(e))?this.port=null:this.parse(e,qe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+I(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,He))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=y(e))?this.query=null:("?"===x(e,0)&&(e=j(e,1)),this.query="",this.parse(e,Ie)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=y(e))?("#"===x(e,0)&&(e=j(e,1)),this.fragment="",this.parse(e,Te)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ne=function(e){var t=f(this,De),r=P(arguments.length,1)>1?arguments[1]:void 0,n=U(t,new Ee(e,!1,r));s||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},De=Ne.prototype,Fe=function(e,t){return{get:function(){return R(this)[e]()},set:t&&function(e){return R(this)[t](e)},configurable:!0,enumerable:!0}};if(s&&(c(De,"href",Fe("serialize","setHref")),c(De,"origin",Fe("getOrigin")),c(De,"protocol",Fe("getProtocol","setProtocol")),c(De,"username",Fe("getUsername","setUsername")),c(De,"password",Fe("getPassword","setPassword")),c(De,"host",Fe("getHost","setHost")),c(De,"hostname",Fe("getHostname","setHostname")),c(De,"port",Fe("getPort","setPort")),c(De,"pathname",Fe("getPathname","setPathname")),c(De,"search",Fe("getSearch","setSearch")),c(De,"searchParams",Fe("getSearchParams")),c(De,"hash",Fe("getHash","setHash"))),h(De,"toJSON",(function(){return R(this).serialize()}),{enumerable:!0}),h(De,"toString",(function(){return R(this).serialize()}),{enumerable:!0}),q){var Me=q.createObjectURL,je=q.revokeObjectURL;Me&&h(Ne,"createObjectURL",u(Me,q)),je&&h(Ne,"revokeObjectURL",u(je,q))}S(Ne,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!s},{URL:Ne})},72700:function(e,t,r){r(41773)},8038:function(e,t,r){var n=r(40810),i=r(97934);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})}}]); //# sourceMappingURL=53693.47551947cf49c119.js.map