13 lines
53 KiB
JavaScript
13 lines
53 KiB
JavaScript
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var check=function(t){return t&&t.Math==Math&&t},e=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof t&&t)||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},n=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i={f:o&&!r.call({1:2},1)?function propertyIsEnumerable(t){var e=o(this,t);return!!e&&e.enumerable}:r},createPropertyDescriptor=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},c={}.toString,classofRaw=function(t){return c.call(t).slice(8,-1)},a="".split,u=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==classofRaw(t)?a.call(t,""):Object(t)}:Object,requireObjectCoercible=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},toIndexedObject=function(t){return u(requireObjectCoercible(t))},isObject=function(t){return"object"==typeof t?null!==t:"function"==typeof t},toPrimitive=function(t,e){if(!isObject(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!isObject(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!isObject(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!isObject(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},f={}.hasOwnProperty,has=function(t,e){return f.call(t,e)},s=e.document,l=isObject(s)&&isObject(s.createElement),documentCreateElement=function(t){return l?s.createElement(t):{}},p=!n&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),h=Object.getOwnPropertyDescriptor,d={f:n?h:function getOwnPropertyDescriptor(t,e){if(t=toIndexedObject(t),e=toPrimitive(e,!0),p)try{return h(t,e)}catch(t){}if(has(t,e))return createPropertyDescriptor(!i.f.call(t,e),t[e])}},anObject=function(t){if(!isObject(t))throw TypeError(String(t)+" is not an object");return t},v=Object.defineProperty,g={f:n?v:function defineProperty(t,e,n){if(anObject(t),e=toPrimitive(e,!0),anObject(n),p)try{return v(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},y=n?function(t,e,n){return g.f(t,e,createPropertyDescriptor(1,n))}:function(t,e,n){return t[e]=n,t},setGlobal=function(t,n){try{y(e,t,n)}catch(r){e[t]=n}return n},m=e["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),b=Function.toString;"function"!=typeof m.inspectSource&&(m.inspectSource=function(t){return b.call(t)});var x,S,w,E=m.inspectSource,_=e.WeakMap,O="function"==typeof _&&/native code/.test(E(_)),j=createCommonjsModule((function(t){(t.exports=function(t,e){return m[t]||(m[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),A=0,P=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++A+P).toString(36)},T=j("keys"),sharedKey=function(t){return T[t]||(T[t]=uid(t))},k={},I=e.WeakMap;if(O){var L=new I,R=L.get,C=L.has,M=L.set;x=function(t,e){return M.call(L,t,e),e},S=function(t){return R.call(L,t)||{}},w=function(t){return C.call(L,t)}}else{var N=sharedKey("state");k[N]=!0,x=function(t,e){return y(t,N,e),e},S=function(t){return has(t,N)?t[N]:{}},w=function(t){return has(t,N)}}var G,D,z={set:x,get:S,has:w,enforce:function(t){return w(t)?S(t):x(t,{})},getterFor:function(t){return function(e){var n;if(!isObject(e)||(n=S(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},U=createCommonjsModule((function(t){var n=z.get,r=z.enforce,o=String(String).split("String");(t.exports=function(t,n,i,c){var a=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof n||has(i,"name")||y(i,"name",n),r(i).source=o.join("string"==typeof n?n:"")),t!==e?(a?!f&&t[n]&&(u=!0):delete t[n],u?t[n]=i:y(t,n,i)):u?t[n]=i:setGlobal(n,i)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&n(this).source||E(this)}))})),$=e,aFunction=function(t){return"function"==typeof t?t:void 0},getBuiltIn=function(t,n){return arguments.length<2?aFunction($[t])||aFunction(e[t]):$[t]&&$[t][n]||e[t]&&e[t][n]},W=Math.ceil,H=Math.floor,toInteger=function(t){return isNaN(t=+t)?0:(t>0?H:W)(t)},V=Math.min,toLength=function(t){return t>0?V(toInteger(t),9007199254740991):0},q=Math.max,B=Math.min,toAbsoluteIndex=function(t,e){var n=toInteger(t);return n<0?q(n+e,0):B(n,e)},createMethod=function(t){return function(e,n,r){var o,i=toIndexedObject(e),c=toLength(i.length),a=toAbsoluteIndex(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Y={includes:createMethod(!0),indexOf:createMethod(!1)},K=Y.indexOf,objectKeysInternal=function(t,e){var n,r=toIndexedObject(t),o=0,i=[];for(n in r)!has(k,n)&&has(r,n)&&i.push(n);for(;e.length>o;)has(r,n=e[o++])&&(~K(i,n)||i.push(n));return i},J=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],X=J.concat("length","prototype"),Q={f:Object.getOwnPropertyNames||function getOwnPropertyNames(t){return objectKeysInternal(t,X)}},Z={f:Object.getOwnPropertySymbols},tt=getBuiltIn("Reflect","ownKeys")||function ownKeys(t){var e=Q.f(anObject(t)),n=Z.f;return n?e.concat(n(t)):e},copyConstructorProperties=function(t,e){for(var n=tt(e),r=g.f,o=d.f,i=0;i<n.length;i++){var c=n[i];has(t,c)||r(t,c,o(e,c))}},et=/#|\.prototype\./,isForced=function(t,e){var n=rt[nt(t)];return n==it||n!=ot&&("function"==typeof e?fails(e):!!e)},nt=isForced.normalize=function(t){return String(t).replace(et,".").toLowerCase()},rt=isForced.data={},ot=isForced.NATIVE="N",it=isForced.POLYFILL="P",ct=isForced,at=d.f,_export=function(t,n){var r,o,i,c,a,u=t.target,f=t.global,s=t.stat;if(r=f?e:s?e[u]||setGlobal(u,{}):(e[u]||{}).prototype)for(o in n){if(c=n[o],i=t.noTargetGet?(a=at(r,o))&&a.value:r[o],!ct(f?o:u+(s?".":"#")+o,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;copyConstructorProperties(c,i)}(t.sham||i&&i.sham)&&y(c,"sham",!0),U(r,o,c,t)}},aFunction$1=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},functionBindContext=function(t,e,n){if(aFunction$1(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},toObject=function(t){return Object(requireObjectCoercible(t))},ut=Array.isArray||function isArray(t){return"Array"==classofRaw(t)},ft=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),st=ft&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lt=j("wks"),pt=e.Symbol,ht=st?pt:pt&&pt.withoutSetter||uid,wellKnownSymbol=function(t){return has(lt,t)||(ft&&has(pt,t)?lt[t]=pt[t]:lt[t]=ht("Symbol."+t)),lt[t]},dt=wellKnownSymbol("species"),arraySpeciesCreate=function(t,e){var n;return ut(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!ut(n.prototype)?isObject(n)&&null===(n=n[dt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},vt=[].push,createMethod$1=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=5==t||i;return function(a,f,s,l){for(var p,h,d=toObject(a),v=u(d),g=functionBindContext(f,s,3),y=toLength(v.length),m=0,b=l||arraySpeciesCreate,x=e?b(a,y):n?b(a,0):void 0;y>m;m++)if((c||m in v)&&(h=g(p=v[m],m,d),t))if(e)x[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:vt.call(x,p)}else if(o)return!1;return i?-1:r||o?o:x}},gt={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)},yt=getBuiltIn("navigator","userAgent")||"",mt=e.process,bt=mt&&mt.versions,xt=bt&&bt.v8;xt?D=(G=xt.split("."))[0]+G[1]:yt&&(!(G=yt.match(/Edge\/(\d+)/))||G[1]>=74)&&(G=yt.match(/Chrome\/(\d+)/))&&(D=G[1]);var St=D&&+D,wt=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(t){return St>=51||!fails((function(){var e=[];return(e.constructor={})[wt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Et=Object.defineProperty,_t={},thrower=function(t){throw t},arrayMethodUsesToLength=function(t,e){if(has(_t,t))return _t[t];e||(e={});var r=[][t],o=!!has(e,"ACCESSORS")&&e.ACCESSORS,i=has(e,0)?e[0]:thrower,c=has(e,1)?e[1]:void 0;return _t[t]=!!r&&!fails((function(){if(o&&!n)return!0;var t={length:-1};o?Et(t,1,{enumerable:!0,get:thrower}):t[1]=1,r.call(t,i,c)}))},Ot=gt.map,jt=arrayMethodHasSpeciesSupport("map"),At=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!jt||!At},{map:function map(t){return Ot(this,t,arguments.length>1?arguments[1]:void 0)}});var Pt=g.f,Tt=Function.prototype,kt=Tt.toString,It=/^\s*function ([^ (]*)/;n&&!("name"in Tt)&&Pt(Tt,"name",{configurable:!0,get:function(){try{return kt.call(this).match(It)[1]}catch(t){return""}}});var Lt=Object.keys||function keys(t){return objectKeysInternal(t,J)},Rt=Object.assign,Ct=Object.defineProperty,Mt=!Rt||fails((function(){if(n&&1!==Rt({b:1},Rt(Ct({},"a",{enumerable:!0,get:function(){Ct(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach((function(t){e[t]=t})),7!=Rt({},t)[r]||Lt(Rt({},e)).join("")!=o}))?function assign(t,e){for(var r=toObject(t),o=arguments.length,c=1,a=Z.f,f=i.f;o>c;)for(var s,l=u(arguments[c++]),p=a?Lt(l).concat(a(l)):Lt(l),h=p.length,d=0;h>d;)s=p[d++],n&&!f.call(l,s)||(r[s]=l[s]);return r}:Rt;_export({target:"Object",stat:!0,forced:Object.assign!==Mt},{assign:Mt});var Nt,Gt=n?Object.defineProperties:function defineProperties(t,e){anObject(t);for(var n,r=Lt(e),o=r.length,i=0;o>i;)g.f(t,n=r[i++],e[n]);return t},Ft=getBuiltIn("document","documentElement"),Dt=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"<\/script>"},NullProtoObject=function(){try{Nt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;NullProtoObject=Nt?function(t){t.write(scriptTag("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Nt):((e=documentCreateElement("iframe")).style.display="none",Ft.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F);for(var n=J.length;n--;)delete NullProtoObject.prototype[J[n]];return NullProtoObject()};k[Dt]=!0;var zt=Object.create||function create(t,e){var n;return null!==t?(EmptyConstructor.prototype=anObject(t),n=new EmptyConstructor,EmptyConstructor.prototype=null,n[Dt]=t):n=NullProtoObject(),void 0===e?n:Gt(n,e)},Ut=Q.f,$t={}.toString,Wt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ht={f:function getOwnPropertyNames(t){return Wt&&"[object Window]"==$t.call(t)?function(t){try{return Ut(t)}catch(t){return Wt.slice()}}(t):Ut(toIndexedObject(t))}},Vt={f:wellKnownSymbol},qt=g.f,defineWellKnownSymbol=function(t){var e=$.Symbol||($.Symbol={});has(e,t)||qt(e,t,{value:Vt.f(t)})},Bt=g.f,Yt=wellKnownSymbol("toStringTag"),setToStringTag=function(t,e,n){t&&!has(t=n?t:t.prototype,Yt)&&Bt(t,Yt,{configurable:!0,value:e})},Kt=gt.forEach,Jt=sharedKey("hidden"),Xt=wellKnownSymbol("toPrimitive"),Qt=z.set,Zt=z.getterFor("Symbol"),te=Object.prototype,ee=e.Symbol,ne=getBuiltIn("JSON","stringify"),re=d.f,oe=g.f,ie=Ht.f,ce=i.f,ae=j("symbols"),ue=j("op-symbols"),fe=j("string-to-symbol-registry"),se=j("symbol-to-string-registry"),le=j("wks"),pe=e.QObject,he=!pe||!pe.prototype||!pe.prototype.findChild,de=n&&fails((function(){return 7!=zt(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=re(te,e);r&&delete te[e],oe(t,e,n),r&&t!==te&&oe(te,e,r)}:oe,wrap=function(t,e){var r=ae[t]=zt(ee.prototype);return Qt(r,{type:"Symbol",tag:t,description:e}),n||(r.description=e),r},ve=st?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ee},ge=function defineProperty(t,e,n){t===te&&ge(ue,e,n),anObject(t);var r=toPrimitive(e,!0);return anObject(n),has(ae,r)?(n.enumerable?(has(t,Jt)&&t[Jt][r]&&(t[Jt][r]=!1),n=zt(n,{enumerable:createPropertyDescriptor(0,!1)})):(has(t,Jt)||oe(t,Jt,createPropertyDescriptor(1,{})),t[Jt][r]=!0),de(t,r,n)):oe(t,r,n)},ye=function defineProperties(t,e){anObject(t);var r=toIndexedObject(e),o=Lt(r).concat(Se(r));return Kt(o,(function(e){n&&!me.call(r,e)||ge(t,e,r[e])})),t},me=function propertyIsEnumerable(t){var e=toPrimitive(t,!0),n=ce.call(this,e);return!(this===te&&has(ae,e)&&!has(ue,e))&&(!(n||!has(this,e)||!has(ae,e)||has(this,Jt)&&this[Jt][e])||n)},be=function getOwnPropertyDescriptor(t,e){var n=toIndexedObject(t),r=toPrimitive(e,!0);if(n!==te||!has(ae,r)||has(ue,r)){var o=re(n,r);return!o||!has(ae,r)||has(n,Jt)&&n[Jt][r]||(o.enumerable=!0),o}},xe=function getOwnPropertyNames(t){var e=ie(toIndexedObject(t)),n=[];return Kt(e,(function(t){has(ae,t)||has(k,t)||n.push(t)})),n},Se=function getOwnPropertySymbols(t){var e=t===te,n=ie(e?ue:toIndexedObject(t)),r=[];return Kt(n,(function(t){!has(ae,t)||e&&!has(te,t)||r.push(ae[t])})),r};if(ft||(U((ee=function Symbol(){if(this instanceof ee)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=uid(t),setter=function(t){this===te&&setter.call(ue,t),has(this,Jt)&&has(this[Jt],e)&&(this[Jt][e]=!1),de(this,e,createPropertyDescriptor(1,t))};return n&&he&&de(te,e,{configurable:!0,set:setter}),wrap(e,t)}).prototype,"toString",(function toString(){return Zt(this).tag})),U(ee,"withoutSetter",(function(t){return wrap(uid(t),t)})),i.f=me,g.f=ge,d.f=be,Q.f=Ht.f=xe,Z.f=Se,Vt.f=function(t){return wrap(wellKnownSymbol(t),t)},n&&(oe(ee.prototype,"description",{configurable:!0,get:function description(){return Zt(this).description}}),U(te,"propertyIsEnumerable",me,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!ft,sham:!ft},{Symbol:ee}),Kt(Lt(le),(function(t){defineWellKnownSymbol(t)})),_export({target:"Symbol",stat:!0,forced:!ft},{for:function(t){var e=String(t);if(has(fe,e))return fe[e];var n=ee(e);return fe[e]=n,se[n]=e,n},keyFor:function keyFor(t){if(!ve(t))throw TypeError(t+" is not a symbol");if(has(se,t))return se[t]},useSetter:function(){he=!0},useSimple:function(){he=!1}}),_export({target:"Object",stat:!0,forced:!ft,sham:!n},{create:function create(t,e){return void 0===e?zt(t):ye(zt(t),e)},defineProperty:ge,defineProperties:ye,getOwnPropertyDescriptor:be}),_export({target:"Object",stat:!0,forced:!ft},{getOwnPropertyNames:xe,getOwnPropertySymbols:Se}),_export({target:"Object",stat:!0,forced:fails((function(){Z.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(t){return Z.f(toObject(t))}}),ne){var we=!ft||fails((function(){var t=ee();return"[null]"!=ne([t])||"{}"!=ne({a:t})||"{}"!=ne(Object(t))}));_export({target:"JSON",stat:!0,forced:we},{stringify:function stringify(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(isObject(e)||void 0!==t)&&!ve(t))return ut(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ve(e))return e}),o[1]=e,ne.apply(null,o)}})}ee.prototype[Xt]||y(ee.prototype,Xt,ee.prototype.valueOf),setToStringTag(ee,"Symbol"),k[Jt]=!0;var Ee=g.f,_e=e.Symbol;if(n&&"function"==typeof _e&&(!("description"in _e.prototype)||void 0!==_e().description)){var Oe={},je=function Symbol(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof je?new _e(t):void 0===t?_e():_e(t);return""===t&&(Oe[e]=!0),e};copyConstructorProperties(je,_e);var Ae=je.prototype=_e.prototype;Ae.constructor=je;var Pe=Ae.toString,Te="Symbol(test)"==String(_e("test")),ke=/^Symbol\((.*)\)[^)]+$/;Ee(Ae,"description",{configurable:!0,get:function description(){var t=isObject(this)?this.valueOf():this,e=Pe.call(t);if(has(Oe,t))return"";var n=Te?e.slice(7,-1):e.replace(ke,"$1");return""===n?void 0:n}}),_export({global:!0,forced:!0},{Symbol:je})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag");var arrayMethodIsStrict=function(t,e){var n=[][t];return!!n&&fails((function(){n.call(null,e||function(){throw 1},1)}))},Ie=gt.forEach,Le=arrayMethodIsStrict("forEach"),Re=arrayMethodUsesToLength("forEach"),Ce=Le&&Re?[].forEach:function forEach(t){return Ie(this,t,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Ce},{forEach:Ce});var Me=wellKnownSymbol("unscopables"),Ne=Array.prototype;null==Ne[Me]&&g.f(Ne,Me,{configurable:!0,value:zt(null)});var Ge,Fe,De,addToUnscopables=function(t){Ne[Me][t]=!0},ze={},Ue=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),$e=sharedKey("IE_PROTO"),We=Object.prototype,He=Ue?Object.getPrototypeOf:function(t){return t=toObject(t),has(t,$e)?t[$e]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?We:null},Ve=wellKnownSymbol("iterator"),qe=!1;[].keys&&("next"in(De=[].keys())?(Fe=He(He(De)))!==Object.prototype&&(Ge=Fe):qe=!0),null==Ge&&(Ge={}),has(Ge,Ve)||y(Ge,Ve,(function(){return this}));var Be={IteratorPrototype:Ge,BUGGY_SAFARI_ITERATORS:qe},Ye=Be.IteratorPrototype,returnThis$1=function(){return this},Ke=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function setPrototypeOf(n,r){return anObject(n),function(t){if(!isObject(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),Je=Be.IteratorPrototype,Xe=Be.BUGGY_SAFARI_ITERATORS,Qe=wellKnownSymbol("iterator"),returnThis$2=function(){return this},defineIterator=function(t,e,n,r,o,i,c){!function(t,e,n){var r=e+" Iterator";t.prototype=zt(Ye,{next:createPropertyDescriptor(1,n)}),setToStringTag(t,r,!1),ze[r]=returnThis$1}(n,e,r);var a,u,f,getIterationMethod=function(t){if(t===o&&d)return d;if(!Xe&&t in p)return p[t];switch(t){case"keys":return function keys(){return new n(this,t)};case"values":return function values(){return new n(this,t)};case"entries":return function entries(){return new n(this,t)}}return function(){return new n(this)}},s=e+" Iterator",l=!1,p=t.prototype,h=p[Qe]||p["@@iterator"]||o&&p[o],d=!Xe&&h||getIterationMethod(o),v="Array"==e&&p.entries||h;if(v&&(a=He(v.call(new t)),Je!==Object.prototype&&a.next&&(He(a)!==Je&&(Ke?Ke(a,Je):"function"!=typeof a[Qe]&&y(a,Qe,returnThis$2)),setToStringTag(a,s,!0))),"values"==o&&h&&"values"!==h.name&&(l=!0,d=function values(){return h.call(this)}),p[Qe]!==d&&y(p,Qe,d),ze[e]=d,o)if(u={values:getIterationMethod("values"),keys:i?d:getIterationMethod("keys"),entries:getIterationMethod("entries")},c)for(f in u)(Xe||l||!(f in p))&&U(p,f,u[f]);else _export({target:e,proto:!0,forced:Xe||l},u);return u},Ze=z.set,tn=z.getterFor("Array Iterator"),en=defineIterator(Array,"Array",(function(t,e){Ze(this,{type:"Array Iterator",target:toIndexedObject(t),index:0,kind:e})}),(function(){var t=tn(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");ze.Arguments=ze.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var nn=[].reverse,rn=[1,2];_export({target:"Array",proto:!0,forced:String(rn)===String(rn.reverse())},{reverse:function reverse(){return ut(this)&&(this.length=this.length),nn.call(this)}});var createProperty=function(t,e,n){var r=toPrimitive(e);r in t?g.f(t,r,createPropertyDescriptor(0,n)):t[r]=n},on=arrayMethodHasSpeciesSupport("slice"),cn=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),an=wellKnownSymbol("species"),un=[].slice,fn=Math.max;_export({target:"Array",proto:!0,forced:!on||!cn},{slice:function slice(t,e){var n,r,o,i=toIndexedObject(this),c=toLength(i.length),a=toAbsoluteIndex(t,c),u=toAbsoluteIndex(void 0===e?c:e,c);if(ut(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!ut(n.prototype)?isObject(n)&&null===(n=n[an])&&(n=void 0):n=void 0,n===Array||void 0===n))return un.call(i,a,u);for(r=new(void 0===n?Array:n)(fn(u-a,0)),o=0;a<u;a++,o++)a in i&&createProperty(r,o,i[a]);return r.length=o,r}});var sn=Date.prototype,ln=sn.toString,pn=sn.getTime;new Date(NaN)+""!="Invalid Date"&&U(sn,"toString",(function toString(){var t=pn.call(this);return t==t?ln.call(this):"Invalid Date"})),setToStringTag(e.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!n},{create:zt}),_export({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperty:g.f});var hn=fails((function(){He(1)}));_export({target:"Object",stat:!0,forced:hn,sham:!Ue},{getPrototypeOf:function getPrototypeOf(t){return He(toObject(t))}}),_export({target:"Object",stat:!0},{setPrototypeOf:Ke});var dn={};dn[wellKnownSymbol("toStringTag")]="z";var vn="[object z]"===String(dn),gn=wellKnownSymbol("toStringTag"),yn="Arguments"==classofRaw(function(){return arguments}()),mn=vn?classofRaw:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),gn))?n:yn?classofRaw(e):"Object"==(r=classofRaw(e))&&"function"==typeof e.callee?"Arguments":r},bn=vn?{}.toString:function toString(){return"[object "+mn(this)+"]"};vn||U(Object.prototype,"toString",bn,{unsafe:!0});var xn=e.Promise,Sn=wellKnownSymbol("species"),wn=wellKnownSymbol("iterator"),En=Array.prototype,_n=wellKnownSymbol("iterator"),callWithSafeIterationClosing=function(t,e,n,r){try{return r?e(anObject(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&anObject(o.call(t)),e}},On=createCommonjsModule((function(t){var Result=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,r,o){var i,c,a,u,f,s,l,p,h=functionBindContext(e,n,r?2:1);if(o)i=t;else{if("function"!=typeof(c=function(t){if(null!=t)return t[_n]||t["@@iterator"]||ze[mn(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(ze.Array===p||En[wn]===p)){for(a=0,u=toLength(t.length);u>a;a++)if((f=r?h(anObject(l=t[a])[0],l[1]):h(t[a]))&&f instanceof Result)return f;return new Result(!1)}i=c.call(t)}for(s=i.next;!(l=s.call(i)).done;)if("object"==typeof(f=callWithSafeIterationClosing(i,h,l.value,r))&&f&&f instanceof Result)return f;return new Result(!1)}).stop=function(t){return new Result(!0,t)}})),jn=wellKnownSymbol("iterator"),An=!1;try{var Pn=0,Tn={next:function(){return{done:!!Pn++}},return:function(){An=!0}};Tn[jn]=function(){return this},Array.from(Tn,(function(){throw 2}))}catch(t){}var kn,In,Ln,Rn=wellKnownSymbol("species"),speciesConstructor=function(t,e){var n,r=anObject(t).constructor;return void 0===r||null==(n=anObject(r)[Rn])?e:aFunction$1(n)},Cn=/(iphone|ipod|ipad).*applewebkit/i.test(yt),Mn=e.location,Nn=e.setImmediate,Gn=e.clearImmediate,Fn=e.process,Dn=e.MessageChannel,zn=e.Dispatch,Un=0,$n={},run=function(t){if($n.hasOwnProperty(t)){var e=$n[t];delete $n[t],e()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){e.postMessage(t+"",Mn.protocol+"//"+Mn.host)};Nn&&Gn||(Nn=function setImmediate(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return $n[++Un]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},kn(Un),Un},Gn=function clearImmediate(t){delete $n[t]},"process"==classofRaw(Fn)?kn=function(t){Fn.nextTick(runner(t))}:zn&&zn.now?kn=function(t){zn.now(runner(t))}:Dn&&!Cn?(Ln=(In=new Dn).port2,In.port1.onmessage=listener,kn=functionBindContext(Ln.postMessage,Ln,1)):!e.addEventListener||"function"!=typeof postMessage||e.importScripts||fails(post)||"file:"===Mn.protocol?kn="onreadystatechange"in documentCreateElement("script")?function(t){Ft.appendChild(documentCreateElement("script")).onreadystatechange=function(){Ft.removeChild(this),run(t)}}:function(t){setTimeout(runner(t),0)}:(kn=post,e.addEventListener("message",listener,!1)));var Wn,Hn,Vn,qn,Bn,Yn,Kn,Jn,Xn={set:Nn,clear:Gn},Qn=d.f,Zn=Xn.set,tr=e.MutationObserver||e.WebKitMutationObserver,er=e.process,nr=e.Promise,rr="process"==classofRaw(er),or=Qn(e,"queueMicrotask"),ir=or&&or.value;ir||(Wn=function(){var t,e;for(rr&&(t=er.domain)&&t.exit();Hn;){e=Hn.fn,Hn=Hn.next;try{e()}catch(t){throw Hn?qn():Vn=void 0,t}}Vn=void 0,t&&t.enter()},rr?qn=function(){er.nextTick(Wn)}:tr&&!Cn?(Bn=!0,Yn=document.createTextNode(""),new tr(Wn).observe(Yn,{characterData:!0}),qn=function(){Yn.data=Bn=!Bn}):nr&&nr.resolve?(Kn=nr.resolve(void 0),Jn=Kn.then,qn=function(){Jn.call(Kn,Wn)}):qn=function(){Zn.call(e,Wn)});var cr,ar,ur,fr,sr=ir||function(t){var e={fn:t,next:void 0};Vn&&(Vn.next=e),Hn||(Hn=e,qn()),Vn=e},PromiseCapability=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=aFunction$1(e),this.reject=aFunction$1(n)},lr={f:function(t){return new PromiseCapability(t)}},promiseResolve=function(t,e){if(anObject(t),isObject(e)&&e.constructor===t)return e;var n=lr.f(t);return(0,n.resolve)(e),n.promise},perform=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},pr=Xn.set,hr=wellKnownSymbol("species"),dr="Promise",vr=z.get,gr=z.set,yr=z.getterFor(dr),mr=xn,br=e.TypeError,xr=e.document,Sr=e.process,wr=getBuiltIn("fetch"),Er=lr.f,_r=Er,Or="process"==classofRaw(Sr),jr=!!(xr&&xr.createEvent&&e.dispatchEvent),Ar=ct(dr,(function(){if(!(E(mr)!==String(mr))){if(66===St)return!0;if(!Or&&"function"!=typeof PromiseRejectionEvent)return!0}if(St>=51&&/native code/.test(mr))return!1;var t=mr.resolve(1),FakePromise=function(t){t((function(){}),(function(){}))};return(t.constructor={})[hr]=FakePromise,!(t.then((function(){}))instanceof FakePromise)})),Pr=Ar||!function(t,e){if(!e&&!An)return!1;var n=!1;try{var r={};r[jn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){mr.all(t).catch((function(){}))})),isThenable=function(t){var e;return!(!isObject(t)||"function"!=typeof(e=t.then))&&e},notify$1=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;sr((function(){for(var o=e.value,i=1==e.state,c=0;r.length>c;){var a,u,f,s=r[c++],l=i?s.ok:s.fail,p=s.resolve,h=s.reject,d=s.domain;try{l?(i||(2===e.rejection&&onHandleUnhandled(t,e),e.rejection=1),!0===l?a=o:(d&&d.enter(),a=l(o),d&&(d.exit(),f=!0)),a===s.promise?h(br("Promise-chain cycle")):(u=isThenable(a))?u.call(a,p,h):p(a)):h(o)}catch(t){d&&!f&&d.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&onUnhandled(t,e)}))}},dispatchEvent=function(t,n,r){var o,i;jr?((o=xr.createEvent("Event")).promise=n,o.reason=r,o.initEvent(t,!1,!0),e.dispatchEvent(o)):o={promise:n,reason:r},(i=e["on"+t])?i(o):"unhandledrejection"===t&&function(t,n){var r=e.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,n))}("Unhandled promise rejection",r)},onUnhandled=function(t,n){pr.call(e,(function(){var e,r=n.value;if(isUnhandled(n)&&(e=perform((function(){Or?Sr.emit("unhandledRejection",r,t):dispatchEvent("unhandledrejection",t,r)})),n.rejection=Or||isUnhandled(n)?2:1,e.error))throw e.value}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t,n){pr.call(e,(function(){Or?Sr.emit("rejectionHandled",t):dispatchEvent("rejectionhandled",t,n.value)}))},bind=function(t,e,n,r){return function(o){t(e,n,o,r)}},internalReject=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,notify$1(t,e,!0))},internalResolve=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw br("Promise can't be resolved itself");var o=isThenable(n);o?sr((function(){var r={done:!1};try{o.call(n,bind(internalResolve,t,r,e),bind(internalReject,t,r,e))}catch(n){internalReject(t,r,n,e)}})):(e.value=n,e.state=1,notify$1(t,e,!1))}catch(n){internalReject(t,{done:!1},n,e)}}};Ar&&(mr=function Promise(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,mr,dr),aFunction$1(t),cr.call(this);var e=vr(this);try{t(bind(internalResolve,this,e),bind(internalReject,this,e))}catch(t){internalReject(this,e,t)}},(cr=function Promise(t){gr(this,{type:dr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)U(t,r,e[r],n);return t}(mr.prototype,{then:function then(t,e){var n=yr(this),r=Er(speciesConstructor(this,mr));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Or?Sr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&¬ify$1(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),ar=function(){var t=new cr,e=vr(t);this.promise=t,this.resolve=bind(internalResolve,t,e),this.reject=bind(internalReject,t,e)},lr.f=Er=function(t){return t===mr||t===ur?new ar(t):_r(t)},"function"==typeof xn&&(fr=xn.prototype.then,U(xn.prototype,"then",(function then(t,e){var n=this;return new mr((function(t,e){fr.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof wr&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){return promiseResolve(mr,wr.apply(e,arguments))}}))),_export({global:!0,wrap:!0,forced:Ar},{Promise:mr}),setToStringTag(mr,dr,!1),function(t){var e=getBuiltIn(t),r=g.f;n&&e&&!e[Sn]&&r(e,Sn,{configurable:!0,get:function(){return this}})}(dr),ur=getBuiltIn(dr),_export({target:dr,stat:!0,forced:Ar},{reject:function reject(t){var e=Er(this);return e.reject.call(void 0,t),e.promise}}),_export({target:dr,stat:!0,forced:Ar},{resolve:function resolve(t){return promiseResolve(this,t)}}),_export({target:dr,stat:!0,forced:Pr},{all:function all(t){var e=this,n=Er(e),r=n.resolve,o=n.reject,i=perform((function(){var n=aFunction$1(e.resolve),i=[],c=0,a=1;On(t,(function(t){var u=c++,f=!1;i.push(void 0),a++,n.call(e,t).then((function(t){f||(f=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function race(t){var e=this,n=Er(e),r=n.reject,o=perform((function(){var o=aFunction$1(e.resolve);On(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var regexpFlags=function(){var t=anObject(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Tr=RegExp.prototype,kr=Tr.toString,Ir=fails((function(){return"/a/b"!=kr.call({source:"a",flags:"b"})})),Lr="toString"!=kr.name;(Ir||Lr)&&U(RegExp.prototype,"toString",(function toString(){var t=anObject(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in Tr)?regexpFlags.call(t):n)}),{unsafe:!0});var createMethod$2=function(t){return function(e,n){var r,o,i=String(requireObjectCoercible(e)),c=toInteger(n),a=i.length;return c<0||c>=a?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},Rr={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},Cr=Rr.charAt,Mr=z.set,Nr=z.getterFor("String Iterator");defineIterator(String,"String",(function(t){Mr(this,{type:"String Iterator",string:String(t),index:0})}),(function next(){var t,e=Nr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Cr(n,r),e.index+=t.length,{value:t,done:!1})}));var Gr={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};for(var Fr in Gr){var Dr=e[Fr],zr=Dr&&Dr.prototype;if(zr&&zr.forEach!==Ce)try{y(zr,"forEach",Ce)}catch(t){zr.forEach=Ce}}var Ur=wellKnownSymbol("iterator"),$r=wellKnownSymbol("toStringTag"),Wr=en.values;for(var Hr in Gr){var Vr=e[Hr],qr=Vr&&Vr.prototype;if(qr){if(qr[Ur]!==Wr)try{y(qr,Ur,Wr)}catch(t){qr[Ur]=Wr}if(qr[$r]||y(qr,$r,Hr),Gr[Hr])for(var Br in en)if(qr[Br]!==en[Br])try{y(qr,Br,en[Br])}catch(t){qr[Br]=en[Br]}}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function asyncGeneratorStep(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function _next(t){asyncGeneratorStep(i,r,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(i,r,o,_next,_throw,"throw",t)}_next(void 0)}))}}createCommonjsModule((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function define(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,n){return t[e]=n}}function wrap(t,e,n,r){var o=e&&e.prototype instanceof Generator?e:Generator,i=Object.create(o.prototype),c=new Context(r||[]);return i._invoke=function makeInvokeMethod(t,e,n){var r=u;return function invoke(o,i){if(r===s)throw new Error("Generator is already running");if(r===l){if("throw"===o)throw i;return doneResult()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=maybeInvokeDelegate(c,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=l,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=s;var h=tryCatch(t,e,n);if("normal"===h.type){if(r=n.done?l:f,h.arg===p)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(r=l,n.method="throw",n.arg=h.arg)}}}(t,n,c),i}function tryCatch(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var u="suspendedStart",f="suspendedYield",s="executing",l="completed",p={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var h={};h[i]=function(){return this};var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==n&&r.call(v,i)&&(h=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(h);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){var n;this._invoke=function enqueue(o,i){function callInvokeWithMethodAndArg(){return new e((function(n,c){!function invoke(n,o,i,c){var a=tryCatch(t[n],t,o);if("throw"!==a.type){var u=a.arg,f=u.value;return f&&"object"===_typeof(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){invoke("next",t,i,c)}),(function(t){invoke("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,c)}))}c(a.arg)}(o,i,n,c)}))}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,maybeInvokeDelegate(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=tryCatch(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function next(){for(;++o<t.length;)if(r.call(t,o))return next.value=t[o],next.done=!1,next;return next.value=e,next.done=!0,next};return c.next=c}}return{next:doneResult}}function doneResult(){return{value:e,done:!0}}return GeneratorFunction.prototype=g.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[c]=function(){return this},t.AsyncIterator=AsyncIterator,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var c=new AsyncIterator(wrap(e,n,r,o),i);return t.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},defineIteratorMethods(g),define(g,a,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function next(){for(;e.length;){var n=e.pop();if(n in t)return next.value=n,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(resetTryEntry),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(t){if(this.done)throw t;var n=this;function handle(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(c)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),p}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;resetTryEntry(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,n,r){return this.delegate={iterator:values(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));var Yr=wellKnownSymbol("isConcatSpreadable"),Kr=St>=51||!fails((function(){var t=[];return t[Yr]=!1,t.concat()[0]!==t})),Jr=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(t){if(!isObject(t))return!1;var e=t[Yr];return void 0!==e?!!e:ut(t)};_export({target:"Array",proto:!0,forced:!Kr||!Jr},{concat:function concat(t){var e,n,r,o,i,c=toObject(this),a=arraySpeciesCreate(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(isConcatSpreadable(i=-1===e?c:arguments[e])){if(u+(o=toLength(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&createProperty(a,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(a,u++,i)}return a.length=u,a}});var Xr=gt.find,Qr=!0,Zr=arrayMethodUsesToLength("find");"find"in[]&&Array(1).find((function(){Qr=!1})),_export({target:"Array",proto:!0,forced:Qr||!Zr},{find:function find(t){return Xr(this,t,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("find");var to=Y.includes,eo=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!eo},{includes:function includes(t){return to(this,t,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var no=[].join,ro=u!=Object,oo=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:ro||!oo},{join:function join(t){return no.call(toIndexedObject(this),void 0===t?",":t)}});var io=gt.some,co=arrayMethodIsStrict("some"),ao=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!co||!ao},{some:function some(t){return io(this,t,arguments.length>1?arguments[1]:void 0)}});var uo=i.f,createMethod$3=function(t){return function(e){for(var r,o=toIndexedObject(e),i=Lt(o),c=i.length,a=0,u=[];c>a;)r=i[a++],n&&!uo.call(o,r)||u.push(t?[r,o[r]]:o[r]);return u}},fo={entries:createMethod$3(!0),values:createMethod$3(!1)}.entries;function RE(t,e){return RegExp(t,e)}_export({target:"Object",stat:!0},{entries:function entries(t){return fo(t)}});var so,lo,po={UNSUPPORTED_Y:fails((function(){var t=RE("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:fails((function(){var t=RE("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},ho=RegExp.prototype.exec,vo=String.prototype.replace,go=ho,yo=(so=/a/,lo=/b*/g,ho.call(so,"a"),ho.call(lo,"a"),0!==so.lastIndex||0!==lo.lastIndex),mo=po.UNSUPPORTED_Y||po.BROKEN_CARET,bo=void 0!==/()??/.exec("")[1];(yo||bo||mo)&&(go=function exec(t){var e,n,r,o,i=this,c=mo&&i.sticky,a=regexpFlags.call(i),u=i.source,f=0,s=t;return c&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),s=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,f++),n=new RegExp("^(?:"+u+")",a)),bo&&(n=new RegExp("^"+u+"$(?!\\s)",a)),yo&&(e=i.lastIndex),r=ho.call(c?n:i,s),c?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:yo&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),bo&&r&&r.length>1&&vo.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var xo=go;_export({target:"RegExp",proto:!0,forced:/./.exec!==xo},{exec:xo});var So=wellKnownSymbol("match"),isRegexp=function(t){var e;return isObject(t)&&(void 0!==(e=t[So])?!!e:"RegExp"==classofRaw(t))},notARegexp=function(t){if(isRegexp(t))throw TypeError("The method doesn't accept regular expressions");return t},wo=wellKnownSymbol("match");_export({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[wo]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function includes(t){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(t),arguments.length>1?arguments[1]:void 0)}});var Eo=wellKnownSymbol("species"),_o=!fails((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Oo="$0"==="a".replace(/./,"$0"),jo=wellKnownSymbol("replace"),Ao=!!/./[jo]&&""===/./[jo]("a","$0"),Po=!fails((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),To=Rr.charAt,advanceStringIndex=function(t,e,n){return e+(n?To(t,e).length:1)},regexpExecAbstract=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==classofRaw(t))throw TypeError("RegExp#exec called on incompatible receiver");return xo.call(t,e)},ko=[].push,Io=Math.min,Lo=!fails((function(){return!RegExp(4294967295,"y")}));!function(t,e,n,r){var o=wellKnownSymbol(t),i=!fails((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!fails((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Eo]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||"replace"===t&&(!_o||!Oo||Ao)||"split"===t&&!Po){var a=/./[o],u=n(o,""[t],(function(t,e,n,r,o){return e.exec===xo?i&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Oo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ao}),f=u[0],s=u[1];U(String.prototype,t,f),U(RegExp.prototype,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&y(RegExp.prototype[o],"sham",!0)}("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(requireObjectCoercible(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!isRegexp(t))return e.call(r,t,o);for(var i,c,a,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,f+"g");(i=xo.call(l,r))&&!((c=l.lastIndex)>s&&(u.push(r.slice(s,i.index)),i.length>1&&i.index<r.length&&ko.apply(u,i.slice(1)),a=i[0].length,s=c,u.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===r.length?!a&&l.test("")||u.push(""):u.push(r.slice(s)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function split(e,n){var o=requireObjectCoercible(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var c=anObject(t),a=String(this),u=speciesConstructor(c,RegExp),f=c.unicode,s=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(Lo?"y":"g"),l=new u(Lo?c:"^(?:"+c.source+")",s),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===regexpExecAbstract(l,a)?[a]:[];for(var h=0,d=0,v=[];d<a.length;){l.lastIndex=Lo?d:0;var g,y=regexpExecAbstract(l,Lo?a:a.slice(d));if(null===y||(g=Io(toLength(l.lastIndex+(Lo?0:d)),a.length))===h)d=advanceStringIndex(a,d,f);else{if(v.push(a.slice(h,d)),v.length===p)return v;for(var m=1;m<=y.length-1;m++)if(v.push(y[m]),v.length===p)return v;d=h=g}}return v.push(a.slice(h)),v}]}),!Lo);var Ro="\t\n\v\f\r \u2028\u2029\ufeff",Co="["+Ro+"]",Mo=RegExp("^"+Co+Co+"*"),No=RegExp(Co+Co+"*$"),createMethod$4=function(t){return function(e){var n=String(requireObjectCoercible(e));return 1&t&&(n=n.replace(Mo,"")),2&t&&(n=n.replace(No,"")),n}},Go={start:createMethod$4(1),end:createMethod$4(2),trim:createMethod$4(3)},Fo=Go.trim;_export({target:"String",proto:!0,forced:function(t){return fails((function(){return!!Ro[t]()||"
"!="
"[t]()||Ro[t].name!==t}))}("trim")},{trim:function trim(){return Fo(this)}});var Do=/"/g;_export({target:"String",proto:!0,forced:function(t){return fails((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}("bold")},{bold:function bold(){return t="b",e="",n="",r=String(requireObjectCoercible(this)),o="<"+t,""!==e&&(o+=" "+e+'="'+String(n).replace(Do,""")+'"'),o+">"+r+"</"+t+">";var t,e,n,r,o}});
|
||
/**
|
||
* Localizing script for SVG-edit UI.
|
||
* @module locale
|
||
* @license MIT
|
||
*
|
||
* @copyright 2010 Narendra Sisodya
|
||
* @copyright 2010 Alexis Deveria
|
||
*
|
||
*/
|
||
jQuery;var zo=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(t,e){var n;return regeneratorRuntime.wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,import("./extensions/ext-".concat(t,"/locale/").concat(e,".js"));case 3:n=r.sent,r.next=12;break;case 6:return r.prev=6,r.t0=r.catch(0),console.error("Missing translation (".concat(e,") for extension ").concat(t," - using 'en'")),r.next=11,import("./extensions/ext-".concat(t,"/locale/en.js"));case 11:n=r.sent;case 12:return r.abrupt("return",n.default);case 13:case"end":return r.stop()}}),_callee2,null,[[0,6]])})));return function loadExtensionTranslation(e,n){return t.apply(this,arguments)}}(),Uo={name:"foreignobject",init:function init(t){var e=this;return _asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var n,r,o,i,c,a,u,f,s,l,p,h,d,v,g,y,m,b,x;return regeneratorRuntime.wrap((function _callee2$(S){for(;;)switch(S.prev=S.next){case 0:return m=function _setAttr(t,e){c.changeSelectedAttribute(t,e),c.call("changed",p)},y=function _showForeignEditor(){var t=p[0];if(t&&!v){v=!0,l(!0),t.removeAttribute("fill");var e=c.svgToString(t,0);r("#svg_source_textarea").val(e),r("#svg_source_editor").fadeIn(),f(),r("#svg_source_textarea").focus()}},g=function _setForeignString(t){var e=p[0];try{var n=o('<svg xmlns="'+i.SVG+'" xmlns:xlink="'+i.XLINK+'">'+t+"</svg>");c.sanitizeSvg(n.documentElement),e.replaceWith(a.importNode(n.documentElement.firstChild,!0)),c.call("changed",[e]),c.clearSelection()}catch(t){return console.log(t),!1}return!0},l=function _toggleSourceButtons(t){r("#tool_source_save, #tool_source_cancel").toggle(!t),r("#foreign_save, #foreign_cancel").toggle(t)},s=function _showPanel(t){var e=r("#fc_rules");e.length||(e=r('<style id="fc_rules"></style>').appendTo("head")),e.text(t?" #tool_topath { display: none !important; }":""),r("#foreignObject_panel").toggle(t)},n=e,r=t.$,o=t.text2xml,i=t.NS,c=n.canvas,a=t.svgroot.parentNode.ownerDocument,S.next=11,zo("foreignobject",n.curPrefs.lang);case 11:return u=S.sent,f=function properlySourceSizeTextArea(){var t=r("#svg_source_container").height()-80;r("#svg_source_textarea").css("height",t)},v=!1,b=[{id:"tool_foreign",icon:"foreignobject-tool.png",type:"mode",events:{click:function click(){c.setMode("foreign")}}},{id:"edit_foreign",icon:"foreignobject-edit.png",type:"context",panel:"foreignObject_panel",events:{click:function click(){y()}}}],x=[{type:"input",panel:"foreignObject_panel",id:"foreign_width",size:3,events:{change:function change(){m("width",this.value)}}},{type:"input",panel:"foreignObject_panel",id:"foreign_height",events:{change:function change(){m("height",this.value)}}},{type:"input",panel:"foreignObject_panel",id:"foreign_font_size",size:2,defval:16,events:{change:function change(){m("font-size",this.value)}}}],S.abrupt("return",{name:u.name,svgicons:"foreignobject-icons.xml",buttons:u.buttons.map((function(t,e){return Object.assign(b[e],t)})),context_tools:u.contextTools.map((function(t,e){return Object.assign(x[e],t)})),callback:function callback(){r("#foreignObject_panel").hide();var t=function endChanges(){r("#svg_source_editor").hide(),v=!1,r("#svg_source_textarea").blur(),l(!1)};setTimeout((function(){r("#tool_source_save").clone().hide().attr("id","foreign_save").unbind().appendTo("#tool_source_back").click(_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:if(v){e.next=2;break}return e.abrupt("return");case 2:if(g(r("#svg_source_textarea").val())){e.next=11;break}return e.next=5,r.confirm("Errors found. Revert to original?");case 5:if(e.sent){e.next=8;break}return e.abrupt("return");case 8:t(),e.next=12;break;case 11:t();case 12:case"end":return e.stop()}}),_callee)})))),r("#tool_source_cancel").clone().hide().attr("id","foreign_cancel").unbind().appendTo("#tool_source_back").click((function(){t()}))}),3e3)},mouseDown:function mouseDown(t){if("foreign"===c.getMode()){h=!0,d=c.addSVGElementFromJson({element:"foreignObject",attr:{x:t.start_x,y:t.start_y,id:c.getNextId(),"font-size":16,width:"48",height:"20",style:"pointer-events:inherit"}});var e=a.createElementNS(i.MATH,"math");e.setAttributeNS(i.XMLNS,"xmlns",i.MATH),e.setAttribute("display","inline");var n=a.createElementNS(i.MATH,"mi");n.setAttribute("mathvariant","normal"),n.textContent="Φ";var r=a.createElementNS(i.MATH,"mo");r.textContent="∪";var o=a.createElementNS(i.MATH,"mi");return o.textContent="ℳ",e.append(n,r,o),d.append(e),{started:!0}}},mouseUp:function mouseUp(t){if("foreign"===c.getMode()&&h){var e=r(d).attr(["width","height"]),n="0"!==e.width||"0"!==e.height;return c.addToSelection([d],!0),{keep:n,element:d}}},selectedChanged:function selectedChanged(t){for(var e=(p=t.elems).length;e--;){var n=p[e];n&&"foreignObject"===n.tagName&&t.selectedElement&&!t.multiselected?(r("#foreign_font_size").val(n.getAttribute("font-size")),r("#foreign_width").val(n.getAttribute("width")),r("#foreign_height").val(n.getAttribute("height")),s(!0)):s(!1)}},elementChanged:function elementChanged(t){}});case 17:case"end":return S.stop()}}),_callee2)})))()}};export default Uo;
|
||
//# sourceMappingURL=ext-foreignobject.js.map
|