@ututrust/web-components 1.1.19 → 1.1.20
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/CHANGELOG.md +23 -0
- package/dist/index.js +1062 -485
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -283,10 +283,10 @@
|
|
|
283
283
|
(module.exports = function (key, value) {
|
|
284
284
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
285
285
|
})('versions', []).push({
|
|
286
|
-
version: '3.
|
|
286
|
+
version: '3.21.1',
|
|
287
287
|
mode: 'global',
|
|
288
288
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
289
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
289
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
|
|
290
290
|
source: 'https://github.com/zloirock/core-js'
|
|
291
291
|
});
|
|
292
292
|
});
|
|
@@ -898,7 +898,7 @@
|
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
-
var n$2,l$3,u$4,t$3,r$5,o$4,f$3,e$3={},c$4=[],s$4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a$3(n,l){for(var u in l)n[u]=l[u];return n}function h$2(n){var l=n.parentNode;l&&l.removeChild(n);}function v$2(l,u,i){var t,r,o,f={};for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===f[o]&&(f[o]=l.defaultProps[o]);return y$1(l,f,t,r,null)}function y$1(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u$4:o};return null==o&&null!=l$3.vnode&&l$3.vnode(f),f}function d$2(n){return n.children}function _(n,l){this.props=n,this.context=l;}function k$1(n,l){if(null==l)return n.__?k$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?k$1(n):null}function b$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return b$1(n)}}function m$1(n){(!n.__d&&(n.__d=!0)&&t$3.push(n)&&!g$1.__r++||o$4!==l$3.debounceRendering)&&((o$4=l$3.debounceRendering)||r$5)(g$1);}function g$1(){for(var n;g$1.__r=t$3.length;)n=t$3.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$3=[],n.some(function(n){var l,u,i,t,r,o;n.__d&&(r=(t=(l=n).__v).__e,(o=l.__P)&&(u=[],(i=a$3({},t)).__v=t.__v+1,j$3(o,t,i,l.__n,void 0!==o.ownerSVGElement,null!=t.__h?[r]:null,u,null==r?k$1(t):r,t.__h),z$2(u,t),t.__e!=r&&b$1(t)));});}function w$2(n,l,u,i,t,r,o,f,s,a){var h,v,p,_,b,m,g,w=i&&i.__k||c$4,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y$1(null,_,null,null,_):Array.isArray(_)?y$1(d$2,{children:_},null,null,null):_.__b>0?y$1(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null;}j$3(n,_,p=p||e$3,t,r,o,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,_),g.push(v,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x$2(_,s,n):s=P$1(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k$1(p));}for(u.__e=m,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=k$1(i,h+1)),N(w[h],w[h]));if(g)for(h=0;h<g.length;h++)M$1(g[h],g[++h],g[++h]);}function x$2(n,l,u){for(var i,t=n.__k,r=0;t&&r<t.length;r++)(i=t[r])&&(i.__=n,l="function"==typeof i.type?x$2(i,l,u):P$1(u,i,i,t,i.__e,l));return l}function A$2(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){A$2(n,l);}):l.push(n)),l}function P$1(n,l,u,i,t,r){var o,f,e;if(void 0!==l.__d)o=l.__d,l.__d=void 0;else if(null==u||t!=r||null==t.parentNode)n:if(null==r||r.parentNode!==n)n.appendChild(t),o=null;else {for(f=r,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,r),o=r;}return void 0!==o?o:t.nextSibling}function C$1(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||H$1(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||H$1(n,r,l[r],u[r],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s$4.test(l)?u:u+"px";}function H$1(n,l,u,i,t){var r;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?T$1:I,r):n.removeEventListener(l,r?T$1:I,r);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$3.event?l$3.event(n):n);}function T$1(n){this.l[n.type+!0](l$3.event?l$3.event(n):n);}function j$3(n,u,i,t,r,o,f,e,c){var s,h,v,y,p,k,b,m,g,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l$3.__b)&&s(u);try{n:if("function"==typeof P){if(m=u.props,g=(s=P.contextType)&&t[s.__c],x=s?g?g.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(m,x):(u.__c=h=new _(m,x),h.constructor=P,h.render=O$1),g&&g.sub(h),h.props=m,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a$3({},h.__s)),a$3(h.__s,P.getDerivedStateFromProps(m,h.__s))),y=h.props,p=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,x)||u.__v===i.__v){h.props=m,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k);});}h.context=x,h.props=m,h.state=h.__s,(s=l$3.__r)&&s(u),h.__d=!1,h.__v=u,h.__P=n,s=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(t=a$3(a$3({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),A=null!=s&&s.type===d$2&&null==s.key?s.props.children:s,w$2(n,Array.isArray(A)?A:[A],u,i,t,r,o,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L$1(i.__e,u,i,t,r,o,f,c);(s=l$3.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=o)&&(u.__e=e,u.__h=!!c,o[o.indexOf(e)]=null),l$3.__e(n,u,i);}}function z$2(n,u){l$3.__c&&l$3.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$3.__e(n,u.__v);}});}function L$1(l,u,i,t,r,o,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(r=!0),null!=o)for(;_<o.length;_++)if((s=o[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,o[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(o=o&&n$2.call(l.childNodes),a=(y=i.props||e$3).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=o)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$1(l,p,y,r,c),v)u.__k=[];else if(_=u.props.children,w$2(l,Array.isArray(_)?_:[_],u,i,t,r&&"foreignObject"!==d,o,f,o?o[0]:i.__k&&k$1(i,0),c),null!=o)for(_=o.length;_--;)null!=o[_]&&h$2(o[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==y.value||_!==l.value||"progress"===d&&!_)&&H$1(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&H$1(l,"checked",_,y.checked,!1));}return l}function M$1(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$3.__e(n,i);}}function N(n,u,i){var t,r;if(l$3.unmount&&l$3.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M$1(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$3.__e(n,u);}t.base=t.__P=null;}if(t=n.__k)for(r=0;r<t.length;r++)t[r]&&N(t[r],u,"function"!=typeof n.type);i||null==n.__e||h$2(n.__e),n.__e=n.__d=void 0;}function O$1(n,l,u){return this.constructor(n,u)}function S$1(u,i,t){var r,o,f;l$3.__&&l$3.__(u,i),o=(r="function"==typeof t)?null:t&&t.__k||i.__k,f=[],j$3(i,u=(!r&&t||i).__k=v$2(d$2,null,[u]),o||e$3,e$3,void 0!==i.ownerSVGElement,!r&&t?[t]:o?null:i.firstChild?n$2.call(i.childNodes):null,f,!r&&t?t:o?o.__e:i.firstChild,r),z$2(f,u);}function q$1(n,l){S$1(n,l,q$1);}function B(l,u,i){var t,r,o,f=a$3({},l.props);for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];return arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):i),y$1(l.type,f,t||l.key,r||l.ref,null)}function D(n,l){var u={__c:l="__cC"+f$3++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(m$1);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$2=c$4.slice,l$3={__e:function(n,l){for(var u,i,t;l=l.__;)if((u=l.__c)&&!u.__)try{if((i=u.constructor)&&null!=i.getDerivedStateFromError&&(u.setState(i.getDerivedStateFromError(n)),t=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),t=u.__d),t)return u.__E=u}catch(l){n=l;}throw n}},u$4=0,_.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a$3({},this.state),"function"==typeof n&&(n=n(a$3({},u),this.props)),n&&a$3(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),m$1(this));},_.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m$1(this));},_.prototype.render=d$2,t$3=[],r$5="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g$1.__r=0,f$3=0;
|
|
901
|
+
var n$2,l$3,u$4,t$3,o$4,r$5,f$3,e$3={},c$4=[],s$4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a$3(n,l){for(var u in l)n[u]=l[u];return n}function h$2(n){var l=n.parentNode;l&&l.removeChild(n);}function v$2(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return y$1(l,f,t,o,null)}function y$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$4:r};return null==r&&null!=l$3.vnode&&l$3.vnode(f),f}function d$2(n){return n.children}function _(n,l){this.props=n,this.context=l;}function k$1(n,l){if(null==l)return n.__?k$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?k$1(n):null}function b$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return b$1(n)}}function m$1(n){(!n.__d&&(n.__d=!0)&&t$3.push(n)&&!g$1.__r++||r$5!==l$3.debounceRendering)&&((r$5=l$3.debounceRendering)||o$4)(g$1);}function g$1(){for(var n;g$1.__r=t$3.length;)n=t$3.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$3=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=a$3({},t)).__v=t.__v+1,j$3(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?k$1(t):o,t.__h),z$2(u,t),t.__e!=o&&b$1(t)));});}function w$2(n,l,u,i,t,o,r,f,s,a){var h,v,p,_,b,m,g,w=i&&i.__k||c$4,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y$1(null,_,null,null,_):Array.isArray(_)?y$1(d$2,{children:_},null,null,null):_.__b>0?y$1(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null;}j$3(n,_,p=p||e$3,t,o,r,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,_),g.push(v,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x$2(_,s,n):s=P$1(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k$1(p));}for(u.__e=m,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=k$1(i,h+1)),N(w[h],w[h]));if(g)for(h=0;h<g.length;h++)M$1(g[h],g[++h],g[++h]);}function x$2(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?x$2(i,l,u):P$1(u,i,i,t,i.__e,l));return l}function A$2(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){A$2(n,l);}):l.push(n)),l}function P$1(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C$1(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H$1(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s$4.test(l)?u:u+"px";}function H$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$1:I,o):n.removeEventListener(l,o?T$1:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$3.event?l$3.event(n):n);}function T$1(n){this.l[n.type+!0](l$3.event?l$3.event(n):n);}function j$3(n,u,i,t,o,r,f,e,c){var s,h,v,y,p,k,b,m,g,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(s=l$3.__b)&&s(u);try{n:if("function"==typeof P){if(m=u.props,g=(s=P.contextType)&&t[s.__c],x=s?g?g.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(m,x):(u.__c=h=new _(m,x),h.constructor=P,h.render=O$1),g&&g.sub(h),h.props=m,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a$3({},h.__s)),a$3(h.__s,P.getDerivedStateFromProps(m,h.__s))),y=h.props,p=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,x)||u.__v===i.__v){h.props=m,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k);});}h.context=x,h.props=m,h.state=h.__s,(s=l$3.__r)&&s(u),h.__d=!1,h.__v=u,h.__P=n,s=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(t=a$3(a$3({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),A=null!=s&&s.type===d$2&&null==s.key?s.props.children:s,w$2(n,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L$1(i.__e,u,i,t,o,r,f,c);(s=l$3.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$3.__e(n,u,i);}}function z$2(n,u){l$3.__c&&l$3.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$3.__e(n,u.__v);}});}function L$1(l,u,i,t,o,r,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(o=!0),null!=r)for(;_<r.length;_++)if((s=r[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n$2.call(l.childNodes),a=(y=i.props||e$3).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$1(l,p,y,o,c),v)u.__k=[];else if(_=u.props.children,w$2(l,Array.isArray(_)?_:[_],u,i,t,o&&"foreignObject"!==d,r,f,r?r[0]:i.__k&&k$1(i,0),c),null!=r)for(_=r.length;_--;)null!=r[_]&&h$2(r[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&H$1(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&H$1(l,"checked",_,y.checked,!1));}return l}function M$1(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$3.__e(n,i);}}function N(n,u,i){var t,o;if(l$3.unmount&&l$3.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M$1(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$3.__e(n,u);}t.base=t.__P=null;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||h$2(n.__e),n.__e=n.__d=void 0;}function O$1(n,l,u){return this.constructor(n,u)}function S$1(u,i,t){var o,r,f;l$3.__&&l$3.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,f=[],j$3(i,u=(!o&&t||i).__k=v$2(d$2,null,[u]),r||e$3,e$3,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n$2.call(i.childNodes):null,f,!o&&t?t:r?r.__e:i.firstChild,o),z$2(f,u);}function q$1(n,l){S$1(n,l,q$1);}function B(l,u,i){var t,o,r,f=a$3({},l.props);for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n$2.call(arguments,2):i),y$1(l.type,f,t||l.key,o||l.ref,null)}function D(n,l){var u={__c:l="__cC"+f$3++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(m$1);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n$2=c$4.slice,l$3={__e:function(n,l){for(var u,i,t;l=l.__;)if((u=l.__c)&&!u.__)try{if((i=u.constructor)&&null!=i.getDerivedStateFromError&&(u.setState(i.getDerivedStateFromError(n)),t=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),t=u.__d),t)return u.__E=u}catch(l){n=l;}throw n}},u$4=0,_.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a$3({},this.state),"function"==typeof n&&(n=n(a$3({},u),this.props)),n&&a$3(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),m$1(this));},_.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m$1(this));},_.prototype.render=d$2,t$3=[],o$4="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g$1.__r=0,f$3=0;
|
|
902
902
|
|
|
903
903
|
function r$4() {
|
|
904
904
|
return (r$4 = Object.assign || function (t) {
|
|
@@ -1015,7 +1015,7 @@
|
|
|
1015
1015
|
}), customElements.define(e || t.tagName || t.displayName || t.name, r);
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
|
-
var t$2,u$2,r$3,o$3=0,i$2=[],c$2=l$3.__b,f$2=l$3.__r,e$2=l$3.diffed,a$1=l$3.__c,v$1=l$3.unmount;function m(t,r){l$3.__h&&l$3.__h(u$2,t,o$3||r),o$3=0;var i=u$2.__H||(u$2.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l$1(n){return o$3=1,p(w$1,n)}function p(n,r,o){var i=m(t$2++,2);return i.t=n,i.__c||(i.__=[o?o(r):w$1(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u$2),i.__}function y(r,o){var i=m(t$2++,3);!l$3.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u$2.__H.__h.push(i));}function h$1(r,o){var i=m(t$2++,4);!l$3.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u$2.__h.push(i));}function s$2(n){return o$3=5,d$1(function(){return {current:n}},[])}function d$1(n,u){var r=m(t$2++,7);return k(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A$1(n,t){return o$3=8,d$1(function(){return n},t)}function x$1(){
|
|
1018
|
+
var t$2,u$2,r$3,o$3=0,i$2=[],c$2=l$3.__b,f$2=l$3.__r,e$2=l$3.diffed,a$1=l$3.__c,v$1=l$3.unmount;function m(t,r){l$3.__h&&l$3.__h(u$2,t,o$3||r),o$3=0;var i=u$2.__H||(u$2.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l$1(n){return o$3=1,p(w$1,n)}function p(n,r,o){var i=m(t$2++,2);return i.t=n,i.__c||(i.__=[o?o(r):w$1(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u$2),i.__}function y(r,o){var i=m(t$2++,3);!l$3.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u$2.__H.__h.push(i));}function h$1(r,o){var i=m(t$2++,4);!l$3.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u$2.__h.push(i));}function s$2(n){return o$3=5,d$1(function(){return {current:n}},[])}function d$1(n,u){var r=m(t$2++,7);return k(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A$1(n,t){return o$3=8,d$1(function(){return n},t)}function x$1(){for(var t;t=i$2.shift();)if(t.__P)try{t.__H.__h.forEach(g),t.__H.__h.forEach(j$2),t.__H.__h=[];}catch(u){t.__H.__h=[],l$3.__e(u,t.__v);}}l$3.__b=function(n){u$2=null,c$2&&c$2(n);},l$3.__r=function(n){f$2&&f$2(n),t$2=0;var r=(u$2=n.__c).__H;r&&(r.__h.forEach(g),r.__h.forEach(j$2),r.__h=[]);},l$3.diffed=function(t){e$2&&e$2(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i$2.push(o)&&r$3===l$3.requestAnimationFrame||((r$3=l$3.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x$1)),u$2=null;},l$3.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g),t.__h=t.__h.filter(function(n){return !n.__||j$2(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],l$3.__e(r,t.__v);}}),a$1&&a$1(t,u);},l$3.unmount=function(t){v$1&&v$1(t);var u,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{g(n);}catch(n){u=n;}}),u&&l$3.__e(u,r.__v));};var b="function"==typeof requestAnimationFrame;function g(n){var t=u$2,r=n.__c;"function"==typeof r&&(n.__c=void 0,r()),u$2=t;}function j$2(n){var t=u$2;n.__c=n.__(),u$2=t;}function k(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w$1(n,t){return "function"==typeof t?t(n):t}
|
|
1019
1019
|
|
|
1020
1020
|
function ownKeys$2(object, enumerableOnly) {
|
|
1021
1021
|
var keys = Object.keys(object);
|
|
@@ -3958,38 +3958,52 @@
|
|
|
3958
3958
|
return config;
|
|
3959
3959
|
};
|
|
3960
3960
|
|
|
3961
|
-
var
|
|
3962
|
-
var
|
|
3963
|
-
var
|
|
3964
|
-
var
|
|
3965
|
-
var
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3961
|
+
var _from = "axios@^0.21.1";
|
|
3962
|
+
var _id = "axios@0.21.4";
|
|
3963
|
+
var _inBundle = false;
|
|
3964
|
+
var _integrity = "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==";
|
|
3965
|
+
var _location = "/axios";
|
|
3966
|
+
var _phantomChildren = {
|
|
3967
|
+
};
|
|
3968
|
+
var _requested = {
|
|
3969
|
+
type: "range",
|
|
3970
|
+
registry: true,
|
|
3971
|
+
raw: "axios@^0.21.1",
|
|
3972
|
+
name: "axios",
|
|
3973
|
+
escapedName: "axios",
|
|
3974
|
+
rawSpec: "^0.21.1",
|
|
3975
|
+
saveSpec: null,
|
|
3976
|
+
fetchSpec: "^0.21.1"
|
|
3977
|
+
};
|
|
3978
|
+
var _requiredBy = [
|
|
3979
|
+
"/",
|
|
3980
|
+
"/localtunnel"
|
|
3981
|
+
];
|
|
3982
|
+
var _resolved = "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz";
|
|
3983
|
+
var _shasum = "c67b90dc0568e5c1cf2b0b858c43ba28e2eda575";
|
|
3984
|
+
var _spec = "axios@^0.21.1";
|
|
3985
|
+
var _where = "/home/kimiti/Desktop/work/utu-trust-sdk/packages/utu-web-components";
|
|
3986
|
+
var author = {
|
|
3987
|
+
name: "Matt Zabriskie"
|
|
3975
3988
|
};
|
|
3976
|
-
var
|
|
3977
|
-
|
|
3978
|
-
url: "https://github.com/axios/axios.git"
|
|
3989
|
+
var browser = {
|
|
3990
|
+
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
3979
3991
|
};
|
|
3980
|
-
var keywords = [
|
|
3981
|
-
"xhr",
|
|
3982
|
-
"http",
|
|
3983
|
-
"ajax",
|
|
3984
|
-
"promise",
|
|
3985
|
-
"node"
|
|
3986
|
-
];
|
|
3987
|
-
var author = "Matt Zabriskie";
|
|
3988
|
-
var license = "MIT";
|
|
3989
3992
|
var bugs = {
|
|
3990
3993
|
url: "https://github.com/axios/axios/issues"
|
|
3991
3994
|
};
|
|
3992
|
-
var
|
|
3995
|
+
var bundleDependencies = false;
|
|
3996
|
+
var bundlesize = [
|
|
3997
|
+
{
|
|
3998
|
+
path: "./dist/axios.min.js",
|
|
3999
|
+
threshold: "5kB"
|
|
4000
|
+
}
|
|
4001
|
+
];
|
|
4002
|
+
var dependencies = {
|
|
4003
|
+
"follow-redirects": "^1.14.0"
|
|
4004
|
+
};
|
|
4005
|
+
var deprecated = false;
|
|
4006
|
+
var description = "Promise based HTTP client for the browser and node.js";
|
|
3993
4007
|
var devDependencies = {
|
|
3994
4008
|
coveralls: "^3.0.0",
|
|
3995
4009
|
"es6-promise": "^4.2.4",
|
|
@@ -4025,40 +4039,69 @@
|
|
|
4025
4039
|
webpack: "^4.44.2",
|
|
4026
4040
|
"webpack-dev-server": "^3.11.0"
|
|
4027
4041
|
};
|
|
4028
|
-
var
|
|
4029
|
-
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
4030
|
-
};
|
|
4042
|
+
var homepage = "https://axios-http.com";
|
|
4031
4043
|
var jsdelivr = "dist/axios.min.js";
|
|
4032
|
-
var
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
"
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
{
|
|
4039
|
-
path: "./dist/axios.min.js",
|
|
4040
|
-
threshold: "5kB"
|
|
4041
|
-
}
|
|
4044
|
+
var keywords = [
|
|
4045
|
+
"xhr",
|
|
4046
|
+
"http",
|
|
4047
|
+
"ajax",
|
|
4048
|
+
"promise",
|
|
4049
|
+
"node"
|
|
4042
4050
|
];
|
|
4051
|
+
var license = "MIT";
|
|
4052
|
+
var main = "index.js";
|
|
4053
|
+
var name = "axios";
|
|
4054
|
+
var repository = {
|
|
4055
|
+
type: "git",
|
|
4056
|
+
url: "git+https://github.com/axios/axios.git"
|
|
4057
|
+
};
|
|
4058
|
+
var scripts = {
|
|
4059
|
+
build: "NODE_ENV=production grunt build",
|
|
4060
|
+
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
4061
|
+
examples: "node ./examples/server.js",
|
|
4062
|
+
fix: "eslint --fix lib/**/*.js",
|
|
4063
|
+
postversion: "git push && git push --tags",
|
|
4064
|
+
preversion: "npm test",
|
|
4065
|
+
start: "node ./sandbox/server.js",
|
|
4066
|
+
test: "grunt test",
|
|
4067
|
+
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"
|
|
4068
|
+
};
|
|
4069
|
+
var typings = "./index.d.ts";
|
|
4070
|
+
var unpkg = "dist/axios.min.js";
|
|
4071
|
+
var version$i = "0.21.4";
|
|
4043
4072
|
var pkg = {
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4073
|
+
_from: _from,
|
|
4074
|
+
_id: _id,
|
|
4075
|
+
_inBundle: _inBundle,
|
|
4076
|
+
_integrity: _integrity,
|
|
4077
|
+
_location: _location,
|
|
4078
|
+
_phantomChildren: _phantomChildren,
|
|
4079
|
+
_requested: _requested,
|
|
4080
|
+
_requiredBy: _requiredBy,
|
|
4081
|
+
_resolved: _resolved,
|
|
4082
|
+
_shasum: _shasum,
|
|
4083
|
+
_spec: _spec,
|
|
4084
|
+
_where: _where,
|
|
4051
4085
|
author: author,
|
|
4052
|
-
|
|
4086
|
+
browser: browser,
|
|
4053
4087
|
bugs: bugs,
|
|
4054
|
-
|
|
4088
|
+
bundleDependencies: bundleDependencies,
|
|
4089
|
+
bundlesize: bundlesize,
|
|
4090
|
+
dependencies: dependencies,
|
|
4091
|
+
deprecated: deprecated,
|
|
4092
|
+
description: description,
|
|
4055
4093
|
devDependencies: devDependencies,
|
|
4056
|
-
|
|
4094
|
+
homepage: homepage,
|
|
4057
4095
|
jsdelivr: jsdelivr,
|
|
4058
|
-
|
|
4096
|
+
keywords: keywords,
|
|
4097
|
+
license: license,
|
|
4098
|
+
main: main,
|
|
4099
|
+
name: name,
|
|
4100
|
+
repository: repository,
|
|
4101
|
+
scripts: scripts,
|
|
4059
4102
|
typings: typings,
|
|
4060
|
-
|
|
4061
|
-
|
|
4103
|
+
unpkg: unpkg,
|
|
4104
|
+
version: version$i
|
|
4062
4105
|
};
|
|
4063
4106
|
|
|
4064
4107
|
var validators$1 = {}; // eslint-disable-next-line func-names
|
|
@@ -6997,21 +7040,24 @@
|
|
|
6997
7040
|
parse: parse$1
|
|
6998
7041
|
};
|
|
6999
7042
|
|
|
7000
|
-
var
|
|
7043
|
+
var controlOrWhitespace = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,
|
|
7044
|
+
CRHTLF = /[\n\r\t]/g,
|
|
7045
|
+
slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//,
|
|
7046
|
+
port = /:\d+$/,
|
|
7001
7047
|
protocolre = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,
|
|
7002
|
-
windowsDriveLetter = /^[a-zA-Z]
|
|
7003
|
-
whitespace$1 = '[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]',
|
|
7004
|
-
left = new RegExp('^' + whitespace$1 + '+');
|
|
7048
|
+
windowsDriveLetter = /^[a-zA-Z]:/;
|
|
7005
7049
|
/**
|
|
7006
|
-
*
|
|
7050
|
+
* Remove control characters and whitespace from the beginning of a string.
|
|
7007
7051
|
*
|
|
7008
|
-
* @param {String} str String to trim.
|
|
7052
|
+
* @param {Object|String} str String to trim.
|
|
7053
|
+
* @returns {String} A new string representing `str` stripped of control
|
|
7054
|
+
* characters and whitespace from its beginning.
|
|
7009
7055
|
* @public
|
|
7010
7056
|
*/
|
|
7011
7057
|
|
|
7012
7058
|
|
|
7013
7059
|
function trimLeft(str) {
|
|
7014
|
-
return (str ? str : '').toString().replace(
|
|
7060
|
+
return (str ? str : '').toString().replace(controlOrWhitespace, '');
|
|
7015
7061
|
}
|
|
7016
7062
|
/**
|
|
7017
7063
|
* These are the parse rules for the URL parser, it informs the parser
|
|
@@ -7035,7 +7081,7 @@
|
|
|
7035
7081
|
}, ['/', 'pathname'], // Extract from the back.
|
|
7036
7082
|
['@', 'auth', 1], // Extract from the front.
|
|
7037
7083
|
[NaN, 'host', undefined, 1, 1], // Set left over value.
|
|
7038
|
-
[/:(\d
|
|
7084
|
+
[/:(\d*)$/, 'port', undefined, 1], // RegExp the back.
|
|
7039
7085
|
[NaN, 'hostname', undefined, 1, 1] // Set left over.
|
|
7040
7086
|
];
|
|
7041
7087
|
/**
|
|
@@ -7124,6 +7170,7 @@
|
|
|
7124
7170
|
|
|
7125
7171
|
function extractProtocol(address, location) {
|
|
7126
7172
|
address = trimLeft(address);
|
|
7173
|
+
address = address.replace(CRHTLF, '');
|
|
7127
7174
|
location = location || {};
|
|
7128
7175
|
var match = protocolre.exec(address);
|
|
7129
7176
|
var protocol = match[1] ? match[1].toLowerCase() : '';
|
|
@@ -7223,6 +7270,7 @@
|
|
|
7223
7270
|
|
|
7224
7271
|
function Url(address, location, parser) {
|
|
7225
7272
|
address = trimLeft(address);
|
|
7273
|
+
address = address.replace(CRHTLF, '');
|
|
7226
7274
|
|
|
7227
7275
|
if (!(this instanceof Url)) {
|
|
7228
7276
|
return new Url(address, location, parser);
|
|
@@ -7286,7 +7334,9 @@
|
|
|
7286
7334
|
if (parse !== parse) {
|
|
7287
7335
|
url[key] = address;
|
|
7288
7336
|
} else if ('string' === typeof parse) {
|
|
7289
|
-
|
|
7337
|
+
index = parse === '@' ? address.lastIndexOf(parse) : address.indexOf(parse);
|
|
7338
|
+
|
|
7339
|
+
if (~index) {
|
|
7290
7340
|
if ('number' === typeof instruction[2]) {
|
|
7291
7341
|
url[key] = address.slice(0, index);
|
|
7292
7342
|
address = address.slice(index + instruction[2]);
|
|
@@ -7345,9 +7395,18 @@
|
|
|
7345
7395
|
url.username = url.password = '';
|
|
7346
7396
|
|
|
7347
7397
|
if (url.auth) {
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7398
|
+
index = url.auth.indexOf(':');
|
|
7399
|
+
|
|
7400
|
+
if (~index) {
|
|
7401
|
+
url.username = url.auth.slice(0, index);
|
|
7402
|
+
url.username = encodeURIComponent(decodeURIComponent(url.username));
|
|
7403
|
+
url.password = url.auth.slice(index + 1);
|
|
7404
|
+
url.password = encodeURIComponent(decodeURIComponent(url.password));
|
|
7405
|
+
} else {
|
|
7406
|
+
url.username = encodeURIComponent(decodeURIComponent(url.auth));
|
|
7407
|
+
}
|
|
7408
|
+
|
|
7409
|
+
url.auth = url.password ? url.username + ':' + url.password : url.username;
|
|
7351
7410
|
}
|
|
7352
7411
|
|
|
7353
7412
|
url.origin = url.protocol !== 'file:' && isSpecial(url.protocol) && url.host ? url.protocol + '//' + url.host : 'null'; //
|
|
@@ -7404,7 +7463,7 @@
|
|
|
7404
7463
|
case 'host':
|
|
7405
7464
|
url[part] = value;
|
|
7406
7465
|
|
|
7407
|
-
if (
|
|
7466
|
+
if (port.test(value)) {
|
|
7408
7467
|
value = value.split(':');
|
|
7409
7468
|
url.port = value.pop();
|
|
7410
7469
|
url.hostname = value.join(':');
|
|
@@ -7437,9 +7496,17 @@
|
|
|
7437
7496
|
break;
|
|
7438
7497
|
|
|
7439
7498
|
case 'auth':
|
|
7440
|
-
var
|
|
7441
|
-
|
|
7442
|
-
|
|
7499
|
+
var index = value.indexOf(':');
|
|
7500
|
+
|
|
7501
|
+
if (~index) {
|
|
7502
|
+
url.username = value.slice(0, index);
|
|
7503
|
+
url.username = encodeURIComponent(decodeURIComponent(url.username));
|
|
7504
|
+
url.password = value.slice(index + 1);
|
|
7505
|
+
url.password = encodeURIComponent(decodeURIComponent(url.password));
|
|
7506
|
+
} else {
|
|
7507
|
+
url.username = encodeURIComponent(decodeURIComponent(value));
|
|
7508
|
+
}
|
|
7509
|
+
|
|
7443
7510
|
}
|
|
7444
7511
|
|
|
7445
7512
|
for (var i = 0; i < rules.length; i++) {
|
|
@@ -7465,6 +7532,7 @@
|
|
|
7465
7532
|
if (!stringify || 'function' !== typeof stringify) stringify = querystringify_1.stringify;
|
|
7466
7533
|
var query,
|
|
7467
7534
|
url = this,
|
|
7535
|
+
host = url.host,
|
|
7468
7536
|
protocol = url.protocol;
|
|
7469
7537
|
if (protocol && protocol.charAt(protocol.length - 1) !== ':') protocol += ':';
|
|
7470
7538
|
var result = protocol + (url.protocol && url.slashes || isSpecial(url.protocol) ? '//' : '');
|
|
@@ -7476,9 +7544,24 @@
|
|
|
7476
7544
|
} else if (url.password) {
|
|
7477
7545
|
result += ':' + url.password;
|
|
7478
7546
|
result += '@';
|
|
7547
|
+
} else if (url.protocol !== 'file:' && isSpecial(url.protocol) && !host && url.pathname !== '/') {
|
|
7548
|
+
//
|
|
7549
|
+
// Add back the empty userinfo, otherwise the original invalid URL
|
|
7550
|
+
// might be transformed into a valid one with `url.pathname` as host.
|
|
7551
|
+
//
|
|
7552
|
+
result += '@';
|
|
7553
|
+
} //
|
|
7554
|
+
// Trailing colon is removed from `url.host` when it is parsed. If it still
|
|
7555
|
+
// ends with a colon, then add back the trailing colon that was removed. This
|
|
7556
|
+
// prevents an invalid URL from being transformed into a valid one.
|
|
7557
|
+
//
|
|
7558
|
+
|
|
7559
|
+
|
|
7560
|
+
if (host[host.length - 1] === ':' || port.test(url.hostname) && !url.port) {
|
|
7561
|
+
host += ':';
|
|
7479
7562
|
}
|
|
7480
7563
|
|
|
7481
|
-
result +=
|
|
7564
|
+
result += host + url.pathname;
|
|
7482
7565
|
query = 'object' === typeof url.query ? stringify(url.query) : url.query;
|
|
7483
7566
|
if (query) result += '?' !== query.charAt(0) ? '?' + query : query;
|
|
7484
7567
|
if (url.hash) result += url.hash;
|
|
@@ -7515,7 +7598,7 @@
|
|
|
7515
7598
|
return _typeof$1(obj);
|
|
7516
7599
|
}
|
|
7517
7600
|
|
|
7518
|
-
function _classCallCheck$
|
|
7601
|
+
function _classCallCheck$9(instance, Constructor) {
|
|
7519
7602
|
if (!(instance instanceof Constructor)) {
|
|
7520
7603
|
throw new TypeError("Cannot call a class as a function");
|
|
7521
7604
|
}
|
|
@@ -7537,11 +7620,13 @@
|
|
|
7537
7620
|
}
|
|
7538
7621
|
|
|
7539
7622
|
function _createSuper$1(Derived) {
|
|
7540
|
-
|
|
7623
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$1();
|
|
7624
|
+
|
|
7625
|
+
return function _createSuperInternal() {
|
|
7541
7626
|
var Super = _getPrototypeOf$1(Derived),
|
|
7542
7627
|
result;
|
|
7543
7628
|
|
|
7544
|
-
if (
|
|
7629
|
+
if (hasNativeReflectConstruct) {
|
|
7545
7630
|
var NewTarget = _getPrototypeOf$1(this).constructor;
|
|
7546
7631
|
|
|
7547
7632
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
@@ -7626,7 +7711,7 @@
|
|
|
7626
7711
|
if (typeof Proxy === "function") return true;
|
|
7627
7712
|
|
|
7628
7713
|
try {
|
|
7629
|
-
|
|
7714
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
7630
7715
|
return true;
|
|
7631
7716
|
} catch (e) {
|
|
7632
7717
|
return false;
|
|
@@ -7665,7 +7750,7 @@
|
|
|
7665
7750
|
var req = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
7666
7751
|
var res = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
7667
7752
|
|
|
7668
|
-
_classCallCheck$
|
|
7753
|
+
_classCallCheck$9(this, DetailedError);
|
|
7669
7754
|
|
|
7670
7755
|
_this = _super.call(this, message);
|
|
7671
7756
|
_this.originalRequest = req;
|
|
@@ -7711,8 +7796,8 @@
|
|
|
7711
7796
|
*/
|
|
7712
7797
|
function uuid() {
|
|
7713
7798
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
7714
|
-
var r = Math.random() * 16 | 0
|
|
7715
|
-
|
|
7799
|
+
var r = Math.random() * 16 | 0;
|
|
7800
|
+
var v = c == 'x' ? r : r & 0x3 | 0x8;
|
|
7716
7801
|
return v.toString(16);
|
|
7717
7802
|
});
|
|
7718
7803
|
}
|
|
@@ -7766,13 +7851,13 @@
|
|
|
7766
7851
|
return obj;
|
|
7767
7852
|
}
|
|
7768
7853
|
|
|
7769
|
-
function _classCallCheck$
|
|
7854
|
+
function _classCallCheck$8(instance, Constructor) {
|
|
7770
7855
|
if (!(instance instanceof Constructor)) {
|
|
7771
7856
|
throw new TypeError("Cannot call a class as a function");
|
|
7772
7857
|
}
|
|
7773
7858
|
}
|
|
7774
7859
|
|
|
7775
|
-
function _defineProperties$
|
|
7860
|
+
function _defineProperties$7(target, props) {
|
|
7776
7861
|
for (var i = 0; i < props.length; i++) {
|
|
7777
7862
|
var descriptor = props[i];
|
|
7778
7863
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -7782,9 +7867,9 @@
|
|
|
7782
7867
|
}
|
|
7783
7868
|
}
|
|
7784
7869
|
|
|
7785
|
-
function _createClass$
|
|
7786
|
-
if (protoProps) _defineProperties$
|
|
7787
|
-
if (staticProps) _defineProperties$
|
|
7870
|
+
function _createClass$8(Constructor, protoProps, staticProps) {
|
|
7871
|
+
if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
|
|
7872
|
+
if (staticProps) _defineProperties$7(Constructor, staticProps);
|
|
7788
7873
|
return Constructor;
|
|
7789
7874
|
}
|
|
7790
7875
|
var defaultOptions$1 = {
|
|
@@ -7818,10 +7903,12 @@
|
|
|
7818
7903
|
|
|
7819
7904
|
var BaseUpload = /*#__PURE__*/function () {
|
|
7820
7905
|
function BaseUpload(file, options) {
|
|
7821
|
-
_classCallCheck$
|
|
7906
|
+
_classCallCheck$8(this, BaseUpload); // Warn about removed options from previous versions
|
|
7907
|
+
|
|
7822
7908
|
|
|
7909
|
+
this.options = options; // Cast chunkSize to integer
|
|
7823
7910
|
|
|
7824
|
-
this.options = options; // The storage module used to store URLs
|
|
7911
|
+
this.options.chunkSize = +this.options.chunkSize; // The storage module used to store URLs
|
|
7825
7912
|
|
|
7826
7913
|
this._urlStorage = this.options.urlStorage; // The underlying File/Blob object
|
|
7827
7914
|
|
|
@@ -7869,7 +7956,7 @@
|
|
|
7869
7956
|
*/
|
|
7870
7957
|
|
|
7871
7958
|
|
|
7872
|
-
_createClass$
|
|
7959
|
+
_createClass$8(BaseUpload, [{
|
|
7873
7960
|
key: "findPreviousUploads",
|
|
7874
7961
|
value: function findPreviousUploads() {
|
|
7875
7962
|
var _this = this;
|
|
@@ -7972,7 +8059,7 @@
|
|
|
7972
8059
|
var value = _ref.value;
|
|
7973
8060
|
return new Promise(function (resolve, reject) {
|
|
7974
8061
|
// Merge with the user supplied options but overwrite some values.
|
|
7975
|
-
var options = _objectSpread$1({}, _this3.options, {
|
|
8062
|
+
var options = _objectSpread$1(_objectSpread$1({}, _this3.options), {}, {
|
|
7976
8063
|
// If available, the partial upload should be resumed from a previous URL.
|
|
7977
8064
|
uploadUrl: part.uploadUrl || null,
|
|
7978
8065
|
// We take manually care of resuming for partial uploads, so they should
|
|
@@ -7983,7 +8070,7 @@
|
|
|
7983
8070
|
parallelUploads: 1,
|
|
7984
8071
|
metadata: {},
|
|
7985
8072
|
// Add the header to indicate the this is a partial upload.
|
|
7986
|
-
headers: _objectSpread$1({}, _this3.options.headers, {
|
|
8073
|
+
headers: _objectSpread$1(_objectSpread$1({}, _this3.options.headers), {}, {
|
|
7987
8074
|
'Upload-Concat': 'partial'
|
|
7988
8075
|
}),
|
|
7989
8076
|
// Reject or resolve the promise if the upload errors or completes.
|
|
@@ -8081,7 +8168,7 @@
|
|
|
8081
8168
|
this._size = this._source.size;
|
|
8082
8169
|
|
|
8083
8170
|
if (this._size == null) {
|
|
8084
|
-
this._emitError(new Error("tus: cannot automatically derive upload's size from input
|
|
8171
|
+
this._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));
|
|
8085
8172
|
|
|
8086
8173
|
return;
|
|
8087
8174
|
}
|
|
@@ -8102,7 +8189,7 @@
|
|
|
8102
8189
|
|
|
8103
8190
|
|
|
8104
8191
|
if (this.options.uploadUrl != null) {
|
|
8105
|
-
log$1("Resuming upload from provided URL: ".concat(this.options.
|
|
8192
|
+
log$1("Resuming upload from provided URL: ".concat(this.options.uploadUrl));
|
|
8106
8193
|
this.url = this.options.uploadUrl;
|
|
8107
8194
|
|
|
8108
8195
|
this._resumeUpload();
|
|
@@ -8683,7 +8770,7 @@
|
|
|
8683
8770
|
var delay = options.retryDelays[0];
|
|
8684
8771
|
var remainingDelays = options.retryDelays.slice(1);
|
|
8685
8772
|
|
|
8686
|
-
var newOptions = _objectSpread$1({}, options, {
|
|
8773
|
+
var newOptions = _objectSpread$1(_objectSpread$1({}, options), {}, {
|
|
8687
8774
|
retryDelays: remainingDelays
|
|
8688
8775
|
});
|
|
8689
8776
|
|
|
@@ -8856,13 +8943,13 @@
|
|
|
8856
8943
|
|
|
8857
8944
|
BaseUpload.defaultOptions = defaultOptions$1;
|
|
8858
8945
|
|
|
8859
|
-
function _classCallCheck$
|
|
8946
|
+
function _classCallCheck$7(instance, Constructor) {
|
|
8860
8947
|
if (!(instance instanceof Constructor)) {
|
|
8861
8948
|
throw new TypeError("Cannot call a class as a function");
|
|
8862
8949
|
}
|
|
8863
8950
|
}
|
|
8864
8951
|
|
|
8865
|
-
function _defineProperties$
|
|
8952
|
+
function _defineProperties$6(target, props) {
|
|
8866
8953
|
for (var i = 0; i < props.length; i++) {
|
|
8867
8954
|
var descriptor = props[i];
|
|
8868
8955
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8872,9 +8959,9 @@
|
|
|
8872
8959
|
}
|
|
8873
8960
|
}
|
|
8874
8961
|
|
|
8875
|
-
function _createClass$
|
|
8876
|
-
if (protoProps) _defineProperties$
|
|
8877
|
-
if (staticProps) _defineProperties$
|
|
8962
|
+
function _createClass$7(Constructor, protoProps, staticProps) {
|
|
8963
|
+
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
8964
|
+
if (staticProps) _defineProperties$6(Constructor, staticProps);
|
|
8878
8965
|
return Constructor;
|
|
8879
8966
|
}
|
|
8880
8967
|
/* eslint no-unused-vars: "off" */
|
|
@@ -8882,10 +8969,10 @@
|
|
|
8882
8969
|
|
|
8883
8970
|
var NoopUrlStorage = /*#__PURE__*/function () {
|
|
8884
8971
|
function NoopUrlStorage() {
|
|
8885
|
-
_classCallCheck$
|
|
8972
|
+
_classCallCheck$7(this, NoopUrlStorage);
|
|
8886
8973
|
}
|
|
8887
8974
|
|
|
8888
|
-
_createClass$
|
|
8975
|
+
_createClass$7(NoopUrlStorage, [{
|
|
8889
8976
|
key: "listAllUploads",
|
|
8890
8977
|
value: function listAllUploads() {
|
|
8891
8978
|
return Promise.resolve([]);
|
|
@@ -8910,13 +8997,13 @@
|
|
|
8910
8997
|
return NoopUrlStorage;
|
|
8911
8998
|
}();
|
|
8912
8999
|
|
|
8913
|
-
function _classCallCheck$
|
|
9000
|
+
function _classCallCheck$6(instance, Constructor) {
|
|
8914
9001
|
if (!(instance instanceof Constructor)) {
|
|
8915
9002
|
throw new TypeError("Cannot call a class as a function");
|
|
8916
9003
|
}
|
|
8917
9004
|
}
|
|
8918
9005
|
|
|
8919
|
-
function _defineProperties$
|
|
9006
|
+
function _defineProperties$5(target, props) {
|
|
8920
9007
|
for (var i = 0; i < props.length; i++) {
|
|
8921
9008
|
var descriptor = props[i];
|
|
8922
9009
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8926,9 +9013,9 @@
|
|
|
8926
9013
|
}
|
|
8927
9014
|
}
|
|
8928
9015
|
|
|
8929
|
-
function _createClass$
|
|
8930
|
-
if (protoProps) _defineProperties$
|
|
8931
|
-
if (staticProps) _defineProperties$
|
|
9016
|
+
function _createClass$6(Constructor, protoProps, staticProps) {
|
|
9017
|
+
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
9018
|
+
if (staticProps) _defineProperties$5(Constructor, staticProps);
|
|
8932
9019
|
return Constructor;
|
|
8933
9020
|
}
|
|
8934
9021
|
/* global window, localStorage */
|
|
@@ -8956,10 +9043,10 @@
|
|
|
8956
9043
|
var canStoreURLs = hasStorage;
|
|
8957
9044
|
var WebStorageUrlStorage = /*#__PURE__*/function () {
|
|
8958
9045
|
function WebStorageUrlStorage() {
|
|
8959
|
-
_classCallCheck$
|
|
9046
|
+
_classCallCheck$6(this, WebStorageUrlStorage);
|
|
8960
9047
|
}
|
|
8961
9048
|
|
|
8962
|
-
_createClass$
|
|
9049
|
+
_createClass$6(WebStorageUrlStorage, [{
|
|
8963
9050
|
key: "findAllUploads",
|
|
8964
9051
|
value: function findAllUploads() {
|
|
8965
9052
|
var results = this._findEntries('tus::');
|
|
@@ -9013,13 +9100,13 @@
|
|
|
9013
9100
|
return WebStorageUrlStorage;
|
|
9014
9101
|
}();
|
|
9015
9102
|
|
|
9016
|
-
function _classCallCheck$
|
|
9103
|
+
function _classCallCheck$5(instance, Constructor) {
|
|
9017
9104
|
if (!(instance instanceof Constructor)) {
|
|
9018
9105
|
throw new TypeError("Cannot call a class as a function");
|
|
9019
9106
|
}
|
|
9020
9107
|
}
|
|
9021
9108
|
|
|
9022
|
-
function _defineProperties$
|
|
9109
|
+
function _defineProperties$4(target, props) {
|
|
9023
9110
|
for (var i = 0; i < props.length; i++) {
|
|
9024
9111
|
var descriptor = props[i];
|
|
9025
9112
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9029,20 +9116,20 @@
|
|
|
9029
9116
|
}
|
|
9030
9117
|
}
|
|
9031
9118
|
|
|
9032
|
-
function _createClass$
|
|
9033
|
-
if (protoProps) _defineProperties$
|
|
9034
|
-
if (staticProps) _defineProperties$
|
|
9119
|
+
function _createClass$5(Constructor, protoProps, staticProps) {
|
|
9120
|
+
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
9121
|
+
if (staticProps) _defineProperties$4(Constructor, staticProps);
|
|
9035
9122
|
return Constructor;
|
|
9036
9123
|
}
|
|
9037
|
-
/*
|
|
9124
|
+
/* eslint-disable max-classes-per-file */
|
|
9038
9125
|
|
|
9039
9126
|
|
|
9040
9127
|
var XHRHttpStack = /*#__PURE__*/function () {
|
|
9041
9128
|
function XHRHttpStack() {
|
|
9042
|
-
_classCallCheck$
|
|
9129
|
+
_classCallCheck$5(this, XHRHttpStack);
|
|
9043
9130
|
}
|
|
9044
9131
|
|
|
9045
|
-
_createClass$
|
|
9132
|
+
_createClass$5(XHRHttpStack, [{
|
|
9046
9133
|
key: "createRequest",
|
|
9047
9134
|
value: function createRequest(method, url) {
|
|
9048
9135
|
return new Request(method, url);
|
|
@@ -9059,7 +9146,7 @@
|
|
|
9059
9146
|
|
|
9060
9147
|
var Request = /*#__PURE__*/function () {
|
|
9061
9148
|
function Request(method, url) {
|
|
9062
|
-
_classCallCheck$
|
|
9149
|
+
_classCallCheck$5(this, Request);
|
|
9063
9150
|
|
|
9064
9151
|
this._xhr = new XMLHttpRequest();
|
|
9065
9152
|
|
|
@@ -9070,7 +9157,7 @@
|
|
|
9070
9157
|
this._headers = {};
|
|
9071
9158
|
}
|
|
9072
9159
|
|
|
9073
|
-
_createClass$
|
|
9160
|
+
_createClass$5(Request, [{
|
|
9074
9161
|
key: "getMethod",
|
|
9075
9162
|
value: function getMethod() {
|
|
9076
9163
|
return this._method;
|
|
@@ -9145,12 +9232,12 @@
|
|
|
9145
9232
|
|
|
9146
9233
|
var Response = /*#__PURE__*/function () {
|
|
9147
9234
|
function Response(xhr) {
|
|
9148
|
-
_classCallCheck$
|
|
9235
|
+
_classCallCheck$5(this, Response);
|
|
9149
9236
|
|
|
9150
9237
|
this._xhr = xhr;
|
|
9151
9238
|
}
|
|
9152
9239
|
|
|
9153
|
-
_createClass$
|
|
9240
|
+
_createClass$5(Response, [{
|
|
9154
9241
|
key: "getStatus",
|
|
9155
9242
|
value: function getStatus() {
|
|
9156
9243
|
return this._xhr.status;
|
|
@@ -9231,13 +9318,13 @@
|
|
|
9231
9318
|
});
|
|
9232
9319
|
}
|
|
9233
9320
|
|
|
9234
|
-
function _classCallCheck$
|
|
9321
|
+
function _classCallCheck$4(instance, Constructor) {
|
|
9235
9322
|
if (!(instance instanceof Constructor)) {
|
|
9236
9323
|
throw new TypeError("Cannot call a class as a function");
|
|
9237
9324
|
}
|
|
9238
9325
|
}
|
|
9239
9326
|
|
|
9240
|
-
function _defineProperties$
|
|
9327
|
+
function _defineProperties$3(target, props) {
|
|
9241
9328
|
for (var i = 0; i < props.length; i++) {
|
|
9242
9329
|
var descriptor = props[i];
|
|
9243
9330
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9247,22 +9334,22 @@
|
|
|
9247
9334
|
}
|
|
9248
9335
|
}
|
|
9249
9336
|
|
|
9250
|
-
function _createClass$
|
|
9251
|
-
if (protoProps) _defineProperties$
|
|
9252
|
-
if (staticProps) _defineProperties$
|
|
9337
|
+
function _createClass$4(Constructor, protoProps, staticProps) {
|
|
9338
|
+
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
9339
|
+
if (staticProps) _defineProperties$3(Constructor, staticProps);
|
|
9253
9340
|
return Constructor;
|
|
9254
9341
|
}
|
|
9255
9342
|
|
|
9256
9343
|
var FileSource = /*#__PURE__*/function () {
|
|
9257
9344
|
// Make this.size a method
|
|
9258
9345
|
function FileSource(file) {
|
|
9259
|
-
_classCallCheck$
|
|
9346
|
+
_classCallCheck$4(this, FileSource);
|
|
9260
9347
|
|
|
9261
9348
|
this._file = file;
|
|
9262
9349
|
this.size = file.size;
|
|
9263
9350
|
}
|
|
9264
9351
|
|
|
9265
|
-
_createClass$
|
|
9352
|
+
_createClass$4(FileSource, [{
|
|
9266
9353
|
key: "slice",
|
|
9267
9354
|
value: function slice(start, end) {
|
|
9268
9355
|
// In Apache Cordova applications, a File must be resolved using
|
|
@@ -9287,9 +9374,65 @@
|
|
|
9287
9374
|
return FileSource;
|
|
9288
9375
|
}();
|
|
9289
9376
|
|
|
9377
|
+
function _classCallCheck$3(instance, Constructor) {
|
|
9378
|
+
if (!(instance instanceof Constructor)) {
|
|
9379
|
+
throw new TypeError("Cannot call a class as a function");
|
|
9380
|
+
}
|
|
9381
|
+
}
|
|
9382
|
+
|
|
9383
|
+
function _defineProperties$2(target, props) {
|
|
9384
|
+
for (var i = 0; i < props.length; i++) {
|
|
9385
|
+
var descriptor = props[i];
|
|
9386
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
9387
|
+
descriptor.configurable = true;
|
|
9388
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
9389
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9390
|
+
}
|
|
9391
|
+
}
|
|
9392
|
+
|
|
9393
|
+
function _createClass$3(Constructor, protoProps, staticProps) {
|
|
9394
|
+
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
9395
|
+
if (staticProps) _defineProperties$2(Constructor, staticProps);
|
|
9396
|
+
return Constructor;
|
|
9397
|
+
}
|
|
9398
|
+
|
|
9399
|
+
function len(blobOrArray) {
|
|
9400
|
+
if (blobOrArray === undefined) return 0;
|
|
9401
|
+
if (blobOrArray.size !== undefined) return blobOrArray.size;
|
|
9402
|
+
return blobOrArray.length;
|
|
9403
|
+
}
|
|
9404
|
+
/*
|
|
9405
|
+
Typed arrays and blobs don't have a concat method.
|
|
9406
|
+
This function helps StreamSource accumulate data to reach chunkSize.
|
|
9407
|
+
*/
|
|
9408
|
+
|
|
9409
|
+
|
|
9410
|
+
function concat$2(a, b) {
|
|
9411
|
+
if (a.concat) {
|
|
9412
|
+
// Is `a` an Array?
|
|
9413
|
+
return a.concat(b);
|
|
9414
|
+
}
|
|
9415
|
+
|
|
9416
|
+
if (a instanceof Blob) {
|
|
9417
|
+
return new Blob([a, b], {
|
|
9418
|
+
type: a.type
|
|
9419
|
+
});
|
|
9420
|
+
}
|
|
9421
|
+
|
|
9422
|
+
if (a.set) {
|
|
9423
|
+
// Is `a` a typed array?
|
|
9424
|
+
var c = new a.constructor(a.length + b.length);
|
|
9425
|
+
c.set(a);
|
|
9426
|
+
c.set(b, a.length);
|
|
9427
|
+
return c;
|
|
9428
|
+
}
|
|
9429
|
+
|
|
9430
|
+
throw new Error('Unknown data type');
|
|
9431
|
+
}
|
|
9432
|
+
|
|
9290
9433
|
var StreamSource = /*#__PURE__*/function () {
|
|
9291
9434
|
function StreamSource(reader, chunkSize) {
|
|
9292
|
-
_classCallCheck$
|
|
9435
|
+
_classCallCheck$3(this, StreamSource);
|
|
9293
9436
|
|
|
9294
9437
|
this._chunkSize = chunkSize;
|
|
9295
9438
|
this._buffer = undefined;
|
|
@@ -9298,7 +9441,7 @@
|
|
|
9298
9441
|
this._done = false;
|
|
9299
9442
|
}
|
|
9300
9443
|
|
|
9301
|
-
_createClass$
|
|
9444
|
+
_createClass$3(StreamSource, [{
|
|
9302
9445
|
key: "slice",
|
|
9303
9446
|
value: function slice(start, end) {
|
|
9304
9447
|
if (start < this._bufferOffset) {
|
|
@@ -9373,38 +9516,26 @@
|
|
|
9373
9516
|
return StreamSource;
|
|
9374
9517
|
}();
|
|
9375
9518
|
|
|
9376
|
-
function
|
|
9377
|
-
if (
|
|
9378
|
-
|
|
9379
|
-
return blobOrArray.length;
|
|
9380
|
-
}
|
|
9381
|
-
/*
|
|
9382
|
-
Typed arrays and blobs don't have a concat method.
|
|
9383
|
-
This function helps StreamSource accumulate data to reach chunkSize.
|
|
9384
|
-
*/
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
function concat$2(a, b) {
|
|
9388
|
-
if (a.concat) {
|
|
9389
|
-
// Is `a` an Array?
|
|
9390
|
-
return a.concat(b);
|
|
9391
|
-
}
|
|
9392
|
-
|
|
9393
|
-
if (a instanceof Blob) {
|
|
9394
|
-
return new Blob([a, b], {
|
|
9395
|
-
type: a.type
|
|
9396
|
-
});
|
|
9519
|
+
function _classCallCheck$2(instance, Constructor) {
|
|
9520
|
+
if (!(instance instanceof Constructor)) {
|
|
9521
|
+
throw new TypeError("Cannot call a class as a function");
|
|
9397
9522
|
}
|
|
9523
|
+
}
|
|
9398
9524
|
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
var
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9525
|
+
function _defineProperties$1(target, props) {
|
|
9526
|
+
for (var i = 0; i < props.length; i++) {
|
|
9527
|
+
var descriptor = props[i];
|
|
9528
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
9529
|
+
descriptor.configurable = true;
|
|
9530
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
9531
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9405
9532
|
}
|
|
9533
|
+
}
|
|
9406
9534
|
|
|
9407
|
-
|
|
9535
|
+
function _createClass$2(Constructor, protoProps, staticProps) {
|
|
9536
|
+
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
|
9537
|
+
if (staticProps) _defineProperties$1(Constructor, staticProps);
|
|
9538
|
+
return Constructor;
|
|
9408
9539
|
}
|
|
9409
9540
|
|
|
9410
9541
|
var FileReader$1 = /*#__PURE__*/function () {
|
|
@@ -9554,11 +9685,13 @@
|
|
|
9554
9685
|
}
|
|
9555
9686
|
|
|
9556
9687
|
function _createSuper(Derived) {
|
|
9557
|
-
|
|
9688
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
9689
|
+
|
|
9690
|
+
return function _createSuperInternal() {
|
|
9558
9691
|
var Super = _getPrototypeOf(Derived),
|
|
9559
9692
|
result;
|
|
9560
9693
|
|
|
9561
|
-
if (
|
|
9694
|
+
if (hasNativeReflectConstruct) {
|
|
9562
9695
|
var NewTarget = _getPrototypeOf(this).constructor;
|
|
9563
9696
|
|
|
9564
9697
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
@@ -9592,7 +9725,7 @@
|
|
|
9592
9725
|
if (typeof Proxy === "function") return true;
|
|
9593
9726
|
|
|
9594
9727
|
try {
|
|
9595
|
-
|
|
9728
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
9596
9729
|
return true;
|
|
9597
9730
|
} catch (e) {
|
|
9598
9731
|
return false;
|
|
@@ -9655,7 +9788,7 @@
|
|
|
9655
9788
|
return obj;
|
|
9656
9789
|
}
|
|
9657
9790
|
|
|
9658
|
-
var defaultOptions = _objectSpread({}, BaseUpload.defaultOptions, {
|
|
9791
|
+
var defaultOptions = _objectSpread(_objectSpread({}, BaseUpload.defaultOptions), {}, {
|
|
9659
9792
|
httpStack: new XHRHttpStack(),
|
|
9660
9793
|
fileReader: new FileReader$1(),
|
|
9661
9794
|
urlStorage: canStoreURLs ? new WebStorageUrlStorage() : new NoopUrlStorage(),
|
|
@@ -9673,14 +9806,14 @@
|
|
|
9673
9806
|
|
|
9674
9807
|
_classCallCheck$1(this, Upload);
|
|
9675
9808
|
|
|
9676
|
-
options = _objectSpread({}, defaultOptions,
|
|
9809
|
+
options = _objectSpread(_objectSpread({}, defaultOptions), options);
|
|
9677
9810
|
return _super.call(this, file, options);
|
|
9678
9811
|
}
|
|
9679
9812
|
|
|
9680
9813
|
_createClass$1(Upload, null, [{
|
|
9681
9814
|
key: "terminate",
|
|
9682
9815
|
value: function terminate(url, options, cb) {
|
|
9683
|
-
options = _objectSpread({}, defaultOptions,
|
|
9816
|
+
options = _objectSpread(_objectSpread({}, defaultOptions), options);
|
|
9684
9817
|
return BaseUpload.terminate(url, options, cb);
|
|
9685
9818
|
}
|
|
9686
9819
|
}]);
|
|
@@ -13261,7 +13394,7 @@
|
|
|
13261
13394
|
})(module, commonjsGlobal);
|
|
13262
13395
|
});
|
|
13263
13396
|
|
|
13264
|
-
const version$h = "logger/5.
|
|
13397
|
+
const version$h = "logger/5.6.0";
|
|
13265
13398
|
|
|
13266
13399
|
let _permanentCensorErrors = false;
|
|
13267
13400
|
let _censorErrors = false;
|
|
@@ -13467,6 +13600,48 @@
|
|
|
13467
13600
|
messageDetails.push(`code=${code}`);
|
|
13468
13601
|
messageDetails.push(`version=${this.version}`);
|
|
13469
13602
|
const reason = message;
|
|
13603
|
+
let url = "";
|
|
13604
|
+
|
|
13605
|
+
switch (code) {
|
|
13606
|
+
case ErrorCode.NUMERIC_FAULT:
|
|
13607
|
+
{
|
|
13608
|
+
url = "NUMERIC_FAULT";
|
|
13609
|
+
const fault = message;
|
|
13610
|
+
|
|
13611
|
+
switch (fault) {
|
|
13612
|
+
case "overflow":
|
|
13613
|
+
case "underflow":
|
|
13614
|
+
case "division-by-zero":
|
|
13615
|
+
url += "-" + fault;
|
|
13616
|
+
break;
|
|
13617
|
+
|
|
13618
|
+
case "negative-power":
|
|
13619
|
+
case "negative-width":
|
|
13620
|
+
url += "-unsupported";
|
|
13621
|
+
break;
|
|
13622
|
+
|
|
13623
|
+
case "unbound-bitwise-result":
|
|
13624
|
+
url += "-unbound-result";
|
|
13625
|
+
break;
|
|
13626
|
+
}
|
|
13627
|
+
|
|
13628
|
+
break;
|
|
13629
|
+
}
|
|
13630
|
+
|
|
13631
|
+
case ErrorCode.CALL_EXCEPTION:
|
|
13632
|
+
case ErrorCode.INSUFFICIENT_FUNDS:
|
|
13633
|
+
case ErrorCode.MISSING_NEW:
|
|
13634
|
+
case ErrorCode.NONCE_EXPIRED:
|
|
13635
|
+
case ErrorCode.REPLACEMENT_UNDERPRICED:
|
|
13636
|
+
case ErrorCode.TRANSACTION_REPLACED:
|
|
13637
|
+
case ErrorCode.UNPREDICTABLE_GAS_LIMIT:
|
|
13638
|
+
url = code;
|
|
13639
|
+
break;
|
|
13640
|
+
}
|
|
13641
|
+
|
|
13642
|
+
if (url) {
|
|
13643
|
+
message += " [ See: https:/\/links.ethers.org/v5-errors-" + url + " ]";
|
|
13644
|
+
}
|
|
13470
13645
|
|
|
13471
13646
|
if (messageDetails.length) {
|
|
13472
13647
|
message += " (" + messageDetails.join(", ") + ")";
|
|
@@ -13636,7 +13811,7 @@
|
|
|
13636
13811
|
Logger.errors = ErrorCode;
|
|
13637
13812
|
Logger.levels = LogLevel;
|
|
13638
13813
|
|
|
13639
|
-
const version$g = "bytes/5.
|
|
13814
|
+
const version$g = "bytes/5.6.0";
|
|
13640
13815
|
|
|
13641
13816
|
const logger$n = new Logger(version$g); ///////////////////////////////
|
|
13642
13817
|
|
|
@@ -13965,20 +14140,28 @@
|
|
|
13965
14140
|
s: "0x",
|
|
13966
14141
|
_vs: "0x",
|
|
13967
14142
|
recoveryParam: 0,
|
|
13968
|
-
v: 0
|
|
14143
|
+
v: 0,
|
|
14144
|
+
yParityAndS: "0x",
|
|
14145
|
+
compact: "0x"
|
|
13969
14146
|
};
|
|
13970
14147
|
|
|
13971
14148
|
if (isBytesLike(signature)) {
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
if (bytes.length
|
|
13975
|
-
|
|
13976
|
-
|
|
13977
|
-
|
|
14149
|
+
let bytes = arrayify(signature); // Get the r, s and v
|
|
14150
|
+
|
|
14151
|
+
if (bytes.length === 64) {
|
|
14152
|
+
// EIP-2098; pull the v from the top bit of s and clear it
|
|
14153
|
+
result.v = 27 + (bytes[32] >> 7);
|
|
14154
|
+
bytes[32] &= 0x7f;
|
|
14155
|
+
result.r = hexlify(bytes.slice(0, 32));
|
|
14156
|
+
result.s = hexlify(bytes.slice(32, 64));
|
|
14157
|
+
} else if (bytes.length === 65) {
|
|
14158
|
+
result.r = hexlify(bytes.slice(0, 32));
|
|
14159
|
+
result.s = hexlify(bytes.slice(32, 64));
|
|
14160
|
+
result.v = bytes[64];
|
|
14161
|
+
} else {
|
|
14162
|
+
logger$n.throwArgumentError("invalid signature string", "signature", signature);
|
|
14163
|
+
} // Allow a recid to be used as the v
|
|
13978
14164
|
|
|
13979
|
-
result.r = hexlify(bytes.slice(0, 32));
|
|
13980
|
-
result.s = hexlify(bytes.slice(32, 64));
|
|
13981
|
-
result.v = bytes[64]; // Allow a recid to be used as the v
|
|
13982
14165
|
|
|
13983
14166
|
if (result.v < 27) {
|
|
13984
14167
|
if (result.v === 0 || result.v === 1) {
|
|
@@ -14088,10 +14271,12 @@
|
|
|
14088
14271
|
}
|
|
14089
14272
|
}
|
|
14090
14273
|
|
|
14274
|
+
result.yParityAndS = result._vs;
|
|
14275
|
+
result.compact = result.r + result.yParityAndS.substring(2);
|
|
14091
14276
|
return result;
|
|
14092
14277
|
}
|
|
14093
14278
|
|
|
14094
|
-
const version$f = "bignumber/5.
|
|
14279
|
+
const version$f = "bignumber/5.6.0";
|
|
14095
14280
|
|
|
14096
14281
|
var BN = bn.BN;
|
|
14097
14282
|
const logger$m = new Logger(version$f);
|
|
@@ -14142,7 +14327,7 @@
|
|
|
14142
14327
|
const o = BigNumber.from(other);
|
|
14143
14328
|
|
|
14144
14329
|
if (o.isZero()) {
|
|
14145
|
-
throwFault("division
|
|
14330
|
+
throwFault("division-by-zero", "div");
|
|
14146
14331
|
}
|
|
14147
14332
|
|
|
14148
14333
|
return toBigNumber(toBN(this).div(toBN(other)));
|
|
@@ -14156,7 +14341,7 @@
|
|
|
14156
14341
|
const value = toBN(other);
|
|
14157
14342
|
|
|
14158
14343
|
if (value.isNeg()) {
|
|
14159
|
-
throwFault("
|
|
14344
|
+
throwFault("division-by-zero", "mod");
|
|
14160
14345
|
}
|
|
14161
14346
|
|
|
14162
14347
|
return toBigNumber(toBN(this).umod(value));
|
|
@@ -14166,7 +14351,7 @@
|
|
|
14166
14351
|
const value = toBN(other);
|
|
14167
14352
|
|
|
14168
14353
|
if (value.isNeg()) {
|
|
14169
|
-
throwFault("
|
|
14354
|
+
throwFault("negative-power", "pow");
|
|
14170
14355
|
}
|
|
14171
14356
|
|
|
14172
14357
|
return toBigNumber(toBN(this).pow(value));
|
|
@@ -14176,7 +14361,7 @@
|
|
|
14176
14361
|
const value = toBN(other);
|
|
14177
14362
|
|
|
14178
14363
|
if (this.isNegative() || value.isNeg()) {
|
|
14179
|
-
throwFault("
|
|
14364
|
+
throwFault("unbound-bitwise-result", "and");
|
|
14180
14365
|
}
|
|
14181
14366
|
|
|
14182
14367
|
return toBigNumber(toBN(this).and(value));
|
|
@@ -14186,7 +14371,7 @@
|
|
|
14186
14371
|
const value = toBN(other);
|
|
14187
14372
|
|
|
14188
14373
|
if (this.isNegative() || value.isNeg()) {
|
|
14189
|
-
throwFault("
|
|
14374
|
+
throwFault("unbound-bitwise-result", "or");
|
|
14190
14375
|
}
|
|
14191
14376
|
|
|
14192
14377
|
return toBigNumber(toBN(this).or(value));
|
|
@@ -14196,7 +14381,7 @@
|
|
|
14196
14381
|
const value = toBN(other);
|
|
14197
14382
|
|
|
14198
14383
|
if (this.isNegative() || value.isNeg()) {
|
|
14199
|
-
throwFault("
|
|
14384
|
+
throwFault("unbound-bitwise-result", "xor");
|
|
14200
14385
|
}
|
|
14201
14386
|
|
|
14202
14387
|
return toBigNumber(toBN(this).xor(value));
|
|
@@ -14204,7 +14389,7 @@
|
|
|
14204
14389
|
|
|
14205
14390
|
mask(value) {
|
|
14206
14391
|
if (this.isNegative() || value < 0) {
|
|
14207
|
-
throwFault("
|
|
14392
|
+
throwFault("negative-width", "mask");
|
|
14208
14393
|
}
|
|
14209
14394
|
|
|
14210
14395
|
return toBigNumber(toBN(this).maskn(value));
|
|
@@ -14212,7 +14397,7 @@
|
|
|
14212
14397
|
|
|
14213
14398
|
shl(value) {
|
|
14214
14399
|
if (this.isNegative() || value < 0) {
|
|
14215
|
-
throwFault("
|
|
14400
|
+
throwFault("negative-width", "shl");
|
|
14216
14401
|
}
|
|
14217
14402
|
|
|
14218
14403
|
return toBigNumber(toBN(this).shln(value));
|
|
@@ -14220,7 +14405,7 @@
|
|
|
14220
14405
|
|
|
14221
14406
|
shr(value) {
|
|
14222
14407
|
if (this.isNegative() || value < 0) {
|
|
14223
|
-
throwFault("
|
|
14408
|
+
throwFault("negative-width", "shr");
|
|
14224
14409
|
}
|
|
14225
14410
|
|
|
14226
14411
|
return toBigNumber(toBN(this).shrn(value));
|
|
@@ -14456,7 +14641,7 @@
|
|
|
14456
14641
|
return new BN(value, 36).toString(16);
|
|
14457
14642
|
} // value should have no prefix
|
|
14458
14643
|
|
|
14459
|
-
const version$e = "properties/5.
|
|
14644
|
+
const version$e = "properties/5.6.0";
|
|
14460
14645
|
|
|
14461
14646
|
var __awaiter$8 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
14462
14647
|
function adopt(value) {
|
|
@@ -14635,7 +14820,7 @@
|
|
|
14635
14820
|
|
|
14636
14821
|
}
|
|
14637
14822
|
|
|
14638
|
-
const version$d = "abi/5.
|
|
14823
|
+
const version$d = "abi/5.6.0";
|
|
14639
14824
|
|
|
14640
14825
|
const logger$k = new Logger(version$d);
|
|
14641
14826
|
const _constructorGuard$1 = {};
|
|
@@ -16623,7 +16808,7 @@
|
|
|
16623
16808
|
return '0x' + sha3$1.keccak_256(arrayify(data));
|
|
16624
16809
|
}
|
|
16625
16810
|
|
|
16626
|
-
const version$c = "rlp/5.
|
|
16811
|
+
const version$c = "rlp/5.6.0";
|
|
16627
16812
|
|
|
16628
16813
|
const logger$i = new Logger(version$c);
|
|
16629
16814
|
|
|
@@ -16786,7 +16971,7 @@
|
|
|
16786
16971
|
return decoded.result;
|
|
16787
16972
|
}
|
|
16788
16973
|
|
|
16789
|
-
const version$b = "address/5.
|
|
16974
|
+
const version$b = "address/5.6.0";
|
|
16790
16975
|
|
|
16791
16976
|
const logger$h = new Logger(version$b);
|
|
16792
16977
|
|
|
@@ -17369,7 +17554,7 @@
|
|
|
17369
17554
|
|
|
17370
17555
|
}
|
|
17371
17556
|
|
|
17372
|
-
const version$a = "strings/5.
|
|
17557
|
+
const version$a = "strings/5.6.0";
|
|
17373
17558
|
|
|
17374
17559
|
const logger$f = new Logger(version$a); ///////////////////////////////
|
|
17375
17560
|
|
|
@@ -18188,7 +18373,7 @@
|
|
|
18188
18373
|
return keccak256(toUtf8Bytes(text));
|
|
18189
18374
|
}
|
|
18190
18375
|
|
|
18191
|
-
const version$9 = "hash/5.
|
|
18376
|
+
const version$9 = "hash/5.6.0";
|
|
18192
18377
|
|
|
18193
18378
|
const logger$d = new Logger(version$9);
|
|
18194
18379
|
const Zeros = new Uint8Array(32);
|
|
@@ -18217,6 +18402,15 @@
|
|
|
18217
18402
|
|
|
18218
18403
|
return hexlify(result);
|
|
18219
18404
|
}
|
|
18405
|
+
function dnsEncode(name) {
|
|
18406
|
+
return hexlify(concat$1(name.split(".").map(comp => {
|
|
18407
|
+
// We jam in an _ prefix to fill in with the length later
|
|
18408
|
+
// Note: Nameprep throws if the component is over 63 bytes
|
|
18409
|
+
const bytes = toUtf8Bytes("_" + nameprep(comp));
|
|
18410
|
+
bytes[0] = bytes.length - 1;
|
|
18411
|
+
return bytes;
|
|
18412
|
+
}))) + "00";
|
|
18413
|
+
}
|
|
18220
18414
|
|
|
18221
18415
|
var __awaiter$7 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
18222
18416
|
function adopt(value) {
|
|
@@ -19496,7 +19690,7 @@
|
|
|
19496
19690
|
|
|
19497
19691
|
}
|
|
19498
19692
|
|
|
19499
|
-
const version$8 = "abstract-provider/5.
|
|
19693
|
+
const version$8 = "abstract-provider/5.6.0";
|
|
19500
19694
|
|
|
19501
19695
|
var __awaiter$6 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
19502
19696
|
function adopt(value) {
|
|
@@ -19567,7 +19761,7 @@
|
|
|
19567
19761
|
// We may want to compute this more accurately in the future,
|
|
19568
19762
|
// using the formula "check if the base fee is correct".
|
|
19569
19763
|
// See: https://eips.ethereum.org/EIPS/eip-1559
|
|
19570
|
-
maxPriorityFeePerGas = BigNumber.from("
|
|
19764
|
+
maxPriorityFeePerGas = BigNumber.from("1500000000");
|
|
19571
19765
|
maxFeePerGas = block.baseFeePerGas.mul(2).add(maxPriorityFeePerGas);
|
|
19572
19766
|
}
|
|
19573
19767
|
|
|
@@ -19595,7 +19789,7 @@
|
|
|
19595
19789
|
|
|
19596
19790
|
}
|
|
19597
19791
|
|
|
19598
|
-
const version$7 = "abstract-signer/5.
|
|
19792
|
+
const version$7 = "abstract-signer/5.6.0";
|
|
19599
19793
|
|
|
19600
19794
|
var __awaiter$5 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
19601
19795
|
function adopt(value) {
|
|
@@ -19629,7 +19823,7 @@
|
|
|
19629
19823
|
});
|
|
19630
19824
|
};
|
|
19631
19825
|
const logger$9 = new Logger(version$7);
|
|
19632
|
-
const allowedTransactionKeys$1 = ["accessList", "chainId", "customData", "data", "from", "gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "to", "type", "value"];
|
|
19826
|
+
const allowedTransactionKeys$1 = ["accessList", "ccipReadEnabled", "chainId", "customData", "data", "from", "gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "to", "type", "value"];
|
|
19633
19827
|
const forwardErrors = [Logger.errors.INSUFFICIENT_FUNDS, Logger.errors.NONCE_EXPIRED, Logger.errors.REPLACEMENT_UNDERPRICED];
|
|
19634
19828
|
class Signer {
|
|
19635
19829
|
///////////////////
|
|
@@ -23142,7 +23336,7 @@
|
|
|
23142
23336
|
});
|
|
23143
23337
|
var EC$1 = elliptic_1.ec;
|
|
23144
23338
|
|
|
23145
|
-
const version$6 = "signing-key/5.
|
|
23339
|
+
const version$6 = "signing-key/5.6.0";
|
|
23146
23340
|
|
|
23147
23341
|
const logger$8 = new Logger(version$6);
|
|
23148
23342
|
let _curve = null;
|
|
@@ -23236,7 +23430,7 @@
|
|
|
23236
23430
|
return logger$8.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
|
|
23237
23431
|
}
|
|
23238
23432
|
|
|
23239
|
-
const version$5 = "transactions/5.
|
|
23433
|
+
const version$5 = "transactions/5.6.0";
|
|
23240
23434
|
|
|
23241
23435
|
const logger$7 = new Logger(version$5);
|
|
23242
23436
|
var TransactionTypes;
|
|
@@ -23546,7 +23740,7 @@
|
|
|
23546
23740
|
});
|
|
23547
23741
|
}
|
|
23548
23742
|
|
|
23549
|
-
const version$4 = "contracts/5.
|
|
23743
|
+
const version$4 = "contracts/5.6.0";
|
|
23550
23744
|
|
|
23551
23745
|
var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
23552
23746
|
function adopt(value) {
|
|
@@ -23764,6 +23958,10 @@
|
|
|
23764
23958
|
|
|
23765
23959
|
if (ro.customData) {
|
|
23766
23960
|
tx.customData = shallowCopy(ro.customData);
|
|
23961
|
+
}
|
|
23962
|
+
|
|
23963
|
+
if (ro.ccipReadEnabled) {
|
|
23964
|
+
tx.ccipReadEnabled = !!ro.ccipReadEnabled;
|
|
23767
23965
|
} // Remove the overrides
|
|
23768
23966
|
|
|
23769
23967
|
|
|
@@ -23776,7 +23974,8 @@
|
|
|
23776
23974
|
delete overrides.accessList;
|
|
23777
23975
|
delete overrides.maxFeePerGas;
|
|
23778
23976
|
delete overrides.maxPriorityFeePerGas;
|
|
23779
|
-
delete overrides.customData;
|
|
23977
|
+
delete overrides.customData;
|
|
23978
|
+
delete overrides.ccipReadEnabled; // Make sure there are no stray overrides, which may indicate a
|
|
23780
23979
|
// typo or using an unsupported key.
|
|
23781
23980
|
|
|
23782
23981
|
const leftovers = Object.keys(overrides).filter(key => overrides[key] != null);
|
|
@@ -24188,8 +24387,10 @@
|
|
|
24188
24387
|
operation: "new Contract"
|
|
24189
24388
|
});
|
|
24190
24389
|
}
|
|
24191
|
-
}
|
|
24390
|
+
} // Swallow bad ENS names to prevent Unhandled Exceptions
|
|
24391
|
+
|
|
24192
24392
|
|
|
24393
|
+
this.resolvedAddress.catch(e => {});
|
|
24193
24394
|
const uniqueNames = {};
|
|
24194
24395
|
const uniqueSignatures = {};
|
|
24195
24396
|
Object.keys(this.interface.functions).forEach(signature => {
|
|
@@ -24778,14 +24979,14 @@
|
|
|
24778
24979
|
const Base58 = new BaseX("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");
|
|
24779
24980
|
//console.log(Base58.encode(Base58.decode("Qmd2V777o5XvJbYMeMb8k2nU5f8d3ciUQ5YpYuWhzv8iDj")))
|
|
24780
24981
|
|
|
24781
|
-
const version$3 = "sha2/5.
|
|
24982
|
+
const version$3 = "sha2/5.6.0";
|
|
24782
24983
|
|
|
24783
24984
|
new Logger(version$3);
|
|
24784
24985
|
function sha256(data) {
|
|
24785
24986
|
return "0x" + hash.sha256().update(arrayify(data)).digest("hex");
|
|
24786
24987
|
}
|
|
24787
24988
|
|
|
24788
|
-
const version$2 = "networks/5.
|
|
24989
|
+
const version$2 = "networks/5.6.0";
|
|
24789
24990
|
|
|
24790
24991
|
const logger$5 = new Logger(version$2);
|
|
24791
24992
|
|
|
@@ -24801,25 +25002,25 @@
|
|
|
24801
25002
|
|
|
24802
25003
|
const providerList = [];
|
|
24803
25004
|
|
|
24804
|
-
if (providers.InfuraProvider) {
|
|
25005
|
+
if (providers.InfuraProvider && options.infura !== "-") {
|
|
24805
25006
|
try {
|
|
24806
25007
|
providerList.push(new providers.InfuraProvider(network, options.infura));
|
|
24807
25008
|
} catch (error) {}
|
|
24808
25009
|
}
|
|
24809
25010
|
|
|
24810
|
-
if (providers.EtherscanProvider) {
|
|
25011
|
+
if (providers.EtherscanProvider && options.etherscan !== "-") {
|
|
24811
25012
|
try {
|
|
24812
25013
|
providerList.push(new providers.EtherscanProvider(network, options.etherscan));
|
|
24813
25014
|
} catch (error) {}
|
|
24814
25015
|
}
|
|
24815
25016
|
|
|
24816
|
-
if (providers.AlchemyProvider) {
|
|
25017
|
+
if (providers.AlchemyProvider && options.alchemy !== "-") {
|
|
24817
25018
|
try {
|
|
24818
25019
|
providerList.push(new providers.AlchemyProvider(network, options.alchemy));
|
|
24819
25020
|
} catch (error) {}
|
|
24820
25021
|
}
|
|
24821
25022
|
|
|
24822
|
-
if (providers.PocketProvider) {
|
|
25023
|
+
if (providers.PocketProvider && options.pocket !== "-") {
|
|
24823
25024
|
// These networks are currently faulty on Pocket as their
|
|
24824
25025
|
// network does not handle the Berlin hardfork, which is
|
|
24825
25026
|
// live on these ones.
|
|
@@ -24835,7 +25036,7 @@
|
|
|
24835
25036
|
} catch (error) {}
|
|
24836
25037
|
}
|
|
24837
25038
|
|
|
24838
|
-
if (providers.CloudflareProvider) {
|
|
25039
|
+
if (providers.CloudflareProvider && options.cloudflare !== "-") {
|
|
24839
25040
|
try {
|
|
24840
25041
|
providerList.push(new providers.CloudflareProvider(network));
|
|
24841
25042
|
} catch (error) {}
|
|
@@ -25098,7 +25299,7 @@
|
|
|
25098
25299
|
return btoa(textData);
|
|
25099
25300
|
}
|
|
25100
25301
|
|
|
25101
|
-
const version$1 = "web/5.
|
|
25302
|
+
const version$1 = "web/5.6.0";
|
|
25102
25303
|
|
|
25103
25304
|
var __awaiter$3 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
25104
25305
|
function adopt(value) {
|
|
@@ -25251,6 +25452,7 @@
|
|
|
25251
25452
|
const throttleCallback = typeof connection === "object" ? connection.throttleCallback : null;
|
|
25252
25453
|
const throttleSlotInterval = typeof connection === "object" && typeof connection.throttleSlotInterval === "number" ? connection.throttleSlotInterval : 100;
|
|
25253
25454
|
logger$4.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval);
|
|
25455
|
+
const errorPassThrough = typeof connection === "object" ? !!connection.errorPassThrough : false;
|
|
25254
25456
|
const headers = {};
|
|
25255
25457
|
let url = null; // @TODO: Allow ConnectionInfo to override some of these values
|
|
25256
25458
|
|
|
@@ -25304,6 +25506,10 @@
|
|
|
25304
25506
|
value: "Basic " + encode$1(toUtf8Bytes(authorization))
|
|
25305
25507
|
};
|
|
25306
25508
|
}
|
|
25509
|
+
|
|
25510
|
+
if (connection.skipFetchSetup != null) {
|
|
25511
|
+
options.skipFetchSetup = !!connection.skipFetchSetup;
|
|
25512
|
+
}
|
|
25307
25513
|
}
|
|
25308
25514
|
|
|
25309
25515
|
const reData = new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$", "i");
|
|
@@ -25457,7 +25663,7 @@
|
|
|
25457
25663
|
|
|
25458
25664
|
if (allow304 && response.statusCode === 304) {
|
|
25459
25665
|
body = null;
|
|
25460
|
-
} else if (response.statusCode < 200 || response.statusCode >= 300) {
|
|
25666
|
+
} else if (!errorPassThrough && (response.statusCode < 200 || response.statusCode >= 300)) {
|
|
25461
25667
|
runningTimeout.cancel();
|
|
25462
25668
|
logger$4.throwError("bad response", Logger.errors.SERVER_ERROR, {
|
|
25463
25669
|
status: response.statusCode,
|
|
@@ -25838,7 +26044,7 @@
|
|
|
25838
26044
|
fromWords: fromWords
|
|
25839
26045
|
};
|
|
25840
26046
|
|
|
25841
|
-
const version = "providers/5.
|
|
26047
|
+
const version = "providers/5.6.1";
|
|
25842
26048
|
|
|
25843
26049
|
const logger$3 = new Logger(version);
|
|
25844
26050
|
class Formatter {
|
|
@@ -25930,7 +26136,7 @@
|
|
|
25930
26136
|
type: type
|
|
25931
26137
|
};
|
|
25932
26138
|
formats.block = {
|
|
25933
|
-
hash: hash,
|
|
26139
|
+
hash: Formatter.allowNull(hash),
|
|
25934
26140
|
parentHash: hash,
|
|
25935
26141
|
number: number,
|
|
25936
26142
|
timestamp: number,
|
|
@@ -25938,7 +26144,7 @@
|
|
|
25938
26144
|
difficulty: this.difficulty.bind(this),
|
|
25939
26145
|
gasLimit: bigNumber,
|
|
25940
26146
|
gasUsed: bigNumber,
|
|
25941
|
-
miner: address,
|
|
26147
|
+
miner: Formatter.allowNull(address),
|
|
25942
26148
|
extraData: data,
|
|
25943
26149
|
transactions: Formatter.allowNull(Formatter.arrayOf(hash)),
|
|
25944
26150
|
baseFeePerGas: Formatter.allowNull(bigNumber)
|
|
@@ -26361,6 +26567,7 @@
|
|
|
26361
26567
|
});
|
|
26362
26568
|
};
|
|
26363
26569
|
const logger$2 = new Logger(version);
|
|
26570
|
+
const MAX_CCIP_REDIRECTS = 10; //////////////////////////////
|
|
26364
26571
|
// Event Serializeing
|
|
26365
26572
|
|
|
26366
26573
|
function checkTopic(topic) {
|
|
@@ -26473,6 +26680,8 @@
|
|
|
26473
26680
|
defineReadOnly(this, "tag", tag);
|
|
26474
26681
|
defineReadOnly(this, "listener", listener);
|
|
26475
26682
|
defineReadOnly(this, "once", once);
|
|
26683
|
+
this._lastBlockNumber = -2;
|
|
26684
|
+
this._inflight = false;
|
|
26476
26685
|
}
|
|
26477
26686
|
|
|
26478
26687
|
get event() {
|
|
@@ -26573,27 +26782,80 @@
|
|
|
26573
26782
|
const matcherIpfs = new RegExp("^(ipfs):/\/(.*)$", "i");
|
|
26574
26783
|
const matchers = [new RegExp("^(https):/\/(.*)$", "i"), new RegExp("^(data):(.*)$", "i"), matcherIpfs, new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$", "i")];
|
|
26575
26784
|
|
|
26576
|
-
function _parseString(result) {
|
|
26785
|
+
function _parseString(result, start) {
|
|
26577
26786
|
try {
|
|
26578
|
-
return toUtf8String(_parseBytes(result));
|
|
26787
|
+
return toUtf8String(_parseBytes(result, start));
|
|
26579
26788
|
} catch (error) {}
|
|
26580
26789
|
|
|
26581
26790
|
return null;
|
|
26582
26791
|
}
|
|
26583
26792
|
|
|
26584
|
-
function _parseBytes(result) {
|
|
26793
|
+
function _parseBytes(result, start) {
|
|
26585
26794
|
if (result === "0x") {
|
|
26586
26795
|
return null;
|
|
26587
26796
|
}
|
|
26588
26797
|
|
|
26589
|
-
const offset = BigNumber.from(hexDataSlice(result,
|
|
26798
|
+
const offset = BigNumber.from(hexDataSlice(result, start, start + 32)).toNumber();
|
|
26590
26799
|
const length = BigNumber.from(hexDataSlice(result, offset, offset + 32)).toNumber();
|
|
26591
26800
|
return hexDataSlice(result, offset + 32, offset + 32 + length);
|
|
26592
26801
|
} // Trim off the ipfs:// prefix and return the default gateway URL
|
|
26593
26802
|
|
|
26594
26803
|
|
|
26595
26804
|
function getIpfsLink(link) {
|
|
26596
|
-
|
|
26805
|
+
if (link.match(/^ipfs:\/\/ipfs\//i)) {
|
|
26806
|
+
link = link.substring(12);
|
|
26807
|
+
} else if (link.match(/^ipfs:\/\//i)) {
|
|
26808
|
+
link = link.substring(7);
|
|
26809
|
+
} else {
|
|
26810
|
+
logger$2.throwArgumentError("unsupported IPFS format", "link", link);
|
|
26811
|
+
}
|
|
26812
|
+
|
|
26813
|
+
return `https:/\/gateway.ipfs.io/ipfs/${link}`;
|
|
26814
|
+
}
|
|
26815
|
+
|
|
26816
|
+
function numPad(value) {
|
|
26817
|
+
const result = arrayify(value);
|
|
26818
|
+
|
|
26819
|
+
if (result.length > 32) {
|
|
26820
|
+
throw new Error("internal; should not happen");
|
|
26821
|
+
}
|
|
26822
|
+
|
|
26823
|
+
const padded = new Uint8Array(32);
|
|
26824
|
+
padded.set(result, 32 - result.length);
|
|
26825
|
+
return padded;
|
|
26826
|
+
}
|
|
26827
|
+
|
|
26828
|
+
function bytesPad(value) {
|
|
26829
|
+
if (value.length % 32 === 0) {
|
|
26830
|
+
return value;
|
|
26831
|
+
}
|
|
26832
|
+
|
|
26833
|
+
const result = new Uint8Array(Math.ceil(value.length / 32) * 32);
|
|
26834
|
+
result.set(value);
|
|
26835
|
+
return result;
|
|
26836
|
+
} // ABI Encodes a series of (bytes, bytes, ...)
|
|
26837
|
+
|
|
26838
|
+
|
|
26839
|
+
function encodeBytes(datas) {
|
|
26840
|
+
const result = [];
|
|
26841
|
+
let byteCount = 0; // Add place-holders for pointers as we add items
|
|
26842
|
+
|
|
26843
|
+
for (let i = 0; i < datas.length; i++) {
|
|
26844
|
+
result.push(null);
|
|
26845
|
+
byteCount += 32;
|
|
26846
|
+
}
|
|
26847
|
+
|
|
26848
|
+
for (let i = 0; i < datas.length; i++) {
|
|
26849
|
+
const data = arrayify(datas[i]); // Update the bytes offset
|
|
26850
|
+
|
|
26851
|
+
result[i] = numPad(byteCount); // The length and padded value of data
|
|
26852
|
+
|
|
26853
|
+
result.push(numPad(data.length));
|
|
26854
|
+
result.push(bytesPad(data));
|
|
26855
|
+
byteCount += 32 + Math.ceil(data.length / 32) * 32;
|
|
26856
|
+
}
|
|
26857
|
+
|
|
26858
|
+
return hexConcat(result);
|
|
26597
26859
|
}
|
|
26598
26860
|
|
|
26599
26861
|
class Resolver {
|
|
@@ -26605,26 +26867,82 @@
|
|
|
26605
26867
|
defineReadOnly(this, "_resolvedAddress", resolvedAddress);
|
|
26606
26868
|
}
|
|
26607
26869
|
|
|
26608
|
-
|
|
26870
|
+
supportsWildcard() {
|
|
26871
|
+
if (!this._supportsEip2544) {
|
|
26872
|
+
// supportsInterface(bytes4 = selector("resolve(bytes,bytes)"))
|
|
26873
|
+
this._supportsEip2544 = this.provider.call({
|
|
26874
|
+
to: this.address,
|
|
26875
|
+
data: "0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"
|
|
26876
|
+
}).then(result => {
|
|
26877
|
+
return BigNumber.from(result).eq(1);
|
|
26878
|
+
}).catch(error => {
|
|
26879
|
+
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
26880
|
+
return false;
|
|
26881
|
+
} // Rethrow the error: link is down, etc. Let future attempts retry.
|
|
26882
|
+
|
|
26883
|
+
|
|
26884
|
+
this._supportsEip2544 = null;
|
|
26885
|
+
throw error;
|
|
26886
|
+
});
|
|
26887
|
+
}
|
|
26888
|
+
|
|
26889
|
+
return this._supportsEip2544;
|
|
26890
|
+
}
|
|
26891
|
+
|
|
26892
|
+
_fetch(selector, parameters) {
|
|
26609
26893
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
26610
26894
|
// e.g. keccak256("addr(bytes32,uint256)")
|
|
26611
26895
|
const tx = {
|
|
26612
26896
|
to: this.address,
|
|
26897
|
+
ccipReadEnabled: true,
|
|
26613
26898
|
data: hexConcat([selector, namehash(this.name), parameters || "0x"])
|
|
26614
|
-
};
|
|
26899
|
+
}; // Wildcard support; use EIP-2544 to resolve the request
|
|
26900
|
+
|
|
26901
|
+
let parseBytes = false;
|
|
26902
|
+
|
|
26903
|
+
if (yield this.supportsWildcard()) {
|
|
26904
|
+
parseBytes = true; // selector("resolve(bytes,bytes)")
|
|
26905
|
+
|
|
26906
|
+
tx.data = hexConcat(["0x9061b923", encodeBytes([dnsEncode(this.name), tx.data])]);
|
|
26907
|
+
}
|
|
26615
26908
|
|
|
26616
26909
|
try {
|
|
26617
|
-
|
|
26910
|
+
let result = yield this.provider.call(tx);
|
|
26911
|
+
|
|
26912
|
+
if (arrayify(result).length % 32 === 4) {
|
|
26913
|
+
logger$2.throwError("resolver threw error", Logger.errors.CALL_EXCEPTION, {
|
|
26914
|
+
transaction: tx,
|
|
26915
|
+
data: result
|
|
26916
|
+
});
|
|
26917
|
+
}
|
|
26918
|
+
|
|
26919
|
+
if (parseBytes) {
|
|
26920
|
+
result = _parseBytes(result, 0);
|
|
26921
|
+
}
|
|
26922
|
+
|
|
26923
|
+
return result;
|
|
26618
26924
|
} catch (error) {
|
|
26619
26925
|
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
26620
26926
|
return null;
|
|
26621
26927
|
}
|
|
26622
26928
|
|
|
26623
|
-
|
|
26929
|
+
throw error;
|
|
26624
26930
|
}
|
|
26625
26931
|
});
|
|
26626
26932
|
}
|
|
26627
26933
|
|
|
26934
|
+
_fetchBytes(selector, parameters) {
|
|
26935
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
26936
|
+
const result = yield this._fetch(selector, parameters);
|
|
26937
|
+
|
|
26938
|
+
if (result != null) {
|
|
26939
|
+
return _parseBytes(result, 0);
|
|
26940
|
+
}
|
|
26941
|
+
|
|
26942
|
+
return null;
|
|
26943
|
+
});
|
|
26944
|
+
}
|
|
26945
|
+
|
|
26628
26946
|
_getAddress(coinType, hexBytes) {
|
|
26629
26947
|
const coinInfo = coinInfos[String(coinType)];
|
|
26630
26948
|
|
|
@@ -26699,17 +27017,13 @@
|
|
|
26699
27017
|
if (coinType === 60) {
|
|
26700
27018
|
try {
|
|
26701
27019
|
// keccak256("addr(bytes32)")
|
|
26702
|
-
const
|
|
26703
|
-
to: this.address,
|
|
26704
|
-
data: "0x3b3b57de" + namehash(this.name).substring(2)
|
|
26705
|
-
};
|
|
26706
|
-
const hexBytes = yield this.provider.call(transaction); // No address
|
|
27020
|
+
const result = yield this._fetch("0x3b3b57de"); // No address
|
|
26707
27021
|
|
|
26708
|
-
if (
|
|
27022
|
+
if (result === "0x" || result === HashZero) {
|
|
26709
27023
|
return null;
|
|
26710
27024
|
}
|
|
26711
27025
|
|
|
26712
|
-
return this.provider.formatter.callAddress(
|
|
27026
|
+
return this.provider.formatter.callAddress(result);
|
|
26713
27027
|
} catch (error) {
|
|
26714
27028
|
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
26715
27029
|
return null;
|
|
@@ -26855,14 +27169,14 @@
|
|
|
26855
27169
|
data: hexConcat([selector, tokenId])
|
|
26856
27170
|
};
|
|
26857
27171
|
|
|
26858
|
-
let metadataUrl = _parseString(yield this.provider.call(tx));
|
|
27172
|
+
let metadataUrl = _parseString(yield this.provider.call(tx), 0);
|
|
26859
27173
|
|
|
26860
27174
|
if (metadataUrl == null) {
|
|
26861
27175
|
return null;
|
|
26862
27176
|
}
|
|
26863
27177
|
|
|
26864
27178
|
linkage.push({
|
|
26865
|
-
type: "metadata-url",
|
|
27179
|
+
type: "metadata-url-base",
|
|
26866
27180
|
content: metadataUrl
|
|
26867
27181
|
}); // ERC-1155 allows a generic {id} in the URL
|
|
26868
27182
|
|
|
@@ -26872,9 +27186,18 @@
|
|
|
26872
27186
|
type: "metadata-url-expanded",
|
|
26873
27187
|
content: metadataUrl
|
|
26874
27188
|
});
|
|
26875
|
-
} //
|
|
27189
|
+
} // Transform IPFS metadata links
|
|
26876
27190
|
|
|
26877
27191
|
|
|
27192
|
+
if (metadataUrl.match(/^ipfs:/i)) {
|
|
27193
|
+
metadataUrl = getIpfsLink(metadataUrl);
|
|
27194
|
+
}
|
|
27195
|
+
|
|
27196
|
+
linkage.push({
|
|
27197
|
+
type: "metadata-url",
|
|
27198
|
+
content: metadataUrl
|
|
27199
|
+
}); // Get the token metadata
|
|
27200
|
+
|
|
26878
27201
|
const metadata = yield fetchJson(metadataUrl);
|
|
26879
27202
|
|
|
26880
27203
|
if (!metadata) {
|
|
@@ -27004,6 +27327,7 @@
|
|
|
27004
27327
|
this._emitted = {
|
|
27005
27328
|
block: -2
|
|
27006
27329
|
};
|
|
27330
|
+
this.disableCcipRead = false;
|
|
27007
27331
|
this.formatter = new.target.getFormatter(); // If network is any, this Provider allows the underlying
|
|
27008
27332
|
// network to change dynamically, and we auto-detect the
|
|
27009
27333
|
// current network
|
|
@@ -27033,6 +27357,7 @@
|
|
|
27033
27357
|
|
|
27034
27358
|
this._maxInternalBlockNumber = -1024;
|
|
27035
27359
|
this._lastBlockNumber = -2;
|
|
27360
|
+
this._maxFilterBlockRange = 10;
|
|
27036
27361
|
this._pollingInterval = 4000;
|
|
27037
27362
|
this._fastQueryDate = 0;
|
|
27038
27363
|
}
|
|
@@ -27105,6 +27430,57 @@
|
|
|
27105
27430
|
|
|
27106
27431
|
static getNetwork(network) {
|
|
27107
27432
|
return getNetwork(network == null ? "homestead" : network);
|
|
27433
|
+
}
|
|
27434
|
+
|
|
27435
|
+
ccipReadFetch(tx, calldata, urls) {
|
|
27436
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
27437
|
+
if (this.disableCcipRead || urls.length === 0) {
|
|
27438
|
+
return null;
|
|
27439
|
+
}
|
|
27440
|
+
|
|
27441
|
+
const sender = tx.to.toLowerCase();
|
|
27442
|
+
const data = calldata.toLowerCase();
|
|
27443
|
+
const errorMessages = [];
|
|
27444
|
+
|
|
27445
|
+
for (let i = 0; i < urls.length; i++) {
|
|
27446
|
+
const url = urls[i]; // URL expansion
|
|
27447
|
+
|
|
27448
|
+
const href = url.replace("{sender}", sender).replace("{data}", data); // If no {data} is present, use POST; otherwise GET
|
|
27449
|
+
|
|
27450
|
+
const json = url.indexOf("{data}") >= 0 ? null : JSON.stringify({
|
|
27451
|
+
data,
|
|
27452
|
+
sender
|
|
27453
|
+
});
|
|
27454
|
+
const result = yield fetchJson({
|
|
27455
|
+
url: href,
|
|
27456
|
+
errorPassThrough: true
|
|
27457
|
+
}, json, (value, response) => {
|
|
27458
|
+
value.status = response.statusCode;
|
|
27459
|
+
return value;
|
|
27460
|
+
});
|
|
27461
|
+
|
|
27462
|
+
if (result.data) {
|
|
27463
|
+
return result.data;
|
|
27464
|
+
}
|
|
27465
|
+
|
|
27466
|
+
const errorMessage = result.message || "unknown error"; // 4xx indicates the result is not present; stop
|
|
27467
|
+
|
|
27468
|
+
if (result.status >= 400 && result.status < 500) {
|
|
27469
|
+
return logger$2.throwError(`response not found during CCIP fetch: ${errorMessage}`, Logger.errors.SERVER_ERROR, {
|
|
27470
|
+
url,
|
|
27471
|
+
errorMessage
|
|
27472
|
+
});
|
|
27473
|
+
} // 5xx indicates server issue; try the next url
|
|
27474
|
+
|
|
27475
|
+
|
|
27476
|
+
errorMessages.push(errorMessage);
|
|
27477
|
+
}
|
|
27478
|
+
|
|
27479
|
+
return logger$2.throwError(`error encountered during CCIP fetch: ${errorMessages.map(m => JSON.stringify(m)).join(", ")}`, Logger.errors.SERVER_ERROR, {
|
|
27480
|
+
urls,
|
|
27481
|
+
errorMessages
|
|
27482
|
+
});
|
|
27483
|
+
});
|
|
27108
27484
|
} // Fetches the blockNumber, but will reuse any result that is less
|
|
27109
27485
|
// than maxAge old or has been requested since the last request
|
|
27110
27486
|
|
|
@@ -27286,23 +27662,49 @@
|
|
|
27286
27662
|
|
|
27287
27663
|
case "filter":
|
|
27288
27664
|
{
|
|
27289
|
-
|
|
27290
|
-
|
|
27291
|
-
|
|
27292
|
-
|
|
27293
|
-
|
|
27294
|
-
|
|
27665
|
+
// We only allow a single getLogs to be in-flight at a time
|
|
27666
|
+
if (!event._inflight) {
|
|
27667
|
+
event._inflight = true; // Filter from the last known event; due to load-balancing
|
|
27668
|
+
// and some nodes returning updated block numbers before
|
|
27669
|
+
// indexing events, a logs result with 0 entries cannot be
|
|
27670
|
+
// trusted and we must retry a range which includes it again
|
|
27671
|
+
|
|
27672
|
+
const filter = event.filter;
|
|
27673
|
+
filter.fromBlock = event._lastBlockNumber + 1;
|
|
27674
|
+
filter.toBlock = blockNumber; // Prevent fitler ranges from growing too wild
|
|
27675
|
+
|
|
27676
|
+
if (filter.toBlock - this._maxFilterBlockRange > filter.fromBlock) {
|
|
27677
|
+
filter.fromBlock = filter.toBlock - this._maxFilterBlockRange;
|
|
27295
27678
|
}
|
|
27296
27679
|
|
|
27297
|
-
|
|
27298
|
-
|
|
27299
|
-
|
|
27300
|
-
|
|
27680
|
+
const runner = this.getLogs(filter).then(logs => {
|
|
27681
|
+
// Allow the next getLogs
|
|
27682
|
+
event._inflight = false;
|
|
27683
|
+
|
|
27684
|
+
if (logs.length === 0) {
|
|
27685
|
+
return;
|
|
27686
|
+
}
|
|
27687
|
+
|
|
27688
|
+
logs.forEach(log => {
|
|
27689
|
+
// Only when we get an event for a given block number
|
|
27690
|
+
// can we trust the events are indexed
|
|
27691
|
+
if (log.blockNumber > event._lastBlockNumber) {
|
|
27692
|
+
event._lastBlockNumber = log.blockNumber;
|
|
27693
|
+
} // Make sure we stall requests to fetch blocks and txs
|
|
27694
|
+
|
|
27695
|
+
|
|
27696
|
+
this._emitted["b:" + log.blockHash] = log.blockNumber;
|
|
27697
|
+
this._emitted["t:" + log.transactionHash] = log.blockNumber;
|
|
27698
|
+
this.emit(filter, log);
|
|
27699
|
+
});
|
|
27700
|
+
}).catch(error => {
|
|
27701
|
+
this.emit("error", error); // Allow another getLogs (the range was not updated)
|
|
27702
|
+
|
|
27703
|
+
event._inflight = false;
|
|
27301
27704
|
});
|
|
27302
|
-
|
|
27303
|
-
|
|
27304
|
-
|
|
27305
|
-
runners.push(runner);
|
|
27705
|
+
runners.push(runner);
|
|
27706
|
+
}
|
|
27707
|
+
|
|
27306
27708
|
break;
|
|
27307
27709
|
}
|
|
27308
27710
|
}
|
|
@@ -27930,21 +28332,106 @@
|
|
|
27930
28332
|
});
|
|
27931
28333
|
}
|
|
27932
28334
|
|
|
27933
|
-
|
|
28335
|
+
_call(transaction, blockTag, attempt) {
|
|
27934
28336
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
27935
|
-
|
|
27936
|
-
|
|
27937
|
-
|
|
27938
|
-
|
|
27939
|
-
|
|
27940
|
-
|
|
28337
|
+
if (attempt >= MAX_CCIP_REDIRECTS) {
|
|
28338
|
+
logger$2.throwError("CCIP read exceeded maximum redirections", Logger.errors.SERVER_ERROR, {
|
|
28339
|
+
redirects: attempt,
|
|
28340
|
+
transaction
|
|
28341
|
+
});
|
|
28342
|
+
}
|
|
28343
|
+
|
|
28344
|
+
const txSender = transaction.to;
|
|
28345
|
+
const result = yield this.perform("call", {
|
|
28346
|
+
transaction,
|
|
28347
|
+
blockTag
|
|
28348
|
+
}); // CCIP Read request via OffchainLookup(address,string[],bytes,bytes4,bytes)
|
|
28349
|
+
|
|
28350
|
+
if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && hexDataLength(result) % 32 === 4) {
|
|
28351
|
+
try {
|
|
28352
|
+
const data = hexDataSlice(result, 4); // Check the sender of the OffchainLookup matches the transaction
|
|
28353
|
+
|
|
28354
|
+
const sender = hexDataSlice(data, 0, 32);
|
|
28355
|
+
|
|
28356
|
+
if (!BigNumber.from(sender).eq(txSender)) {
|
|
28357
|
+
logger$2.throwError("CCIP Read sender did not match", Logger.errors.CALL_EXCEPTION, {
|
|
28358
|
+
name: "OffchainLookup",
|
|
28359
|
+
signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
|
|
28360
|
+
transaction,
|
|
28361
|
+
data: result
|
|
28362
|
+
});
|
|
28363
|
+
} // Read the URLs from the response
|
|
28364
|
+
|
|
28365
|
+
|
|
28366
|
+
const urls = [];
|
|
28367
|
+
const urlsOffset = BigNumber.from(hexDataSlice(data, 32, 64)).toNumber();
|
|
28368
|
+
const urlsLength = BigNumber.from(hexDataSlice(data, urlsOffset, urlsOffset + 32)).toNumber();
|
|
28369
|
+
const urlsData = hexDataSlice(data, urlsOffset + 32);
|
|
28370
|
+
|
|
28371
|
+
for (let u = 0; u < urlsLength; u++) {
|
|
28372
|
+
const url = _parseString(urlsData, u * 32);
|
|
28373
|
+
|
|
28374
|
+
if (url == null) {
|
|
28375
|
+
logger$2.throwError("CCIP Read contained corrupt URL string", Logger.errors.CALL_EXCEPTION, {
|
|
28376
|
+
name: "OffchainLookup",
|
|
28377
|
+
signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
|
|
28378
|
+
transaction,
|
|
28379
|
+
data: result
|
|
28380
|
+
});
|
|
28381
|
+
}
|
|
28382
|
+
|
|
28383
|
+
urls.push(url);
|
|
28384
|
+
} // Get the CCIP calldata to forward
|
|
28385
|
+
|
|
28386
|
+
|
|
28387
|
+
const calldata = _parseBytes(data, 64); // Get the callbackSelector (bytes4)
|
|
28388
|
+
|
|
28389
|
+
|
|
28390
|
+
if (!BigNumber.from(hexDataSlice(data, 100, 128)).isZero()) {
|
|
28391
|
+
logger$2.throwError("CCIP Read callback selector included junk", Logger.errors.CALL_EXCEPTION, {
|
|
28392
|
+
name: "OffchainLookup",
|
|
28393
|
+
signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
|
|
28394
|
+
transaction,
|
|
28395
|
+
data: result
|
|
28396
|
+
});
|
|
28397
|
+
}
|
|
28398
|
+
|
|
28399
|
+
const callbackSelector = hexDataSlice(data, 96, 100); // Get the extra data to send back to the contract as context
|
|
28400
|
+
|
|
28401
|
+
const extraData = _parseBytes(data, 128);
|
|
28402
|
+
|
|
28403
|
+
const ccipResult = yield this.ccipReadFetch(transaction, calldata, urls);
|
|
28404
|
+
|
|
28405
|
+
if (ccipResult == null) {
|
|
28406
|
+
logger$2.throwError("CCIP Read disabled or provided no URLs", Logger.errors.CALL_EXCEPTION, {
|
|
28407
|
+
name: "OffchainLookup",
|
|
28408
|
+
signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
|
|
28409
|
+
transaction,
|
|
28410
|
+
data: result
|
|
28411
|
+
});
|
|
28412
|
+
}
|
|
28413
|
+
|
|
28414
|
+
const tx = {
|
|
28415
|
+
to: txSender,
|
|
28416
|
+
data: hexConcat([callbackSelector, encodeBytes([ccipResult, extraData])])
|
|
28417
|
+
};
|
|
28418
|
+
return this._call(tx, blockTag, attempt + 1);
|
|
28419
|
+
} catch (error) {
|
|
28420
|
+
if (error.code === Logger.errors.SERVER_ERROR) {
|
|
28421
|
+
throw error;
|
|
28422
|
+
}
|
|
28423
|
+
}
|
|
28424
|
+
}
|
|
27941
28425
|
|
|
27942
28426
|
try {
|
|
27943
28427
|
return hexlify(result);
|
|
27944
28428
|
} catch (error) {
|
|
27945
28429
|
return logger$2.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
|
|
27946
28430
|
method: "call",
|
|
27947
|
-
params
|
|
28431
|
+
params: {
|
|
28432
|
+
transaction,
|
|
28433
|
+
blockTag
|
|
28434
|
+
},
|
|
27948
28435
|
result,
|
|
27949
28436
|
error
|
|
27950
28437
|
});
|
|
@@ -27952,6 +28439,18 @@
|
|
|
27952
28439
|
});
|
|
27953
28440
|
}
|
|
27954
28441
|
|
|
28442
|
+
call(transaction, blockTag) {
|
|
28443
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28444
|
+
yield this.getNetwork();
|
|
28445
|
+
const resolved = yield resolveProperties({
|
|
28446
|
+
transaction: this._getTransactionRequest(transaction),
|
|
28447
|
+
blockTag: this._getBlockTag(blockTag),
|
|
28448
|
+
ccipReadEnabled: Promise.resolve(transaction.ccipReadEnabled)
|
|
28449
|
+
});
|
|
28450
|
+
return this._call(resolved.transaction, resolved.blockTag, resolved.ccipReadEnabled ? 0 : -1);
|
|
28451
|
+
});
|
|
28452
|
+
}
|
|
28453
|
+
|
|
27955
28454
|
estimateGas(transaction) {
|
|
27956
28455
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
27957
28456
|
yield this.getNetwork();
|
|
@@ -28221,51 +28720,64 @@
|
|
|
28221
28720
|
|
|
28222
28721
|
getResolver(name) {
|
|
28223
28722
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28224
|
-
|
|
28225
|
-
const address = yield this._getResolver(name);
|
|
28723
|
+
let currentName = name;
|
|
28226
28724
|
|
|
28227
|
-
|
|
28725
|
+
while (true) {
|
|
28726
|
+
if (currentName === "" || currentName === ".") {
|
|
28228
28727
|
return null;
|
|
28229
|
-
}
|
|
28728
|
+
} // Optimization since the eth node cannot change and does
|
|
28729
|
+
// not have a wildcar resolver
|
|
28230
28730
|
|
|
28231
|
-
|
|
28232
|
-
|
|
28233
|
-
if (error.code === Logger.errors.CALL_EXCEPTION) {
|
|
28731
|
+
|
|
28732
|
+
if (name !== "eth" && currentName === "eth") {
|
|
28234
28733
|
return null;
|
|
28235
|
-
}
|
|
28734
|
+
} // Check the current node for a resolver
|
|
28236
28735
|
|
|
28237
|
-
|
|
28736
|
+
|
|
28737
|
+
const addr = yield this._getResolver(currentName, "getResolver"); // Found a resolver!
|
|
28738
|
+
|
|
28739
|
+
if (addr != null) {
|
|
28740
|
+
const resolver = new Resolver(this, addr, name); // Legacy resolver found, using EIP-2544 so it isn't safe to use
|
|
28741
|
+
|
|
28742
|
+
if (currentName !== name && !(yield resolver.supportsWildcard())) {
|
|
28743
|
+
return null;
|
|
28744
|
+
}
|
|
28745
|
+
|
|
28746
|
+
return resolver;
|
|
28747
|
+
} // Get the parent node
|
|
28748
|
+
|
|
28749
|
+
|
|
28750
|
+
currentName = currentName.split(".").slice(1).join(".");
|
|
28238
28751
|
}
|
|
28239
28752
|
});
|
|
28240
28753
|
}
|
|
28241
28754
|
|
|
28242
|
-
_getResolver(name) {
|
|
28755
|
+
_getResolver(name, operation) {
|
|
28243
28756
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28244
|
-
|
|
28757
|
+
if (operation == null) {
|
|
28758
|
+
operation = "ENS";
|
|
28759
|
+
}
|
|
28760
|
+
|
|
28245
28761
|
const network = yield this.getNetwork(); // No ENS...
|
|
28246
28762
|
|
|
28247
28763
|
if (!network.ensAddress) {
|
|
28248
28764
|
logger$2.throwError("network does not support ENS", Logger.errors.UNSUPPORTED_OPERATION, {
|
|
28249
|
-
operation
|
|
28765
|
+
operation,
|
|
28250
28766
|
network: network.name
|
|
28251
28767
|
});
|
|
28252
|
-
}
|
|
28253
|
-
|
|
28254
|
-
|
|
28255
|
-
const transaction = {
|
|
28256
|
-
to: network.ensAddress,
|
|
28257
|
-
data: "0x0178b8bf" + namehash(name).substring(2)
|
|
28258
|
-
};
|
|
28768
|
+
}
|
|
28259
28769
|
|
|
28260
28770
|
try {
|
|
28261
|
-
|
|
28262
|
-
|
|
28263
|
-
|
|
28264
|
-
|
|
28265
|
-
}
|
|
28266
|
-
|
|
28267
|
-
|
|
28771
|
+
// keccak256("resolver(bytes32)")
|
|
28772
|
+
const addrData = yield this.call({
|
|
28773
|
+
to: network.ensAddress,
|
|
28774
|
+
data: "0x0178b8bf" + namehash(name).substring(2)
|
|
28775
|
+
});
|
|
28776
|
+
return this.formatter.callAddress(addrData);
|
|
28777
|
+
} catch (error) {// ENS registry cannot throw errors on resolver(bytes32)
|
|
28268
28778
|
}
|
|
28779
|
+
|
|
28780
|
+
return null;
|
|
28269
28781
|
});
|
|
28270
28782
|
}
|
|
28271
28783
|
|
|
@@ -28301,38 +28813,18 @@
|
|
|
28301
28813
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
28302
28814
|
address = yield address;
|
|
28303
28815
|
address = this.formatter.address(address);
|
|
28304
|
-
const
|
|
28305
|
-
const
|
|
28816
|
+
const node = address.substring(2).toLowerCase() + ".addr.reverse";
|
|
28817
|
+
const resolverAddr = yield this._getResolver(node, "lookupAddress");
|
|
28306
28818
|
|
|
28307
|
-
if (
|
|
28819
|
+
if (resolverAddr == null) {
|
|
28308
28820
|
return null;
|
|
28309
28821
|
} // keccak("name(bytes32)")
|
|
28310
28822
|
|
|
28311
28823
|
|
|
28312
|
-
|
|
28313
|
-
to:
|
|
28314
|
-
data: "0x691f3431" + namehash(
|
|
28315
|
-
}));
|
|
28316
|
-
|
|
28317
|
-
if (bytes.length < 32 || !BigNumber.from(bytes.slice(0, 32)).eq(32)) {
|
|
28318
|
-
return null;
|
|
28319
|
-
}
|
|
28320
|
-
|
|
28321
|
-
bytes = bytes.slice(32); // Not a length-prefixed string
|
|
28322
|
-
|
|
28323
|
-
if (bytes.length < 32) {
|
|
28324
|
-
return null;
|
|
28325
|
-
} // Get the length of the string (from the length-prefix)
|
|
28326
|
-
|
|
28327
|
-
|
|
28328
|
-
const length = BigNumber.from(bytes.slice(0, 32)).toNumber();
|
|
28329
|
-
bytes = bytes.slice(32); // Length longer than available data
|
|
28330
|
-
|
|
28331
|
-
if (length > bytes.length) {
|
|
28332
|
-
return null;
|
|
28333
|
-
}
|
|
28334
|
-
|
|
28335
|
-
const name = toUtf8String(bytes.slice(0, length)); // Make sure the reverse record matches the foward record
|
|
28824
|
+
const name = _parseString(yield this.call({
|
|
28825
|
+
to: resolverAddr,
|
|
28826
|
+
data: "0x691f3431" + namehash(node).substring(2)
|
|
28827
|
+
}), 0);
|
|
28336
28828
|
|
|
28337
28829
|
const addr = yield this.resolveName(name);
|
|
28338
28830
|
|
|
@@ -28351,16 +28843,46 @@
|
|
|
28351
28843
|
if (isHexString(nameOrAddress)) {
|
|
28352
28844
|
// Address; reverse lookup
|
|
28353
28845
|
const address = this.formatter.address(nameOrAddress);
|
|
28354
|
-
const
|
|
28355
|
-
const resolverAddress = yield this._getResolver(
|
|
28846
|
+
const node = address.substring(2).toLowerCase() + ".addr.reverse";
|
|
28847
|
+
const resolverAddress = yield this._getResolver(node, "getAvatar");
|
|
28356
28848
|
|
|
28357
28849
|
if (!resolverAddress) {
|
|
28358
28850
|
return null;
|
|
28359
|
-
}
|
|
28851
|
+
} // Try resolving the avatar against the addr.reverse resolver
|
|
28852
|
+
|
|
28853
|
+
|
|
28854
|
+
resolver = new Resolver(this, resolverAddress, node);
|
|
28855
|
+
|
|
28856
|
+
try {
|
|
28857
|
+
const avatar = yield resolver.getAvatar();
|
|
28858
|
+
|
|
28859
|
+
if (avatar) {
|
|
28860
|
+
return avatar.url;
|
|
28861
|
+
}
|
|
28862
|
+
} catch (error) {
|
|
28863
|
+
if (error.code !== Logger.errors.CALL_EXCEPTION) {
|
|
28864
|
+
throw error;
|
|
28865
|
+
}
|
|
28866
|
+
} // Try getting the name and performing forward lookup; allowing wildcards
|
|
28360
28867
|
|
|
28361
|
-
|
|
28868
|
+
|
|
28869
|
+
try {
|
|
28870
|
+
// keccak("name(bytes32)")
|
|
28871
|
+
const name = _parseString(yield this.call({
|
|
28872
|
+
to: resolverAddress,
|
|
28873
|
+
data: "0x691f3431" + namehash(node).substring(2)
|
|
28874
|
+
}), 0);
|
|
28875
|
+
|
|
28876
|
+
resolver = yield this.getResolver(name);
|
|
28877
|
+
} catch (error) {
|
|
28878
|
+
if (error.code !== Logger.errors.CALL_EXCEPTION) {
|
|
28879
|
+
throw error;
|
|
28880
|
+
}
|
|
28881
|
+
|
|
28882
|
+
return null;
|
|
28883
|
+
}
|
|
28362
28884
|
} else {
|
|
28363
|
-
// ENS name; forward lookup
|
|
28885
|
+
// ENS name; forward lookup with wildcard
|
|
28364
28886
|
resolver = yield this.getResolver(nameOrAddress);
|
|
28365
28887
|
|
|
28366
28888
|
if (!resolver) {
|
|
@@ -29207,9 +29729,9 @@
|
|
|
29207
29729
|
}
|
|
29208
29730
|
|
|
29209
29731
|
checkProperties(transaction, allowed);
|
|
29210
|
-
const result = {}; //
|
|
29732
|
+
const result = {}; // JSON-RPC now requires numeric values to be "quantity" values
|
|
29211
29733
|
|
|
29212
|
-
["gasLimit", "gasPrice", "type", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "value"].forEach(function (key) {
|
|
29734
|
+
["chainId", "gasLimit", "gasPrice", "type", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "value"].forEach(function (key) {
|
|
29213
29735
|
if (transaction[key] == null) {
|
|
29214
29736
|
return;
|
|
29215
29737
|
}
|
|
@@ -29684,7 +30206,7 @@
|
|
|
29684
30206
|
};
|
|
29685
30207
|
var options = {
|
|
29686
30208
|
resume: false,
|
|
29687
|
-
endpoint: "
|
|
30209
|
+
endpoint: "https://stage-ca.ututrust.com/files" ,
|
|
29688
30210
|
headers: getAuthorizationHeader(accessToken),
|
|
29689
30211
|
chunkSize: 28 * 1024,
|
|
29690
30212
|
uploadLengthDeferred: true,
|
|
@@ -29731,7 +30253,7 @@
|
|
|
29731
30253
|
|
|
29732
30254
|
function getPublishedVideoUrl(apiUrl, uploadUrl) {
|
|
29733
30255
|
var videoId = uploadUrl.split("/").pop();
|
|
29734
|
-
var publishedUrl = "".concat("
|
|
30256
|
+
var publishedUrl = "".concat("https://tus-test-dev-003.s3.eu-central-1.amazonaws.com", "/").concat(videoId) || "".concat(apiUrl).concat(VIDEO_PUBLISHED_BASE).concat(videoId);
|
|
29735
30257
|
return publishedUrl;
|
|
29736
30258
|
}
|
|
29737
30259
|
|
|
@@ -30193,7 +30715,8 @@
|
|
|
30193
30715
|
_export({
|
|
30194
30716
|
target: 'AsyncIterator',
|
|
30195
30717
|
proto: true,
|
|
30196
|
-
real: true
|
|
30718
|
+
real: true,
|
|
30719
|
+
forced: true
|
|
30197
30720
|
}, {
|
|
30198
30721
|
find: function find(fn) {
|
|
30199
30722
|
return $find(this, fn);
|
|
@@ -30415,7 +30938,8 @@
|
|
|
30415
30938
|
_export({
|
|
30416
30939
|
target: 'Iterator',
|
|
30417
30940
|
proto: true,
|
|
30418
|
-
real: true
|
|
30941
|
+
real: true,
|
|
30942
|
+
forced: true
|
|
30419
30943
|
}, {
|
|
30420
30944
|
find: function find(fn) {
|
|
30421
30945
|
anObject(this);
|
|
@@ -30577,7 +31101,8 @@
|
|
|
30577
31101
|
_export({
|
|
30578
31102
|
target: 'AsyncIterator',
|
|
30579
31103
|
proto: true,
|
|
30580
|
-
real: true
|
|
31104
|
+
real: true,
|
|
31105
|
+
forced: true
|
|
30581
31106
|
}, {
|
|
30582
31107
|
map: function map(mapper) {
|
|
30583
31108
|
return new AsyncIteratorProxy({
|
|
@@ -30661,7 +31186,8 @@
|
|
|
30661
31186
|
_export({
|
|
30662
31187
|
target: 'Iterator',
|
|
30663
31188
|
proto: true,
|
|
30664
|
-
real: true
|
|
31189
|
+
real: true,
|
|
31190
|
+
forced: true
|
|
30665
31191
|
}, {
|
|
30666
31192
|
map: function map(mapper) {
|
|
30667
31193
|
return new IteratorProxy({
|
|
@@ -30862,7 +31388,7 @@
|
|
|
30862
31388
|
}));
|
|
30863
31389
|
}
|
|
30864
31390
|
|
|
30865
|
-
function
|
|
31391
|
+
function C(n,t){for(var e in t)n[e]=t[e];return n}function S(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n){this.props=n;}(E.prototype=new _).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return S(this.props,n)||S(this.state,t)};var w=l$3.__b;l$3.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),w&&w(n);};var A=l$3.__e;l$3.__e=function(n,t,e){if(n.then)for(var r,u=t;u=u.__;)if((r=u.__c)&&r.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),r.__c(n,t);A(n,t,e);};var O=l$3.unmount;function L(){this.__u=0,this.t=null,this.__b=null;}function U(n){var t=n.__.__c;return t&&t.__e&&t.__e(n)}function M(){this.u=null,this.o=null;}l$3.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),O&&O(n);},(L.prototype=new _).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=U(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__e){var n=r.state.__e;r.__v.__k[0]=function n(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate();}},c=!0===t.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),n.then(i,i);},L.prototype.componentWillUnmount=function(){this.t=[];},L.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function n(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),t.__c.__H=null),null!=(t=C({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)})),t}(this.__b,e,r.__O=r.__P);}this.__b=null;}var u=t.__e&&v$2(d$2,null,n.fallback);return u&&(u.__h=null),[v$2(d$2,null,t.__e?null:n.children),u]};var T=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};(M.prototype=new _).__e=function(n){var t=this,e=U(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),T(t,n,r)):u();};e?e(o):o();}},M.prototype.render=function(n){this.u=null,this.o=new Map;var t=A$2(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},M.prototype.componentDidUpdate=M.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){T(n,e,t);});};var j$1="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,P=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,V="undefined"!=typeof document,z=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};_.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(_.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t});}});});var H=l$3.event;function Z(){}function Y(){return this.cancelBubble}function q(){return this.defaultPrevented}l$3.event=function(n){return H&&(n=H(n)),n.persist=Z,n.isPropagationStopped=Y,n.isDefaultPrevented=q,n.nativeEvent=n};var J={configurable:!0,get:function(){return this.class}},K=l$3.vnode;l$3.vnode=function(n){var t=n.type,e=n.props,r=e;if("string"==typeof t){var u=-1===t.indexOf("-");for(var o in r={},e){var i=e[o];V&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in e&&null==i||("defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!z(e.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():u&&P.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i);}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=A$2(e.children).forEach(function(n){n.props.selected=-1!=r.value.indexOf(n.props.value);})),"select"==t&&null!=r.defaultValue&&(r.value=A$2(e.children).forEach(function(n){n.props.selected=r.multiple?-1!=r.defaultValue.indexOf(n.props.value):r.defaultValue==n.props.value;})),n.props=r,e.class!=e.className&&(J.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",J));}n.$$typeof=j$1,K&&K(n);};var Q=l$3.__r;l$3.__r=function(n){Q&&Q(n);};function en(n){return !!n&&n.$$typeof===j$1}
|
|
30866
31392
|
|
|
30867
31393
|
var isHTMLElement = value => value instanceof HTMLElement;
|
|
30868
31394
|
|
|
@@ -33439,25 +33965,40 @@
|
|
|
33439
33965
|
|
|
33440
33966
|
if (!((_window = window) !== null && _window !== void 0 && _window.ethereum || (_window2 = window) !== null && _window2 !== void 0 && _window2.web3) || !props[ATTR_TARGET_UUID] || !isAddress(props[ATTR_TARGET_UUID]) || !props[ATTR_TRANSACTION_ID]) return null;
|
|
33441
33967
|
|
|
33442
|
-
var
|
|
33443
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
33444
|
-
var provider, network, selectedNetwork;
|
|
33968
|
+
var requestNetworkChange = /*#__PURE__*/function () {
|
|
33969
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(provider, selectedNetwork) {
|
|
33445
33970
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
33446
33971
|
while (1) {
|
|
33447
33972
|
switch (_context.prev = _context.next) {
|
|
33448
33973
|
case 0:
|
|
33449
|
-
|
|
33450
|
-
|
|
33451
|
-
|
|
33452
|
-
|
|
33453
|
-
|
|
33974
|
+
_context.next = 2;
|
|
33975
|
+
return provider.request({
|
|
33976
|
+
method: "wallet_switchEthereumChain",
|
|
33977
|
+
params: [{
|
|
33978
|
+
chainId: hexStripZeros(hexlify(selectedNetwork.chainId))
|
|
33979
|
+
}]
|
|
33980
|
+
});
|
|
33454
33981
|
|
|
33455
|
-
|
|
33456
|
-
|
|
33457
|
-
|
|
33458
|
-
|
|
33982
|
+
case 2:
|
|
33983
|
+
case "end":
|
|
33984
|
+
return _context.stop();
|
|
33985
|
+
}
|
|
33986
|
+
}
|
|
33987
|
+
}, _callee);
|
|
33988
|
+
}));
|
|
33459
33989
|
|
|
33460
|
-
|
|
33990
|
+
return function requestNetworkChange(_x, _x2) {
|
|
33991
|
+
return _ref.apply(this, arguments);
|
|
33992
|
+
};
|
|
33993
|
+
}();
|
|
33994
|
+
|
|
33995
|
+
var addNetwork = /*#__PURE__*/function () {
|
|
33996
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(provider, selectedNetwork) {
|
|
33997
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
33998
|
+
while (1) {
|
|
33999
|
+
switch (_context2.prev = _context2.next) {
|
|
34000
|
+
case 0:
|
|
34001
|
+
_context2.next = 2;
|
|
33461
34002
|
return provider.request({
|
|
33462
34003
|
method: "wallet_addEthereumChain",
|
|
33463
34004
|
params: [_objectSpread2(_objectSpread2({}, selectedNetwork), {}, {
|
|
@@ -33465,116 +34006,156 @@
|
|
|
33465
34006
|
})]
|
|
33466
34007
|
});
|
|
33467
34008
|
|
|
34009
|
+
case 2:
|
|
34010
|
+
case "end":
|
|
34011
|
+
return _context2.stop();
|
|
34012
|
+
}
|
|
34013
|
+
}
|
|
34014
|
+
}, _callee2);
|
|
34015
|
+
}));
|
|
34016
|
+
|
|
34017
|
+
return function addNetwork(_x3, _x4) {
|
|
34018
|
+
return _ref2.apply(this, arguments);
|
|
34019
|
+
};
|
|
34020
|
+
}();
|
|
34021
|
+
|
|
34022
|
+
var switchNetwork = /*#__PURE__*/function () {
|
|
34023
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
34024
|
+
var provider, network, selectedNetwork;
|
|
34025
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
34026
|
+
while (1) {
|
|
34027
|
+
switch (_context3.prev = _context3.next) {
|
|
34028
|
+
case 0:
|
|
34029
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
34030
|
+
// @ts-ignore
|
|
34031
|
+
provider = window.ethereum;
|
|
34032
|
+
network = String(props[ATTR_ENDORSEMENT_NETWORK]).toLowerCase().trim() || DEFAULT_NETWORK;
|
|
34033
|
+
selectedNetwork = networks[network] || networks[DEFAULT_NETWORK];
|
|
34034
|
+
_context3.prev = 3;
|
|
34035
|
+
_context3.next = 6;
|
|
34036
|
+
return requestNetworkChange(provider, selectedNetwork);
|
|
34037
|
+
|
|
33468
34038
|
case 6:
|
|
33469
|
-
|
|
33470
|
-
|
|
33471
|
-
method: "wallet_switchEthereumChain",
|
|
33472
|
-
params: [{
|
|
33473
|
-
chainId: hexStripZeros(hexlify(selectedNetwork.chainId))
|
|
33474
|
-
}]
|
|
33475
|
-
});
|
|
34039
|
+
_context3.next = 15;
|
|
34040
|
+
break;
|
|
33476
34041
|
|
|
33477
34042
|
case 8:
|
|
34043
|
+
_context3.prev = 8;
|
|
34044
|
+
_context3.t0 = _context3["catch"](3);
|
|
34045
|
+
|
|
34046
|
+
if (!(_context3.t0.code === 4902)) {
|
|
34047
|
+
_context3.next = 15;
|
|
34048
|
+
break;
|
|
34049
|
+
}
|
|
34050
|
+
|
|
34051
|
+
_context3.next = 13;
|
|
34052
|
+
return addNetwork(provider, selectedNetwork);
|
|
34053
|
+
|
|
34054
|
+
case 13:
|
|
34055
|
+
_context3.next = 15;
|
|
34056
|
+
return requestNetworkChange(provider, selectedNetwork);
|
|
34057
|
+
|
|
34058
|
+
case 15:
|
|
33478
34059
|
case "end":
|
|
33479
|
-
return
|
|
34060
|
+
return _context3.stop();
|
|
33480
34061
|
}
|
|
33481
34062
|
}
|
|
33482
|
-
},
|
|
34063
|
+
}, _callee3, null, [[3, 8]]);
|
|
33483
34064
|
}));
|
|
33484
34065
|
|
|
33485
34066
|
return function switchNetwork() {
|
|
33486
|
-
return
|
|
34067
|
+
return _ref3.apply(this, arguments);
|
|
33487
34068
|
};
|
|
33488
34069
|
}();
|
|
33489
34070
|
|
|
33490
34071
|
var sendTransaction = /*#__PURE__*/function () {
|
|
33491
|
-
var
|
|
34072
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(address, amount, transactionId) {
|
|
33492
34073
|
var web3Provider, signer, contract, transaction;
|
|
33493
|
-
return regeneratorRuntime.wrap(function
|
|
34074
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
33494
34075
|
while (1) {
|
|
33495
|
-
switch (
|
|
34076
|
+
switch (_context4.prev = _context4.next) {
|
|
33496
34077
|
case 0:
|
|
33497
|
-
|
|
34078
|
+
_context4.next = 2;
|
|
33498
34079
|
return switchNetwork();
|
|
33499
34080
|
|
|
33500
34081
|
case 2:
|
|
33501
34082
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
33502
34083
|
// @ts-ignore
|
|
33503
34084
|
web3Provider = new Web3Provider(window.ethereum);
|
|
33504
|
-
signer = web3Provider.getSigner();
|
|
33505
|
-
|
|
34085
|
+
signer = web3Provider.getSigner();
|
|
33506
34086
|
contract = new Contract(UTT_CONTRACT_ADDRESS, abi, signer);
|
|
33507
|
-
|
|
34087
|
+
_context4.next = 7;
|
|
33508
34088
|
return contract.endorse(address, String(amount), transactionId);
|
|
33509
34089
|
|
|
33510
34090
|
case 7:
|
|
33511
|
-
transaction =
|
|
33512
|
-
|
|
34091
|
+
transaction = _context4.sent;
|
|
34092
|
+
_context4.next = 10;
|
|
33513
34093
|
return transaction.wait();
|
|
33514
34094
|
|
|
33515
34095
|
case 10:
|
|
33516
|
-
return
|
|
34096
|
+
return _context4.abrupt("return", transaction);
|
|
33517
34097
|
|
|
33518
34098
|
case 11:
|
|
33519
34099
|
case "end":
|
|
33520
|
-
return
|
|
34100
|
+
return _context4.stop();
|
|
33521
34101
|
}
|
|
33522
34102
|
}
|
|
33523
|
-
},
|
|
34103
|
+
}, _callee4);
|
|
33524
34104
|
}));
|
|
33525
34105
|
|
|
33526
|
-
return function sendTransaction(
|
|
33527
|
-
return
|
|
34106
|
+
return function sendTransaction(_x5, _x6, _x7) {
|
|
34107
|
+
return _ref4.apply(this, arguments);
|
|
33528
34108
|
};
|
|
33529
34109
|
}();
|
|
33530
34110
|
|
|
33531
|
-
function onSubmit(
|
|
34111
|
+
function onSubmit(_x8) {
|
|
33532
34112
|
return _onSubmit.apply(this, arguments);
|
|
33533
34113
|
}
|
|
33534
34114
|
|
|
33535
34115
|
function _onSubmit() {
|
|
33536
|
-
_onSubmit = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
34116
|
+
_onSubmit = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(_ref5) {
|
|
33537
34117
|
var amount;
|
|
33538
|
-
return regeneratorRuntime.wrap(function
|
|
34118
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
33539
34119
|
while (1) {
|
|
33540
|
-
switch (
|
|
34120
|
+
switch (_context5.prev = _context5.next) {
|
|
33541
34121
|
case 0:
|
|
33542
|
-
amount =
|
|
34122
|
+
amount = _ref5.amount;
|
|
33543
34123
|
|
|
33544
34124
|
if (amount) {
|
|
33545
|
-
|
|
34125
|
+
_context5.next = 3;
|
|
33546
34126
|
break;
|
|
33547
34127
|
}
|
|
33548
34128
|
|
|
33549
|
-
return
|
|
34129
|
+
return _context5.abrupt("return");
|
|
33550
34130
|
|
|
33551
34131
|
case 3:
|
|
33552
34132
|
setTxError("");
|
|
33553
|
-
|
|
33554
|
-
|
|
34133
|
+
_context5.prev = 4;
|
|
34134
|
+
_context5.next = 7;
|
|
33555
34135
|
return sendTransaction(props[ATTR_TARGET_UUID], amount, props[ATTR_TRANSACTION_ID]);
|
|
33556
34136
|
|
|
33557
34137
|
case 7:
|
|
33558
|
-
|
|
34138
|
+
_context5.next = 13;
|
|
33559
34139
|
break;
|
|
33560
34140
|
|
|
33561
34141
|
case 9:
|
|
33562
|
-
|
|
33563
|
-
|
|
33564
|
-
|
|
34142
|
+
_context5.prev = 9;
|
|
34143
|
+
_context5.t0 = _context5["catch"](4);
|
|
34144
|
+
console.log(_context5.t0);
|
|
34145
|
+
setTxError(_context5.t0.data ? _context5.t0.data.message : _context5.t0.message);
|
|
33565
34146
|
|
|
33566
|
-
case
|
|
34147
|
+
case 13:
|
|
33567
34148
|
case "end":
|
|
33568
|
-
return
|
|
34149
|
+
return _context5.stop();
|
|
33569
34150
|
}
|
|
33570
34151
|
}
|
|
33571
|
-
},
|
|
34152
|
+
}, _callee5, null, [[4, 9]]);
|
|
33572
34153
|
}));
|
|
33573
34154
|
return _onSubmit.apply(this, arguments);
|
|
33574
34155
|
}
|
|
33575
34156
|
|
|
33576
|
-
var showError = function showError(
|
|
33577
|
-
var amount =
|
|
34157
|
+
var showError = function showError(_ref6) {
|
|
34158
|
+
var amount = _ref6.amount;
|
|
33578
34159
|
|
|
33579
34160
|
switch (amount === null || amount === void 0 ? void 0 : amount.type) {
|
|
33580
34161
|
case "required":
|
|
@@ -33647,8 +34228,8 @@
|
|
|
33647
34228
|
u,
|
|
33648
34229
|
t,
|
|
33649
34230
|
i,
|
|
33650
|
-
r,
|
|
33651
34231
|
o,
|
|
34232
|
+
r,
|
|
33652
34233
|
f,
|
|
33653
34234
|
e = {},
|
|
33654
34235
|
c = [],
|
|
@@ -33660,29 +34241,29 @@
|
|
|
33660
34241
|
return n;
|
|
33661
34242
|
}
|
|
33662
34243
|
|
|
33663
|
-
function
|
|
34244
|
+
function p(n) {
|
|
33664
34245
|
var l = n.parentNode;
|
|
33665
34246
|
l && l.removeChild(n);
|
|
33666
34247
|
}
|
|
33667
34248
|
|
|
33668
|
-
function
|
|
34249
|
+
function v(l, u, t) {
|
|
33669
34250
|
var i,
|
|
33670
|
-
r,
|
|
33671
34251
|
o,
|
|
34252
|
+
r,
|
|
33672
34253
|
f = {};
|
|
33673
34254
|
|
|
33674
|
-
for (
|
|
34255
|
+
for (r in u) "key" == r ? i = u[r] : "ref" == r ? o = u[r] : f[r] = u[r];
|
|
33675
34256
|
|
|
33676
|
-
if (arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), "function" == typeof l && null != l.defaultProps) for (
|
|
33677
|
-
return
|
|
34257
|
+
if (arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), "function" == typeof l && null != l.defaultProps) for (r in l.defaultProps) void 0 === f[r] && (f[r] = l.defaultProps[r]);
|
|
34258
|
+
return h(l, f, i, o, null);
|
|
33678
34259
|
}
|
|
33679
34260
|
|
|
33680
|
-
function
|
|
34261
|
+
function h(n, t, i, o, r) {
|
|
33681
34262
|
var f = {
|
|
33682
34263
|
type: n,
|
|
33683
34264
|
props: t,
|
|
33684
34265
|
key: i,
|
|
33685
|
-
ref:
|
|
34266
|
+
ref: o,
|
|
33686
34267
|
__k: null,
|
|
33687
34268
|
__: null,
|
|
33688
34269
|
__b: 0,
|
|
@@ -33691,9 +34272,9 @@
|
|
|
33691
34272
|
__c: null,
|
|
33692
34273
|
__h: null,
|
|
33693
34274
|
constructor: void 0,
|
|
33694
|
-
__v: null ==
|
|
34275
|
+
__v: null == r ? ++u : r
|
|
33695
34276
|
};
|
|
33696
|
-
return null ==
|
|
34277
|
+
return null == r && null != l.vnode && l.vnode(f), f;
|
|
33697
34278
|
}
|
|
33698
34279
|
|
|
33699
34280
|
function y(n) {
|
|
@@ -33726,21 +34307,21 @@
|
|
|
33726
34307
|
}
|
|
33727
34308
|
|
|
33728
34309
|
function x(n) {
|
|
33729
|
-
(!n.__d && (n.__d = !0) && i.push(n) && !b.__r++ ||
|
|
34310
|
+
(!n.__d && (n.__d = !0) && i.push(n) && !b.__r++ || r !== l.debounceRendering) && ((r = l.debounceRendering) || o)(b);
|
|
33730
34311
|
}
|
|
33731
34312
|
|
|
33732
34313
|
function b() {
|
|
33733
34314
|
for (var n; b.__r = i.length;) n = i.sort(function (n, l) {
|
|
33734
34315
|
return n.__v.__b - l.__v.__b;
|
|
33735
34316
|
}), i = [], n.some(function (n) {
|
|
33736
|
-
var l, u, t, i,
|
|
33737
|
-
n.__d && (
|
|
34317
|
+
var l, u, t, i, o, r;
|
|
34318
|
+
n.__d && (o = (i = (l = n).__v).__e, (r = l.__P) && (u = [], (t = a({}, i)).__v = i.__v + 1, I(r, i, t, l.__n, void 0 !== r.ownerSVGElement, null != i.__h ? [o] : null, u, null == o ? _(i) : o, i.__h), T(u, i), i.__e != o && k(i)));
|
|
33738
34319
|
});
|
|
33739
34320
|
}
|
|
33740
34321
|
|
|
33741
|
-
function m(n, l, u, t, i,
|
|
33742
|
-
var
|
|
33743
|
-
|
|
34322
|
+
function m(n, l, u, t, i, o, r, f, s, a) {
|
|
34323
|
+
var p,
|
|
34324
|
+
v,
|
|
33744
34325
|
d,
|
|
33745
34326
|
k,
|
|
33746
34327
|
x,
|
|
@@ -33749,47 +34330,47 @@
|
|
|
33749
34330
|
A = t && t.__k || c,
|
|
33750
34331
|
P = A.length;
|
|
33751
34332
|
|
|
33752
|
-
for (u.__k = [],
|
|
34333
|
+
for (u.__k = [], p = 0; p < l.length; p++) if (null != (k = u.__k[p] = null == (k = l[p]) || "boolean" == typeof k ? null : "string" == typeof k || "number" == typeof k || "bigint" == typeof k ? h(null, k, null, null, k) : Array.isArray(k) ? h(y, {
|
|
33753
34334
|
children: k
|
|
33754
|
-
}, null, null, null) : k.__b > 0 ?
|
|
33755
|
-
if (k.__ = u, k.__b = u.__b + 1, null === (d = A[
|
|
33756
|
-
if ((d = A[
|
|
33757
|
-
A[
|
|
34335
|
+
}, null, null, null) : k.__b > 0 ? h(k.type, k.props, k.key, null, k.__v) : k)) {
|
|
34336
|
+
if (k.__ = u, k.__b = u.__b + 1, null === (d = A[p]) || d && k.key == d.key && k.type === d.type) A[p] = void 0;else for (v = 0; v < P; v++) {
|
|
34337
|
+
if ((d = A[v]) && k.key == d.key && k.type === d.type) {
|
|
34338
|
+
A[v] = void 0;
|
|
33758
34339
|
break;
|
|
33759
34340
|
}
|
|
33760
34341
|
|
|
33761
34342
|
d = null;
|
|
33762
34343
|
}
|
|
33763
|
-
I(n, k, d = d || e, i,
|
|
34344
|
+
I(n, k, d = d || e, i, o, r, f, s, a), x = k.__e, (v = k.ref) && d.ref != v && (m || (m = []), d.ref && m.push(d.ref, null, k), m.push(v, k.__c || x, k)), null != x ? (null == b && (b = x), "function" == typeof k.type && k.__k === d.__k ? k.__d = s = g(k, s, n) : s = w(n, k, d, A, x, s), "function" == typeof u.type && (u.__d = s)) : s && d.__e == s && s.parentNode != n && (s = _(d));
|
|
33764
34345
|
}
|
|
33765
34346
|
|
|
33766
|
-
for (u.__e = b,
|
|
34347
|
+
for (u.__e = b, p = P; p--;) null != A[p] && ("function" == typeof u.type && null != A[p].__e && A[p].__e == u.__d && (u.__d = _(t, p + 1)), L(A[p], A[p]));
|
|
33767
34348
|
|
|
33768
|
-
if (m) for (
|
|
34349
|
+
if (m) for (p = 0; p < m.length; p++) z(m[p], m[++p], m[++p]);
|
|
33769
34350
|
}
|
|
33770
34351
|
|
|
33771
34352
|
function g(n, l, u) {
|
|
33772
|
-
for (var t, i = n.__k,
|
|
34353
|
+
for (var t, i = n.__k, o = 0; i && o < i.length; o++) (t = i[o]) && (t.__ = n, l = "function" == typeof t.type ? g(t, l, u) : w(u, t, t, i, t.__e, l));
|
|
33773
34354
|
|
|
33774
34355
|
return l;
|
|
33775
34356
|
}
|
|
33776
34357
|
|
|
33777
|
-
function w(n, l, u, t, i,
|
|
33778
|
-
var
|
|
33779
|
-
if (void 0 !== l.__d)
|
|
33780
|
-
for (f =
|
|
34358
|
+
function w(n, l, u, t, i, o) {
|
|
34359
|
+
var r, f, e;
|
|
34360
|
+
if (void 0 !== l.__d) r = l.__d, l.__d = void 0;else if (null == u || i != o || null == i.parentNode) n: if (null == o || o.parentNode !== n) n.appendChild(i), r = null;else {
|
|
34361
|
+
for (f = o, e = 0; (f = f.nextSibling) && e < t.length; e += 2) if (f == i) break n;
|
|
33781
34362
|
|
|
33782
|
-
n.insertBefore(i,
|
|
34363
|
+
n.insertBefore(i, o), r = o;
|
|
33783
34364
|
}
|
|
33784
|
-
return void 0 !==
|
|
34365
|
+
return void 0 !== r ? r : i.nextSibling;
|
|
33785
34366
|
}
|
|
33786
34367
|
|
|
33787
34368
|
function A(n, l, u, t, i) {
|
|
33788
|
-
var
|
|
34369
|
+
var o;
|
|
33789
34370
|
|
|
33790
|
-
for (
|
|
34371
|
+
for (o in u) "children" === o || "key" === o || o in l || C(n, o, null, u[o], t);
|
|
33791
34372
|
|
|
33792
|
-
for (
|
|
34373
|
+
for (o in l) i && "function" != typeof l[o] || "children" === o || "key" === o || "value" === o || "checked" === o || u[o] === l[o] || C(n, o, l[o], u[o], t);
|
|
33793
34374
|
}
|
|
33794
34375
|
|
|
33795
34376
|
function P(n, l, u) {
|
|
@@ -33797,14 +34378,14 @@
|
|
|
33797
34378
|
}
|
|
33798
34379
|
|
|
33799
34380
|
function C(n, l, u, t, i) {
|
|
33800
|
-
var
|
|
34381
|
+
var o;
|
|
33801
34382
|
|
|
33802
34383
|
n: if ("style" === l) {
|
|
33803
34384
|
if ("string" == typeof u) n.style.cssText = u;else {
|
|
33804
34385
|
if ("string" == typeof t && (n.style.cssText = t = ""), t) for (l in t) u && l in u || P(n.style, l, "");
|
|
33805
34386
|
if (u) for (l in u) t && u[l] === t[l] || P(n.style, l, u[l]);
|
|
33806
34387
|
}
|
|
33807
|
-
} else if ("o" === l[0] && "n" === l[1])
|
|
34388
|
+
} else if ("o" === l[0] && "n" === l[1]) o = l !== (l = l.replace(/Capture$/, "")), l = l.toLowerCase() in n ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + o] = u, u ? t || n.addEventListener(l, o ? H : $, o) : n.removeEventListener(l, o ? H : $, o);else if ("dangerouslySetInnerHTML" !== l) {
|
|
33808
34389
|
if (i) l = l.replace(/xlink[H:h]/, "h").replace(/sName$/, "s");else if ("href" !== l && "list" !== l && "form" !== l && "tabIndex" !== l && "download" !== l && l in n) try {
|
|
33809
34390
|
n[l] = null == u ? "" : u;
|
|
33810
34391
|
break n;
|
|
@@ -33821,11 +34402,11 @@
|
|
|
33821
34402
|
this.l[n.type + !0](l.event ? l.event(n) : n);
|
|
33822
34403
|
}
|
|
33823
34404
|
|
|
33824
|
-
function I(n, u, t, i,
|
|
34405
|
+
function I(n, u, t, i, o, r, f, e, c) {
|
|
33825
34406
|
var s,
|
|
34407
|
+
p,
|
|
33826
34408
|
v,
|
|
33827
34409
|
h,
|
|
33828
|
-
p,
|
|
33829
34410
|
_,
|
|
33830
34411
|
k,
|
|
33831
34412
|
x,
|
|
@@ -33836,28 +34417,28 @@
|
|
|
33836
34417
|
P = u.type;
|
|
33837
34418
|
|
|
33838
34419
|
if (void 0 !== u.constructor) return null;
|
|
33839
|
-
null != t.__h && (c = t.__h, e = u.__e = t.__e, u.__h = null,
|
|
34420
|
+
null != t.__h && (c = t.__h, e = u.__e = t.__e, u.__h = null, r = [e]), (s = l.__b) && s(u);
|
|
33840
34421
|
|
|
33841
34422
|
try {
|
|
33842
34423
|
n: if ("function" == typeof P) {
|
|
33843
|
-
if (b = u.props, g = (s = P.contextType) && i[s.__c], w = s ? g ? g.props.value : s.__ : i, t.__c ? x = (
|
|
33844
|
-
if (null == P.getDerivedStateFromProps && b !==
|
|
33845
|
-
|
|
34424
|
+
if (b = u.props, g = (s = P.contextType) && i[s.__c], w = s ? g ? g.props.value : s.__ : i, t.__c ? x = (p = u.__c = t.__c).__ = p.__E : ("prototype" in P && P.prototype.render ? u.__c = p = new P(b, w) : (u.__c = p = new d(b, w), p.constructor = P, p.render = M), g && g.sub(p), p.props = b, p.state || (p.state = {}), p.context = w, p.__n = i, v = p.__d = !0, p.__h = []), null == p.__s && (p.__s = p.state), null != P.getDerivedStateFromProps && (p.__s == p.state && (p.__s = a({}, p.__s)), a(p.__s, P.getDerivedStateFromProps(b, p.__s))), h = p.props, _ = p.state, v) null == P.getDerivedStateFromProps && null != p.componentWillMount && p.componentWillMount(), null != p.componentDidMount && p.__h.push(p.componentDidMount);else {
|
|
34425
|
+
if (null == P.getDerivedStateFromProps && b !== h && null != p.componentWillReceiveProps && p.componentWillReceiveProps(b, w), !p.__e && null != p.shouldComponentUpdate && !1 === p.shouldComponentUpdate(b, p.__s, w) || u.__v === t.__v) {
|
|
34426
|
+
p.props = b, p.state = p.__s, u.__v !== t.__v && (p.__d = !1), p.__v = u, u.__e = t.__e, u.__k = t.__k, u.__k.forEach(function (n) {
|
|
33846
34427
|
n && (n.__ = u);
|
|
33847
|
-
}),
|
|
34428
|
+
}), p.__h.length && f.push(p);
|
|
33848
34429
|
break n;
|
|
33849
34430
|
}
|
|
33850
34431
|
|
|
33851
|
-
null !=
|
|
33852
|
-
|
|
34432
|
+
null != p.componentWillUpdate && p.componentWillUpdate(b, p.__s, w), null != p.componentDidUpdate && p.__h.push(function () {
|
|
34433
|
+
p.componentDidUpdate(h, _, k);
|
|
33853
34434
|
});
|
|
33854
34435
|
}
|
|
33855
|
-
|
|
33856
|
-
} else null ==
|
|
34436
|
+
p.context = w, p.props = b, p.state = p.__s, (s = l.__r) && s(u), p.__d = !1, p.__v = u, p.__P = n, s = p.render(p.props, p.state, p.context), p.state = p.__s, null != p.getChildContext && (i = a(a({}, i), p.getChildContext())), v || null == p.getSnapshotBeforeUpdate || (k = p.getSnapshotBeforeUpdate(h, _)), A = null != s && s.type === y && null == s.key ? s.props.children : s, m(n, Array.isArray(A) ? A : [A], u, t, i, o, r, f, e, c), p.base = u.__e, u.__h = null, p.__h.length && f.push(p), x && (p.__E = p.__ = null), p.__e = !1;
|
|
34437
|
+
} else null == r && u.__v === t.__v ? (u.__k = t.__k, u.__e = t.__e) : u.__e = j(t.__e, u, t, i, o, r, f, c);
|
|
33857
34438
|
|
|
33858
34439
|
(s = l.diffed) && s(u);
|
|
33859
34440
|
} catch (n) {
|
|
33860
|
-
u.__v = null, (c || null !=
|
|
34441
|
+
u.__v = null, (c || null != r) && (u.__e = e, u.__h = !!c, r[r.indexOf(e)] = null), l.__e(n, u, t);
|
|
33861
34442
|
}
|
|
33862
34443
|
}
|
|
33863
34444
|
|
|
@@ -33873,32 +34454,32 @@
|
|
|
33873
34454
|
});
|
|
33874
34455
|
}
|
|
33875
34456
|
|
|
33876
|
-
function j(l, u, t, i,
|
|
34457
|
+
function j(l, u, t, i, o, r, f, c) {
|
|
33877
34458
|
var s,
|
|
33878
34459
|
a,
|
|
33879
|
-
|
|
33880
|
-
|
|
34460
|
+
v,
|
|
34461
|
+
h = t.props,
|
|
33881
34462
|
y = u.props,
|
|
33882
34463
|
d = u.type,
|
|
33883
34464
|
k = 0;
|
|
33884
|
-
if ("svg" === d && (
|
|
33885
|
-
l = s,
|
|
34465
|
+
if ("svg" === d && (o = !0), null != r) for (; k < r.length; k++) if ((s = r[k]) && "setAttribute" in s == !!d && (d ? s.localName === d : 3 === s.nodeType)) {
|
|
34466
|
+
l = s, r[k] = null;
|
|
33886
34467
|
break;
|
|
33887
34468
|
}
|
|
33888
34469
|
|
|
33889
34470
|
if (null == l) {
|
|
33890
34471
|
if (null === d) return document.createTextNode(y);
|
|
33891
|
-
l =
|
|
34472
|
+
l = o ? document.createElementNS("http://www.w3.org/2000/svg", d) : document.createElement(d, y.is && y), r = null, c = !1;
|
|
33892
34473
|
}
|
|
33893
34474
|
|
|
33894
|
-
if (null === d)
|
|
33895
|
-
if (
|
|
33896
|
-
if (null !=
|
|
33897
|
-
(
|
|
34475
|
+
if (null === d) h === y || c && l.data === y || (l.data = y);else {
|
|
34476
|
+
if (r = r && n.call(l.childNodes), a = (h = t.props || e).dangerouslySetInnerHTML, v = y.dangerouslySetInnerHTML, !c) {
|
|
34477
|
+
if (null != r) for (h = {}, k = 0; k < l.attributes.length; k++) h[l.attributes[k].name] = l.attributes[k].value;
|
|
34478
|
+
(v || a) && (v && (a && v.__html == a.__html || v.__html === l.innerHTML) || (l.innerHTML = v && v.__html || ""));
|
|
33898
34479
|
}
|
|
33899
34480
|
|
|
33900
|
-
if (A(l, y,
|
|
33901
|
-
c || ("value" in y && void 0 !== (k = y.value) && (k !==
|
|
34481
|
+
if (A(l, y, h, o, c), v) u.__k = [];else if (k = u.props.children, m(l, Array.isArray(k) ? k : [k], u, t, i, o && "foreignObject" !== d, r, f, r ? r[0] : t.__k && _(t, 0), c), null != r) for (k = r.length; k--;) null != r[k] && p(r[k]);
|
|
34482
|
+
c || ("value" in y && void 0 !== (k = y.value) && (k !== l.value || "progress" === d && !k || "option" === d && k !== h.value) && C(l, "value", k, h.value, !1), "checked" in y && void 0 !== (k = y.checked) && k !== l.checked && C(l, "checked", k, h.checked, !1));
|
|
33902
34483
|
}
|
|
33903
34484
|
return l;
|
|
33904
34485
|
}
|
|
@@ -33912,7 +34493,7 @@
|
|
|
33912
34493
|
}
|
|
33913
34494
|
|
|
33914
34495
|
function L(n, u, t) {
|
|
33915
|
-
var i,
|
|
34496
|
+
var i, o;
|
|
33916
34497
|
|
|
33917
34498
|
if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || z(i, null, u)), null != (i = n.__c)) {
|
|
33918
34499
|
if (i.componentWillUnmount) try {
|
|
@@ -33923,8 +34504,8 @@
|
|
|
33923
34504
|
i.base = i.__P = null;
|
|
33924
34505
|
}
|
|
33925
34506
|
|
|
33926
|
-
if (i = n.__k) for (
|
|
33927
|
-
t || null == n.__e ||
|
|
34507
|
+
if (i = n.__k) for (o = 0; o < i.length; o++) i[o] && L(i[o], u, "function" != typeof n.type);
|
|
34508
|
+
t || null == n.__e || p(n.__e), n.__e = n.__d = void 0;
|
|
33928
34509
|
}
|
|
33929
34510
|
|
|
33930
34511
|
function M(n, l, u) {
|
|
@@ -33932,8 +34513,8 @@
|
|
|
33932
34513
|
}
|
|
33933
34514
|
|
|
33934
34515
|
function N(u, t, i) {
|
|
33935
|
-
var
|
|
33936
|
-
l.__ && l.__(u, t),
|
|
34516
|
+
var o, r, f;
|
|
34517
|
+
l.__ && l.__(u, t), r = (o = "function" == typeof i) ? null : i && i.__k || t.__k, f = [], I(t, u = (!o && i || t).__k = v(y, null, [u]), r || e, e, void 0 !== t.ownerSVGElement, !o && i ? [i] : r ? null : t.firstChild ? n.call(t.childNodes) : null, f, !o && i ? i : r ? r.__e : t.firstChild, o), T(f, u);
|
|
33937
34518
|
}
|
|
33938
34519
|
|
|
33939
34520
|
n = c.slice, l = {
|
|
@@ -33953,21 +34534,21 @@
|
|
|
33953
34534
|
u = null != this.__s && this.__s !== this.state ? this.__s : this.__s = a({}, this.state), "function" == typeof n && (n = n(a({}, u), this.props)), n && a(u, n), null != n && this.__v && (l && this.__h.push(l), x(this));
|
|
33954
34535
|
}, d.prototype.forceUpdate = function (n) {
|
|
33955
34536
|
this.__v && (this.__e = !0, n && this.__h.push(n), x(this));
|
|
33956
|
-
}, d.prototype.render = y, i = [],
|
|
34537
|
+
}, d.prototype.render = y, i = [], o = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, b.__r = 0, f = 0, exports.render = N, exports.hydrate = function n(l, u) {
|
|
33957
34538
|
N(l, u, n);
|
|
33958
|
-
}, exports.createElement =
|
|
34539
|
+
}, exports.createElement = v, exports.h = v, exports.Fragment = y, exports.createRef = function () {
|
|
33959
34540
|
return {
|
|
33960
34541
|
current: null
|
|
33961
34542
|
};
|
|
33962
34543
|
}, exports.isValidElement = t, exports.Component = d, exports.cloneElement = function (l, u, t) {
|
|
33963
34544
|
var i,
|
|
33964
|
-
r,
|
|
33965
34545
|
o,
|
|
34546
|
+
r,
|
|
33966
34547
|
f = a({}, l.props);
|
|
33967
34548
|
|
|
33968
|
-
for (
|
|
34549
|
+
for (r in u) "key" == r ? i = u[r] : "ref" == r ? o = u[r] : f[r] = u[r];
|
|
33969
34550
|
|
|
33970
|
-
return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t),
|
|
34551
|
+
return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : t), h(l.type, f, i || l.key, o || l.ref, null);
|
|
33971
34552
|
}, exports.createContext = function (n, l) {
|
|
33972
34553
|
var u = {
|
|
33973
34554
|
__c: l = "__cC" + f++,
|
|
@@ -34003,7 +34584,7 @@
|
|
|
34003
34584
|
var n,
|
|
34004
34585
|
t,
|
|
34005
34586
|
r,
|
|
34006
|
-
|
|
34587
|
+
u = 0,
|
|
34007
34588
|
i = [],
|
|
34008
34589
|
c = preact.options.__b,
|
|
34009
34590
|
e = preact.options.__r,
|
|
@@ -34012,7 +34593,7 @@
|
|
|
34012
34593
|
v = preact.options.unmount;
|
|
34013
34594
|
|
|
34014
34595
|
function p(n, r) {
|
|
34015
|
-
preact.options.__h && preact.options.__h(t, n,
|
|
34596
|
+
preact.options.__h && preact.options.__h(t, n, u || r), u = 0;
|
|
34016
34597
|
var i = t.__H || (t.__H = {
|
|
34017
34598
|
__: [],
|
|
34018
34599
|
__h: []
|
|
@@ -34021,33 +34602,29 @@
|
|
|
34021
34602
|
}
|
|
34022
34603
|
|
|
34023
34604
|
function s(n) {
|
|
34024
|
-
return
|
|
34605
|
+
return u = 1, x(A, n);
|
|
34025
34606
|
}
|
|
34026
34607
|
|
|
34027
|
-
function x(r,
|
|
34608
|
+
function x(r, o, u) {
|
|
34028
34609
|
var i = p(n++, 2);
|
|
34029
|
-
return i.t = r, i.__c || (i.__ = [
|
|
34610
|
+
return i.t = r, i.__c || (i.__ = [u ? u(o) : A(void 0, o), function (n) {
|
|
34030
34611
|
var t = i.t(i.__[0], n);
|
|
34031
34612
|
i.__[0] !== t && (i.__ = [t, i.__[1]], i.__c.setState({}));
|
|
34032
34613
|
}], i.__c = t), i.__;
|
|
34033
34614
|
}
|
|
34034
34615
|
|
|
34035
|
-
function l(r,
|
|
34616
|
+
function l(r, u) {
|
|
34036
34617
|
var i = p(n++, 4);
|
|
34037
|
-
!preact.options.__s && q(i.__H,
|
|
34618
|
+
!preact.options.__s && q(i.__H, u) && (i.__ = r, i.__H = u, t.__h.push(i));
|
|
34038
34619
|
}
|
|
34039
34620
|
|
|
34040
34621
|
function m(t, r) {
|
|
34041
|
-
var
|
|
34042
|
-
return q(
|
|
34622
|
+
var o = p(n++, 7);
|
|
34623
|
+
return q(o.__H, r) && (o.__ = t(), o.__H = r, o.__h = t), o.__;
|
|
34043
34624
|
}
|
|
34044
34625
|
|
|
34045
34626
|
function y() {
|
|
34046
|
-
var n;
|
|
34047
|
-
|
|
34048
|
-
for (i.sort(function (n, t) {
|
|
34049
|
-
return n.__v.__b - t.__v.__b;
|
|
34050
|
-
}); n = i.pop();) if (n.__P) try {
|
|
34627
|
+
for (var n; n = i.shift();) if (n.__P) try {
|
|
34051
34628
|
n.__H.__h.forEach(_), n.__H.__h.forEach(d), n.__H.__h = [];
|
|
34052
34629
|
} catch (t) {
|
|
34053
34630
|
n.__H.__h = [], preact.options.__e(t, n.__v);
|
|
@@ -34058,17 +34635,17 @@
|
|
|
34058
34635
|
t = null, c && c(n);
|
|
34059
34636
|
}, preact.options.__r = function (r) {
|
|
34060
34637
|
e && e(r), n = 0;
|
|
34061
|
-
var
|
|
34062
|
-
|
|
34638
|
+
var o = (t = r.__c).__H;
|
|
34639
|
+
o && (o.__h.forEach(_), o.__h.forEach(d), o.__h = []);
|
|
34063
34640
|
}, preact.options.diffed = function (n) {
|
|
34064
34641
|
f && f(n);
|
|
34065
|
-
var
|
|
34066
|
-
|
|
34642
|
+
var u = n.__c;
|
|
34643
|
+
u && u.__H && u.__H.__h.length && (1 !== i.push(u) && r === preact.options.requestAnimationFrame || ((r = preact.options.requestAnimationFrame) || function (n) {
|
|
34067
34644
|
var t,
|
|
34068
34645
|
r = function () {
|
|
34069
|
-
clearTimeout(
|
|
34646
|
+
clearTimeout(o), h && cancelAnimationFrame(t), setTimeout(n);
|
|
34070
34647
|
},
|
|
34071
|
-
|
|
34648
|
+
o = setTimeout(r, 100);
|
|
34072
34649
|
|
|
34073
34650
|
h && (t = requestAnimationFrame(r));
|
|
34074
34651
|
})(y)), t = null;
|
|
@@ -34100,8 +34677,8 @@
|
|
|
34100
34677
|
|
|
34101
34678
|
function _(n) {
|
|
34102
34679
|
var r = t,
|
|
34103
|
-
|
|
34104
|
-
"function" == typeof
|
|
34680
|
+
o = n.__c;
|
|
34681
|
+
"function" == typeof o && (n.__c = void 0, o()), t = r;
|
|
34105
34682
|
}
|
|
34106
34683
|
|
|
34107
34684
|
function d(n) {
|
|
@@ -34119,36 +34696,36 @@
|
|
|
34119
34696
|
return "function" == typeof t ? t(n) : t;
|
|
34120
34697
|
}
|
|
34121
34698
|
|
|
34122
|
-
exports.useState = s, exports.useReducer = x, exports.useEffect = function (r,
|
|
34699
|
+
exports.useState = s, exports.useReducer = x, exports.useEffect = function (r, u) {
|
|
34123
34700
|
var i = p(n++, 3);
|
|
34124
|
-
!preact.options.__s && q(i.__H,
|
|
34701
|
+
!preact.options.__s && q(i.__H, u) && (i.__ = r, i.__H = u, t.__H.__h.push(i));
|
|
34125
34702
|
}, exports.useLayoutEffect = l, exports.useRef = function (n) {
|
|
34126
|
-
return
|
|
34703
|
+
return u = 5, m(function () {
|
|
34127
34704
|
return {
|
|
34128
34705
|
current: n
|
|
34129
34706
|
};
|
|
34130
34707
|
}, []);
|
|
34131
34708
|
}, exports.useImperativeHandle = function (n, t, r) {
|
|
34132
|
-
|
|
34709
|
+
u = 6, l(function () {
|
|
34133
34710
|
"function" == typeof n ? n(t()) : n && (n.current = t());
|
|
34134
34711
|
}, null == r ? r : r.concat(n));
|
|
34135
34712
|
}, exports.useMemo = m, exports.useCallback = function (n, t) {
|
|
34136
|
-
return
|
|
34713
|
+
return u = 8, m(function () {
|
|
34137
34714
|
return n;
|
|
34138
34715
|
}, t);
|
|
34139
34716
|
}, exports.useContext = function (r) {
|
|
34140
|
-
var
|
|
34141
|
-
|
|
34142
|
-
return
|
|
34717
|
+
var o = t.context[r.__c],
|
|
34718
|
+
u = p(n++, 9);
|
|
34719
|
+
return u.c = r, o ? (null == u.__ && (u.__ = !0, o.sub(t)), o.props.value) : r.__;
|
|
34143
34720
|
}, exports.useDebugValue = function (n, t) {
|
|
34144
34721
|
preact.options.useDebugValue && preact.options.useDebugValue(t ? t(n) : n);
|
|
34145
34722
|
}, exports.useErrorBoundary = function (r) {
|
|
34146
|
-
var
|
|
34147
|
-
|
|
34148
|
-
return
|
|
34149
|
-
|
|
34150
|
-
}), [
|
|
34151
|
-
|
|
34723
|
+
var o = p(n++, 10),
|
|
34724
|
+
u = s();
|
|
34725
|
+
return o.__ = r, t.componentDidCatch || (t.componentDidCatch = function (n) {
|
|
34726
|
+
o.__ && o.__(n), u[1](n);
|
|
34727
|
+
}), [u[0], function () {
|
|
34728
|
+
u[1](void 0);
|
|
34152
34729
|
}];
|
|
34153
34730
|
};
|
|
34154
34731
|
});
|
|
@@ -34399,8 +34976,8 @@
|
|
|
34399
34976
|
};
|
|
34400
34977
|
|
|
34401
34978
|
var S = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103,
|
|
34402
|
-
|
|
34403
|
-
|
|
34979
|
+
C = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,
|
|
34980
|
+
w = "undefined" != typeof document,
|
|
34404
34981
|
g = function (n) {
|
|
34405
34982
|
return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/i : /fil|che|ra/i).test(n);
|
|
34406
34983
|
};
|
|
@@ -34463,7 +35040,7 @@
|
|
|
34463
35040
|
|
|
34464
35041
|
for (var i in o = {}, r) {
|
|
34465
35042
|
var l = r[i];
|
|
34466
|
-
|
|
35043
|
+
w && "children" === i && "noscript" === e || "value" === i && "defaultValue" in r && null == l || ("defaultValue" === i && "value" in r && null == r.value ? i = "value" : "download" === i && !0 === l ? l = "" : /ondoubleclick/i.test(i) ? i = "ondblclick" : /^onchange(textarea|input)/i.test(i + e) && !g(r.type) ? i = "oninput" : /^onfocus$/i.test(i) ? i = "onfocusin" : /^onblur$/i.test(i) ? i = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i) ? i = i.toLowerCase() : u && C.test(i) ? i = i.replace(/[A-Z0-9]/, "-$&").toLowerCase() : null === l && (l = void 0), o[i] = l);
|
|
34467
35044
|
}
|
|
34468
35045
|
|
|
34469
35046
|
"select" == e && o.multiple && Array.isArray(o.value) && (o.value = t.toChildArray(r.children).forEach(function (n) {
|