Files
svgedit/dist/editor/extensions/ext-imagelib/ext-imagelib.js
2021-03-08 19:08:35 +01:00

11 lines
79 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,o,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,o,_next,_throw,"throw",e)}_next(void 0)}))}}var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e){var t={exports:{}};return e(t,t.exports),t.exports}var check=function(e){return e&&e.Math==Math&&e},t=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof e&&e)||function(){return this}()||Function("return this")(),fails=function(e){try{return!!e()}catch(e){return!0}},r=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i={f:o&&!n.call({1:2},1)?function propertyIsEnumerable(e){var t=o(this,e);return!!t&&t.enumerable}:n},createPropertyDescriptor=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},a={}.toString,classofRaw=function(e){return a.call(e).slice(8,-1)},c="".split,s=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==classofRaw(e)?c.call(e,""):Object(e)}:Object,requireObjectCoercible=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},toIndexedObject=function(e){return s(requireObjectCoercible(e))},isObject=function(e){return"object"==typeof e?null!==e:"function"==typeof e},toPrimitive=function(e,t){if(!isObject(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!isObject(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!isObject(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!isObject(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},u={}.hasOwnProperty,has=function(e,t){return u.call(e,t)},l=t.document,f=isObject(l)&&isObject(l.createElement),documentCreateElement=function(e){return f?l.createElement(e):{}},h=!r&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),p=Object.getOwnPropertyDescriptor,d={f:r?p:function getOwnPropertyDescriptor(e,t){if(e=toIndexedObject(e),t=toPrimitive(t,!0),h)try{return p(e,t)}catch(e){}if(has(e,t))return createPropertyDescriptor(!i.f.call(e,t),e[t])}},anObject=function(e){if(!isObject(e))throw TypeError(String(e)+" is not an object");return e},g=Object.defineProperty,m={f:r?g:function defineProperty(e,t,r){if(anObject(e),t=toPrimitive(t,!0),anObject(r),h)try{return g(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},v=r?function(e,t,r){return m.f(e,t,createPropertyDescriptor(1,r))}:function(e,t,r){return e[t]=r,e},setGlobal=function(e,r){try{v(t,e,r)}catch(n){t[e]=r}return r},y=t["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),b=Function.toString;"function"!=typeof y.inspectSource&&(y.inspectSource=function(e){return b.call(e)});var w,S,x,_=y.inspectSource,E=t.WeakMap,k="function"==typeof E&&/native code/.test(_(E)),O=createCommonjsModule((function(e){(e.exports=function(e,t){return y[e]||(y[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),L=0,j=Math.random(),uid=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++L+j).toString(36)},A=O("keys"),sharedKey=function(e){return A[e]||(A[e]=uid(e))},I={},P=t.WeakMap;if(k){var R=y.state||(y.state=new P),T=R.get,U=R.has,C=R.set;w=function(e,t){return t.facade=e,C.call(R,e,t),t},S=function(e){return T.call(R,e)||{}},x=function(e){return U.call(R,e)}}else{var M=sharedKey("state");I[M]=!0,w=function(e,t){return t.facade=e,v(e,M,t),t},S=function(e){return has(e,M)?e[M]:{}},x=function(e){return has(e,M)}}var G,N={set:w,get:S,has:x,enforce:function(e){return x(e)?S(e):w(e,{})},getterFor:function(e){return function(t){var r;if(!isObject(t)||(r=S(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},D=createCommonjsModule((function(e){var r=N.get,n=N.enforce,o=String(String).split("String");(e.exports=function(e,r,i,a){var c,s=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof r||has(i,"name")||v(i,"name",r),(c=n(i)).source||(c.source=o.join("string"==typeof r?r:""))),e!==t?(s?!l&&e[r]&&(u=!0):delete e[r],u?e[r]=i:v(e,r,i)):u?e[r]=i:setGlobal(r,i)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&r(this).source||_(this)}))})),B=t,aFunction=function(e){return"function"==typeof e?e:void 0},getBuiltIn=function(e,r){return arguments.length<2?aFunction(B[e])||aFunction(t[e]):B[e]&&B[e][r]||t[e]&&t[e][r]},q=Math.ceil,$=Math.floor,toInteger=function(e){return isNaN(e=+e)?0:(e>0?$:q)(e)},z=Math.min,toLength=function(e){return e>0?z(toInteger(e),9007199254740991):0},V=Math.max,W=Math.min,toAbsoluteIndex=function(e,t){var r=toInteger(e);return r<0?V(r+t,0):W(r,t)},createMethod=function(e){return function(t,r,n){var o,i=toIndexedObject(t),a=toLength(i.length),c=toAbsoluteIndex(n,a);if(e&&r!=r){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===r)return e||c||0;return!e&&-1}},K={includes:createMethod(!0),indexOf:createMethod(!1)},J=K.indexOf,objectKeysInternal=function(e,t){var r,n=toIndexedObject(e),o=0,i=[];for(r in n)!has(I,r)&&has(n,r)&&i.push(r);for(;t.length>o;)has(n,r=t[o++])&&(~J(i,r)||i.push(r));return i},Y=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],H=Y.concat("length","prototype"),X={f:Object.getOwnPropertyNames||function getOwnPropertyNames(e){return objectKeysInternal(e,H)}},Z={f:Object.getOwnPropertySymbols},Q=getBuiltIn("Reflect","ownKeys")||function ownKeys(e){var t=X.f(anObject(e)),r=Z.f;return r?t.concat(r(e)):t},copyConstructorProperties=function(e,t){for(var r=Q(t),n=m.f,o=d.f,i=0;i<r.length;i++){var a=r[i];has(e,a)||n(e,a,o(t,a))}},ee=/#|\.prototype\./,isForced=function(e,t){var r=re[te(e)];return r==oe||r!=ne&&("function"==typeof t?fails(t):!!t)},te=isForced.normalize=function(e){return String(e).replace(ee,".").toLowerCase()},re=isForced.data={},ne=isForced.NATIVE="N",oe=isForced.POLYFILL="P",ie=isForced,ae=d.f,_export=function(e,r){var n,o,i,a,c,s=e.target,u=e.global,l=e.stat;if(n=u?t:l?t[s]||setGlobal(s,{}):(t[s]||{}).prototype)for(o in r){if(a=r[o],i=e.noTargetGet?(c=ae(n,o))&&c.value:n[o],!ie(u?o:s+(l?".":"#")+o,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;copyConstructorProperties(a,i)}(e.sham||i&&i.sham)&&v(a,"sham",!0),D(n,o,a,e)}},ce=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),se=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ue=Array.isArray||function isArray(e){return"Array"==classofRaw(e)},toObject=function(e){return Object(requireObjectCoercible(e))},le=Object.keys||function keys(e){return objectKeysInternal(e,Y)},fe=r?Object.defineProperties:function defineProperties(e,t){anObject(e);for(var r,n=le(t),o=n.length,i=0;o>i;)m.f(e,r=n[i++],t[r]);return e},he=getBuiltIn("document","documentElement"),pe=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<script>"+e+"<\/script>"},NullProtoObject=function(){try{G=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;NullProtoObject=G?function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t}(G):((t=documentCreateElement("iframe")).style.display="none",he.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F);for(var r=Y.length;r--;)delete NullProtoObject.prototype[Y[r]];return NullProtoObject()};I[pe]=!0;var de=Object.create||function create(e,t){var r;return null!==e?(EmptyConstructor.prototype=anObject(e),r=new EmptyConstructor,EmptyConstructor.prototype=null,r[pe]=e):r=NullProtoObject(),void 0===t?r:fe(r,t)},ge=X.f,me={}.toString,ve="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ye={f:function getOwnPropertyNames(e){return ve&&"[object Window]"==me.call(e)?function(e){try{return ge(e)}catch(e){return ve.slice()}}(e):ge(toIndexedObject(e))}},be=O("wks"),we=t.Symbol,Se=se?we:we&&we.withoutSetter||uid,wellKnownSymbol=function(e){return has(be,e)||(ce&&has(we,e)?be[e]=we[e]:be[e]=Se("Symbol."+e)),be[e]},xe={f:wellKnownSymbol},_e=m.f,defineWellKnownSymbol=function(e){var t=B.Symbol||(B.Symbol={});has(t,e)||_e(t,e,{value:xe.f(e)})},Ee=m.f,ke=wellKnownSymbol("toStringTag"),setToStringTag=function(e,t,r){e&&!has(e=r?e:e.prototype,ke)&&Ee(e,ke,{configurable:!0,value:t})},aFunction$1=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},functionBindContext=function(e,t,r){if(aFunction$1(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}},Oe=wellKnownSymbol("species"),arraySpeciesCreate=function(e,t){var r;return ue(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!ue(r.prototype)?isObject(r)&&null===(r=r[Oe])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)},Le=[].push,createMethod$1=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,c=5==e||i;return function(u,l,f,h){for(var p,d,g=toObject(u),m=s(g),v=functionBindContext(l,f,3),y=toLength(m.length),b=0,w=h||arraySpeciesCreate,S=t?w(u,y):r||a?w(u,0):void 0;y>b;b++)if((c||b in m)&&(d=v(p=m[b],b,g),e))if(t)S[b]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return b;case 2:Le.call(S,p)}else switch(e){case 4:return!1;case 7:Le.call(S,p)}return i?-1:n||o?o:S}},je={forEach:createMethod$1(0),map:createMethod$1(1),filter:createMethod$1(2),some:createMethod$1(3),every:createMethod$1(4),find:createMethod$1(5),findIndex:createMethod$1(6),filterOut:createMethod$1(7)},Ae=je.forEach,Ie=sharedKey("hidden"),Pe=wellKnownSymbol("toPrimitive"),Re=N.set,Te=N.getterFor("Symbol"),Ue=Object.prototype,Fe=t.Symbol,Ce=getBuiltIn("JSON","stringify"),Me=d.f,Ge=m.f,Ne=ye.f,De=i.f,Be=O("symbols"),qe=O("op-symbols"),$e=O("string-to-symbol-registry"),ze=O("symbol-to-string-registry"),Ve=O("wks"),We=t.QObject,Ke=!We||!We.prototype||!We.prototype.findChild,Je=r&&fails((function(){return 7!=de(Ge({},"a",{get:function(){return Ge(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Me(Ue,t);n&&delete Ue[t],Ge(e,t,r),n&&e!==Ue&&Ge(Ue,t,n)}:Ge,wrap=function(e,t){var n=Be[e]=de(Fe.prototype);return Re(n,{type:"Symbol",tag:e,description:t}),r||(n.description=t),n},Ye=se?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof Fe},He=function defineProperty(e,t,r){e===Ue&&He(qe,t,r),anObject(e);var n=toPrimitive(t,!0);return anObject(r),has(Be,n)?(r.enumerable?(has(e,Ie)&&e[Ie][n]&&(e[Ie][n]=!1),r=de(r,{enumerable:createPropertyDescriptor(0,!1)})):(has(e,Ie)||Ge(e,Ie,createPropertyDescriptor(1,{})),e[Ie][n]=!0),Je(e,n,r)):Ge(e,n,r)},Xe=function defineProperties(e,t){anObject(e);var n=toIndexedObject(t),o=le(n).concat(tt(n));return Ae(o,(function(t){r&&!Ze.call(n,t)||He(e,t,n[t])})),e},Ze=function propertyIsEnumerable(e){var t=toPrimitive(e,!0),r=De.call(this,t);return!(this===Ue&&has(Be,t)&&!has(qe,t))&&(!(r||!has(this,t)||!has(Be,t)||has(this,Ie)&&this[Ie][t])||r)},Qe=function getOwnPropertyDescriptor(e,t){var r=toIndexedObject(e),n=toPrimitive(t,!0);if(r!==Ue||!has(Be,n)||has(qe,n)){var o=Me(r,n);return!o||!has(Be,n)||has(r,Ie)&&r[Ie][n]||(o.enumerable=!0),o}},et=function getOwnPropertyNames(e){var t=Ne(toIndexedObject(e)),r=[];return Ae(t,(function(e){has(Be,e)||has(I,e)||r.push(e)})),r},tt=function getOwnPropertySymbols(e){var t=e===Ue,r=Ne(t?qe:toIndexedObject(e)),n=[];return Ae(r,(function(e){!has(Be,e)||t&&!has(Ue,e)||n.push(Be[e])})),n};if(ce||(D((Fe=function Symbol(){if(this instanceof Fe)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=uid(e),setter=function(e){this===Ue&&setter.call(qe,e),has(this,Ie)&&has(this[Ie],t)&&(this[Ie][t]=!1),Je(this,t,createPropertyDescriptor(1,e))};return r&&Ke&&Je(Ue,t,{configurable:!0,set:setter}),wrap(t,e)}).prototype,"toString",(function toString(){return Te(this).tag})),D(Fe,"withoutSetter",(function(e){return wrap(uid(e),e)})),i.f=Ze,m.f=He,d.f=Qe,X.f=ye.f=et,Z.f=tt,xe.f=function(e){return wrap(wellKnownSymbol(e),e)},r&&(Ge(Fe.prototype,"description",{configurable:!0,get:function description(){return Te(this).description}}),D(Ue,"propertyIsEnumerable",Ze,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!ce,sham:!ce},{Symbol:Fe}),Ae(le(Ve),(function(e){defineWellKnownSymbol(e)})),_export({target:"Symbol",stat:!0,forced:!ce},{for:function(e){var t=String(e);if(has($e,t))return $e[t];var r=Fe(t);return $e[t]=r,ze[r]=t,r},keyFor:function keyFor(e){if(!Ye(e))throw TypeError(e+" is not a symbol");if(has(ze,e))return ze[e]},useSetter:function(){Ke=!0},useSimple:function(){Ke=!1}}),_export({target:"Object",stat:!0,forced:!ce,sham:!r},{create:function create(e,t){return void 0===t?de(e):Xe(de(e),t)},defineProperty:He,defineProperties:Xe,getOwnPropertyDescriptor:Qe}),_export({target:"Object",stat:!0,forced:!ce},{getOwnPropertyNames:et,getOwnPropertySymbols:tt}),_export({target:"Object",stat:!0,forced:fails((function(){Z.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(e){return Z.f(toObject(e))}}),Ce){var rt=!ce||fails((function(){var e=Fe();return"[null]"!=Ce([e])||"{}"!=Ce({a:e})||"{}"!=Ce(Object(e))}));_export({target:"JSON",stat:!0,forced:rt},{stringify:function stringify(e,t,r){for(var n,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=t,(isObject(t)||void 0!==e)&&!Ye(e))return ue(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Ye(t))return t}),o[1]=t,Ce.apply(null,o)}})}Fe.prototype[Pe]||v(Fe.prototype,Pe,Fe.prototype.valueOf),setToStringTag(Fe,"Symbol"),I[Ie]=!0;var nt=m.f,ot=t.Symbol;if(r&&"function"==typeof ot&&(!("description"in ot.prototype)||void 0!==ot().description)){var it={},at=function Symbol(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof at?new ot(e):void 0===e?ot():ot(e);return""===e&&(it[t]=!0),t};copyConstructorProperties(at,ot);var ct=at.prototype=ot.prototype;ct.constructor=at;var st=ct.toString,ut="Symbol(test)"==String(ot("test")),lt=/^Symbol\((.*)\)[^)]+$/;nt(ct,"description",{configurable:!0,get:function description(){var e=isObject(this)?this.valueOf():this,t=st.call(e);if(has(it,e))return"";var r=ut?t.slice(7,-1):t.replace(lt,"$1");return""===r?void 0:r}}),_export({global:!0,forced:!0},{Symbol:at})}var ft={};ft[wellKnownSymbol("toStringTag")]="z";var ht="[object z]"===String(ft),pt=wellKnownSymbol("toStringTag"),dt="Arguments"==classofRaw(function(){return arguments}()),gt=ht?classofRaw:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),pt))?r:dt?classofRaw(t):"Object"==(n=classofRaw(t))&&"function"==typeof t.callee?"Arguments":n},mt=ht?{}.toString:function toString(){return"[object "+gt(this)+"]"};ht||D(Object.prototype,"toString",mt,{unsafe:!0}),defineWellKnownSymbol("iterator");var vt,yt,bt,createMethod$2=function(e){return function(t,r){var n,o,i=String(requireObjectCoercible(t)),a=toInteger(r),c=i.length;return a<0||a>=c?e?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):n:e?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},wt={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},St=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),xt=sharedKey("IE_PROTO"),_t=Object.prototype,Et=St?Object.getPrototypeOf:function(e){return e=toObject(e),has(e,xt)?e[xt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?_t:null},kt=wellKnownSymbol("iterator"),Ot=!1;[].keys&&("next"in(bt=[].keys())?(yt=Et(Et(bt)))!==Object.prototype&&(vt=yt):Ot=!0),(null==vt||fails((function(){var e={};return vt[kt].call(e)!==e})))&&(vt={}),has(vt,kt)||v(vt,kt,(function(){return this}));var Lt={IteratorPrototype:vt,BUGGY_SAFARI_ITERATORS:Ot},jt={},At=Lt.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(e,t,r){var n=t+" Iterator";return e.prototype=de(At,{next:createPropertyDescriptor(1,r)}),setToStringTag(e,n,!1),jt[n]=returnThis$1,e},It=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function setPrototypeOf(r,n){return anObject(r),function(e){if(!isObject(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(n),t?e.call(r,n):r.__proto__=n,r}}():void 0),Pt=Lt.IteratorPrototype,Rt=Lt.BUGGY_SAFARI_ITERATORS,Tt=wellKnownSymbol("iterator"),returnThis$2=function(){return this},defineIterator=function(e,t,r,n,o,i,a){createIteratorConstructor(r,t,n);var c,s,u,getIterationMethod=function(e){if(e===o&&d)return d;if(!Rt&&e in h)return h[e];switch(e){case"keys":return function keys(){return new r(this,e)};case"values":return function values(){return new r(this,e)};case"entries":return function entries(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,h=e.prototype,p=h[Tt]||h["@@iterator"]||o&&h[o],d=!Rt&&p||getIterationMethod(o),g="Array"==t&&h.entries||p;if(g&&(c=Et(g.call(new e)),Pt!==Object.prototype&&c.next&&(Et(c)!==Pt&&(It?It(c,Pt):"function"!=typeof c[Tt]&&v(c,Tt,returnThis$2)),setToStringTag(c,l,!0))),"values"==o&&p&&"values"!==p.name&&(f=!0,d=function values(){return p.call(this)}),h[Tt]!==d&&v(h,Tt,d),jt[t]=d,o)if(s={values:getIterationMethod("values"),keys:i?d:getIterationMethod("keys"),entries:getIterationMethod("entries")},a)for(u in s)(Rt||f||!(u in h))&&D(h,u,s[u]);else _export({target:t,proto:!0,forced:Rt||f},s);return s},Ut=wt.charAt,Ft=N.set,Ct=N.getterFor("String Iterator");defineIterator(String,"String",(function(e){Ft(this,{type:"String Iterator",string:String(e),index:0})}),(function next(){var e,t=Ct(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Ut(r,n),t.index+=e.length,{value:e,done:!1})}));var Mt=wellKnownSymbol("unscopables"),Gt=Array.prototype;null==Gt[Mt]&&m.f(Gt,Mt,{configurable:!0,value:de(null)});var addToUnscopables=function(e){Gt[Mt][e]=!0},Nt=N.set,Dt=N.getterFor("Array Iterator"),Bt=defineIterator(Array,"Array",(function(e,t){Nt(this,{type:"Array Iterator",target:toIndexedObject(e),index:0,kind:t})}),(function(){var e=Dt(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");jt.Arguments=jt.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var qt={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$t=wellKnownSymbol("iterator"),zt=wellKnownSymbol("toStringTag"),Vt=Bt.values;for(var Wt in qt){var Kt=t[Wt],Jt=Kt&&Kt.prototype;if(Jt){if(Jt[$t]!==Vt)try{v(Jt,$t,Vt)}catch(e){Jt[$t]=Vt}if(Jt[zt]||v(Jt,zt,Wt),qt[Wt])for(var Yt in Bt)if(Jt[Yt]!==Bt[Yt])try{v(Jt,Yt,Bt[Yt])}catch(e){Jt[Yt]=Bt[Yt]}}}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("toStringTag"),setToStringTag(Math,"Math",!0),setToStringTag(t.JSON,"JSON",!0);var Ht=fails((function(){Et(1)}));_export({target:"Object",stat:!0,forced:Ht,sham:!St},{getPrototypeOf:function getPrototypeOf(e){return Et(toObject(e))}});var arrayMethodIsStrict=function(e,t){var r=[][e];return!!r&&fails((function(){r.call(null,t||function(){throw 1},1)}))},Xt=je.forEach,Zt=arrayMethodIsStrict("forEach")?[].forEach:function forEach(e){return Xt(this,e,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Zt},{forEach:Zt});var Qt=m.f,er=Function.prototype,tr=er.toString,rr=/^\s*function ([^ (]*)/;r&&!("name"in er)&&Qt(er,"name",{configurable:!0,get:function(){try{return tr.call(this).match(rr)[1]}catch(e){return""}}}),_export({target:"Object",stat:!0},{setPrototypeOf:It});var nr=t.Promise,redefineAll=function(e,t,r){for(var n in t)D(e,n,t[n],r);return e},or=wellKnownSymbol("species"),anInstance=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},ir=wellKnownSymbol("iterator"),ar=Array.prototype,isArrayIteratorMethod=function(e){return void 0!==e&&(jt.Array===e||ar[ir]===e)},cr=wellKnownSymbol("iterator"),getIteratorMethod=function(e){if(null!=e)return e[cr]||e["@@iterator"]||jt[gt(e)]},iteratorClose=function(e){var t=e.return;if(void 0!==t)return anObject(t.call(e)).value},Result=function(e,t){this.stopped=e,this.result=t},iterate=function(e,t,r){var n,o,i,a,c,s,u,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),d=functionBindContext(t,l,1+f+p),stop=function(e){return n&&iteratorClose(n),new Result(!0,e)},callFn=function(e){return f?(anObject(e),p?d(e[0],e[1],stop):d(e[0],e[1])):p?d(e,stop):d(e)};if(h)n=e;else{if("function"!=typeof(o=getIteratorMethod(e)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(o)){for(i=0,a=toLength(e.length);a>i;i++)if((c=callFn(e[i]))&&c instanceof Result)return c;return new Result(!1)}n=o.call(e)}for(s=n.next;!(u=s.call(n)).done;){try{c=callFn(u.value)}catch(e){throw iteratorClose(n),e}if("object"==typeof c&&c&&c instanceof Result)return c}return new Result(!1)},sr=wellKnownSymbol("iterator"),ur=!1;try{var lr=0,fr={next:function(){return{done:!!lr++}},return:function(){ur=!0}};fr[sr]=function(){return this},Array.from(fr,(function(){throw 2}))}catch(e){}var hr,pr,dr,gr=wellKnownSymbol("species"),mr=getBuiltIn("navigator","userAgent")||"",vr=/(iphone|ipod|ipad).*applewebkit/i.test(mr),yr="process"==classofRaw(t.process),br=t.location,wr=t.setImmediate,Sr=t.clearImmediate,xr=t.process,_r=t.MessageChannel,Er=t.Dispatch,kr=0,Or={},run=function(e){if(Or.hasOwnProperty(e)){var t=Or[e];delete Or[e],t()}},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){t.postMessage(e+"",br.protocol+"//"+br.host)};wr&&Sr||(wr=function setImmediate(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return Or[++kr]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},hr(kr),kr},Sr=function clearImmediate(e){delete Or[e]},yr?hr=function(e){xr.nextTick(runner(e))}:Er&&Er.now?hr=function(e){Er.now(runner(e))}:_r&&!vr?(dr=(pr=new _r).port2,pr.port1.onmessage=listener,hr=functionBindContext(dr.postMessage,dr,1)):t.addEventListener&&"function"==typeof postMessage&&!t.importScripts&&br&&"file:"!==br.protocol&&!fails(post)?(hr=post,t.addEventListener("message",listener,!1)):hr="onreadystatechange"in documentCreateElement("script")?function(e){he.appendChild(documentCreateElement("script")).onreadystatechange=function(){he.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)});var Lr,jr,Ar,Ir,Pr,Rr,Tr,Ur,Fr={set:wr,clear:Sr},Cr=/web0s(?!.*chrome)/i.test(mr),Mr=d.f,Gr=Fr.set,Nr=t.MutationObserver||t.WebKitMutationObserver,Dr=t.document,Br=t.process,qr=t.Promise,$r=Mr(t,"queueMicrotask"),zr=$r&&$r.value;zr||(Lr=function(){var e,t;for(yr&&(e=Br.domain)&&e.exit();jr;){t=jr.fn,jr=jr.next;try{t()}catch(e){throw jr?Ir():Ar=void 0,e}}Ar=void 0,e&&e.enter()},vr||yr||Cr||!Nr||!Dr?qr&&qr.resolve?(Tr=qr.resolve(void 0),Ur=Tr.then,Ir=function(){Ur.call(Tr,Lr)}):Ir=yr?function(){Br.nextTick(Lr)}:function(){Gr.call(t,Lr)}:(Pr=!0,Rr=Dr.createTextNode(""),new Nr(Lr).observe(Rr,{characterData:!0}),Ir=function(){Rr.data=Pr=!Pr}));var Vr,Wr,Kr=zr||function(e){var t={fn:e,next:void 0};Ar&&(Ar.next=t),jr||(jr=t,Ir()),Ar=t},PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=aFunction$1(t),this.reject=aFunction$1(r)},Jr={f:function(e){return new PromiseCapability(e)}},promiseResolve=function(e,t){if(anObject(e),isObject(t)&&t.constructor===e)return t;var r=Jr.f(e);return(0,r.resolve)(t),r.promise},perform=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Yr=t.process,Hr=Yr&&Yr.versions,Xr=Hr&&Hr.v8;Xr?Wr=(Vr=Xr.split("."))[0]+Vr[1]:mr&&(!(Vr=mr.match(/Edge\/(\d+)/))||Vr[1]>=74)&&(Vr=mr.match(/Chrome\/(\d+)/))&&(Wr=Vr[1]);var Zr,Qr,en,tn,rn=Wr&&+Wr,nn=Fr.set,on=wellKnownSymbol("species"),an="Promise",cn=N.get,sn=N.set,un=N.getterFor(an),ln=nr,fn=t.TypeError,hn=t.document,pn=t.process,dn=getBuiltIn("fetch"),gn=Jr.f,mn=gn,vn=!!(hn&&hn.createEvent&&t.dispatchEvent),yn="function"==typeof PromiseRejectionEvent,bn=ie(an,(function(){if(!(_(ln)!==String(ln))){if(66===rn)return!0;if(!yr&&!yn)return!0}if(rn>=51&&/native code/.test(ln))return!1;var e=ln.resolve(1),FakePromise=function(e){e((function(){}),(function(){}))};return(e.constructor={})[on]=FakePromise,!(e.then((function(){}))instanceof FakePromise)})),wn=bn||!function(e,t){if(!t&&!ur)return!1;var r=!1;try{var n={};n[sr]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}((function(e){ln.all(e).catch((function(){}))})),isThenable=function(e){var t;return!(!isObject(e)||"function"!=typeof(t=e.then))&&t},notify$1=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;Kr((function(){for(var n=e.value,o=1==e.state,i=0;r.length>i;){var a,c,s,u=r[i++],l=o?u.ok:u.fail,f=u.resolve,h=u.reject,p=u.domain;try{l?(o||(2===e.rejection&&onHandleUnhandled(e),e.rejection=1),!0===l?a=n:(p&&p.enter(),a=l(n),p&&(p.exit(),s=!0)),a===u.promise?h(fn("Promise-chain cycle")):(c=isThenable(a))?c.call(a,f,h):f(a)):h(n)}catch(e){p&&!s&&p.exit(),h(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&onUnhandled(e)}))}},dispatchEvent=function(e,r,n){var o,i;vn?((o=hn.createEvent("Event")).promise=r,o.reason=n,o.initEvent(e,!1,!0),t.dispatchEvent(o)):o={promise:r,reason:n},!yn&&(i=t["on"+e])?i(o):"unhandledrejection"===e&&function(e,r){var n=t.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,r))}("Unhandled promise rejection",n)},onUnhandled=function(e){nn.call(t,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform((function(){yr?pn.emit("unhandledRejection",n,r):dispatchEvent("unhandledrejection",r,n)})),e.rejection=yr||isUnhandled(e)?2:1,t.error))throw t.value}))},isUnhandled=function(e){return 1!==e.rejection&&!e.parent},onHandleUnhandled=function(e){nn.call(t,(function(){var t=e.facade;yr?pn.emit("rejectionHandled",t):dispatchEvent("rejectionhandled",t,e.value)}))},bind=function(e,t,r){return function(n){e(t,n,r)}},internalReject=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,notify$1(e,!0))},internalResolve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw fn("Promise can't be resolved itself");var n=isThenable(t);n?Kr((function(){var r={done:!1};try{n.call(t,bind(internalResolve,r,e),bind(internalReject,r,e))}catch(t){internalReject(r,t,e)}})):(e.value=t,e.state=1,notify$1(e,!1))}catch(t){internalReject({done:!1},t,e)}}};bn&&(ln=function Promise(e){anInstance(this,ln,an),aFunction$1(e),Zr.call(this);var t=cn(this);try{e(bind(internalResolve,t),bind(internalReject,t))}catch(e){internalReject(t,e)}},(Zr=function Promise(e){sn(this,{type:an,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(ln.prototype,{then:function then(e,t){var r,n,o,i=un(this),a=gn((r=ln,void 0===(o=anObject(this).constructor)||null==(n=anObject(o)[gr])?r:aFunction$1(n)));return a.ok="function"!=typeof e||e,a.fail="function"==typeof t&&t,a.domain=yr?pn.domain:void 0,i.parent=!0,i.reactions.push(a),0!=i.state&&notify$1(i,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),Qr=function(){var e=new Zr,t=cn(e);this.promise=e,this.resolve=bind(internalResolve,t),this.reject=bind(internalReject,t)},Jr.f=gn=function(e){return e===ln||e===en?new Qr(e):mn(e)},"function"==typeof nr&&(tn=nr.prototype.then,D(nr.prototype,"then",(function then(e,t){var r=this;return new ln((function(e,t){tn.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof dn&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(e){return promiseResolve(ln,dn.apply(t,arguments))}}))),_export({global:!0,wrap:!0,forced:bn},{Promise:ln}),setToStringTag(ln,an,!1),function(e){var t=getBuiltIn(e),n=m.f;r&&t&&!t[or]&&n(t,or,{configurable:!0,get:function(){return this}})}(an),en=getBuiltIn(an),_export({target:an,stat:!0,forced:bn},{reject:function reject(e){var t=gn(this);return t.reject.call(void 0,e),t.promise}}),_export({target:an,stat:!0,forced:bn},{resolve:function resolve(e){return promiseResolve(this,e)}}),_export({target:an,stat:!0,forced:wn},{all:function all(e){var t=this,r=gn(t),n=r.resolve,o=r.reject,i=perform((function(){var r=aFunction$1(t.resolve),i=[],a=0,c=1;iterate(e,(function(e){var s=a++,u=!1;i.push(void 0),c++,r.call(t,e).then((function(e){u||(u=!0,i[s]=e,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),r.promise},race:function race(e){var t=this,r=gn(t),n=r.reject,o=perform((function(){var o=aFunction$1(t.resolve);iterate(e,(function(e){o.call(t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var regexpFlags=function(){var e=anObject(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},Sn=RegExp.prototype,xn=Sn.toString,_n=fails((function(){return"/a/b"!=xn.call({source:"a",flags:"b"})})),En="toString"!=xn.name;for(var kn in(_n||En)&&D(RegExp.prototype,"toString",(function toString(){var e=anObject(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(void 0===r&&e instanceof RegExp&&!("flags"in Sn)?regexpFlags.call(e):r)}),{unsafe:!0}),qt){var On=t[kn],Ln=On&&On.prototype;if(Ln&&Ln.forEach!==Zt)try{v(Ln,"forEach",Zt)}catch(e){Ln.forEach=Zt}}var jn=[].reverse,An=[1,2];_export({target:"Array",proto:!0,forced:String(An)===String(An.reverse())},{reverse:function reverse(){return ue(this)&&(this.length=this.length),jn.call(this)}});var createProperty=function(e,t,r){var n=toPrimitive(t);n in e?m.f(e,n,createPropertyDescriptor(0,r)):e[n]=r},In=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(e){return rn>=51||!fails((function(){var t=[];return(t.constructor={})[In]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pn=arrayMethodHasSpeciesSupport("slice"),Rn=wellKnownSymbol("species"),Tn=[].slice,Un=Math.max;_export({target:"Array",proto:!0,forced:!Pn},{slice:function slice(e,t){var r,n,o,i=toIndexedObject(this),a=toLength(i.length),c=toAbsoluteIndex(e,a),s=toAbsoluteIndex(void 0===t?a:t,a);if(ue(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!ue(r.prototype)?isObject(r)&&null===(r=r[Rn])&&(r=void 0):r=void 0,r===Array||void 0===r))return Tn.call(i,c,s);for(n=new(void 0===r?Array:r)(Un(s-c,0)),o=0;c<s;c++,o++)c in i&&createProperty(n,o,i[c]);return n.length=o,n}}),createCommonjsModule((function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function define(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{define({},"")}catch(e){define=function define(e,t,r){return e[t]=r}}function wrap(e,t,r,n){var o=t&&t.prototype instanceof Generator?t:Generator,i=Object.create(o.prototype),a=new Context(n||[]);return i._invoke=function makeInvokeMethod(e,t,r){var n=s;return function invoke(o,i){if(n===l)throw new Error("Generator is already running");if(n===f){if("throw"===o)throw i;return doneResult()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=maybeInvokeDelegate(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===s)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var p=tryCatch(e,t,r);if("normal"===p.type){if(n=r.done?f:u,p.arg===h)continue;return{value:p.arg,done:r.done}}"throw"===p.type&&(n=f,r.method="throw",r.arg=p.arg)}}}(e,r,a),i}function tryCatch(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=wrap;var s="suspendedStart",u="suspendedYield",l="executing",f="completed",h={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};p[i]=function(){return this};var d=Object.getPrototypeOf,g=d&&d(d(values([])));g&&g!==r&&n.call(g,i)&&(p=g);var m=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(e){["next","throw","return"].forEach((function(t){define(e,t,(function(e){return this._invoke(t,e)}))}))}function AsyncIterator(e,t){var r;this._invoke=function enqueue(o,i){function callInvokeWithMethodAndArg(){return new t((function(r,a){!function invoke(r,o,i,a){var c=tryCatch(e[r],e,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"===_typeof(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,i,a)}),(function(e){invoke("throw",e,i,a)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return invoke("throw",e,i,a)}))}a(c.arg)}(o,i,r,a)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=tryCatch(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function pushTryEntry(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function resetTryEntry(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Context(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return a.next=a}}return{next:doneResult}}function doneResult(){return{value:t,done:!0}}return GeneratorFunction.prototype=m.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===GeneratorFunction||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,c,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[a]=function(){return this},e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},defineIteratorMethods(m),define(m,c,"Generator"),m[i]=function(){return this},m.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function next(){for(;t.length;){var r=t.pop();if(r in e)return next.value=r,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function stop(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function complete(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function finish(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),h}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}));var Fn=je.map,Cn=arrayMethodHasSpeciesSupport("map");_export({target:"Array",proto:!0,forced:!Cn},{map:function map(e){return Fn(this,e,arguments.length>1?arguments[1]:void 0)}});var Mn=wellKnownSymbol("iterator"),Gn=!fails((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=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[Mn]||"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"!==r||"x"!==new URL("http://x",void 0).host})),Nn=Object.assign,Dn=Object.defineProperty,Bn=!Nn||fails((function(){if(r&&1!==Nn({b:1},Nn(Dn({},"a",{enumerable:!0,get:function(){Dn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=Nn({},e)[n]||le(Nn({},t)).join("")!=o}))?function assign(e,t){for(var n=toObject(e),o=arguments.length,a=1,c=Z.f,u=i.f;o>a;)for(var l,f=s(arguments[a++]),h=c?le(f).concat(c(f)):le(f),p=h.length,d=0;p>d;)l=h[d++],r&&!u.call(f,l)||(n[l]=f[l]);return n}:Nn,callWithSafeIterationClosing=function(e,t,r,n){try{return n?t(anObject(r)[0],r[1]):t(r)}catch(t){throw iteratorClose(e),t}},qn=function from(e){var t,r,n,o,i,a,c=toObject(e),s="function"==typeof this?this:Array,u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,h=getIteratorMethod(c),p=0;if(f&&(l=functionBindContext(l,u>2?arguments[2]:void 0,2)),null==h||s==Array&&isArrayIteratorMethod(h))for(r=new s(t=toLength(c.length));t>p;p++)a=f?l(c[p],p):c[p],createProperty(r,p,a);else for(i=(o=h.call(c)).next,r=new s;!(n=i.call(o)).done;p++)a=f?callWithSafeIterationClosing(o,l,[n.value,p],!0):n.value,createProperty(r,p,a);return r.length=p,r},$n=/[^\0-\u007E]/,zn=/[.\u3002\uFF0E\uFF61]/g,Vn="Overflow: input needs wider integers to process",Wn=Math.floor,Kn=String.fromCharCode,digitToBasic=function(e){return e+22+75*(e<26)},adapt=function(e,t,r){var n=0;for(e=r?Wn(e/700):e>>1,e+=Wn(e/t);e>455;n+=36)e=Wn(e/35);return Wn(n+36*e/(e+38))},encode=function(e){var t,r,n=[],o=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=e.charCodeAt(r++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),r--)}else t.push(o)}return t}(e)).length,i=128,a=0,c=72;for(t=0;t<e.length;t++)(r=e[t])<128&&n.push(Kn(r));var s=n.length,u=s;for(s&&n.push("-");u<o;){var l=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<l&&(l=r);var f=u+1;if(l-i>Wn((2147483647-a)/f))throw RangeError(Vn);for(a+=(l-i)*f,i=l,t=0;t<e.length;t++){if((r=e[t])<i&&++a>2147483647)throw RangeError(Vn);if(r==i){for(var h=a,p=36;;p+=36){var d=p<=c?1:p>=c+26?26:p-c;if(h<d)break;var g=h-d,m=36-d;n.push(Kn(digitToBasic(d+g%m))),h=Wn(g/m)}n.push(Kn(digitToBasic(h))),c=adapt(a,f,u==s),a=0,++u}}++a,++i}return n.join("")},getIterator=function(e){var t=getIteratorMethod(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return anObject(t.call(e))},Jn=getBuiltIn("fetch"),Yn=getBuiltIn("Headers"),Hn=wellKnownSymbol("iterator"),Xn=N.set,Zn=N.getterFor("URLSearchParams"),Qn=N.getterFor("URLSearchParamsIterator"),eo=/\+/g,to=Array(4),percentSequence=function(e){return to[e-1]||(to[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(e){try{return decodeURIComponent(e)}catch(t){return e}},deserialize=function(e){var t=e.replace(eo," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=t.replace(percentSequence(r--),percentDecode);return t}},ro=/[!'()~]|%20/g,no={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return no[e]},serialize=function(e){return encodeURIComponent(e).replace(ro,replacer)},parseSearchParams=function(e,t){if(t)for(var r,n,o=t.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),e.push({key:deserialize(n.shift()),value:deserialize(n.join("="))}))},updateSearchParams=function(e){this.entries.length=0,parseSearchParams(this.entries,e)},validateArgumentsLength=function(e,t){if(e<t)throw TypeError("Not enough arguments")},oo=createIteratorConstructor((function Iterator(e,t){Xn(this,{type:"URLSearchParamsIterator",iterator:getIterator(Zn(e).entries),kind:t})}),"Iterator",(function next(){var e=Qn(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r})),io=function URLSearchParams(){anInstance(this,io,"URLSearchParams");var e,t,r,n,o,i,a,c,s,u=arguments.length>0?arguments[0]:void 0,l=this,f=[];if(Xn(l,{type:"URLSearchParams",entries:f,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==u)if(isObject(u))if("function"==typeof(e=getIteratorMethod(u)))for(r=(t=e.call(u)).next;!(n=r.call(t)).done;){if((a=(i=(o=getIterator(anObject(n.value))).next).call(o)).done||(c=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:c.value+""})}else for(s in u)has(u,s)&&f.push({key:s,value:u[s]+""});else parseSearchParams(f,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},ao=io.prototype;redefineAll(ao,{append:function append(e,t){validateArgumentsLength(arguments.length,2);var r=Zn(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){validateArgumentsLength(arguments.length,1);for(var t=Zn(this),r=t.entries,n=e+"",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;t.updateURL()},get:function get(e){validateArgumentsLength(arguments.length,1);for(var t=Zn(this).entries,r=e+"",n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function getAll(e){validateArgumentsLength(arguments.length,1);for(var t=Zn(this).entries,r=e+"",n=[],o=0;o<t.length;o++)t[o].key===r&&n.push(t[o].value);return n},has:function has(e){validateArgumentsLength(arguments.length,1);for(var t=Zn(this).entries,r=e+"",n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function set(e,t){validateArgumentsLength(arguments.length,1);for(var r,n=Zn(this),o=n.entries,i=!1,a=e+"",c=t+"",s=0;s<o.length;s++)(r=o[s]).key===a&&(i?o.splice(s--,1):(i=!0,r.value=c));i||o.push({key:a,value:c}),n.updateURL()},sort:function sort(){var e,t,r,n=Zn(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(e=i[r],t=0;t<r;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===r&&o.push(e)}n.updateURL()},forEach:function forEach(e){for(var t,r=Zn(this).entries,n=functionBindContext(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function keys(){return new oo(this,"keys")},values:function values(){return new oo(this,"values")},entries:function entries(){return new oo(this,"entries")}},{enumerable:!0}),D(ao,Hn,ao.entries),D(ao,"toString",(function toString(){for(var e,t=Zn(this).entries,r=[],n=0;n<t.length;)e=t[n++],r.push(serialize(e.key)+"="+serialize(e.value));return r.join("&")}),{enumerable:!0}),setToStringTag(io,"URLSearchParams"),_export({global:!0,forced:!Gn},{URLSearchParams:io}),Gn||"function"!=typeof Jn||"function"!=typeof Yn||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(e){var t,r,n,o=[e];return arguments.length>1&&(isObject(t=arguments[1])&&(r=t.body,"URLSearchParams"===gt(r)&&((n=t.headers?new Yn(t.headers):new Yn).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=de(t,{body:createPropertyDescriptor(0,String(r)),headers:createPropertyDescriptor(0,n)}))),o.push(t)),Jn.apply(this,o)}});var co,so={URLSearchParams:io,getState:Zn},uo=wt.codeAt,lo=t.URL,fo=so.URLSearchParams,ho=so.getState,po=N.set,go=N.getterFor("URL"),mo=Math.floor,vo=Math.pow,yo=/[A-Za-z]/,bo=/[\d+-.A-Za-z]/,wo=/\d/,So=/^(0x|0X)/,xo=/^[0-7]+$/,_o=/^\d+$/,Eo=/^[\dA-Fa-f]+$/,ko=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,Oo=/[\u0000\t\u000A\u000D #/:?@[\\]]/,Lo=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,jo=/[\t\u000A\u000D]/g,parseHost=function(e,t){var r,n,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(r=parseIPv6(t.slice(1,-1))))return"Invalid host";e.host=r}else if(isSpecial(e)){if(t=function(e){var t,r,n=[],o=e.toLowerCase().replace(zn,".").split(".");for(t=0;t<o.length;t++)r=o[t],n.push($n.test(r)?"xn--"+encode(r):r);return n.join(".")}(t),ko.test(t))return"Invalid host";if(null===(r=parseIPv4(t)))return"Invalid host";e.host=r}else{if(Oo.test(t))return"Invalid host";for(r="",n=qn(t),o=0;o<n.length;o++)r+=percentEncode(n[o],Ao);e.host=r}},parseIPv4=function(e){var t,r,n,o,i,a,c,s=e.split(".");if(s.length&&""==s[s.length-1]&&s.pop(),(t=s.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=s[n]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=So.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?_o:8==i?xo:Eo).test(o))return e;a=parseInt(o,i)}r.push(a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=vo(256,5-t))return null}else if(a>255)return null;for(c=r.pop(),n=0;n<r.length;n++)c+=r[n]*vo(256,3-n);return c},parseIPv6=function(e){var t,r,n,o,i,a,c,s=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,char=function(){return e.charAt(f)};if(":"==char()){if(":"!=e.charAt(1))return;f+=2,l=++u}for(;char();){if(8==u)return;if(":"!=char()){for(t=r=0;r<4&&Eo.test(char());)t=16*t+parseInt(char(),16),f++,r++;if("."==char()){if(0==r)return;if(f-=r,u>6)return;for(n=0;char();){if(o=null,n>0){if(!("."==char()&&n<4))return;f++}if(!wo.test(char()))return;for(;wo.test(char());){if(i=parseInt(char(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}s[u]=256*s[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==char()){if(f++,!char())return}else if(char())return;s[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)c=s[u],s[u--]=s[l+a-1],s[l+--a]=c;else if(8!=u)return;return s},serializeHost=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=mo(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},Ao={},Io=Bn({},Ao,{" ":1,'"':1,"<":1,">":1,"`":1}),Po=Bn({},Io,{"#":1,"?":1,"{":1,"}":1}),Ro=Bn({},Po,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(e,t){var r=uo(e,0);return r>32&&r<127&&!has(t,e)?e:encodeURIComponent(e)},To={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(e){return has(To,e.scheme)},includesCredentials=function(e){return""!=e.username||""!=e.password},cannotHaveUsernamePasswordPort=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},isWindowsDriveLetter=function(e,t){var r;return 2==e.length&&yo.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},startsWithWindowsDriveLetter=function(e){var t;return e.length>1&&isWindowsDriveLetter(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},shortenURLsPath=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&isWindowsDriveLetter(t[0],!0)||t.pop()},isSingleDot=function(e){return"."===e||"%2e"===e.toLowerCase()},Uo={},Fo={},Co={},Mo={},Go={},No={},Do={},Bo={},qo={},$o={},zo={},Vo={},Wo={},Ko={},Jo={},Yo={},Ho={},Xo={},Zo={},Qo={},ei={},parseURL=function(e,t,r,n){var o,i,a,c,s,u=r||Uo,l=0,f="",h=!1,p=!1,d=!1;for(r||(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(Lo,"")),t=t.replace(jo,""),o=qn(t);l<=o.length;){switch(i=o[l],u){case Uo:if(!i||!yo.test(i)){if(r)return"Invalid scheme";u=Co;continue}f+=i.toLowerCase(),u=Fo;break;case Fo:if(i&&(bo.test(i)||"+"==i||"-"==i||"."==i))f+=i.toLowerCase();else{if(":"!=i){if(r)return"Invalid scheme";f="",u=Co,l=0;continue}if(r&&(isSpecial(e)!=has(To,f)||"file"==f&&(includesCredentials(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,r)return void(isSpecial(e)&&To[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?u=Ko:isSpecial(e)&&n&&n.scheme==e.scheme?u=Mo:isSpecial(e)?u=Bo:"/"==o[l+1]?(u=Go,l++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Zo)}break;case Co:if(!n||n.cannotBeABaseURL&&"#"!=i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==i){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,u=ei;break}u="file"==n.scheme?Ko:No;continue;case Mo:if("/"!=i||"/"!=o[l+1]){u=No;continue}u=qo,l++;break;case Go:if("/"==i){u=$o;break}u=Xo;continue;case No:if(e.scheme=n.scheme,i==co)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("/"==i||"\\"==i&&isSpecial(e))u=Do;else if("?"==i)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",u=Qo;else{if("#"!=i){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),u=Xo;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="",u=ei}break;case Do:if(!isSpecial(e)||"/"!=i&&"\\"!=i){if("/"!=i){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,u=Xo;continue}u=$o}else u=qo;break;case Bo:if(u=qo,"/"!=i||"/"!=f.charAt(l+1))continue;l++;break;case qo:if("/"!=i&&"\\"!=i){u=$o;continue}break;case $o:if("@"==i){h&&(f="%40"+f),h=!0,a=qn(f);for(var g=0;g<a.length;g++){var m=a[g];if(":"!=m||d){var v=percentEncode(m,Ro);d?e.password+=v:e.username+=v}else d=!0}f=""}else if(i==co||"/"==i||"?"==i||"#"==i||"\\"==i&&isSpecial(e)){if(h&&""==f)return"Invalid authority";l-=qn(f).length+1,f="",u=zo}else f+=i;break;case zo:case Vo:if(r&&"file"==e.scheme){u=Yo;continue}if(":"!=i||p){if(i==co||"/"==i||"?"==i||"#"==i||"\\"==i&&isSpecial(e)){if(isSpecial(e)&&""==f)return"Invalid host";if(r&&""==f&&(includesCredentials(e)||null!==e.port))return;if(c=parseHost(e,f))return c;if(f="",u=Ho,r)return;continue}"["==i?p=!0:"]"==i&&(p=!1),f+=i}else{if(""==f)return"Invalid host";if(c=parseHost(e,f))return c;if(f="",u=Wo,r==Vo)return}break;case Wo:if(!wo.test(i)){if(i==co||"/"==i||"?"==i||"#"==i||"\\"==i&&isSpecial(e)||r){if(""!=f){var y=parseInt(f,10);if(y>65535)return"Invalid port";e.port=isSpecial(e)&&y===To[e.scheme]?null:y,f=""}if(r)return;u=Ho;continue}return"Invalid port"}f+=i;break;case Ko:if(e.scheme="file","/"==i||"\\"==i)u=Jo;else{if(!n||"file"!=n.scheme){u=Xo;continue}if(i==co)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if("?"==i)e.host=n.host,e.path=n.path.slice(),e.query="",u=Qo;else{if("#"!=i){startsWithWindowsDriveLetter(o.slice(l).join(""))||(e.host=n.host,e.path=n.path.slice(),shortenURLsPath(e)),u=Xo;continue}e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",u=ei}}break;case Jo:if("/"==i||"\\"==i){u=Yo;break}n&&"file"==n.scheme&&!startsWithWindowsDriveLetter(o.slice(l).join(""))&&(isWindowsDriveLetter(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),u=Xo;continue;case Yo:if(i==co||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&isWindowsDriveLetter(f))u=Xo;else if(""==f){if(e.host="",r)return;u=Ho}else{if(c=parseHost(e,f))return c;if("localhost"==e.host&&(e.host=""),r)return;f="",u=Ho}continue}f+=i;break;case Ho:if(isSpecial(e)){if(u=Xo,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=co&&(u=Xo,"/"!=i))continue}else e.fragment="",u=ei;else e.query="",u=Qo;break;case Xo:if(i==co||"/"==i||"\\"==i&&isSpecial(e)||!r&&("?"==i||"#"==i)){if(".."===(s=(s=f).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(shortenURLsPath(e),"/"==i||"\\"==i&&isSpecial(e)||e.path.push("")):isSingleDot(f)?"/"==i||"\\"==i&&isSpecial(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&isWindowsDriveLetter(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(i==co||"?"==i||"#"==i))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==i?(e.query="",u=Qo):"#"==i&&(e.fragment="",u=ei)}else f+=percentEncode(i,Po);break;case Zo:"?"==i?(e.query="",u=Qo):"#"==i?(e.fragment="",u=ei):i!=co&&(e.path[0]+=percentEncode(i,Ao));break;case Qo:r||"#"!=i?i!=co&&("'"==i&&isSpecial(e)?e.query+="%27":e.query+="#"==i?"%23":percentEncode(i,Ao)):(e.fragment="",u=ei);break;case ei:i!=co&&(e.fragment+=percentEncode(i,Io))}l++}},ti=function URL(e){var t,n,o=anInstance(this,ti,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),c=po(o,{type:"URL"});if(void 0!==i)if(i instanceof ti)t=go(i);else if(n=parseURL(t={},String(i)))throw TypeError(n);if(n=parseURL(c,a,null,t))throw TypeError(n);var s=c.searchParams=new fo,u=ho(s);u.updateSearchParams(c.query),u.updateURL=function(){c.query=String(s)||null},r||(o.href=serializeURL.call(o),o.origin=getOrigin.call(o),o.protocol=getProtocol.call(o),o.username=getUsername.call(o),o.password=getPassword.call(o),o.host=getHost.call(o),o.hostname=getHostname.call(o),o.port=getPort.call(o),o.pathname=getPathname.call(o),o.search=getSearch.call(o),o.searchParams=getSearchParams.call(o),o.hash=getHash.call(o))},ri=ti.prototype,serializeURL=function(){var e=go(this),t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,c=e.query,s=e.fragment,u=t+":";return null!==o?(u+="//",includesCredentials(e)&&(u+=r+(n?":"+n:"")+"@"),u+=serializeHost(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(u+="?"+c),null!==s&&(u+="#"+s),u},getOrigin=function(){var e=go(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&isSpecial(e)?t+"://"+serializeHost(e.host)+(null!==r?":"+r:""):"null"},getProtocol=function(){return go(this).scheme+":"},getUsername=function(){return go(this).username},getPassword=function(){return go(this).password},getHost=function(){var e=go(this),t=e.host,r=e.port;return null===t?"":null===r?serializeHost(t):serializeHost(t)+":"+r},getHostname=function(){var e=go(this).host;return null===e?"":serializeHost(e)},getPort=function(){var e=go(this).port;return null===e?"":String(e)},getPathname=function(){var e=go(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},getSearch=function(){var e=go(this).query;return e?"?"+e:""},getSearchParams=function(){return go(this).searchParams},getHash=function(){var e=go(this).fragment;return e?"#"+e:""},accessorDescriptor=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(r&&fe(ri,{href:accessorDescriptor(serializeURL,(function(e){var t=go(this),r=String(e),n=parseURL(t,r);if(n)throw TypeError(n);ho(t.searchParams).updateSearchParams(t.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(e){var t=go(this);parseURL(t,String(e)+":",Uo)})),username:accessorDescriptor(getUsername,(function(e){var t=go(this),r=qn(String(e));if(!cannotHaveUsernamePasswordPort(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=percentEncode(r[n],Ro)}})),password:accessorDescriptor(getPassword,(function(e){var t=go(this),r=qn(String(e));if(!cannotHaveUsernamePasswordPort(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=percentEncode(r[n],Ro)}})),host:accessorDescriptor(getHost,(function(e){var t=go(this);t.cannotBeABaseURL||parseURL(t,String(e),zo)})),hostname:accessorDescriptor(getHostname,(function(e){var t=go(this);t.cannotBeABaseURL||parseURL(t,String(e),Vo)})),port:accessorDescriptor(getPort,(function(e){var t=go(this);cannotHaveUsernamePasswordPort(t)||(""==(e=String(e))?t.port=null:parseURL(t,e,Wo))})),pathname:accessorDescriptor(getPathname,(function(e){var t=go(this);t.cannotBeABaseURL||(t.path=[],parseURL(t,e+"",Ho))})),search:accessorDescriptor(getSearch,(function(e){var t=go(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",parseURL(t,e,Qo)),ho(t.searchParams).updateSearchParams(t.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(e){var t=go(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",parseURL(t,e,ei)):t.fragment=null}))}),D(ri,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),D(ri,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),lo){var ni=lo.createObjectURL,oi=lo.revokeObjectURL;ni&&D(ti,"createObjectURL",(function createObjectURL(e){return ni.apply(lo,arguments)})),oi&&D(ti,"revokeObjectURL",(function revokeObjectURL(e){return oi.apply(lo,arguments)}))}setToStringTag(ti,"URL"),_export({global:!0,forced:!Gn,sham:!r},{URL:ti});var ii=K.includes;_export({target:"Array",proto:!0},{includes:function includes(e){return ii(this,e,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var ai=wellKnownSymbol("match"),notARegexp=function(e){if(function(e){var t;return isObject(e)&&(void 0!==(t=e[ai])?!!t:"RegExp"==classofRaw(e))}(e))throw TypeError("The method doesn't accept regular expressions");return e},ci=wellKnownSymbol("match"),correctIsRegexpLogic=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[ci]=!1,"/./"[e](t)}catch(e){}}return!1};_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function includes(e){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(e),arguments.length>1?arguments[1]:void 0)}});var si=wellKnownSymbol("isConcatSpreadable"),ui=rn>=51||!fails((function(){var e=[];return e[si]=!1,e.concat()[0]!==e})),li=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(e){if(!isObject(e))return!1;var t=e[si];return void 0!==t?!!t:ue(e)};_export({target:"Array",proto:!0,forced:!ui||!li},{concat:function concat(e){var t,r,n,o,i,a=toObject(this),c=arraySpeciesCreate(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(isConcatSpreadable(i=-1===t?a:arguments[t])){if(s+(o=toLength(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&createProperty(c,s,i[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(c,s++,i)}return c.length=s,c}});var fi=K.indexOf,hi=[].indexOf,pi=!!hi&&1/[1].indexOf(1,-0)<0,di=arrayMethodIsStrict("indexOf");function RE(e,t){return RegExp(e,t)}_export({target:"Array",proto:!0,forced:pi||!di},{indexOf:function indexOf(e){return pi?hi.apply(this,arguments)||0:fi(this,e,arguments.length>1?arguments[1]:void 0)}});var gi,mi,vi={UNSUPPORTED_Y:fails((function(){var e=RE("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:fails((function(){var e=RE("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},yi=RegExp.prototype.exec,bi=String.prototype.replace,wi=yi,Si=(gi=/a/,mi=/b*/g,yi.call(gi,"a"),yi.call(mi,"a"),0!==gi.lastIndex||0!==mi.lastIndex),xi=vi.UNSUPPORTED_Y||vi.BROKEN_CARET,_i=void 0!==/()??/.exec("")[1];(Si||_i||xi)&&(wi=function exec(e){var t,r,n,o,i=this,a=xi&&i.sticky,c=regexpFlags.call(i),s=i.source,u=0,l=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(s="(?: "+s+")",l=" "+l,u++),r=new RegExp("^(?:"+s+")",c)),_i&&(r=new RegExp("^"+s+"$(?!\\s)",c)),Si&&(t=i.lastIndex),n=yi.call(a?r:i,l),a?n?(n.input=n.input.slice(u),n[0]=n[0].slice(u),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:Si&&n&&(i.lastIndex=i.global?n.index+n[0].length:t),_i&&n&&n.length>1&&bi.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var Ei=wi;_export({target:"RegExp",proto:!0,forced:/./.exec!==Ei},{exec:Ei});var ki=wellKnownSymbol("species"),Oi=!fails((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Li="$0"==="a".replace(/./,"$0"),ji=wellKnownSymbol("replace"),Ai=!!/./[ji]&&""===/./[ji]("a","$0"),Ii=!fails((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),Pi=wt.charAt,advanceStringIndex=function(e,t,r){return t+(r?Pi(e,t).length:1)},Ri=Math.floor,Ti="".replace,Ui=/\$([$&'`]|\d\d?|<[^>]*>)/g,Fi=/\$([$&'`]|\d\d?)/g,getSubstitution=function(e,t,r,n,o,i){var a=r+e.length,c=n.length,s=Fi;return void 0!==o&&(o=toObject(o),s=Ui),Ti.call(i,s,(function(i,s){var u;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(a);case"<":u=o[s.slice(1,-1)];break;default:var l=+s;if(0===l)return i;if(l>c){var f=Ri(l/10);return 0===f?i:f<=c?void 0===n[f-1]?s.charAt(1):n[f-1]+s.charAt(1):i}u=n[l-1]}return void 0===u?"":u}))},regexpExecAbstract=function(e,t){var r=e.exec;if("function"==typeof r){var n=r.call(e,t);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==classofRaw(e))throw TypeError("RegExp#exec called on incompatible receiver");return Ei.call(e,t)},Ci=Math.max,Mi=Math.min;!function(e,t,r,n){var o=wellKnownSymbol(e),i=!fails((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!fails((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[ki]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||"replace"===e&&(!Oi||!Li||Ai)||"split"===e&&!Ii){var c=/./[o],s=r(o,""[e],(function(e,t,r,n,o){return t.exec===Ei?i&&!o?{done:!0,value:c.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:Li,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ai}),u=s[0],l=s[1];D(String.prototype,e,u),D(RegExp.prototype,o,2==t?function(e,t){return l.call(e,this,t)}:function(e){return l.call(e,this)})}n&&v(RegExp.prototype[o],"sham",!0)}("replace",2,(function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function replace(r,n){var o=requireObjectCoercible(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,o,n):t.call(String(o),r,n)},function(e,n){if(!o&&i||"string"==typeof n&&-1===n.indexOf(a)){var c=r(t,e,this,n);if(c.done)return c.value}var s=anObject(e),u=String(this),l="function"==typeof n;l||(n=String(n));var f=s.global;if(f){var h=s.unicode;s.lastIndex=0}for(var p=[];;){var d=regexpExecAbstract(s,u);if(null===d)break;if(p.push(d),!f)break;""===String(d[0])&&(s.lastIndex=advanceStringIndex(u,toLength(s.lastIndex),h))}for(var g,m="",v=0,y=0;y<p.length;y++){d=p[y];for(var b=String(d[0]),w=Ci(Mi(toInteger(d.index),u.length),0),S=[],x=1;x<d.length;x++)S.push(void 0===(g=d[x])?g:String(g));var _=d.groups;if(l){var E=[b].concat(S,w,u);void 0!==_&&E.push(_);var k=String(n.apply(void 0,E))}else k=getSubstitution(b,u,w,S,_,n);w>=v&&(m+=u.slice(v,w)+k,v=w+b.length)}return m+u.slice(v)}]}));var Gi,Ni=d.f,Di="".startsWith,Bi=Math.min,qi=correctIsRegexpLogic("startsWith"),$i=!(qi||(Gi=Ni(String.prototype,"startsWith"),!Gi||Gi.writable));function __variableDynamicImportRuntime0__(e){switch(e){case"./locale/de.js":return Promise.resolve().then((function(){return Wi}));case"./locale/en.js":return Promise.resolve().then((function(){return Ki}));case"./locale/fr.js":return Promise.resolve().then((function(){return Ji}));case"./locale/pl.js":return Promise.resolve().then((function(){return Yi}));case"./locale/pt-BR.js":return Promise.resolve().then((function(){return Hi}));case"./locale/ro.js":return Promise.resolve().then((function(){return Xi}));case"./locale/sk.js":return Promise.resolve().then((function(){return Zi}));case"./locale/sl.js":return Promise.resolve().then((function(){return Qi}));case"./locale/zh-CN.js":return Promise.resolve().then((function(){return ea}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+e))}}
/**
* @file ext-imagelib.js
*
* @license MIT
*
* @copyright 2010 Alexis Deveria
*
*/_export({target:"String",proto:!0,forced:!$i&&!qi},{startsWith:function startsWith(e){var t=String(requireObjectCoercible(this));notARegexp(e);var r=toLength(Bi(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Di?Di.call(t,n,r):t.slice(r,r+n.length)===n}});var zi=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function _callee(e){var t;return regeneratorRuntime.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,__variableDynamicImportRuntime0__("./locale/".concat(encodeURIComponent(e),".js"));case 3:t=r.sent,r.next=12;break;case 6:return r.prev=6,r.t0=r.catch(0),console.error("Missing translation (".concat(e,") - using 'en'")),r.next=11,Promise.resolve().then((function(){return Ki}));case 11:t=r.sent;case 12:return r.abrupt("return",t.default);case 13:case"end":return r.stop()}}),_callee,null,[[0,6]])})));return function loadExtensionTranslation(t){return e.apply(this,arguments)}}(),Vi={name:"imagelib",init:function init(e){var t=this;return _asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var r,n,o,i,a,c,s,u,l,f,h,p,d,g,m,v,y,b,w,S,x;return regeneratorRuntime.wrap((function _callee3$(_){for(;;)switch(_.prev=_.next){case 0:return S=function _showBrowser(){var e=r("#imgbrowse");if(e.length)r("#imgbrowse_holder").show();else{r("<div id=imgbrowse_holder><div id=imgbrowse class=toolbar_button></div></div>").insertAfter("#svg_editor"),e=r("#imgbrowse");var t=a.select_lib,n=r("<ul id=imglib_opts>").appendTo(e),o=r('<iframe src="javascript:0"/>').prependTo(e).hide().wrap("<div id=lib_framewrap>"),i=r("<h1>").prependTo(e).text(t).css({position:"absolute",top:0,left:0,width:"100%"});r('<button><img class="svg_icon" src="./images/cancel.svg" alt="icon" width="16" height="16" />'+c.common.cancel+"</button>").appendTo(e).on("click touchend",(function(){r("#imgbrowse_holder").hide()})).css({position:"absolute",top:5,right:-10});var s=r("<span>").css({position:"absolute",top:5,left:10}).appendTo(e),u=r('<button hidden><img class="svg_icon" src="./images/library.svg" alt="icon" width="16" height="16" />'+a.show_list+"</button>").appendTo(s).on("click touchend",(function(){o.attr("src","about:blank").hide(),n.show(),i.text(t),u.hide()})).css({"margin-right":5}).hide();r("<select><option value=s>"+a.import_single+"</option><option value=m>"+a.import_multi+"</option><option value=o>"+a.open+"</option></select>").appendTo(s).change((function(){switch(p=r(this).val()){case"s":case"o":w(!1);break;case"m":w(!0)}})).css({"margin-top":10}),a.imgLibs.forEach((function(e){var t=e.name,a=e.url,c=e.description;r("<li>").appendTo(n).text(t).on("click touchend",(function(){o.attr("src",a).show(),i.text(t),n.hide(),u.show()})).append("<span>".concat(c,"</span>"))}))}},w=function _toggleMulti(e){r("#lib_framewrap, #imglib_opts").css({right:e?200:10}),m||(m=r("<div id=imglib_preview>").css({position:"absolute",top:45,right:10,width:180,bottom:45,background:"#fff",overflow:"auto"}).insertAfter("#lib_framewrap"),v=r("<button disabled>Import selected</button>").appendTo("#imgbrowse").on("click touchend",(function(){r.each(d,(function(e){var t=this[0],r=this[1];"svg"===t?s.importSvgString(r):f(r),s.moveSelectedElements(20*e,20*e,!1)})),m.empty(),d=[],r("#imgbrowse_holder").hide()})).css({position:"absolute",bottom:10,right:-10})),m.toggle(e),v.toggle(e)},b=function _onMessage3(){return(b=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(e){var t,a,y,b,w,S,x,_,E,k,O,L,j,A,I,P,R;return regeneratorRuntime.wrap((function _callee2$(T){for(;;)switch(T.prev=T.next){case 0:if(t=e.origin,(a=e.data)&&["string","object"].includes(_typeof(a))){T.next=3;break}return T.abrupt("return");case 3:if(T.prev=3,"imagelib"===(a="object"===_typeof(a)?a:JSON.parse(a)).namespace){T.next=7;break}return T.abrupt("return");case 7:if(u.includes("*")||u.includes(t)){T.next=10;break}return console.log("Origin ".concat(t," not whitelisted for posting to ").concat(window.origin)),T.abrupt("return");case 10:if(S="href"in a,(w="name"in a)||!g){T.next=15;break}return g=!1,T.abrupt("return");case 15:S&&(y=a.href,a=a.data),document.querySelector("se-elix-alert-dialog")&&document.querySelector("se-elix-alert-dialog").remove(),b=w?"meta":a.charAt(0),T.next=28;break;case 20:if(T.prev=20,T.t0=T.catch(3),"string"!=typeof a){T.next=28;break}if("{"===(x=a.charAt(0))||!g){T.next=27;break}return g=!1,T.abrupt("return");case 27:"|"===x&&(_=a.indexOf("|",1),y=a.substr(1,_-1),a=a.substr(_+1),b=a.charAt(0));case 28:T.t1=b,T.next="meta"===T.t1?31:"<"===T.t1?46:"d"===T.t1?48:59;break;case 31:if(g=!1,h[(k=a).id]=k,j=k.name||"file",A=c.notification.retrieving.replace("%s",j),"m"===p){T.next=42;break}return T.next=39,seConfirm(A);case 39:g=!0,T.next=45;break;case 42:E=r("<div>").text(A).data("id",k.id),m.append(E),k.entry=E;case 45:return T.abrupt("return");case 46:return O=!0,T.abrupt("break",61);case 48:if(!a.startsWith("data:image/svg+xml")){T.next=56;break}return"data:image/svg+xml;base64,",I=a.substring("data:image/svg+xml;base64,".length),a=n(I),O=!0,T.abrupt("break",61);case 56:if(!a.startsWith("data:image/")){T.next=59;break}return L=!0,T.abrupt("break",61);case 59:return"m"!==p?l():h[y].entry.remove(),T.abrupt("return");case 61:T.t2=p,T.next="s"===T.t2?64:"m"===T.t2?67:"o"===T.t2?71:82;break;case 64:return O?i.svgCanvas.importSvgString(a):L&&f(a),l(),T.abrupt("break",82);case 67:return d.push([O?"svg":"img",a]),k=h[y],O?(k&&k.name?P=k.name:(R=(new DOMParser).parseFromString(o(a),"text/xml").documentElement,P=r(R).children("title").first().text()||"(SVG #"+a.length+")"),k?m.children().each((function(){r(this).data("id")===y&&(k.preview_url?r(this).html(r("<span>").append(r("<img>").attr("src",k.preview_url),P)):r(this).text(P),v.removeAttr("disabled"))})):(m.append(r("<div>").text(P)),v.removeAttr("disabled"))):(k&&k.preview_url?(P=k.name||"",E=r("<span>").append(r("<img>").attr("src",k.preview_url),P)):E=r("<img>").attr("src",a),k?m.children().each((function(){r(this).data("id")===y&&(r(this).html(E),v.removeAttr("disabled"))})):(m.append(r("<div>").append(E)),v.removeAttr("disabled"))),T.abrupt("break",82);case 71:if(O){T.next=73;break}return T.abrupt("break",82);case 73:return l(),T.next=76,i.openPrep();case 76:if(T.sent){T.next=79;break}return T.abrupt("return");case 79:return s.clear(),s.setSvgString(a),T.abrupt("break",82);case 82:case"end":return T.stop()}}),_callee2,null,[[3,20]])})))).apply(this,arguments)},y=function _onMessage2(e){return b.apply(this,arguments)},f=function _importImage(e){var t=s.addSVGElementFromJson({element:"image",attr:{x:0,y:0,width:0,height:0,id:s.getNextId(),style:"pointer-events:inherit"}});s.clearSelection(),s.addToSelection([t]),s.setImageURL(e)},l=function _closeBrowser(){r("#imgbrowse_holder").hide(),document.activeElement.blur()},r=e.$,n=e.decode64,o=e.dropXMLInternalSubset,i=t,_.next=10,zi(i.configObj.pref("lang"));case 10:return a=_.sent,c=i.uiStrings,s=i.canvas,u=a.imgLibs.map((function(e){var t=e.url;try{return new URL(t).origin}catch(e){return location.origin}})),h={},p="s",d=[],g=!1,window.addEventListener("message",y,!0),x={id:"tool_imagelib",click:function click(){S()}},_.abrupt("return",{svgicons:"ext-imagelib.xml",events:x,callback:function callback(){r("<style>").text("#imgbrowse_holder {position: absolute;top: 0;left: 0;width: 100%;height: 100%;background-color: rgba(0, 0, 0, .5);z-index: 5;}#imgbrowse {position: absolute;top: 25px;left: 25px;right: 25px;bottom: 25px;min-width: 300px;min-height: 200px;background: #B0B0B0;border: 1px outset #777;}#imgbrowse h1 {font-size: 20px;margin: .4em;text-align: center;}#lib_framewrap,#imgbrowse > ul {position: absolute;top: 45px;left: 10px;right: 10px;bottom: 10px;background: white;margin: 0;padding: 0;}#imgbrowse > ul {overflow: auto;}#imgbrowse > div {border: 1px solid #666;}#imglib_preview > div {padding: 5px;font-size: 12px;}#imglib_preview img {display: block;margin: 0 auto;max-height: 100px;}#imgbrowse li {list-style: none;padding: .5em;background: #E8E8E8;border-bottom: 1px solid #B0B0B0;line-height: 1.2em;font-style: sans-serif;}#imgbrowse li > span {color: #666;font-size: 15px;display: block;}#imgbrowse li:hover {background: #FFC;cursor: pointer;}#imgbrowse iframe {width: 100%;height: 100%;border: 0;}").appendTo("head")}});case 20:case"end":return _.stop()}}),_callee3)})))()}},Wi=Object.freeze({__proto__:null,default:{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Bilder-Bibliothek"}],imgLibs:[{name:"Demo library (local)",url:"extensions/ext-imagelib/index.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]}}),Ki=Object.freeze({__proto__:null,default:{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Image library"}],imgLibs:[{name:"Demo library (local)",url:"extensions/ext-imagelib/index.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]}}),Ji=Object.freeze({__proto__:null,default:{select_lib:"Choisir une bibliothèque d'images",show_list:"show_list",import_single:"import_single",import_multi:"import_multi",open:"open",buttons:[{title:"Bibliothèque d'images"}],imgLibs:[{name:"Demo library (local)",url:"extensions/ext-imagelib/index.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]}}),Yi=Object.freeze({__proto__:null,default:{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Biblioteka obrazów"}],imgLibs:[{name:"Demo library (local)",url:"extensions/ext-imagelib/index.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]}}),Hi=Object.freeze({__proto__:null,default:{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Biblioteca de Imagens"}],imgLibs:[{name:"Demo library (local)",url:"extensions/ext-imagelib/index.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]}}),Xi=Object.freeze({__proto__:null,default:{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Bibliotecă de Imagini"}],imgLibs:[{name:"Demo library (local)",url:"extensions/ext-imagelib/index.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]}}),Zi=Object.freeze({__proto__:null,default:{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Knižnica obrázkov"}],imgLibs:[{name:"Demo library (local)",url:"extensions/ext-imagelib/index.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]}}),Qi=Object.freeze({__proto__:null,default:{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"Knjižnica slik"}],imgLibs:[{name:"Demo library (local)",url:"extensions/ext-imagelib/index.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]}}),ea=Object.freeze({__proto__:null,default:{select_lib:"Select an image library",show_list:"Show library list",import_single:"Import single",import_multi:"Import multiple",open:"Open as new document",buttons:[{title:"图像库"}],imgLibs:[{name:"Demo library (local)",url:"extensions/ext-imagelib/index.html",description:"Demonstration library for SVG-edit on this server"},{name:"IAN Symbol Libraries",url:"https://ian.umces.edu/symbols/catalog/svgedit/album_chooser.php?svgedit=3",description:"Free library of illustrations"}]}});export default Vi;
//# sourceMappingURL=ext-imagelib.js.map