!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("buffer"),require("path"),require("util")):"function"==typeof define&&define.amd?define("index",["buffer","path","util"],t):t((e=e||self).buffer,e.path,e.util)}(this,function(e,t,n){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}function l(e){return e&&e.default||e}var s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var f=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;aU.length&&U.push(e)}function Z(e,t,n){return null==e?0:function e(t,n,r,i){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var o=!1;if(null===t)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case d:case p:o=!0}}if(o)return r(i,t,""===n?"."+V(t,0):n),1;if(o=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=s,u()),(t=r.previous).next=r.previous=s,s.next=r,s.previous=t}}function h(){if(-1===o&&null!==n&&1===n.priorityLevel){s=!0;try{do{f()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?u():c=!1}}}function d(e){s=!0;var r=i;i=e;try{if(e)for(;null!==n;){var a=t.unstable_now();if(!(n.expirationTime<=a))break;do{f()}while(null!==n&&n.expirationTime<=a)}else if(null!==n)do{f()}while(null!==n&&!M())}finally{s=!1,i=r,null!==n?u():c=!1,h()}}var p,m,v=Date,g="function"==typeof setTimeout?setTimeout:void 0,b="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,k="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(e){p=y(function(t){b(m),e(t)}),m=g(function(){k(p),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var x=performance;t.unstable_now=function(){return x.now()}}else t.unstable_now=function(){return v.now()};var _,C,M,S=null;if("undefined"!=typeof window?S=window:void 0!==r&&(S=r),S&&S._schedMock){var N=S._schedMock;_=N[0],C=N[1],M=N[2],t.unstable_now=N[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var E=null,L=function(e){if(null!==E)try{E(e)}finally{E=null}};_=function(e){null!==E?setTimeout(_,0,e):(E=e,setTimeout(L,0,!1))},C=function(){E=null},M=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof k&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var T=null,A=!1,D=-1,O=!1,P=!1,R=0,q=33,H=33;M=function(){return R<=t.unstable_now()};var j=new MessageChannel,I=j.port2;j.port1.onmessage=function(){A=!1;var e=T,n=D;T=null,D=-1;var r=t.unstable_now(),i=!1;if(0>=R-r){if(!(-1!==n&&n<=r))return O||(O=!0,w(U)),T=e,void(D=n);i=!0}if(null!==e){P=!0;try{e(i)}finally{P=!1}}};var U=function(e){if(null!==T){w(U);var t=e-R+H;tt&&(t=8),H=tt?I.postMessage(void 0):O||(O=!0,w(U))},C=function(){T=null,A=!1,D=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=a,i=o;a=e,o=t.unstable_now();try{return n()}finally{a=r,o=i,h()}},t.unstable_next=function(e){switch(a){case 1:case 2:case 3:var n=3;break;default:n=a}var r=a,i=o;a=n,o=t.unstable_now();try{return e()}finally{a=r,o=i,h()}},t.unstable_scheduleCallback=function(e,r){var i=-1!==o?o:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=i+r.timeout;else switch(a){case 1:r=i+-1;break;case 2:r=i+250;break;case 5:r=i+1073741823;break;case 4:r=i+1e4;break;default:r=i+5e3}if(e={callback:e,priorityLevel:a,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,u();else{i=null;var l=n;do{if(l.expirationTime>r){i=l;break}l=l.next}while(l!==n);null===i?i=n:i===n&&(n=e,u()),(r=i.previous).next=i.previous=e,e.next=i,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=a;return function(){var r=a,i=o;a=n,o=t.unstable_now();try{return e.apply(this,arguments)}finally{a=r,o=i,h()}}},t.unstable_getCurrentPriorityLevel=function(){return a},t.unstable_shouldYield=function(){return!i&&(null!==n&&n.expirationTimethis.eventPool.length&&this.eventPool.push(e)}function st(e){e.eventPool=[],e.getPooled=ot,e.release=lt}f(at.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rt)},persist:function(){this.isPersistent=rt},isPersistent:it,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=it,this._dispatchInstances=this._dispatchListeners=null}}),at.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},at.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return f(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=f({},r.Interface,e),n.extend=r.extend,st(n),n},st(at);var ct=at.extend({data:null}),ut=at.extend({data:null}),ft=[9,13,27,32],ht=ze&&"CompositionEvent"in window,dt=null;ze&&"documentMode"in document&&(dt=document.documentMode);var pt=ze&&"TextEvent"in window&&!dt,mt=ze&&(!ht||dt&&8=dt),vt=String.fromCharCode(32),gt={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},bt=!1;function yt(e,t){switch(e){case"keyup":return-1!==ft.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function kt(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var wt=!1;var xt={eventTypes:gt,extractEvents:function(e,t,n,r){var i=void 0,a=void 0;if(ht)e:{switch(e){case"compositionstart":i=gt.compositionStart;break e;case"compositionend":i=gt.compositionEnd;break e;case"compositionupdate":i=gt.compositionUpdate;break e}i=void 0}else wt?yt(e,n)&&(i=gt.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=gt.compositionStart);return i?(mt&&"ko"!==n.locale&&(wt||i!==gt.compositionStart?i===gt.compositionEnd&&wt&&(a=nt()):(et="value"in(Xe=r)?Xe.value:Xe.textContent,wt=!0)),i=ct.getPooled(i,t,n,r),a?i.data=a:null!==(a=kt(n))&&(i.data=a),Fe(i),a=i):a=null,(e=pt?function(e,t){switch(e){case"compositionend":return kt(t);case"keypress":return 32!==t.which?null:(bt=!0,vt);case"textInput":return(e=t.data)===vt&&bt?null:e;default:return null}}(e,n):function(e,t){if(wt)return"compositionend"===e||!ht&&yt(e,t)?(e=nt(),tt=et=Xe=null,wt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1