UNPKG

watermark-js-plus

Version:
1 lines 70.8 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).WatermarkPlus={})}(this,(function(t){"use strict";var e,n,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={};function o(){if(n)return e;n=1;var t=function(t){return t&&t.Math===Math&&t};return e=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof r&&r)||t("object"==typeof e&&e)||function(){return this}()||Function("return this")()}var a,s,u,c,l,d,f,h,v={};function p(){return s?a:(s=1,a=function(t){try{return!!t()}catch(t){return!0}})}function y(){if(c)return u;c=1;var t=p();return u=!t((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function m(){if(d)return l;d=1;var t=p();return l=!t((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function g(){if(h)return f;h=1;var t=m(),e=Function.prototype.call;return f=t?e.bind(e):function(){return e.apply(e,arguments)},f}var w,b,x,S,O,P,E,T,k,C,A,j,R,_,L,D,I,B,H,N,W,U,F,M,G,q,z,V,X,Y,$,K,J,Z,Q,tt,et,nt,rt,it,ot,at={};function st(){return x?b:(x=1,b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function ut(){if(O)return S;O=1;var t=m(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return S=t?r:function(t){return function(){return n.apply(t,arguments)}},S}function ct(){if(E)return P;E=1;var t=ut(),e=t({}.toString),n=t("".slice);return P=function(t){return n(e(t),8,-1)}}function lt(){return A?C:(A=1,C=function(t){return null==t})}function dt(){if(R)return j;R=1;var t=lt(),e=TypeError;return j=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function ft(){if(L)return _;L=1;var t=function(){if(k)return T;k=1;var t=ut(),e=p(),n=ct(),r=Object,i=t("".split);return T=e((function(){return!r("z").propertyIsEnumerable(0)}))?function(t){return"String"===n(t)?i(t,""):r(t)}:r}(),e=dt();return _=function(n){return t(e(n))}}function ht(){if(I)return D;I=1;var t="object"==typeof document&&document.all;return D=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function vt(){if(H)return B;H=1;var t=ht();return B=function(e){return"object"==typeof e?null!==e:t(e)}}function pt(){if(W)return N;W=1;var t=o(),e=ht();return N=function(n,r){return arguments.length<2?(i=t[n],e(i)?i:void 0):t[n]&&t[n][r];var i},N}function yt(){if(F)return U;F=1;var t=ut();return U=t({}.isPrototypeOf)}function mt(){if(G)return M;G=1;var t=o().navigator,e=t&&t.userAgent;return M=e?String(e):""}function gt(){if(z)return q;z=1;var t,e,n=o(),r=mt(),i=n.process,a=n.Deno,s=i&&i.versions||a&&a.version,u=s&&s.v8;return u&&(e=(t=u.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),q=e}function wt(){if(X)return V;X=1;var t=gt(),e=p(),n=o().String;return V=!!Object.getOwnPropertySymbols&&!e((function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}))}function bt(){if($)return Y;$=1;var t=wt();return Y=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function xt(){if(J)return K;J=1;var t=pt(),e=ht(),n=yt(),r=bt(),i=Object;return K=r?function(t){return"symbol"==typeof t}:function(r){var o=t("Symbol");return e(o)&&n(o.prototype,i(r))}}function St(){if(Q)return Z;Q=1;var t=String;return Z=function(e){try{return t(e)}catch(t){return"Object"}}}function Ot(){if(et)return tt;et=1;var t=ht(),e=St(),n=TypeError;return tt=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function Pt(){if(rt)return nt;rt=1;var t=Ot(),e=lt();return nt=function(n,r){var i=n[r];return e(i)?void 0:t(i)}}function Et(){if(ot)return it;ot=1;var t=g(),e=ht(),n=vt(),r=TypeError;return it=function(i,o){var a,s;if("string"===o&&e(a=i.toString)&&!n(s=t(a,i)))return s;if(e(a=i.valueOf)&&!n(s=t(a,i)))return s;if("string"!==o&&e(a=i.toString)&&!n(s=t(a,i)))return s;throw new r("Can't convert object to primitive value")}}var Tt,kt,Ct,At,jt,Rt,_t,Lt,Dt,It,Bt,Ht,Nt,Wt,Ut,Ft,Mt,Gt,qt,zt,Vt,Xt,Yt,$t,Kt={exports:{}};function Jt(){return kt?Tt:(kt=1,Tt=!1)}function Zt(){if(At)return Ct;At=1;var t=o(),e=Object.defineProperty;return Ct=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function Qt(){if(jt)return Kt.exports;jt=1;var t=Jt(),e=o(),n=Zt(),r="__core-js_shared__",i=Kt.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.40.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Kt.exports}function te(){if(_t)return Rt;_t=1;var t=Qt();return Rt=function(e,n){return t[e]||(t[e]=n||{})}}function ee(){if(Dt)return Lt;Dt=1;var t=dt(),e=Object;return Lt=function(n){return e(t(n))}}function ne(){if(Bt)return It;Bt=1;var t=ut(),e=ee(),n=t({}.hasOwnProperty);return It=Object.hasOwn||function(t,r){return n(e(t),r)}}function re(){if(Nt)return Ht;Nt=1;var t=ut(),e=0,n=Math.random(),r=t(1..toString);return Ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function ie(){if(Ut)return Wt;Ut=1;var t=o(),e=te(),n=ne(),r=re(),i=wt(),a=bt(),s=t.Symbol,u=e("wks"),c=a?s.for||s:s&&s.withoutSetter||r;return Wt=function(t){return n(u,t)||(u[t]=i&&n(s,t)?s[t]:c("Symbol."+t)),u[t]}}function oe(){if(Mt)return Ft;Mt=1;var t=g(),e=vt(),n=xt(),r=Pt(),i=Et(),o=ie(),a=TypeError,s=o("toPrimitive");return Ft=function(o,u){if(!e(o)||n(o))return o;var c,l=r(o,s);if(l){if(void 0===u&&(u="default"),c=t(l,o,u),!e(c)||n(c))return c;throw new a("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(o,u)}}function ae(){if(qt)return Gt;qt=1;var t=oe(),e=xt();return Gt=function(n){var r=t(n,"string");return e(r)?r:r+""}}function se(){if(Vt)return zt;Vt=1;var t=o(),e=vt(),n=t.document,r=e(n)&&e(n.createElement);return zt=function(t){return r?n.createElement(t):{}}}function ue(){if(Yt)return Xt;Yt=1;var t=y(),e=p(),n=se();return Xt=!t&&!e((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function ce(){if($t)return v;$t=1;var t=y(),e=g(),n=function(){if(w)return at;w=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return at.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,at}(),r=st(),i=ft(),o=ae(),a=ne(),s=ue(),u=Object.getOwnPropertyDescriptor;return v.f=t?u:function(t,c){if(t=i(t),c=o(c),s)try{return u(t,c)}catch(t){}if(a(t,c))return r(!e(n.f,t,c),t[c])},v}var le,de,fe,he,ve,pe,ye,me={};function ge(){if(de)return le;de=1;var t=y(),e=p();return le=t&&e((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function we(){if(he)return fe;he=1;var t=vt(),e=String,n=TypeError;return fe=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function be(){if(ve)return me;ve=1;var t=y(),e=ue(),n=ge(),r=we(),i=ae(),o=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return me.f=t?n?function(t,e,n){if(r(t),e=i(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var o=s(t,e);o&&o[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:u in n?n[u]:o[u],writable:!1})}return a(t,e,n)}:a:function(t,n,s){if(r(t),n=i(n),r(s),e)try{return a(t,n,s)}catch(t){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(t[n]=s.value),t},me}function xe(){if(ye)return pe;ye=1;var t=y(),e=be(),n=st();return pe=t?function(t,r,i){return e.f(t,r,n(1,i))}:function(t,e,n){return t[e]=n,t}}var Se,Oe,Pe,Ee,Te,ke,Ce,Ae,je,Re,_e,Le,De,Ie,Be,He={exports:{}};function Ne(){if(Ee)return Pe;Ee=1;var t=ut(),e=ht(),n=Qt(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),Pe=n.inspectSource}function We(){if(Ae)return Ce;Ae=1;var t=te(),e=re(),n=t("keys");return Ce=function(t){return n[t]||(n[t]=e(t))}}function Ue(){return Re?je:(Re=1,je={})}function Fe(){if(Le)return _e;Le=1;var t,e,n,r=function(){if(ke)return Te;ke=1;var t=o(),e=ht(),n=t.WeakMap;return Te=e(n)&&/native code/.test(String(n))}(),i=o(),a=vt(),s=xe(),u=ne(),c=Qt(),l=We(),d=Ue(),f="Object already initialized",h=i.TypeError,v=i.WeakMap;if(r||c.state){var p=c.state||(c.state=new v);p.get=p.get,p.has=p.has,p.set=p.set,t=function(t,e){if(p.has(t))throw new h(f);return e.facade=t,p.set(t,e),e},e=function(t){return p.get(t)||{}},n=function(t){return p.has(t)}}else{var y=l("state");d[y]=!0,t=function(t,e){if(u(t,y))throw new h(f);return e.facade=t,s(t,y,e),e},e=function(t){return u(t,y)?t[y]:{}},n=function(t){return u(t,y)}}return _e={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!a(n)||(r=e(n)).type!==t)throw new h("Incompatible receiver, "+t+" required");return r}}}}function Me(){if(De)return He.exports;De=1;var t=ut(),e=p(),n=ht(),r=ne(),i=y(),o=function(){if(Oe)return Se;Oe=1;var t=y(),e=ne(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,i=e(n,"name"),o=i&&"something"===function(){}.name,a=i&&(!t||t&&r(n,"name").configurable);return Se={EXISTS:i,PROPER:o,CONFIGURABLE:a}}().CONFIGURABLE,a=Ne(),s=Fe(),u=s.enforce,c=s.get,l=String,d=Object.defineProperty,f=t("".slice),h=t("".replace),v=t([].join),m=i&&!e((function(){return 8!==d((function(){}),"length",{value:8}).length})),g=String(String).split("String"),w=He.exports=function(t,e,n){"Symbol("===f(l(e),0,7)&&(e="["+h(l(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||o&&t.name!==e)&&(i?d(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&r(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?i&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var a=u(t);return r(a,"source")||(a.source=v(g,"string"==typeof e?e:"")),t};return Function.prototype.toString=w((function(){return n(this)&&c(this).source||a(this)}),"toString"),He.exports}function Ge(){if(Be)return Ie;Be=1;var t=ht(),e=be(),n=Me(),r=Zt();return Ie=function(i,o,a,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:o;if(t(a)&&n(a,c,s),s.global)u?i[o]=a:r(o,a);else{try{s.unsafe?i[o]&&(u=!0):delete i[o]}catch(t){}u?i[o]=a:e.f(i,o,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i}}var qe,ze,Ve,Xe,Ye,$e,Ke,Je,Ze,Qe,tn,en,nn,rn,on,an,sn,un={};function cn(){if(Xe)return Ve;Xe=1;var t=function(){if(ze)return qe;ze=1;var t=Math.ceil,e=Math.floor;return qe=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}();return Ve=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function ln(){if($e)return Ye;$e=1;var t=cn(),e=Math.max,n=Math.min;return Ye=function(r,i){var o=t(r);return o<0?e(o+i,0):n(o,i)}}function dn(){if(Je)return Ke;Je=1;var t=cn(),e=Math.min;return Ke=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function fn(){if(Qe)return Ze;Qe=1;var t=dn();return Ze=function(e){return t(e.length)}}function hn(){if(en)return tn;en=1;var t=ft(),e=ln(),n=fn(),r=function(r){return function(i,o,a){var s=t(i),u=n(s);if(0===u)return!r&&-1;var c,l=e(a,u);if(r&&o!=o){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((r||l in s)&&s[l]===o)return r||l||0;return!r&&-1}};return tn={includes:r(!0),indexOf:r(!1)}}function vn(){if(rn)return nn;rn=1;var t=ut(),e=ne(),n=ft(),r=hn().indexOf,i=Ue(),o=t([].push);return nn=function(t,a){var s,u=n(t),c=0,l=[];for(s in u)!e(i,s)&&e(u,s)&&o(l,s);for(;a.length>c;)e(u,s=a[c++])&&(~r(l,s)||o(l,s));return l}}function pn(){return an?on:(an=1,on=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var yn,mn,gn,wn,bn,xn,Sn,On,Pn,En,Tn,kn,Cn,An,jn,Rn,_n,Ln,Dn,In,Bn,Hn,Nn,Wn,Un,Fn,Mn,Gn,qn,zn,Vn,Xn,Yn,$n,Kn,Jn,Zn,Qn,tr={};function er(){if(gn)return mn;gn=1;var t=pt(),e=ut(),n=function(){if(sn)return un;sn=1;var t=vn(),e=pn().concat("length","prototype");return un.f=Object.getOwnPropertyNames||function(n){return t(n,e)},un}(),r=(yn||(yn=1,tr.f=Object.getOwnPropertySymbols),tr),i=we(),o=e([].concat);return mn=t("Reflect","ownKeys")||function(t){var e=n.f(i(t)),a=r.f;return a?o(e,a(t)):e}}function nr(){if(bn)return wn;bn=1;var t=ne(),e=er(),n=ce(),r=be();return wn=function(i,o,a){for(var s=e(o),u=r.f,c=n.f,l=0;l<s.length;l++){var d=s[l];t(i,d)||a&&t(a,d)||u(i,d,c(o,d))}}}function rr(){if(Sn)return xn;Sn=1;var t=p(),e=ht(),n=/#|\.prototype\./,r=function(n,r){var u=o[i(n)];return u===s||u!==a&&(e(r)?t(r):!!r)},i=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return xn=r}function ir(){if(Pn)return On;Pn=1;var t=o(),e=ce().f,n=xe(),r=Ge(),i=Zt(),a=nr(),s=rr();return On=function(o,u){var c,l,d,f,h,v=o.target,p=o.global,y=o.stat;if(c=p?t:y?t[v]||i(v,{}):t[v]&&t[v].prototype)for(l in u){if(f=u[l],d=o.dontCallGetSet?(h=e(c,l))&&h.value:c[l],!s(p?l:v+(y?".":"#")+l,o.forced)&&void 0!==d){if(typeof f==typeof d)continue;a(f,d)}(o.sham||d&&d.sham)&&n(f,"sham",!0),r(c,l,f,o)}}}function or(){if(Cn)return kn;Cn=1;var t=function(){if(Tn)return En;Tn=1;var t=ct(),e=ut();return En=function(n){if("Function"===t(n))return e(n)}}(),e=Ot(),n=m(),r=t(t.bind);return kn=function(t,i){return e(t),void 0===i?t:n?r(t,i):function(){return t.apply(i,arguments)}},kn}function ar(){if(jn)return An;jn=1;var t=g(),e=we(),n=Pt();return An=function(r,i,o){var a,s;e(r);try{if(!(a=n(r,"return"))){if("throw"===i)throw o;return o}a=t(a,r)}catch(t){s=!0,a=t}if("throw"===i)throw o;if(s)throw a;return e(a),o}}function sr(){if(_n)return Rn;_n=1;var t=we(),e=ar();return Rn=function(n,r,i,o){try{return o?r(t(i)[0],i[1]):r(i)}catch(t){e(n,"throw",t)}}}function ur(){return Dn?Ln:(Dn=1,Ln={})}function cr(){if(Bn)return In;Bn=1;var t=ie(),e=ur(),n=t("iterator"),r=Array.prototype;return In=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}function lr(){if(Un)return Wn;Un=1;var t=function(){if(Nn)return Hn;Nn=1;var t={};return t[ie()("toStringTag")]="z",Hn="[object z]"===String(t)}(),e=ht(),n=ct(),r=ie()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Wn=t?n:function(t){var a,s,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(s=function(t,e){try{return t[e]}catch(t){}}(a=i(t),r))?s:o?n(a):"Object"===(u=n(a))&&e(a.callee)?"Arguments":u}}function dr(){if(Mn)return Fn;Mn=1;var t=ut(),e=p(),n=ht(),r=lr(),i=pt(),o=Ne(),a=function(){},s=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=t(u.exec),l=!u.test(a),d=function(t){if(!n(t))return!1;try{return s(a,[],t),!0}catch(t){return!1}},f=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(u,o(t))}catch(t){return!0}};return f.sham=!0,Fn=!s||e((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?f:d}function fr(){if(qn)return Gn;qn=1;var t=y(),e=be(),n=st();return Gn=function(r,i,o){t?e.f(r,i,n(0,o)):r[i]=o}}function hr(){if(Vn)return zn;Vn=1;var t=lr(),e=Pt(),n=lt(),r=ur(),i=ie()("iterator");return zn=function(o){if(!n(o))return e(o,i)||e(o,"@@iterator")||r[t(o)]}}function vr(){if(Yn)return Xn;Yn=1;var t=g(),e=Ot(),n=we(),r=St(),i=hr(),o=TypeError;return Xn=function(a,s){var u=arguments.length<2?i(a):s;if(e(u))return n(t(u,a));throw new o(r(a)+" is not iterable")},Xn}function pr(){if(Zn)return Jn;Zn=1;var t=ie()("iterator"),e=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){e=!0}};r[t]=function(){return this},Array.from(r,(function(){throw 2}))}catch(t){}return Jn=function(n,r){try{if(!r&&!e)return!1}catch(t){return!1}var i=!1;try{var o={};o[t]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(t){}return i}}!function(){if(Qn)return i;Qn=1;var t=ir(),e=function(){if(Kn)return $n;Kn=1;var t=or(),e=g(),n=ee(),r=sr(),i=cr(),o=dr(),a=fn(),s=fr(),u=vr(),c=hr(),l=Array;return $n=function(d){var f=n(d),h=o(this),v=arguments.length,p=v>1?arguments[1]:void 0,y=void 0!==p;y&&(p=t(p,v>2?arguments[2]:void 0));var m,g,w,b,x,S,O=c(f),P=0;if(!O||this===l&&i(O))for(m=a(f),g=h?new this(m):l(m);m>P;P++)S=y?p(f[P],P):f[P],s(g,P,S);else for(g=h?new this:[],x=(b=u(f,O)).next;!(w=e(x,b)).done;P++)S=y?r(b,p,[w.value,P],!0):w.value,s(g,P,S);return g.length=P,g},$n}();t({target:"Array",stat:!0,forced:!pr()((function(t){Array.from(t)}))},{from:e})}();var yr,mr,gr,wr,br,xr,Sr,Or,Pr,Er,Tr,kr,Cr,Ar,jr,Rr,_r,Lr,Dr,Ir,Br,Hr,Nr,Wr,Ur,Fr,Mr,Gr,qr,zr,Vr,Xr,Yr,$r,Kr,Jr,Zr,Qr,ti,ei,ni,ri,ii,oi,ai,si,ui,ci,li,di,fi,hi,vi,pi,yi={};function mi(){if(mr)return yr;mr=1;var t=o(),e=mt(),n=ct(),r=function(t){return e.slice(0,t.length)===t};return yr=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function gi(){if(wr)return gr;wr=1;var t=mi();return gr="NODE"===t}function wi(){if(Or)return Sr;Or=1;var t=vt();return Sr=function(e){return t(e)||null===e}}function bi(){if(Er)return Pr;Er=1;var t=wi(),e=String,n=TypeError;return Pr=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function xi(){if(kr)return Tr;kr=1;var t=function(){if(xr)return br;xr=1;var t=ut(),e=Ot();return br=function(n,r,i){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(t){}}}(),e=vt(),n=dt(),r=bi();return Tr=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,a={};try{(i=t(Object.prototype,"__proto__","set"))(a,[]),o=a instanceof Array}catch(t){}return function(t,a){return n(t),r(a),e(t)?(o?i(t,a):t.__proto__=a,t):t}}():void 0)}function Si(){if(Ar)return Cr;Ar=1;var t=be().f,e=ne(),n=ie()("toStringTag");return Cr=function(r,i,o){r&&!o&&(r=r.prototype),r&&!e(r,n)&&t(r,n,{configurable:!0,value:i})}}function Oi(){if(Rr)return jr;Rr=1;var t=Me(),e=be();return jr=function(n,r,i){return i.get&&t(i.get,r,{getter:!0}),i.set&&t(i.set,r,{setter:!0}),e.f(n,r,i)}}function Pi(){if(Lr)return _r;Lr=1;var t=pt(),e=Oi(),n=ie(),r=y(),i=n("species");return _r=function(n){var o=t(n);r&&o&&!o[i]&&e(o,i,{configurable:!0,get:function(){return this}})}}function Ei(){if(Ir)return Dr;Ir=1;var t=yt(),e=TypeError;return Dr=function(n,r){if(t(r,n))return n;throw new e("Incorrect invocation")}}function Ti(){if(Hr)return Br;Hr=1;var t=dr(),e=St(),n=TypeError;return Br=function(r){if(t(r))return r;throw new n(e(r)+" is not a constructor")}}function ki(){if(Wr)return Nr;Wr=1;var t=we(),e=Ti(),n=lt(),r=ie()("species");return Nr=function(i,o){var a,s=t(i).constructor;return void 0===s||n(a=t(s)[r])?o:e(a)}}function Ci(){if(Fr)return Ur;Fr=1;var t=m(),e=Function.prototype,n=e.apply,r=e.call;return Ur="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),Ur}function Ai(){if(Gr)return Mr;Gr=1;var t=pt();return Mr=t("document","documentElement")}function ji(){if(zr)return qr;zr=1;var t=ut();return qr=t([].slice)}function Ri(){if(Xr)return Vr;Xr=1;var t=TypeError;return Vr=function(e,n){if(e<n)throw new t("Not enough arguments");return e}}function _i(){if($r)return Yr;$r=1;var t=mt();return Yr=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function Li(){if(Jr)return Kr;Jr=1;var t,e,n,r,i=o(),a=Ci(),s=or(),u=ht(),c=ne(),l=p(),d=Ai(),f=ji(),h=se(),v=Ri(),y=_i(),m=gi(),g=i.setImmediate,w=i.clearImmediate,b=i.process,x=i.Dispatch,S=i.Function,O=i.MessageChannel,P=i.String,E=0,T={},k="onreadystatechange";l((function(){t=i.location}));var C=function(t){if(c(T,t)){var e=T[t];delete T[t],e()}},A=function(t){return function(){C(t)}},j=function(t){C(t.data)},R=function(e){i.postMessage(P(e),t.protocol+"//"+t.host)};return g&&w||(g=function(t){v(arguments.length,1);var n=u(t)?t:S(t),r=f(arguments,1);return T[++E]=function(){a(n,void 0,r)},e(E),E},w=function(t){delete T[t]},m?e=function(t){b.nextTick(A(t))}:x&&x.now?e=function(t){x.now(A(t))}:O&&!y?(r=(n=new O).port2,n.port1.onmessage=j,e=s(r.postMessage,r)):i.addEventListener&&u(i.postMessage)&&!i.importScripts&&t&&"file:"!==t.protocol&&!l(R)?(e=R,i.addEventListener("message",j,!1)):e=k in h("script")?function(t){d.appendChild(h("script"))[k]=function(){d.removeChild(this),C(t)}}:function(t){setTimeout(A(t),0)}),Kr={set:g,clear:w}}function Di(){if(Qr)return Zr;Qr=1;var t=o(),e=y(),n=Object.getOwnPropertyDescriptor;return Zr=function(r){if(!e)return t[r];var i=n(t,r);return i&&i.value}}function Ii(){if(ei)return ti;ei=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},ti=t}function Bi(){if(si)return ai;si=1;var t,e,n,r,i,a=o(),s=Di(),u=or(),c=Li().set,l=Ii(),d=_i(),f=function(){if(ri)return ni;ri=1;var t=mt();return ni=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),h=function(){if(oi)return ii;oi=1;var t=mt();return ii=/web0s(?!.*chrome)/i.test(t)}(),v=gi(),p=a.MutationObserver||a.WebKitMutationObserver,y=a.document,m=a.process,g=a.Promise,w=s("queueMicrotask");if(!w){var b=new l,x=function(){var e,n;for(v&&(e=m.domain)&&e.exit();n=b.get();)try{n()}catch(e){throw b.head&&t(),e}e&&e.enter()};d||v||h||!p||!y?!f&&g&&g.resolve?((r=g.resolve(void 0)).constructor=g,i=u(r.then,r),t=function(){i(x)}):v?t=function(){m.nextTick(x)}:(c=u(c,a),t=function(){c(x)}):(e=!0,n=y.createTextNode(""),new p(x).observe(n,{characterData:!0}),t=function(){n.data=e=!e}),w=function(e){b.head||t(),b.add(e)}}return ai=w}function Hi(){return ci?ui:(ci=1,ui=function(t,e){})}function Ni(){return di?li:(di=1,li=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function Wi(){if(hi)return fi;hi=1;var t=o();return fi=t.Promise}function Ui(){if(pi)return vi;pi=1;var t=o(),e=Wi(),n=ht(),r=rr(),i=Ne(),a=ie(),s=mi(),u=Jt(),c=gt(),l=e&&e.prototype,d=a("species"),f=!1,h=n(t.PromiseRejectionEvent),v=r("Promise",(function(){var t=i(e),n=t!==String(e);if(!n&&66===c)return!0;if(u&&(!l.catch||!l.finally))return!0;if(!c||c<51||!/native code/.test(t)){var r=new e((function(t){t(1)})),o=function(t){t((function(){}),(function(){}))};if((r.constructor={})[d]=o,!(f=r.then((function(){}))instanceof o))return!0}return!(n||"BROWSER"!==s&&"DENO"!==s||h)}));return vi={CONSTRUCTOR:v,REJECTION_EVENT:h,SUBCLASSING:f}}var Fi,Mi,Gi={};function qi(){if(Fi)return Gi;Fi=1;var t=Ot(),e=TypeError,n=function(n){var r,i;this.promise=new n((function(t,n){if(void 0!==r||void 0!==i)throw new e("Bad Promise constructor");r=t,i=n})),this.resolve=t(r),this.reject=t(i)};return Gi.f=function(t){return new n(t)},Gi}var zi,Vi,Xi,Yi,$i,Ki={};function Ji(){if(Vi)return zi;Vi=1;var t=or(),e=g(),n=we(),r=St(),i=cr(),o=fn(),a=yt(),s=vr(),u=hr(),c=ar(),l=TypeError,d=function(t,e){this.stopped=t,this.result=e},f=d.prototype;return zi=function(h,v,p){var y,m,g,w,b,x,S,O=p&&p.that,P=!(!p||!p.AS_ENTRIES),E=!(!p||!p.IS_RECORD),T=!(!p||!p.IS_ITERATOR),k=!(!p||!p.INTERRUPTED),C=t(v,O),A=function(t){return y&&c(y,"normal",t),new d(!0,t)},j=function(t){return P?(n(t),k?C(t[0],t[1],A):C(t[0],t[1])):k?C(t,A):C(t)};if(E)y=h.iterator;else if(T)y=h;else{if(!(m=u(h)))throw new l(r(h)+" is not iterable");if(i(m)){for(g=0,w=o(h);w>g;g++)if((b=j(h[g]))&&a(f,b))return b;return new d(!1)}y=s(h,m)}for(x=E?h.next:y.next;!(S=e(x,y)).done;){try{b=j(S.value)}catch(t){c(y,"throw",t)}if("object"==typeof b&&b&&a(f,b))return b}return new d(!1)}}function Zi(){if(Yi)return Xi;Yi=1;var t=Wi(),e=pr(),n=Ui().CONSTRUCTOR;return Xi=n||!e((function(e){t.all(e).then(void 0,(function(){}))}))}var Qi,to={};var eo,no={};var ro,io={};var oo,ao,so,uo,co={};function lo(){if(ao)return oo;ao=1;var t=we(),e=vt(),n=qi();return oo=function(r,i){if(t(r),e(i)&&i.constructor===r)return i;var o=n.f(r);return(0,o.resolve)(i),o.promise}}uo||(uo=1,function(){if(Mi)return yi;Mi=1;var t,e,n,r=ir(),i=Jt(),a=gi(),s=o(),u=g(),c=Ge(),l=xi(),d=Si(),f=Pi(),h=Ot(),v=ht(),p=vt(),y=Ei(),m=ki(),w=Li().set,b=Bi(),x=Hi(),S=Ni(),O=Ii(),P=Fe(),E=Wi(),T=Ui(),k=qi(),C="Promise",A=T.CONSTRUCTOR,j=T.REJECTION_EVENT,R=T.SUBCLASSING,_=P.getterFor(C),L=P.set,D=E&&E.prototype,I=E,B=D,H=s.TypeError,N=s.document,W=s.process,U=k.f,F=U,M=!!(N&&N.createEvent&&s.dispatchEvent),G="unhandledrejection",q=function(t){var e;return!(!p(t)||!v(e=t.then))&&e},z=function(t,e){var n,r,i,o=e.value,a=1===e.state,s=a?t.ok:t.fail,c=t.resolve,l=t.reject,d=t.domain;try{s?(a||(2===e.rejection&&K(e),e.rejection=1),!0===s?n=o:(d&&d.enter(),n=s(o),d&&(d.exit(),i=!0)),n===t.promise?l(new H("Promise-chain cycle")):(r=q(n))?u(r,n,c,l):c(n)):l(o)}catch(t){d&&!i&&d.exit(),l(t)}},V=function(t,e){t.notified||(t.notified=!0,b((function(){for(var n,r=t.reactions;n=r.get();)z(n,t);t.notified=!1,e&&!t.rejection&&Y(t)})))},X=function(t,e,n){var r,i;M?((r=N.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!j&&(i=s["on"+t])?i(r):t===G&&x("Unhandled promise rejection",n)},Y=function(t){u(w,s,(function(){var e,n=t.facade,r=t.value;if($(t)&&(e=S((function(){a?W.emit("unhandledRejection",r,n):X(G,n,r)})),t.rejection=a||$(t)?2:1,e.error))throw e.value}))},$=function(t){return 1!==t.rejection&&!t.parent},K=function(t){u(w,s,(function(){var e=t.facade;a?W.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)}))},J=function(t,e,n){return function(r){t(e,r,n)}},Z=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,V(t,!0))},Q=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new H("Promise can't be resolved itself");var r=q(e);r?b((function(){var n={done:!1};try{u(r,e,J(Q,n,t),J(Z,n,t))}catch(e){Z(n,e,t)}})):(t.value=e,t.state=1,V(t,!1))}catch(e){Z({done:!1},e,t)}}};if(A&&(B=(I=function(e){y(this,B),h(e),u(t,this);var n=_(this);try{e(J(Q,n),J(Z,n))}catch(t){Z(n,t)}}).prototype,(t=function(t){L(this,{type:C,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=c(B,"then",(function(t,e){var n=_(this),r=U(m(this,I));return n.parent=!0,r.ok=!v(t)||t,r.fail=v(e)&&e,r.domain=a?W.domain:void 0,0===n.state?n.reactions.add(r):b((function(){z(r,n)})),r.promise})),e=function(){var e=new t,n=_(e);this.promise=e,this.resolve=J(Q,n),this.reject=J(Z,n)},k.f=U=function(t){return t===I||void 0===t?new e(t):F(t)},!i&&v(E)&&D!==Object.prototype)){n=D.then,R||c(D,"then",(function(t,e){var r=this;return new I((function(t,e){u(n,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete D.constructor}catch(t){}l&&l(D,B)}r({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:I}),d(I,C,!1,!0),f(C)}(),function(){if($i)return Ki;$i=1;var t=ir(),e=g(),n=Ot(),r=qi(),i=Ni(),o=Ji();t({target:"Promise",stat:!0,forced:Zi()},{all:function(t){var a=this,s=r.f(a),u=s.resolve,c=s.reject,l=i((function(){var r=n(a.resolve),i=[],s=0,l=1;o(t,(function(t){var n=s++,o=!1;l++,e(r,a,t).then((function(t){o||(o=!0,i[n]=t,--l||u(i))}),c)})),--l||u(i)}));return l.error&&c(l.value),s.promise}})}(),function(){if(Qi)return to;Qi=1;var t=ir(),e=Jt(),n=Ui().CONSTRUCTOR,r=Wi(),i=pt(),o=ht(),a=Ge(),s=r&&r.prototype;if(t({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&o(r)){var u=i("Promise").prototype.catch;s.catch!==u&&a(s,"catch",u,{unsafe:!0})}}(),function(){if(eo)return no;eo=1;var t=ir(),e=g(),n=Ot(),r=qi(),i=Ni(),o=Ji();t({target:"Promise",stat:!0,forced:Zi()},{race:function(t){var a=this,s=r.f(a),u=s.reject,c=i((function(){var r=n(a.resolve);o(t,(function(t){e(r,a,t).then(s.resolve,u)}))}));return c.error&&u(c.value),s.promise}})}(),function(){if(ro)return io;ro=1;var t=ir(),e=qi();t({target:"Promise",stat:!0,forced:Ui().CONSTRUCTOR},{reject:function(t){var n=e.f(this);return(0,n.reject)(t),n.promise}})}(),function(){if(so)return co;so=1;var t=ir(),e=pt(),n=Jt(),r=Wi(),i=Ui().CONSTRUCTOR,o=lo(),a=e("Promise"),s=n&&!i;t({target:"Promise",stat:!0,forced:n||i},{resolve:function(t){return o(s&&this===a?r:this,t)}})}());var fo,ho,vo,po,yo,mo,go,wo,bo={},xo={};function So(){if(ho)return fo;ho=1;var t=vn(),e=pn();return fo=Object.keys||function(n){return t(n,e)}}function Oo(){if(yo)return po;yo=1;var t,e=we(),n=function(){if(vo)return xo;vo=1;var t=y(),e=ge(),n=be(),r=we(),i=ft(),o=So();return xo.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var a,s=i(e),u=o(e),c=u.length,l=0;c>l;)n.f(t,a=u[l++],s[a]);return t},xo}(),r=pn(),i=Ue(),o=Ai(),a=se(),s=We(),u="prototype",c="script",l=s("IE_PROTO"),d=function(){},f=function(t){return"<"+c+">"+t+"</"+c+">"},h=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,i;v="undefined"!=typeof document?document.domain&&t?h(t):(n=a("iframe"),i="java"+c+":",n.style.display="none",o.appendChild(n),n.src=String(i),(e=n.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):h(t);for(var s=r.length;s--;)delete v[u][r[s]];return v()};return i[l]=!0,po=Object.create||function(t,r){var i;return null!==t?(d[u]=e(t),i=new d,d[u]=null,i[l]=t):i=v(),void 0===r?i:n.f(i,r)}}function Po(){if(go)return mo;go=1;var t=ie(),e=Oo(),n=be().f,r=t("unscopables"),i=Array.prototype;return void 0===i[r]&&n(i,r,{configurable:!0,value:e(null)}),mo=function(t){i[r][t]=!0}}!function(){if(wo)return bo;wo=1;var t=ir(),e=hn().includes,n=p(),r=Po();t({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();var Eo,To,ko,Co={};!function(){if(ko)return Co;ko=1;var t=ir(),e=function(){if(To)return Eo;To=1;var t=ee(),e=ln(),n=fn();return Eo=function(r){for(var i=t(this),o=n(i),a=arguments.length,s=e(a>1?arguments[1]:void 0,o),u=a>2?arguments[2]:void 0,c=void 0===u?o:e(u,o);c>s;)i[s++]=r;return i},Eo}(),n=Po();t({target:"Array",proto:!0},{fill:e}),n("fill")}();var Ao="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},jo="URLSearchParams"in Ao,Ro="Symbol"in Ao&&"iterator"in Symbol,_o="FileReader"in Ao&&"Blob"in Ao&&function(){try{return new Blob,!0}catch(t){return!1}}(),Lo="FormData"in Ao,Do="ArrayBuffer"in Ao;if(Do)var Io=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Bo=ArrayBuffer.isView||function(t){return t&&Io.indexOf(Object.prototype.toString.call(t))>-1};function Ho(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function No(t){return"string"!=typeof t&&(t=String(t)),t}function Wo(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Ro&&(e[Symbol.iterator]=function(){return e}),e}function Uo(t){this.map={},t instanceof Uo?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function Fo(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function Mo(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function Go(t){var e=new FileReader,n=Mo(e);return e.readAsArrayBuffer(t),n}function qo(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function zo(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:_o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:Lo&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:jo&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():Do&&_o&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=qo(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Do&&(ArrayBuffer.prototype.isPrototypeOf(t)||Bo(t))?this._bodyArrayBuffer=qo(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):jo&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},_o&&(this.blob=function(){var t=Fo(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=Fo(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(_o)return this.blob().then(Go);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,n,r,i,o=Fo(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=Mo(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=r?r[1]:"utf-8",e.readAsText(t,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Lo&&(this.formData=function(){return this.text().then(Yo)}),this.json=function(){return this.text().then(JSON.parse)},this}Uo.prototype.append=function(t,e){t=Ho(t),e=No(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},Uo.prototype.delete=function(t){delete this.map[Ho(t)]},Uo.prototype.get=function(t){return t=Ho(t),this.has(t)?this.map[t]:null},Uo.prototype.has=function(t){return this.map.hasOwnProperty(Ho(t))},Uo.prototype.set=function(t,e){this.map[Ho(t)]=No(e)},Uo.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},Uo.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),Wo(t)},Uo.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),Wo(t)},Uo.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),Wo(t)},Ro&&(Uo.prototype[Symbol.iterator]=Uo.prototype.entries);var Vo=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Xo(t,e){if(!(this instanceof Xo))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(e=e||{}).body;if(t instanceof Xo){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Uo(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new Uo(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),Vo.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in Ao)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Yo(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function $o(t,e){if(!(this instanceof $o))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new Uo(e.headers),this.url=e.url||"",this._initBody(t)}Xo.prototype.clone=function(){return new Xo(this,{body:this._bodyInit})},zo.call(Xo.prototype),zo.call($o.prototype),$o.prototype.clone=function(){return new $o(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Uo(this.headers),url:this.url})},$o.error=function(){var t=new $o(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var Ko=[301,302,303,307,308];$o.redirect=function(t,e){if(-1===Ko.indexOf(e))throw new RangeError("Invalid status code");return new $o(null,{status:e,headers:{location:t}})};var Jo=Ao.DOMException;try{new Jo}catch(t){(Jo=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),Jo.prototype.constructor=Jo}function Zo(t,e){return new Promise((function(n,r){var i=new Xo(t,e);if(i.signal&&i.signal.aborted)return r(new Jo("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}if(o.onload=function(){var t,e,r={statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new Uo,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{e.append(r,i)}catch(t){}}})),e)};0===i.url.indexOf("file://")&&(o.status<200||o.status>599)?r.status=200:r.status=o.status,r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var a="response"in o?o.response:o.responseText;setTimeout((function(){n(new $o(a,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){r(new Jo("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&Ao.location.href?Ao.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(_o?o.responseType="blob":Do&&(o.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof Uo||Ao.Headers&&e.headers instanceof Ao.Headers)){var s=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){s.push(Ho(t)),o.setRequestHeader(t,No(e.headers[t]))})),i.headers.forEach((function(t,e){-1===s.indexOf(e)&&o.setRequestHeader(e,t)}))}else i.headers.forEach((function(t,e){o.setRequestHeader(e,t)}));i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Zo.polyfill=!0,Ao.fetch||(Ao.fetch=Zo,Ao.Headers=Uo,Ao.Request=Xo,Ao.Response=$o),"undefined"==typeof CanvasRenderingContext2D||CanvasRenderingContext2D.prototype.resetTransform||(CanvasRenderingContext2D.prototype.resetTransform=function(){this.setTransform(1,0,0,1,0,0)});!function(t,e){void 0===e&&(e={});var n=e.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}("@keyframes watermark{0%{background-position:0 0}25%{background-position:100% 100%}50%{background-position:0 0}75%{background-position:100% -100%}to{background-position:0 0}}");var Qo=function(t,e){return Qo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Qo(t,e)};var ta=function(){return ta=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ta.apply(this,arguments)};function ea(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function na(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}var ra=function(t){return t.toDataURL("image/png",1)},ia=function(t){return"function"==typeof t},oa=function(t){return void 0===t},aa=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n="http://www.w3.org/2000/svg");var r=document.createElementNS(n,t);for(var i in e)r.setAttribute(i,e[i]);return r},sa=function(t,e){return ea(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return na(this,(function(d){switch(d.label){case 0:return n=aa("svg",{xmlns:"http://www.w3.org/2000/svg"}),(r=document.createElement("div")).setAttribute("xmlns","http://www.w3.org/1999/xhtml"),r.style.cssText="\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n font: ".concat(t.font,";\n color: ").concat(e.fontColor,";\n"),r.innerHTML="<div class='rich-text-content'>".concat(e.content,"</div>"),document.body.appendChild(r),[4,ua(r)];case 1:return d.sent(),i=null===(l=r.querySelector(".rich-text-content"))||void 0===l?void 0:l.getBoundingClientRect(),o=null==i?void 0:i.width,a=null==i?void 0:i.height,document.body.removeChild(r),s=e.richTextWidth||o||e.width,u=e.richTextHeight||a||e.height,n.setAttribute("width",s.toString()),n.setAttribute("height",u.toString()),(c=aa("foreignObject",{width:s.toString(),height:u.toString()})).appendChild(r),n.appendChild(c),[2,{element:n,width:s,height:u}]}}))}))};function ua(t){return ea(this,void 0,void 0,(function(){var e,n,r,i,o;return na(this,(function(a){switch(a.label){case 0:e=t.querySelectorAll("img"),n=function(t){var e,n,r,i;return na(this,(function(o){switch(o.label){case 0:if(!(e=t.getAttribute("src")))return[3,6];o.label=1;case 1:return o.trys.push([1,5,,6]),[4,fetch(e)];case 2:return[4,o.sent().blob()];case 3:return n=o.sent(),[4,new Promise((function(t,e){var r=new FileReader;r.onloadend=function(){return t(r.result)},r.onerror=e,r.readAsDataURL(n)}))];case 4:return r=o.sent(),"string"==typeof r&&t.setAttribute("src",r),[3,6];case 5:return i=o.sent(),console.error("Error converting ".concat(e," to base64:"),i),[3,6];case 6:return[2]}}))},r=0,i=Array.from(e),a.label=1;case 1:return r<i.length?(o=i[r],[5,n(o)]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))}var ca=function(t,e){return oa(t)?e:t},la=function(t,e,n){void 0===e&&(e=void 0),void 0===n&&(n=void 0);var r=new Image;return r.setAttribute("crossOrigin","Anonymous"),!oa(e)&&(r.width=e),!oa(n)&&(r.height=n),r.src=t,new Promise((function(t){r.onload=function(){t(r)}}))},da={width:300,height:300,rotate:45,layout:"default",auxiliaryLine:!1,translatePlacement:"middle",contentType:"text",content:"hello watermark-js-plus",textType:"fill",imageWidth:0,imageHeight:0,lineHeight:30,zIndex:2147483647,backgroundPosition:"0 0",backgroundRepeat:"repeat",fontSize:"20px",fontFamily:"sans-serif",fontStyle:"",fontVariant:"",fontColor:"#000",fontWeight:"normal",filter:"none",letterSpacing:"0px",wordSpacing:"0px",globalAlpha:.5,mode:"default",mutationObserve:!0,monitorProtection:!1,movable:!1,parent:"body",onSuccess:function(){},onBeforeDestroy:function(){},onDestroyed:function(){},onObserveError:function(){}},fa=function(t){"undefined"!=typeof window&&t&&(Object.defineProperty(window,"MutationObserver",{writable:!1,configurable:!1}),Object.defineProperty(window,"requestAnimationFrame",{writable:!1,configurable:!1}))},ha=function(){function t(e,n){this.props=e,this.options=n,this.canvas=t.createCanvas(this.options.width,this.options.height),this.recommendOptions=function(t,e,n){var r=t.getContext("2d");if(null===r)throw new Error("get context error");r.font="".concat(e.fontStyle," ").concat(e.fontVariant," ").concat(e.fontWeight," ").concat(e.fontSize," ").concat(e.fontFamily),r.filter=e.filter,r.letterSpacing=e.letterSpacing,r.wordSpacing=e.wordSpacing,(null==e?void 0:e.rotate)&&(e.rotate=(360-e.rotate%360)*(Math.PI/180)),oa(n.textRowMaxWidth)&&(e.textRowMaxWidth=e.width);var i={image:{rect:{width:e.imageWidth,height:e.imageHeight},position:{x:0,y:0}},textLine:{data:[],yOffsetValue:0},advancedStyleParams:{linear:{x0:0,x1:0},radial:{x0:0,y0:0,r0:0,x1:0,y1:0,r1:0},conic:{x:0,y:0,startAngle:0},pattern:{}}};switch(e.contentType){case"text":i.textLine.data=[e.content];break;case"multi-line-text":i.textLine.data=function(t,e,n){for(var r=[],i="",o="",a=0,s=e.length;a<s;a++)"\n"!==(o=e.charAt(a))?(i+=o,t.measureText(i).width>n&&(r.push(i.substring(0,i.length-1)),i="",a--)):(r.push(i),i="");return r.push(i),r}(r,e.content,e.textRowMaxWidth)}var o=e.width/2,a=e.height/2,s="middle",u="center";switch(oa(null==n?void 0:n.translateX)||oa(null==n?void 0:n.translateY)?(i.advancedStyleParams.linear.x0=-e.width/2,i.advancedStyleParams.linear.x1=e.width/2,i.advancedStyleParams.radial.r0=0,i.advancedStyleParams.radial.r1=e.width/2):(o=null==n?void 0:n.translateX,a=null==n?void 0:n.translateY,s="top",u="left"),n.translatePlacement){case"top":o=e.width/2,a=0,s="top",i.advancedStyleParams.linear.x0=-e.width/2,i.advancedStyleParams.linear.x1=e.width/2,i.advancedStyleParams.radial.y0=i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.radial.y1=i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.conic.y=i.textLine.data.length*e.lineHeight/2;break;case"top-start":o=0,a=0,s="top",u="start",i.advancedStyleParams.linear.x0=0,i.advancedStyleParams.linear.x1=e.width,i.advancedStyleParams.radial.x0=e.width/2,i.advancedStyleParams.radial.y0=i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.radial.x1=e.width/2,i.advancedStyleParams.radial.y1=i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.conic.x=e.width/2,i.advancedStyleParams.conic.y=i.textLine.data.length*e.lineHeight/2;break;case"top-end":o=e.width,a=0,s="top",u="end",i.advancedStyleParams.linear.x0=0,i.advancedStyleParams.linear.x1=-e.width,i.advancedStyleParams.radial.x0=-e.width/2,i.advancedStyleParams.radial.y0=i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.radial.x1=-e.width/2,i.advancedStyleParams.radial.y1=i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.conic.x=-e.width/2,i.advancedStyleParams.conic.y=i.textLine.data.length*e.lineHeight/2;break;case"bottom":o=e.width/2,a=e.height,s="bottom",i.advancedStyleParams.linear.x0=-e.width/2,i.advancedStyleParams.linear.x1=e.width/2,i.advancedStyleParams.radial.y0=-i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.radial.y1=-i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.conic.x=0,i.advancedStyleParams.conic.y=-i.textLine.data.length*e.lineHeight/2;break;case"bottom-start":o=0,a=e.height,s="bottom",u="start",i.advancedStyleParams.linear.x0=0,i.advancedStyleParams.linear.x1=e.width,i.advancedStyleParams.radial.x0=e.width/2,i.advancedStyleParams.radial.y0=-i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.radial.x1=e.width/2,i.advancedStyleParams.radial.y1=-i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.conic.x=e.width/2,i.advancedStyleParams.conic.y=-i.textLine.data.length*e.lineHeight/2;break;case"bottom-end":o=e.width,a=e.height,s="bottom",u="end",i.advancedStyleParams.linear.x0=0,i.advancedStyleParams.linear.x1=-e.width,i.advancedStyleParams.radial.x0=-e.width/2,i.advancedStyleParams.radial.y0=-i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.radial.x1=-e.width/2,i.advancedStyleParams.radial.y1=-i.textLine.data.length*e.lineHeight/2,i.advancedStyleParams.conic.x=-e.width/2,i.advancedStyleParams.conic.y=-i.textLine.data.length*e.lineHeight/2;brea