UNPKG

dropzone-vue

Version:

Vue3 Library Component for drag’n’drop file uploads with image previews..

6 lines 142 kB
/** * dropzone-vue 0.1.11 * (c) 2021 * @license MIT */ "use strict";var e=require("vue"),t=function(e){try{return!!e()}catch(e){return!0}},i=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){var t={exports:{}};return e(t,t.exports),t.exports}var p=function(e){return e&&e.Math==Math&&e},r=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof n&&n)||function(){return this}()||Function("return this")(),o=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=r.document,c=o(m)&&o(m.createElement),l=function(e){return c?m.createElement(e):{}},s=!i&&!t((function(){return 7!=Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a})),d=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e},u=function(e,t){if(!o(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!o(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!o(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!o(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")},f=Object.defineProperty,y={f:i?f:function(e,t,i){if(d(e),t=u(t,!0),d(i),s)try{return f(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},v=y.f,x=Function.prototype,_=x.toString,h=/^\s*function ([^ (]*)/;function g(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function b(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function w(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?b(Object(i),!0).forEach((function(t){g(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function A(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?k(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i&&!("name"in x)&&v(x,"name",{configurable:!0,get:function(){try{return _.call(this).match(h)[1]}catch(e){return""}}});var E={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,j={f:S&&!E.call({1:2},1)?function(e){var t=S(this,e);return!!t&&t.enumerable}:E},O=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T={}.toString,I=function(e){return T.call(e).slice(8,-1)},R="".split,L=t((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==I(e)?R.call(e,""):Object(e)}:Object,U=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},z=function(e){return L(U(e))},N={}.hasOwnProperty,F=function(e,t){return N.call(e,t)},P=Object.getOwnPropertyDescriptor,C={f:i?P:function(e,t){if(e=z(e),t=u(t,!0),s)try{return P(e,t)}catch(e){}if(F(e,t))return O(!j.f.call(e,t),e[t])}},M=i?function(e,t,i){return y.f(e,t,O(1,i))}:function(e,t,i){return e[t]=i,e},q=function(e,t){try{M(r,e,t)}catch(i){r[e]=t}return t},D=r["__core-js_shared__"]||q("__core-js_shared__",{}),B=Function.toString;"function"!=typeof D.inspectSource&&(D.inspectSource=function(e){return B.call(e)});var V,G,$,W=D.inspectSource,Y=r.WeakMap,H="function"==typeof Y&&/native code/.test(W(Y)),Q=a((function(e){(e.exports=function(e,t){return D[e]||(D[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X=0,K=Math.random(),Z=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++X+K).toString(36)},J=Q("keys"),ee=function(e){return J[e]||(J[e]=Z(e))},te={},ie=r.WeakMap;if(H){var ne=D.state||(D.state=new ie),ae=ne.get,pe=ne.has,re=ne.set;V=function(e,t){return t.facade=e,re.call(ne,e,t),t},G=function(e){return ae.call(ne,e)||{}},$=function(e){return pe.call(ne,e)}}else{var oe=ee("state");te[oe]=!0,V=function(e,t){return t.facade=e,M(e,oe,t),t},G=function(e){return F(e,oe)?e[oe]:{}},$=function(e){return F(e,oe)}}var me={set:V,get:G,has:$,enforce:function(e){return $(e)?G(e):V(e,{})},getterFor:function(e){return function(t){var i;if(!o(t)||(i=G(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}}},ce=a((function(e){var t=me.get,i=me.enforce,n=String(String).split("String");(e.exports=function(e,t,a,p){var o,m=!!p&&!!p.unsafe,c=!!p&&!!p.enumerable,l=!!p&&!!p.noTargetGet;"function"==typeof a&&("string"!=typeof t||F(a,"name")||M(a,"name",t),(o=i(a)).source||(o.source=n.join("string"==typeof t?t:""))),e!==r?(m?!l&&e[t]&&(c=!0):delete e[t],c?e[t]=a:M(e,t,a)):c?e[t]=a:q(t,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||W(this)}))})),le=r,se=function(e){return"function"==typeof e?e:void 0},de=function(e,t){return arguments.length<2?se(le[e])||se(r[e]):le[e]&&le[e][t]||r[e]&&r[e][t]},ue=Math.ceil,fe=Math.floor,ye=function(e){return isNaN(e=+e)?0:(e>0?fe:ue)(e)},ve=Math.min,xe=function(e){return e>0?ve(ye(e),9007199254740991):0},_e=Math.max,he=Math.min,ge=function(e,t){var i=ye(e);return i<0?_e(i+t,0):he(i,t)},be=function(e){return function(t,i,n){var a,p=z(t),r=xe(p.length),o=ge(n,r);if(e&&i!=i){for(;r>o;)if((a=p[o++])!=a)return!0}else for(;r>o;o++)if((e||o in p)&&p[o]===i)return e||o||0;return!e&&-1}},we={includes:be(!0),indexOf:be(!1)},ke=we.indexOf,Ae=function(e,t){var i,n=z(e),a=0,p=[];for(i in n)!F(te,i)&&F(n,i)&&p.push(i);for(;t.length>a;)F(n,i=t[a++])&&(~ke(p,i)||p.push(i));return p},Ee=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Se=Ee.concat("length","prototype"),je={f:Object.getOwnPropertyNames||function(e){return Ae(e,Se)}},Oe={f:Object.getOwnPropertySymbols},Te=de("Reflect","ownKeys")||function(e){var t=je.f(d(e)),i=Oe.f;return i?t.concat(i(e)):t},Ie=function(e,t){for(var i=Te(t),n=y.f,a=C.f,p=0;p<i.length;p++){var r=i[p];F(e,r)||n(e,r,a(t,r))}},Re=/#|\.prototype\./,Le=function(e,i){var n=ze[Ue(e)];return n==Fe||n!=Ne&&("function"==typeof i?t(i):!!i)},Ue=Le.normalize=function(e){return String(e).replace(Re,".").toLowerCase()},ze=Le.data={},Ne=Le.NATIVE="N",Fe=Le.POLYFILL="P",Pe=Le,Ce=C.f,Me=function(e,t){var i,n,a,p,o,m=e.target,c=e.global,l=e.stat;if(i=c?r:l?r[m]||q(m,{}):(r[m]||{}).prototype)for(n in t){if(p=t[n],a=e.noTargetGet?(o=Ce(i,n))&&o.value:i[n],!Pe(c?n:m+(l?".":"#")+n,e.forced)&&void 0!==a){if(typeof p==typeof a)continue;Ie(p,a)}(e.sham||a&&a.sham)&&M(p,"sham",!0),ce(i,n,p,e)}},qe=function(){var e=d(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function De(e,t){return RegExp(e,t)}var Be,Ve,Ge={UNSUPPORTED_Y:t((function(){var e=De("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:t((function(){var e=De("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},$e=RegExp.prototype.exec,We=String.prototype.replace,Ye=$e,He=(Be=/a/,Ve=/b*/g,$e.call(Be,"a"),$e.call(Ve,"a"),0!==Be.lastIndex||0!==Ve.lastIndex),Qe=Ge.UNSUPPORTED_Y||Ge.BROKEN_CARET,Xe=void 0!==/()??/.exec("")[1];(He||Xe||Qe)&&(Ye=function(e){var t,i,n,a,p=this,r=Qe&&p.sticky,o=qe.call(p),m=p.source,c=0,l=e;return r&&(-1===(o=o.replace("y","")).indexOf("g")&&(o+="g"),l=String(e).slice(p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==e[p.lastIndex-1])&&(m="(?: "+m+")",l=" "+l,c++),i=new RegExp("^(?:"+m+")",o)),Xe&&(i=new RegExp("^"+m+"$(?!\\s)",o)),He&&(t=p.lastIndex),n=$e.call(r?i:p,l),r?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=p.lastIndex,p.lastIndex+=n[0].length):p.lastIndex=0:He&&n&&(p.lastIndex=p.global?n.index+n[0].length:t),Xe&&n&&n.length>1&&We.call(n[0],i,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)})),n});var Ke=Ye;Me({target:"RegExp",proto:!0,forced:/./.exec!==Ke},{exec:Ke});var Ze,Je,et="process"==I(r.process),tt=de("navigator","userAgent")||"",it=r.process,nt=it&&it.versions,at=nt&&nt.v8;at?Je=(Ze=at.split("."))[0]+Ze[1]:tt&&(!(Ze=tt.match(/Edge\/(\d+)/))||Ze[1]>=74)&&(Ze=tt.match(/Chrome\/(\d+)/))&&(Je=Ze[1]);var pt=Je&&+Je,rt=!!Object.getOwnPropertySymbols&&!t((function(){return!Symbol.sham&&(et?38===pt:pt>37&&pt<41)})),ot=rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mt=Q("wks"),ct=r.Symbol,lt=ot?ct:ct&&ct.withoutSetter||Z,st=function(e){return F(mt,e)&&(rt||"string"==typeof mt[e])||(rt&&F(ct,e)?mt[e]=ct[e]:mt[e]=lt("Symbol."+e)),mt[e]},dt=st("species"),ut=!t((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),ft="$0"==="a".replace(/./,"$0"),yt=st("replace"),vt=!!/./[yt]&&""===/./[yt]("a","$0"),xt=!t((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),_t=function(e,i,n,a){var p=st(e),r=!t((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),o=r&&!t((function(){var t=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[dt]=function(){return i},i.flags="",i[p]=/./[p]),i.exec=function(){return t=!0,null},i[p](""),!t}));if(!r||!o||"replace"===e&&(!ut||!ft||vt)||"split"===e&&!xt){var m=/./[p],c=n(p,""[e],(function(e,t,i,n,a){return t.exec===Ke?r&&!a?{done:!0,value:m.call(t,i,n)}:{done:!0,value:e.call(i,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:ft,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:vt}),l=c[0],s=c[1];ce(String.prototype,e,l),ce(RegExp.prototype,p,2==i?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)})}a&&M(RegExp.prototype[p],"sham",!0)},ht=function(e){return function(t,i){var n,a,p=String(U(t)),r=ye(i),o=p.length;return r<0||r>=o?e?"":void 0:(n=p.charCodeAt(r))<55296||n>56319||r+1===o||(a=p.charCodeAt(r+1))<56320||a>57343?e?p.charAt(r):n:e?p.slice(r,r+2):a-56320+(n-55296<<10)+65536}},gt={codeAt:ht(!1),charAt:ht(!0)},bt=gt.charAt,wt=function(e,t,i){return t+(i?bt(e,t).length:1)},kt=function(e){return Object(U(e))},At=Math.floor,Et="".replace,St=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jt=/\$([$&'`]|\d{1,2})/g,Ot=function(e,t,i,n,a,p){var r=i+e.length,o=n.length,m=jt;return void 0!==a&&(a=kt(a),m=St),Et.call(p,m,(function(p,m){var c;switch(m.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(r);case"<":c=a[m.slice(1,-1)];break;default:var l=+m;if(0===l)return p;if(l>o){var s=At(l/10);return 0===s?p:s<=o?void 0===n[s-1]?m.charAt(1):n[s-1]+m.charAt(1):p}c=n[l-1]}return void 0===c?"":c}))},Tt=function(e,t){var i=e.exec;if("function"==typeof i){var n=i.call(e,t);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==I(e))throw TypeError("RegExp#exec called on incompatible receiver");return Ke.call(e,t)},It=Math.max,Rt=Math.min;_t("replace",2,(function(e,t,i,n){var a=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,p=n.REPLACE_KEEPS_$0,r=a?"$":"$0";return[function(i,n){var a=U(this),p=null==i?void 0:i[e];return void 0!==p?p.call(i,a,n):t.call(String(a),i,n)},function(e,n){if(!a&&p||"string"==typeof n&&-1===n.indexOf(r)){var o=i(t,e,this,n);if(o.done)return o.value}var m=d(e),c=String(this),l="function"==typeof n;l||(n=String(n));var s=m.global;if(s){var u=m.unicode;m.lastIndex=0}for(var f=[];;){var y=Tt(m,c);if(null===y)break;if(f.push(y),!s)break;""===String(y[0])&&(m.lastIndex=wt(c,xe(m.lastIndex),u))}for(var v,x="",_=0,h=0;h<f.length;h++){y=f[h];for(var g=String(y[0]),b=It(Rt(ye(y.index),c.length),0),w=[],k=1;k<y.length;k++)w.push(void 0===(v=y[k])?v:String(v));var A=y.groups;if(l){var E=[g].concat(w,b,c);void 0!==A&&E.push(A);var S=String(n.apply(void 0,E))}else S=Ot(g,c,b,w,A,n);b>=_&&(x+=c.slice(_,b)+S,_=b+g.length)}return x+c.slice(_)}]}));var Lt={};Lt[st("toStringTag")]="z";var Ut="[object z]"===String(Lt),zt=st("toStringTag"),Nt="Arguments"==I(function(){return arguments}()),Ft=Ut?I:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),zt))?i:Nt?I(t):"Object"==(n=I(t))&&"function"==typeof t.callee?"Arguments":n},Pt=Ut?{}.toString:function(){return"[object "+Ft(this)+"]"};Ut||ce(Object.prototype,"toString",Pt,{unsafe:!0});var Ct=RegExp.prototype,Mt=Ct.toString,qt=t((function(){return"/a/b"!=Mt.call({source:"a",flags:"b"})})),Dt="toString"!=Mt.name;(qt||Dt)&&ce(RegExp.prototype,"toString",(function(){var e=d(this),t=String(e.source),i=e.flags;return"/"+t+"/"+String(void 0===i&&e instanceof RegExp&&!("flags"in Ct)?qe.call(e):i)}),{unsafe:!0});var Bt=st("iterator"),Vt=!1;try{var Gt=0,$t={next:function(){return{done:!!Gt++}},return:function(){Vt=!0}};$t[Bt]=function(){return this},Array.from($t,(function(){throw 2}))}catch(e){}var Wt,Yt="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Ht=!t((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Qt=ee("IE_PROTO"),Xt=Object.prototype,Kt=Ht?Object.getPrototypeOf:function(e){return e=kt(e),F(e,Qt)?e[Qt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Xt:null},Zt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),t=i instanceof Array}catch(e){}return function(i,n){return d(i),function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(n),t?e.call(i,n):i.__proto__=n,i}}():void 0),Jt=y.f,ei=r.Int8Array,ti=ei&&ei.prototype,ii=r.Uint8ClampedArray,ni=ii&&ii.prototype,ai=ei&&Kt(ei),pi=ti&&Kt(ti),ri=Object.prototype,oi=ri.isPrototypeOf,mi=st("toStringTag"),ci=Z("TYPED_ARRAY_TAG"),li=Yt&&!!Zt&&"Opera"!==Ft(r.opera),si=!1,di={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ui={BigInt64Array:8,BigUint64Array:8},fi=function(e){if(!o(e))return!1;var t=Ft(e);return F(di,t)||F(ui,t)};for(Wt in di)r[Wt]||(li=!1);if((!li||"function"!=typeof ai||ai===Function.prototype)&&(ai=function(){throw TypeError("Incorrect invocation")},li))for(Wt in di)r[Wt]&&Zt(r[Wt],ai);if((!li||!pi||pi===ri)&&(pi=ai.prototype,li))for(Wt in di)r[Wt]&&Zt(r[Wt].prototype,pi);if(li&&Kt(ni)!==pi&&Zt(ni,pi),i&&!F(pi,mi))for(Wt in si=!0,Jt(pi,mi,{get:function(){return o(this)?this[ci]:void 0}}),di)r[Wt]&&M(r[Wt],ci,Wt);var yi={NATIVE_ARRAY_BUFFER_VIEWS:li,TYPED_ARRAY_TAG:si&&ci,aTypedArray:function(e){if(fi(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(Zt){if(oi.call(ai,e))return e}else for(var t in di)if(F(di,Wt)){var i=r[t];if(i&&(e===i||oi.call(i,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(i){if(n)for(var a in di){var p=r[a];p&&F(p.prototype,e)&&delete p.prototype[e]}pi[e]&&!n||ce(pi,e,n?t:li&&ti[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var a,p;if(i){if(Zt){if(n)for(a in di)(p=r[a])&&F(p,e)&&delete p[e];if(ai[e]&&!n)return;try{return ce(ai,e,n?t:li&&ei[e]||t)}catch(e){}}for(a in di)!(p=r[a])||p[e]&&!n||ce(p,e,t)}},isView:function(e){if(!o(e))return!1;var t=Ft(e);return"DataView"===t||F(di,t)||F(ui,t)},isTypedArray:fi,TypedArray:ai,TypedArrayPrototype:pi},vi=yi.NATIVE_ARRAY_BUFFER_VIEWS,xi=r.ArrayBuffer,_i=r.Int8Array,hi=!vi||!t((function(){_i(1)}))||!t((function(){new _i(-1)}))||!function(e,t){if(!t&&!Vt)return!1;var i=!1;try{var n={};n[Bt]=function(){return{next:function(){return{done:i=!0}}}},e(n)}catch(e){}return i}((function(e){new _i,new _i(null),new _i(1.5),new _i(e)}),!0)||t((function(){return 1!==new _i(new xi(2),1,void 0).length})),gi=function(e,t,i){for(var n in t)ce(e,n,t[n],i);return e},bi=function(e,t,i){if(!(e instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return e},wi=function(e){if(void 0===e)return 0;var t=ye(e),i=xe(t);if(t!==i)throw RangeError("Wrong length or index");return i},ki=Math.abs,Ai=Math.pow,Ei=Math.floor,Si=Math.log,ji=Math.LN2,Oi=function(e,t,i){var n,a,p,r=new Array(i),o=8*i-t-1,m=(1<<o)-1,c=m>>1,l=23===t?Ai(2,-24)-Ai(2,-77):0,s=e<0||0===e&&1/e<0?1:0,d=0;for((e=ki(e))!=e||e===1/0?(a=e!=e?1:0,n=m):(n=Ei(Si(e)/ji),e*(p=Ai(2,-n))<1&&(n--,p*=2),(e+=n+c>=1?l/p:l*Ai(2,1-c))*p>=2&&(n++,p/=2),n+c>=m?(a=0,n=m):n+c>=1?(a=(e*p-1)*Ai(2,t),n+=c):(a=e*Ai(2,c-1)*Ai(2,t),n=0));t>=8;r[d++]=255&a,a/=256,t-=8);for(n=n<<t|a,o+=t;o>0;r[d++]=255&n,n/=256,o-=8);return r[--d]|=128*s,r},Ti=function(e,t){var i,n=e.length,a=8*n-t-1,p=(1<<a)-1,r=p>>1,o=a-7,m=n-1,c=e[m--],l=127&c;for(c>>=7;o>0;l=256*l+e[m],m--,o-=8);for(i=l&(1<<-o)-1,l>>=-o,o+=t;o>0;i=256*i+e[m],m--,o-=8);if(0===l)l=1-r;else{if(l===p)return i?NaN:c?-1/0:1/0;i+=Ai(2,t),l-=r}return(c?-1:1)*i*Ai(2,l-t)},Ii=function(e){for(var t=kt(this),i=xe(t.length),n=arguments.length,a=ge(n>1?arguments[1]:void 0,i),p=n>2?arguments[2]:void 0,r=void 0===p?i:ge(p,i);r>a;)t[a++]=e;return t},Ri=y.f,Li=st("toStringTag"),Ui=function(e,t,i){e&&!F(e=i?e:e.prototype,Li)&&Ri(e,Li,{configurable:!0,value:t})},zi=je.f,Ni=y.f,Fi=me.get,Pi=me.set,Ci=r.ArrayBuffer,Mi=Ci,qi=r.DataView,Di=qi&&qi.prototype,Bi=Object.prototype,Vi=r.RangeError,Gi=Oi,$i=Ti,Wi=function(e){return[255&e]},Yi=function(e){return[255&e,e>>8&255]},Hi=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Qi=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Xi=function(e){return Gi(e,23,4)},Ki=function(e){return Gi(e,52,8)},Zi=function(e,t){Ni(e.prototype,t,{get:function(){return Fi(this)[t]}})},Ji=function(e,t,i,n){var a=wi(i),p=Fi(e);if(a+t>p.byteLength)throw Vi("Wrong index");var r=Fi(p.buffer).bytes,o=a+p.byteOffset,m=r.slice(o,o+t);return n?m:m.reverse()},en=function(e,t,i,n,a,p){var r=wi(i),o=Fi(e);if(r+t>o.byteLength)throw Vi("Wrong index");for(var m=Fi(o.buffer).bytes,c=r+o.byteOffset,l=n(+a),s=0;s<t;s++)m[c+s]=l[p?s:t-s-1]};if(Yt){if(!t((function(){Ci(1)}))||!t((function(){new Ci(-1)}))||t((function(){return new Ci,new Ci(1.5),new Ci(NaN),"ArrayBuffer"!=Ci.name}))){for(var tn,nn=(Mi=function(e){return bi(this,Mi),new Ci(wi(e))}).prototype=Ci.prototype,an=zi(Ci),pn=0;an.length>pn;)(tn=an[pn++])in Mi||M(Mi,tn,Ci[tn]);nn.constructor=Mi}Zt&&Kt(Di)!==Bi&&Zt(Di,Bi);var rn=new qi(new Mi(2)),on=Di.setInt8;rn.setInt8(0,2147483648),rn.setInt8(1,2147483649),!rn.getInt8(0)&&rn.getInt8(1)||gi(Di,{setInt8:function(e,t){on.call(this,e,t<<24>>24)},setUint8:function(e,t){on.call(this,e,t<<24>>24)}},{unsafe:!0})}else Mi=function(e){bi(this,Mi,"ArrayBuffer");var t=wi(e);Pi(this,{bytes:Ii.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},qi=function(e,t,n){bi(this,qi,"DataView"),bi(e,Mi,"DataView");var a=Fi(e).byteLength,p=ye(t);if(p<0||p>a)throw Vi("Wrong offset");if(p+(n=void 0===n?a-p:xe(n))>a)throw Vi("Wrong length");Pi(this,{buffer:e,byteLength:n,byteOffset:p}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=p)},i&&(Zi(Mi,"byteLength"),Zi(qi,"buffer"),Zi(qi,"byteLength"),Zi(qi,"byteOffset")),gi(qi.prototype,{getInt8:function(e){return Ji(this,1,e)[0]<<24>>24},getUint8:function(e){return Ji(this,1,e)[0]},getInt16:function(e){var t=Ji(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Ji(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Qi(Ji(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Qi(Ji(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return $i(Ji(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return $i(Ji(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){en(this,1,e,Wi,t)},setUint8:function(e,t){en(this,1,e,Wi,t)},setInt16:function(e,t){en(this,2,e,Yi,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){en(this,2,e,Yi,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){en(this,4,e,Hi,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){en(this,4,e,Hi,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){en(this,4,e,Xi,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){en(this,8,e,Ki,t,arguments.length>2?arguments[2]:void 0)}});Ui(Mi,"ArrayBuffer"),Ui(qi,"DataView");var mn,cn={ArrayBuffer:Mi,DataView:qi},ln=function(e,t){var i=function(e){var t=ye(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}(e);if(i%t)throw RangeError("Wrong offset");return i},sn=Object.keys||function(e){return Ae(e,Ee)},dn=i?Object.defineProperties:function(e,t){d(e);for(var i,n=sn(t),a=n.length,p=0;a>p;)y.f(e,i=n[p++],t[i]);return e},un=de("document","documentElement"),fn=ee("IE_PROTO"),yn=function(){},vn=function(e){return"<script>"+e+"<\/script>"},xn=function(){try{mn=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;xn=mn?function(e){e.write(vn("")),e.close();var t=e.parentWindow.Object;return e=null,t}(mn):((t=l("iframe")).style.display="none",un.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(vn("document.F=Object")),e.close(),e.F);for(var i=Ee.length;i--;)delete xn.prototype[Ee[i]];return xn()};te[fn]=!0;var _n=Object.create||function(e,t){var i;return null!==e?(yn.prototype=d(e),i=new yn,yn.prototype=null,i[fn]=e):i=xn(),void 0===t?i:dn(i,t)},hn={},gn=st("iterator"),bn=function(e){if(null!=e)return e[gn]||e["@@iterator"]||hn[Ft(e)]},wn=st("iterator"),kn=Array.prototype,An=function(e){return void 0!==e&&(hn.Array===e||kn[wn]===e)},En=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Sn=function(e,t,i){if(En(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,a){return e.call(t,i,n,a)}}return function(){return e.apply(t,arguments)}},jn=yi.aTypedArrayConstructor,On=function(e){var t,i,n,a,p,r,o=kt(e),m=arguments.length,c=m>1?arguments[1]:void 0,l=void 0!==c,s=bn(o);if(null!=s&&!An(s))for(r=(p=s.call(o)).next,o=[];!(a=r.call(p)).done;)o.push(a.value);for(l&&m>2&&(c=Sn(c,arguments[2],2)),i=xe(o.length),n=new(jn(this))(i),t=0;i>t;t++)n[t]=l?c(o[t],t):o[t];return n},Tn=Array.isArray||function(e){return"Array"==I(e)},In=st("species"),Rn=function(e,t){var i;return Tn(e)&&("function"!=typeof(i=e.constructor)||i!==Array&&!Tn(i.prototype)?o(i)&&null===(i=i[In])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===t?0:t)},Ln=[].push,Un=function(e){var t=1==e,i=2==e,n=3==e,a=4==e,p=6==e,r=7==e,o=5==e||p;return function(m,c,l,s){for(var d,u,f=kt(m),y=L(f),v=Sn(c,l,3),x=xe(y.length),_=0,h=s||Rn,g=t?h(m,x):i||r?h(m,0):void 0;x>_;_++)if((o||_ in y)&&(u=v(d=y[_],_,f),e))if(t)g[_]=u;else if(u)switch(e){case 3:return!0;case 5:return d;case 6:return _;case 2:Ln.call(g,d)}else switch(e){case 4:return!1;case 7:Ln.call(g,d)}return p?-1:n||a?a:g}},zn={forEach:Un(0),map:Un(1),filter:Un(2),some:Un(3),every:Un(4),find:Un(5),findIndex:Un(6),filterOut:Un(7)},Nn=st("species"),Fn=function(e,t,i){var n,a;return Zt&&"function"==typeof(n=t.constructor)&&n!==i&&o(a=n.prototype)&&a!==i.prototype&&Zt(e,a),e};a((function(e){var t=je.f,n=zn.forEach,a=me.get,p=me.set,m=y.f,c=C.f,l=Math.round,s=r.RangeError,d=cn.ArrayBuffer,f=cn.DataView,v=yi.NATIVE_ARRAY_BUFFER_VIEWS,x=yi.TYPED_ARRAY_TAG,_=yi.TypedArray,h=yi.TypedArrayPrototype,g=yi.aTypedArrayConstructor,b=yi.isTypedArray,w="BYTES_PER_ELEMENT",k="Wrong length",A=function(e,t){for(var i=0,n=t.length,a=new(g(e))(n);n>i;)a[i]=t[i++];return a},E=function(e,t){m(e,t,{get:function(){return a(this)[t]}})},S=function(e){var t;return e instanceof d||"ArrayBuffer"==(t=Ft(e))||"SharedArrayBuffer"==t},j=function(e,t){return b(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},T=function(e,t){return j(e,t=u(t,!0))?O(2,e[t]):c(e,t)},I=function(e,t,i){return!(j(e,t=u(t,!0))&&o(i)&&F(i,"value"))||F(i,"get")||F(i,"set")||i.configurable||F(i,"writable")&&!i.writable||F(i,"enumerable")&&!i.enumerable?m(e,t,i):(e[t]=i.value,e)};i?(v||(C.f=T,y.f=I,E(h,"buffer"),E(h,"byteOffset"),E(h,"byteLength"),E(h,"length")),Me({target:"Object",stat:!0,forced:!v},{getOwnPropertyDescriptor:T,defineProperty:I}),e.exports=function(e,c,u){var g=e.match(/\d+$/)[0]/8,E=e+(u?"Clamped":"")+"Array",j="get"+e,O="set"+e,T=r[E],I=T,R=I&&I.prototype,L={},U=function(e,t){m(e,t,{get:function(){return function(e,t){var i=a(e);return i.view[j](t*g+i.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var n=a(e);u&&(i=(i=l(i))<0?0:i>255?255:255&i),n.view[O](t*g+n.byteOffset,i,!0)}(this,t,e)},enumerable:!0})};v?hi&&(I=c((function(e,t,i,n){return bi(e,I,E),Fn(o(t)?S(t)?void 0!==n?new T(t,ln(i,g),n):void 0!==i?new T(t,ln(i,g)):new T(t):b(t)?A(I,t):On.call(I,t):new T(wi(t)),e,I)})),Zt&&Zt(I,_),n(t(T),(function(e){e in I||M(I,e,T[e])})),I.prototype=R):(I=c((function(e,t,i,n){bi(e,I,E);var a,r,m,c=0,l=0;if(o(t)){if(!S(t))return b(t)?A(I,t):On.call(I,t);a=t,l=ln(i,g);var u=t.byteLength;if(void 0===n){if(u%g)throw s(k);if((r=u-l)<0)throw s(k)}else if((r=xe(n)*g)+l>u)throw s(k);m=r/g}else m=wi(t),a=new d(r=m*g);for(p(e,{buffer:a,byteOffset:l,byteLength:r,length:m,view:new f(a)});c<m;)U(e,c++)})),Zt&&Zt(I,_),R=I.prototype=_n(h)),R.constructor!==I&&M(R,"constructor",I),x&&M(R,x,E),L[E]=I,Me({global:!0,forced:I!=T,sham:!v},L),w in I||M(I,w,g),w in R||M(R,w,g),function(e){var t=de(e),n=y.f;i&&t&&!t[Nn]&&n(t,Nn,{configurable:!0,get:function(){return this}})}(E)}):e.exports=function(){}}))("Uint8",(function(e){return function(t,i,n){return e(this,t,i,n)}}));var Pn=Math.min,Cn=[].copyWithin||function(e,t){var i=kt(this),n=xe(i.length),a=ge(e,n),p=ge(t,n),r=arguments.length>2?arguments[2]:void 0,o=Pn((void 0===r?n:ge(r,n))-p,n-a),m=1;for(p<a&&a<p+o&&(m=-1,p+=o-1,a+=o-1);o-- >0;)p in i?i[a]=i[p]:delete i[a],a+=m,p+=m;return i},Mn=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("copyWithin",(function(e,t){return Cn.call(Mn(this),e,t,arguments.length>2?arguments[2]:void 0)}));var qn=zn.every,Dn=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("every",(function(e){return qn(Dn(this),e,arguments.length>1?arguments[1]:void 0)}));var Bn=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("fill",(function(e){return Ii.apply(Bn(this),arguments)}));var Vn=st("species"),Gn=function(e,t){var i,n=d(e).constructor;return void 0===n||null==(i=d(n)[Vn])?t:En(i)},$n=yi.aTypedArrayConstructor,Wn=function(e,t){for(var i=Gn(e,e.constructor),n=0,a=t.length,p=new($n(i))(a);a>n;)p[n]=t[n++];return p},Yn=zn.filter,Hn=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("filter",(function(e){var t=Yn(Hn(this),e,arguments.length>1?arguments[1]:void 0);return Wn(this,t)}));var Qn=zn.find,Xn=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("find",(function(e){return Qn(Xn(this),e,arguments.length>1?arguments[1]:void 0)}));var Kn=zn.findIndex,Zn=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("findIndex",(function(e){return Kn(Zn(this),e,arguments.length>1?arguments[1]:void 0)}));var Jn=zn.forEach,ea=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("forEach",(function(e){Jn(ea(this),e,arguments.length>1?arguments[1]:void 0)}));var ta=we.includes,ia=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("includes",(function(e){return ta(ia(this),e,arguments.length>1?arguments[1]:void 0)}));var na=we.indexOf,aa=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("indexOf",(function(e){return na(aa(this),e,arguments.length>1?arguments[1]:void 0)}));var pa=st("unscopables"),ra=Array.prototype;null==ra[pa]&&y.f(ra,pa,{configurable:!0,value:_n(null)});var oa,ma,ca,la=function(e){ra[pa][e]=!0},sa=st("iterator"),da=!1;[].keys&&("next"in(ca=[].keys())?(ma=Kt(Kt(ca)))!==Object.prototype&&(oa=ma):da=!0),(null==oa||t((function(){var e={};return oa[sa].call(e)!==e})))&&(oa={}),F(oa,sa)||M(oa,sa,(function(){return this}));var ua={IteratorPrototype:oa,BUGGY_SAFARI_ITERATORS:da},fa=ua.IteratorPrototype,ya=function(){return this},va=function(e,t,i){var n=t+" Iterator";return e.prototype=_n(fa,{next:O(1,i)}),Ui(e,n,!1),hn[n]=ya,e},xa=ua.IteratorPrototype,_a=ua.BUGGY_SAFARI_ITERATORS,ha=st("iterator"),ga=function(){return this},ba=function(e,t,i,n,a,p,r){va(i,t,n);var o,m,c,l=function(e){if(e===a&&y)return y;if(!_a&&e in u)return u[e];switch(e){case"keys":case"values":case"entries":return function(){return new i(this,e)}}return function(){return new i(this)}},s=t+" Iterator",d=!1,u=e.prototype,f=u[ha]||u["@@iterator"]||a&&u[a],y=!_a&&f||l(a),v="Array"==t&&u.entries||f;if(v&&(o=Kt(v.call(new e)),xa!==Object.prototype&&o.next&&(Kt(o)!==xa&&(Zt?Zt(o,xa):"function"!=typeof o[ha]&&M(o,ha,ga)),Ui(o,s,!0))),"values"==a&&f&&"values"!==f.name&&(d=!0,y=function(){return f.call(this)}),u[ha]!==y&&M(u,ha,y),hn[t]=y,a)if(m={values:l("values"),keys:p?y:l("keys"),entries:l("entries")},r)for(c in m)(_a||d||!(c in u))&&ce(u,c,m[c]);else Me({target:t,proto:!0,forced:_a||d},m);return m},wa=me.set,ka=me.getterFor("Array Iterator"),Aa=ba(Array,"Array",(function(e,t){wa(this,{type:"Array Iterator",target:z(e),index:0,kind:t})}),(function(){var e=ka(this),t=e.target,i=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");hn.Arguments=hn.Array,la("keys"),la("values"),la("entries");var Ea=st("iterator"),Sa=r.Uint8Array,ja=Aa.values,Oa=Aa.keys,Ta=Aa.entries,Ia=yi.aTypedArray,Ra=yi.exportTypedArrayMethod,La=Sa&&Sa.prototype[Ea],Ua=!!La&&("values"==La.name||null==La.name),za=function(){return ja.call(Ia(this))};Ra("entries",(function(){return Ta.call(Ia(this))})),Ra("keys",(function(){return Oa.call(Ia(this))})),Ra("values",za,!Ua),Ra(Ea,za,!Ua);var Na=yi.aTypedArray,Fa=[].join;(0,yi.exportTypedArrayMethod)("join",(function(e){return Fa.apply(Na(this),arguments)}));var Pa=function(e,i){var n=[][e];return!!n&&t((function(){n.call(null,i||function(){throw 1},1)}))},Ca=Math.min,Ma=[].lastIndexOf,qa=!!Ma&&1/[1].lastIndexOf(1,-0)<0,Da=Pa("lastIndexOf"),Ba=qa||!Da?function(e){if(qa)return Ma.apply(this,arguments)||0;var t=z(this),i=xe(t.length),n=i-1;for(arguments.length>1&&(n=Ca(n,ye(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:Ma,Va=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("lastIndexOf",(function(e){return Ba.apply(Va(this),arguments)}));var Ga=zn.map,$a=yi.aTypedArray,Wa=yi.aTypedArrayConstructor;(0,yi.exportTypedArrayMethod)("map",(function(e){return Ga($a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(Wa(Gn(e,e.constructor)))(t)}))}));var Ya=function(e){return function(t,i,n,a){En(i);var p=kt(t),r=L(p),o=xe(p.length),m=e?o-1:0,c=e?-1:1;if(n<2)for(;;){if(m in r){a=r[m],m+=c;break}if(m+=c,e?m<0:o<=m)throw TypeError("Reduce of empty array with no initial value")}for(;e?m>=0:o>m;m+=c)m in r&&(a=i(a,r[m],m,p));return a}},Ha={left:Ya(!1),right:Ya(!0)},Qa=Ha.left,Xa=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("reduce",(function(e){return Qa(Xa(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Ka=Ha.right,Za=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("reduceRight",(function(e){return Ka(Za(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Ja=yi.aTypedArray,ep=yi.exportTypedArrayMethod,tp=Math.floor;ep("reverse",(function(){for(var e,t=this,i=Ja(t).length,n=tp(i/2),a=0;a<n;)e=t[a],t[a++]=t[--i],t[i]=e;return t}));var ip=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("set",(function(e){ip(this);var t=ln(arguments.length>1?arguments[1]:void 0,1),i=this.length,n=kt(e),a=xe(n.length),p=0;if(a+t>i)throw RangeError("Wrong length");for(;p<a;)this[t+p]=n[p++]}),t((function(){new Int8Array(1).set({})})));var np=yi.aTypedArray,ap=yi.aTypedArrayConstructor,pp=[].slice;(0,yi.exportTypedArrayMethod)("slice",(function(e,t){for(var i=pp.call(np(this),e,t),n=Gn(this,this.constructor),a=0,p=i.length,r=new(ap(n))(p);p>a;)r[a]=i[a++];return r}),t((function(){new Int8Array(1).slice()})));var rp=zn.some,op=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("some",(function(e){return rp(op(this),e,arguments.length>1?arguments[1]:void 0)}));var mp=yi.aTypedArray,cp=[].sort;(0,yi.exportTypedArrayMethod)("sort",(function(e){return cp.call(mp(this),e)}));var lp=yi.aTypedArray;(0,yi.exportTypedArrayMethod)("subarray",(function(e,t){var i=lp(this),n=i.length,a=ge(e,n);return new(Gn(i,i.constructor))(i.buffer,i.byteOffset+a*i.BYTES_PER_ELEMENT,xe((void 0===t?n:ge(t,n))-a))}));var sp=r.Int8Array,dp=yi.aTypedArray,up=yi.exportTypedArrayMethod,fp=[].toLocaleString,yp=[].slice,vp=!!sp&&t((function(){fp.call(new sp(1))}));up("toLocaleString",(function(){return fp.apply(vp?yp.call(dp(this)):dp(this),arguments)}),t((function(){return[1,2].toLocaleString()!=new sp([1,2]).toLocaleString()}))||!t((function(){sp.prototype.toLocaleString.call([1,2])})));var xp=yi.exportTypedArrayMethod,_p=r.Uint8Array,hp=_p&&_p.prototype||{},gp=[].toString,bp=[].join;t((function(){gp.call({})}))&&(gp=function(){return bp.call(this)});var wp=hp.toString!=gp;xp("toString",gp,wp);var kp=gt.charAt,Ap=me.set,Ep=me.getterFor("String Iterator");ba(String,"String",(function(e){Ap(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=Ep(this),i=t.string,n=t.index;return n>=i.length?{value:void 0,done:!0}:(e=kp(i,n),t.index+=e.length,{value:e,done:!1})}));var Sp=st("iterator"),jp=!t((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,i="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),i+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Sp]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host})),Op=Object.assign,Tp=Object.defineProperty,Ip=!Op||t((function(){if(i&&1!==Op({b:1},Op(Tp({},"a",{enumerable:!0,get:function(){Tp(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e})),7!=Op({},e)[n]||sn(Op({},t)).join("")!=a}))?function(e,t){for(var n=kt(e),a=arguments.length,p=1,r=Oe.f,o=j.f;a>p;)for(var m,c=L(arguments[p++]),l=r?sn(c).concat(r(c)):sn(c),s=l.length,d=0;s>d;)m=l[d++],i&&!o.call(c,m)||(n[m]=c[m]);return n}:Op,Rp=function(e,t,i,n){try{return n?t(d(i)[0],i[1]):t(i)}catch(t){throw function(e){var t=e.return;if(void 0!==t)d(t.call(e)).value}(e),t}},Lp=function(e,t,i){var n=u(t);n in e?y.f(e,n,O(0,i)):e[n]=i},Up=function(e){var t,i,n,a,p,r,o=kt(e),m="function"==typeof this?this:Array,c=arguments.length,l=c>1?arguments[1]:void 0,s=void 0!==l,d=bn(o),u=0;if(s&&(l=Sn(l,c>2?arguments[2]:void 0,2)),null==d||m==Array&&An(d))for(i=new m(t=xe(o.length));t>u;u++)r=s?l(o[u],u):o[u],Lp(i,u,r);else for(p=(a=d.call(o)).next,i=new m;!(n=p.call(a)).done;u++)r=s?Rp(a,l,[n.value,u],!0):n.value,Lp(i,u,r);return i.length=u,i},zp=/[^\0-\u007E]/,Np=/[.\u3002\uFF0E\uFF61]/g,Fp="Overflow: input needs wider integers to process",Pp=Math.floor,Cp=String.fromCharCode,Mp=function(e){return e+22+75*(e<26)},qp=function(e,t,i){var n=0;for(e=i?Pp(e/700):e>>1,e+=Pp(e/t);e>455;n+=36)e=Pp(e/35);return Pp(n+36*e/(e+38))},Dp=function(e){var t,i,n=[],a=(e=function(e){for(var t=[],i=0,n=e.length;i<n;){var a=e.charCodeAt(i++);if(a>=55296&&a<=56319&&i<n){var p=e.charCodeAt(i++);56320==(64512&p)?t.push(((1023&a)<<10)+(1023&p)+65536):(t.push(a),i--)}else t.push(a)}return t}(e)).length,p=128,r=0,o=72;for(t=0;t<e.length;t++)(i=e[t])<128&&n.push(Cp(i));var m=n.length,c=m;for(m&&n.push("-");c<a;){var l=2147483647;for(t=0;t<e.length;t++)(i=e[t])>=p&&i<l&&(l=i);var s=c+1;if(l-p>Pp((2147483647-r)/s))throw RangeError(Fp);for(r+=(l-p)*s,p=l,t=0;t<e.length;t++){if((i=e[t])<p&&++r>2147483647)throw RangeError(Fp);if(i==p){for(var d=r,u=36;;u+=36){var f=u<=o?1:u>=o+26?26:u-o;if(d<f)break;var y=d-f,v=36-f;n.push(Cp(Mp(f+y%v))),d=Pp(y/v)}n.push(Cp(Mp(d))),o=qp(r,s,c==m),r=0,++c}}++r,++p}return n.join("")},Bp=function(e){var t=bn(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return d(t.call(e))},Vp=de("fetch"),Gp=de("Headers"),$p=st("iterator"),Wp=me.set,Yp=me.getterFor("URLSearchParams"),Hp=me.getterFor("URLSearchParamsIterator"),Qp=/\+/g,Xp=Array(4),Kp=function(e){return Xp[e-1]||(Xp[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},Zp=function(e){try{return decodeURIComponent(e)}catch(t){return e}},Jp=function(e){var t=e.replace(Qp," "),i=4;try{return decodeURIComponent(t)}catch(e){for(;i;)t=t.replace(Kp(i--),Zp);return t}},er=/[!'()~]|%20/g,tr={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ir=function(e){return tr[e]},nr=function(e){return encodeURIComponent(e).replace(er,ir)},ar=function(e,t){if(t)for(var i,n,a=t.split("&"),p=0;p<a.length;)(i=a[p++]).length&&(n=i.split("="),e.push({key:Jp(n.shift()),value:Jp(n.join("="))}))},pr=function(e){this.entries.length=0,ar(this.entries,e)},rr=function(e,t){if(e<t)throw TypeError("Not enough arguments")},or=va((function(e,t){Wp(this,{type:"URLSearchParamsIterator",iterator:Bp(Yp(e).entries),kind:t})}),"Iterator",(function(){var e=Hp(this),t=e.kind,i=e.iterator.next(),n=i.value;return i.done||(i.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),i})),mr=function(){bi(this,mr,"URLSearchParams");var e,t,i,n,a,p,r,m,c,l=arguments.length>0?arguments[0]:void 0,s=this,u=[];if(Wp(s,{type:"URLSearchParams",entries:u,updateURL:function(){},updateSearchParams:pr}),void 0!==l)if(o(l))if("function"==typeof(e=bn(l)))for(i=(t=e.call(l)).next;!(n=i.call(t)).done;){if((r=(p=(a=Bp(d(n.value))).next).call(a)).done||(m=p.call(a)).done||!p.call(a).done)throw TypeError("Expected sequence with length 2");u.push({key:r.value+"",value:m.value+""})}else for(c in l)F(l,c)&&u.push({key:c,value:l[c]+""});else ar(u,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},cr=mr.prototype;gi(cr,{append:function(e,t){rr(arguments.length,2);var i=Yp(this);i.entries.push({key:e+"",value:t+""}),i.updateURL()},delete:function(e){rr(arguments.length,1);for(var t=Yp(this),i=t.entries,n=e+"",a=0;a<i.length;)i[a].key===n?i.splice(a,1):a++;t.updateURL()},get:function(e){rr(arguments.length,1);for(var t=Yp(this).entries,i=e+"",n=0;n<t.length;n++)if(t[n].key===i)return t[n].value;return null},getAll:function(e){rr(arguments.length,1);for(var t=Yp(this).entries,i=e+"",n=[],a=0;a<t.length;a++)t[a].key===i&&n.push(t[a].value);return n},has:function(e){rr(arguments.length,1);for(var t=Yp(this).entries,i=e+"",n=0;n<t.length;)if(t[n++].key===i)return!0;return!1},set:function(e,t){rr(arguments.length,1);for(var i,n=Yp(this),a=n.entries,p=!1,r=e+"",o=t+"",m=0;m<a.length;m++)(i=a[m]).key===r&&(p?a.splice(m--,1):(p=!0,i.value=o));p||a.push({key:r,value:o}),n.updateURL()},sort:function(){var e,t,i,n=Yp(this),a=n.entries,p=a.slice();for(a.length=0,i=0;i<p.length;i++){for(e=p[i],t=0;t<i;t++)if(a[t].key>e.key){a.splice(t,0,e);break}t===i&&a.push(e)}n.updateURL()},forEach:function(e){for(var t,i=Yp(this).entries,n=Sn(e,arguments.length>1?arguments[1]:void 0,3),a=0;a<i.length;)n((t=i[a++]).value,t.key,this)},keys:function(){return new or(this,"keys")},values:function(){return new or(this,"values")},entries:function(){return new or(this,"entries")}},{enumerable:!0}),ce(cr,$p,cr.entries),ce(cr,"toString",(function(){for(var e,t=Yp(this).entries,i=[],n=0;n<t.length;)e=t[n++],i.push(nr(e.key)+"="+nr(e.value));return i.join("&")}),{enumerable:!0}),Ui(mr,"URLSearchParams"),Me({global:!0,forced:!jp},{URLSearchParams:mr}),jp||"function"!=typeof Vp||"function"!=typeof Gp||Me({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,i,n,a=[e];return arguments.length>1&&(o(t=arguments[1])&&(i=t.body,"URLSearchParams"===Ft(i)&&((n=t.headers?new Gp(t.headers):new Gp).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=_n(t,{body:O(0,String(i)),headers:O(0,n)}))),a.push(t)),Vp.apply(this,a)}});var lr,sr={URLSearchParams:mr,getState:Yp},dr=gt.codeAt,ur=r.URL,fr=sr.URLSearchParams,yr=sr.getState,vr=me.set,xr=me.getterFor("URL"),_r=Math.floor,hr=Math.pow,gr=/[A-Za-z]/,br=/[\d+-.A-Za-z]/,wr=/\d/,kr=/^(0x|0X)/,Ar=/^[0-7]+$/,Er=/^\d+$/,Sr=/^[\dA-Fa-f]+$/,jr=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,Or=/[\u0000\t\u000A\u000D #/:?@[\\]]/,Tr=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Ir=/[\t\u000A\u000D]/g,Rr=function(e,t){var i,n,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(i=Ur(t.slice(1,-1))))return"Invalid host";e.host=i}else if(Dr(e)){if(t=function(e){var t,i,n=[],a=e.toLowerCase().replace(Np,".").split(".");for(t=0;t<a.length;t++)i=a[t],n.push(zp.test(i)?"xn--"+Dp(i):i);return n.join(".")}(t),jr.test(t))return"Invalid host";if(null===(i=Lr(t)))return"Invalid host";e.host=i}else{if(Or.test(t))return"Invalid host";for(i="",n=Up(t),a=0;a<n.length;a++)i+=Mr(n[a],Nr);e.host=i}},Lr=function(e){var t,i,n,a,p,r,o,m=e.split(".");if(m.length&&""==m[m.length-1]&&m.pop(),(t=m.length)>4)return e;for(i=[],n=0;n<t;n++){if(""==(a=m[n]))return e;if(p=10,a.length>1&&"0"==a.charAt(0)&&(p=kr.test(a)?16:8,a=a.slice(8==p?1:2)),""===a)r=0;else{if(!(10==p?Er:8==p?Ar:Sr).test(a))return e;r=parseInt(a,p)}i.push(r)}for(n=0;n<t;n++)if(r=i[n],n==t-1){if(r>=hr(256,5-t))return null}else if(r>255)return null;for(o=i.pop(),n=0;n<i.length;n++)o+=i[n]*hr(256,3-n);return o},Ur=function(e){var t,i,n,a,p,r,o,m=[0,0,0,0,0,0,0,0],c=0,l=null,s=0,d=function(){return e.charAt(s)};if(":"==d()){if(":"!=e.charAt(1))return;s+=2,l=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=i=0;i<4&&Sr.test(d());)t=16*t+parseInt(d(),16),s++,i++;if("."==d()){if(0==i)return;if(s-=i,c>6)return;for(n=0;d();){if(a=null,n>0){if(!("."==d()&&n<4))return;s++}if(!wr.test(d()))return;for(;wr.test(d());){if(p=parseInt(d(),10),null===a)a=p;else{if(0==a)return;a=10*a+p}if(a>255)return;s++}m[c]=256*m[c]+a,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(s++,!d())return}else if(d())return;m[c++]=t}else{if(null!==l)return;s++,l=++c}}if(null!==l)for(r=c-l,c=7;0!=c&&r>0;)o=m[c],m[c--]=m[l+r-1],m[l+--r]=o;else if(8!=c)return;return m},zr=function(e){var t,i,n,a;if("number"==typeof e){for(t=[],i=0;i<4;i++)t.unshift(e%256),e=_r(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,i=1,n=null,a=0,p=0;p<8;p++)0!==e[p]?(a>i&&(t=n,i=a),n=null,a=0):(null===n&&(n=p),++a);return a>i&&(t=n,i=a),t}(e),i=0;i<8;i++)a&&0===e[i]||(a&&(a=!1),n===i?(t+=i?":":"::",a=!0):(t+=e[i].toString(16),i<7&&(t+=":")));return"["+t+"]"}return e},Nr={},Fr=Ip({},Nr,{" ":1,'"':1,"<":1,">":1,"`":1}),Pr=Ip({},Fr,{"#":1,"?":1,"{":1,"}":1}),Cr=Ip({},Pr,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Mr=function(e,t){var i=dr(e,0);return i>32&&i<127&&!F(t,e)?e:encodeURIComponent(e)},qr={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Dr=function(e){return F(qr,e.scheme)},Br=function(e){return""!=e.username||""!=e.password},Vr=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Gr=function(e,t){var i;return 2==e.length&&gr.test(e.charAt(0))&&(":"==(i=e.charAt(1))||!t&&"|"==i)},$r=function(e){var t;return e.length>1&&Gr(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Wr=function(e){var t=e.path,i=t.length;!i||"file"==e.scheme&&1==i&&Gr(t[0],!0)||t.pop()},Yr=function(e){return"."===e||"%2e"===e.toLowerCase()},Hr={},Qr={},Xr={},Kr={},Zr={},Jr={},eo={},to={},io={},no={},ao={},po={},ro={},oo={},mo={},co={},lo={},so={},uo={},fo={},yo={},vo=function(e,t,i,n){var a,p,r,o,m,c=i||Hr,l=0,s="",d=!1,u=!1,f=!1;for(i||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(Tr,"")),t=t.replace(Ir,""),a=Up(t);l<=a.length;){switch(p=a[l],c){case Hr:if(!p||!gr.test(p)){if(i)return"Invalid scheme";c=Xr;continue}s+=p.toLowerCase(),c=Qr;break;case Qr:if(p&&(br.test(p)||"+"==p||"-"==p||"."==p))s+=p.toLowerCase();else{if(":"!=p){if(i)return"Invalid scheme";s="",c=Xr,l=0;continue}if(i&&(Dr(e)!=F(qr,s)||"file"==s&&(Br(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=s,i)return void(Dr(e)&&qr[e.scheme]==e.port&&(e.port=null));s="","file"==e.scheme?c=oo:Dr(e)&&n&&n.scheme==e.scheme?c=Kr:Dr(e)?c=to:"/"==a[l+1]?(c=Zr,l++):(e.cannotBeABaseURL=!0,e.path.push(""),c=uo)}break;case Xr:if(!n||n.cannotBeABaseURL&&"#"!=p)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==p){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,c=yo;break}c="file"==n.scheme?oo:Jr;continue;case Kr:if("/"!=p||"/"!=a[l+1]){c=Jr;continue}c=io,l++;break;case Zr:if("/"==p){c=no;break}c=so;continue;case Jr:if(e.scheme=n.scheme,p==lr)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if("/"==p||"\\"==p&&Dr(e))c=eo;else if("?"==p)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",c=fo;else{if("#"!=p){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),c=so;continue}e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=yo}break;case eo:if(!Dr(e)||"/"!=p&&"\\"!=p){if("/"!=p){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,c=so;continue}c=no}else c=io;break;case to:if(c=io,"/"!=p||"/"!=s.charAt(l+1))continue;l++;break;case io:if("/"!=p&&"\\"!=p){c=no;continue}break;case no:if("@"==p){d&&(s="%40"+s),d=!0,r=Up(s);for(var y=0;y<r.length;y++){var v=r[y];if(":"!=v||f){var x=Mr(v,Cr);f?e.password+=x:e.username+=x}else f=!0}s=""}else if(p==lr||"/"==p||"?"==p||"#"==p||"\\"==p&&Dr(e)){if(d&&""==s)return"Invalid authority";l-=Up(s).length+1,s="",c=ao}else s+=p;break;case ao:case po:if(i&&"file"==e.scheme){c=co;continue}if(":"!=p||u){if(p==lr||"/"==p||"?"==p||"#"==p||"\\"==p&&Dr(e)){if(Dr(e)&&""==s)return"Invalid host";if(i&&""==s&&(Br(e)||null!==e.port))return;if(o=Rr(e,s))return o;if(s="",c=lo,i)return;continue}"["==p?u=!0:"]"==p&&(u=!1),s+=p}else{if(""==s)return"Invalid host";if(o=Rr(e,s))return o;if(s="",c=ro,i==po)return}break;case ro:if(!wr.test(p)){if(p==lr||"/"==p||"?"==p||"#"==p||"\\"==p&&Dr(e)||i){if(""!=s){var _=parseInt(s,10);if(_>65535)return"Invalid port";e.port=Dr(e)&&_===qr[e.scheme]?null:_,s=""}if(i)return;c=lo;continue}return"Invalid port"}s+=p;break;case oo:if(e.scheme="file","/"==p||"\\"==p)c=mo;else{if(!n||"file"!=n.scheme){c=so;continue}if(p==lr)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if("?"==p)e.host=n.host,e.path=n.path.slice(),e.query="",c=fo;else{if("#"!=p){$r(a.slice(l).join(""))||(e.host=n.host,e.path=n.path.slice(),Wr(e)),c=so;continue}e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=yo}}break;case mo:if("/"==p||"\\"==p){c=co;break}n&&"file"==n.scheme&&!$r(a.slice(l).join(""))&&(Gr(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),c=so;continue;case co:if(p==lr||"/"==p||"\\"==p||"?"==p||"#"==p){if(!i&&Gr(s))c=so;else if(""==s){if(e.host="",i)return;c=lo}else{if(o=Rr(e,s))return o;if("localhost"==e.host&&(e.host=""),i)return;s="",c=lo}continue}s+=p;break;case lo:if(Dr(e)){if(c=so,"/"!=p&&"\\"!=p)continue}else if(i||"?"!=p)if(i||"#"!=p){if(p!=lr&&(c=so,"/"!=p))continue}else e.fragment="",c=yo;else e.query="",c=fo;break;case so:if(p==lr||"/"==p||"\\"==p&&Dr(e)||!i&&("?"==p||"#"==p)){if(".."===(m=(m=s).toLowerCase())||"%2e."===m||".%2e"===m||"%2e%2e"===m?(Wr(e),"/"==p||"\\"==p&&Dr(e)||e.path.push("")):Yr(s)?"/"==p||"\\"==p&&Dr(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Gr(s)&&(e.host&&(e.host=""),s=s.charAt(0)+":"),e.path.push(s)),s="","file"==e.scheme&&(p==lr||"?"==p||"#"==p))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==p?(e.query="",c=fo):"#"==p&&(e.fragment="",c=yo)}else s+=Mr(p,Pr);break;case uo:"?"==p?(e.query="",c=fo):"#"==p?(e.fragment="",c=yo):p!=lr&&(e.path[0]+=Mr(p,Nr));break;case fo:i||"#"!=p?p!=lr&&("'"==p&&Dr(e)?e.query+="%27":e.query+="#"==p?"%23":Mr(p,Nr)):(e.fragment="",c=yo);break;case yo:p!=lr&&(e.fragment+=Mr(p,Fr))}l++}},xo=function(e){var t,n,a=bi(this,xo,"URL"),p=arguments.length>1?arguments[1]:void 0,r=String(e),o=vr(a,{type:"URL"});if(void 0!==p)if(p instanceof xo)t=xr(p);else if(n=vo(t={},String(p)))throw TypeError(n);if(n=vo(o,r,null,t))throw TypeError(n);var m=o.searchParams=new fr,c=yr(m);c.updateSearchParams(o.query),c.updateURL=function(){o.query=String(m)||null},i||(a.href=ho.call(a),a.origin=go.call(a),a.protocol=bo.call(a),a.username=wo.call(a),a.password=ko.call(a),a.host=Ao.call(a),a.hostname=Eo.call(a),a.port=So.call(a),a.pathname=jo.call(a),a.search=Oo.call(a),a.searchParams=To.call(a),a.hash=Io.call(a))},_o=xo.prototype,ho=function(){var e=xr(this),t=e.scheme,i=e.username,n=e.password,a=e.host,p=e.port,r=e.path,o=e.query,m=e.fragment,c=t+":";return null!==a?(c+="//",Br(e)&&(c+=i+(n?":"+n:"")+"@"),c+=zr(a),null!==p&&(c+=":"+p)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?r[0]:r.length?"/"+r.join("/"):"",null!==o&&(c+="?"+o),null!==m&&(c+="#"+m),c},go=function(){var e=xr(this),t=e.scheme,i=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Dr(e