@airma/react-effect
Advanced tools
Comparing version 18.2.5 to 18.2.6
@@ -1,1 +0,1 @@ | ||
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@airma/react-state"),require("@airma/react-hooks-core")):"function"==typeof define&&define.amd?define(["react","@airma/react-state","@airma/react-hooks-core"],r):"object"==typeof exports?exports["@airma/react-effect"]=r(require("react"),require("@airma/react-state"),require("@airma/react-hooks-core")):t["@airma/react-effect"]=r(t.react,t["@airma/react-state"],t["@airma/react-hooks-core"])}(self,(function(t,r,e){return function(){var n={4933:function(t,r,e){var n=e(6291),o=e(7073),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},8209:function(t,r,e){var n=e(1814),o=e(7073),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a constructor")}},9076:function(t,r,e){var n=e(6291),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},5822:function(t,r,e){var n=e(6802),o=e(2275),i=e(6462).f,u=n("unscopables"),c=Array.prototype;null==c[u]&&i(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},2814:function(t,r,e){var n=e(6282),o=TypeError;t.exports=function(t,r){if(n(r,t))return t;throw o("Incorrect invocation")}},4905:function(t,r,e){var n=e(2366),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},5029:function(t,r,e){var n=e(678),o=e(6971),i=e(4821),u=function(t){return function(r,e,u){var c,a=n(r),f=i(a),s=o(u,f);if(t&&e!=e){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},9020:function(t,r,e){"use strict";var n=e(5061);t.exports=function(t,r){var e=[][t];return!!e&&n((function(){e.call(null,r||function(){return 1},1)}))}},2040:function(t,r,e){var n=e(4933),o=e(7615),i=e(2901),u=e(4821),c=TypeError,a=function(t){return function(r,e,a,f){n(e);var s=o(r),l=i(s),p=u(s),v=t?p-1:0,d=t?-1:1;if(a<2)for(;;){if(v in l){f=l[v],v+=d;break}if(v+=d,t?v<0:p<=v)throw c("Reduce of empty array with no initial value")}for(;t?v>=0:p>v;v+=d)v in l&&(f=e(f,l[v],v,s));return f}};t.exports={left:a(!1),right:a(!0)}},650:function(t,r,e){var n=e(936);t.exports=n([].slice)},3165:function(t,r,e){var n=e(6802)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var e=!1;try{var i={};i[n]=function(){return{next:function(){return{done:e=!0}}}},t(i)}catch(t){}return e}},5489:function(t,r,e){var n=e(936),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},486:function(t,r,e){var n=e(8171),o=e(6291),i=e(5489),u=e(6802)("toStringTag"),c=Object,a="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=c(t),u))?e:a?i(r):"Object"==(n=i(r))&&o(r.callee)?"Arguments":n}},6810:function(t,r,e){var n=e(8382),o=e(2466),i=e(8117),u=e(6462);t.exports=function(t,r,e){for(var c=o(r),a=u.f,f=i.f,s=0;s<c.length;s++){var l=c[s];n(t,l)||e&&n(e,l)||a(t,l,f(r,l))}}},149:function(t,r,e){var n=e(5061);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4562:function(t){t.exports=function(t,r){return{value:t,done:r}}},430:function(t,r,e){var n=e(1502),o=e(6462),i=e(6034);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},6034:function(t){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},5850:function(t,r,e){var n=e(6291),o=e(6462),i=e(7192),u=e(1756);t.exports=function(t,r,e,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:r;if(n(e)&&i(e,f,c),c.global)a?t[r]=e:u(r,e);else{try{c.unsafe?t[r]&&(a=!0):delete t[r]}catch(t){}a?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},1756:function(t,r,e){var n=e(5001),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},1502:function(t,r,e){var n=e(5061);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5178:function(t){var r="object"==typeof document&&document.all,e=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:e}},6009:function(t,r,e){var n=e(5001),o=e(2366),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},8514:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7234:function(t,r,e){var n=e(6009)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},6837:function(t,r,e){var n=e(5065),o=e(566);t.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},5065:function(t){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},1368:function(t,r,e){var n=e(9966),o=e(5001);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==o.Pebble},311:function(t,r,e){var n=e(9966);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},566:function(t,r,e){var n=e(5489),o=e(5001);t.exports="process"==n(o.process)},4832:function(t,r,e){var n=e(9966);t.exports=/web0s(?!.*chrome)/i.test(n)},9966:function(t,r,e){var n=e(3425);t.exports=n("navigator","userAgent")||""},2821:function(t,r,e){var n,o,i=e(5001),u=e(9966),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,s=f&&f.v8;s&&(o=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},2089:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9638:function(t,r,e){var n=e(5001),o=e(8117).f,i=e(430),u=e(5850),c=e(1756),a=e(6810),f=e(1092);t.exports=function(t,r){var e,s,l,p,v,d=t.target,y=t.global,h=t.stat;if(e=y?n:h?n[d]||c(d,{}):(n[d]||{}).prototype)for(s in r){if(p=r[s],l=t.dontCallGetSet?(v=o(e,s))&&v.value:e[s],!f(y?s:d+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(e,s,p,t)}}},5061:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},5494:function(t,r,e){var n=e(8483),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?u.bind(i):function(){return u.apply(i,arguments)})},9918:function(t,r,e){var n=e(1017),o=e(4933),i=e(8483),u=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments)}}},8483:function(t,r,e){var n=e(5061);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},3927:function(t,r,e){var n=e(8483),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9873:function(t,r,e){var n=e(1502),o=e(8382),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,f=c&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:f}},1017:function(t,r,e){var n=e(5489),o=e(936);t.exports=function(t){if("Function"===n(t))return o(t)}},936:function(t,r,e){var n=e(8483),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},3425:function(t,r,e){var n=e(5001),o=e(6291);t.exports=function(t,r){return arguments.length<2?(e=n[t],o(e)?e:void 0):n[t]&&n[t][r];var e}},6354:function(t,r,e){var n=e(486),o=e(3815),i=e(860),u=e(501),c=e(6802)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||u[n(t)]}},8437:function(t,r,e){var n=e(3927),o=e(4933),i=e(4905),u=e(7073),c=e(6354),a=TypeError;t.exports=function(t,r){var e=arguments.length<2?c(t):r;if(o(e))return i(n(e,t));throw a(u(t)+" is not iterable")}},3815:function(t,r,e){var n=e(4933),o=e(860);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},5001:function(t,r,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||function(){return this}()||Function("return this")()},8382:function(t,r,e){var n=e(936),o=e(7615),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},2499:function(t){t.exports={}},3455:function(t,r,e){var n=e(5001);t.exports=function(t,r){var e=n.console;e&&e.error&&(1==arguments.length?e.error(t):e.error(t,r))}},2118:function(t,r,e){var n=e(3425);t.exports=n("document","documentElement")},7788:function(t,r,e){var n=e(1502),o=e(5061),i=e(6009);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2901:function(t,r,e){var n=e(936),o=e(5061),i=e(5489),u=Object,c=n("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?c(t,""):u(t)}:u},685:function(t,r,e){var n=e(936),o=e(6291),i=e(9982),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},684:function(t,r,e){var n,o,i,u=e(1899),c=e(5001),a=e(2366),f=e(430),s=e(8382),l=e(9982),p=e(1695),v=e(2499),d="Object already initialized",y=c.TypeError,h=c.WeakMap;if(u||l.state){var b=l.state||(l.state=new h);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,r){if(b.has(t))throw y(d);return r.facade=t,b.set(t,r),r},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var g=p("state");v[g]=!0,n=function(t,r){if(s(t,g))throw y(d);return r.facade=t,f(t,g,r),r},o=function(t){return s(t,g)?t[g]:{}},i=function(t){return s(t,g)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!a(r)||(e=o(r)).type!==t)throw y("Incompatible receiver, "+t+" required");return e}}}},5557:function(t,r,e){var n=e(6802),o=e(501),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},119:function(t,r,e){var n=e(5489);t.exports=Array.isArray||function(t){return"Array"==n(t)}},6291:function(t,r,e){var n=e(5178),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},1814:function(t,r,e){var n=e(936),o=e(5061),i=e(6291),u=e(486),c=e(3425),a=e(685),f=function(){},s=[],l=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=n(p.exec),d=!p.exec(f),y=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}},h=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!v(p,a(t))}catch(t){return!0}};h.sham=!0,t.exports=!l||o((function(){var t;return y(y.call)||!y(Object)||!y((function(){t=!0}))||t}))?h:y},1092:function(t,r,e){var n=e(5061),o=e(6291),i=/#|\.prototype\./,u=function(t,r){var e=a[c(t)];return e==s||e!=f&&(o(r)?n(r):!!r)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},f=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},860:function(t){t.exports=function(t){return null==t}},2366:function(t,r,e){var n=e(6291),o=e(5178),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},13:function(t){t.exports=!1},6448:function(t,r,e){var n=e(3425),o=e(6291),i=e(6282),u=e(7558),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,c(t))}},8971:function(t,r,e){var n=e(9918),o=e(3927),i=e(4905),u=e(7073),c=e(5557),a=e(4821),f=e(6282),s=e(8437),l=e(6354),p=e(9200),v=TypeError,d=function(t,r){this.stopped=t,this.result=r},y=d.prototype;t.exports=function(t,r,e){var h,b,g,m,O,x,w,j=e&&e.that,S=!(!e||!e.AS_ENTRIES),P=!(!e||!e.IS_RECORD),E=!(!e||!e.IS_ITERATOR),T=!(!e||!e.INTERRUPTED),A=n(r,j),F=function(t){return h&&p(h,"normal",t),new d(!0,t)},L=function(t){return S?(i(t),T?A(t[0],t[1],F):A(t[0],t[1])):T?A(t,F):A(t)};if(P)h=t.iterator;else if(E)h=t;else{if(!(b=l(t)))throw v(u(t)+" is not iterable");if(c(b)){for(g=0,m=a(t);m>g;g++)if((O=L(t[g]))&&f(y,O))return O;return new d(!1)}h=s(t,b)}for(x=P?t.next:h.next;!(w=o(x,h)).done;){try{O=L(w.value)}catch(t){p(h,"throw",t)}if("object"==typeof O&&O&&f(y,O))return O}return new d(!1)}},9200:function(t,r,e){var n=e(3927),o=e(4905),i=e(3815);t.exports=function(t,r,e){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===r)throw e;return e}u=n(u,t)}catch(t){c=!0,u=t}if("throw"===r)throw e;if(c)throw u;return o(u),e}},6391:function(t,r,e){"use strict";var n=e(1151).IteratorPrototype,o=e(2275),i=e(6034),u=e(606),c=e(501),a=function(){return this};t.exports=function(t,r,e,f){var s=r+" Iterator";return t.prototype=o(n,{next:i(+!f,e)}),u(t,s,!1,!0),c[s]=a,t}},4966:function(t,r,e){"use strict";var n=e(9638),o=e(3927),i=e(13),u=e(9873),c=e(6291),a=e(6391),f=e(4320),s=e(2848),l=e(606),p=e(430),v=e(5850),d=e(6802),y=e(501),h=e(1151),b=u.PROPER,g=u.CONFIGURABLE,m=h.IteratorPrototype,O=h.BUGGY_SAFARI_ITERATORS,x=d("iterator"),w="keys",j="values",S="entries",P=function(){return this};t.exports=function(t,r,e,u,d,h,E){a(e,r,u);var T,A,F,L=function(t){if(t===d&&D)return D;if(!O&&t in M)return M[t];switch(t){case w:case j:case S:return function(){return new e(this,t)}}return function(){return new e(this)}},I=r+" Iterator",R=!1,M=t.prototype,C=M[x]||M["@@iterator"]||d&&M[d],D=!O&&C||L(d),k="Array"==r&&M.entries||C;if(k&&(T=f(k.call(new t)))!==Object.prototype&&T.next&&(i||f(T)===m||(s?s(T,m):c(T[x])||v(T,x,P)),l(T,I,!0,!0),i&&(y[I]=P)),b&&d==j&&C&&C.name!==j&&(!i&&g?p(M,"name",j):(R=!0,D=function(){return o(C,this)})),d)if(A={values:L(j),keys:h?D:L(w),entries:L(S)},E)for(F in A)(O||R||!(F in M))&&v(M,F,A[F]);else n({target:r,proto:!0,forced:O||R},A);return i&&!E||M[x]===D||v(M,x,D,{name:d}),y[r]=D,A}},1151:function(t,r,e){"use strict";var n,o,i,u=e(5061),c=e(6291),a=e(2366),f=e(2275),s=e(4320),l=e(5850),p=e(6802),v=e(13),d=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(n=o):y=!0),!a(n)||u((function(){var t={};return n[d].call(t)!==t}))?n={}:v&&(n=f(n)),c(n[d])||l(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},501:function(t){t.exports={}},4821:function(t,r,e){var n=e(4479);t.exports=function(t){return n(t.length)}},7192:function(t,r,e){var n=e(5061),o=e(6291),i=e(8382),u=e(1502),c=e(9873).CONFIGURABLE,a=e(685),f=e(684),s=f.enforce,l=f.get,p=Object.defineProperty,v=u&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),d=String(String).split("String"),y=t.exports=function(t,r,e){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!i(t,"name")||c&&t.name!==r)&&(u?p(t,"name",{value:r,configurable:!0}):t.name=r),v&&e&&i(e,"arity")&&t.length!==e.arity&&p(t,"length",{value:e.arity});try{e&&i(e,"constructor")&&e.constructor?u&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=s(t);return i(n,"source")||(n.source=d.join("string"==typeof r?r:"")),t};Function.prototype.toString=y((function(){return o(this)&&l(this).source||a(this)}),"toString")},1367:function(t){var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},3690:function(t,r,e){var n,o,i,u,c,a,f,s,l=e(5001),p=e(9918),v=e(8117).f,d=e(8680).set,y=e(311),h=e(1368),b=e(4832),g=e(566),m=l.MutationObserver||l.WebKitMutationObserver,O=l.document,x=l.process,w=l.Promise,j=v(l,"queueMicrotask"),S=j&&j.value;S||(n=function(){var t,r;for(g&&(t=x.domain)&&t.exit();o;){r=o.fn,o=o.next;try{r()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},y||g||b||!m||!O?!h&&w&&w.resolve?((f=w.resolve(void 0)).constructor=w,s=p(f.then,f),u=function(){s(n)}):g?u=function(){x.nextTick(n)}:(d=p(d,l),u=function(){d(n)}):(c=!0,a=O.createTextNode(""),new m(n).observe(a,{characterData:!0}),u=function(){a.data=c=!c})),t.exports=S||function(t){var r={fn:t,next:void 0};i&&(i.next=r),o||(o=r,u()),i=r}},7714:function(t,r,e){"use strict";var n=e(4933),o=TypeError,i=function(t){var r,e;this.promise=new t((function(t,n){if(void 0!==r||void 0!==e)throw o("Bad Promise constructor");r=t,e=n})),this.resolve=n(r),this.reject=n(e)};t.exports.f=function(t){return new i(t)}},2275:function(t,r,e){var n,o=e(4905),i=e(6191),u=e(2089),c=e(2499),a=e(2118),f=e(6009),s=e(1695),l="prototype",p="script",v=s("IE_PROTO"),d=function(){},y=function(t){return"<"+p+">"+t+"</"+p+">"},h=function(t){t.write(y("")),t.close();var r=t.parentWindow.Object;return t=null,r},b=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;b="undefined"!=typeof document?document.domain&&n?h(n):(r=f("iframe"),e="java"+p+":",r.style.display="none",a.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F):h(n);for(var o=u.length;o--;)delete b[l][u[o]];return b()};c[v]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(d[l]=o(t),e=new d,d[l]=null,e[v]=t):e=b(),void 0===r?e:i.f(e,r)}},6191:function(t,r,e){var n=e(1502),o=e(5780),i=e(6462),u=e(4905),c=e(678),a=e(9749);r.f=n&&!o?Object.defineProperties:function(t,r){u(t);for(var e,n=c(r),o=a(r),f=o.length,s=0;f>s;)i.f(t,e=o[s++],n[e]);return t}},6462:function(t,r,e){var n=e(1502),o=e(7788),i=e(5780),u=e(4905),c=e(1030),a=TypeError,f=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",v="writable";r.f=n?i?function(t,r,e){if(u(t),r=c(r),u(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=s(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:p in e?e[p]:n[p],enumerable:l in e?e[l]:n[l],writable:!1})}return f(t,r,e)}:f:function(t,r,e){if(u(t),r=c(r),u(e),o)try{return f(t,r,e)}catch(t){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},8117:function(t,r,e){var n=e(1502),o=e(3927),i=e(9265),u=e(6034),c=e(678),a=e(1030),f=e(8382),s=e(7788),l=Object.getOwnPropertyDescriptor;r.f=n?l:function(t,r){if(t=c(t),r=a(r),s)try{return l(t,r)}catch(t){}if(f(t,r))return u(!o(i.f,t,r),t[r])}},9219:function(t,r,e){var n=e(3855),o=e(2089).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},2822:function(t,r){r.f=Object.getOwnPropertySymbols},4320:function(t,r,e){var n=e(8382),o=e(6291),i=e(7615),u=e(1695),c=e(149),a=u("IE_PROTO"),f=Object,s=f.prototype;t.exports=c?f.getPrototypeOf:function(t){var r=i(t);if(n(r,a))return r[a];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof f?s:null}},6282:function(t,r,e){var n=e(936);t.exports=n({}.isPrototypeOf)},3855:function(t,r,e){var n=e(936),o=e(8382),i=e(678),u=e(5029).indexOf,c=e(2499),a=n([].push);t.exports=function(t,r){var e,n=i(t),f=0,s=[];for(e in n)!o(c,e)&&o(n,e)&&a(s,e);for(;r.length>f;)o(n,e=r[f++])&&(~u(s,e)||a(s,e));return s}},9749:function(t,r,e){var n=e(3855),o=e(2089);t.exports=Object.keys||function(t){return n(t,o)}},9265:function(t,r){"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},2848:function(t,r,e){var n=e(936),o=e(4905),i=e(9076);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return o(e),i(n),r?t(e,n):e.__proto__=n,e}}():void 0)},379:function(t,r,e){var n=e(3927),o=e(6291),i=e(2366),u=TypeError;t.exports=function(t,r){var e,c;if("string"===r&&o(e=t.toString)&&!i(c=n(e,t)))return c;if(o(e=t.valueOf)&&!i(c=n(e,t)))return c;if("string"!==r&&o(e=t.toString)&&!i(c=n(e,t)))return c;throw u("Can't convert object to primitive value")}},2466:function(t,r,e){var n=e(3425),o=e(936),i=e(9219),u=e(2822),c=e(4905),a=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(c(t)),e=u.f;return e?a(r,e(t)):r}},7040:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},8410:function(t,r,e){var n=e(5001),o=e(7883),i=e(6291),u=e(1092),c=e(685),a=e(6802),f=e(6837),s=e(5065),l=e(13),p=e(2821),v=o&&o.prototype,d=a("species"),y=!1,h=i(n.PromiseRejectionEvent),b=u("Promise",(function(){var t=c(o),r=t!==String(o);if(!r&&66===p)return!0;if(l&&(!v.catch||!v.finally))return!0;if(!p||p<51||!/native code/.test(t)){var e=new o((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((e.constructor={})[d]=n,!(y=e.then((function(){}))instanceof n))return!0}return!r&&(f||s)&&!h}));t.exports={CONSTRUCTOR:b,REJECTION_EVENT:h,SUBCLASSING:y}},7883:function(t,r,e){var n=e(5001);t.exports=n.Promise},7504:function(t,r,e){var n=e(4905),o=e(2366),i=e(7714);t.exports=function(t,r){if(n(t),o(r)&&r.constructor===t)return r;var e=i.f(t);return(0,e.resolve)(r),e.promise}},3653:function(t,r,e){var n=e(7883),o=e(3165),i=e(8410).CONSTRUCTOR;t.exports=i||!o((function(t){n.all(t).then(void 0,(function(){}))}))},8791:function(t){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(t){var r={item:t,next:null};this.head?this.tail.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=r},4475:function(t,r,e){var n=e(860),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},3126:function(t,r,e){"use strict";var n=e(3425),o=e(6462),i=e(6802),u=e(1502),c=i("species");t.exports=function(t){var r=n(t),e=o.f;u&&r&&!r[c]&&e(r,c,{configurable:!0,get:function(){return this}})}},606:function(t,r,e){var n=e(6462).f,o=e(8382),i=e(6802)("toStringTag");t.exports=function(t,r,e){t&&!e&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:r})}},1695:function(t,r,e){var n=e(6809),o=e(1050),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},9982:function(t,r,e){var n=e(5001),o=e(1756),i="__core-js_shared__",u=n[i]||o(i,{});t.exports=u},6809:function(t,r,e){var n=e(13),o=e(9982);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.26.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},3571:function(t,r,e){var n=e(4905),o=e(8209),i=e(860),u=e(6802)("species");t.exports=function(t,r){var e,c=n(t).constructor;return void 0===c||i(e=n(c)[u])?r:o(e)}},5947:function(t,r,e){var n=e(2821),o=e(5061);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8680:function(t,r,e){var n,o,i,u,c=e(5001),a=e(5494),f=e(9918),s=e(6291),l=e(8382),p=e(5061),v=e(2118),d=e(650),y=e(6009),h=e(7427),b=e(311),g=e(566),m=c.setImmediate,O=c.clearImmediate,x=c.process,w=c.Dispatch,j=c.Function,S=c.MessageChannel,P=c.String,E=0,T={},A="onreadystatechange";try{n=c.location}catch(t){}var F=function(t){if(l(T,t)){var r=T[t];delete T[t],r()}},L=function(t){return function(){F(t)}},I=function(t){F(t.data)},R=function(t){c.postMessage(P(t),n.protocol+"//"+n.host)};m&&O||(m=function(t){h(arguments.length,1);var r=s(t)?t:j(t),e=d(arguments,1);return T[++E]=function(){a(r,void 0,e)},o(E),E},O=function(t){delete T[t]},g?o=function(t){x.nextTick(L(t))}:w&&w.now?o=function(t){w.now(L(t))}:S&&!b?(u=(i=new S).port2,i.port1.onmessage=I,o=f(u.postMessage,u)):c.addEventListener&&s(c.postMessage)&&!c.importScripts&&n&&"file:"!==n.protocol&&!p(R)?(o=R,c.addEventListener("message",I,!1)):o=A in y("script")?function(t){v.appendChild(y("script"))[A]=function(){v.removeChild(this),F(t)}}:function(t){setTimeout(L(t),0)}),t.exports={set:m,clear:O}},6971:function(t,r,e){var n=e(9398),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},678:function(t,r,e){var n=e(2901),o=e(4475);t.exports=function(t){return n(o(t))}},9398:function(t,r,e){var n=e(1367);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},4479:function(t,r,e){var n=e(9398),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},7615:function(t,r,e){var n=e(4475),o=Object;t.exports=function(t){return o(n(t))}},6973:function(t,r,e){var n=e(3927),o=e(2366),i=e(6448),u=e(3815),c=e(379),a=e(6802),f=TypeError,s=a("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,a=u(t,s);if(a){if(void 0===r&&(r="default"),e=n(a,t,r),!o(e)||i(e))return e;throw f("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(t,r)}},1030:function(t,r,e){var n=e(6973),o=e(6448);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},8171:function(t,r,e){var n={};n[e(6802)("toStringTag")]="z",t.exports="[object z]"===String(n)},7073:function(t){var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},1050:function(t,r,e){var n=e(936),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},7558:function(t,r,e){var n=e(5947);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5780:function(t,r,e){var n=e(1502),o=e(5061);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7427:function(t){var r=TypeError;t.exports=function(t,e){if(t<e)throw r("Not enough arguments");return t}},1899:function(t,r,e){var n=e(5001),o=e(6291),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},6802:function(t,r,e){var n=e(5001),o=e(6809),i=e(8382),u=e(1050),c=e(5947),a=e(7558),f=o("wks"),s=n.Symbol,l=s&&s.for,p=a?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(f,t)||!c&&"string"!=typeof f[t]){var r="Symbol."+t;c&&i(s,t)?f[t]=s[t]:f[t]=a&&l?l(r):p(r)}return f[t]}},8868:function(t,r,e){"use strict";var n=e(678),o=e(5822),i=e(501),u=e(684),c=e(6462).f,a=e(4966),f=e(4562),s=e(13),l=e(1502),p="Array Iterator",v=u.set,d=u.getterFor(p);t.exports=a(Array,"Array",(function(t,r){v(this,{type:p,target:n(t),index:0,kind:r})}),(function(){var t=d(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,f(void 0,!0)):f("keys"==e?n:"values"==e?r[n]:[n,r[n]],!1)}),"values");var y=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!s&&l&&"values"!==y.name)try{c(y,"name",{value:"values"})}catch(t){}},2937:function(t,r,e){"use strict";var n=e(9638),o=e(2040).left,i=e(9020),u=e(2821),c=e(566);n({target:"Array",proto:!0,forced:!i("reduce")||!c&&u>79&&u<83},{reduce:function(t){var r=arguments.length;return o(this,t,r,r>1?arguments[1]:void 0)}})},8547:function(t,r,e){"use strict";var n=e(9638),o=e(936),i=e(119),u=o([].reverse),c=[1,2];n({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),u(this)}})},5370:function(t,r,e){"use strict";var n=e(9638),o=e(3927),i=e(4933),u=e(7714),c=e(7040),a=e(8971);n({target:"Promise",stat:!0,forced:e(3653)},{all:function(t){var r=this,e=u.f(r),n=e.resolve,f=e.reject,s=c((function(){var e=i(r.resolve),u=[],c=0,s=1;a(t,(function(t){var i=c++,a=!1;s++,o(e,r,t).then((function(t){a||(a=!0,u[i]=t,--s||n(u))}),f)})),--s||n(u)}));return s.error&&f(s.value),e.promise}})},4139:function(t,r,e){"use strict";var n=e(9638),o=e(13),i=e(8410).CONSTRUCTOR,u=e(7883),c=e(3425),a=e(6291),f=e(5850),s=u&&u.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&a(u)){var l=c("Promise").prototype.catch;s.catch!==l&&f(s,"catch",l,{unsafe:!0})}},9688:function(t,r,e){"use strict";var n,o,i,u=e(9638),c=e(13),a=e(566),f=e(5001),s=e(3927),l=e(5850),p=e(2848),v=e(606),d=e(3126),y=e(4933),h=e(6291),b=e(2366),g=e(2814),m=e(3571),O=e(8680).set,x=e(3690),w=e(3455),j=e(7040),S=e(8791),P=e(684),E=e(7883),T=e(8410),A=e(7714),F="Promise",L=T.CONSTRUCTOR,I=T.REJECTION_EVENT,R=T.SUBCLASSING,M=P.getterFor(F),C=P.set,D=E&&E.prototype,k=E,_=D,N=f.TypeError,K=f.document,G=f.process,U=A.f,q=U,z=!!(K&&K.createEvent&&f.dispatchEvent),V="unhandledrejection",B=function(t){var r;return!(!b(t)||!h(r=t.then))&&r},H=function(t,r){var e,n,o,i=r.value,u=1==r.state,c=u?t.ok:t.fail,a=t.resolve,f=t.reject,l=t.domain;try{c?(u||(2===r.rejection&&X(r),r.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(N("Promise-chain cycle")):(n=B(e))?s(n,e,a,f):a(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},W=function(t,r){t.notified||(t.notified=!0,x((function(){for(var e,n=t.reactions;e=n.get();)H(e,t);t.notified=!1,r&&!t.rejection&&Y(t)})))},J=function(t,r,e){var n,o;z?((n=K.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),f.dispatchEvent(n)):n={promise:r,reason:e},!I&&(o=f["on"+t])?o(n):t===V&&w("Unhandled promise rejection",e)},Y=function(t){s(O,f,(function(){var r,e=t.facade,n=t.value;if(Q(t)&&(r=j((function(){a?G.emit("unhandledRejection",n,e):J(V,e,n)})),t.rejection=a||Q(t)?2:1,r.error))throw r.value}))},Q=function(t){return 1!==t.rejection&&!t.parent},X=function(t){s(O,f,(function(){var r=t.facade;a?G.emit("rejectionHandled",r):J("rejectionhandled",r,t.value)}))},$=function(t,r,e){return function(n){t(r,n,e)}},Z=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=2,W(t,!0))},tt=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw N("Promise can't be resolved itself");var n=B(r);n?x((function(){var e={done:!1};try{s(n,r,$(tt,e,t),$(Z,e,t))}catch(r){Z(e,r,t)}})):(t.value=r,t.state=1,W(t,!1))}catch(r){Z({done:!1},r,t)}}};if(L&&(_=(k=function(t){g(this,_),y(t),s(n,this);var r=M(this);try{t($(tt,r),$(Z,r))}catch(t){Z(r,t)}}).prototype,(n=function(t){C(this,{type:F,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=l(_,"then",(function(t,r){var e=M(this),n=U(m(this,k));return e.parent=!0,n.ok=!h(t)||t,n.fail=h(r)&&r,n.domain=a?G.domain:void 0,0==e.state?e.reactions.add(n):x((function(){H(n,e)})),n.promise})),o=function(){var t=new n,r=M(t);this.promise=t,this.resolve=$(tt,r),this.reject=$(Z,r)},A.f=U=function(t){return t===k||undefined===t?new o(t):q(t)},!c&&h(E)&&D!==Object.prototype)){i=D.then,R||l(D,"then",(function(t,r){var e=this;return new k((function(t,r){s(i,e,t,r)})).then(t,r)}),{unsafe:!0});try{delete D.constructor}catch(t){}p&&p(D,_)}u({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:k}),v(k,F,!1,!0),d(F)},3045:function(t,r,e){e(9688),e(5370),e(4139),e(7508),e(5858),e(1856)},7508:function(t,r,e){"use strict";var n=e(9638),o=e(3927),i=e(4933),u=e(7714),c=e(7040),a=e(8971);n({target:"Promise",stat:!0,forced:e(3653)},{race:function(t){var r=this,e=u.f(r),n=e.reject,f=c((function(){var u=i(r.resolve);a(t,(function(t){o(u,r,t).then(e.resolve,n)}))}));return f.error&&n(f.value),e.promise}})},5858:function(t,r,e){"use strict";var n=e(9638),o=e(3927),i=e(7714);n({target:"Promise",stat:!0,forced:e(8410).CONSTRUCTOR},{reject:function(t){var r=i.f(this);return o(r.reject,void 0,t),r.promise}})},1856:function(t,r,e){"use strict";var n=e(9638),o=e(3425),i=e(13),u=e(7883),c=e(8410).CONSTRUCTOR,a=e(7504),f=o("Promise"),s=i&&!c;n({target:"Promise",stat:!0,forced:i||c},{resolve:function(t){return a(s&&this===f?u:this,t)}})},4861:function(t,r,e){var n=e(5001),o=e(8514),i=e(7234),u=e(8868),c=e(430),a=e(6802),f=a("iterator"),s=a("toStringTag"),l=u.values,p=function(t,r){if(t){if(t[f]!==l)try{c(t,f,l)}catch(r){t[f]=l}if(t[s]||c(t,s,r),o[r])for(var e in u)if(t[e]!==u[e])try{c(t,e,u[e])}catch(r){t[e]=u[e]}}};for(var v in o)p(n[v]&&n[v].prototype,v);p(i,"DOMTokenList")},309:function(t){"use strict";t.exports=e},2719:function(t){"use strict";t.exports=r},8156:function(r){"use strict";r.exports=t}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var e=o[t]={exports:{}};return n[t](e,e.exports,i),e.exports}i.d=function(t,r){for(var e in r)i.o(r,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var u={};return function(){"use strict";function t(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function r(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function e(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function n(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i=[],u=!0,c=!1;try{for(e=e.call(t);!(u=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);u=!0);}catch(t){c=!0,o=t}finally{try{u||null==e.return||e.return()}finally{if(c)throw o}}return i}}(t,r)||e(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i.r(u),i.d(u,{ConfigProvider:function(){return j},GlobalSessionProvider:function(){return w},SessionProvider:function(){return B},Strategy:function(){return C},createSessionKey:function(){return g},provide:function(){return W},useIsFetching:function(){return U},useLazyComponent:function(){return q},useLoadedSession:function(){return z},useMutation:function(){return K},useQuery:function(){return N},useResponse:function(){return V},useSession:function(){return G},withSessionProvider:function(){return H}});i(3045),i(8868),i(4861);var c=i(8156),a=i(2719),f=i(309);function s(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}var l=["version"];function p(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function v(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function d(t){var r=t.version,e=s(t,l),n=function(t){return v(v({},t),{},{version:r})};return{state:e,version:r||0,setState:function(r){return n("function"!=typeof r?r:r(t))},setFetchingKey:function(r){return n(v(v({},t),{},{fetchingKey:r,finalFetchingKey:null!=r?r:t.finalFetchingKey}))},removeFetchingKey:function(r){return t.fetchingKey!==r?t:n(v(v({},t),{},{fetchingKey:void 0}))},trigger:function(){return v(v({},t),{},{version:(r||0)+1})}}}var y=function(t){return v({data:void 0,variables:void 0,isError:!1,isFetching:!1,abandon:!1,triggerType:void 0,loaded:!1,sessionLoaded:!1},t)};function h(t,r,e){if(!("function"==typeof t.pipe))return[d,t,e,!1];var n=o(t.effect,2),i=n[0],u=n[1].sessionType;if(null!=u&&u!==r)throw new Error("The sessionType is not matched, can not use '".concat(u," type' sessionKey with '").concat("query"===r?"useQuery":"useMutation","'"));return[t,i,e,!0]}function b(t,r){return o(h(t,"query",Array.isArray(r)?{variables:r}:r),3)[2]||{}}function g(t,r){var e={implemented:!1},n=(0,a.createKey)(d,y());return n.effect=[function(){return t.apply(void 0,arguments)},r?{sessionType:r}:{}],n.implement=function(t){e.implemented||(n.effect[0]=t,e.implemented=!0)},n}var m=[],O=(0,a.createKey)((function(t){return{isFetching:t.length>0,setGlobalFetchingKey:function(r){return t.some((function(t){return t===r}))?t:t.concat(r)},removeGlobalFetchingKey:function(r){return t.some((function(t){return t===r}))?t.filter((function(t){return t!==r})):t}}}),m),x=(0,c.createContext)(null);function w(t){var r=t.config,e=t.keys,n=t.children,o=(0,a.useIsModelMatchedInStore)(O),i=(0,c.useMemo)((function(){return[o?void 0:O,e].filter((function(t){return!!t}))}),[o,e]);return i.length?(0,c.createElement)(a.StoreProvider,{keys:i},(0,c.createElement)(x.Provider,{value:r||null},n)):(0,c.createElement)(x.Provider,{value:r||null},n)}function j(t){var r=t.value,e=t.children,n=(0,c.useMemo)((function(){return r.useGlobalFetching?O:void 0}),[]);return(0,c.createElement)(x.Provider,{value:r},n?(0,c.createElement)(a.StoreProvider,{value:n},e):e)}function S(){return(0,c.useContext)(x)}i(2937),i(8547);function P(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function E(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function T(t){return Array.isArray(t)?t:[t]}function A(t,r,e){var i=T(e),u=(0,c.useRef)(i.map((function(){return{current:void 0}})));return[function(e,c){var a,f,s=c||[],l={current:function(){return t.state},variables:s,runner:function(){var n=t.state;return(0,t.setState)(E(E({},n),{},{isFetching:!0,triggerType:e})),r(e,s)},store:u,runtimeCache:(a=[],f=function(t){var r=a.find((function(r){return o(r,1)[0]===t}));if(Array.isArray(r))return r},{set:function(t,r){var e=f(t);e?e[1]=r:a.push([t,r])},get:function(t){var r=f(t);if(r)return r[1]}})};return function(t){var r=function(t){return t.runner()};return function(e){var o=e.store.current;return n(t).reverse().reduce((function(t,r,e){var n=o[e]||{current:void 0};return function(e){return null==r?t(e):r(E(E({},e),{},{store:n,runner:function(){return t(e)}}))}}),r)(e).then((function(t){var r=e.current(),n=r.loaded,o=r.sessionLoaded,i=t.abandon,u=t.isError,c=t.isFetching,a=n||!i&&!u&&!c,f=o||!i&&!u&&!c;return E(E({},t),{},{loaded:a,sessionLoaded:f})}))}}(i)(l).then((function(r){return r.abandon||t.setState(r),r}))},i.map((function(t){if(t)return t.effect})).filter((function(t){return!!t}))]}function F(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function L(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}var I=function(t,r){return!!Object.is(t,r)||null!=t&&null!=r&&JSON.stringify(t)===JSON.stringify(r)};function R(t,r){var e=(r||{}).withAbandoned;return function(r){var n=r.runner,o=r.runtimeCache,i=r.store,u=o.get(R);return o.set(R,!0),i.current=t,n().then((function(t){var r=i.current;return!t.isError||u||!r||t.abandon&&!e||r(t.error,t),t}))}}function M(t){var r=function(t){return(0,t.runner)()};return r.effect=t,r}M.success=function(t){var r=function(t){return(0,t.runner)()};return r.effect=function(r){r.isError||r.isFetching||!r.sessionLoaded||t(r.data,r)},r},M.error=function(t){var r=function(t){var r=t.runner;return t.runtimeCache.set(R,!0),r()};return r.effect=function(r){r.isError&&!r.isFetching&&t(r.error,r)},r};var C={debounce:function(t){var r="number"==typeof t?t:t.duration;return function(t){var e=t.current,n=t.runner,o=t.store;if(o.current){var i=o.current,u=i.id,c=i.resolve;return clearTimeout(u),o.current.id=setTimeout((function(){o.current=void 0,c(n())}),r),o.current.promise}var a=new Promise((function(t){t(L(L({},e()),{},{abandon:!0}))})),f={id:null,resolve:function(){},promise:a},s=new Promise((function(t){f.id=setTimeout((function(){o.current=void 0,t(n())}),r),f.resolve=t}));return f.promise=s,o.current=f,s}},throttle:function(t){var r="number"==typeof t?t:t.duration;return function(t){var e=t.current,n=t.runner,o=t.store,i=t.variables,u=void 0===i?[]:i;o.current=o.current||{timeoutId:null,variables:void 0};var c=o.current.variables,a=o.current.timeoutId;return function(t,r){return null==t||!I(t,r)}(c,u)||null==a?(o.current.variables=u,null!=a&&clearTimeout(a),o.current.timeoutId=setTimeout((function(){o.current=o.current||{},o.current.timeoutId=null}),r),n()):new Promise((function(t){t(e())}))}},once:function(){return function(t){var r=t.runner,e=t.store;return e.current?e.current.then((function(t){return L(L({},t),{},{abandon:!0})})):(e.current=r().then((function(t){return t.isError&&(e.current=void 0),t})),e.current)}},error:R,success:function(t,r){var e=(r||{}).withAbandoned;return function(r){var n=r.runner,o=r.store;return o.current=t,n().then((function(t){var r=o.current;return t.isError||!r||t.abandon&&!e||r(t.data,t),t}))}},validate:function(t){return function(r){var e=r.runner,n=r.current;if(!t()){var o=n();return new Promise((function(t){t(L(L({},o),{},{abandon:!0}))}))}return e()}},memo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;return function(r){var e=r.runner,n=r.current;return e().then((function(r){var e=n();return("function"==typeof t?t(e.data,r.data):e.data===r.data)?L(L({},r),{},{data:e.data}):r}))}},reduce:function(t){return function(r){var e=r.runner,n=r.current;return e().then((function(r){if(r.isError||r.abandon)return r;var e=n(),o=t(e.data,r.data,[e,r]);return L(L({},r),{},{data:o})}))}},effect:M};function D(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function k(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function _(t,r){var e=function(t,r){var e=o(h(t,"query",Array.isArray(r)?{variables:r}:r),4),i=e[0],u=e[1],c=e[2],f=e[3],s=c||{},l=s.defaultData,p=s.loaded,v=Object.prototype.hasOwnProperty.call(s,"defaultData"),d=f?v?[i,y({data:l,loaded:!0})]:[i]:[i,y(v?{data:l,loaded:!0}:void 0)],b=a.useModel.apply(void 0,n(d));if(p&&!b.state.loaded)throw new Error('This session is not loaded, you should remove "config.loaded" option.');return[b,s,u]}(t,r),i=o(e,3),u=i[0],s=i[1],l=i[2],p=s.variables,v=s.deps,d=s.triggerOn,b=void 0===d?["mount","update","manual"]:d,g=s.strategy,x=(0,a.useRealtimeInstance)(u),w=(0,a.useModel)(O,m,{autoLink:!0}),j=w.setGlobalFetchingKey,S=w.removeGlobalFetchingKey,P=(0,c.useRef)({});var E=A(x,(function(t,r){var e=function(t){return function(r){var e=t(r);if(!e||"function"!=typeof e.then)throw new Error("The callback have to return a promise object.");return e.then((function(t){return{data:t,variables:r,error:void 0,isError:!1}}),(function(t){return{variables:r,error:t,isError:!0}}))}}((function(t){return l.apply(void 0,n(t))}));return e(r).then((function(r){var e=null!=x.state.finalFetchingKey&&P.current!==x.state.finalFetchingKey;return k(k(k({},x.state),r),{},{abandon:e,isFetching:!1,triggerType:t})}))}),g),T=o(E,2),F=T[0],L=T[1],I=function(t,r){var e=x.state.fetchingKey;return b.indexOf(t)<0||e&&e!==P.current?new Promise((function(t){t(k(k({},x.state),{},{abandon:!0}))})):(x.setFetchingKey(P.current),Promise.resolve(void 0).then((function(){x.removeFetchingKey(P.current)})),F(t,r||p))},R=(0,f.usePersistFn)((function(){return I("manual")})),M=(0,f.usePersistFn)((function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return I("manual",r)})),C=v||p||[];(0,f.useMount)((function(){I("mount")})),(0,f.useUpdate)((function(){I("update")}),C);var D=(0,c.useRef)(u.version);return(0,c.useEffect)((function(){if(D.current!==u.version){D.current=u.version;var t=x.state.fetchingKey;t&&t!==P.current||R()}}),[u.version]),(0,c.useEffect)((function(){u.state.isFetching?j(P.current):S(P.current)}),[u.state.isFetching]),(0,f.useUnmount)((function(){S(P.current),x.removeFetchingKey(P.current)})),(0,c.useEffect)((function(){L.forEach((function(t){t(u.state)}))}),[u.state]),[(0,c.useMemo)((function(){return k(k({},u.state),{},{uniqueKey:P.current})}),[u.state]),R,M]}function N(t,r){var e=b(t,r),n=e.variables,o=e.deps,i=e.manual,u=e.triggerOn,c=void 0===u?["mount","update","manual"]:u,a=e.strategy,f=!o&&!n||i?["manual"]:c,s=(S()||{}).strategy,l=T(a),p=s?s(l,"query"):l;return _(t,k(k({},e),{},{triggerOn:f,strategy:[function(t){var r=t.runner,e=t.store;e.current=e.current||0;var n=e.current+1;return e.current=n,r().then((function(t){return e.current!==n?E(E({},t),{},{abandon:!0}):t}))}].concat(p)}))}function K(t,r){var e=b(t,r),n=e.triggerOn,o=void 0===n?["manual"]:n,i=e.strategy,u=(S()||{}).strategy,c=T(i),a=u?u(c,"mutation"):c;return _(t,k(k({},e),{},{triggerOn:o,strategy:[function(t){var r=t.runner,e=t.store;if(e.current)return e.current.then((function(t){return E(E({},t),{},{abandon:!0})}));var n=r();return e.current=n.then((function(t){return e.current=void 0,t})),n}].concat(a)}))}function G(t,r){var e=o(t.effect,2)[1].sessionType,n=(0,a.useSelector)(t,(function(t){return[t.state,t.trigger]})),i="string"==typeof r?{sessionType:r,loaded:void 0}:r||{},u=i.loaded,c=i.sessionType,f=o(n,1)[0].loaded;if(c&&e&&c!==e)throw new Error("The sessionType is not matched, can not use '".concat(e," type' sessionKey with '").concat(c," type' useSession."));if(u&&!f)throw new Error("The session is not loaded yet, check config, and set {loaded: undefined}.");return n}function U(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];var n=(0,c.useMemo)((function(){return r.map((function(t){return Array.isArray(t)?o(t,1)[0]:t})).some((function(t){return t.isFetching}))}),r),i=(0,a.useIsModelMatchedInStore)(O),u=(0,a.useModel)(O,m,{autoLink:!0}).isFetching;if(!i&&!r.length)throw new Error("You should provide a `GlobalRefreshProvider` to support a global `isFetching` detect.");return i&&!r.length?u:n}function q(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),i=1;i<r;i++)e[i-1]=arguments[i];var u=(0,c.useMemo)((function(){return e.map((function(t){var r={loaded:!1};return r.promise=new Promise((function(t,e){r.resolve=t,r.reject=e})),r}))}),[]),a=(0,c.useRef)(u);function f(t){return t.default?t:{default:t}}return(0,c.useEffect)((function(){var t=a.current;e.forEach((function(r,e){var n=Array.isArray(r)?r[0]:r,o=t[e];if(n.isError&&!o.loaded)return o.loaded=!0,void o.reject(n);n.sessionLoaded&&!o.loaded&&(o.loaded=!0,o.resolve(!0))}))}),[].concat(e)),(0,c.useMemo)((function(){var r=a.current.map((function(t){return t.promise}));return(0,c.lazy)((function(){var e=t();return Promise.all([e].concat(n(r))).then((function(t){return f(o(t,1)[0])}),(function(t){return e.then((function(r){var e=function(t){var r=t;return r.default&&"function"==typeof r.default?r.default:t}(r),n=function(t,r){return function(e){return(0,c.createElement)(t,k(k({},e),{},{error:r}))}}(e,t);return f(n)}))}))}))}),[])}function z(t,r){return G(t,"string"==typeof r?{sessionType:r,loaded:!0}:k(k({},r),{},{loaded:!0}))}function V(t,r){(0,c.useEffect)((function(){var e=!r.isFetching&&r.isError,n=!r.isFetching&&r.sessionLoaded&&!r.isError;(e||n)&&t(r)}),[r])}V.success=function(t,r){(0,c.useEffect)((function(){!r.isFetching&&r.sessionLoaded&&!r.isError&&t(r.data,r)}),[r])},V.error=function(t,r){(0,c.useEffect)((function(){!r.isFetching&&r.isError&&t(r.error,r)}),[r])};var B=a.StoreProvider,H=a.provide,W=a.provide}(),u}()})); | ||
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@airma/react-state"),require("@airma/react-hooks-core")):"function"==typeof define&&define.amd?define(["react","@airma/react-state","@airma/react-hooks-core"],r):"object"==typeof exports?exports["@airma/react-effect"]=r(require("react"),require("@airma/react-state"),require("@airma/react-hooks-core")):t["@airma/react-effect"]=r(t.react,t["@airma/react-state"],t["@airma/react-hooks-core"])}(self,(function(t,r,e){return function(){var n={4933:function(t,r,e){var n=e(6291),o=e(7073),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},8209:function(t,r,e){var n=e(1814),o=e(7073),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a constructor")}},9076:function(t,r,e){var n=e(6291),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},5822:function(t,r,e){var n=e(6802),o=e(2275),i=e(6462).f,u=n("unscopables"),c=Array.prototype;null==c[u]&&i(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},2814:function(t,r,e){var n=e(6282),o=TypeError;t.exports=function(t,r){if(n(r,t))return t;throw o("Incorrect invocation")}},4905:function(t,r,e){var n=e(2366),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},5029:function(t,r,e){var n=e(678),o=e(6971),i=e(4821),u=function(t){return function(r,e,u){var c,a=n(r),f=i(a),s=o(u,f);if(t&&e!=e){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},9020:function(t,r,e){"use strict";var n=e(5061);t.exports=function(t,r){var e=[][t];return!!e&&n((function(){e.call(null,r||function(){return 1},1)}))}},2040:function(t,r,e){var n=e(4933),o=e(7615),i=e(2901),u=e(4821),c=TypeError,a=function(t){return function(r,e,a,f){n(e);var s=o(r),l=i(s),p=u(s),v=t?p-1:0,d=t?-1:1;if(a<2)for(;;){if(v in l){f=l[v],v+=d;break}if(v+=d,t?v<0:p<=v)throw c("Reduce of empty array with no initial value")}for(;t?v>=0:p>v;v+=d)v in l&&(f=e(f,l[v],v,s));return f}};t.exports={left:a(!1),right:a(!0)}},650:function(t,r,e){var n=e(936);t.exports=n([].slice)},3165:function(t,r,e){var n=e(6802)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var e=!1;try{var i={};i[n]=function(){return{next:function(){return{done:e=!0}}}},t(i)}catch(t){}return e}},5489:function(t,r,e){var n=e(936),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},486:function(t,r,e){var n=e(8171),o=e(6291),i=e(5489),u=e(6802)("toStringTag"),c=Object,a="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=c(t),u))?e:a?i(r):"Object"==(n=i(r))&&o(r.callee)?"Arguments":n}},6810:function(t,r,e){var n=e(8382),o=e(2466),i=e(8117),u=e(6462);t.exports=function(t,r,e){for(var c=o(r),a=u.f,f=i.f,s=0;s<c.length;s++){var l=c[s];n(t,l)||e&&n(e,l)||a(t,l,f(r,l))}}},149:function(t,r,e){var n=e(5061);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4562:function(t){t.exports=function(t,r){return{value:t,done:r}}},430:function(t,r,e){var n=e(1502),o=e(6462),i=e(6034);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},6034:function(t){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},5850:function(t,r,e){var n=e(6291),o=e(6462),i=e(7192),u=e(1756);t.exports=function(t,r,e,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:r;if(n(e)&&i(e,f,c),c.global)a?t[r]=e:u(r,e);else{try{c.unsafe?t[r]&&(a=!0):delete t[r]}catch(t){}a?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},1756:function(t,r,e){var n=e(5001),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},1502:function(t,r,e){var n=e(5061);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5178:function(t){var r="object"==typeof document&&document.all,e=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:e}},6009:function(t,r,e){var n=e(5001),o=e(2366),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},8514:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7234:function(t,r,e){var n=e(6009)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},6837:function(t,r,e){var n=e(5065),o=e(566);t.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},5065:function(t){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},1368:function(t,r,e){var n=e(9966),o=e(5001);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==o.Pebble},311:function(t,r,e){var n=e(9966);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},566:function(t,r,e){var n=e(5489),o=e(5001);t.exports="process"==n(o.process)},4832:function(t,r,e){var n=e(9966);t.exports=/web0s(?!.*chrome)/i.test(n)},9966:function(t,r,e){var n=e(3425);t.exports=n("navigator","userAgent")||""},2821:function(t,r,e){var n,o,i=e(5001),u=e(9966),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,s=f&&f.v8;s&&(o=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},2089:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9638:function(t,r,e){var n=e(5001),o=e(8117).f,i=e(430),u=e(5850),c=e(1756),a=e(6810),f=e(1092);t.exports=function(t,r){var e,s,l,p,v,d=t.target,y=t.global,h=t.stat;if(e=y?n:h?n[d]||c(d,{}):(n[d]||{}).prototype)for(s in r){if(p=r[s],l=t.dontCallGetSet?(v=o(e,s))&&v.value:e[s],!f(y?s:d+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(e,s,p,t)}}},5061:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},5494:function(t,r,e){var n=e(8483),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?u.bind(i):function(){return u.apply(i,arguments)})},9918:function(t,r,e){var n=e(1017),o=e(4933),i=e(8483),u=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments)}}},8483:function(t,r,e){var n=e(5061);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},3927:function(t,r,e){var n=e(8483),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9873:function(t,r,e){var n=e(1502),o=e(8382),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,f=c&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:f}},1017:function(t,r,e){var n=e(5489),o=e(936);t.exports=function(t){if("Function"===n(t))return o(t)}},936:function(t,r,e){var n=e(8483),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},3425:function(t,r,e){var n=e(5001),o=e(6291);t.exports=function(t,r){return arguments.length<2?(e=n[t],o(e)?e:void 0):n[t]&&n[t][r];var e}},6354:function(t,r,e){var n=e(486),o=e(3815),i=e(860),u=e(501),c=e(6802)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||u[n(t)]}},8437:function(t,r,e){var n=e(3927),o=e(4933),i=e(4905),u=e(7073),c=e(6354),a=TypeError;t.exports=function(t,r){var e=arguments.length<2?c(t):r;if(o(e))return i(n(e,t));throw a(u(t)+" is not iterable")}},3815:function(t,r,e){var n=e(4933),o=e(860);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},5001:function(t,r,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||function(){return this}()||Function("return this")()},8382:function(t,r,e){var n=e(936),o=e(7615),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},2499:function(t){t.exports={}},3455:function(t,r,e){var n=e(5001);t.exports=function(t,r){var e=n.console;e&&e.error&&(1==arguments.length?e.error(t):e.error(t,r))}},2118:function(t,r,e){var n=e(3425);t.exports=n("document","documentElement")},7788:function(t,r,e){var n=e(1502),o=e(5061),i=e(6009);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2901:function(t,r,e){var n=e(936),o=e(5061),i=e(5489),u=Object,c=n("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?c(t,""):u(t)}:u},685:function(t,r,e){var n=e(936),o=e(6291),i=e(9982),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},684:function(t,r,e){var n,o,i,u=e(1899),c=e(5001),a=e(2366),f=e(430),s=e(8382),l=e(9982),p=e(1695),v=e(2499),d="Object already initialized",y=c.TypeError,h=c.WeakMap;if(u||l.state){var b=l.state||(l.state=new h);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,r){if(b.has(t))throw y(d);return r.facade=t,b.set(t,r),r},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var g=p("state");v[g]=!0,n=function(t,r){if(s(t,g))throw y(d);return r.facade=t,f(t,g,r),r},o=function(t){return s(t,g)?t[g]:{}},i=function(t){return s(t,g)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!a(r)||(e=o(r)).type!==t)throw y("Incompatible receiver, "+t+" required");return e}}}},5557:function(t,r,e){var n=e(6802),o=e(501),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},119:function(t,r,e){var n=e(5489);t.exports=Array.isArray||function(t){return"Array"==n(t)}},6291:function(t,r,e){var n=e(5178),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},1814:function(t,r,e){var n=e(936),o=e(5061),i=e(6291),u=e(486),c=e(3425),a=e(685),f=function(){},s=[],l=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=n(p.exec),d=!p.exec(f),y=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}},h=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!v(p,a(t))}catch(t){return!0}};h.sham=!0,t.exports=!l||o((function(){var t;return y(y.call)||!y(Object)||!y((function(){t=!0}))||t}))?h:y},1092:function(t,r,e){var n=e(5061),o=e(6291),i=/#|\.prototype\./,u=function(t,r){var e=a[c(t)];return e==s||e!=f&&(o(r)?n(r):!!r)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},f=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},860:function(t){t.exports=function(t){return null==t}},2366:function(t,r,e){var n=e(6291),o=e(5178),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},13:function(t){t.exports=!1},6448:function(t,r,e){var n=e(3425),o=e(6291),i=e(6282),u=e(7558),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,c(t))}},8971:function(t,r,e){var n=e(9918),o=e(3927),i=e(4905),u=e(7073),c=e(5557),a=e(4821),f=e(6282),s=e(8437),l=e(6354),p=e(9200),v=TypeError,d=function(t,r){this.stopped=t,this.result=r},y=d.prototype;t.exports=function(t,r,e){var h,b,g,m,O,x,w,j=e&&e.that,S=!(!e||!e.AS_ENTRIES),P=!(!e||!e.IS_RECORD),E=!(!e||!e.IS_ITERATOR),T=!(!e||!e.INTERRUPTED),A=n(r,j),F=function(t){return h&&p(h,"normal",t),new d(!0,t)},L=function(t){return S?(i(t),T?A(t[0],t[1],F):A(t[0],t[1])):T?A(t,F):A(t)};if(P)h=t.iterator;else if(E)h=t;else{if(!(b=l(t)))throw v(u(t)+" is not iterable");if(c(b)){for(g=0,m=a(t);m>g;g++)if((O=L(t[g]))&&f(y,O))return O;return new d(!1)}h=s(t,b)}for(x=P?t.next:h.next;!(w=o(x,h)).done;){try{O=L(w.value)}catch(t){p(h,"throw",t)}if("object"==typeof O&&O&&f(y,O))return O}return new d(!1)}},9200:function(t,r,e){var n=e(3927),o=e(4905),i=e(3815);t.exports=function(t,r,e){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===r)throw e;return e}u=n(u,t)}catch(t){c=!0,u=t}if("throw"===r)throw e;if(c)throw u;return o(u),e}},6391:function(t,r,e){"use strict";var n=e(1151).IteratorPrototype,o=e(2275),i=e(6034),u=e(606),c=e(501),a=function(){return this};t.exports=function(t,r,e,f){var s=r+" Iterator";return t.prototype=o(n,{next:i(+!f,e)}),u(t,s,!1,!0),c[s]=a,t}},4966:function(t,r,e){"use strict";var n=e(9638),o=e(3927),i=e(13),u=e(9873),c=e(6291),a=e(6391),f=e(4320),s=e(2848),l=e(606),p=e(430),v=e(5850),d=e(6802),y=e(501),h=e(1151),b=u.PROPER,g=u.CONFIGURABLE,m=h.IteratorPrototype,O=h.BUGGY_SAFARI_ITERATORS,x=d("iterator"),w="keys",j="values",S="entries",P=function(){return this};t.exports=function(t,r,e,u,d,h,E){a(e,r,u);var T,A,F,L=function(t){if(t===d&&D)return D;if(!O&&t in M)return M[t];switch(t){case w:case j:case S:return function(){return new e(this,t)}}return function(){return new e(this)}},I=r+" Iterator",R=!1,M=t.prototype,C=M[x]||M["@@iterator"]||d&&M[d],D=!O&&C||L(d),k="Array"==r&&M.entries||C;if(k&&(T=f(k.call(new t)))!==Object.prototype&&T.next&&(i||f(T)===m||(s?s(T,m):c(T[x])||v(T,x,P)),l(T,I,!0,!0),i&&(y[I]=P)),b&&d==j&&C&&C.name!==j&&(!i&&g?p(M,"name",j):(R=!0,D=function(){return o(C,this)})),d)if(A={values:L(j),keys:h?D:L(w),entries:L(S)},E)for(F in A)(O||R||!(F in M))&&v(M,F,A[F]);else n({target:r,proto:!0,forced:O||R},A);return i&&!E||M[x]===D||v(M,x,D,{name:d}),y[r]=D,A}},1151:function(t,r,e){"use strict";var n,o,i,u=e(5061),c=e(6291),a=e(2366),f=e(2275),s=e(4320),l=e(5850),p=e(6802),v=e(13),d=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(n=o):y=!0),!a(n)||u((function(){var t={};return n[d].call(t)!==t}))?n={}:v&&(n=f(n)),c(n[d])||l(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},501:function(t){t.exports={}},4821:function(t,r,e){var n=e(4479);t.exports=function(t){return n(t.length)}},7192:function(t,r,e){var n=e(5061),o=e(6291),i=e(8382),u=e(1502),c=e(9873).CONFIGURABLE,a=e(685),f=e(684),s=f.enforce,l=f.get,p=Object.defineProperty,v=u&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),d=String(String).split("String"),y=t.exports=function(t,r,e){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!i(t,"name")||c&&t.name!==r)&&(u?p(t,"name",{value:r,configurable:!0}):t.name=r),v&&e&&i(e,"arity")&&t.length!==e.arity&&p(t,"length",{value:e.arity});try{e&&i(e,"constructor")&&e.constructor?u&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=s(t);return i(n,"source")||(n.source=d.join("string"==typeof r?r:"")),t};Function.prototype.toString=y((function(){return o(this)&&l(this).source||a(this)}),"toString")},1367:function(t){var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},3690:function(t,r,e){var n,o,i,u,c,a,f,s,l=e(5001),p=e(9918),v=e(8117).f,d=e(8680).set,y=e(311),h=e(1368),b=e(4832),g=e(566),m=l.MutationObserver||l.WebKitMutationObserver,O=l.document,x=l.process,w=l.Promise,j=v(l,"queueMicrotask"),S=j&&j.value;S||(n=function(){var t,r;for(g&&(t=x.domain)&&t.exit();o;){r=o.fn,o=o.next;try{r()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},y||g||b||!m||!O?!h&&w&&w.resolve?((f=w.resolve(void 0)).constructor=w,s=p(f.then,f),u=function(){s(n)}):g?u=function(){x.nextTick(n)}:(d=p(d,l),u=function(){d(n)}):(c=!0,a=O.createTextNode(""),new m(n).observe(a,{characterData:!0}),u=function(){a.data=c=!c})),t.exports=S||function(t){var r={fn:t,next:void 0};i&&(i.next=r),o||(o=r,u()),i=r}},7714:function(t,r,e){"use strict";var n=e(4933),o=TypeError,i=function(t){var r,e;this.promise=new t((function(t,n){if(void 0!==r||void 0!==e)throw o("Bad Promise constructor");r=t,e=n})),this.resolve=n(r),this.reject=n(e)};t.exports.f=function(t){return new i(t)}},2275:function(t,r,e){var n,o=e(4905),i=e(6191),u=e(2089),c=e(2499),a=e(2118),f=e(6009),s=e(1695),l="prototype",p="script",v=s("IE_PROTO"),d=function(){},y=function(t){return"<"+p+">"+t+"</"+p+">"},h=function(t){t.write(y("")),t.close();var r=t.parentWindow.Object;return t=null,r},b=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;b="undefined"!=typeof document?document.domain&&n?h(n):(r=f("iframe"),e="java"+p+":",r.style.display="none",a.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F):h(n);for(var o=u.length;o--;)delete b[l][u[o]];return b()};c[v]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(d[l]=o(t),e=new d,d[l]=null,e[v]=t):e=b(),void 0===r?e:i.f(e,r)}},6191:function(t,r,e){var n=e(1502),o=e(5780),i=e(6462),u=e(4905),c=e(678),a=e(9749);r.f=n&&!o?Object.defineProperties:function(t,r){u(t);for(var e,n=c(r),o=a(r),f=o.length,s=0;f>s;)i.f(t,e=o[s++],n[e]);return t}},6462:function(t,r,e){var n=e(1502),o=e(7788),i=e(5780),u=e(4905),c=e(1030),a=TypeError,f=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",v="writable";r.f=n?i?function(t,r,e){if(u(t),r=c(r),u(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=s(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:p in e?e[p]:n[p],enumerable:l in e?e[l]:n[l],writable:!1})}return f(t,r,e)}:f:function(t,r,e){if(u(t),r=c(r),u(e),o)try{return f(t,r,e)}catch(t){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},8117:function(t,r,e){var n=e(1502),o=e(3927),i=e(9265),u=e(6034),c=e(678),a=e(1030),f=e(8382),s=e(7788),l=Object.getOwnPropertyDescriptor;r.f=n?l:function(t,r){if(t=c(t),r=a(r),s)try{return l(t,r)}catch(t){}if(f(t,r))return u(!o(i.f,t,r),t[r])}},9219:function(t,r,e){var n=e(3855),o=e(2089).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},2822:function(t,r){r.f=Object.getOwnPropertySymbols},4320:function(t,r,e){var n=e(8382),o=e(6291),i=e(7615),u=e(1695),c=e(149),a=u("IE_PROTO"),f=Object,s=f.prototype;t.exports=c?f.getPrototypeOf:function(t){var r=i(t);if(n(r,a))return r[a];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof f?s:null}},6282:function(t,r,e){var n=e(936);t.exports=n({}.isPrototypeOf)},3855:function(t,r,e){var n=e(936),o=e(8382),i=e(678),u=e(5029).indexOf,c=e(2499),a=n([].push);t.exports=function(t,r){var e,n=i(t),f=0,s=[];for(e in n)!o(c,e)&&o(n,e)&&a(s,e);for(;r.length>f;)o(n,e=r[f++])&&(~u(s,e)||a(s,e));return s}},9749:function(t,r,e){var n=e(3855),o=e(2089);t.exports=Object.keys||function(t){return n(t,o)}},9265:function(t,r){"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},2848:function(t,r,e){var n=e(936),o=e(4905),i=e(9076);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return o(e),i(n),r?t(e,n):e.__proto__=n,e}}():void 0)},379:function(t,r,e){var n=e(3927),o=e(6291),i=e(2366),u=TypeError;t.exports=function(t,r){var e,c;if("string"===r&&o(e=t.toString)&&!i(c=n(e,t)))return c;if(o(e=t.valueOf)&&!i(c=n(e,t)))return c;if("string"!==r&&o(e=t.toString)&&!i(c=n(e,t)))return c;throw u("Can't convert object to primitive value")}},2466:function(t,r,e){var n=e(3425),o=e(936),i=e(9219),u=e(2822),c=e(4905),a=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(c(t)),e=u.f;return e?a(r,e(t)):r}},7040:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},8410:function(t,r,e){var n=e(5001),o=e(7883),i=e(6291),u=e(1092),c=e(685),a=e(6802),f=e(6837),s=e(5065),l=e(13),p=e(2821),v=o&&o.prototype,d=a("species"),y=!1,h=i(n.PromiseRejectionEvent),b=u("Promise",(function(){var t=c(o),r=t!==String(o);if(!r&&66===p)return!0;if(l&&(!v.catch||!v.finally))return!0;if(!p||p<51||!/native code/.test(t)){var e=new o((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((e.constructor={})[d]=n,!(y=e.then((function(){}))instanceof n))return!0}return!r&&(f||s)&&!h}));t.exports={CONSTRUCTOR:b,REJECTION_EVENT:h,SUBCLASSING:y}},7883:function(t,r,e){var n=e(5001);t.exports=n.Promise},7504:function(t,r,e){var n=e(4905),o=e(2366),i=e(7714);t.exports=function(t,r){if(n(t),o(r)&&r.constructor===t)return r;var e=i.f(t);return(0,e.resolve)(r),e.promise}},3653:function(t,r,e){var n=e(7883),o=e(3165),i=e(8410).CONSTRUCTOR;t.exports=i||!o((function(t){n.all(t).then(void 0,(function(){}))}))},8791:function(t){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(t){var r={item:t,next:null};this.head?this.tail.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=r},4475:function(t,r,e){var n=e(860),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},3126:function(t,r,e){"use strict";var n=e(3425),o=e(6462),i=e(6802),u=e(1502),c=i("species");t.exports=function(t){var r=n(t),e=o.f;u&&r&&!r[c]&&e(r,c,{configurable:!0,get:function(){return this}})}},606:function(t,r,e){var n=e(6462).f,o=e(8382),i=e(6802)("toStringTag");t.exports=function(t,r,e){t&&!e&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:r})}},1695:function(t,r,e){var n=e(6809),o=e(1050),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},9982:function(t,r,e){var n=e(5001),o=e(1756),i="__core-js_shared__",u=n[i]||o(i,{});t.exports=u},6809:function(t,r,e){var n=e(13),o=e(9982);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.26.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},3571:function(t,r,e){var n=e(4905),o=e(8209),i=e(860),u=e(6802)("species");t.exports=function(t,r){var e,c=n(t).constructor;return void 0===c||i(e=n(c)[u])?r:o(e)}},5947:function(t,r,e){var n=e(2821),o=e(5061);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8680:function(t,r,e){var n,o,i,u,c=e(5001),a=e(5494),f=e(9918),s=e(6291),l=e(8382),p=e(5061),v=e(2118),d=e(650),y=e(6009),h=e(7427),b=e(311),g=e(566),m=c.setImmediate,O=c.clearImmediate,x=c.process,w=c.Dispatch,j=c.Function,S=c.MessageChannel,P=c.String,E=0,T={},A="onreadystatechange";try{n=c.location}catch(t){}var F=function(t){if(l(T,t)){var r=T[t];delete T[t],r()}},L=function(t){return function(){F(t)}},I=function(t){F(t.data)},R=function(t){c.postMessage(P(t),n.protocol+"//"+n.host)};m&&O||(m=function(t){h(arguments.length,1);var r=s(t)?t:j(t),e=d(arguments,1);return T[++E]=function(){a(r,void 0,e)},o(E),E},O=function(t){delete T[t]},g?o=function(t){x.nextTick(L(t))}:w&&w.now?o=function(t){w.now(L(t))}:S&&!b?(u=(i=new S).port2,i.port1.onmessage=I,o=f(u.postMessage,u)):c.addEventListener&&s(c.postMessage)&&!c.importScripts&&n&&"file:"!==n.protocol&&!p(R)?(o=R,c.addEventListener("message",I,!1)):o=A in y("script")?function(t){v.appendChild(y("script"))[A]=function(){v.removeChild(this),F(t)}}:function(t){setTimeout(L(t),0)}),t.exports={set:m,clear:O}},6971:function(t,r,e){var n=e(9398),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},678:function(t,r,e){var n=e(2901),o=e(4475);t.exports=function(t){return n(o(t))}},9398:function(t,r,e){var n=e(1367);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},4479:function(t,r,e){var n=e(9398),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},7615:function(t,r,e){var n=e(4475),o=Object;t.exports=function(t){return o(n(t))}},6973:function(t,r,e){var n=e(3927),o=e(2366),i=e(6448),u=e(3815),c=e(379),a=e(6802),f=TypeError,s=a("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,a=u(t,s);if(a){if(void 0===r&&(r="default"),e=n(a,t,r),!o(e)||i(e))return e;throw f("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(t,r)}},1030:function(t,r,e){var n=e(6973),o=e(6448);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},8171:function(t,r,e){var n={};n[e(6802)("toStringTag")]="z",t.exports="[object z]"===String(n)},7073:function(t){var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},1050:function(t,r,e){var n=e(936),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},7558:function(t,r,e){var n=e(5947);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5780:function(t,r,e){var n=e(1502),o=e(5061);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7427:function(t){var r=TypeError;t.exports=function(t,e){if(t<e)throw r("Not enough arguments");return t}},1899:function(t,r,e){var n=e(5001),o=e(6291),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},6802:function(t,r,e){var n=e(5001),o=e(6809),i=e(8382),u=e(1050),c=e(5947),a=e(7558),f=o("wks"),s=n.Symbol,l=s&&s.for,p=a?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(f,t)||!c&&"string"!=typeof f[t]){var r="Symbol."+t;c&&i(s,t)?f[t]=s[t]:f[t]=a&&l?l(r):p(r)}return f[t]}},8868:function(t,r,e){"use strict";var n=e(678),o=e(5822),i=e(501),u=e(684),c=e(6462).f,a=e(4966),f=e(4562),s=e(13),l=e(1502),p="Array Iterator",v=u.set,d=u.getterFor(p);t.exports=a(Array,"Array",(function(t,r){v(this,{type:p,target:n(t),index:0,kind:r})}),(function(){var t=d(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,f(void 0,!0)):f("keys"==e?n:"values"==e?r[n]:[n,r[n]],!1)}),"values");var y=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!s&&l&&"values"!==y.name)try{c(y,"name",{value:"values"})}catch(t){}},2937:function(t,r,e){"use strict";var n=e(9638),o=e(2040).left,i=e(9020),u=e(2821),c=e(566);n({target:"Array",proto:!0,forced:!i("reduce")||!c&&u>79&&u<83},{reduce:function(t){var r=arguments.length;return o(this,t,r,r>1?arguments[1]:void 0)}})},8547:function(t,r,e){"use strict";var n=e(9638),o=e(936),i=e(119),u=o([].reverse),c=[1,2];n({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),u(this)}})},5370:function(t,r,e){"use strict";var n=e(9638),o=e(3927),i=e(4933),u=e(7714),c=e(7040),a=e(8971);n({target:"Promise",stat:!0,forced:e(3653)},{all:function(t){var r=this,e=u.f(r),n=e.resolve,f=e.reject,s=c((function(){var e=i(r.resolve),u=[],c=0,s=1;a(t,(function(t){var i=c++,a=!1;s++,o(e,r,t).then((function(t){a||(a=!0,u[i]=t,--s||n(u))}),f)})),--s||n(u)}));return s.error&&f(s.value),e.promise}})},4139:function(t,r,e){"use strict";var n=e(9638),o=e(13),i=e(8410).CONSTRUCTOR,u=e(7883),c=e(3425),a=e(6291),f=e(5850),s=u&&u.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&a(u)){var l=c("Promise").prototype.catch;s.catch!==l&&f(s,"catch",l,{unsafe:!0})}},9688:function(t,r,e){"use strict";var n,o,i,u=e(9638),c=e(13),a=e(566),f=e(5001),s=e(3927),l=e(5850),p=e(2848),v=e(606),d=e(3126),y=e(4933),h=e(6291),b=e(2366),g=e(2814),m=e(3571),O=e(8680).set,x=e(3690),w=e(3455),j=e(7040),S=e(8791),P=e(684),E=e(7883),T=e(8410),A=e(7714),F="Promise",L=T.CONSTRUCTOR,I=T.REJECTION_EVENT,R=T.SUBCLASSING,M=P.getterFor(F),C=P.set,D=E&&E.prototype,k=E,_=D,N=f.TypeError,K=f.document,G=f.process,U=A.f,q=U,z=!!(K&&K.createEvent&&f.dispatchEvent),V="unhandledrejection",B=function(t){var r;return!(!b(t)||!h(r=t.then))&&r},H=function(t,r){var e,n,o,i=r.value,u=1==r.state,c=u?t.ok:t.fail,a=t.resolve,f=t.reject,l=t.domain;try{c?(u||(2===r.rejection&&X(r),r.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(N("Promise-chain cycle")):(n=B(e))?s(n,e,a,f):a(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},W=function(t,r){t.notified||(t.notified=!0,x((function(){for(var e,n=t.reactions;e=n.get();)H(e,t);t.notified=!1,r&&!t.rejection&&Y(t)})))},J=function(t,r,e){var n,o;z?((n=K.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),f.dispatchEvent(n)):n={promise:r,reason:e},!I&&(o=f["on"+t])?o(n):t===V&&w("Unhandled promise rejection",e)},Y=function(t){s(O,f,(function(){var r,e=t.facade,n=t.value;if(Q(t)&&(r=j((function(){a?G.emit("unhandledRejection",n,e):J(V,e,n)})),t.rejection=a||Q(t)?2:1,r.error))throw r.value}))},Q=function(t){return 1!==t.rejection&&!t.parent},X=function(t){s(O,f,(function(){var r=t.facade;a?G.emit("rejectionHandled",r):J("rejectionhandled",r,t.value)}))},$=function(t,r,e){return function(n){t(r,n,e)}},Z=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=2,W(t,!0))},tt=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw N("Promise can't be resolved itself");var n=B(r);n?x((function(){var e={done:!1};try{s(n,r,$(tt,e,t),$(Z,e,t))}catch(r){Z(e,r,t)}})):(t.value=r,t.state=1,W(t,!1))}catch(r){Z({done:!1},r,t)}}};if(L&&(_=(k=function(t){g(this,_),y(t),s(n,this);var r=M(this);try{t($(tt,r),$(Z,r))}catch(t){Z(r,t)}}).prototype,(n=function(t){C(this,{type:F,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=l(_,"then",(function(t,r){var e=M(this),n=U(m(this,k));return e.parent=!0,n.ok=!h(t)||t,n.fail=h(r)&&r,n.domain=a?G.domain:void 0,0==e.state?e.reactions.add(n):x((function(){H(n,e)})),n.promise})),o=function(){var t=new n,r=M(t);this.promise=t,this.resolve=$(tt,r),this.reject=$(Z,r)},A.f=U=function(t){return t===k||undefined===t?new o(t):q(t)},!c&&h(E)&&D!==Object.prototype)){i=D.then,R||l(D,"then",(function(t,r){var e=this;return new k((function(t,r){s(i,e,t,r)})).then(t,r)}),{unsafe:!0});try{delete D.constructor}catch(t){}p&&p(D,_)}u({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:k}),v(k,F,!1,!0),d(F)},3045:function(t,r,e){e(9688),e(5370),e(4139),e(7508),e(5858),e(1856)},7508:function(t,r,e){"use strict";var n=e(9638),o=e(3927),i=e(4933),u=e(7714),c=e(7040),a=e(8971);n({target:"Promise",stat:!0,forced:e(3653)},{race:function(t){var r=this,e=u.f(r),n=e.reject,f=c((function(){var u=i(r.resolve);a(t,(function(t){o(u,r,t).then(e.resolve,n)}))}));return f.error&&n(f.value),e.promise}})},5858:function(t,r,e){"use strict";var n=e(9638),o=e(3927),i=e(7714);n({target:"Promise",stat:!0,forced:e(8410).CONSTRUCTOR},{reject:function(t){var r=i.f(this);return o(r.reject,void 0,t),r.promise}})},1856:function(t,r,e){"use strict";var n=e(9638),o=e(3425),i=e(13),u=e(7883),c=e(8410).CONSTRUCTOR,a=e(7504),f=o("Promise"),s=i&&!c;n({target:"Promise",stat:!0,forced:i||c},{resolve:function(t){return a(s&&this===f?u:this,t)}})},4861:function(t,r,e){var n=e(5001),o=e(8514),i=e(7234),u=e(8868),c=e(430),a=e(6802),f=a("iterator"),s=a("toStringTag"),l=u.values,p=function(t,r){if(t){if(t[f]!==l)try{c(t,f,l)}catch(r){t[f]=l}if(t[s]||c(t,s,r),o[r])for(var e in u)if(t[e]!==u[e])try{c(t,e,u[e])}catch(r){t[e]=u[e]}}};for(var v in o)p(n[v]&&n[v].prototype,v);p(i,"DOMTokenList")},309:function(t){"use strict";t.exports=e},2719:function(t){"use strict";t.exports=r},8156:function(r){"use strict";r.exports=t}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var e=o[t]={exports:{}};return n[t](e,e.exports,i),e.exports}i.d=function(t,r){for(var e in r)i.o(r,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var u={};return function(){"use strict";function t(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function r(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function e(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function n(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i=[],u=!0,c=!1;try{for(e=e.call(t);!(u=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);u=!0);}catch(t){c=!0,o=t}finally{try{u||null==e.return||e.return()}finally{if(c)throw o}}return i}}(t,r)||e(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i.r(u),i.d(u,{ConfigProvider:function(){return j},GlobalSessionProvider:function(){return w},SessionProvider:function(){return B},Strategy:function(){return C},createSessionKey:function(){return g},provide:function(){return W},useIsFetching:function(){return U},useLazyComponent:function(){return q},useLoadedSession:function(){return z},useMutation:function(){return K},useQuery:function(){return N},useResponse:function(){return V},useSession:function(){return G},withSessionProvider:function(){return H}});i(3045),i(8868),i(4861);var c=i(8156),a=i(2719),f=i(309);function s(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}var l=["version"];function p(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function v(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function d(t){var r=t.version,e=s(t,l),n=function(e){return v(v({},e),{},{version:r,uniqueKey:t.uniqueKey})};return{state:e,version:r||0,setState:function(r){return n("function"!=typeof r?r:r(t))},setFetchingKey:function(r){return n(v(v({},t),{},{fetchingKey:r,finalFetchingKey:null!=r?r:t.finalFetchingKey}))},removeFetchingKey:function(r){return t.fetchingKey!==r?t:n(v(v({},t),{},{fetchingKey:void 0}))},trigger:function(){return v(v({},t),{},{version:(r||0)+1})}}}var y=function(t){return v({data:void 0,variables:void 0,isError:!1,isFetching:!1,abandon:!1,triggerType:void 0,loaded:!1,sessionLoaded:!1},t)};function h(t,r,e){if(!("function"==typeof t.pipe))return[d,t,e,!1];var n=o(t.effect,2),i=n[0],u=n[1].sessionType;if(null!=u&&u!==r)throw new Error("The sessionType is not matched, can not use '".concat(u," type' sessionKey with '").concat("query"===r?"useQuery":"useMutation","'"));return[t,i,e,!0]}function b(t,r){return o(h(t,"query",Array.isArray(r)?{variables:r}:r),3)[2]||{}}function g(t,r){var e={implemented:!1},n=(0,a.createKey)(d,y());return n.effect=[function(){return t.apply(void 0,arguments)},r?{sessionType:r}:{}],n.implement=function(t){e.implemented||(n.effect[0]=t,e.implemented=!0)},n}var m=[],O=(0,a.createKey)((function(t){return{isFetching:t.length>0,setGlobalFetchingKey:function(r){return t.some((function(t){return t===r}))?t:t.concat(r)},removeGlobalFetchingKey:function(r){return t.some((function(t){return t===r}))?t.filter((function(t){return t!==r})):t}}}),m),x=(0,c.createContext)(null);function w(t){var r=t.config,e=t.keys,n=t.children,o=(0,a.useIsModelMatchedInStore)(O),i=(0,c.useMemo)((function(){return[o?void 0:O,e].filter((function(t){return!!t}))}),[o,e]);return i.length?(0,c.createElement)(a.StoreProvider,{keys:i},(0,c.createElement)(x.Provider,{value:r||null},n)):(0,c.createElement)(x.Provider,{value:r||null},n)}function j(t){var r=t.value,e=t.children,n=(0,c.useMemo)((function(){return r.useGlobalFetching?O:void 0}),[]);return(0,c.createElement)(x.Provider,{value:r},n?(0,c.createElement)(a.StoreProvider,{value:n},e):e)}function S(){return(0,c.useContext)(x)}i(2937),i(8547);function P(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function E(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function T(t){return Array.isArray(t)?t:[t]}function A(t,r,e){var i=T(e),u=(0,c.useRef)(i.map((function(){return{current:void 0}})));return[function(e,c){var a,f,s=c||[],l={current:function(){return t.state},variables:s,runner:function(){var n=t.state;return(0,t.setState)(E(E({},n),{},{isFetching:!0,triggerType:e})),r(e,s)},store:u,runtimeCache:(a=[],f=function(t){var r=a.find((function(r){return o(r,1)[0]===t}));if(Array.isArray(r))return r},{set:function(t,r){var e=f(t);e?e[1]=r:a.push([t,r])},get:function(t){var r=f(t);if(r)return r[1]}})};return function(t){var r=function(t){return t.runner()};return function(e){var o=e.store.current;return n(t).reverse().reduce((function(t,r,e){var n=o[e]||{current:void 0};return function(e){return null==r?t(e):r(E(E({},e),{},{store:n,runner:function(){return t(e)}}))}}),r)(e).then((function(t){var r=e.current(),n=r.loaded,o=r.sessionLoaded,i=t.abandon,u=t.isError,c=t.isFetching,a=n||!i&&!u&&!c,f=o||!i&&!u&&!c;return E(E({},t),{},{loaded:a,sessionLoaded:f})}))}}(i)(l).then((function(r){return r.abandon||t.setState(r),r}))},i.map((function(t){if(t)return t.effect})).filter((function(t){return!!t}))]}function F(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function L(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}var I=function(t,r){return!!Object.is(t,r)||null!=t&&null!=r&&JSON.stringify(t)===JSON.stringify(r)};function R(t,r){var e=(r||{}).withAbandoned;return function(r){var n=r.runner,o=r.runtimeCache,i=r.store,u=o.get(R);return o.set(R,!0),i.current=t,n().then((function(t){var r=i.current;return!t.isError||u||!r||t.abandon&&!e||r(t.error,t),t}))}}function M(t){var r=function(t){return(0,t.runner)()};return r.effect=t,r}M.success=function(t){var r=function(t){return(0,t.runner)()};return r.effect=function(r){r.isError||r.isFetching||!r.sessionLoaded||t(r.data,r)},r},M.error=function(t){var r=function(t){var r=t.runner;return t.runtimeCache.set(R,!0),r()};return r.effect=function(r){r.isError&&!r.isFetching&&t(r.error,r)},r};var C={debounce:function(t){var r="number"==typeof t?t:t.duration;return function(t){var e=t.current,n=t.runner,o=t.store;if(o.current){var i=o.current,u=i.id,c=i.resolve;return clearTimeout(u),o.current.id=setTimeout((function(){o.current=void 0,c(n())}),r),o.current.promise}var a=new Promise((function(t){t(L(L({},e()),{},{abandon:!0}))})),f={id:null,resolve:function(){},promise:a},s=new Promise((function(t){f.id=setTimeout((function(){o.current=void 0,t(n())}),r),f.resolve=t}));return f.promise=s,o.current=f,s}},throttle:function(t){var r="number"==typeof t?t:t.duration;return function(t){var e=t.current,n=t.runner,o=t.store,i=t.variables,u=void 0===i?[]:i;o.current=o.current||{timeoutId:null,variables:void 0};var c=o.current.variables,a=o.current.timeoutId;return function(t,r){return null==t||!I(t,r)}(c,u)||null==a?(o.current.variables=u,null!=a&&clearTimeout(a),o.current.timeoutId=setTimeout((function(){o.current=o.current||{},o.current.timeoutId=null}),r),n()):new Promise((function(t){t(e())}))}},once:function(){return function(t){var r=t.runner,e=t.store;return e.current?e.current.then((function(t){return L(L({},t),{},{abandon:!0})})):(e.current=r().then((function(t){return t.isError&&(e.current=void 0),t})),e.current)}},error:R,success:function(t,r){var e=(r||{}).withAbandoned;return function(r){var n=r.runner,o=r.store;return o.current=t,n().then((function(t){var r=o.current;return t.isError||!r||t.abandon&&!e||r(t.data,t),t}))}},validate:function(t){return function(r){var e=r.runner,n=r.current;if(!t()){var o=n();return new Promise((function(t){t(L(L({},o),{},{abandon:!0}))}))}return e()}},memo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;return function(r){var e=r.runner,n=r.current;return e().then((function(r){var e=n();return("function"==typeof t?t(e.data,r.data):e.data===r.data)?L(L({},r),{},{data:e.data}):r}))}},reduce:function(t){return function(r){var e=r.runner,n=r.current;return e().then((function(r){if(r.isError||r.abandon)return r;var e=n(),o=t(e.data,r.data,[e,r]);return L(L({},r),{},{data:o})}))}},effect:M};function D(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function k(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function _(t,r){var e=(0,c.useRef)({}),i=function(t,r,e){var i=Array.isArray(e)?{variables:e}:e,u=o(h(t,"query",i),4),c=u[0],f=u[1],s=u[2],l=u[3],p=s||{},v=p.defaultData,d=p.loaded,b=Object.prototype.hasOwnProperty.call(p,"defaultData"),g=l?b?[c,y({data:v,uniqueKey:t,loaded:!0})]:[c]:[c,y(b?{data:v,uniqueKey:r,loaded:!0}:void 0)],m=a.useModel.apply(void 0,n(g));if(d&&!m.state.loaded)throw new Error('This session is not loaded, you should remove "config.loaded" option.');return[m,p,f]}(t,e.current,r),u=o(i,3),s=u[0],l=u[1],p=u[2],v=l.variables,d=l.deps,b=l.triggerOn,g=void 0===b?["mount","update","manual"]:b,x=l.strategy,w=(0,a.useRealtimeInstance)(s),j=(0,a.useModel)(O,m,{autoLink:!0}),S=j.setGlobalFetchingKey,P=j.removeGlobalFetchingKey;var E=A(w,(function(t,r){var o=function(t){return function(r){var e=t(r);if(!e||"function"!=typeof e.then)throw new Error("The callback have to return a promise object.");return e.then((function(t){return{data:t,variables:r,error:void 0,isError:!1}}),(function(t){return{variables:r,error:t,isError:!0}}))}}((function(t){return p.apply(void 0,n(t))}));return o(r).then((function(r){var n=null!=w.state.finalFetchingKey&&e.current!==w.state.finalFetchingKey;return k(k(k({},w.state),r),{},{abandon:n,isFetching:!1,triggerType:t})}))}),x),T=o(E,2),F=T[0],L=T[1],I=function(t,r){var n=w.state.fetchingKey;return g.indexOf(t)<0||n&&n!==e.current?new Promise((function(t){t(k(k({},w.state),{},{abandon:!0}))})):(w.setFetchingKey(e.current),Promise.resolve(void 0).then((function(){w.removeFetchingKey(e.current)})),F(t,r||v))},R=(0,f.usePersistFn)((function(){return I("manual")})),M=(0,f.usePersistFn)((function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return I("manual",r)})),C=d||v||[];(0,f.useMount)((function(){I("mount")})),(0,f.useUpdate)((function(){I("update")}),C);var D=(0,c.useRef)(s.version);return(0,c.useEffect)((function(){if(D.current!==s.version){D.current=s.version;var t=w.state.fetchingKey;t&&t!==e.current||R()}}),[s.version]),(0,c.useEffect)((function(){s.state.isFetching?S(e.current):P(e.current)}),[s.state.isFetching]),(0,f.useUnmount)((function(){P(e.current),w.removeFetchingKey(e.current)})),(0,c.useEffect)((function(){L.forEach((function(t){t(s.state)}))}),[s.state]),[s.state,R,M]}function N(t,r){var e=b(t,r),n=e.variables,o=e.deps,i=e.manual,u=e.triggerOn,c=void 0===u?["mount","update","manual"]:u,a=e.strategy,f=!o&&!n||i?["manual"]:c,s=(S()||{}).strategy,l=T(a),p=s?s(l,"query"):l;return _(t,k(k({},e),{},{triggerOn:f,strategy:[function(t){var r=t.runner,e=t.store;e.current=e.current||0;var n=e.current+1;return e.current=n,r().then((function(t){return e.current!==n?E(E({},t),{},{abandon:!0}):t}))}].concat(p)}))}function K(t,r){var e=b(t,r),n=e.triggerOn,o=void 0===n?["manual"]:n,i=e.strategy,u=(S()||{}).strategy,c=T(i),a=u?u(c,"mutation"):c;return _(t,k(k({},e),{},{triggerOn:o,strategy:[function(t){var r=t.runner,e=t.store;if(e.current)return e.current.then((function(t){return E(E({},t),{},{abandon:!0})}));var n=r();return e.current=n.then((function(t){return e.current=void 0,t})),n}].concat(a)}))}function G(t,r){var e=o(t.effect,2)[1].sessionType,n=(0,a.useSelector)(t,(function(t){return[t.state,t.trigger]})),i="string"==typeof r?{sessionType:r,loaded:void 0}:r||{},u=i.loaded,c=i.sessionType,f=o(n,1)[0].loaded;if(c&&e&&c!==e)throw new Error("The sessionType is not matched, can not use '".concat(e," type' sessionKey with '").concat(c," type' useSession."));if(u&&!f)throw new Error("The session is not loaded yet, check config, and set {loaded: undefined}.");return n}function U(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];var n=(0,c.useMemo)((function(){return r.map((function(t){return Array.isArray(t)?o(t,1)[0]:t})).some((function(t){return t.isFetching}))}),r),i=(0,a.useIsModelMatchedInStore)(O),u=(0,a.useModel)(O,m,{autoLink:!0}).isFetching;if(!i&&!r.length)throw new Error("You should provide a `GlobalRefreshProvider` to support a global `isFetching` detect.");return i&&!r.length?u:n}function q(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),i=1;i<r;i++)e[i-1]=arguments[i];var u=(0,c.useMemo)((function(){return e.map((function(t){var r={loaded:!1};return r.promise=new Promise((function(t,e){r.resolve=t,r.reject=e})),r}))}),[]),a=(0,c.useRef)(u);function f(t){return t.default?t:{default:t}}return(0,c.useEffect)((function(){var t=a.current;e.forEach((function(r,e){var n=Array.isArray(r)?r[0]:r,o=t[e];if(n.isError&&!o.loaded)return o.loaded=!0,void o.reject(n);n.sessionLoaded&&!o.loaded&&(o.loaded=!0,o.resolve(!0))}))}),[].concat(e)),(0,c.useMemo)((function(){var r=a.current.map((function(t){return t.promise}));return(0,c.lazy)((function(){var e=t();return Promise.all([e].concat(n(r))).then((function(t){return f(o(t,1)[0])}),(function(t){return e.then((function(r){var e=function(t){var r=t;return r.default&&"function"==typeof r.default?r.default:t}(r),n=function(t,r){return function(e){return(0,c.createElement)(t,k(k({},e),{},{error:r}))}}(e,t);return f(n)}))}))}))}),[])}function z(t,r){return G(t,"string"==typeof r?{sessionType:r,loaded:!0}:k(k({},r),{},{loaded:!0}))}function V(t,r){(0,c.useEffect)((function(){var e=!r.isFetching&&r.isError,n=!r.isFetching&&r.sessionLoaded&&!r.isError;(e||n)&&t(r)}),[r])}V.success=function(t,r){(0,c.useEffect)((function(){!r.isFetching&&r.sessionLoaded&&!r.isError&&t(r.data,r)}),[r])},V.error=function(t,r){(0,c.useEffect)((function(){!r.isFetching&&r.isError&&t(r.error,r)}),[r])};var B=a.StoreProvider,H=a.provide,W=a.provide}(),u}()})); |
{ | ||
"private": false, | ||
"name": "@airma/react-effect", | ||
"version": "18.2.5", | ||
"version": "18.2.6", | ||
"description": "This is a react async state management tool", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
68071