@iamjariwala/react-doc-viewer 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DuxxqB5A.cjs → index-B_Kj-Aj7.cjs} +1 -1
- package/dist/{index-Wjgevdpq.cjs → index-BuGkDBlW.cjs} +3 -3
- package/dist/{index--dJZvZe8.js → index-CWE4iuub.js} +2 -2
- package/dist/{index-Gxy84XUC.js → index-CaSRFyN8.js} +2 -2
- package/dist/{index-DodZ2MFt.cjs → index-D4pVT93C.cjs} +1 -1
- package/dist/{index-CIbou6J_.js → index-rfbv2aNT.js} +4 -3
- package/dist/react-doc-viewer.cjs +1 -1
- package/dist/react-doc-viewer.js +1 -1
- package/dist/{url-Cm3u07j7.cjs → url-DZrdzcHy.cjs} +1 -1
- package/dist/{url-C8IT7FoP.js → url-fA7e74OD.js} +1 -1
- package/package.json +19 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as u } from "./index-
|
|
2
|
-
import { s as l, r as g } from "./index-
|
|
1
|
+
import { g as u } from "./index-rfbv2aNT.js";
|
|
2
|
+
import { s as l, r as g } from "./index-CaSRFyN8.js";
|
|
3
3
|
function h(i, o) {
|
|
4
4
|
for (var f = 0; f < o.length; f++) {
|
|
5
5
|
const r = o[f];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as V, a as br, d as on, p as U, B as ce, g as an } from "./index-
|
|
2
|
-
import { u as fn } from "./url-
|
|
1
|
+
import { c as V, a as br, d as on, p as U, B as ce, g as an } from "./index-rfbv2aNT.js";
|
|
2
|
+
import { u as fn } from "./url-fA7e74OD.js";
|
|
3
3
|
function un(e, t) {
|
|
4
4
|
for (var r = 0; r < t.length; r++) {
|
|
5
5
|
const n = t[r];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const R=require("./index-Wjgevdpq.cjs"),rn=require("./url-Cm3u07j7.cjs");function nn(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const c=Object.getOwnPropertyDescriptor(n,i);c&&Object.defineProperty(e,i,c.get?c:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var qe={},gr={exports:{}},Rt={};(function(e){e.fetch=i(R.commonjsGlobal.fetch)&&i(R.commonjsGlobal.ReadableStream),e.writableStream=i(R.commonjsGlobal.WritableStream),e.abortController=i(R.commonjsGlobal.AbortController);var t;function r(){if(t!==void 0)return t;if(R.commonjsGlobal.XMLHttpRequest){t=new R.commonjsGlobal.XMLHttpRequest;try{t.open("GET",R.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(c){var l=r();if(!l)return!1;try{return l.responseType=c,l.responseType===c}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?i(r().overrideMimeType):!1);function i(c){return typeof c=="function"}t=null})(Rt);var gt={exports:{}};typeof Object.create=="function"?gt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:gt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var ue=gt.exports,We={},vt={exports:{}},Tt={exports:{}},_e=typeof Reflect=="object"?Reflect:null,Ut=_e&&typeof _e.apply=="function"?_e.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Le;_e&&typeof _e.ownKeys=="function"?Le=_e.ownKeys:Object.getOwnPropertySymbols?Le=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Le=function(t){return Object.getOwnPropertyNames(t)};function on(e){console&&console.warn&&console.warn(e)}var vr=Number.isNaN||function(t){return t!==t};function x(){x.init.call(this)}Tt.exports=x;Tt.exports.once=un;x.EventEmitter=x;x.prototype._events=void 0;x.prototype._eventsCount=0;x.prototype._maxListeners=void 0;var kt=10;function Ge(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(x,"defaultMaxListeners",{enumerable:!0,get:function(){return kt},set:function(e){if(typeof e!="number"||e<0||vr(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");kt=e}});x.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};x.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||vr(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function br(e){return e._maxListeners===void 0?x.defaultMaxListeners:e._maxListeners}x.prototype.getMaxListeners=function(){return br(this)};x.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",c=this._events;if(c!==void 0)i=i&&c.error===void 0;else if(!i)return!1;if(i){var l;if(r.length>0&&(l=r[0]),l instanceof Error)throw l;var h=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw h.context=l,h}var p=c[t];if(p===void 0)return!1;if(typeof p=="function")Ut(p,this,r);else for(var A=p.length,C=Er(p,A),n=0;n<A;++n)Ut(C[n],this,r);return!0};function mr(e,t,r,n){var i,c,l;if(Ge(r),c=e._events,c===void 0?(c=e._events=Object.create(null),e._eventsCount=0):(c.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),c=e._events),l=c[t]),l===void 0)l=c[t]=r,++e._eventsCount;else if(typeof l=="function"?l=c[t]=n?[r,l]:[l,r]:n?l.unshift(r):l.push(r),i=br(e),i>0&&l.length>i&&!l.warned){l.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=e,h.type=t,h.count=l.length,on(h)}return e}x.prototype.addListener=function(t,r){return mr(this,t,r,!1)};x.prototype.on=x.prototype.addListener;x.prototype.prependListener=function(t,r){return mr(this,t,r,!0)};function an(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _r(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=an.bind(n);return i.listener=r,n.wrapFn=i,i}x.prototype.once=function(t,r){return Ge(r),this.on(t,_r(this,t,r)),this};x.prototype.prependOnceListener=function(t,r){return Ge(r),this.prependListener(t,_r(this,t,r)),this};x.prototype.removeListener=function(t,r){var n,i,c,l,h;if(Ge(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(c=-1,l=n.length-1;l>=0;l--)if(n[l]===r||n[l].listener===r){h=n[l].listener,c=l;break}if(c<0)return this;c===0?n.shift():fn(n,c),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,h||r)}return this};x.prototype.off=x.prototype.removeListener;x.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var c=Object.keys(n),l;for(i=0;i<c.length;++i)l=c[i],l!=="removeListener"&&this.removeAllListeners(l);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function wr(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?sn(i):Er(i,i.length)}x.prototype.listeners=function(t){return wr(this,t,!0)};x.prototype.rawListeners=function(t){return wr(this,t,!1)};x.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Sr.call(e,t)};x.prototype.listenerCount=Sr;function Sr(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}x.prototype.eventNames=function(){return this._eventsCount>0?Le(this._events):[]};function Er(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function fn(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function sn(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function un(e,t){return new Promise(function(r,n){function i(l){e.removeListener(t,c),n(l)}function c(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}Ar(e,t,c,{once:!0}),t!=="error"&&ln(e,i,{once:!0})})}function ln(e,t,r){typeof e.on=="function"&&Ar(e,"error",t,r)}function Ar(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(c){n.once&&e.removeEventListener(t,i),r(c)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var Rr=Tt.exports,Tr=Rr.EventEmitter;const xe=R.getAugmentedNamespace(R.dist);var Ot={},Or={},Pr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var c=Object.getOwnPropertySymbols(t);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},cn=Pr,Pt=function(){return cn()&&!!Symbol.toStringTag},dn=Error,pn=EvalError,hn=RangeError,yn=ReferenceError,jr=SyntaxError,He=TypeError,gn=URIError,qt=typeof Symbol<"u"&&Symbol,vn=Pr,bn=function(){return typeof qt!="function"||typeof Symbol!="function"||typeof qt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:vn()},Ze={__proto__:null,foo:{}},mn=Object,_n=function(){return{__proto__:Ze}.foo===Ze.foo&&!(Ze instanceof mn)},wn="Function.prototype.bind called on incompatible ",Sn=Object.prototype.toString,En=Math.max,An="[object Function]",Wt=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var c=0;c<r.length;c+=1)n[c+t.length]=r[c];return n},Rn=function(t,r){for(var n=[],i=r,c=0;i<t.length;i+=1,c+=1)n[c]=t[i];return n},Tn=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},On=function(t){var r=this;if(typeof r!="function"||Sn.apply(r)!==An)throw new TypeError(wn+r);for(var n=Rn(arguments,1),i,c=function(){if(this instanceof i){var C=r.apply(this,Wt(n,arguments));return Object(C)===C?C:this}return r.apply(t,Wt(n,arguments))},l=En(0,r.length-n.length),h=[],p=0;p<l;p++)h[p]="$"+p;if(i=Function("binder","return function ("+Tn(h,",")+"){ return binder.apply(this,arguments); }")(c),r.prototype){var A=function(){};A.prototype=r.prototype,i.prototype=new A,A.prototype=null}return i},Pn=On,jt=Function.prototype.bind||Pn,jn=Function.prototype.call,Mn=Object.prototype.hasOwnProperty,Ln=jt,Cn=Ln.call(jn,Mn),k,Nn=dn,In=pn,Dn=hn,Bn=yn,Se=jr,we=He,Fn=gn,Mr=Function,Qe=function(e){try{return Mr('"use strict"; return ('+e+").constructor;")()}catch{}},ce=Object.getOwnPropertyDescriptor;if(ce)try{ce({},"")}catch{ce=null}var et=function(){throw new we},$n=ce?function(){try{return arguments.callee,et}catch{try{return ce(arguments,"callee").get}catch{return et}}}():et,ge=bn(),Un=_n(),V=Object.getPrototypeOf||(Un?function(e){return e.__proto__}:null),be={},kn=typeof Uint8Array>"u"||!V?k:V(Uint8Array),de={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":ge&&V?V([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":be,"%AsyncGenerator%":be,"%AsyncGeneratorFunction%":be,"%AsyncIteratorPrototype%":be,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Nn,"%eval%":eval,"%EvalError%":In,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":Mr,"%GeneratorFunction%":be,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ge&&V?V(V([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ge||!V?k:V(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":Dn,"%ReferenceError%":Bn,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ge||!V?k:V(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ge&&V?V(""[Symbol.iterator]()):k,"%Symbol%":ge?Symbol:k,"%SyntaxError%":Se,"%ThrowTypeError%":$n,"%TypedArray%":kn,"%TypeError%":we,"%Uint8Array%":typeof Uint8Array>"u"?k:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?k:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?k:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?k:Uint32Array,"%URIError%":Fn,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet};if(V)try{null.error}catch(e){var qn=V(V(e));de["%Error.prototype%"]=qn}var Wn=function e(t){var r;if(t==="%AsyncFunction%")r=Qe("async function () {}");else if(t==="%GeneratorFunction%")r=Qe("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Qe("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&V&&(r=V(i.prototype))}return de[t]=r,r},Gt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Te=jt,Fe=Cn,Gn=Te.call(Function.call,Array.prototype.concat),xn=Te.call(Function.apply,Array.prototype.splice),xt=Te.call(Function.call,String.prototype.replace),$e=Te.call(Function.call,String.prototype.slice),Hn=Te.call(Function.call,RegExp.prototype.exec),Vn=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,zn=/\\(\\)?/g,Kn=function(t){var r=$e(t,0,1),n=$e(t,-1);if(r==="%"&&n!=="%")throw new Se("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Se("invalid intrinsic syntax, expected opening `%`");var i=[];return xt(t,Vn,function(c,l,h,p){i[i.length]=h?xt(p,zn,"$1"):l||c}),i},Yn=function(t,r){var n=t,i;if(Fe(Gt,n)&&(i=Gt[n],n="%"+i[0]+"%"),Fe(de,n)){var c=de[n];if(c===be&&(c=Wn(n)),typeof c>"u"&&!r)throw new we("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:c}}throw new Se("intrinsic "+t+" does not exist!")},Oe=function(t,r){if(typeof t!="string"||t.length===0)throw new we("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new we('"allowMissing" argument must be a boolean');if(Hn(/^%?[^%]*%?$/,t)===null)throw new Se("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Kn(t),i=n.length>0?n[0]:"",c=Yn("%"+i+"%",r),l=c.name,h=c.value,p=!1,A=c.alias;A&&(i=A[0],xn(n,Gn([0,1],A)));for(var C=1,E=!0;C<n.length;C+=1){var I=n[C],q=$e(I,0,1),P=$e(I,-1);if((q==='"'||q==="'"||q==="`"||P==='"'||P==="'"||P==="`")&&q!==P)throw new Se("property names with quotes must have matching quotes");if((I==="constructor"||!E)&&(p=!0),i+="."+I,l="%"+i+"%",Fe(de,l))h=de[l];else if(h!=null){if(!(I in h)){if(!r)throw new we("base intrinsic for "+t+" exists, but the property is not available.");return}if(ce&&C+1>=n.length){var N=ce(h,I);E=!!N,E&&"get"in N&&!("originalValue"in N.get)?h=N.get:h=h[I]}else E=Fe(h,I),h=h[I];E&&!p&&(de[l]=h)}}return h},Lr={exports:{}},tt,Ht;function Mt(){if(Ht)return tt;Ht=1;var e=Oe,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return tt=t,tt}var Jn=Oe,Ce=Jn("%Object.getOwnPropertyDescriptor%",!0);if(Ce)try{Ce([],"length")}catch{Ce=null}var Lt=Ce,Vt=Mt(),Xn=jr,ve=He,zt=Lt,Zn=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new ve("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new ve("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ve("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ve("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ve("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ve("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,p=!!zt&&zt(t,r);if(Vt)Vt(t,r,{configurable:l===null&&p?p.configurable:!l,enumerable:i===null&&p?p.enumerable:!i,value:n,writable:c===null&&p?p.writable:!c});else if(h||!i&&!c&&!l)t[r]=n;else throw new Xn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},bt=Mt(),Cr=function(){return!!bt};Cr.hasArrayLengthDefineBug=function(){if(!bt)return null;try{return bt([],"length",{value:1}).length!==1}catch{return!0}};var Qn=Cr,ei=Oe,Kt=Zn,ti=Qn(),Yt=Lt,Jt=He,ri=ei("%Math.floor%"),ni=function(t,r){if(typeof t!="function")throw new Jt("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||ri(r)!==r)throw new Jt("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,c=!0;if("length"in t&&Yt){var l=Yt(t,"length");l&&!l.configurable&&(i=!1),l&&!l.writable&&(c=!1)}return(i||c||!n)&&(ti?Kt(t,"length",r,!0,!0):Kt(t,"length",r)),t};(function(e){var t=jt,r=Oe,n=ni,i=He,c=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),h=r("%Reflect.apply%",!0)||t.call(l,c),p=Mt(),A=r("%Math.max%");e.exports=function(I){if(typeof I!="function")throw new i("a function is required");var q=h(t,l,arguments);return n(q,1+A(0,I.length-(arguments.length-1)),!0)};var C=function(){return h(t,c,arguments)};p?p(e.exports,"apply",{value:C}):e.exports.apply=C})(Lr);var Nr=Lr.exports,Ir=Oe,Dr=Nr,ii=Dr(Ir("String.prototype.indexOf")),Br=function(t,r){var n=Ir(t,!!r);return typeof n=="function"&&ii(t,".prototype.")>-1?Dr(n):n},oi=Pt(),ai=Br,mt=ai("Object.prototype.toString"),Ve=function(t){return oi&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:mt(t)==="[object Arguments]"},Fr=function(t){return Ve(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&mt(t)!=="[object Array]"&&mt(t.callee)==="[object Function]"},fi=function(){return Ve(arguments)}();Ve.isLegacyArguments=Fr;var si=fi?Ve:Fr,ui=Object.prototype.toString,li=Function.prototype.toString,ci=/^\s*(?:function)?\*/,$r=Pt(),rt=Object.getPrototypeOf,di=function(){if(!$r)return!1;try{return Function("return function*() {}")()}catch{}},nt,pi=function(t){if(typeof t!="function")return!1;if(ci.test(li.call(t)))return!0;if(!$r){var r=ui.call(t);return r==="[object GeneratorFunction]"}if(!rt)return!1;if(typeof nt>"u"){var n=di();nt=n?rt(n):!1}return rt(t)===nt},Ur=Function.prototype.toString,me=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,_t,Ne;if(typeof me=="function"&&typeof Object.defineProperty=="function")try{_t=Object.defineProperty({},"length",{get:function(){throw Ne}}),Ne={},me(function(){throw 42},null,_t)}catch(e){e!==Ne&&(me=null)}else me=null;var hi=/^\s*class\b/,wt=function(t){try{var r=Ur.call(t);return hi.test(r)}catch{return!1}},it=function(t){try{return wt(t)?!1:(Ur.call(t),!0)}catch{return!1}},Ie=Object.prototype.toString,yi="[object Object]",gi="[object Function]",vi="[object GeneratorFunction]",bi="[object HTMLAllCollection]",mi="[object HTML document.all class]",_i="[object HTMLCollection]",wi=typeof Symbol=="function"&&!!Symbol.toStringTag,Si=!(0 in[,]),St=function(){return!1};if(typeof document=="object"){var Ei=document.all;Ie.call(Ei)===Ie.call(document.all)&&(St=function(t){if((Si||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Ie.call(t);return(r===bi||r===mi||r===_i||r===yi)&&t("")==null}catch{}return!1})}var Ai=me?function(t){if(St(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{me(t,null,_t)}catch(r){if(r!==Ne)return!1}return!wt(t)&&it(t)}:function(t){if(St(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(wi)return it(t);if(wt(t))return!1;var r=Ie.call(t);return r!==gi&&r!==vi&&!/^\[object HTML/.test(r)?!1:it(t)},Ri=Ai,Ti=Object.prototype.toString,kr=Object.prototype.hasOwnProperty,Oi=function(t,r,n){for(var i=0,c=t.length;i<c;i++)kr.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},Pi=function(t,r,n){for(var i=0,c=t.length;i<c;i++)n==null?r(t.charAt(i),i,t):r.call(n,t.charAt(i),i,t)},ji=function(t,r,n){for(var i in t)kr.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},Mi=function(t,r,n){if(!Ri(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),Ti.call(t)==="[object Array]"?Oi(t,r,i):typeof t=="string"?Pi(t,r,i):ji(t,r,i)},Li=Mi,Ci=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],ot=Ci,Ni=typeof globalThis>"u"?R.commonjsGlobal:globalThis,Ii=function(){for(var t=[],r=0;r<ot.length;r++)typeof Ni[ot[r]]=="function"&&(t[t.length]=ot[r]);return t},Ue=Li,Di=Ii,Xt=Nr,Ct=Br,De=Lt,Bi=Ct("Object.prototype.toString"),qr=Pt(),Zt=typeof globalThis>"u"?R.commonjsGlobal:globalThis,Et=Di(),Nt=Ct("String.prototype.slice"),at=Object.getPrototypeOf,Fi=Ct("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},ke={__proto__:null};qr&&De&&at?Ue(Et,function(e){var t=new Zt[e];if(Symbol.toStringTag in t){var r=at(t),n=De(r,Symbol.toStringTag);if(!n){var i=at(r);n=De(i,Symbol.toStringTag)}ke["$"+e]=Xt(n.get)}}):Ue(Et,function(e){var t=new Zt[e],r=t.slice||t.set;r&&(ke["$"+e]=Xt(r))});var $i=function(t){var r=!1;return Ue(ke,function(n,i){if(!r)try{"$"+n(t)===i&&(r=Nt(i,1))}catch{}}),r},Ui=function(t){var r=!1;return Ue(ke,function(n,i){if(!r)try{n(t),r=Nt(i,1)}catch{}}),r},Wr=function(t){if(!t||typeof t!="object")return!1;if(!qr){var r=Nt(Bi(t),8,-1);return Fi(Et,r)>-1?r:r!=="Object"?!1:Ui(t)}return De?$i(t):null},ki=Wr,qi=function(t){return!!ki(t)};(function(e){var t=si,r=pi,n=Wr,i=qi;function c(v){return v.call.bind(v)}var l=typeof BigInt<"u",h=typeof Symbol<"u",p=c(Object.prototype.toString),A=c(Number.prototype.valueOf),C=c(String.prototype.valueOf),E=c(Boolean.prototype.valueOf);if(l)var I=c(BigInt.prototype.valueOf);if(h)var q=c(Symbol.prototype.valueOf);function P(v,Pe){if(typeof v!="object")return!1;try{return Pe(v),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=i;function N(v){return typeof Promise<"u"&&v instanceof Promise||v!==null&&typeof v=="object"&&typeof v.then=="function"&&typeof v.catch=="function"}e.isPromise=N;function M(v){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(v):i(v)||g(v)}e.isArrayBufferView=M;function u(v){return n(v)==="Uint8Array"}e.isUint8Array=u;function m(v){return n(v)==="Uint8ClampedArray"}e.isUint8ClampedArray=m;function S(v){return n(v)==="Uint16Array"}e.isUint16Array=S;function T(v){return n(v)==="Uint32Array"}e.isUint32Array=T;function j(v){return n(v)==="Int8Array"}e.isInt8Array=j;function F(v){return n(v)==="Int16Array"}e.isInt16Array=F;function W(v){return n(v)==="Int32Array"}e.isInt32Array=W;function $(v){return n(v)==="Float32Array"}e.isFloat32Array=$;function D(v){return n(v)==="Float64Array"}e.isFloat64Array=D;function z(v){return n(v)==="BigInt64Array"}e.isBigInt64Array=z;function J(v){return n(v)==="BigUint64Array"}e.isBigUint64Array=J;function X(v){return p(v)==="[object Map]"}X.working=typeof Map<"u"&&X(new Map);function ne(v){return typeof Map>"u"?!1:X.working?X(v):v instanceof Map}e.isMap=ne;function Z(v){return p(v)==="[object Set]"}Z.working=typeof Set<"u"&&Z(new Set);function ie(v){return typeof Set>"u"?!1:Z.working?Z(v):v instanceof Set}e.isSet=ie;function oe(v){return p(v)==="[object WeakMap]"}oe.working=typeof WeakMap<"u"&&oe(new WeakMap);function ee(v){return typeof WeakMap>"u"?!1:oe.working?oe(v):v instanceof WeakMap}e.isWeakMap=ee;function te(v){return p(v)==="[object WeakSet]"}te.working=typeof WeakSet<"u"&&te(new WeakSet);function K(v){return te(v)}e.isWeakSet=K;function re(v){return p(v)==="[object ArrayBuffer]"}re.working=typeof ArrayBuffer<"u"&&re(new ArrayBuffer);function fe(v){return typeof ArrayBuffer>"u"?!1:re.working?re(v):v instanceof ArrayBuffer}e.isArrayBuffer=fe;function d(v){return p(v)==="[object DataView]"}d.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&d(new DataView(new ArrayBuffer(1),0,1));function g(v){return typeof DataView>"u"?!1:d.working?d(v):v instanceof DataView}e.isDataView=g;var _=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function B(v){return p(v)==="[object SharedArrayBuffer]"}function s(v){return typeof _>"u"?!1:(typeof B.working>"u"&&(B.working=B(new _)),B.working?B(v):v instanceof _)}e.isSharedArrayBuffer=s;function f(v){return p(v)==="[object AsyncFunction]"}e.isAsyncFunction=f;function y(v){return p(v)==="[object Map Iterator]"}e.isMapIterator=y;function w(v){return p(v)==="[object Set Iterator]"}e.isSetIterator=w;function L(v){return p(v)==="[object Generator]"}e.isGeneratorObject=L;function o(v){return p(v)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=o;function a(v){return P(v,A)}e.isNumberObject=a;function b(v){return P(v,C)}e.isStringObject=b;function O(v){return P(v,E)}e.isBooleanObject=O;function H(v){return l&&P(v,I)}e.isBigIntObject=H;function U(v){return h&&P(v,q)}e.isSymbolObject=U;function G(v){return a(v)||b(v)||O(v)||H(v)||U(v)}e.isBoxedPrimitive=G;function se(v){return typeof Uint8Array<"u"&&(fe(v)||s(v))}e.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(v){Object.defineProperty(e,v,{enumerable:!1,value:function(){throw new Error(v+" is not supported in userland")}})})})(Or);var Wi=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"};(function(e){var t=Object.getOwnPropertyDescriptors||function(g){for(var _=Object.keys(g),B={},s=0;s<_.length;s++)B[_[s]]=Object.getOwnPropertyDescriptor(g,_[s]);return B},r=/%[sdj%]/g;e.format=function(d){if(!j(d)){for(var g=[],_=0;_<arguments.length;_++)g.push(l(arguments[_]));return g.join(" ")}for(var _=1,B=arguments,s=B.length,f=String(d).replace(r,function(w){if(w==="%%")return"%";if(_>=s)return w;switch(w){case"%s":return String(B[_++]);case"%d":return Number(B[_++]);case"%j":try{return JSON.stringify(B[_++])}catch{return"[Circular]"}default:return w}}),y=B[_];_<s;y=B[++_])m(y)||!D(y)?f+=" "+y:f+=" "+l(y);return f},e.deprecate=function(d,g){if(typeof R.process$1<"u"&&R.process$1.noDeprecation===!0)return d;if(typeof R.process$1>"u")return function(){return e.deprecate(d,g).apply(this,arguments)};var _=!1;function B(){if(!_){if(R.process$1.throwDeprecation)throw new Error(g);R.process$1.traceDeprecation?console.trace(g):console.error(g),_=!0}return d.apply(this,arguments)}return B};var n={},i=/^$/;if(R.process$1.env.NODE_DEBUG){var c=R.process$1.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+c+"$","i")}e.debuglog=function(d){if(d=d.toUpperCase(),!n[d])if(i.test(d)){var g=R.process$1.pid;n[d]=function(){var _=e.format.apply(e,arguments);console.error("%s %d: %s",d,g,_)}}else n[d]=function(){};return n[d]};function l(d,g){var _={seen:[],stylize:p};return arguments.length>=3&&(_.depth=arguments[2]),arguments.length>=4&&(_.colors=arguments[3]),u(g)?_.showHidden=g:g&&e._extend(_,g),W(_.showHidden)&&(_.showHidden=!1),W(_.depth)&&(_.depth=2),W(_.colors)&&(_.colors=!1),W(_.customInspect)&&(_.customInspect=!0),_.colors&&(_.stylize=h),C(_,d,_.depth)}e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(d,g){var _=l.styles[g];return _?"\x1B["+l.colors[_][0]+"m"+d+"\x1B["+l.colors[_][1]+"m":d}function p(d,g){return d}function A(d){var g={};return d.forEach(function(_,B){g[_]=!0}),g}function C(d,g,_){if(d.customInspect&&g&&X(g.inspect)&&g.inspect!==e.inspect&&!(g.constructor&&g.constructor.prototype===g)){var B=g.inspect(_,d);return j(B)||(B=C(d,B,_)),B}var s=E(d,g);if(s)return s;var f=Object.keys(g),y=A(f);if(d.showHidden&&(f=Object.getOwnPropertyNames(g)),J(g)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return I(g);if(f.length===0){if(X(g)){var w=g.name?": "+g.name:"";return d.stylize("[Function"+w+"]","special")}if($(g))return d.stylize(RegExp.prototype.toString.call(g),"regexp");if(z(g))return d.stylize(Date.prototype.toString.call(g),"date");if(J(g))return I(g)}var L="",o=!1,a=["{","}"];if(M(g)&&(o=!0,a=["[","]"]),X(g)){var b=g.name?": "+g.name:"";L=" [Function"+b+"]"}if($(g)&&(L=" "+RegExp.prototype.toString.call(g)),z(g)&&(L=" "+Date.prototype.toUTCString.call(g)),J(g)&&(L=" "+I(g)),f.length===0&&(!o||g.length==0))return a[0]+L+a[1];if(_<0)return $(g)?d.stylize(RegExp.prototype.toString.call(g),"regexp"):d.stylize("[Object]","special");d.seen.push(g);var O;return o?O=q(d,g,_,y,f):O=f.map(function(H){return P(d,g,_,y,H,o)}),d.seen.pop(),N(O,L,a)}function E(d,g){if(W(g))return d.stylize("undefined","undefined");if(j(g)){var _="'"+JSON.stringify(g).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return d.stylize(_,"string")}if(T(g))return d.stylize(""+g,"number");if(u(g))return d.stylize(""+g,"boolean");if(m(g))return d.stylize("null","null")}function I(d){return"["+Error.prototype.toString.call(d)+"]"}function q(d,g,_,B,s){for(var f=[],y=0,w=g.length;y<w;++y)te(g,String(y))?f.push(P(d,g,_,B,String(y),!0)):f.push("");return s.forEach(function(L){L.match(/^\d+$/)||f.push(P(d,g,_,B,L,!0))}),f}function P(d,g,_,B,s,f){var y,w,L;if(L=Object.getOwnPropertyDescriptor(g,s)||{value:g[s]},L.get?L.set?w=d.stylize("[Getter/Setter]","special"):w=d.stylize("[Getter]","special"):L.set&&(w=d.stylize("[Setter]","special")),te(B,s)||(y="["+s+"]"),w||(d.seen.indexOf(L.value)<0?(m(_)?w=C(d,L.value,null):w=C(d,L.value,_-1),w.indexOf(`
|
|
1
|
+
"use strict";const R=require("./index-BuGkDBlW.cjs"),rn=require("./url-DZrdzcHy.cjs");function nn(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const c=Object.getOwnPropertyDescriptor(n,i);c&&Object.defineProperty(e,i,c.get?c:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var qe={},gr={exports:{}},Rt={};(function(e){e.fetch=i(R.commonjsGlobal.fetch)&&i(R.commonjsGlobal.ReadableStream),e.writableStream=i(R.commonjsGlobal.WritableStream),e.abortController=i(R.commonjsGlobal.AbortController);var t;function r(){if(t!==void 0)return t;if(R.commonjsGlobal.XMLHttpRequest){t=new R.commonjsGlobal.XMLHttpRequest;try{t.open("GET",R.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(c){var l=r();if(!l)return!1;try{return l.responseType=c,l.responseType===c}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?i(r().overrideMimeType):!1);function i(c){return typeof c=="function"}t=null})(Rt);var gt={exports:{}};typeof Object.create=="function"?gt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:gt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var ue=gt.exports,We={},vt={exports:{}},Tt={exports:{}},_e=typeof Reflect=="object"?Reflect:null,Ut=_e&&typeof _e.apply=="function"?_e.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Le;_e&&typeof _e.ownKeys=="function"?Le=_e.ownKeys:Object.getOwnPropertySymbols?Le=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Le=function(t){return Object.getOwnPropertyNames(t)};function on(e){console&&console.warn&&console.warn(e)}var vr=Number.isNaN||function(t){return t!==t};function x(){x.init.call(this)}Tt.exports=x;Tt.exports.once=un;x.EventEmitter=x;x.prototype._events=void 0;x.prototype._eventsCount=0;x.prototype._maxListeners=void 0;var kt=10;function Ge(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(x,"defaultMaxListeners",{enumerable:!0,get:function(){return kt},set:function(e){if(typeof e!="number"||e<0||vr(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");kt=e}});x.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};x.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||vr(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function br(e){return e._maxListeners===void 0?x.defaultMaxListeners:e._maxListeners}x.prototype.getMaxListeners=function(){return br(this)};x.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",c=this._events;if(c!==void 0)i=i&&c.error===void 0;else if(!i)return!1;if(i){var l;if(r.length>0&&(l=r[0]),l instanceof Error)throw l;var h=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw h.context=l,h}var p=c[t];if(p===void 0)return!1;if(typeof p=="function")Ut(p,this,r);else for(var A=p.length,C=Er(p,A),n=0;n<A;++n)Ut(C[n],this,r);return!0};function mr(e,t,r,n){var i,c,l;if(Ge(r),c=e._events,c===void 0?(c=e._events=Object.create(null),e._eventsCount=0):(c.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),c=e._events),l=c[t]),l===void 0)l=c[t]=r,++e._eventsCount;else if(typeof l=="function"?l=c[t]=n?[r,l]:[l,r]:n?l.unshift(r):l.push(r),i=br(e),i>0&&l.length>i&&!l.warned){l.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=e,h.type=t,h.count=l.length,on(h)}return e}x.prototype.addListener=function(t,r){return mr(this,t,r,!1)};x.prototype.on=x.prototype.addListener;x.prototype.prependListener=function(t,r){return mr(this,t,r,!0)};function an(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _r(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=an.bind(n);return i.listener=r,n.wrapFn=i,i}x.prototype.once=function(t,r){return Ge(r),this.on(t,_r(this,t,r)),this};x.prototype.prependOnceListener=function(t,r){return Ge(r),this.prependListener(t,_r(this,t,r)),this};x.prototype.removeListener=function(t,r){var n,i,c,l,h;if(Ge(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(c=-1,l=n.length-1;l>=0;l--)if(n[l]===r||n[l].listener===r){h=n[l].listener,c=l;break}if(c<0)return this;c===0?n.shift():fn(n,c),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,h||r)}return this};x.prototype.off=x.prototype.removeListener;x.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var c=Object.keys(n),l;for(i=0;i<c.length;++i)l=c[i],l!=="removeListener"&&this.removeAllListeners(l);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function wr(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?sn(i):Er(i,i.length)}x.prototype.listeners=function(t){return wr(this,t,!0)};x.prototype.rawListeners=function(t){return wr(this,t,!1)};x.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Sr.call(e,t)};x.prototype.listenerCount=Sr;function Sr(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}x.prototype.eventNames=function(){return this._eventsCount>0?Le(this._events):[]};function Er(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function fn(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function sn(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function un(e,t){return new Promise(function(r,n){function i(l){e.removeListener(t,c),n(l)}function c(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}Ar(e,t,c,{once:!0}),t!=="error"&&ln(e,i,{once:!0})})}function ln(e,t,r){typeof e.on=="function"&&Ar(e,"error",t,r)}function Ar(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(c){n.once&&e.removeEventListener(t,i),r(c)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var Rr=Tt.exports,Tr=Rr.EventEmitter;const xe=R.getAugmentedNamespace(R.dist);var Ot={},Or={},Pr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var c=Object.getOwnPropertySymbols(t);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},cn=Pr,Pt=function(){return cn()&&!!Symbol.toStringTag},dn=Error,pn=EvalError,hn=RangeError,yn=ReferenceError,jr=SyntaxError,He=TypeError,gn=URIError,qt=typeof Symbol<"u"&&Symbol,vn=Pr,bn=function(){return typeof qt!="function"||typeof Symbol!="function"||typeof qt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:vn()},Ze={__proto__:null,foo:{}},mn=Object,_n=function(){return{__proto__:Ze}.foo===Ze.foo&&!(Ze instanceof mn)},wn="Function.prototype.bind called on incompatible ",Sn=Object.prototype.toString,En=Math.max,An="[object Function]",Wt=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var c=0;c<r.length;c+=1)n[c+t.length]=r[c];return n},Rn=function(t,r){for(var n=[],i=r,c=0;i<t.length;i+=1,c+=1)n[c]=t[i];return n},Tn=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},On=function(t){var r=this;if(typeof r!="function"||Sn.apply(r)!==An)throw new TypeError(wn+r);for(var n=Rn(arguments,1),i,c=function(){if(this instanceof i){var C=r.apply(this,Wt(n,arguments));return Object(C)===C?C:this}return r.apply(t,Wt(n,arguments))},l=En(0,r.length-n.length),h=[],p=0;p<l;p++)h[p]="$"+p;if(i=Function("binder","return function ("+Tn(h,",")+"){ return binder.apply(this,arguments); }")(c),r.prototype){var A=function(){};A.prototype=r.prototype,i.prototype=new A,A.prototype=null}return i},Pn=On,jt=Function.prototype.bind||Pn,jn=Function.prototype.call,Mn=Object.prototype.hasOwnProperty,Ln=jt,Cn=Ln.call(jn,Mn),k,Nn=dn,In=pn,Dn=hn,Bn=yn,Se=jr,we=He,Fn=gn,Mr=Function,Qe=function(e){try{return Mr('"use strict"; return ('+e+").constructor;")()}catch{}},ce=Object.getOwnPropertyDescriptor;if(ce)try{ce({},"")}catch{ce=null}var et=function(){throw new we},$n=ce?function(){try{return arguments.callee,et}catch{try{return ce(arguments,"callee").get}catch{return et}}}():et,ge=bn(),Un=_n(),V=Object.getPrototypeOf||(Un?function(e){return e.__proto__}:null),be={},kn=typeof Uint8Array>"u"||!V?k:V(Uint8Array),de={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":ge&&V?V([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":be,"%AsyncGenerator%":be,"%AsyncGeneratorFunction%":be,"%AsyncIteratorPrototype%":be,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Nn,"%eval%":eval,"%EvalError%":In,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":Mr,"%GeneratorFunction%":be,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ge&&V?V(V([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ge||!V?k:V(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":Dn,"%ReferenceError%":Bn,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ge||!V?k:V(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ge&&V?V(""[Symbol.iterator]()):k,"%Symbol%":ge?Symbol:k,"%SyntaxError%":Se,"%ThrowTypeError%":$n,"%TypedArray%":kn,"%TypeError%":we,"%Uint8Array%":typeof Uint8Array>"u"?k:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?k:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?k:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?k:Uint32Array,"%URIError%":Fn,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet};if(V)try{null.error}catch(e){var qn=V(V(e));de["%Error.prototype%"]=qn}var Wn=function e(t){var r;if(t==="%AsyncFunction%")r=Qe("async function () {}");else if(t==="%GeneratorFunction%")r=Qe("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Qe("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&V&&(r=V(i.prototype))}return de[t]=r,r},Gt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Te=jt,Fe=Cn,Gn=Te.call(Function.call,Array.prototype.concat),xn=Te.call(Function.apply,Array.prototype.splice),xt=Te.call(Function.call,String.prototype.replace),$e=Te.call(Function.call,String.prototype.slice),Hn=Te.call(Function.call,RegExp.prototype.exec),Vn=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,zn=/\\(\\)?/g,Kn=function(t){var r=$e(t,0,1),n=$e(t,-1);if(r==="%"&&n!=="%")throw new Se("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Se("invalid intrinsic syntax, expected opening `%`");var i=[];return xt(t,Vn,function(c,l,h,p){i[i.length]=h?xt(p,zn,"$1"):l||c}),i},Yn=function(t,r){var n=t,i;if(Fe(Gt,n)&&(i=Gt[n],n="%"+i[0]+"%"),Fe(de,n)){var c=de[n];if(c===be&&(c=Wn(n)),typeof c>"u"&&!r)throw new we("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:c}}throw new Se("intrinsic "+t+" does not exist!")},Oe=function(t,r){if(typeof t!="string"||t.length===0)throw new we("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new we('"allowMissing" argument must be a boolean');if(Hn(/^%?[^%]*%?$/,t)===null)throw new Se("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Kn(t),i=n.length>0?n[0]:"",c=Yn("%"+i+"%",r),l=c.name,h=c.value,p=!1,A=c.alias;A&&(i=A[0],xn(n,Gn([0,1],A)));for(var C=1,E=!0;C<n.length;C+=1){var I=n[C],q=$e(I,0,1),P=$e(I,-1);if((q==='"'||q==="'"||q==="`"||P==='"'||P==="'"||P==="`")&&q!==P)throw new Se("property names with quotes must have matching quotes");if((I==="constructor"||!E)&&(p=!0),i+="."+I,l="%"+i+"%",Fe(de,l))h=de[l];else if(h!=null){if(!(I in h)){if(!r)throw new we("base intrinsic for "+t+" exists, but the property is not available.");return}if(ce&&C+1>=n.length){var N=ce(h,I);E=!!N,E&&"get"in N&&!("originalValue"in N.get)?h=N.get:h=h[I]}else E=Fe(h,I),h=h[I];E&&!p&&(de[l]=h)}}return h},Lr={exports:{}},tt,Ht;function Mt(){if(Ht)return tt;Ht=1;var e=Oe,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return tt=t,tt}var Jn=Oe,Ce=Jn("%Object.getOwnPropertyDescriptor%",!0);if(Ce)try{Ce([],"length")}catch{Ce=null}var Lt=Ce,Vt=Mt(),Xn=jr,ve=He,zt=Lt,Zn=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new ve("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new ve("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ve("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ve("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ve("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ve("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,p=!!zt&&zt(t,r);if(Vt)Vt(t,r,{configurable:l===null&&p?p.configurable:!l,enumerable:i===null&&p?p.enumerable:!i,value:n,writable:c===null&&p?p.writable:!c});else if(h||!i&&!c&&!l)t[r]=n;else throw new Xn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},bt=Mt(),Cr=function(){return!!bt};Cr.hasArrayLengthDefineBug=function(){if(!bt)return null;try{return bt([],"length",{value:1}).length!==1}catch{return!0}};var Qn=Cr,ei=Oe,Kt=Zn,ti=Qn(),Yt=Lt,Jt=He,ri=ei("%Math.floor%"),ni=function(t,r){if(typeof t!="function")throw new Jt("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||ri(r)!==r)throw new Jt("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,c=!0;if("length"in t&&Yt){var l=Yt(t,"length");l&&!l.configurable&&(i=!1),l&&!l.writable&&(c=!1)}return(i||c||!n)&&(ti?Kt(t,"length",r,!0,!0):Kt(t,"length",r)),t};(function(e){var t=jt,r=Oe,n=ni,i=He,c=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),h=r("%Reflect.apply%",!0)||t.call(l,c),p=Mt(),A=r("%Math.max%");e.exports=function(I){if(typeof I!="function")throw new i("a function is required");var q=h(t,l,arguments);return n(q,1+A(0,I.length-(arguments.length-1)),!0)};var C=function(){return h(t,c,arguments)};p?p(e.exports,"apply",{value:C}):e.exports.apply=C})(Lr);var Nr=Lr.exports,Ir=Oe,Dr=Nr,ii=Dr(Ir("String.prototype.indexOf")),Br=function(t,r){var n=Ir(t,!!r);return typeof n=="function"&&ii(t,".prototype.")>-1?Dr(n):n},oi=Pt(),ai=Br,mt=ai("Object.prototype.toString"),Ve=function(t){return oi&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:mt(t)==="[object Arguments]"},Fr=function(t){return Ve(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&mt(t)!=="[object Array]"&&mt(t.callee)==="[object Function]"},fi=function(){return Ve(arguments)}();Ve.isLegacyArguments=Fr;var si=fi?Ve:Fr,ui=Object.prototype.toString,li=Function.prototype.toString,ci=/^\s*(?:function)?\*/,$r=Pt(),rt=Object.getPrototypeOf,di=function(){if(!$r)return!1;try{return Function("return function*() {}")()}catch{}},nt,pi=function(t){if(typeof t!="function")return!1;if(ci.test(li.call(t)))return!0;if(!$r){var r=ui.call(t);return r==="[object GeneratorFunction]"}if(!rt)return!1;if(typeof nt>"u"){var n=di();nt=n?rt(n):!1}return rt(t)===nt},Ur=Function.prototype.toString,me=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,_t,Ne;if(typeof me=="function"&&typeof Object.defineProperty=="function")try{_t=Object.defineProperty({},"length",{get:function(){throw Ne}}),Ne={},me(function(){throw 42},null,_t)}catch(e){e!==Ne&&(me=null)}else me=null;var hi=/^\s*class\b/,wt=function(t){try{var r=Ur.call(t);return hi.test(r)}catch{return!1}},it=function(t){try{return wt(t)?!1:(Ur.call(t),!0)}catch{return!1}},Ie=Object.prototype.toString,yi="[object Object]",gi="[object Function]",vi="[object GeneratorFunction]",bi="[object HTMLAllCollection]",mi="[object HTML document.all class]",_i="[object HTMLCollection]",wi=typeof Symbol=="function"&&!!Symbol.toStringTag,Si=!(0 in[,]),St=function(){return!1};if(typeof document=="object"){var Ei=document.all;Ie.call(Ei)===Ie.call(document.all)&&(St=function(t){if((Si||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Ie.call(t);return(r===bi||r===mi||r===_i||r===yi)&&t("")==null}catch{}return!1})}var Ai=me?function(t){if(St(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{me(t,null,_t)}catch(r){if(r!==Ne)return!1}return!wt(t)&&it(t)}:function(t){if(St(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(wi)return it(t);if(wt(t))return!1;var r=Ie.call(t);return r!==gi&&r!==vi&&!/^\[object HTML/.test(r)?!1:it(t)},Ri=Ai,Ti=Object.prototype.toString,kr=Object.prototype.hasOwnProperty,Oi=function(t,r,n){for(var i=0,c=t.length;i<c;i++)kr.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},Pi=function(t,r,n){for(var i=0,c=t.length;i<c;i++)n==null?r(t.charAt(i),i,t):r.call(n,t.charAt(i),i,t)},ji=function(t,r,n){for(var i in t)kr.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},Mi=function(t,r,n){if(!Ri(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),Ti.call(t)==="[object Array]"?Oi(t,r,i):typeof t=="string"?Pi(t,r,i):ji(t,r,i)},Li=Mi,Ci=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],ot=Ci,Ni=typeof globalThis>"u"?R.commonjsGlobal:globalThis,Ii=function(){for(var t=[],r=0;r<ot.length;r++)typeof Ni[ot[r]]=="function"&&(t[t.length]=ot[r]);return t},Ue=Li,Di=Ii,Xt=Nr,Ct=Br,De=Lt,Bi=Ct("Object.prototype.toString"),qr=Pt(),Zt=typeof globalThis>"u"?R.commonjsGlobal:globalThis,Et=Di(),Nt=Ct("String.prototype.slice"),at=Object.getPrototypeOf,Fi=Ct("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},ke={__proto__:null};qr&&De&&at?Ue(Et,function(e){var t=new Zt[e];if(Symbol.toStringTag in t){var r=at(t),n=De(r,Symbol.toStringTag);if(!n){var i=at(r);n=De(i,Symbol.toStringTag)}ke["$"+e]=Xt(n.get)}}):Ue(Et,function(e){var t=new Zt[e],r=t.slice||t.set;r&&(ke["$"+e]=Xt(r))});var $i=function(t){var r=!1;return Ue(ke,function(n,i){if(!r)try{"$"+n(t)===i&&(r=Nt(i,1))}catch{}}),r},Ui=function(t){var r=!1;return Ue(ke,function(n,i){if(!r)try{n(t),r=Nt(i,1)}catch{}}),r},Wr=function(t){if(!t||typeof t!="object")return!1;if(!qr){var r=Nt(Bi(t),8,-1);return Fi(Et,r)>-1?r:r!=="Object"?!1:Ui(t)}return De?$i(t):null},ki=Wr,qi=function(t){return!!ki(t)};(function(e){var t=si,r=pi,n=Wr,i=qi;function c(v){return v.call.bind(v)}var l=typeof BigInt<"u",h=typeof Symbol<"u",p=c(Object.prototype.toString),A=c(Number.prototype.valueOf),C=c(String.prototype.valueOf),E=c(Boolean.prototype.valueOf);if(l)var I=c(BigInt.prototype.valueOf);if(h)var q=c(Symbol.prototype.valueOf);function P(v,Pe){if(typeof v!="object")return!1;try{return Pe(v),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=i;function N(v){return typeof Promise<"u"&&v instanceof Promise||v!==null&&typeof v=="object"&&typeof v.then=="function"&&typeof v.catch=="function"}e.isPromise=N;function M(v){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(v):i(v)||g(v)}e.isArrayBufferView=M;function u(v){return n(v)==="Uint8Array"}e.isUint8Array=u;function m(v){return n(v)==="Uint8ClampedArray"}e.isUint8ClampedArray=m;function S(v){return n(v)==="Uint16Array"}e.isUint16Array=S;function T(v){return n(v)==="Uint32Array"}e.isUint32Array=T;function j(v){return n(v)==="Int8Array"}e.isInt8Array=j;function F(v){return n(v)==="Int16Array"}e.isInt16Array=F;function W(v){return n(v)==="Int32Array"}e.isInt32Array=W;function $(v){return n(v)==="Float32Array"}e.isFloat32Array=$;function D(v){return n(v)==="Float64Array"}e.isFloat64Array=D;function z(v){return n(v)==="BigInt64Array"}e.isBigInt64Array=z;function J(v){return n(v)==="BigUint64Array"}e.isBigUint64Array=J;function X(v){return p(v)==="[object Map]"}X.working=typeof Map<"u"&&X(new Map);function ne(v){return typeof Map>"u"?!1:X.working?X(v):v instanceof Map}e.isMap=ne;function Z(v){return p(v)==="[object Set]"}Z.working=typeof Set<"u"&&Z(new Set);function ie(v){return typeof Set>"u"?!1:Z.working?Z(v):v instanceof Set}e.isSet=ie;function oe(v){return p(v)==="[object WeakMap]"}oe.working=typeof WeakMap<"u"&&oe(new WeakMap);function ee(v){return typeof WeakMap>"u"?!1:oe.working?oe(v):v instanceof WeakMap}e.isWeakMap=ee;function te(v){return p(v)==="[object WeakSet]"}te.working=typeof WeakSet<"u"&&te(new WeakSet);function K(v){return te(v)}e.isWeakSet=K;function re(v){return p(v)==="[object ArrayBuffer]"}re.working=typeof ArrayBuffer<"u"&&re(new ArrayBuffer);function fe(v){return typeof ArrayBuffer>"u"?!1:re.working?re(v):v instanceof ArrayBuffer}e.isArrayBuffer=fe;function d(v){return p(v)==="[object DataView]"}d.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&d(new DataView(new ArrayBuffer(1),0,1));function g(v){return typeof DataView>"u"?!1:d.working?d(v):v instanceof DataView}e.isDataView=g;var _=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function B(v){return p(v)==="[object SharedArrayBuffer]"}function s(v){return typeof _>"u"?!1:(typeof B.working>"u"&&(B.working=B(new _)),B.working?B(v):v instanceof _)}e.isSharedArrayBuffer=s;function f(v){return p(v)==="[object AsyncFunction]"}e.isAsyncFunction=f;function y(v){return p(v)==="[object Map Iterator]"}e.isMapIterator=y;function w(v){return p(v)==="[object Set Iterator]"}e.isSetIterator=w;function L(v){return p(v)==="[object Generator]"}e.isGeneratorObject=L;function o(v){return p(v)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=o;function a(v){return P(v,A)}e.isNumberObject=a;function b(v){return P(v,C)}e.isStringObject=b;function O(v){return P(v,E)}e.isBooleanObject=O;function H(v){return l&&P(v,I)}e.isBigIntObject=H;function U(v){return h&&P(v,q)}e.isSymbolObject=U;function G(v){return a(v)||b(v)||O(v)||H(v)||U(v)}e.isBoxedPrimitive=G;function se(v){return typeof Uint8Array<"u"&&(fe(v)||s(v))}e.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(v){Object.defineProperty(e,v,{enumerable:!1,value:function(){throw new Error(v+" is not supported in userland")}})})})(Or);var Wi=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"};(function(e){var t=Object.getOwnPropertyDescriptors||function(g){for(var _=Object.keys(g),B={},s=0;s<_.length;s++)B[_[s]]=Object.getOwnPropertyDescriptor(g,_[s]);return B},r=/%[sdj%]/g;e.format=function(d){if(!j(d)){for(var g=[],_=0;_<arguments.length;_++)g.push(l(arguments[_]));return g.join(" ")}for(var _=1,B=arguments,s=B.length,f=String(d).replace(r,function(w){if(w==="%%")return"%";if(_>=s)return w;switch(w){case"%s":return String(B[_++]);case"%d":return Number(B[_++]);case"%j":try{return JSON.stringify(B[_++])}catch{return"[Circular]"}default:return w}}),y=B[_];_<s;y=B[++_])m(y)||!D(y)?f+=" "+y:f+=" "+l(y);return f},e.deprecate=function(d,g){if(typeof R.process$1<"u"&&R.process$1.noDeprecation===!0)return d;if(typeof R.process$1>"u")return function(){return e.deprecate(d,g).apply(this,arguments)};var _=!1;function B(){if(!_){if(R.process$1.throwDeprecation)throw new Error(g);R.process$1.traceDeprecation?console.trace(g):console.error(g),_=!0}return d.apply(this,arguments)}return B};var n={},i=/^$/;if(R.process$1.env.NODE_DEBUG){var c=R.process$1.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+c+"$","i")}e.debuglog=function(d){if(d=d.toUpperCase(),!n[d])if(i.test(d)){var g=R.process$1.pid;n[d]=function(){var _=e.format.apply(e,arguments);console.error("%s %d: %s",d,g,_)}}else n[d]=function(){};return n[d]};function l(d,g){var _={seen:[],stylize:p};return arguments.length>=3&&(_.depth=arguments[2]),arguments.length>=4&&(_.colors=arguments[3]),u(g)?_.showHidden=g:g&&e._extend(_,g),W(_.showHidden)&&(_.showHidden=!1),W(_.depth)&&(_.depth=2),W(_.colors)&&(_.colors=!1),W(_.customInspect)&&(_.customInspect=!0),_.colors&&(_.stylize=h),C(_,d,_.depth)}e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(d,g){var _=l.styles[g];return _?"\x1B["+l.colors[_][0]+"m"+d+"\x1B["+l.colors[_][1]+"m":d}function p(d,g){return d}function A(d){var g={};return d.forEach(function(_,B){g[_]=!0}),g}function C(d,g,_){if(d.customInspect&&g&&X(g.inspect)&&g.inspect!==e.inspect&&!(g.constructor&&g.constructor.prototype===g)){var B=g.inspect(_,d);return j(B)||(B=C(d,B,_)),B}var s=E(d,g);if(s)return s;var f=Object.keys(g),y=A(f);if(d.showHidden&&(f=Object.getOwnPropertyNames(g)),J(g)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return I(g);if(f.length===0){if(X(g)){var w=g.name?": "+g.name:"";return d.stylize("[Function"+w+"]","special")}if($(g))return d.stylize(RegExp.prototype.toString.call(g),"regexp");if(z(g))return d.stylize(Date.prototype.toString.call(g),"date");if(J(g))return I(g)}var L="",o=!1,a=["{","}"];if(M(g)&&(o=!0,a=["[","]"]),X(g)){var b=g.name?": "+g.name:"";L=" [Function"+b+"]"}if($(g)&&(L=" "+RegExp.prototype.toString.call(g)),z(g)&&(L=" "+Date.prototype.toUTCString.call(g)),J(g)&&(L=" "+I(g)),f.length===0&&(!o||g.length==0))return a[0]+L+a[1];if(_<0)return $(g)?d.stylize(RegExp.prototype.toString.call(g),"regexp"):d.stylize("[Object]","special");d.seen.push(g);var O;return o?O=q(d,g,_,y,f):O=f.map(function(H){return P(d,g,_,y,H,o)}),d.seen.pop(),N(O,L,a)}function E(d,g){if(W(g))return d.stylize("undefined","undefined");if(j(g)){var _="'"+JSON.stringify(g).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return d.stylize(_,"string")}if(T(g))return d.stylize(""+g,"number");if(u(g))return d.stylize(""+g,"boolean");if(m(g))return d.stylize("null","null")}function I(d){return"["+Error.prototype.toString.call(d)+"]"}function q(d,g,_,B,s){for(var f=[],y=0,w=g.length;y<w;++y)te(g,String(y))?f.push(P(d,g,_,B,String(y),!0)):f.push("");return s.forEach(function(L){L.match(/^\d+$/)||f.push(P(d,g,_,B,L,!0))}),f}function P(d,g,_,B,s,f){var y,w,L;if(L=Object.getOwnPropertyDescriptor(g,s)||{value:g[s]},L.get?L.set?w=d.stylize("[Getter/Setter]","special"):w=d.stylize("[Getter]","special"):L.set&&(w=d.stylize("[Setter]","special")),te(B,s)||(y="["+s+"]"),w||(d.seen.indexOf(L.value)<0?(m(_)?w=C(d,L.value,null):w=C(d,L.value,_-1),w.indexOf(`
|
|
2
2
|
`)>-1&&(f?w=w.split(`
|
|
3
3
|
`).map(function(o){return" "+o}).join(`
|
|
4
4
|
`).slice(2):w=`
|
|
@@ -8852,6 +8852,7 @@ const fW = ({ mainState: { currentDocument: Z } }) => {
|
|
|
8852
8852
|
inWrapper: !0,
|
|
8853
8853
|
ignoreWidth: !1,
|
|
8854
8854
|
ignoreHeight: !1,
|
|
8855
|
+
ignoreLastRenderedPageBreak: !1,
|
|
8855
8856
|
renderHeaders: !0,
|
|
8856
8857
|
renderFooters: !0,
|
|
8857
8858
|
renderFootnotes: !0,
|
|
@@ -13422,13 +13423,13 @@ if (Kt) {
|
|
|
13422
13423
|
"./empty-GlqisfcO.js"
|
|
13423
13424
|
), t = await import(
|
|
13424
13425
|
/*webpackIgnore: true*/
|
|
13425
|
-
"./index-
|
|
13426
|
+
"./index-CaSRFyN8.js"
|
|
13426
13427
|
).then((c) => c.i), d = await import(
|
|
13427
13428
|
/*webpackIgnore: true*/
|
|
13428
|
-
"./index
|
|
13429
|
+
"./index-CWE4iuub.js"
|
|
13429
13430
|
).then((c) => c.i), U = await import(
|
|
13430
13431
|
/*webpackIgnore: true*/
|
|
13431
|
-
"./url-
|
|
13432
|
+
"./url-fA7e74OD.js"
|
|
13432
13433
|
).then((c) => c.u);
|
|
13433
13434
|
let n, F;
|
|
13434
13435
|
return new Map(Object.entries({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-BuGkDBlW.cjs");exports.BMPRenderer=e.BMPRenderer;exports.CSVRenderer=e.CSVRenderer;exports.DocViewerRenderers=e.DocViewerRenderers;exports.DocxRenderer=e.DocxRenderer;exports.GIFRenderer=e.JPGRenderer$1;exports.HTMLRenderer=e.HTMLRenderer;exports.JPGRenderer=e.JPGRenderer;exports.MSDocRenderer=e.MSDocRenderer;exports.MarkdownRenderer=e.MarkdownRenderer;exports.PDFRenderer=e.PDFRenderer;exports.PNGRenderer=e.PNGRenderer;exports.RTFRenderer=e.RTFRenderer;exports.SplitDocViewer=e.SplitDocViewer;exports.TIFFRenderer=e.TIFFRenderer;exports.TXTRenderer=e.TXTRenderer;exports.VideoRenderer=e.VideoRenderer;exports.WebPRenderer=e.WebPRenderer;exports.arrayBufferFileLoader=e.arrayBufferFileLoader;exports.binaryStringFileLoader=e.binaryStringFileLoader;exports.dataURLFileLoader=e.dataURLFileLoader;exports.default=e.DocViewer;exports.defaultFileLoader=e.defaultFileLoader;exports.supportedLanguages=e.supportedLanguages;exports.textFileLoader=e.textFileLoader;
|
package/dist/react-doc-viewer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as a, C as s, b as d, k as n, o as R, H as o, J as i, l as t, M as F, P as l, m as L, R as f, S as D, T as P, n as T, V as u, W as M, e as S, h as V, f as c, D as p, i as b, s as g, t as w } from "./index-
|
|
1
|
+
import { j as a, C as s, b as d, k as n, o as R, H as o, J as i, l as t, M as F, P as l, m as L, R as f, S as D, T as P, n as T, V as u, W as M, e as S, h as V, f as c, D as p, i as b, s as g, t as w } from "./index-rfbv2aNT.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BMPRenderer,
|
|
4
4
|
s as CSVRenderer,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";const re=require("./index-
|
|
1
|
+
"use strict";const re=require("./index-BuGkDBlW.cjs");var ne={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */ne.exports;(function(e,r){(function(t){var o=r&&!r.nodeType&&r,a=e&&!e.nodeType&&e,p=typeof re.commonjsGlobal=="object"&&re.commonjsGlobal;(p.global===p||p.window===p||p.self===p)&&(t=p);var l,n=2147483647,m=36,c=1,x=26,_=38,g=700,u=72,w=128,N="-",A=/^xn--/,K=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=m-c,v=Math.floor,C=String.fromCharCode,z;function U(s){throw new RangeError(y[s])}function j(s,i){for(var f=s.length,d=[];f--;)d[f]=i(s[f]);return d}function M(s,i){var f=s.split("@"),d="";f.length>1&&(d=f[0]+"@",s=f[1]),s=s.replace(h,".");var b=s.split("."),I=j(b,i).join(".");return d+I}function J(s){for(var i=[],f=0,d=s.length,b,I;f<d;)b=s.charCodeAt(f++),b>=55296&&b<=56319&&f<d?(I=s.charCodeAt(f++),(I&64512)==56320?i.push(((b&1023)<<10)+(I&1023)+65536):(i.push(b),f--)):i.push(b);return i}function ee(s){return j(s,function(i){var f="";return i>65535&&(i-=65536,f+=C(i>>>10&1023|55296),i=56320|i&1023),f+=C(i),f}).join("")}function W(s){return s-48<10?s-22:s-65<26?s-65:s-97<26?s-97:m}function X(s,i){return s+22+75*(s<26)-((i!=0)<<5)}function Y(s,i,f){var d=0;for(s=f?v(s/g):s>>1,s+=v(s/i);s>T*x>>1;d+=m)s=v(s/T);return v(d+(T+1)*s/(s+_))}function Z(s){var i=[],f=s.length,d,b=0,I=w,R=u,F,S,$,D,O,L,q,B,V;for(F=s.lastIndexOf(N),F<0&&(F=0),S=0;S<F;++S)s.charCodeAt(S)>=128&&U("not-basic"),i.push(s.charCodeAt(S));for($=F>0?F+1:0;$<f;){for(D=b,O=1,L=m;$>=f&&U("invalid-input"),q=W(s.charCodeAt($++)),(q>=m||q>v((n-b)/O))&&U("overflow"),b+=q*O,B=L<=R?c:L>=R+x?x:L-R,!(q<B);L+=m)V=m-B,O>v(n/V)&&U("overflow"),O*=V;d=i.length+1,R=Y(b-D,d,D==0),v(b/d)>n-I&&U("overflow"),I+=v(b/d),b%=d,i.splice(b++,0,I)}return ee(i)}function te(s){var i,f,d,b,I,R,F,S,$,D,O,L=[],q,B,V,oe;for(s=J(s),q=s.length,i=w,f=0,I=u,R=0;R<q;++R)O=s[R],O<128&&L.push(C(O));for(d=b=L.length,b&&L.push(N);d<q;){for(F=n,R=0;R<q;++R)O=s[R],O>=i&&O<F&&(F=O);for(B=d+1,F-i>v((n-f)/B)&&U("overflow"),f+=(F-i)*B,i=F,R=0;R<q;++R)if(O=s[R],O<i&&++f>n&&U("overflow"),O==i){for(S=f,$=m;D=$<=I?c:$>=I+x?x:$-I,!(S<D);$+=m)oe=S-D,V=m-D,L.push(C(X(D+oe%V,0))),S=v(oe/V);L.push(C(X(S,0))),I=Y(f,B,d==b),f=0,++d}++f,++i}return L.join("")}function Ue(s){return M(s,function(i){return A.test(i)?Z(i.slice(4).toLowerCase()):i})}function Oe(s){return M(s,function(i){return K.test(i)?"xn--"+te(i):i})}if(l={version:"1.4.1",ucs2:{decode:J,encode:ee},decode:Z,encode:te,toASCII:Oe,toUnicode:Ue},o&&a)if(e.exports==o)a.exports=l;else for(z in l)l.hasOwnProperty(z)&&(o[z]=l[z]);else t.punycode=l})(re.commonjsGlobal)})(ne,ne.exports);var Ie=ne.exports;const Te=re.getDefaultExportFromCjs(Ie);function je(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Fe=function(e,r,t,o){r=r||"&",t=t||"=";var a={};if(typeof e!="string"||e.length===0)return a;var p=/\+/g;e=e.split(r);var l=1e3;o&&typeof o.maxKeys=="number"&&(l=o.maxKeys);var n=e.length;l>0&&n>l&&(n=l);for(var m=0;m<n;++m){var c=e[m].replace(p,"%20"),x=c.indexOf(t),_,g,u,w;x>=0?(_=c.substr(0,x),g=c.substr(x+1)):(_=c,g=""),u=decodeURIComponent(_),w=decodeURIComponent(g),je(a,u)?Le(a[u])?a[u].push(w):a[u]=[a[u],w]:a[u]=w}return a},Le=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},Q=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Pe=function(e,r,t,o){return r=r||"&",t=t||"=",e===null&&(e=void 0),typeof e=="object"?ie(Se(e),function(a){var p=encodeURIComponent(Q(a))+t;return _e(e[a])?ie(e[a],function(l){return p+encodeURIComponent(Q(l))}).join(r):p+encodeURIComponent(Q(e[a]))}).join(r):o?encodeURIComponent(Q(o))+t+encodeURIComponent(Q(e)):""},_e=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function ie(e,r){if(e.map)return e.map(r);for(var t=[],o=0;o<e.length;o++)t.push(r(e[o],o));return t}var Se=Object.keys||function(e){var r=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r},le,pe,qe=pe=Fe,$e=le=Pe;function Ee(e){return encodeURIComponent(e)}function Me(e){return decodeURIComponent(e)}var De={decode:qe,encode:$e,parse:pe,stringify:le,escape:Ee,unescape:Me},Ne={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},ze=Te,E=Ne,Be=k,Ge=tt,me=rt,Ke=et,We=P;function P(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Ze=/^([a-z0-9.+-]+:)/i,Ve=/:[0-9]*$/,Je=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Xe=["<",">",'"',"`"," ","\r",`
|
|
2
2
|
`," "],Ye=["{","}","|","\\","^","`"].concat(Xe),se=["'"].concat(Ye),fe=["%","/","?",";","#"].concat(se),ue=["/","?","#"],He=255,ce=/^[+a-z0-9A-Z_-]{0,63}$/,Qe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ke={javascript:!0,"javascript:":!0},ae={javascript:!0,"javascript:":!0},H={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},he=De;function k(e,r,t){if(e&&E.isObject(e)&&e instanceof P)return e;var o=new P;return o.parse(e,r,t),o}P.prototype.parse=function(e,r,t){if(!E.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),a=o!==-1&&o<e.indexOf("#")?"?":"#",p=e.split(a),l=/\\/g;p[0]=p[0].replace(l,"/"),e=p.join(a);var n=e;if(n=n.trim(),!t&&e.split("#").length===1){var m=Je.exec(n);if(m)return this.path=n,this.href=n,this.pathname=m[1],m[2]?(this.search=m[2],r?this.query=he.parse(this.search.substr(1)):this.query=this.search.substr(1)):r&&(this.search="",this.query={}),this}var c=Ze.exec(n);if(c){c=c[0];var x=c.toLowerCase();this.protocol=x,n=n.substr(c.length)}if(t||c||n.match(/^\/\/[^@\/]+@[^@\/]+/)){var _=n.substr(0,2)==="//";_&&!(c&&ae[c])&&(n=n.substr(2),this.slashes=!0)}if(!ae[c]&&(_||c&&!H[c])){for(var g=-1,u=0;u<ue.length;u++){var w=n.indexOf(ue[u]);w!==-1&&(g===-1||w<g)&&(g=w)}var N,A;g===-1?A=n.lastIndexOf("@"):A=n.lastIndexOf("@",g),A!==-1&&(N=n.slice(0,A),n=n.slice(A+1),this.auth=decodeURIComponent(N)),g=-1;for(var u=0;u<fe.length;u++){var w=n.indexOf(fe[u]);w!==-1&&(g===-1||w<g)&&(g=w)}g===-1&&(g=n.length),this.host=n.slice(0,g),n=n.slice(g),this.parseHost(),this.hostname=this.hostname||"";var K=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!K)for(var h=this.hostname.split(/\./),u=0,y=h.length;u<y;u++){var T=h[u];if(T&&!T.match(ce)){for(var v="",C=0,z=T.length;C<z;C++)T.charCodeAt(C)>127?v+="x":v+=T[C];if(!v.match(ce)){var U=h.slice(0,u),j=h.slice(u+1),M=T.match(Qe);M&&(U.push(M[1]),j.unshift(M[2])),j.length&&(n="/"+j.join(".")+n),this.hostname=U.join(".");break}}}this.hostname.length>He?this.hostname="":this.hostname=this.hostname.toLowerCase(),K||(this.hostname=ze.toASCII(this.hostname));var J=this.port?":"+this.port:"",ee=this.hostname||"";this.host=ee+J,this.href+=this.host,K&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),n[0]!=="/"&&(n="/"+n))}if(!ke[x])for(var u=0,y=se.length;u<y;u++){var W=se[u];if(n.indexOf(W)!==-1){var X=encodeURIComponent(W);X===W&&(X=escape(W)),n=n.split(W).join(X)}}var Y=n.indexOf("#");Y!==-1&&(this.hash=n.substr(Y),n=n.slice(0,Y));var Z=n.indexOf("?");if(Z!==-1?(this.search=n.substr(Z),this.query=n.substr(Z+1),r&&(this.query=he.parse(this.query)),n=n.slice(0,Z)):r&&(this.search="",this.query={}),n&&(this.pathname=n),H[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var J=this.pathname||"",te=this.search||"";this.path=J+te}return this.href=this.format(),this};function et(e){return E.isString(e)&&(e=k(e)),e instanceof P?e.format():P.prototype.format.call(e)}P.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var r=this.protocol||"",t=this.pathname||"",o=this.hash||"",a=!1,p="";this.host?a=e+this.host:this.hostname&&(a=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&E.isObject(this.query)&&Object.keys(this.query).length&&(p=he.stringify(this.query));var l=this.search||p&&"?"+p||"";return r&&r.substr(-1)!==":"&&(r+=":"),this.slashes||(!r||H[r])&&a!==!1?(a="//"+(a||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):a||(a=""),o&&o.charAt(0)!=="#"&&(o="#"+o),l&&l.charAt(0)!=="?"&&(l="?"+l),t=t.replace(/[?#]/g,function(n){return encodeURIComponent(n)}),l=l.replace("#","%23"),r+a+t+l+o};function tt(e,r){return k(e,!1,!0).resolve(r)}P.prototype.resolve=function(e){return this.resolveObject(k(e,!1,!0)).format()};function rt(e,r){return e?k(e,!1,!0).resolveObject(r):r}P.prototype.resolveObject=function(e){if(E.isString(e)){var r=new P;r.parse(e,!1,!0),e=r}for(var t=new P,o=Object.keys(this),a=0;a<o.length;a++){var p=o[a];t[p]=this[p]}if(t.hash=e.hash,e.href==="")return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),n=0;n<l.length;n++){var m=l[n];m!=="protocol"&&(t[m]=e[m])}return H[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!H[e.protocol]){for(var c=Object.keys(e),x=0;x<c.length;x++){var _=c[x];t[_]=e[_]}return t.href=t.format(),t}if(t.protocol=e.protocol,!e.host&&!ae[e.protocol]){for(var y=(e.pathname||"").split("/");y.length&&!(e.host=y.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),y[0]!==""&&y.unshift(""),y.length<2&&y.unshift(""),t.pathname=y.join("/")}else t.pathname=e.pathname;if(t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,t.pathname||t.search){var g=t.pathname||"",u=t.search||"";t.path=g+u}return t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var w=t.pathname&&t.pathname.charAt(0)==="/",N=e.host||e.pathname&&e.pathname.charAt(0)==="/",A=N||w||t.host&&e.pathname,K=A,h=t.pathname&&t.pathname.split("/")||[],y=e.pathname&&e.pathname.split("/")||[],T=t.protocol&&!H[t.protocol];if(T&&(t.hostname="",t.port=null,t.host&&(h[0]===""?h[0]=t.host:h.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(y[0]===""?y[0]=e.host:y.unshift(e.host)),e.host=null),A=A&&(y[0]===""||h[0]==="")),N)t.host=e.host||e.host===""?e.host:t.host,t.hostname=e.hostname||e.hostname===""?e.hostname:t.hostname,t.search=e.search,t.query=e.query,h=y;else if(y.length)h||(h=[]),h.pop(),h=h.concat(y),t.search=e.search,t.query=e.query;else if(!E.isNullOrUndefined(e.search)){if(T){t.hostname=t.host=h.shift();var v=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;v&&(t.auth=v.shift(),t.host=t.hostname=v.shift())}return t.search=e.search,t.query=e.query,(!E.isNull(t.pathname)||!E.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!h.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var C=h.slice(-1)[0],z=(t.host||e.host||h.length>1)&&(C==="."||C==="..")||C==="",U=0,j=h.length;j>=0;j--)C=h[j],C==="."?h.splice(j,1):C===".."?(h.splice(j,1),U++):U&&(h.splice(j,1),U--);if(!A&&!K)for(;U--;U)h.unshift("..");A&&h[0]!==""&&(!h[0]||h[0].charAt(0)!=="/")&&h.unshift(""),z&&h.join("/").substr(-1)!=="/"&&h.push("");var M=h[0]===""||h[0]&&h[0].charAt(0)==="/";if(T){t.hostname=t.host=M?"":h.length?h.shift():"";var v=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;v&&(t.auth=v.shift(),t.host=t.hostname=v.shift())}return A=A||t.host&&h.length,A&&!M&&h.unshift(""),h.length?t.pathname=h.join("/"):(t.pathname=null,t.path=null),(!E.isNull(t.pathname)||!E.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t};P.prototype.parseHost=function(){var e=this.host,r=Ve.exec(e);r&&(r=r[0],r!==":"&&(this.port=r.substr(1)),e=e.substr(0,e.length-r.length)),e&&(this.hostname=e)};function nt(e,r){for(var t=0,o=e.length-1;o>=0;o--){var a=e[o];a==="."?e.splice(o,1):a===".."?(e.splice(o,1),t++):t&&(e.splice(o,1),t--)}if(r)for(;t--;t)e.unshift("..");return e}function ot(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var o=t>=0?arguments[t]:"/";if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)continue;e=o+"/"+e,r=o.charAt(0)==="/"}return e=nt(st(e.split("/"),function(a){return!!a}),!r).join("/"),(r?"/":"")+e||"."}function st(e,r){if(e.filter)return e.filter(r);for(var t=[],o=0;o<e.length;o++)r(e[o],o,e)&&t.push(e[o]);return t}var de=function(e){function r(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object),at=Ke,ve=Be,ge=Ge,ye=We,G=de.URL,be=de.URLSearchParams,ht=/%/g,it=/\\/g,ft=/\n/g,ut=/\r/g,ct=/\t/g,lt=47;function pt(e){var r=e??null;return!!(r!==null&&(r!=null&&r.href)&&(r!=null&&r.origin))}function mt(e){if(e.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var r=e.pathname,t=0;t<r.length;t++)if(r[t]==="%"){var o=r.codePointAt(t+2)|32;if(r[t+1]==="2"&&o===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(r)}function dt(e){return e.includes("%")&&(e=e.replace(ht,"%25")),e.includes("\\")&&(e=e.replace(it,"%5C")),e.includes(`
|
|
3
3
|
`)&&(e=e.replace(ft,"%0A")),e.includes("\r")&&(e=e.replace(ut,"%0D")),e.includes(" ")&&(e=e.replace(ct,"%09")),e}var xe=function(r){if(typeof r>"u")throw new TypeError('The "domain" argument must be specified');return new G("http://"+r).hostname},we=function(r){if(typeof r>"u")throw new TypeError('The "domain" argument must be specified');return new G("http://"+r).hostname},Ce=function(r){var t=new G("file://"),o=ot(r),a=r.charCodeAt(r.length-1);return a===lt&&o[o.length-1]!=="/"&&(o+="/"),t.pathname=dt(o),t},Re=function(r){if(!pt(r)&&typeof r!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof r+" ("+r+")");var t=new G(r);if(t.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return mt(t)},Ae=function(r,t){var o,a,p;if(t===void 0&&(t={}),!(r instanceof G))return at(r);if(typeof t!="object"||t===null)throw new TypeError('The "options" argument must be of type object.');var l=(o=t.auth)!=null?o:!0,n=(a=t.fragment)!=null?a:!0,m=(p=t.search)!=null?p:!0,c=new G(r.toString());return l||(c.username="",c.password=""),n||(c.hash=""),m||(c.search=""),c.toString()},vt={format:Ae,parse:ve,resolve:ge,resolveObject:me,Url:ye,URL:G,URLSearchParams:be,domainToASCII:xe,domainToUnicode:we,pathToFileURL:Ce,fileURLToPath:Re};const gt=Object.freeze(Object.defineProperty({__proto__:null,URL:G,URLSearchParams:be,Url:ye,default:vt,domainToASCII:xe,domainToUnicode:we,fileURLToPath:Re,format:Ae,parse:ve,pathToFileURL:Ce,resolve:ge,resolveObject:me},Symbol.toStringTag,{value:"Module"}));exports.url=gt;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iamjariwala/react-doc-viewer",
|
|
3
|
-
"version": "1.6.
|
|
4
|
-
"description": "React document viewer and PDF viewer component — render PDF, Word, Excel, PowerPoint, images, video, CSV and 20+ file types with drag-and-drop,
|
|
3
|
+
"version": "1.6.1",
|
|
4
|
+
"description": "React document viewer and PDF viewer component — render PDF, Word (DOCX inline), Excel, PowerPoint, Markdown, images, video, CSV and 20+ file types with annotations, text search, dark mode, drag-and-drop, thumbnails, zoom and i18n.",
|
|
5
5
|
"author": "Mehul Jariwala",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"keywords": [
|
|
@@ -91,7 +91,23 @@
|
|
|
91
91
|
"responsive",
|
|
92
92
|
"accessible",
|
|
93
93
|
"ssr",
|
|
94
|
-
"server-side-rendering"
|
|
94
|
+
"server-side-rendering",
|
|
95
|
+
"dark-mode",
|
|
96
|
+
"text-search",
|
|
97
|
+
"search-highlight",
|
|
98
|
+
"pdf-search",
|
|
99
|
+
"markdown-viewer",
|
|
100
|
+
"markdown",
|
|
101
|
+
"rtf",
|
|
102
|
+
"docx-viewer",
|
|
103
|
+
"docx-preview",
|
|
104
|
+
"watermark",
|
|
105
|
+
"bookmarks",
|
|
106
|
+
"pdf-bookmarks",
|
|
107
|
+
"keyboard-shortcuts",
|
|
108
|
+
"split-view",
|
|
109
|
+
"fullscreen",
|
|
110
|
+
"password-protected-pdf"
|
|
95
111
|
],
|
|
96
112
|
"license": "Apache-2.0",
|
|
97
113
|
"homepage": "https://github.com/mehuljariwala/react-doc-viewer",
|