UNPKG

@fast-china/axios

Version:

Fast Axios 请求工具库.

1 lines 108 kB
var FastAxios=function(t,e){"use strict";var r=Object.defineProperty,n=(t,e,n)=>((t,e,n)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:u,toStringTag:a}=Symbol,s=(t=>e=>{const r=o.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),c=t=>(t=t.toLowerCase(),e=>s(e)===t),f=t=>e=>typeof e===t,{isArray:l}=Array,h=f("undefined");const p=c("ArrayBuffer");const d=f("string"),v=f("function"),g=f("number"),y=t=>null!==t&&"object"==typeof t,_=t=>{if("object"!==s(t))return!1;const e=i(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||a in t||u in t)},b=c("Date"),m=c("File"),w=c("Blob"),j=c("FileList"),O=c("URLSearchParams"),[x,A,E,R]=["ReadableStream","Request","Response","Headers"].map(c);function S(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,o;if("object"!=typeof t&&(t=[t]),l(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{const o=r?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let u;for(n=0;n<i;n++)u=o[n],e.call(null,t[u],u,t)}}function I(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;for(;o-- >0;)if(n=r[o],e===n.toLowerCase())return n;return null}const T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,B=t=>!h(t)&&t!==T;const C=(t=>e=>t&&e instanceof t)("undefined"!=typeof Uint8Array&&i(Uint8Array)),M=c("HTMLFormElement"),k=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),P=c("RegExp"),W=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};S(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)};const F=c("AsyncFunction"),D=(L="function"==typeof setImmediate,U=v(T.postMessage),L?setImmediate:U?(N=`axios@${Math.random()}`,z=[],T.addEventListener("message",(({source:t,data:e})=>{t===T&&e===N&&z.length&&z.shift()()}),!1),t=>{z.push(t),T.postMessage(N,"*")}):t=>setTimeout(t));var L,U,N,z;const q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||D,$={isArray:l,isArrayBuffer:p,isBuffer:function(t){return null!==t&&!h(t)&&null!==t.constructor&&!h(t.constructor)&&v(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||v(t.append)&&("formdata"===(e=s(t))||"object"===e&&v(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e},isString:d,isNumber:g,isBoolean:t=>!0===t||!1===t,isObject:y,isPlainObject:_,isReadableStream:x,isRequest:A,isResponse:E,isHeaders:R,isUndefined:h,isDate:b,isFile:m,isBlob:w,isRegExp:P,isFunction:v,isStream:t=>y(t)&&v(t.pipe),isURLSearchParams:O,isTypedArray:C,isFileList:j,forEach:S,merge:function t(){const{caseless:e}=B(this)&&this||{},r={},n=(n,o)=>{const i=e&&I(r,o)||o;_(r[i])&&_(n)?r[i]=t(r[i],n):_(n)?r[i]=t({},n):l(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&S(arguments[t],n);return r},extend:(t,e,r,{allOwnKeys:n}={})=>(S(e,((e,n)=>{r&&v(e)?t[n]=function(t,e){return function(){return t.apply(e,arguments)}}(e,r):t[n]=e}),{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,u,a;const s={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),u=o.length;u-- >0;)a=o[u],n&&!n(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==r&&i(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:c,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(l(t))return t;let e=t.length;if(!g(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[u]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:M,hasOwnProperty:k,hasOwnProp:k,reduceDescriptors:W,freezeMethods:t=>{W(t,((e,r)=>{if(v(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];v(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return l(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:I,global:T,isContextDefined:B,isSpecCompliantForm:function(t){return!!(t&&v(t.append)&&"FormData"===t[a]&&t[u])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(y(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=l(t)?[]:{};return S(t,((t,e)=>{const i=r(t,n+1);!h(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:F,isThenable:t=>t&&(y(t)||v(t))&&v(t.then)&&v(t.catch),setImmediate:D,asap:q,isIterable:t=>null!=t&&v(t[u])};function K(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}$.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const H=K.prototype,V={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{V[t]={value:t}})),Object.defineProperties(K,V),Object.defineProperty(H,"isAxiosError",{value:!0}),K.from=(t,e,r,n,o,i)=>{const u=Object.create(H);return $.toFlatObject(t,u,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),K.call(u,t.message,e,r,n,o),u.cause=t,u.name=t.name,i&&Object.assign(u,i),u};function J(t){return $.isPlainObject(t)||$.isArray(t)}function Z(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function G(t,e,r){return t?t.concat(e).map((function(t,e){return t=Z(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const Y=$.toFlatObject($,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Q(t,e,r){if(!$.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!$.isUndefined(e[t])}))).metaTokens,o=r.visitor||c,i=r.dots,u=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function s(t){if(null===t)return"";if($.isDate(t))return t.toISOString();if(!a&&$.isBlob(t))throw new K("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(t)||$.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,r,o){let a=t;if(t&&!o&&"object"==typeof t)if($.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if($.isArray(t)&&function(t){return $.isArray(t)&&!t.some(J)}(t)||($.isFileList(t)||$.endsWith(r,"[]"))&&(a=$.toArray(t)))return r=Z(r),a.forEach((function(t,n){!$.isUndefined(t)&&null!==t&&e.append(!0===u?G([r],n,i):null===u?r:r+"[]",s(t))})),!1;return!!J(t)||(e.append(G(o,r,i),s(t)),!1)}const f=[],l=Object.assign(Y,{defaultVisitor:c,convertValue:s,isVisitable:J});if(!$.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!$.isUndefined(r)){if(-1!==f.indexOf(r))throw Error("Circular reference detected in "+n.join("."));f.push(r),$.forEach(r,(function(r,i){!0===(!($.isUndefined(r)||null===r)&&o.call(e,r,$.isString(i)?i.trim():i,n,l))&&t(r,n?n.concat(i):[i])})),f.pop()}}(t),e}function X(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function tt(t,e){this._pairs=[],t&&Q(t,this,e)}const et=tt.prototype;function rt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}et.append=function(t,e){this._pairs.push([t,e])},et.toString=function(t){const e=t?function(e){return t.call(this,e,X)}:X;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const nt=t=>{var r;const n=t.data,o="arraybuffer"===t.responseType?"arraybuffer":"text",i="text"===o?"json":void 0,{headers:u,baseURL:a,...s}=t,c=e.AxiosHeaders.from(u).normalize(!1);if(t.auth){const e=t.auth.username||"",r=t.auth.password?decodeURIComponent(encodeURIComponent(t.auth.password)):"";c.set("Authorization",`Basic ${btoa(`${e}:${r}`)}`)}const f=function(t,e,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(n||0==r)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}(a,t.url),l=(null==(r=null==t?void 0:t.method)?void 0:r.toUpperCase())??"GET",h=function(t,e,r){if(!e)return t;const n=r&&r.encode||rt;$.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(e,r):$.isURLSearchParams(e)?e.toString():new tt(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}(f,t.params,t.paramsSerializer),p=t.timeout||6e4;let d={};if(n&&"string"==typeof n)try{d=JSON.parse(n)}catch{}return{...s,url:h,data:n,header:c.toJSON(),method:l,responseType:o,dataType:i,timeout:p,formData:d}},ot=(t,e)=>{let r=0;const n=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,u=0;return e=void 0!==e?e:1e3,function(a){const s=Date.now(),c=n[u];o||(o=s),r[i]=a,n[i]=s;let f=u,l=0;for(;f!==i;)l+=r[f++],f%=t;if(i=(i+1)%t,i===u&&(u=(u+1)%t),s-o<e)return;const h=c&&s-c;return h?Math.round(1e3*l/h):void 0}}(50,250);return o=>{const i=o.totalBytesWritten,u=o.totalBytesExpectedToWrite,a=i-r,s=n(a);r=i;const c={loaded:i,total:u,progress:u?i/u:void 0,bytes:a,rate:s||void 0,estimated:s&&u&&i<=u?(u-i)/s:void 0,event:o,lengthComputable:!0};c[e?"download":"upload"]=!0,t(c)}};function it(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}class ut{constructor(t){n(this,"config"),n(this,"onCanceled"),this.config=t}subscribe(t,r){(this.config.cancelToken||this.config.signal)&&(this.onCanceled=n=>{t&&(r(!n||n.type?new e.CanceledError(void 0,void 0,this.config,t):n),t.abort(),t=null)},this.config.cancelToken&&this.config.cancelToken.subscribe(this.onCanceled),this.config.signal&&this.config.signal.addEventListener&&(this.config.signal.aborted?this.onCanceled():this.config.signal.addEventListener("abort",this.onCanceled)))}unsubscribe(){this.config.cancelToken&&this.config.cancelToken.unsubscribe(this.onCanceled),this.config.signal&&this.config.signal.removeEventListener&&this.config.signal.removeEventListener("abort",this.onCanceled)}}const at=t=>new Promise(((r,n)=>{const o=nt(t),i=t;i.headers=new e.AxiosHeaders(o.header);const u=new ut(t);let a=uni.downloadFile({...o,success(t){if(!a)return;const e={config:i,data:t.tempFilePath,headers:{},status:t.statusCode,statusText:t.errMsg??"OK",request:a};it(r,n,e),a=null},fail(t){const{errMsg:r=""}=t??{};if(r){"downloadFile:fail timeout"===r&&n(new e.AxiosError(r,e.AxiosError.ETIMEDOUT,i,a));"downloadFile:fail "===r&&n(new e.AxiosError(r,e.AxiosError.ERR_NETWORK,i,a))}n(new e.AxiosError(t.errMsg,void 0,i,a)),a=null},complete(){u.unsubscribe()}});"function"==typeof t.onDownloadProgress&&a.onProgressUpdate(ot(t.onDownloadProgress,!0)),"function"==typeof t.onHeadersReceived&&a.onHeadersReceived(t.onHeadersReceived),u.subscribe(a,n)})),st=t=>new Promise(((r,n)=>{const o=nt(t),i=t;i.headers=new e.AxiosHeaders(o.header);const u=new ut(t);let a=uni.request({...o,success(t){if(!a)return;const o=new e.AxiosHeaders(t.header),u={config:i,data:t.data,headers:o,status:t.statusCode,statusText:t.errMsg??"OK",request:a,cookies:t.cookies};it(r,n,u),a=null},fail(t){const{errMsg:r=""}=t??{};if(r){const t="request:fail "===r;"request:fail timeout"===r&&n(new e.AxiosError(r,e.AxiosError.ETIMEDOUT,i,a)),t&&n(new e.AxiosError(r,e.AxiosError.ERR_NETWORK,i,a))}n(new e.AxiosError(t.errMsg,void 0,i,a)),a=null},complete(){u.unsubscribe()}});"function"==typeof t.onHeadersReceived&&a.onHeadersReceived(t.onHeadersReceived),u.subscribe(a,n)})),ct=t=>new Promise(((r,n)=>{const o=nt(t),i=t;i.headers=new e.AxiosHeaders(o.header);const u=new ut(t);let a=uni.uploadFile({...o,success(t){if(!a)return;const e={config:i,data:t.data,headers:{},status:t.statusCode,statusText:t.errMsg??"OK",request:a};it(r,n,e),a=null},fail(t){const{errMsg:r=""}=t??{};if(r){const t="uploadFile:fail file error"===r;"uploadFile:fail timeout"===r&&n(new e.AxiosError(r,e.AxiosError.ETIMEDOUT,i,a)),t&&n(new e.AxiosError(r,e.AxiosError.ERR_NETWORK,i,a))}n(new e.AxiosError(t.errMsg,void 0,i,a)),a=null},complete(){u.unsubscribe()}});"function"==typeof t.onHeadersReceived&&a.onHeadersReceived(t.onHeadersReceived),u.subscribe(a,n)})),ft=()=>{e.Axios.prototype.download=function(t,e){return this.request({url:t,method:"download",...e})},e.Axios.prototype.upload=function(t,e,r){return this.request({url:t,method:"upload",data:e,...r})};return t=>{const e=(t=>{const e=(t=>{const{method:e="GET"}=t;switch(e.toLocaleLowerCase()){case"download":return"download";case"upload":return"upload";default:return"request"}})(t);switch(e){case"download":return at;case"upload":return ct;default:return st}})(t);return e(t)}};var lt="object"==typeof global&&global&&global.Object===Object&&global,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=lt||ht||Function("return this")(),dt=pt.Symbol,vt=Object.prototype,gt=vt.hasOwnProperty,yt=vt.toString,_t=dt?dt.toStringTag:void 0;var bt=Object.prototype.toString;var mt=dt?dt.toStringTag:void 0;function wt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":mt&&mt in Object(t)?function(t){var e=gt.call(t,_t),r=t[_t];try{t[_t]=void 0;var n=!0}catch(t){}var o=yt.call(t);return n&&(e?t[_t]=r:delete t[_t]),o}(t):function(t){return bt.call(t)}(t)}function jt(t){return null!=t&&"object"==typeof t}function Ot(t){return"symbol"==typeof t||jt(t)&&"[object Symbol]"==wt(t)}function xt(t){return"number"==typeof t?t:Ot(t)?NaN:+t}function At(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}var Et=Array.isArray,Rt=dt?dt.prototype:void 0,St=Rt?Rt.toString:void 0;function It(t){if("string"==typeof t)return t;if(Et(t))return At(t,It)+"";if(Ot(t))return St?St.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Tt(t,e){return function(r,n){var o;if(void 0===r&&void 0===n)return e;if(void 0!==r&&(o=r),void 0!==n){if(void 0===o)return n;"string"==typeof r||"string"==typeof n?(r=It(r),n=It(n)):(r=xt(r),n=xt(n)),o=t(r,n)}return o}}var Bt=Tt((function(t,e){return t+e}),0),Ct=/\s/;function Mt(t){for(var e=t.length;e--&&Ct.test(t.charAt(e)););return e}var kt=/^\s+/;function Pt(t){return t?t.slice(0,Mt(t)+1).replace(kt,""):t}function Wt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Ft=/^[-+]0x[0-9a-f]+$/i,Dt=/^0b[01]+$/i,Lt=/^0o[0-7]+$/i,Ut=parseInt;function Nt(t){if("number"==typeof t)return t;if(Ot(t))return NaN;if(Wt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Wt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Pt(t);var r=Dt.test(t);return r||Lt.test(t)?Ut(t.slice(2),r?2:8):Ft.test(t)?NaN:+t}var zt=1/0;function qt(t){return t?(t=Nt(t))===zt||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function $t(t){var e=qt(t),r=e%1;return e==e?r?e-r:e:0}function Kt(t){return t}function Ht(t){if(!Wt(t))return!1;var e=wt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var Vt,Jt=pt["__core-js_shared__"],Zt=(Vt=/[^.]+$/.exec(Jt&&Jt.keys&&Jt.keys.IE_PROTO||""))?"Symbol(src)_1."+Vt:"";var Gt=Function.prototype.toString;function Yt(t){if(null!=t){try{return Gt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Qt=/^\[object .+?Constructor\]$/,Xt=Function.prototype,te=Object.prototype,ee=Xt.toString,re=te.hasOwnProperty,ne=RegExp("^"+ee.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oe(t){return!(!Wt(t)||(e=t,Zt&&Zt in e))&&(Ht(t)?ne:Qt).test(Yt(t));var e}function ie(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return oe(r)?r:void 0}var ue=ie(pt,"WeakMap"),ae=ue&&new ue,se=ae?function(t,e){return ae.set(t,e),t}:Kt,ce=Object.create,fe=function(){function t(){}return function(e){if(!Wt(e))return{};if(ce)return ce(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function le(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=fe(t.prototype),n=t.apply(r,e);return Wt(n)?n:r}}function he(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var pe=Math.max;function de(t,e,r,n){for(var o=-1,i=t.length,u=r.length,a=-1,s=e.length,c=pe(i-u,0),f=Array(s+c),l=!n;++a<s;)f[a]=e[a];for(;++o<u;)(l||o<i)&&(f[r[o]]=t[o]);for(;c--;)f[a++]=t[o++];return f}var ve=Math.max;function ge(t,e,r,n){for(var o=-1,i=t.length,u=-1,a=r.length,s=-1,c=e.length,f=ve(i-a,0),l=Array(f+c),h=!n;++o<f;)l[o]=t[o];for(var p=o;++s<c;)l[p+s]=e[s];for(;++u<a;)(h||o<i)&&(l[p+r[u]]=t[o++]);return l}function ye(){}function _e(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function be(){}_e.prototype=fe(ye.prototype),_e.prototype.constructor=_e;var me=ae?function(t){return ae.get(t)}:be,we={},je=Object.prototype.hasOwnProperty;function Oe(t){for(var e=t.name+"",r=we[e],n=je.call(we,e)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==t)return o.name}return e}function xe(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Ae(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function Ee(t){if(t instanceof _e)return t.clone();var e=new xe(t.__wrapped__,t.__chain__);return e.__actions__=Ae(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}xe.prototype=fe(ye.prototype),xe.prototype.constructor=xe;var Re=Object.prototype.hasOwnProperty;function Se(t){if(jt(t)&&!Et(t)&&!(t instanceof _e)){if(t instanceof xe)return t;if(Re.call(t,"__wrapped__"))return Ee(t)}return new xe(t)}function Ie(t){var e=Oe(t),r=Se[e];if("function"!=typeof r||!(e in _e.prototype))return!1;if(t===r)return!0;var n=me(r);return!!n&&t===n[0]}Se.prototype=ye.prototype,Se.prototype.constructor=Se;var Te=Date.now;function Be(t){var e=0,r=0;return function(){var n=Te(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Ce=Be(se),Me=/\{\n\/\* \[wrapped with (.+)\] \*/,ke=/,? & /;var Pe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function We(t){return function(){return t}}var Fe=function(){try{var t=ie(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),De=Fe?function(t,e){return Fe(t,"toString",{configurable:!0,enumerable:!1,value:We(e),writable:!0})}:Kt,Le=Be(De);function Ue(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function Ne(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function ze(t){return t!=t}function qe(t,e,r){return e==e?function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,r):Ne(t,ze,r)}function $e(t,e){return!!(null==t?0:t.length)&&qe(t,e,0)>-1}var Ke=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function He(t,e,r){var n=e+"";return Le(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(Pe,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return Ue(Ke,(function(r){var n="_."+r[0];e&r[1]&&!$e(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(Me);return e?e[1].split(ke):[]}(n),r)))}function Ve(t,e,r,n,o,i,u,a,s,c){var f=8&e;e|=f?32:64,4&(e&=~(f?64:32))||(e&=-4);var l=[t,e,o,f?i:void 0,f?u:void 0,f?void 0:i,f?void 0:u,a,s,c],h=r.apply(void 0,l);return Ie(t)&&Ce(h,l),h.placeholder=n,He(h,t,e)}function Je(t){return t.placeholder}var Ze=/^(?:0|[1-9]\d*)$/;function Ge(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Ze.test(t))&&t>-1&&t%1==0&&t<e}var Ye=Math.min;var Qe="__lodash_placeholder__";function Xe(t,e){for(var r=-1,n=t.length,o=0,i=[];++r<n;){var u=t[r];u!==e&&u!==Qe||(t[r]=Qe,i[o++]=r)}return i}function tr(t,e,r,n,o,i,u,a,s,c){var f=128&e,l=1&e,h=2&e,p=24&e,d=512&e,v=h?void 0:le(t);return function g(){for(var y=arguments.length,_=Array(y),b=y;b--;)_[b]=arguments[b];if(p)var m=Je(g),w=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}(_,m);if(n&&(_=de(_,n,o,p)),i&&(_=ge(_,i,u,p)),y-=w,p&&y<c){var j=Xe(_,m);return Ve(t,e,tr,g.placeholder,r,_,j,a,s,c-y)}var O=l?r:this,x=h?O[t]:t;return y=_.length,a?_=function(t,e){for(var r=t.length,n=Ye(e.length,r),o=Ae(t);n--;){var i=e[n];t[n]=Ge(i,r)?o[i]:void 0}return t}(_,a):d&&y>1&&_.reverse(),f&&s<y&&(_.length=s),this&&this!==pt&&this instanceof g&&(x=v||le(x)),x.apply(O,_)}}var er="__lodash_placeholder__",rr=128,nr=Math.min;var or=Math.max;function ir(t,e,r,n,o,i,u,a){var s=2&e;if(!s&&"function"!=typeof t)throw new TypeError("Expected a function");var c=n?n.length:0;if(c||(e&=-97,n=o=void 0),u=void 0===u?u:or($t(u),0),a=void 0===a?a:$t(a),c-=o?o.length:0,64&e){var f=n,l=o;n=o=void 0}var h=s?void 0:me(t),p=[t,e,r,n,o,f,l,i,u,a];if(h&&function(t,e){var r=t[1],n=e[1],o=r|n,i=o<131,u=n==rr&&8==r||n==rr&&256==r&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!i&&!u)return t;1&n&&(t[2]=e[2],o|=1&r?0:4);var a=e[3];if(a){var s=t[3];t[3]=s?de(s,a,e[4]):a,t[4]=s?Xe(t[3],er):e[4]}(a=e[5])&&(s=t[5],t[5]=s?ge(s,a,e[6]):a,t[6]=s?Xe(t[5],er):e[6]),(a=e[7])&&(t[7]=a),n&rr&&(t[8]=null==t[8]?e[8]:nr(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(p,h),t=p[0],e=p[1],r=p[2],n=p[3],o=p[4],!(a=p[9]=void 0===p[9]?s?0:t.length:or(p[9]-c,0))&&24&e&&(e&=-25),e&&1!=e)d=8==e||16==e?function(t,e,r){var n=le(t);return function o(){for(var i=arguments.length,u=Array(i),a=i,s=Je(o);a--;)u[a]=arguments[a];var c=i<3&&u[0]!==s&&u[i-1]!==s?[]:Xe(u,s);return(i-=c.length)<r?Ve(t,e,tr,o.placeholder,void 0,u,c,void 0,void 0,r-i):he(this&&this!==pt&&this instanceof o?n:t,this,u)}}(t,e,a):32!=e&&33!=e||o.length?tr.apply(void 0,p):function(t,e,r,n){var o=1&e,i=le(t);return function e(){for(var u=-1,a=arguments.length,s=-1,c=n.length,f=Array(c+a),l=this&&this!==pt&&this instanceof e?i:t;++s<c;)f[s]=n[s];for(;a--;)f[s++]=arguments[++u];return he(l,o?r:this,f)}}(t,e,r,n);else var d=function(t,e,r){var n=1&e,o=le(t);return function e(){return(this&&this!==pt&&this instanceof e?o:t).apply(n?r:this,arguments)}}(t,e,r);return He((h?se:Ce)(d,p),t,e)}function ur(t,e,r){return e=r?void 0:e,ir(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ar(t,e,r){"__proto__"==e&&Fe?Fe(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function sr(t,e){return t===e||t!=t&&e!=e}var cr=Object.prototype.hasOwnProperty;function fr(t,e,r){var n=t[e];cr.call(t,e)&&sr(n,r)&&(void 0!==r||e in t)||ar(t,e,r)}function lr(t,e,r,n){var o=!r;r||(r={});for(var i=-1,u=e.length;++i<u;){var a=e[i],s=n?n(r[a],t[a],a,r,t):void 0;void 0===s&&(s=t[a]),o?ar(r,a,s):fr(r,a,s)}return r}var hr=Math.max;function pr(t,e,r){return e=hr(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=hr(n.length-e,0),u=Array(i);++o<i;)u[o]=n[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=n[o];return a[e]=r(u),he(t,this,a)}}function dr(t,e){return Le(pr(t,e,Kt),t+"")}function vr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function gr(t){return null!=t&&vr(t.length)&&!Ht(t)}function yr(t,e,r){if(!Wt(r))return!1;var n=typeof e;return!!("number"==n?gr(r)&&Ge(e,r.length):"string"==n&&e in r)&&sr(r[e],t)}function _r(t){return dr((function(e,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,u=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&yr(r[0],r[1],u)&&(i=o<3?void 0:i,o=1),e=Object(e);++n<o;){var a=r[n];a&&t(e,a,n,i)}return e}))}var br=Object.prototype;function mr(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||br)}function wr(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function jr(t){return jt(t)&&"[object Arguments]"==wt(t)}var Or=Object.prototype,xr=Or.hasOwnProperty,Ar=Or.propertyIsEnumerable,Er=jr(function(){return arguments}())?jr:function(t){return jt(t)&&xr.call(t,"callee")&&!Ar.call(t,"callee")};function Rr(){return!1}var Sr="object"==typeof t&&t&&!t.nodeType&&t,Ir=Sr&&"object"==typeof module&&module&&!module.nodeType&&module,Tr=Ir&&Ir.exports===Sr?pt.Buffer:void 0,Br=(Tr?Tr.isBuffer:void 0)||Rr,Cr={};function Mr(t){return function(e){return t(e)}}Cr["[object Float32Array]"]=Cr["[object Float64Array]"]=Cr["[object Int8Array]"]=Cr["[object Int16Array]"]=Cr["[object Int32Array]"]=Cr["[object Uint8Array]"]=Cr["[object Uint8ClampedArray]"]=Cr["[object Uint16Array]"]=Cr["[object Uint32Array]"]=!0,Cr["[object Arguments]"]=Cr["[object Array]"]=Cr["[object ArrayBuffer]"]=Cr["[object Boolean]"]=Cr["[object DataView]"]=Cr["[object Date]"]=Cr["[object Error]"]=Cr["[object Function]"]=Cr["[object Map]"]=Cr["[object Number]"]=Cr["[object Object]"]=Cr["[object RegExp]"]=Cr["[object Set]"]=Cr["[object String]"]=Cr["[object WeakMap]"]=!1;var kr="object"==typeof t&&t&&!t.nodeType&&t,Pr=kr&&"object"==typeof module&&module&&!module.nodeType&&module,Wr=Pr&&Pr.exports===kr&&lt.process,Fr=function(){try{var t=Pr&&Pr.require&&Pr.require("util").types;return t||Wr&&Wr.binding&&Wr.binding("util")}catch(t){}}(),Dr=Fr&&Fr.isTypedArray,Lr=Dr?Mr(Dr):function(t){return jt(t)&&vr(t.length)&&!!Cr[wt(t)]},Ur=Object.prototype.hasOwnProperty;function Nr(t,e){var r=Et(t),n=!r&&Er(t),o=!r&&!n&&Br(t),i=!r&&!n&&!o&&Lr(t),u=r||n||o||i,a=u?wr(t.length,String):[],s=a.length;for(var c in t)!e&&!Ur.call(t,c)||u&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ge(c,s))||a.push(c);return a}function zr(t,e){return function(r){return t(e(r))}}var qr=zr(Object.keys,Object),$r=Object.prototype.hasOwnProperty;function Kr(t){if(!mr(t))return qr(t);var e=[];for(var r in Object(t))$r.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Hr(t){return gr(t)?Nr(t):Kr(t)}var Vr=Object.prototype.hasOwnProperty,Jr=_r((function(t,e){if(mr(e)||gr(e))lr(e,Hr(e),t);else for(var r in e)Vr.call(e,r)&&fr(t,r,e[r])}));var Zr=Object.prototype.hasOwnProperty;function Gr(t){if(!Wt(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=mr(t),r=[];for(var n in t)("constructor"!=n||!e&&Zr.call(t,n))&&r.push(n);return r}function Yr(t){return gr(t)?Nr(t,!0):Gr(t)}var Qr=_r((function(t,e){lr(e,Yr(e),t)})),Xr=_r((function(t,e,r,n){lr(e,Yr(e),t,n)})),tn=_r((function(t,e,r,n){lr(e,Hr(e),t,n)})),en=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/;function nn(t,e){if(Et(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ot(t))||(rn.test(t)||!en.test(t)||null!=e&&t in Object(e))}var on=ie(Object,"create");var un=Object.prototype.hasOwnProperty;var an=Object.prototype.hasOwnProperty;function sn(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function cn(t,e){for(var r=t.length;r--;)if(sr(t[r][0],e))return r;return-1}sn.prototype.clear=function(){this.__data__=on?on(null):{},this.size=0},sn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},sn.prototype.get=function(t){var e=this.__data__;if(on){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return un.call(e,t)?e[t]:void 0},sn.prototype.has=function(t){var e=this.__data__;return on?void 0!==e[t]:an.call(e,t)},sn.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=on&&void 0===e?"__lodash_hash_undefined__":e,this};var fn=Array.prototype.splice;function ln(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ln.prototype.clear=function(){this.__data__=[],this.size=0},ln.prototype.delete=function(t){var e=this.__data__,r=cn(e,t);return!(r<0)&&(r==e.length-1?e.pop():fn.call(e,r,1),--this.size,!0)},ln.prototype.get=function(t){var e=this.__data__,r=cn(e,t);return r<0?void 0:e[r][1]},ln.prototype.has=function(t){return cn(this.__data__,t)>-1},ln.prototype.set=function(t,e){var r=this.__data__,n=cn(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var hn=ie(pt,"Map");function pn(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function dn(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}dn.prototype.clear=function(){this.size=0,this.__data__={hash:new sn,map:new(hn||ln),string:new sn}},dn.prototype.delete=function(t){var e=pn(this,t).delete(t);return this.size-=e?1:0,e},dn.prototype.get=function(t){return pn(this,t).get(t)},dn.prototype.has=function(t){return pn(this,t).has(t)},dn.prototype.set=function(t,e){var r=pn(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function vn(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u)||i,u};return r.cache=new(vn.Cache||dn),r}vn.Cache=dn;var gn,yn,_n,bn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mn=/\\(\\)?/g,wn=(gn=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(bn,(function(t,r,n,o){e.push(n?o.replace(mn,"$1"):r||t)})),e},yn=vn(gn,(function(t){return 500===_n.size&&_n.clear(),t})),_n=yn.cache,yn);function jn(t){return null==t?"":It(t)}function On(t,e){return Et(t)?t:nn(t,e)?[t]:wn(jn(t))}function xn(t){if("string"==typeof t||Ot(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function An(t,e){for(var r=0,n=(e=On(e,t)).length;null!=t&&r<n;)t=t[xn(e[r++])];return r&&r==n?t:void 0}function En(t,e,r){var n=null==t?void 0:An(t,e);return void 0===n?r:n}function Rn(t,e){for(var r=-1,n=e.length,o=Array(n),i=null==t;++r<n;)o[r]=i?void 0:En(t,e[r]);return o}function Sn(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var In=dt?dt.isConcatSpreadable:void 0;function Tn(t){return Et(t)||Er(t)||!!(In&&t&&t[In])}function Bn(t,e,r,n,o){var i=-1,u=t.length;for(r||(r=Tn),o||(o=[]);++i<u;){var a=t[i];e>0&&r(a)?e>1?Bn(a,e-1,r,n,o):Sn(o,a):n||(o[o.length]=a)}return o}function Cn(t){return(null==t?0:t.length)?Bn(t,1):[]}function Mn(t){return Le(pr(t,void 0,Cn),t+"")}var kn=Mn(Rn),Pn=zr(Object.getPrototypeOf,Object),Wn=Function.prototype,Fn=Object.prototype,Dn=Wn.toString,Ln=Fn.hasOwnProperty,Un=Dn.call(Object);function Nn(t){if(!jt(t)||"[object Object]"!=wt(t))return!1;var e=Pn(t);if(null===e)return!0;var r=Ln.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Dn.call(r)==Un}function zn(t){if(!jt(t))return!1;var e=wt(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Nn(t)}var qn=dr((function(t,e){try{return he(t,void 0,e)}catch(t){return zn(t)?t:new Error(t)}}));function $n(t,e){var r;if("function"!=typeof e)throw new TypeError("Expected a function");return t=$t(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=void 0),r}}var Kn=dr((function(t,e,r){var n=1;if(r.length){var o=Xe(r,Je(Kn));n|=32}return ir(t,n,e,r,o)}));Kn.placeholder={};var Hn=Mn((function(t,e){return Ue(e,(function(e){e=xn(e),ar(t,e,Kn(t[e],t))})),t})),Vn=dr((function(t,e,r){var n=3;if(r.length){var o=Xe(r,Je(Vn));n|=32}return ir(e,n,t,r,o)}));function Jn(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}function Zn(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Jn(t,e,r)}Vn.placeholder={};var Gn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Yn(t){return Gn.test(t)}var Qn="\\ud800-\\udfff",Xn="["+Qn+"]",to="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",eo="\\ud83c[\\udffb-\\udfff]",ro="[^"+Qn+"]",no="(?:\\ud83c[\\udde6-\\uddff]){2}",oo="[\\ud800-\\udbff][\\udc00-\\udfff]",io="(?:"+to+"|"+eo+")"+"?",uo="[\\ufe0e\\ufe0f]?",ao=uo+io+("(?:\\u200d(?:"+[ro,no,oo].join("|")+")"+uo+io+")*"),so="(?:"+[ro+to+"?",to,no,oo,Xn].join("|")+")",co=RegExp(eo+"(?="+eo+")|"+so+ao,"g");function fo(t){return Yn(t)?function(t){return t.match(co)||[]}(t):function(t){return t.split("")}(t)}function lo(t){return function(e){var r=Yn(e=jn(e))?fo(e):void 0,n=r?r[0]:e.charAt(0),o=r?Zn(r,1).join(""):e.slice(1);return n[t]()+o}}var ho=lo("toUpperCase");function po(t){return ho(jn(t).toLowerCase())}function vo(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function go(t){return function(e){return null==t?void 0:t[e]}}var yo=go({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),_o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bo=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function mo(t){return(t=jn(t))&&t.replace(_o,yo).replace(bo,"")}var wo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var jo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Oo="\\ud800-\\udfff",xo="\\u2700-\\u27bf",Ao="a-z\\xdf-\\xf6\\xf8-\\xff",Eo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ro="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",So="["+Ro+"]",Io="\\d+",To="["+xo+"]",Bo="["+Ao+"]",Co="[^"+Oo+Ro+Io+xo+Ao+Eo+"]",Mo="(?:\\ud83c[\\udde6-\\uddff]){2}",ko="[\\ud800-\\udbff][\\udc00-\\udfff]",Po="["+Eo+"]",Wo="(?:"+Bo+"|"+Co+")",Fo="(?:"+Po+"|"+Co+")",Do="(?:['’](?:d|ll|m|re|s|t|ve))?",Lo="(?:['’](?:D|LL|M|RE|S|T|VE))?",Uo="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",No="[\\ufe0e\\ufe0f]?",zo=No+Uo+("(?:\\u200d(?:"+["[^"+Oo+"]",Mo,ko].join("|")+")"+No+Uo+")*"),qo="(?:"+[To,Mo,ko].join("|")+")"+zo,$o=RegExp([Po+"?"+Bo+"+"+Do+"(?="+[So,Po,"$"].join("|")+")",Fo+"+"+Lo+"(?="+[So,Po+Wo,"$"].join("|")+")",Po+"?"+Wo+"+"+Do,Po+"+"+Lo,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Io,qo].join("|"),"g");function Ko(t,e,r){return t=jn(t),void 0===(e=r?void 0:e)?function(t){return jo.test(t)}(t)?function(t){return t.match($o)||[]}(t):function(t){return t.match(wo)||[]}(t):t.match(e)||[]}var Ho=RegExp("['’]","g");function Vo(t){return function(e){return vo(Ko(mo(e).replace(Ho,"")),t,"")}}var Jo=Vo((function(t,e,r){return e=e.toLowerCase(),t+(r?po(e):e)}));var Zo=pt.isFinite,Go=Math.min;function Yo(t){var e=Math[t];return function(t,r){if(t=Nt(t),(r=null==r?0:Go($t(r),292))&&Zo(t)){var n=(jn(t)+"e").split("e");return+((n=(jn(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Qo=Yo("ceil");function Xo(t){var e=Se(t);return e.__chain__=!0,e}var ti=Math.ceil,ei=Math.max;function ri(t,e,r){return t==t&&(void 0!==r&&(t=t<=r?t:r),void 0!==e&&(t=t>=e?t:e)),t}function ni(t){var e=this.__data__=new ln(t);this.size=e.size}function oi(t,e){return t&&lr(e,Hr(e),t)}ni.prototype.clear=function(){this.__data__=new ln,this.size=0},ni.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},ni.prototype.get=function(t){return this.__data__.get(t)},ni.prototype.has=function(t){return this.__data__.has(t)},ni.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ln){var n=r.__data__;if(!hn||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new dn(n)}return r.set(t,e),this.size=r.size,this};var ii="object"==typeof t&&t&&!t.nodeType&&t,ui=ii&&"object"==typeof module&&module&&!module.nodeType&&module,ai=ui&&ui.exports===ii?pt.Buffer:void 0,si=ai?ai.allocUnsafe:void 0;function ci(t,e){if(e)return t.slice();var r=t.length,n=si?si(r):new t.constructor(r);return t.copy(n),n}function fi(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}function li(){return[]}var hi=Object.prototype.propertyIsEnumerable,pi=Object.getOwnPropertySymbols,di=pi?function(t){return null==t?[]:(t=Object(t),fi(pi(t),(function(e){return hi.call(t,e)})))}:li;var vi=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Sn(e,di(t)),t=Pn(t);return e}:li;function gi(t,e,r){var n=e(t);return Et(t)?n:Sn(n,r(t))}function yi(t){return gi(t,Hr,di)}function _i(t){return gi(t,Yr,vi)}var bi=ie(pt,"DataView"),mi=ie(pt,"Promise"),wi=ie(pt,"Set"),ji="[object Map]",Oi="[object Promise]",xi="[object Set]",Ai="[object WeakMap]",Ei="[object DataView]",Ri=Yt(bi),Si=Yt(hn),Ii=Yt(mi),Ti=Yt(wi),Bi=Yt(ue),Ci=wt;(bi&&Ci(new bi(new ArrayBuffer(1)))!=Ei||hn&&Ci(new hn)!=ji||mi&&Ci(mi.resolve())!=Oi||wi&&Ci(new wi)!=xi||ue&&Ci(new ue)!=Ai)&&(Ci=function(t){var e=wt(t),r="[object Object]"==e?t.constructor:void 0,n=r?Yt(r):"";if(n)switch(n){case Ri:return Ei;case Si:return ji;case Ii:return Oi;case Ti:return xi;case Bi:return Ai}return e});const Mi=Ci;var ki=Object.prototype.hasOwnProperty;var Pi=pt.Uint8Array;function Wi(t){var e=new t.constructor(t.byteLength);return new Pi(e).set(new Pi(t)),e}var Fi=/\w*$/;var Di=dt?dt.prototype:void 0,Li=Di?Di.valueOf:void 0;function Ui(t,e){var r=e?Wi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Ni(t,e,r){var n,o=t.constructor;switch(e){case"[object ArrayBuffer]":return Wi(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,e){var r=e?Wi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ui(t,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,Fi.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return n=t,Li?Object(Li.call(n)):{}}}function zi(t){return"function"!=typeof t.constructor||mr(t)?{}:fe(Pn(t))}var qi=Fr&&Fr.isMap,$i=qi?Mr(qi):function(t){return jt(t)&&"[object Map]"==Mi(t)};var Ki=Fr&&Fr.isSet,Hi=Ki?Mr(Ki):function(t){return jt(t)&&"[object Set]"==Mi(t)},Vi="[object Arguments]",Ji="[object Function]",Zi="[object Object]",Gi={};function Yi(t,e,r,n,o,i){var u,a=1&e,s=2&e,c=4&e;if(r&&(u=o?r(t,n,o,i):r(t)),void 0!==u)return u;if(!Wt(t))return t;var f=Et(t);if(f){if(u=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&ki.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!a)return Ae(t,u)}else{var l=Mi(t),h=l==Ji||"[object GeneratorFunction]"==l;if(Br(t))return ci(t,a);if(l==Zi||l==Vi||h&&!o){if(u=s||h?{}:zi(t),!a)return s?function(t,e){return lr(t,vi(t),e)}(t,function(t,e){return t&&lr(e,Yr(e),t)}(u,t)):function(t,e){return lr(t,di(t),e)}(t,oi(u,t))}else{if(!Gi[l])return o?t:{};u=Ni(t,l,a)}}i||(i=new ni);var p=i.get(t);if(p)return p;i.set(t,u),Hi(t)?t.forEach((function(n){u.add(Yi(n,e,r,n,t,i))})):$i(t)&&t.forEach((function(n,o){u.set(o,Yi(n,e,r,o,t,i))}));var d=f?void 0:(c?s?_i:yi:s?Yr:Hr)(t);return Ue(d||t,(function(n,o){d&&(n=t[o=n]),fr(u,o,Yi(n,e,r,o,t,i))})),u}Gi[Vi]=Gi["[object Array]"]=Gi["[object ArrayBuffer]"]=Gi["[object DataView]"]=Gi["[object Boolean]"]=Gi["[object Date]"]=Gi["[object Float32Array]"]=Gi["[object Float64Array]"]=Gi["[object Int8Array]"]=Gi["[object Int16Array]"]=Gi["[object Int32Array]"]=Gi["[object Map]"]=Gi["[object Number]"]=Gi[Zi]=Gi["[object RegExp]"]=Gi["[object Set]"]=Gi["[object String]"]=Gi["[object Symbol]"]=Gi["[object Uint8Array]"]=Gi["[object Uint8ClampedArray]"]=Gi["[object Uint16Array]"]=Gi["[object Uint32Array]"]=!0,Gi["[object Error]"]=Gi[Ji]=Gi["[object WeakMap]"]=!1;function Qi(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new dn;++e<r;)this.add(t[e])}function Xi(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function tu(t,e){return t.has(e)}Qi.prototype.add=Qi.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Qi.prototype.has=function(t){return this.__data__.has(t)};function eu(t,e,r,n,o,i){var u=1&r,a=t.length,s=e.length;if(a!=s&&!(u&&s>a))return!1;var c=i.get(t),f=i.get(e);if(c&&f)return c==e&&f==t;var l=-1,h=!0,p=2&r?new Qi:void 0;for(i.set(t,e),i.set(e,t);++l<a;){var d=t[l],v=e[l];if(n)var g=u?n(v,d,l,e,t,i):n(d,v,l,t,e,i);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!Xi(e,(function(t,e){if(!tu(p,e)&&(d===t||o(d,t,r,n,i)))return p.push(e)}))){h=!1;break}}else if(d!==v&&!o(d,v,r,n,i)){h=!1;break}}return i.delete(t),i.delete(e),h}function ru(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function nu(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var ou=dt?dt.prototype:void 0,iu=ou?ou.valueOf:void 0;var uu=Object.prototype.hasOwnProperty;var au="[object Arguments]",su="[object Array]",cu="[object Object]",fu=Object.prototype.hasOwnProperty;function lu(t,e,r,n,o,i){var u=Et(t),a=Et(e),s=u?su:Mi(t),c=a?su:Mi(e),f=(s=s==au?cu:s)==cu,l=(c=c==au?cu:c)==cu,h=s==c;if(h&&Br(t)){if(!Br(e))return!1;u=!0,f=!1}if(h&&!f)return i||(i=new ni),u||Lr(t)?eu(t,e,r,n,o,i):function(t,e,r,n,o,i,u){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Pi(t),new Pi(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return sr(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=ru;case"[object Set]":var s=1&n;if(a||(a=nu),t.size!=e.size&&!s)return!1;var c=u.get(t);if(c)return c==e;n|=2,u.set(t,e);var f=eu(a(t),a(e),n,o,i,u);return u.delete(t),f;case"[object Symbol]":if(iu)return iu.call(t)==iu.call(e)}return!1}(t,e,s,r,n,o,i);if(!(1&r)){var p=f&&fu.call(t,"__wrapped__"),d=l&&fu.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return i||(i=new ni),o(v,g,r,n,i)}}return!!h&&(i||(i=new ni),function(t,e,r,n,o,i){var u=1&r,a=yi(t),s=a.length;if(s!=yi(e).length&&!u)return!1;for(var c=s;c--;){var f=a[c];if(!(u?f in e:uu.call(e,f)))return!1}var l=i.get(t),h=i.get(e);if(l&&h)return l==e&&h==t;var p=!0;i.set(t,e),i.set(e,t);for(var d=u;++c<s;){var v=t[f=a[c]],g=e[f];if(n)var y=u?n(g,v,f,e,t,i):n(v,g,f,t,e,i);if(!(void 0===y?v===g||o(v,g,r,n,i):y)){p=!1;break}d||(d="constructor"==f)}if(p&&!d){var _=t.constructor,b=e.constructor;_==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,r,n,o,i))}function hu(t,e,r,n,o){return t===e||(null==t||null==e||!jt(t)&&!jt(e)?t!=t&&e!=e:lu(t,e,r,n,hu,o))}function pu(t,e,r,n){var o=r.length,i=o,u=!n;if(null==t)return!i;for(t=Object(t);o--;){var a=r[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var s=(a=r[o])[0],c=t[s],f=a[1];if(u&&a[2]){if(void 0===c&&!(s in t))return!1}else{var l=new ni;if(n)var h=n(c,f,s,t,e,l);if(!(void 0===h?hu(f,c,3,n,l):h))return!1}}return!0}function du(t){return t==t&&!Wt(t)}function vu(t){for(var e=Hr(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,du(o)]}return e}function gu(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}function yu(t){var e=vu(t);return 1==e.length&&e[0][2]?gu(e[0][0],e[0][1]):function(r){return r===t||pu(r,t,e)}}function _u(t,e){return null!=t&&e in Object(t)}function bu(t,e,r){for(var n=-1,o=(e=On(e,t)).length,i=!1;++n<o;){var u=xn(e[n]);if(!(i=null!=t&&r(t,u)))break;t=t[u]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&vr(o)&&Ge(u,o)&&(Et(t)||Er(t))}function mu(t,e){return null!=t&&bu(t,e,_u)}function wu(t,e){return nn(t)&&du(e)?gu(xn(t),e):function(r){var n=En(r,t);return void 0===n&&n===e?mu(r,t):hu(e,n,3)}}function ju(t){return function(e){return null==e?void 0:e[t]}}function Ou(t){return nn(t)?ju(xn(t)):function(t){return function(e){return An(e,t)}}(t)}function xu(t){return"function"==typeof t?t:null==t?Kt:"object"==typeof t?Et(t)?wu(t[0],t[1]):yu(t):Ou(t)}function Au(t,e,r){var n=r.length;if(null==t)return!n;for(t=Object(t);n--;){var o=r[n],i=e[o],u=t[o];if(void 0===u&&!(o in t)||!i(u))return!1}return!0}function Eu(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var u=t[o];e(n,u,r(u),t)}return n}function Ru(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var s=u[t?a:++o];if(!1===r(i[s],s,i))break}return e}}var Su=Ru();function Iu(t,e){return t&&Su(t,e,Hr)}function Tu(t,e){return function(r,n){if(null==r)return r;if(!gr(r))return t(r,n);for(var o=r.length,i=e?o:-1,u=Object(r);(e?i--:++i<o)&&!1!==n(u[i],i,u););return r}}var Bu=Tu(Iu);function Cu(t,e,r,n){return Bu(t,(function(t,o,i){e(n,t,r(t),i)})),n}function Mu(t,e){return function(r,n){var o=Et(r)?Eu:Cu,i=e?e():{};return o(r,t,xu(n),i)}}var ku=Object.prototype.hasOwnProperty,Pu=Mu((function(t,e,r){ku.call(t,r)?++t[r]:ar(t,r,1)}));function Wu(t,e,r){var n=ir(t,8,void 0,void 0,void 0,void 0,void 0,e=r?void 0:e);return n.placeholder=Wu.placeholder,n}Wu.placeholder={};function Fu(t,e,r){var n=ir(t,16,void 0,void 0,void 0,void 0,void 0,e=r?void 0:e);return n.placeholder=Fu.placeholder,n}Fu.placeholder={};var Du=function(){return pt.Date.now()},Lu=Math.max,Uu=Math.min;function Nu(t,e,r){var n,o,i,u,a,s,c=0,f=!1,l=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,i=o;return n=o=void 0,c=e,u=t.apply(i,r)}function d(t){var r=t-s;return void 0===s||r>=e||r<0||l&&t-c>=i}function v(){var t=Du();if(d(t))return g(t);a=setTimeout(v,function(t){var r=e-(t-s);return l?Uu(r,i-(t-c)):r}(t))}function g(t){return a=void 0,h&&n?p(t):(n=o=void 0,u)}function y(){var t=Du(),r=d(t);if(n=arguments,o=this,s=t,r){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),f?p(t):u}(s);if(l)return clearTimeout(a),a=setTimeout(v,e),p(s)}return void 0===a&&(a=setTimeout(v,e)),u}return e=Nt(e)||0,Wt(r)&&(f=!!r.leading,i=(l="maxWait"in r)?Lu(Nt(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=s=o=a=void 0},y.flush=function(){return void 0===a?u:g(Du())},y}var zu=Object.prototype,qu=zu.hasOwnProperty,$u=dr((function(t,e){t=Object(t);var r=-1,n=e.length,o=n>2?e[2]:void 0;for(o&&yr(e[0],e[1],o)&&(n=1);++r<n;)for(var i=e[r],u=Yr(i),a=-1,s=u.length;++a<s;){var c=u[a],f=t[c];(void 0===f||sr(f,zu[c])&&!qu.call(t,c))&&(t[c]=i[c])}return t}));function Ku(t,e,r){(void 0!==r&&!sr(t[e],r)||void 0===r&&!(e in t))&&ar(t,e,r)}function Hu(t){return jt(t)&&gr(t)}function Vu(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Ju(t){return lr(t,Yr(t))