summaryrefslogtreecommitdiffstats
path: root/testing/talos/talos/tests/devtools/addon/content/pages/custom/debugger/static/js/minified.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/talos/talos/tests/devtools/addon/content/pages/custom/debugger/static/js/minified.js')
-rw-r--r--testing/talos/talos/tests/devtools/addon/content/pages/custom/debugger/static/js/minified.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/talos/talos/tests/devtools/addon/content/pages/custom/debugger/static/js/minified.js b/testing/talos/talos/tests/devtools/addon/content/pages/custom/debugger/static/js/minified.js
new file mode 100644
index 0000000000..0a1672b892
--- /dev/null
+++ b/testing/talos/talos/tests/devtools/addon/content/pages/custom/debugger/static/js/minified.js
@@ -0,0 +1,2 @@
+(()=>{var e,t,n,r,o={82603:(e,t,n)=>{var r={"./af/amo.js":[87761,7004],"./ar/amo.js":[85723,7496],"./ast/amo.js":[82180,8865],"./az/amo.js":[40159,339],"./bg/amo.js":[13534,9628],"./bn/amo.js":[19583,685],"./bs/amo.js":[24711,3751],"./ca/amo.js":[88233,9918],"./cak/amo.js":[41964,8677],"./cs/amo.js":[55610,4402],"./da/amo.js":[77457,689],"./de/amo.js":[22359,652],"./dsb/amo.js":[60440,7049],"./el/amo.js":[59509,1132],"./en_CA/amo.js":[71553,9419],"./en_GB/amo.js":[93778,7927],"./en_US/amo.js":[35946,7636],"./es/amo.js":[16397,3178],"./et/amo.js":[99677,186],"./eu/amo.js":[58331,458],"./fa/amo.js":[93234,5763],"./fi/amo.js":[86493,972],"./fr/amo.js":[63565,8470],"./fy_NL/amo.js":[20138,673],"./ga_IE/amo.js":[89495,7597],"./he/amo.js":[69983,9300],"./hr/amo.js":[13136,3107],"./hsb/amo.js":[59932,7352],"./hu/amo.js":[56290,9649],"./ia/amo.js":[44432,5039],"./id/amo.js":[95407,7542],"./is/amo.js":[99406,5110],"./it/amo.js":[31661,6918],"./ja/amo.js":[25800,2958],"./ka/amo.js":[3821,2704],"./kab/amo.js":[83514,6897],"./ko/amo.js":[82917,9814],"./lt/amo.js":[13907,7030],"./lv/amo.js":[2787,3957],"./mk/amo.js":[87286,4960],"./mn/amo.js":[18282,5101],"./ms/amo.js":[55497,5256],"./mt/amo.js":[30954,3130],"./nb_NO/amo.js":[78493,6788],"./nl/amo.js":[80097,9988],"./nn_NO/amo.js":[13094,2068],"./pa_IN/amo.js":[23501,3197],"./pl/amo.js":[87918,6737],"./pt_BR/amo.js":[37377,9700],"./pt_PT/amo.js":[98187,7905],"./ro/amo.js":[21598,5490],"./ru/amo.js":[8665,6872],"./sk/amo.js":[33969,2580],"./sl/amo.js":[8607,4469],"./sq/amo.js":[32785,929],"./sv_SE/amo.js":[2431,7284],"./te/amo.js":[91635,9290],"./th/amo.js":[65576,9901],"./tr/amo.js":[81986,3155],"./uk/amo.js":[98707,1818],"./ur/amo.js":[38564,5899],"./vi/amo.js":[61222,6553],"./zh_CN/amo.js":[52008,4872],"./zh_TW/amo.js":[42617,5494]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((()=>n.t(o,23)))}o.keys=()=>Object.keys(r),o.id=82603,e.exports=o},66534:(e,t,n)=>{e.exports=n(39425)},17066:e=>{e.exports=window.FormData},96521:e=>{!function(){const t=(e,t)=>e===t?0:e>t?1:-1,n=(e,n)=>e?n?t(e,n):-1:n?1:0,r=(e,r)=>{let o=t(e.a,r.a);return 0!==o?o:(o=n(e.b,r.b),0!==o?o:(o=t(e.c,r.c),0!==o?o:n(e.d,r.d)))},o=e=>!e||/^0+$/.test(e.toString())?0:parseInt(e,10)||e,i=e=>{const t={a:0,b:0,c:0,d:0};if(!e)return t;if("*"===e)return t.a=1/0,t;t.a=parseInt(e,10);let n=e.indexOf(t.a.toString()[0])+1;t.a.toString().startsWith("-")&&n++;const r=e.substr(n);return"+"===r[0]?(t.a+=1,t.b="pre"):r.startsWith("pre")?(t.b="pre",t.c=o(r.substr(3))):r&&(t.b=o(r)),t.c&&(t.d=o(r.substr(t.b.toString().length+t.c.toString().length))),t},a=(e,t)=>{const n=e.split("."),o=t.split("."),a=Math.max(n.length,o.length);for(let e=0;e<a;e++){const t=i(n[e]),a=i(o[e]),u=r(t,a);if(0!==u)return u}return 0};void 0!==e.exports?e.exports={mozCompare:a,parseVersionPart:i}:"undefined"!=typeof window&&(window.mozCompare=a)}()},77565:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addChangeListeners:()=>h,enable:()=>y,getAddon:()=>s,getAddonStatus:()=>u,hasAbuseReportPanelEnabled:()=>l,hasAddonManager:()=>c,install:()=>p,reportAbuse:()=>f,uninstall:()=>d});n(59201),n(86781),n(99918),n(72145),n(45792),n(6893),n(72764),n(83386),n(52906),n(66728),n(42484),n(31815),n(79249),n(38957),n(51913),n(87758),n(53689),n(9229),n(78685),n(28417);var r=n(9119),o=n(2163);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){throw e})),f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){c=!0,i=e})),f:function(){try{u||null==n.return||n.return()}finally{if(c)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t=e.addon,n=e.type,r=t.isActive,i=t.isEnabled,a=o.rr;return r&&i?a=o.Hi:o.Yd!==n&&!r&&i&&(a=o.zK),a}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.navigator;return"undefined"!=typeof window&&"mozAddonManager"in(t||window.navigator)}function s(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n._mozAddonManager,i=void 0===o?window.navigator.mozAddonManager:o;return i||e.exports.hasAddonManager()?i.getAddonByID(t).then((function(e){if(!e)throw new Error("Addon not found");return r.Z.debug("Add-on found",e),e})):Promise.reject(new Error("Cannot check add-on status"))}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.mozAddonManager;return(e||c())&&e.abuseReportPanelEnabled||!1}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t._mozAddonManager,r=void 0===n?window.navigator.mozAddonManager:n;return l(r)&&r.reportAbuse?r.reportAbuse&&r.reportAbuse(e):Promise.reject(new Error("Cannot report abuse via Firefox"))}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n._log,u=void 0===a?r.Z:a,c=n._mozAddonManager,s=void 0===c?window.navigator.mozAddonManager:c,l=n.hash,f=n.onIgnoredRejection,p=void 0===f?function(){}:f;return s.createInstall({url:e,hash:l}).then((function(e){var n,r=function(n){return t(e,n)},a=i(o.Nc);try{for(a.s();!(n=a.n()).done;){var c=n.value;u.info("[install] Adding listener for ".concat(c)),e.addEventListener(c,r)}}catch(e){a.e(e)}finally{a.f()}return new Promise((function(t,n){e.addEventListener("onInstallEnded",(function(){return t()})),e.addEventListener("onInstallFailed",(function(){return n()})),u.info("Events to handle the installation initialized."),e.install().catch((function(e){u.warn("Ignoring promise rejection during installation: ".concat(e)),p()}))}))}))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t._mozAddonManager,o=void 0===n?window.navigator.mozAddonManager:n;return s(e,{_mozAddonManager:o}).then((function(t){return r.Z.info("Requesting uninstall of ".concat(e)),t.uninstall()}))}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n._log,c=void 0===a?r.Z:a;function l(n){var r=n.id,i=n.type,a=n.needsRestart;if(c.info("Event received: %o",{type:i,id:r,needsRestart:a}),i===o.a)return s(r,{_mozAddonManager:t}).then((function(t){var n=u({addon:t});return e({guid:r,status:n,needsRestart:a,canUninstall:t.canUninstall})})).catch((function(e){c.error("Unexpected error after having received onOperationCancelled event: %o",e)}));if([o.uf,o.C$].includes(i))return e({guid:r,status:o.U9[i],needsRestart:a,canUninstall:!0});if(o.U9.hasOwnProperty(i))return s(r,{_mozAddonManager:t}).then((function(t){return e({guid:r,status:o.U9[i],needsRestart:a,canUninstall:t.canUninstall})}));throw new Error("Unknown global event: ".concat(i))}if(t&&t.addEventListener){var f,p=i(o.N8);try{for(p.s();!(f=p.n()).done;){var d=f.value;c.info('adding event listener for "'.concat(d,'"')),t.addEventListener(d,l)}}catch(e){p.e(e)}finally{p.f()}t.addEventListener(o.a,l),c.info("Global change event listeners have been initialized")}else c.info("mozAddonManager.addEventListener not available");return l}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t._mozAddonManager,i=void 0===n?window.navigator.mozAddonManager:n;return s(e,{_mozAddonManager:i}).then((function(t){if(r.Z.info("Enable ".concat(e)),t.setEnabled)return t.setEnabled(!0);throw new Error(o.U4)}))}e=n.hmd(e)},18647:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(67407),n(72764),n(99627),n(12978),n(61511),n(79249),n(14862),n(99918),n(7283),n(83159),n(9536),n(75880),n(12578),n(59201),n(86781);var r,o=n(29343);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}const l=new(s((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Object.assign(this,{has:function(e){return t.hasOwnProperty(e)},get:function(e){if(n.has(e))return t[e];throw new Error((0,o.f9)(r||(i=['Key "','" was not found in clientConfig. Check the\n key has been added to clientConfigKeys'],a||(a=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(a)}}))),e));var i,a}})})))(a(a({},{allowErrorSimulation:!1,apiHost:"https://addons.mozilla.org",apiPath:"/api/",apiVersion:"v5",baseURL:"https://addons.mozilla.org",cookieMaxAge:2592e3,cookieName:"sessionid",cookieSecure:!0,defaultLang:"en-US",enableDevTools:!1,enableFeatureVPNPromo:!0,enableRequestID:!0,enableStrictMode:!1,experiments:{"20210714_amo_vpn_promo":!1},extensionWorkshopUrl:"https://extensionworkshop.com",fxaConfig:"amo",hrefLangsMap:{"x-default":"en-US",en:"en-US",pt:"pt-PT"},isDeployed:!0,isDevelopment:!1,langMap:{"bn-BD":"bn",en:"en-US",ga:"ga-IE",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"},langs:["af","ar","ast","az","bg","bn","bs","ca","cak","cs","da","de","dsb","el","en-CA","en-GB","en-US","es","et","eu","fa","fi","fr","fy-NL","ga-IE","he","hr","hsb","hu","ia","id","is","it","ja","ka","kab","ko","lt","lv","mk","mn","ms","mt","nb-NO","nl","nn-NO","pa-IN","pl","pt-BR","pt-PT","ro","ru","sk","sl","sq","sv-SE","te","th","tr","uk","ur","vi","zh-CN","zh-TW"],loggingLevel:"info",mozillaUserId:4757633,restrictSearchResultsToAppVersion:!0,rtlLangs:["ar","fa","he","ur"],staticPath:"/static-frontend/",trackingEnabled:!0,trackingId:"UA-36116321-7",trackingSendInitPageView:!0,trackingSendWebVitals:!0,unsupportedHrefLangs:["ast","cak","dsb","hsb","kab"],validClientAppUrlExceptions:["__frontend_heartbeat__","__frontend_lbheartbeat__","__frontend_version__","__version__","about","admin","apps","blocklist","blog","contribute.json","developer_agreement","developers","editors","google1f3e37b7351799a5.html","google231a41e803e464e9.html","jsi18n","review_guide","reviewers","robots.txt","services","sitemap.xml","static-frontend","static-server","statistics","update","user-media"],validClientApplications:["android","firefox"],validLocaleUrlExceptions:["__frontend_version__","__version__","blocklist","blog","contribute.json","downloads","google1f3e37b7351799a5.html","google231a41e803e464e9.html","robots.txt","services","sitemap.xml","static-frontend","static-server","update","user-media"],validTrailingSlashUrlExceptions:["/$lang/$clientApp/user/abuse","/$lang/$clientApp/user/rmlocale","/$lang/$clientApp/users/ajax","/$lang/$clientApp/users/delete","/$lang/$clientApp/users/edit","/$lang/$clientApp/users/login","/$lang/$clientApp/users/logout","/$lang/$clientApp/users/register","/$lang/about","/$lang/review_guide"]}),{},{client:!0,server:!1}))},2163:(e,t,n)=>{"use strict";n.d(t,{AT:()=>Ot,Ai:()=>ht,B2:()=>ye,B6:()=>St,BH:()=>fe,Bg:()=>Et,Bz:()=>X,C$:()=>Je,CK:()=>G,D6:()=>kt,DE:()=>I,Db:()=>l,Eb:()=>te,F6:()=>A,Fb:()=>p,Go:()=>Oe,Gz:()=>M,H0:()=>Re,HH:()=>Q,HR:()=>Pe,Hi:()=>g,IU:()=>re,J6:()=>Rt,JW:()=>$,Jp:()=>nt,Jt:()=>oe,Kj:()=>w,LF:()=>q,Mb:()=>bt,Mg:()=>S,Mj:()=>ue,Mr:()=>ft,My:()=>pe,N8:()=>et,NI:()=>ae,Nc:()=>xe,Nu:()=>se,Nx:()=>be,OC:()=>u,OO:()=>Pt,OS:()=>ke,Of:()=>_e,Oj:()=>Ge,Ow:()=>ee,Pn:()=>f,Po:()=>H,Pr:()=>wt,Px:()=>z,QZ:()=>at,Rq:()=>Te,So:()=>L,Sw:()=>lt,T3:()=>W,Tq:()=>B,U4:()=>$e,U9:()=>Ke,UZ:()=>v,Uw:()=>ot,VD:()=>V,VN:()=>De,V_:()=>dt,Vg:()=>P,W8:()=>It,Y4:()=>ve,YE:()=>Y,YM:()=>he,Yd:()=>U,Yp:()=>pt,ZP:()=>_,ZV:()=>Me,Zt:()=>Ve,_y:()=>T,a:()=>Xe,aS:()=>We,bp:()=>ut,cr:()=>Tt,cs:()=>ie,d$:()=>F,dG:()=>Ie,dJ:()=>Be,e0:()=>rt,eO:()=>ge,eV:()=>s,e_:()=>E,fq:()=>_t,g:()=>b,g$:()=>xt,gQ:()=>Le,hY:()=>C,hi:()=>je,iC:()=>Ct,i_:()=>qe,iq:()=>m,jM:()=>Fe,jV:()=>D,jm:()=>yt,jy:()=>vt,k_:()=>J,kc:()=>ce,kl:()=>we,lS:()=>gt,lm:()=>Ae,lx:()=>He,lz:()=>j,mD:()=>it,nl:()=>Ne,o6:()=>K,o_:()=>ze,op:()=>Z,pl:()=>R,pn:()=>me,q3:()=>h,rZ:()=>d,rr:()=>y,rs:()=>Ee,tX:()=>Se,u:()=>ne,uW:()=>a,uf:()=>Qe,ui:()=>Ye,un:()=>x,ut:()=>ct,vY:()=>tt,wZ:()=>N,wn:()=>le,xS:()=>mt,xZ:()=>de,xw:()=>c,z:()=>Ue,z1:()=>st,z8:()=>Ze,zK:()=>O,zi:()=>Ce,zl:()=>k});n(17918),n(99918),n(61511),n(67407),n(79249),n(14862),n(7283),n(83159),n(9536),n(75880),n(12978);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a="review_flag_reason_spam",u="review_flag_reason_language",c="review_flag_reason_bug_support",s="review_flag_reason_other",l=4,f=3,p=10,d="https://www.mozilla.org/firefox/download/thanks/",h="https://support.mozilla.org/kb/add-on-badges",y="DISABLED",m="DISABLING",v="DOWNLOADING",g="ENABLED",b="ENABLING",w="ERROR",O="INACTIVE",E="INSTALLED",_="INSTALLING",x="UNINSTALLED",S="UNINSTALLING",j="UNKNOWN",P="DOWNLOAD_FAILED",k="INSTALL_CANCELLED",I="INSTALL_FAILED",T="ERROR_CORRUPT_FILE",R="FATAL_INSTALL_ERROR",C="FATAL_UNINSTALL_ERROR",A="FATAL_ERROR",N="android",L="firefox",D="dictionary",M="extension",F="language",U="statictheme",B=[D,M,F,U],H={extensions:M,themes:U},q=Object.keys(H).reduce((function(e,t){return o(o({},e),{},i({},H[t],t))}),{}),z="INCOMPATIBLE_FIREFOX_FOR_IOS",G="INCOMPATIBLE_OVER_MAX_VERSION",W="INCOMPATIBLE_NOT_FIREFOX",V="INCOMPATIBLE_UNDER_MIN_VERSION",Y="INCOMPATIBLE_UNSUPPORTED_PLATFORM",Z="INCOMPATIBLE_ANDROID_UNSUPPORTED",$="addon",K=U,Q="invalid",X="collection",J="homepage-collection-featured",ee="featured",te="search",ne="rating",re="hotness",oe="tag-shelf-",ie="VIEW_CONTEXT_HOME",ae="VIEW_CONTEXT_LANGUAGE_TOOLS",ue="hotness",ce="rating",se="users",le="random",fe="relevance",pe="updated",de="recommended",he="".concat(de,",").concat(se),ye=he,me="added",ve="-added",ge="name",be="-popularity",we="CLEAR_ERROR",Oe="SET_ERROR",Ee="SET_ERROR_MESSAGE",_e="SET_VIEW_CONTEXT",xe=["onDownloadStarted","onDownloadProgress","onDownloadEnded","onDownloadCancelled","onDownloadFailed","onInstallStarted","onInstallProgress","onInstallEnded","onInstallCancelled","onInstallFailed"],Se="INSTALL_STATE",je="START_DOWNLOAD",Pe="DOWNLOAD_PROGRESS",ke="INSTALL_COMPLETE",Ie="UNINSTALL_COMPLETE",Te="INSTALL_ERROR",Re="enable",Ce="install",Ae="install:cancelled",Ne="install:download-failed",Le="install:started",De="uninstall",Me="AMO Addon Activation",Fe="AMO Theme Activation",Ue="AMO Addon Installs",Be="AMO Theme Installs",He="AMO Addon Installs Cancelled",qe="AMO Theme Installs Cancelled",ze="AMO Addon Installs Download Failed",Ge="AMO Theme Installs Download Failed",We="AMO Addon Installs Started",Ve="AMO Theme Installs Started",Ye="AMO Addon Uninstalls",Ze="AMO Theme Uninstalls",$e="SET_ENABLE_NOT_AVAILABLE",Ke={onDisabled:y,onEnabled:g,onInstalling:_,onInstalled:E,onUninstalling:S,onUninstalled:x,onEnabling:b,onDisabling:m},Qe="onInstalling",Xe="onOperationCancelled",Je="onUninstalled",et=Object.keys(Ke),tt="ERROR_UNKNOWN",nt=["ERROR_AUTHENTICATION_EXPIRED","ERROR_DECODING_SIGNATURE","ERROR_SIGNATURE_EXPIRED"],rt="ERROR_ADDON_DISABLED_BY_DEV",ot="ERROR_ADDON_DISABLED_BY_ADMIN",it="Addons:Edit",at="Addons:Review",ut="Stats:View",ct="Admin:Curation",st="Collections:Contribute",lt="featured-personas",ft="Addons:ContentReview",pt="Addons:ReviewUnlisted",dt="Ratings:Moderate",ht="Users:Edit",yt="*:*",mt="ReviewerTools:View",vt="Addons:RecommendedReview",gt="Addons:ThemeReview",bt="amo-request-id",wt="addons.mozilla.org",Ot="referral",Et="amo-fx-cta",_t="line",xt="recommended",St="sponsored",jt="spotlight",Pt="verified",kt=[_t,xt,Pt],It=[_t,xt,St,jt,Pt],Tt="badged",Rt="".concat(St,",").concat(Pt),Ct="amo"},9119:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});n(17918),n(99918),n(36353),n(67407),n(61511),n(79249),n(14862),n(7283),n(83159),n(9536),n(75880),n(12978);var r=n(18647),o=n(2163);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=null,s=null,l=null;c=n(88653),r.Z.get("enableRequestID")&&(s=n(97925)),r.Z.get("server")&&(l=n(92366));var f=c({level:r.Z.get("loggingLevel"),name:o.iC,timestamp:!l||function(){return',"time":'.concat(l())}});const p=["debug","error","fatal","info","trace","warn"].reduce((function(e,t){return a(a({},e),{},u({},t,(function(){for(var e=s&&s.get(o.Mb),n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e?f[t].apply(f,[{amo_request_id:e}].concat(r)):f[t].apply(f,r)})))}),{})},24579:(e,t)=>{"use strict";var n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");t.encode=function(e){if(0===e)return n[0];for(var t="";e>0;)t=n[e%62]+t,e=Math.floor(e/62);return t},t.decode=function(e){var t,n,r=0,o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),r+=(n-=n<58?48:n<91?29:87)*Math.pow(62,o-t-1);return r}},24920:(e,t)=>{"use strict";t.encode=function(e,t){let n=t.byCode;if(0===e)return n[0];for(var r="",o=t.length;e>0;)r=n[e%o]+r,e=Math.floor(e/o);return r},t.decode=function(e,t){var n,r=t.byChar,o=0,i=e.length,a=t.length;for(n=0;n<i;n++)o+=r[e[n]]*Math.pow(a,i-n-1);return o},t.indexCharset=function(e){var t,n,r={},o={},i=e.length;for(t=0;t<i;t++)n=e[t],r[t]=n,o[n]=t;return{byCode:r,byChar:o,length:i}}},1047:(e,t,n)=>{"use strict";var r=n(24579),o=n(24920),i={encode:r.encode,decode:r.decode,setCharacterSet:function(e){if(62!==e.length)throw Error("You must supply 62 characters.");var t,n,r={};for(t=0;t<e.length;t++){if(r[n=e[t]])throw Error("You must use unique characters.");r[n]=!0}e=o.indexCharset(e),i.encode=function(t){return o.encode(t,e)},i.decode=function(t){return o.decode(t,e)}}};e.exports=i},41550:(e,t)=>{"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],u=i[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),l=0,f=u>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,s[l++]=255&t);1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,u=0,c=r-o;u<c;u+=a)i.push(s(e,u,u+a>c?c:u+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=i.length;a<u;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(e,t,r){for(var o,i,a=[],u=t;u<r;u+=3)o=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(255&e[u+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},64942:(e,t,n)=>{var r;e=n.nmd(e);var o=function(e){"use strict";var t=1e7,n=9007199254740992,r=p(n),i="0123456789abcdefghijklmnopqrstuvwxyz",a="function"==typeof BigInt;function u(e,t,n,r){return void 0===e?u[0]:void 0!==t&&(10!=+t||n)?G(e,t,n,r):$(e)}function c(e,t){this.value=e,this.sign=t,this.isSmall=!1}function s(e){this.value=e,this.sign=e<0,this.isSmall=!0}function l(e){this.value=e}function f(e){return-n<e&&e<n}function p(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function d(e){h(e);var n=e.length;if(n<4&&T(e,r)<0)switch(n){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}return e}function h(e){for(var t=e.length;0===e[--t];);e.length=t+1}function y(e){for(var t=new Array(e),n=-1;++n<e;)t[n]=0;return t}function m(e){return e>0?Math.floor(e):Math.ceil(e)}function v(e,n){var r,o,i=e.length,a=n.length,u=new Array(i),c=0,s=t;for(o=0;o<a;o++)c=(r=e[o]+n[o]+c)>=s?1:0,u[o]=r-c*s;for(;o<i;)c=(r=e[o]+c)===s?1:0,u[o++]=r-c*s;return c>0&&u.push(c),u}function g(e,t){return e.length>=t.length?v(e,t):v(t,e)}function b(e,n){var r,o,i=e.length,a=new Array(i),u=t;for(o=0;o<i;o++)r=e[o]-u+n,n=Math.floor(r/u),a[o]=r-n*u,n+=1;for(;n>0;)a[o++]=n%u,n=Math.floor(n/u);return a}function w(e,n){var r,o,i=e.length,a=n.length,u=new Array(i),c=0,s=t;for(r=0;r<a;r++)(o=e[r]-c-n[r])<0?(o+=s,c=1):c=0,u[r]=o;for(r=a;r<i;r++){if(!((o=e[r]-c)<0)){u[r++]=o;break}o+=s,u[r]=o}for(;r<i;r++)u[r]=e[r];return h(u),u}function O(e,n,r){var o,i,a=e.length,u=new Array(a),l=-n,f=t;for(o=0;o<a;o++)i=e[o]+l,l=Math.floor(i/f),i%=f,u[o]=i<0?i+f:i;return"number"==typeof(u=d(u))?(r&&(u=-u),new s(u)):new c(u,r)}function E(e,n){var r,o,i,a,u=e.length,c=n.length,s=y(u+c),l=t;for(i=0;i<u;++i){a=e[i];for(var f=0;f<c;++f)r=a*n[f]+s[i+f],o=Math.floor(r/l),s[i+f]=r-o*l,s[i+f+1]+=o}return h(s),s}function _(e,n){var r,o,i=e.length,a=new Array(i),u=t,c=0;for(o=0;o<i;o++)r=e[o]*n+c,c=Math.floor(r/u),a[o]=r-c*u;for(;c>0;)a[o++]=c%u,c=Math.floor(c/u);return a}function x(e,t){for(var n=[];t-- >0;)n.push(0);return n.concat(e)}function S(e,t){var n=Math.max(e.length,t.length);if(n<=30)return E(e,t);n=Math.ceil(n/2);var r=e.slice(n),o=e.slice(0,n),i=t.slice(n),a=t.slice(0,n),u=S(o,a),c=S(r,i),s=S(g(o,r),g(a,i)),l=g(g(u,x(w(w(s,u),c),n)),x(c,2*n));return h(l),l}function j(e,n,r){return new c(e<t?_(n,e):E(n,p(e)),r)}function P(e){var n,r,o,i,a=e.length,u=y(a+a),c=t;for(o=0;o<a;o++){r=0-(i=e[o])*i;for(var s=o;s<a;s++)n=i*e[s]*2+u[o+s]+r,r=Math.floor(n/c),u[o+s]=n-r*c;u[o+a]=r}return h(u),u}function k(e,t){var n,r,o,i,a=e.length,u=y(a);for(o=0,n=a-1;n>=0;--n)o=(i=1e7*o+e[n])-(r=m(i/t))*t,u[n]=0|r;return[u,0|o]}function I(e,n){var r,o=$(n);if(a)return[new l(e.value/o.value),new l(e.value%o.value)];var i,f=e.value,v=o.value;if(0===v)throw new Error("Cannot divide by zero");if(e.isSmall)return o.isSmall?[new s(m(f/v)),new s(f%v)]:[u[0],e];if(o.isSmall){if(1===v)return[e,u[0]];if(-1==v)return[e.negate(),u[0]];var g=Math.abs(v);if(g<t){i=d((r=k(f,g))[0]);var b=r[1];return e.sign&&(b=-b),"number"==typeof i?(e.sign!==o.sign&&(i=-i),[new s(i),new s(b)]):[new c(i,e.sign!==o.sign),new s(b)]}v=p(g)}var O=T(f,v);if(-1===O)return[u[0],e];if(0===O)return[u[e.sign===o.sign?1:-1],u[0]];i=(r=f.length+v.length<=200?function(e,n){var r,o,i,a,u,c,s,l=e.length,f=n.length,p=t,h=y(n.length),m=n[f-1],v=Math.ceil(p/(2*m)),g=_(e,v),b=_(n,v);for(g.length<=l&&g.push(0),b.push(0),m=b[f-1],o=l-f;o>=0;o--){for(r=p-1,g[o+f]!==m&&(r=Math.floor((g[o+f]*p+g[o+f-1])/m)),i=0,a=0,c=b.length,u=0;u<c;u++)i+=r*b[u],s=Math.floor(i/p),a+=g[o+u]-(i-s*p),i=s,a<0?(g[o+u]=a+p,a=-1):(g[o+u]=a,a=0);for(;0!==a;){for(r-=1,i=0,u=0;u<c;u++)(i+=g[o+u]-p+b[u])<0?(g[o+u]=i+p,i=0):(g[o+u]=i,i=1);a+=i}h[o]=r}return g=k(g,v)[0],[d(h),d(g)]}(f,v):function(e,n){for(var r,o,i,a,u,c=e.length,s=n.length,l=[],f=[],p=t;c;)if(f.unshift(e[--c]),h(f),T(f,n)<0)l.push(0);else{i=f[(o=f.length)-1]*p+f[o-2],a=n[s-1]*p+n[s-2],o>s&&(i=(i+1)*p),r=Math.ceil(i/a);do{if(T(u=_(n,r),f)<=0)break;r--}while(r);l.push(r),f=w(f,u)}return l.reverse(),[d(l),d(f)]}(f,v))[0];var E=e.sign!==o.sign,x=r[1],S=e.sign;return"number"==typeof i?(E&&(i=-i),i=new s(i)):i=new c(i,E),"number"==typeof x?(S&&(x=-x),x=new s(x)):x=new c(x,S),[i,x]}function T(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}function R(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function C(e,t){for(var n,r,i,a=e.prev(),u=a,c=0;u.isEven();)u=u.divide(2),c++;e:for(r=0;r<t.length;r++)if(!e.lesser(t[r])&&!(i=o(t[r]).modPow(u,e)).isUnit()&&!i.equals(a)){for(n=c-1;0!=n;n--){if((i=i.square().mod(e)).isUnit())return!1;if(i.equals(a))continue e}return!1}return!0}c.prototype=Object.create(u.prototype),s.prototype=Object.create(u.prototype),l.prototype=Object.create(u.prototype),c.prototype.add=function(e){var t=$(e);if(this.sign!==t.sign)return this.subtract(t.negate());var n=this.value,r=t.value;return t.isSmall?new c(b(n,Math.abs(r)),this.sign):new c(g(n,r),this.sign)},c.prototype.plus=c.prototype.add,s.prototype.add=function(e){var t=$(e),n=this.value;if(n<0!==t.sign)return this.subtract(t.negate());var r=t.value;if(t.isSmall){if(f(n+r))return new s(n+r);r=p(Math.abs(r))}return new c(b(r,Math.abs(n)),n<0)},s.prototype.plus=s.prototype.add,l.prototype.add=function(e){return new l(this.value+$(e).value)},l.prototype.plus=l.prototype.add,c.prototype.subtract=function(e){var t=$(e);if(this.sign!==t.sign)return this.add(t.negate());var n=this.value,r=t.value;return t.isSmall?O(n,Math.abs(r),this.sign):function(e,t,n){var r;return T(e,t)>=0?r=w(e,t):(r=w(t,e),n=!n),"number"==typeof(r=d(r))?(n&&(r=-r),new s(r)):new c(r,n)}(n,r,this.sign)},c.prototype.minus=c.prototype.subtract,s.prototype.subtract=function(e){var t=$(e),n=this.value;if(n<0!==t.sign)return this.add(t.negate());var r=t.value;return t.isSmall?new s(n-r):O(r,Math.abs(n),n>=0)},s.prototype.minus=s.prototype.subtract,l.prototype.subtract=function(e){return new l(this.value-$(e).value)},l.prototype.minus=l.prototype.subtract,c.prototype.negate=function(){return new c(this.value,!this.sign)},s.prototype.negate=function(){var e=this.sign,t=new s(-this.value);return t.sign=!e,t},l.prototype.negate=function(){return new l(-this.value)},c.prototype.abs=function(){return new c(this.value,!1)},s.prototype.abs=function(){return new s(Math.abs(this.value))},l.prototype.abs=function(){return new l(this.value>=0?this.value:-this.value)},c.prototype.multiply=function(e){var n,r,o,i=$(e),a=this.value,s=i.value,l=this.sign!==i.sign;if(i.isSmall){if(0===s)return u[0];if(1===s)return this;if(-1===s)return this.negate();if((n=Math.abs(s))<t)return new c(_(a,n),l);s=p(n)}return r=a.length,o=s.length,new c(-.012*r-.012*o+15e-6*r*o>0?S(a,s):E(a,s),l)},c.prototype.times=c.prototype.multiply,s.prototype._multiplyBySmall=function(e){return f(e.value*this.value)?new s(e.value*this.value):j(Math.abs(e.value),p(Math.abs(this.value)),this.sign!==e.sign)},c.prototype._multiplyBySmall=function(e){return 0===e.value?u[0]:1===e.value?this:-1===e.value?this.negate():j(Math.abs(e.value),this.value,this.sign!==e.sign)},s.prototype.multiply=function(e){return $(e)._multiplyBySmall(this)},s.prototype.times=s.prototype.multiply,l.prototype.multiply=function(e){return new l(this.value*$(e).value)},l.prototype.times=l.prototype.multiply,c.prototype.square=function(){return new c(P(this.value),!1)},s.prototype.square=function(){var e=this.value*this.value;return f(e)?new s(e):new c(P(p(Math.abs(this.value))),!1)},l.prototype.square=function(e){return new l(this.value*this.value)},c.prototype.divmod=function(e){var t=I(this,e);return{quotient:t[0],remainder:t[1]}},l.prototype.divmod=s.prototype.divmod=c.prototype.divmod,c.prototype.divide=function(e){return I(this,e)[0]},l.prototype.over=l.prototype.divide=function(e){return new l(this.value/$(e).value)},s.prototype.over=s.prototype.divide=c.prototype.over=c.prototype.divide,c.prototype.mod=function(e){return I(this,e)[1]},l.prototype.mod=l.prototype.remainder=function(e){return new l(this.value%$(e).value)},s.prototype.remainder=s.prototype.mod=c.prototype.remainder=c.prototype.mod,c.prototype.pow=function(e){var t,n,r,o=$(e),i=this.value,a=o.value;if(0===a)return u[1];if(0===i)return u[0];if(1===i)return u[1];if(-1===i)return o.isEven()?u[1]:u[-1];if(o.sign)return u[0];if(!o.isSmall)throw new Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&f(t=Math.pow(i,a)))return new s(m(t));for(n=this,r=u[1];!0&a&&(r=r.times(n),--a),0!==a;)a/=2,n=n.square();return r},s.prototype.pow=c.prototype.pow,l.prototype.pow=function(e){var t=$(e),n=this.value,r=t.value,o=BigInt(0),i=BigInt(1),a=BigInt(2);if(r===o)return u[1];if(n===o)return u[0];if(n===i)return u[1];if(n===BigInt(-1))return t.isEven()?u[1]:u[-1];if(t.isNegative())return new l(o);for(var c=this,s=u[1];(r&i)===i&&(s=s.times(c),--r),r!==o;)r/=a,c=c.square();return s},c.prototype.modPow=function(e,t){if(e=$(e),(t=$(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var n=u[1],r=this.mod(t);for(e.isNegative()&&(e=e.multiply(u[-1]),r=r.modInv(t));e.isPositive();){if(r.isZero())return u[0];e.isOdd()&&(n=n.multiply(r).mod(t)),e=e.divide(2),r=r.square().mod(t)}return n},l.prototype.modPow=s.prototype.modPow=c.prototype.modPow,c.prototype.compareAbs=function(e){var t=$(e),n=this.value,r=t.value;return t.isSmall?1:T(n,r)},s.prototype.compareAbs=function(e){var t=$(e),n=Math.abs(this.value),r=t.value;return t.isSmall?n===(r=Math.abs(r))?0:n>r?1:-1:-1},l.prototype.compareAbs=function(e){var t=this.value,n=$(e).value;return(t=t>=0?t:-t)===(n=n>=0?n:-n)?0:t>n?1:-1},c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=$(e),n=this.value,r=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:T(n,r)*(this.sign?-1:1)},c.prototype.compareTo=c.prototype.compare,s.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=$(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0!==t.sign?n<0?-1:1:n<0?1:-1},s.prototype.compareTo=s.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=$(e).value;return t===n?0:t>n?1:-1},l.prototype.compareTo=l.prototype.compare,c.prototype.equals=function(e){return 0===this.compare(e)},l.prototype.eq=l.prototype.equals=s.prototype.eq=s.prototype.equals=c.prototype.eq=c.prototype.equals,c.prototype.notEquals=function(e){return 0!==this.compare(e)},l.prototype.neq=l.prototype.notEquals=s.prototype.neq=s.prototype.notEquals=c.prototype.neq=c.prototype.notEquals,c.prototype.greater=function(e){return this.compare(e)>0},l.prototype.gt=l.prototype.greater=s.prototype.gt=s.prototype.greater=c.prototype.gt=c.prototype.greater,c.prototype.lesser=function(e){return this.compare(e)<0},l.prototype.lt=l.prototype.lesser=s.prototype.lt=s.prototype.lesser=c.prototype.lt=c.prototype.lesser,c.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},l.prototype.geq=l.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals,c.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},l.prototype.leq=l.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals,c.prototype.isEven=function(){return 0==(1&this.value[0])},s.prototype.isEven=function(){return 0==(1&this.value)},l.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},c.prototype.isOdd=function(){return 1==(1&this.value[0])},s.prototype.isOdd=function(){return 1==(1&this.value)},l.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},c.prototype.isPositive=function(){return!this.sign},s.prototype.isPositive=function(){return this.value>0},l.prototype.isPositive=s.prototype.isPositive,c.prototype.isNegative=function(){return this.sign},s.prototype.isNegative=function(){return this.value<0},l.prototype.isNegative=s.prototype.isNegative,c.prototype.isUnit=function(){return!1},s.prototype.isUnit=function(){return 1===Math.abs(this.value)},l.prototype.isUnit=function(){return this.abs().value===BigInt(1)},c.prototype.isZero=function(){return!1},s.prototype.isZero=function(){return 0===this.value},l.prototype.isZero=function(){return this.value===BigInt(0)},c.prototype.isDivisibleBy=function(e){var t=$(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},l.prototype.isDivisibleBy=s.prototype.isDivisibleBy=c.prototype.isDivisibleBy,c.prototype.isPrime=function(t){var n=R(this);if(n!==e)return n;var r=this.abs(),i=r.bitLength();if(i<=64)return C(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var a=Math.log(2)*i.toJSNumber(),u=Math.ceil(!0===t?2*Math.pow(a,2):a),c=[],s=0;s<u;s++)c.push(o(s+2));return C(r,c)},l.prototype.isPrime=s.prototype.isPrime=c.prototype.isPrime,c.prototype.isProbablePrime=function(t,n){var r=R(this);if(r!==e)return r;for(var i=this.abs(),a=t===e?5:t,u=[],c=0;c<a;c++)u.push(o.randBetween(2,i.minus(2),n));return C(i,u)},l.prototype.isProbablePrime=s.prototype.isProbablePrime=c.prototype.isProbablePrime,c.prototype.modInv=function(e){for(var t,n,r,i=o.zero,a=o.one,u=$(e),c=this.abs();!c.isZero();)t=u.divide(c),n=i,r=u,i=a,u=c,a=n.subtract(t.multiply(a)),c=r.subtract(t.multiply(c));if(!u.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");return-1===i.compare(0)&&(i=i.add(e)),this.isNegative()?i.negate():i},l.prototype.modInv=s.prototype.modInv=c.prototype.modInv,c.prototype.next=function(){var e=this.value;return this.sign?O(e,1,this.sign):new c(b(e,1),this.sign)},s.prototype.next=function(){var e=this.value;return e+1<n?new s(e+1):new c(r,!1)},l.prototype.next=function(){return new l(this.value+BigInt(1))},c.prototype.prev=function(){var e=this.value;return this.sign?new c(b(e,1),!0):O(e,1,this.sign)},s.prototype.prev=function(){var e=this.value;return e-1>-n?new s(e-1):new c(r,!0)},l.prototype.prev=function(){return new l(this.value-BigInt(1))};for(var A=[1];2*A[A.length-1]<=t;)A.push(2*A[A.length-1]);var N=A.length,L=A[N-1];function D(e){return Math.abs(e)<=t}function M(e,t,n){t=$(t);for(var r=e.isNegative(),i=t.isNegative(),a=r?e.not():e,u=i?t.not():t,c=0,s=0,l=null,f=null,p=[];!a.isZero()||!u.isZero();)c=(l=I(a,L))[1].toJSNumber(),r&&(c=L-1-c),s=(f=I(u,L))[1].toJSNumber(),i&&(s=L-1-s),a=l[0],u=f[0],p.push(n(c,s));for(var d=0!==n(r?1:0,i?1:0)?o(-1):o(0),h=p.length-1;h>=0;h-=1)d=d.multiply(L).add(o(p[h]));return d}c.prototype.shiftLeft=function(e){var t=$(e).toJSNumber();if(!D(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=N;)n=n.multiply(L),t-=N-1;return n.multiply(A[t])},l.prototype.shiftLeft=s.prototype.shiftLeft=c.prototype.shiftLeft,c.prototype.shiftRight=function(e){var t,n=$(e).toJSNumber();if(!D(n))throw new Error(String(n)+" is too large for shifting.");if(n<0)return this.shiftLeft(-n);for(var r=this;n>=N;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;r=(t=I(r,L))[1].isNegative()?t[0].prev():t[0],n-=N-1}return(t=I(r,A[n]))[1].isNegative()?t[0].prev():t[0]},l.prototype.shiftRight=s.prototype.shiftRight=c.prototype.shiftRight,c.prototype.not=function(){return this.negate().prev()},l.prototype.not=s.prototype.not=c.prototype.not,c.prototype.and=function(e){return M(this,e,(function(e,t){return e&t}))},l.prototype.and=s.prototype.and=c.prototype.and,c.prototype.or=function(e){return M(this,e,(function(e,t){return e|t}))},l.prototype.or=s.prototype.or=c.prototype.or,c.prototype.xor=function(e){return M(this,e,(function(e,t){return e^t}))},l.prototype.xor=s.prototype.xor=c.prototype.xor;var F=1<<30;function U(e){var n=e.value,r="number"==typeof n?n|F:"bigint"==typeof n?n|BigInt(F):n[0]+n[1]*t|1073758208;return r&-r}function B(e,t){if(t.compareTo(e)<=0){var n=B(e,t.square(t)),r=n.p,i=n.e,a=r.multiply(t);return a.compareTo(e)<=0?{p:a,e:2*i+1}:{p:r,e:2*i}}return{p:o(1),e:0}}function H(e,t){return e=$(e),t=$(t),e.greater(t)?e:t}function q(e,t){return e=$(e),t=$(t),e.lesser(t)?e:t}function z(e,t){if(e=$(e).abs(),t=$(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n,r,o=u[1];e.isEven()&&t.isEven();)n=q(U(e),U(t)),e=e.divide(n),t=t.divide(n),o=o.multiply(n);for(;e.isEven();)e=e.divide(U(e));do{for(;t.isEven();)t=t.divide(U(t));e.greater(t)&&(r=t,t=e,e=r),t=t.subtract(e)}while(!t.isZero());return o.isUnit()?e:e.multiply(o)}c.prototype.bitLength=function(){var e=this;return e.compareTo(o(0))<0&&(e=e.negate().subtract(o(1))),0===e.compareTo(o(0))?o(0):o(B(e,o(2)).e).add(o(1))},l.prototype.bitLength=s.prototype.bitLength=c.prototype.bitLength;var G=function(e,t,n,r){n=n||i,e=String(e),r||(e=e.toLowerCase(),n=n.toLowerCase());var o,a=e.length,u=Math.abs(t),c={};for(o=0;o<n.length;o++)c[n[o]]=o;for(o=0;o<a;o++){if("-"!==(f=e[o])&&(f in c&&c[f]>=u)){if("1"===f&&1===u)continue;throw new Error(f+" is not a valid digit in base "+t+".")}}t=$(t);var s=[],l="-"===e[0];for(o=l?1:0;o<e.length;o++){var f;if((f=e[o])in c)s.push($(c[f]));else{if("<"!==f)throw new Error(f+" is not a valid character");var p=o;do{o++}while(">"!==e[o]&&o<e.length);s.push($(e.slice(p+1,o)))}}return W(s,t,l)};function W(e,t,n){var r,o=u[0],i=u[1];for(r=e.length-1;r>=0;r--)o=o.add(e[r].times(i)),i=i.times(t);return n?o.negate():o}function V(e,t){if((t=o(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var r=!1;if(e.isNegative()&&t.isPositive()&&(r=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:r};for(var i,a=[],u=e;u.isNegative()||u.compareAbs(t)>=0;){i=u.divmod(t),u=i.quotient;var c=i.remainder;c.isNegative()&&(c=t.minus(c).abs(),u=u.next()),a.push(c.toJSNumber())}return a.push(u.toJSNumber()),{value:a.reverse(),isNegative:r}}function Y(e,t,n){var r=V(e,t);return(r.isNegative?"-":"")+r.value.map((function(e){return function(e,t){return e<(t=t||i).length?t[e]:"<"+e+">"}(e,n)})).join("")}function Z(e){if(f(+e)){var t=+e;if(t===m(t))return a?new l(BigInt(t)):new s(t);throw new Error("Invalid integer: "+e)}var n="-"===e[0];n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw new Error("Invalid integer: "+r.join("e"));if(2===r.length){var o=r[1];if("+"===o[0]&&(o=o.slice(1)),(o=+o)!==m(o)||!f(o))throw new Error("Invalid integer: "+o+" is not a valid exponent.");var i=r[0],u=i.indexOf(".");if(u>=0&&(o-=i.length-u-1,i=i.slice(0,u)+i.slice(u+1)),o<0)throw new Error("Cannot include negative exponent part for integers");e=i+=new Array(o+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(a)return new l(BigInt(n?"-"+e:e));for(var p=[],d=e.length,y=d-7;d>0;)p.push(+e.slice(y,d)),(y-=7)<0&&(y=0),d-=7;return h(p),new c(p,n)}function $(e){return"number"==typeof e?function(e){if(a)return new l(BigInt(e));if(f(e)){if(e!==m(e))throw new Error(e+" is not an integer.");return new s(e)}return Z(e.toString())}(e):"string"==typeof e?Z(e):"bigint"==typeof e?new l(e):e}c.prototype.toArray=function(e){return V(this,e)},s.prototype.toArray=function(e){return V(this,e)},l.prototype.toArray=function(e){return V(this,e)},c.prototype.toString=function(t,n){if(t===e&&(t=10),10!==t)return Y(this,t,n);for(var r,o=this.value,i=o.length,a=String(o[--i]);--i>=0;)r=String(o[i]),a+="0000000".slice(r.length)+r;return(this.sign?"-":"")+a},s.prototype.toString=function(t,n){return t===e&&(t=10),10!=t?Y(this,t,n):String(this.value)},l.prototype.toString=s.prototype.toString,l.prototype.toJSON=c.prototype.toJSON=s.prototype.toJSON=function(){return this.toString()},c.prototype.valueOf=function(){return parseInt(this.toString(),10)},c.prototype.toJSNumber=c.prototype.valueOf,s.prototype.valueOf=function(){return this.value},s.prototype.toJSNumber=s.prototype.valueOf,l.prototype.valueOf=l.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var K=0;K<1e3;K++)u[K]=$(K),K>0&&(u[-K]=$(-K));return u.one=u[1],u.zero=u[0],u.minusOne=u[-1],u.max=H,u.min=q,u.gcd=z,u.lcm=function(e,t){return e=$(e).abs(),t=$(t).abs(),e.divide(z(e,t)).multiply(t)},u.isInstance=function(e){return e instanceof c||e instanceof s||e instanceof l},u.randBetween=function(e,n,r){e=$(e),n=$(n);var o=r||Math.random,i=q(e,n),a=H(e,n).subtract(i).add(1);if(a.isSmall)return i.add(Math.floor(o()*a));for(var c=V(a,t).value,s=[],l=!0,f=0;f<c.length;f++){var p=l?c[f]:t,d=m(o()*p);s.push(d),d<p&&(l=!1)}return i.add(u.fromArray(s,t,!1))},u.fromArray=function(e,t,n){return W(e.map($),$(t||10),n)},u}();e.hasOwnProperty("exports")&&(e.exports=o),void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)},16274:(e,t,n)=>{"use strict";var r=n(41550),o=n(21706),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;var a=2147483647;function u(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|y(e,t),r=u(n),o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){var t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);var o=function(e){if(c.isBuffer(e)){var t=0|h(e.length),n=u(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?u(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return l(e),u(e<0?0:0|h(e))}function p(e){for(var t=e.length<0?0:0|h(e.length),n=u(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function y(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(o)return r?-1:F(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return j(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),q(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,a=1,u=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,c/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<u;i++)if(s(e,i)===s(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+c>u&&(n=u-c),i=n;i>=0;i--){for(var f=!0,p=0;p<c;p++)if(s(e,i+p)!==s(t,p)){f=!1;break}if(f)return i}return-1}function w(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a<r;++a){var u=parseInt(t.substr(2*a,2),16);if(q(u))return a;e[n+a]=u}return a}function O(e,t,n,r){return B(F(t,e.length-n),e,n,r)}function E(e,t,n,r){return B(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return B(U(t),e,n,r)}function x(e,t,n,r){return B(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function j(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,u,c,s=e[o],l=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(l=s);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&s)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&s)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(c=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}(r)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!c.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?u(e):void 0!==t?"string"==typeof n?u(e).fill(t,n):u(e).fill(t):u(e)}(e,t,n)},c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(H(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),H(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(H(i,Uint8Array))o+i.length>r.length?c.from(i).copy(r,o):Uint8Array.prototype.set.call(r,i,o);else{if(!c.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o)}o+=i.length}return r},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?j(this,0,e):m.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,o){if(H(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(i,a),s=this.slice(r,o),l=e.slice(t,n),f=0;f<u;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function k(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=z[e[i]];return o}function R(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function C(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,i){return t=+t,n>>>=0,i||N(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,i){return t=+t,n>>>=0,i||N(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||C(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||A(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||A(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);A(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===u&&0!==this[t+i-1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);A(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:c.from(e,r),u=a.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%u]}return this};var M=/[^+/0-9A-Za-z-_]/g;function F(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}var z=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},77352:(e,t,n)=>{"use strict";var r=n(13049),o=n(89193),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},89193:(e,t,n)=>{"use strict";var r=n(92502),o=n(13049),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var t=u(r,a,arguments);if(c&&s){var n=c(t,"length");n.configurable&&s(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var f=function(){return u(r,i,arguments)};s?s(e.exports,"apply",{value:f}):e.exports.apply=f},10166:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var u in n)r.call(n,u)&&n[u]&&e.push(u);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},29343:(e,t,n)=>{"use strict";n.d(t,{f9:()=>b,IV:()=>w});var r,o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=["",""],o=["",""],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}})));function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}const c=function(){function e(){for(var t=this,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return u(this,e),this.tag=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return"function"==typeof e?t.interimTag.bind(t,e):"string"==typeof e?t.transformEndResult(e):(e=e.map(t.transformString.bind(t)),t.transformEndResult(e.reduce(t.processSubstitutions.bind(t,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map((function(e){return"function"==typeof e?e():e})),this.tag}return i(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return this.tag(a,e.apply(void 0,[t].concat(r)))}},{key:"processSubstitutions",value:function(e,t,n){var r=this.transformSubstitution(e.shift(),t);return"".concat(t,r,n)}},{key:"transformString",value:function(e){return this.transformers.reduce((function(e,t){return t.onString?t.onString(e):e}),e)}},{key:"transformSubstitution",value:function(e,t){return this.transformers.reduce((function(e,n){return n.onSubstitution?n.onSubstitution(e,t):e}),e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce((function(e,t){return t.onEndResult?t.onEndResult(e):e}),e)}}]),e}();var s={separator:"",conjunction:"",serial:!1};const l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,o=e.separator,i=e.conjunction,a=e.serial,u=n.match(/(\n?[^\S\n]+)$/);if(t=u?t.join(o+u[1]):t.join(o+" "),i&&r>1){var c=t.lastIndexOf(o);t=t.slice(0,c)+(a?o:"")+" "+i+t.slice(c+1)}}return t}}};function f(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}const p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,f(n.map((function(e){return e.length}))));if(r){var o=new RegExp("^.{"+r+"}","gm");return t.replace(o,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}};const d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}};new c(l({separator:","}),p,d);new c(l({separator:",",conjunction:"and"}),p,d);new c(l({separator:",",conjunction:"or"}),p,d);const h=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}};var y=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e};const m=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(y):y(e)?e:""}}};new c(h("\n"),m,l,p,d);const v=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}};new c(h("\n"),l,p,d,v(/&/g,"&amp;"),v(/</g,"&lt;"),v(/>/g,"&gt;"),v(/"/g,"&quot;"),v(/'/g,"&#x27;"),v(/`/g,"&#x60;"));const g=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}};const b=new c(g(/(?:\n(?:\s*))+/g," "),d);const w=new c(g(/(?:\n\s*)/g,""),d);new c(l({separator:","}),g(/(?:\s+)/g," "),d);new c(l({separator:",",conjunction:"or"}),g(/(?:\s+)/g," "),d);new c(l({separator:",",conjunction:"and"}),g(/(?:\s+)/g," "),d);new c(l,p,d);new c(l,g(/(?:\s+)/g," "),d);new c(p,d);new c(p("all"),d)},78695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(84258),a=f(i),u=f(n(53486)),c=n(72466),s=n(91499),l=n(35052);function f(e){return e&&e.__esModule?e:{default:e}}var p=function(e){var t=e.getIn,n=e.toJS,r=function(e){function r(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));i.inTimeTravelling=!1,i.unsubscribe=o.store.subscribe((function(){var r=n(t(o.store.getState(),["router","location"])),a=r.pathname,u=r.search,c=r.hash,s=e.history.location,l=s.pathname,f=s.search,p=s.hash;l===a&&f===u&&p===c||(i.inTimeTravelling=!0,e.history.push({pathname:a,search:u,hash:c}))}));var a=function(t,n){i.inTimeTravelling?i.inTimeTravelling=!1:e.onLocationChanged(t,n)};return i.unlisten=e.history.listen(a),a(e.history.location,e.history.action),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),o(r,[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.history,n=e.children;return O("React").createElement(O("Router"),{history:t},n)}}]),r}(O("Component"));r.contextTypes={store:O("PropTypes").shape({getState:O("PropTypes").func.isRequired,subscribe:O("PropTypes").func.isRequired}).isRequired},r.propTypes={history:O("PropTypes").shape({action:O("PropTypes").string.isRequired,listen:O("PropTypes").func.isRequired,location:O("PropTypes").object.isRequired,push:O("PropTypes").func.isRequired}).isRequired,location:O("PropTypes").oneOfType([O("PropTypes").object,O("PropTypes").string]).isRequired,action:O("PropTypes").string.isRequired,basename:O("PropTypes").string,children:O("PropTypes").oneOfType([O("PropTypes").func,O("PropTypes").node]),onLocationChanged:O("PropTypes").func.isRequired};return O("connect")((function(e){return{action:t(e,["router","action"]),location:t(e,["router","location"])}}),(function(e){return{onLocationChanged:function(t,n){return e(O("onLocationChanged")(t,n))}}}))(r)};function d(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=O("createConnectedRouter");var h,y=null;function m(){if(null===y){var e=d();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),y=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return y}function v(){var e=d();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function g(){var e=m(),t=v(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(h=d()).__rewire_reset_all__||(h.__rewire_reset_all__=function(){h.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var b="__INTENTIONAL_UNDEFINED__",w={};function O(e){var t=g();if(void 0===t[e])return function(e){switch(e){case"Component":return i.Component;case"PropTypes":return u.default;case"onLocationChanged":return l.onLocationChanged;case"connect":return c.connect;case"createConnectedRouter":return p;case"React":return a.default;case"Router":return s.Router}return}(e);var n=t[e];return n===b?void 0:n}function E(e,t){var n=g();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?b:t,function(){_(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function _(e){var t=g();delete t[e],0==Object.keys(t).length&&delete v()[m]}function x(e){var t=g(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function e(e,t){Object.defineProperty(w,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",O),e("__GetDependency__",O),e("__Rewire__",E),e("__set__",E),e("__reset__",_),e("__ResetDependency__",_),e("__with__",x)}();var S=r(p);function j(e,t){Object.defineProperty(p,e,{value:t,enumerable:!1,configurable:!0})}"object"!==S&&"function"!==S||!Object.isExtensible(p)||(j("__get__",O),j("__GetDependency__",O),j("__Rewire__",E),j("__set__",E),j("__reset__",_),j("__ResetDependency__",_),j("__with__",x),j("__RewireAPI__",w)),t.__get__=O,t.__GetDependency__=O,t.__Rewire__=E,t.__set__=E,t.__ResetDependency__=_,t.__RewireAPI__=w},35052:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=t.LOCATION_CHANGE="@@router/LOCATION_CHANGE",i=(t.onLocationChanged=function(e,t){return{type:w("LOCATION_CHANGE"),payload:{location:e,action:t}}},t.CALL_HISTORY_METHOD="@@router/CALL_HISTORY_METHOD"),a=function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return{type:w("CALL_HISTORY_METHOD"),payload:{method:e,args:n}}}},u=t.push=w("updateLocation")("push"),c=t.replace=w("updateLocation")("replace"),s=t.go=w("updateLocation")("go"),l=t.goBack=w("updateLocation")("goBack"),f=t.goForward=w("updateLocation")("goForward");t.routerActions={push:w("push"),replace:w("replace"),go:w("go"),goBack:w("goBack"),goForward:w("goForward")};function p(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}var d,h=null;function y(){if(null===h){var e=p();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),h=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return h}function m(){var e=p();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function v(){var e=y(),t=m(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(d=p()).__rewire_reset_all__||(d.__rewire_reset_all__=function(){d.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var g="__INTENTIONAL_UNDEFINED__",b={};function w(e){var t=v();if(void 0===t[e])return function(e){switch(e){case"LOCATION_CHANGE":return o;case"CALL_HISTORY_METHOD":return i;case"updateLocation":return a;case"push":return u;case"replace":return c;case"go":return s;case"goBack":return l;case"goForward":return f}return}(e);var n=t[e];return n===g?void 0:n}function O(e,t){var n=v();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?g:t,function(){E(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function E(e){var t=v();delete t[e],0==Object.keys(t).length&&delete m()[y]}function _(e){var t=v(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function e(e,t){Object.defineProperty(b,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",w),e("__GetDependency__",w),e("__Rewire__",O),e("__set__",O),e("__reset__",E),e("__ResetDependency__",E),e("__with__",_)}(),t.__get__=w,t.__GetDependency__=w,t.__Rewire__=O,t.__set__=O,t.__ResetDependency__=E,t.__RewireAPI__=b,t.default=b},53214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(35052)),a=l(n(78695)),u=l(n(66370)),c=l(n(90827)),s=l(n(92661));function l(e){return e&&e.__esModule?e:{default:e}}var f=function(e){return o({},w("actions"),w("createSelectors")(e),{ConnectedRouter:w("createConnectedRouter")(e),connectRouter:w("createConnectRouter")(e),routerMiddleware:w("routerMiddleware")})};function p(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=w("createAll");var d,h=null;function y(){if(null===h){var e=p();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),h=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return h}function m(){var e=p();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function v(){var e=y(),t=m(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(d=p()).__rewire_reset_all__||(d.__rewire_reset_all__=function(){d.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var g="__INTENTIONAL_UNDEFINED__",b={};function w(e){var t=v();if(void 0===t[e])return function(e){switch(e){case"actions":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(e){return"__get__"!==e&&"__set__"!==e&&"__reset__"!==e&&"__with__"!==e&&"__GetDependency__"!==e&&"__Rewire__"!==e&&"__ResetDependency__"!==e&&"__RewireAPI__"!==e})).reduce((function(t,n){return t[n]=e[n],t}),{})}(i);case"createSelectors":return s.default;case"createConnectedRouter":return a.default;case"createConnectRouter":return u.default;case"routerMiddleware":return c.default;case"createAll":return f}return}(e);var n=t[e];return n===g?void 0:n}function O(e,t){var n=v();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?g:t,function(){E(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function E(e){var t=v();delete t[e],0==Object.keys(t).length&&delete m()[y]}function _(e){var t=v(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function e(e,t){Object.defineProperty(b,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",w),e("__GetDependency__",w),e("__Rewire__",O),e("__set__",O),e("__reset__",E),e("__ResetDependency__",E),e("__with__",_)}();var x=r(f);function S(e,t){Object.defineProperty(f,e,{value:t,enumerable:!1,configurable:!0})}"object"!==x&&"function"!==x||!Object.isExtensible(f)||(S("__get__",w),S("__GetDependency__",w),S("__Rewire__",O),S("__set__",O),S("__reset__",E),S("__ResetDependency__",E),S("__with__",_),S("__RewireAPI__",b)),t.__get__=w,t.__GetDependency__=w,t.__Rewire__=O,t.__set__=O,t.__ResetDependency__=E,t.__RewireAPI__=b},99133:(e,t,n)=>{"use strict";t.zk=t.iz=t.xI=t.VF=t.nk=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=a(n(53214)),i=a(n(4674));function a(e){return e&&e.__esModule?e:{default:e}}var u=T("createAll")(T("plainStructure")),c=u.LOCATION_CHANGE,s=u.CALL_HISTORY_METHOD,l=u.push,f=u.replace,p=u.go,d=u.goBack,h=u.goForward,y=u.routerActions,m=u.ConnectedRouter,v=u.connectRouter,g=u.routerMiddleware,b=u.getLocation,w=u.getAction,O=u.createMatchSelector;function E(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.nk=c,t.VF=l,t.xI=m,t.iz=v,t.zk=g;var _,x=null;function S(){if(null===x){var e=E();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),x=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return x}function j(){var e=E();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function P(){var e=S(),t=j(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(_=E()).__rewire_reset_all__||(_.__rewire_reset_all__=function(){_.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var k="__INTENTIONAL_UNDEFINED__",I={};function T(e){var t=P();if(void 0===t[e])return function(e){switch(e){case"createAll":return o.default;case"plainStructure":return i.default}return}(e);var n=t[e];return n===k?void 0:n}function R(e,t){var n=P();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?k:t,function(){C(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function C(e){var t=P();delete t[e],0==Object.keys(t).length&&delete j()[S]}function A(e){var t=P(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function e(e,t){Object.defineProperty(I,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",T),e("__GetDependency__",T),e("__Rewire__",R),e("__set__",R),e("__reset__",C),e("__ResetDependency__",C),e("__with__",A)}()},90827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(35052);var i=function(e){return function(t){return function(t){return function(n){if(n.type!==h("CALL_HISTORY_METHOD"))return t(n);var r=n.payload,o=r.method,i=r.args;e[o].apply(e,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(i))}}}};function a(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=h("routerMiddleware");var u,c=null;function s(){if(null===c){var e=a();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),c=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return c}function l(){var e=a();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function f(){var e=s(),t=l(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(u=a()).__rewire_reset_all__||(u.__rewire_reset_all__=function(){u.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var p="__INTENTIONAL_UNDEFINED__",d={};function h(e){var t=f();if(void 0===t[e])return function(e){switch(e){case"CALL_HISTORY_METHOD":return o.CALL_HISTORY_METHOD;case"routerMiddleware":return i}return}(e);var n=t[e];return n===p?void 0:n}function y(e,t){var n=f();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?p:t,function(){m(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function m(e){var t=f();delete t[e],0==Object.keys(t).length&&delete l()[s]}function v(e){var t=f(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function e(e,t){Object.defineProperty(d,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",h),e("__GetDependency__",h),e("__Rewire__",y),e("__set__",y),e("__reset__",m),e("__ResetDependency__",m),e("__with__",v)}();var g=r(i);function b(e,t){Object.defineProperty(i,e,{value:t,enumerable:!1,configurable:!0})}"object"!==g&&"function"!==g||!Object.isExtensible(i)||(b("__get__",h),b("__GetDependency__",h),b("__Rewire__",y),b("__set__",y),b("__reset__",m),b("__ResetDependency__",m),b("__with__",v),b("__RewireAPI__",d)),t.__get__=h,t.__GetDependency__=h,t.__Rewire__=y,t.__set__=y,t.__ResetDependency__=m,t.__RewireAPI__=d},66370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(35052),i=function(e){var t=e.fromJS,n=e.merge;return function(e){var r=t({location:e.location,action:e.action});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.type,i=t.payload;return o===h("LOCATION_CHANGE")?n(e,i):e}}};function a(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=h("createConnectRouter");var u,c=null;function s(){if(null===c){var e=a();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),c=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return c}function l(){var e=a();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function f(){var e=s(),t=l(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(u=a()).__rewire_reset_all__||(u.__rewire_reset_all__=function(){u.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var p="__INTENTIONAL_UNDEFINED__",d={};function h(e){var t=f();if(void 0===t[e])return function(e){switch(e){case"LOCATION_CHANGE":return o.LOCATION_CHANGE;case"createConnectRouter":return i}return}(e);var n=t[e];return n===p?void 0:n}function y(e,t){var n=f();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?p:t,function(){m(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function m(e){var t=f();delete t[e],0==Object.keys(t).length&&delete l()[s]}function v(e){var t=f(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function e(e,t){Object.defineProperty(d,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",h),e("__GetDependency__",h),e("__Rewire__",y),e("__set__",y),e("__reset__",m),e("__ResetDependency__",m),e("__with__",v)}();var g=r(i);function b(e,t){Object.defineProperty(i,e,{value:t,enumerable:!1,configurable:!0})}"object"!==g&&"function"!==g||!Object.isExtensible(i)||(b("__get__",h),b("__GetDependency__",h),b("__Rewire__",y),b("__set__",y),b("__reset__",m),b("__ResetDependency__",m),b("__with__",v),b("__RewireAPI__",d)),t.__get__=h,t.__GetDependency__=h,t.__Rewire__=y,t.__set__=y,t.__ResetDependency__=m,t.__RewireAPI__=d},92661:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(91499),i=function(e){var t=e.getIn,n=e.toJS,r=function(e){return n(t(e,["router","location"]))};return{getLocation:r,getAction:function(e){return n(t(e,["router","action"]))},createMatchSelector:function(e){var t=null,n=null;return function(o){var i=(r(o)||{}).pathname;if(i===t)return n;t=i;var a=h("matchPath")(i,e);return a&&n&&a.url===n.url||(n=a),n}}}};function a(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=h("createSelectors");var u,c=null;function s(){if(null===c){var e=a();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),c=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return c}function l(){var e=a();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function f(){var e=s(),t=l(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(u=a()).__rewire_reset_all__||(u.__rewire_reset_all__=function(){u.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var p="__INTENTIONAL_UNDEFINED__",d={};function h(e){var t=f();if(void 0===t[e])return function(e){switch(e){case"matchPath":return o.matchPath;case"createSelectors":return i}return}(e);var n=t[e];return n===p?void 0:n}function y(e,t){var n=f();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?p:t,function(){m(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function m(e){var t=f();delete t[e],0==Object.keys(t).length&&delete l()[s]}function v(e){var t=f(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function e(e,t){Object.defineProperty(d,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",h),e("__GetDependency__",h),e("__Rewire__",y),e("__set__",y),e("__reset__",m),e("__ResetDependency__",m),e("__with__",v)}();var g=r(i);function b(e,t){Object.defineProperty(i,e,{value:t,enumerable:!1,configurable:!0})}"object"!==g&&"function"!==g||!Object.isExtensible(i)||(b("__get__",h),b("__GetDependency__",h),b("__Rewire__",y),b("__set__",y),b("__reset__",m),b("__ResetDependency__",m),b("__with__",v),b("__RewireAPI__",d)),t.__get__=h,t.__GetDependency__=h,t.__Rewire__=y,t.__set__=y,t.__ResetDependency__=m,t.__RewireAPI__=d},95080:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(!e)return e;var n=t.length;if(n){for(var r=e,o=0;o<n&&r;++o)r=r[t[o]];return r}};function i(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=d("getIn");var a,u=null;function c(){if(null===u){var e=i();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),u=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return u}function s(){var e=i();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function l(){var e=c(),t=s(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(a=i()).__rewire_reset_all__||(a.__rewire_reset_all__=function(){a.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var f="__INTENTIONAL_UNDEFINED__",p={};function d(e){var t=l();if(void 0===t[e])return function(e){switch(e){case"getIn":return o}return}(e);var n=t[e];return n===f?void 0:n}function h(e,t){var n=l();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?f:t,function(){y(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function y(e){var t=l();delete t[e],0==Object.keys(t).length&&delete s()[c]}function m(e){var t=l(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function e(e,t){Object.defineProperty(p,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",d),e("__GetDependency__",d),e("__Rewire__",h),e("__set__",h),e("__reset__",y),e("__ResetDependency__",y),e("__with__",m)}();var v=r(o);function g(e,t){Object.defineProperty(o,e,{value:t,enumerable:!1,configurable:!0})}"object"!==v&&"function"!==v||!Object.isExtensible(o)||(g("__get__",d),g("__GetDependency__",d),g("__Rewire__",h),g("__set__",h),g("__reset__",y),g("__ResetDependency__",y),g("__with__",m),g("__RewireAPI__",p)),t.__get__=d,t.__GetDependency__=d,t.__Rewire__=h,t.__set__=h,t.__ResetDependency__=y,t.__RewireAPI__=p},4674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(95080),u=(r=a)&&r.__esModule?r:{default:r};var c={fromJS:function(e){return e},getIn:v("getIn"),merge:function(e,t){return i({},e,t)},toJS:function(e){return e}};function s(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=v("structure");var l,f=null;function p(){if(null===f){var e=s();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),f=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return f}function d(){var e=s();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function h(){var e=p(),t=d(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(l=s()).__rewire_reset_all__||(l.__rewire_reset_all__=function(){l.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var y="__INTENTIONAL_UNDEFINED__",m={};function v(e){var t=h();if(void 0===t[e])return function(e){switch(e){case"getIn":return u.default;case"structure":return c}return}(e);var n=t[e];return n===y?void 0:n}function g(e,t){var n=h();if("object"!==(void 0===e?"undefined":o(e)))return n[e]=void 0===t?y:t,function(){b(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function b(e){var t=h();delete t[e],0==Object.keys(t).length&&delete d()[p]}function w(e){var t=h(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var a=i();return a&&"function"==typeof a.then?a.then(o).catch(o):o(),a}}!function(){function e(e,t){Object.defineProperty(m,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",v),e("__GetDependency__",v),e("__Rewire__",g),e("__set__",g),e("__reset__",b),e("__ResetDependency__",b),e("__with__",w)}();var O=void 0===c?"undefined":o(c);function E(e,t){Object.defineProperty(c,e,{value:t,enumerable:!1,configurable:!0})}"object"!==O&&"function"!==O||!Object.isExtensible(c)||(E("__get__",v),E("__GetDependency__",v),E("__Rewire__",g),E("__set__",g),E("__reset__",b),E("__ResetDependency__",b),E("__with__",w),E("__RewireAPI__",m)),t.__get__=v,t.__GetDependency__=v,t.__Rewire__=g,t.__set__=g,t.__ResetDependency__=b,t.__RewireAPI__=m},83089:(e,t,n)=>{var r=n(83907),o=n(89075),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},31474:(e,t,n)=>{var r=n(95386),o=n(89075),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a constructor")}},90513:(e,t,n)=>{var r=n(83907),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},16693:(e,t,n)=>{var r=n(2905),o=n(63513),i=n(60342).f,a=r("unscopables"),u=Array.prototype;null==u[a]&&i(u,a,{configurable:!0,value:o(null)}),e.exports=function(e){u[a][e]=!0}},96281:(e,t,n)=>{"use strict";var r=n(42968).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},66992:(e,t,n)=>{var r=n(18142),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},95665:(e,t,n)=>{var r=n(21752),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},76930:(e,t,n)=>{var r=n(82304);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},25022:(e,t,n)=>{"use strict";var r=n(55835),o=n(59470),i=n(54020);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,s=void 0===c?n:o(c,n);s>u;)t[u++]=e;return t}},66469:(e,t,n)=>{"use strict";var r=n(7189).forEach,o=n(62235)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},93099:(e,t,n)=>{"use strict";var r=n(45408),o=n(12364),i=n(55835),a=n(34268),u=n(36485),c=n(95386),s=n(54020),l=n(48245),f=n(6850),p=n(85437),d=Array;e.exports=function(e){var t=i(e),n=c(this),h=arguments.length,y=h>1?arguments[1]:void 0,m=void 0!==y;m&&(y=r(y,h>2?arguments[2]:void 0));var v,g,b,w,O,E,_=p(t),x=0;if(!_||this===d&&u(_))for(v=s(t),g=n?new this(v):d(v);v>x;x++)E=m?y(t[x],x):t[x],l(g,x,E);else for(O=(w=f(t,_)).next,g=n?new this:[];!(b=o(O,w)).done;x++)E=m?a(w,y,[b.value,x],!0):b.value,l(g,x,E);return g.length=x,g}},26281:(e,t,n)=>{var r=n(79486),o=n(59470),i=n(54020),a=function(e){return function(t,n,a){var u,c=r(t),s=i(c),l=o(a,s);if(e&&n!=n){for(;s>l;)if((u=c[l++])!=u)return!0}else for(;s>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},7189:(e,t,n)=>{var r=n(45408),o=n(50295),i=n(6237),a=n(55835),u=n(54020),c=n(86729),s=o([].push),l=function(e){var t=1==e,n=2==e,o=3==e,l=4==e,f=6==e,p=7==e,d=5==e||f;return function(h,y,m,v){for(var g,b,w=a(h),O=i(w),E=r(y,m),_=u(O),x=0,S=v||c,j=t?S(h,_):n||p?S(h,0):void 0;_>x;x++)if((d||x in O)&&(b=E(g=O[x],x,w),e))if(t)j[x]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return x;case 2:s(j,g)}else switch(e){case 4:return!1;case 7:s(j,g)}return f?-1:o||l?l:j}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},21392:(e,t,n)=>{var r=n(82304),o=n(2905),i=n(80773),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},62235:(e,t,n)=>{"use strict";var r=n(82304);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},5153:(e,t,n)=>{var r=n(83089),o=n(55835),i=n(6237),a=n(54020),u=TypeError,c=function(e){return function(t,n,c,s){r(n);var l=o(t),f=i(l),p=a(l),d=e?p-1:0,h=e?-1:1;if(c<2)for(;;){if(d in f){s=f[d],d+=h;break}if(d+=h,e?d<0:p<=d)throw u("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=h)d in f&&(s=n(s,f[d],d,l));return s}};e.exports={left:c(!1),right:c(!0)}},51069:(e,t,n)=>{var r=n(59470),o=n(54020),i=n(48245),a=Array,u=Math.max;e.exports=function(e,t,n){for(var c=o(e),s=r(t,c),l=r(void 0===n?c:n,c),f=a(u(l-s,0)),p=0;s<l;s++,p++)i(f,p,e[s]);return f.length=p,f}},52311:(e,t,n)=>{var r=n(50295);e.exports=r([].slice)},41953:(e,t,n)=>{var r=n(51069),o=Math.floor,i=function(e,t){var n=e.length,c=o(n/2);return n<8?a(e,t):u(e,i(r(e,0,c),t),i(r(e,c),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},u=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,u=0;a<o||u<i;)e[a+u]=a<o&&u<i?r(t[a],n[u])<=0?t[a++]:n[u++]:a<o?t[a++]:n[u++];return e};e.exports=i},91657:(e,t,n)=>{var r=n(4887),o=n(95386),i=n(21752),a=n(2905)("species"),u=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===u||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?u:t}},86729:(e,t,n)=>{var r=n(91657);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},34268:(e,t,n)=>{var r=n(95665),o=n(87175);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},83307:(e,t,n)=>{var r=n(2905)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},47157:(e,t,n)=>{var r=n(50295),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},47465:(e,t,n)=>{var r=n(54172),o=n(83907),i=n(47157),a=n(2905)("toStringTag"),u=Object,c="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=u(e),a))?n:c?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},95862:(e,t,n)=>{var r=n(50295),o=Error,i=r("".replace),a=String(o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,c=u.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,u,"");return e}},81632:(e,t,n)=>{"use strict";var r=n(60342).f,o=n(63513),i=n(74357),a=n(45408),u=n(66992),c=n(46386),s=n(69106),l=n(53207),f=n(8370),p=n(61145).fastKey,d=n(22956),h=d.set,y=d.getterFor;e.exports={getConstructor:function(e,t,n,s){var l=e((function(e,r){u(e,d),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[s],{that:e,AS_ENTRIES:n})})),d=l.prototype,m=y(t),v=function(e,t,n){var r,o,i=m(e),a=g(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},g=function(e,t){var n,r=m(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(d,{clear:function(){for(var e=m(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=m(t),r=g(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=m(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(d,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(d,"size",{get:function(){return m(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=y(t),i=y(r);s(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},86535:(e,t,n)=>{"use strict";var r=n(4209),o=n(68348),i=n(50295),a=n(82136),u=n(57002),c=n(61145),s=n(46386),l=n(66992),f=n(83907),p=n(21752),d=n(82304),h=n(83307),y=n(14036),m=n(84175);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),b=v?"set":"add",w=o[e],O=w&&w.prototype,E=w,_={},x=function(e){var t=i(O[e]);u(O,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!p(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return g&&!p(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!f(w)||!(g||O.forEach&&!d((function(){(new w).entries().next()})))))E=n.getConstructor(t,e,v,b),c.enable();else if(a(e,!0)){var S=new E,j=S[b](g?{}:-0,1)!=S,P=d((function(){S.has(1)})),k=h((function(e){new w(e)})),I=!g&&d((function(){for(var e=new w,t=5;t--;)e[b](t,t);return!e.has(-0)}));k||((E=t((function(e,t){l(e,O);var n=m(new w,e,E);return null!=t&&s(t,n[b],{that:n,AS_ENTRIES:v}),n}))).prototype=O,O.constructor=E),(P||I)&&(x("delete"),x("has"),v&&x("get")),(I||j)&&x(b),g&&O.clear&&delete O.clear}return _[e]=E,r({global:!0,constructor:!0,forced:E!=w},_),y(E,e),g||n.setStrong(E,e,v),E}},37349:(e,t,n)=>{var r=n(35920),o=n(81448),i=n(4172),a=n(60342);e.exports=function(e,t,n){for(var u=o(t),c=a.f,s=i.f,l=0;l<u.length;l++){var f=u[l];r(e,f)||n&&r(n,f)||c(e,f,s(t,f))}}},33241:(e,t,n)=>{var r=n(2905)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},83379:(e,t,n)=>{var r=n(82304);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},61807:(e,t,n)=>{"use strict";var r=n(74479).IteratorPrototype,o=n(63513),i=n(53688),a=n(14036),u=n(59451),c=function(){return this};e.exports=function(e,t,n,s){var l=t+" Iterator";return e.prototype=o(r,{next:i(+!s,n)}),a(e,l,!1,!0),u[l]=c,e}},54652:(e,t,n)=>{var r=n(8370),o=n(60342),i=n(53688);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},53688:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},48245:(e,t,n)=>{"use strict";var r=n(54089),o=n(60342),i=n(53688);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},21394:(e,t,n)=>{var r=n(87915),o=n(60342);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},57002:(e,t,n)=>{var r=n(83907),o=n(60342),i=n(87915),a=n(76925);e.exports=function(e,t,n,u){u||(u={});var c=u.enumerable,s=void 0!==u.name?u.name:t;return r(n)&&i(n,s,u),u.global?c?e[t]=n:a(t,n):(u.unsafe?e[t]&&(c=!0):delete e[t],c?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})),e}},74357:(e,t,n)=>{var r=n(57002);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},76925:(e,t,n)=>{var r=n(68348),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},69106:(e,t,n)=>{"use strict";var r=n(4209),o=n(12364),i=n(80692),a=n(10140),u=n(83907),c=n(61807),s=n(78066),l=n(12398),f=n(14036),p=n(54652),d=n(57002),h=n(2905),y=n(59451),m=n(74479),v=a.PROPER,g=a.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,O=h("iterator"),E="keys",_="values",x="entries",S=function(){return this};e.exports=function(e,t,n,a,h,m,j){c(n,t,a);var P,k,I,T=function(e){if(e===h&&L)return L;if(!w&&e in A)return A[e];switch(e){case E:case _:case x:return function(){return new n(this,e)}}return function(){return new n(this)}},R=t+" Iterator",C=!1,A=e.prototype,N=A[O]||A["@@iterator"]||h&&A[h],L=!w&&N||T(h),D="Array"==t&&A.entries||N;if(D&&(P=s(D.call(new e)))!==Object.prototype&&P.next&&(i||s(P)===b||(l?l(P,b):u(P[O])||d(P,O,S)),f(P,R,!0,!0),i&&(y[R]=S)),v&&h==_&&N&&N.name!==_&&(!i&&g?p(A,"name",_):(C=!0,L=function(){return o(N,this)})),h)if(k={values:T(_),keys:m?L:T(E),entries:T(x)},j)for(I in k)(w||C||!(I in A))&&d(A,I,k[I]);else r({target:t,proto:!0,forced:w||C},k);return i&&!j||A[O]===L||d(A,O,L,{name:h}),y[t]=L,k}},87251:(e,t,n)=>{var r=n(75590),o=n(35920),i=n(43445),a=n(60342).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},91337:(e,t,n)=>{"use strict";var r=n(89075),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},8370:(e,t,n)=>{var r=n(82304);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},37027:(e,t,n)=>{var r=n(68348),o=n(21752),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},68539:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},6917:e=>{e.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}},4152:(e,t,n)=>{var r=n(37027)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},14855:(e,t,n)=>{var r=n(41790).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},55943:e=>{e.exports="object"==typeof window&&"object"!=typeof Deno},48784:(e,t,n)=>{var r=n(41790);e.exports=/MSIE|Trident/.test(r)},17007:(e,t,n)=>{var r=n(41790),o=n(68348);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},75891:(e,t,n)=>{var r=n(41790);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},15200:(e,t,n)=>{var r=n(47157),o=n(68348);e.exports="process"==r(o.process)},55158:(e,t,n)=>{var r=n(41790);e.exports=/web0s(?!.*chrome)/i.test(r)},41790:(e,t,n)=>{var r=n(38161);e.exports=r("navigator","userAgent")||""},80773:(e,t,n)=>{var r,o,i=n(68348),a=n(41790),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,l=s&&s.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},25109:(e,t,n)=>{var r=n(41790).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},16534:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},84563:(e,t,n)=>{var r=n(82304),o=n(53688);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},90672:(e,t,n)=>{"use strict";var r=n(8370),o=n(82304),i=n(95665),a=n(63513),u=n(27966),c=Error.prototype.toString,s=o((function(){if(r){var e=a(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==c.call(e))return!0}return"2: 1"!==c.call({message:1,name:2})||"Error"!==c.call({})}));e.exports=s?function(){var e=i(this),t=u(e.name,"Error"),n=u(e.message);return t?n?t+": "+n:t:n}:c},4209:(e,t,n)=>{var r=n(68348),o=n(4172).f,i=n(54652),a=n(57002),u=n(76925),c=n(37349),s=n(82136);e.exports=function(e,t){var n,l,f,p,d,h=e.target,y=e.global,m=e.stat;if(n=y?r:m?r[h]||u(h,{}):(r[h]||{}).prototype)for(l in t){if(p=t[l],f=e.dontCallGetSet?(d=o(n,l))&&d.value:n[l],!s(y?l:h+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,e)}}},82304:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},19798:(e,t,n)=>{"use strict";n(42484);var r=n(50295),o=n(57002),i=n(64118),a=n(82304),u=n(2905),c=n(54652),s=u("species"),l=RegExp.prototype;e.exports=function(e,t,n,f){var p=u(e),d=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=d&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!d||!h||n){var y=r(/./[p]),m=t(p,""[e],(function(e,t,n,o,a){var u=r(e),c=t.exec;return c===i||c===l.exec?d&&!a?{done:!0,value:y(t,n,o)}:{done:!0,value:u(n,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(l,p,m[1])}f&&c(l[p],"sham",!0)}},24367:(e,t,n)=>{var r=n(82304);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},89664:(e,t,n)=>{var r=n(4055),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},45408:(e,t,n)=>{var r=n(50295),o=n(83089),i=n(4055),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},4055:(e,t,n)=>{var r=n(82304);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1068:(e,t,n)=>{"use strict";var r=n(50295),o=n(83089),i=n(21752),a=n(35920),u=n(52311),c=n(4055),s=Function,l=r([].concat),f=r([].join),p={},d=function(e,t,n){if(!a(p,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";p[t]=s("C,a","return new C("+f(r,",")+")")}return p[t](e,n)};e.exports=c?s.bind:function(e){var t=o(this),n=t.prototype,r=u(arguments,1),a=function(){var n=l(r,u(arguments));return this instanceof a?d(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},12364:(e,t,n)=>{var r=n(4055),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},10140:(e,t,n)=>{var r=n(8370),o=n(35920),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},50295:(e,t,n)=>{var r=n(4055),o=Function.prototype,i=o.bind,a=o.call,u=r&&i.bind(a,a);e.exports=r?function(e){return e&&u(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},38161:(e,t,n)=>{var r=n(68348),o=n(83907),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},85437:(e,t,n)=>{var r=n(47465),o=n(37838),i=n(59451),a=n(2905)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},6850:(e,t,n)=>{var r=n(12364),o=n(83089),i=n(95665),a=n(89075),u=n(85437),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?u(e):t;if(o(n))return i(r(n,e));throw c(a(e)+" is not iterable")}},37838:(e,t,n)=>{var r=n(83089);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},30585:(e,t,n)=>{var r=n(50295),o=n(55835),i=Math.floor,a=r("".charAt),u=r("".replace),c=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,p){var d=n+e.length,h=r.length,y=l;return void 0!==f&&(f=o(f),y=s),u(p,y,(function(o,u){var s;switch(a(u,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,d);case"<":s=f[c(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>h){var p=i(l/10);return 0===p?o:p<=h?void 0===r[p-1]?a(u,1):r[p-1]+a(u,1):o}s=r[l-1]}return void 0===s?"":s}))}},68348:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},35920:(e,t,n)=>{var r=n(50295),o=n(55835),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},19112:e=>{e.exports={}},10917:(e,t,n)=>{var r=n(68348);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},99146:(e,t,n)=>{var r=n(38161);e.exports=r("document","documentElement")},80124:(e,t,n)=>{var r=n(8370),o=n(82304),i=n(37027);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6237:(e,t,n)=>{var r=n(50295),o=n(82304),i=n(47157),a=Object,u=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?u(e,""):a(e)}:a},84175:(e,t,n)=>{var r=n(83907),o=n(21752),i=n(12398);e.exports=function(e,t,n){var a,u;return i&&r(a=t.constructor)&&a!==n&&o(u=a.prototype)&&u!==n.prototype&&i(e,u),e}},58119:(e,t,n)=>{var r=n(50295),o=n(83907),i=n(8386),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},77046:(e,t,n)=>{var r=n(21752),o=n(54652);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},61145:(e,t,n)=>{var r=n(4209),o=n(50295),i=n(19112),a=n(21752),u=n(35920),c=n(60342).f,s=n(13194),l=n(78698),f=n(41534),p=n(51339),d=n(24367),h=!1,y=p("meta"),m=0,v=function(e){c(e,y,{value:{objectID:"O"+m++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},h=!0;var e=s.f,t=o([].splice),n={};n[y]=1,e(n).length&&(s.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===y){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u(e,y)){if(!f(e))return"F";if(!t)return"E";v(e)}return e[y].objectID},getWeakData:function(e,t){if(!u(e,y)){if(!f(e))return!0;if(!t)return!1;v(e)}return e[y].weakData},onFreeze:function(e){return d&&h&&f(e)&&!u(e,y)&&v(e),e}};i[y]=!0},22956:(e,t,n)=>{var r,o,i,a=n(11200),u=n(68348),c=n(50295),s=n(21752),l=n(54652),f=n(35920),p=n(8386),d=n(95235),h=n(19112),y="Object already initialized",m=u.TypeError,v=u.WeakMap;if(a||p.state){var g=p.state||(p.state=new v),b=c(g.get),w=c(g.has),O=c(g.set);r=function(e,t){if(w(g,e))throw new m(y);return t.facade=e,O(g,e,t),t},o=function(e){return b(g,e)||{}},i=function(e){return w(g,e)}}else{var E=d("state");h[E]=!0,r=function(e,t){if(f(e,E))throw new m(y);return t.facade=e,l(e,E,t),t},o=function(e){return f(e,E)?e[E]:{}},i=function(e){return f(e,E)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},36485:(e,t,n)=>{var r=n(2905),o=n(59451),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},4887:(e,t,n)=>{var r=n(47157);e.exports=Array.isArray||function(e){return"Array"==r(e)}},83907:e=>{e.exports=function(e){return"function"==typeof e}},95386:(e,t,n)=>{var r=n(50295),o=n(82304),i=n(83907),a=n(47465),u=n(38161),c=n(58119),s=function(){},l=[],f=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),h=!p.exec(s),y=function(e){if(!i(e))return!1;try{return f(s,l,e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(p,c(e))}catch(e){return!0}};m.sham=!0,e.exports=!f||o((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?m:y},82136:(e,t,n)=>{var r=n(82304),o=n(83907),i=/#|\.prototype\./,a=function(e,t){var n=c[u(e)];return n==l||n!=s&&(o(t)?r(t):!!t)},u=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},37086:(e,t,n)=>{var r=n(21752),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},21752:(e,t,n)=>{var r=n(83907);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},80692:e=>{e.exports=!1},12810:(e,t,n)=>{var r=n(21752),o=n(47157),i=n(2905)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},33758:(e,t,n)=>{var r=n(38161),o=n(83907),i=n(18142),a=n(14386),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,u(e))}},46386:(e,t,n)=>{var r=n(45408),o=n(12364),i=n(95665),a=n(89075),u=n(36485),c=n(54020),s=n(18142),l=n(6850),f=n(85437),p=n(87175),d=TypeError,h=function(e,t){this.stopped=e,this.result=t},y=h.prototype;e.exports=function(e,t,n){var m,v,g,b,w,O,E,_=n&&n.that,x=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_ITERATOR),j=!(!n||!n.INTERRUPTED),P=r(t,_),k=function(e){return m&&p(m,"normal",e),new h(!0,e)},I=function(e){return x?(i(e),j?P(e[0],e[1],k):P(e[0],e[1])):j?P(e,k):P(e)};if(S)m=e;else{if(!(v=f(e)))throw d(a(e)+" is not iterable");if(u(v)){for(g=0,b=c(e);b>g;g++)if((w=I(e[g]))&&s(y,w))return w;return new h(!1)}m=l(e,v)}for(O=m.next;!(E=o(O,m)).done;){try{w=I(E.value)}catch(e){p(m,"throw",e)}if("object"==typeof w&&w&&s(y,w))return w}return new h(!1)}},87175:(e,t,n)=>{var r=n(12364),o=n(95665),i=n(37838);e.exports=function(e,t,n){var a,u;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw n;if(u)throw a;return o(a),n}},74479:(e,t,n)=>{"use strict";var r,o,i,a=n(82304),u=n(83907),c=n(63513),s=n(78066),l=n(57002),f=n(2905),p=n(80692),d=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var e={};return r[d].call(e)!==e}))?r={}:p&&(r=c(r)),u(r[d])||l(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},59451:e=>{e.exports={}},54020:(e,t,n)=>{var r=n(36350);e.exports=function(e){return r(e.length)}},87915:(e,t,n)=>{var r=n(82304),o=n(83907),i=n(35920),a=n(8370),u=n(10140).CONFIGURABLE,c=n(58119),s=n(22956),l=s.enforce,f=s.get,p=Object.defineProperty,d=a&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),h=String(String).split("String"),y=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||u&&e.name!==t)&&p(e,"name",{value:t,configurable:!0}),d&&n&&i(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=l(e);return i(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return o(this)&&f(this).source||c(this)}),"toString")},7688:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},21029:(e,t,n)=>{var r,o,i,a,u,c,s,l,f=n(68348),p=n(45408),d=n(4172).f,h=n(36585).set,y=n(75891),m=n(17007),v=n(55158),g=n(15200),b=f.MutationObserver||f.WebKitMutationObserver,w=f.document,O=f.process,E=f.Promise,_=d(f,"queueMicrotask"),x=_&&_.value;x||(r=function(){var e,t;for(g&&(e=O.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},y||g||v||!b||!w?!m&&E&&E.resolve?((s=E.resolve(void 0)).constructor=E,l=p(s.then,s),a=function(){l(r)}):g?a=function(){O.nextTick(r)}:(h=p(h,f),a=function(){h(r)}):(u=!0,c=w.createTextNode(""),new b(r).observe(c,{characterData:!0}),a=function(){c.data=u=!u})),e.exports=x||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},75698:(e,t,n)=>{var r=n(37201);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},37201:(e,t,n)=>{var r=n(80773),o=n(82304);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},11200:(e,t,n)=>{var r=n(68348),o=n(83907),i=n(58119),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},63223:(e,t,n)=>{"use strict";var r=n(83089),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},27966:(e,t,n)=>{var r=n(43974);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},9397:(e,t,n)=>{var r=n(12810),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},10634:(e,t,n)=>{var r=n(68348),o=n(82304),i=n(50295),a=n(43974),u=n(16221).trim,c=n(56346),s=i("".charAt),l=r.parseFloat,f=r.Symbol,p=f&&f.iterator,d=1/l(c+"-0")!=-1/0||p&&!o((function(){l(Object(p))}));e.exports=d?function(e){var t=u(a(e)),n=l(t);return 0===n&&"-"==s(t,0)?-0:n}:l},49268:(e,t,n)=>{var r=n(68348),o=n(82304),i=n(50295),a=n(43974),u=n(16221).trim,c=n(56346),s=r.parseInt,l=r.Symbol,f=l&&l.iterator,p=/^[+-]?0x/i,d=i(p.exec),h=8!==s(c+"08")||22!==s(c+"0x16")||f&&!o((function(){s(Object(f))}));e.exports=h?function(e,t){var n=u(a(e));return s(n,t>>>0||(d(p,n)?16:10))}:s},70194:(e,t,n)=>{"use strict";var r=n(8370),o=n(50295),i=n(12364),a=n(82304),u=n(89361),c=n(19849),s=n(12922),l=n(55835),f=n(6237),p=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!p||a((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=p({},e)[n]||u(p({},t)).join("")!=o}))?function(e,t){for(var n=l(e),o=arguments.length,a=1,p=c.f,d=s.f;o>a;)for(var y,m=f(arguments[a++]),v=p?h(u(m),p(m)):u(m),g=v.length,b=0;g>b;)y=v[b++],r&&!i(d,m,y)||(n[y]=m[y]);return n}:p},63513:(e,t,n)=>{var r,o=n(95665),i=n(81040),a=n(16534),u=n(19112),c=n(99146),s=n(37027),l=n(95235),f=l("IE_PROTO"),p=function(){},d=function(e){return"<script>"+e+"</"+"script>"},h=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;y="undefined"!=typeof document?document.domain&&r?h(r):((t=s("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):h(r);for(var n=a.length;n--;)delete y.prototype[a[n]];return y()};u[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=o(e),n=new p,p.prototype=null,n[f]=e):n=y(),void 0===t?n:i.f(n,t)}},81040:(e,t,n)=>{var r=n(8370),o=n(53850),i=n(60342),a=n(95665),u=n(79486),c=n(89361);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=u(t),o=c(t),s=o.length,l=0;s>l;)i.f(e,n=o[l++],r[n]);return e}},60342:(e,t,n)=>{var r=n(8370),o=n(80124),i=n(53850),a=n(95665),u=n(54089),c=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";t.f=r?i?function(e,t,n){if(a(e),t=u(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&d in n&&!n.writable){var r=l(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:p in n?n.configurable:r.configurable,enumerable:f in n?n.enumerable:r.enumerable,writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(a(e),t=u(t),a(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4172:(e,t,n)=>{var r=n(8370),o=n(12364),i=n(12922),a=n(53688),u=n(79486),c=n(54089),s=n(35920),l=n(80124),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=u(e),t=c(t),l)try{return f(e,t)}catch(e){}if(s(e,t))return a(!o(i.f,e,t),e[t])}},78698:(e,t,n)=>{var r=n(47157),o=n(79486),i=n(13194).f,a=n(51069),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return u&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(u)}}(e):i(o(e))}},13194:(e,t,n)=>{var r=n(11704),o=n(16534).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},19849:(e,t)=>{t.f=Object.getOwnPropertySymbols},78066:(e,t,n)=>{var r=n(35920),o=n(83907),i=n(55835),a=n(95235),u=n(83379),c=a("IE_PROTO"),s=Object,l=s.prototype;e.exports=u?s.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof s?l:null}},41534:(e,t,n)=>{var r=n(82304),o=n(21752),i=n(47157),a=n(76930),u=Object.isExtensible,c=r((function(){u(1)}));e.exports=c||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!u||u(e)))}:u},18142:(e,t,n)=>{var r=n(50295);e.exports=r({}.isPrototypeOf)},11704:(e,t,n)=>{var r=n(50295),o=n(35920),i=n(79486),a=n(26281).indexOf,u=n(19112),c=r([].push);e.exports=function(e,t){var n,r=i(e),s=0,l=[];for(n in r)!o(u,n)&&o(r,n)&&c(l,n);for(;t.length>s;)o(r,n=t[s++])&&(~a(l,n)||c(l,n));return l}},89361:(e,t,n)=>{var r=n(11704),o=n(16534);e.exports=Object.keys||function(e){return r(e,o)}},12922:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},12398:(e,t,n)=>{var r=n(50295),o=n(95665),i=n(90513);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},64307:(e,t,n)=>{var r=n(8370),o=n(50295),i=n(89361),a=n(79486),u=o(n(12922).f),c=o([].push),s=function(e){return function(t){for(var n,o=a(t),s=i(o),l=s.length,f=0,p=[];l>f;)n=s[f++],r&&!u(o,n)||c(p,e?[n,o[n]]:o[n]);return p}};e.exports={entries:s(!0),values:s(!1)}},51431:(e,t,n)=>{"use strict";var r=n(54172),o=n(47465);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},29786:(e,t,n)=>{var r=n(12364),o=n(83907),i=n(21752),a=TypeError;e.exports=function(e,t){var n,u;if("string"===t&&o(n=e.toString)&&!i(u=r(n,e)))return u;if(o(n=e.valueOf)&&!i(u=r(n,e)))return u;if("string"!==t&&o(n=e.toString)&&!i(u=r(n,e)))return u;throw a("Can't convert object to primitive value")}},81448:(e,t,n)=>{var r=n(38161),o=n(50295),i=n(13194),a=n(19849),u=n(95665),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(u(e)),n=a.f;return n?c(t,n(e)):t}},75590:(e,t,n)=>{var r=n(68348);e.exports=r},88481:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},31240:(e,t,n)=>{var r=n(68348),o=n(36576),i=n(83907),a=n(82136),u=n(58119),c=n(2905),s=n(55943),l=n(80692),f=n(80773),p=o&&o.prototype,d=c("species"),h=!1,y=i(r.PromiseRejectionEvent),m=a("Promise",(function(){var e=u(o),t=e!==String(o);if(!t&&66===f)return!0;if(l&&(!p.catch||!p.finally))return!0;if(f>=51&&/native code/.test(e))return!1;var n=new o((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[d]=r,!(h=n.then((function(){}))instanceof r)||!t&&s&&!y}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:y,SUBCLASSING:h}},36576:(e,t,n)=>{var r=n(68348);e.exports=r.Promise},26750:(e,t,n)=>{var r=n(95665),o=n(21752),i=n(63223);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},69700:(e,t,n)=>{var r=n(36576),o=n(83307),i=n(31240).CONSTRUCTOR;e.exports=i||!o((function(e){r.all(e).then(void 0,(function(){}))}))},97487:(e,t,n)=>{var r=n(60342).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},55149:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},90123:(e,t,n)=>{var r=n(12364),o=n(95665),i=n(83907),a=n(47157),u=n(64118),c=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var s=r(n,e,t);return null!==s&&o(s),s}if("RegExp"===a(e))return r(u,e,t);throw c("RegExp#exec called on incompatible receiver")}},64118:(e,t,n)=>{"use strict";var r,o,i=n(12364),a=n(50295),u=n(43974),c=n(12098),s=n(7588),l=n(54365),f=n(63513),p=n(22956).get,d=n(53937),h=n(41085),y=l("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,g=a("".charAt),b=a("".indexOf),w=a("".replace),O=a("".slice),E=(o=/b*/g,i(m,r=/a/,"a"),i(m,o,"a"),0!==r.lastIndex||0!==o.lastIndex),_=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(E||x||_||d||h)&&(v=function(e){var t,n,r,o,a,s,l,d=this,h=p(d),S=u(e),j=h.raw;if(j)return j.lastIndex=d.lastIndex,t=i(v,j,S),d.lastIndex=j.lastIndex,t;var P=h.groups,k=_&&d.sticky,I=i(c,d),T=d.source,R=0,C=S;if(k&&(I=w(I,"y",""),-1===b(I,"g")&&(I+="g"),C=O(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==g(S,d.lastIndex-1))&&(T="(?: "+T+")",C=" "+C,R++),n=new RegExp("^(?:"+T+")",I)),x&&(n=new RegExp("^"+T+"$(?!\\s)",I)),E&&(r=d.lastIndex),o=i(m,k?n:d,C),k?o?(o.input=O(o.input,R),o[0]=O(o[0],R),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:E&&o&&(d.lastIndex=d.global?o.index+o[0].length:r),x&&o&&o.length>1&&i(y,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&P)for(o.groups=s=f(null),a=0;a<P.length;a++)s[(l=P[a])[0]]=o[l[1]];return o}),e.exports=v},12098:(e,t,n)=>{"use strict";var r=n(95665);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},17350:(e,t,n)=>{var r=n(12364),o=n(35920),i=n(18142),a=n(12098),u=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in u||o(e,"flags")||!i(u,e)?t:r(a,e)}},7588:(e,t,n)=>{var r=n(82304),o=n(68348).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),u=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:i}},53937:(e,t,n)=>{var r=n(82304),o=n(68348).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},41085:(e,t,n)=>{var r=n(82304),o=n(68348).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},21132:e=>{var t=TypeError;e.exports=function(e){if(null==e)throw t("Can't call method on "+e);return e}},19300:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},65387:(e,t,n)=>{var r=n(68348),o=n(89664),i=n(83907),a=n(41790),u=n(52311),c=n(57167),s=/MSIE .\./.test(a),l=r.Function,f=function(e){return s?function(t,n){var r=c(arguments.length,1)>2,a=i(t)?t:l(t),s=r?u(arguments,2):void 0;return e(r?function(){o(a,this,s)}:a,n)}:e};e.exports={setTimeout:f(r.setTimeout),setInterval:f(r.setInterval)}},53207:(e,t,n)=>{"use strict";var r=n(38161),o=n(60342),i=n(2905),a=n(8370),u=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[u]&&n(t,u,{configurable:!0,get:function(){return this}})}},14036:(e,t,n)=>{var r=n(60342).f,o=n(35920),i=n(2905)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},95235:(e,t,n)=>{var r=n(54365),o=n(51339),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},8386:(e,t,n)=>{var r=n(68348),o=n(76925),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},54365:(e,t,n)=>{var r=n(80692),o=n(8386);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.1/LICENSE",source:"https://github.com/zloirock/core-js"})},18062:(e,t,n)=>{var r=n(95665),o=n(31474),i=n(2905)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},42968:(e,t,n)=>{var r=n(50295),o=n(89345),i=n(43974),a=n(21132),u=r("".charAt),c=r("".charCodeAt),s=r("".slice),l=function(e){return function(t,n){var r,l,f=i(a(t)),p=o(n),d=f.length;return p<0||p>=d?e?"":void 0:(r=c(f,p))<55296||r>56319||p+1===d||(l=c(f,p+1))<56320||l>57343?e?u(f,p):r:e?s(f,p,p+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},98816:(e,t,n)=>{"use strict";var r=n(89345),o=n(43974),i=n(21132),a=RangeError;e.exports=function(e){var t=o(i(this)),n="",u=r(e);if(u<0||u==1/0)throw a("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(t+=t))1&u&&(n+=t);return n}},21225:(e,t,n)=>{var r=n(10140).PROPER,o=n(82304),i=n(56346);e.exports=function(e){return o((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||r&&i[e].name!==e}))}},16221:(e,t,n)=>{var r=n(50295),o=n(21132),i=n(43974),a=n(56346),u=r("".replace),c="["+a+"]",s=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),f=function(e){return function(t){var n=i(o(t));return 1&e&&(n=u(n,s,"")),2&e&&(n=u(n,l,"")),n}};e.exports={start:f(1),end:f(2),trim:f(3)}},50205:(e,t,n)=>{var r=n(12364),o=n(38161),i=n(2905),a=n(57002);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,u=i("toPrimitive");t&&!t[u]&&a(t,u,(function(e){return r(n,this)}),{arity:1})}},36585:(e,t,n)=>{var r,o,i,a,u=n(68348),c=n(89664),s=n(45408),l=n(83907),f=n(35920),p=n(82304),d=n(99146),h=n(52311),y=n(37027),m=n(57167),v=n(75891),g=n(15200),b=u.setImmediate,w=u.clearImmediate,O=u.process,E=u.Dispatch,_=u.Function,x=u.MessageChannel,S=u.String,j=0,P={},k="onreadystatechange";try{r=u.location}catch(e){}var I=function(e){if(f(P,e)){var t=P[e];delete P[e],t()}},T=function(e){return function(){I(e)}},R=function(e){I(e.data)},C=function(e){u.postMessage(S(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){m(arguments.length,1);var t=l(e)?e:_(e),n=h(arguments,1);return P[++j]=function(){c(t,void 0,n)},o(j),j},w=function(e){delete P[e]},g?o=function(e){O.nextTick(T(e))}:E&&E.now?o=function(e){E.now(T(e))}:x&&!v?(a=(i=new x).port2,i.port1.onmessage=R,o=s(a.postMessage,a)):u.addEventListener&&l(u.postMessage)&&!u.importScripts&&r&&"file:"!==r.protocol&&!p(C)?(o=C,u.addEventListener("message",R,!1)):o=k in y("script")?function(e){d.appendChild(y("script")).onreadystatechange=function(){d.removeChild(this),I(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:w}},90364:(e,t,n)=>{var r=n(50295);e.exports=r(1..valueOf)},59470:(e,t,n)=>{var r=n(89345),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},79486:(e,t,n)=>{var r=n(6237),o=n(21132);e.exports=function(e){return r(o(e))}},89345:(e,t,n)=>{var r=n(7688);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},36350:(e,t,n)=>{var r=n(89345),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},55835:(e,t,n)=>{var r=n(21132),o=Object;e.exports=function(e){return o(r(e))}},4420:(e,t,n)=>{var r=n(12364),o=n(21752),i=n(33758),a=n(37838),u=n(29786),c=n(2905),s=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,c=a(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!o(n)||i(n))return n;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},54089:(e,t,n)=>{var r=n(4420),o=n(33758);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},54172:(e,t,n)=>{var r={};r[n(2905)("toStringTag")]="z",e.exports="[object z]"===String(r)},43974:(e,t,n)=>{var r=n(47465),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},89075:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},51339:(e,t,n)=>{var r=n(50295),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},14386:(e,t,n)=>{var r=n(37201);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},53850:(e,t,n)=>{var r=n(8370),o=n(82304);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},57167:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},43445:(e,t,n)=>{var r=n(2905);t.f=r},2905:(e,t,n)=>{var r=n(68348),o=n(54365),i=n(35920),a=n(51339),u=n(37201),c=n(14386),s=o("wks"),l=r.Symbol,f=l&&l.for,p=c?l:l&&l.withoutSetter||a;e.exports=function(e){if(!i(s,e)||!u&&"string"!=typeof s[e]){var t="Symbol."+e;u&&i(l,e)?s[e]=l[e]:s[e]=c&&f?f(t):p(t)}return s[e]}},56346:e=>{e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},58113:(e,t,n)=>{"use strict";var r=n(38161),o=n(35920),i=n(54652),a=n(18142),u=n(12398),c=n(37349),s=n(97487),l=n(84175),f=n(27966),p=n(77046),d=n(95862),h=n(84563),y=n(8370),m=n(80692);e.exports=function(e,t,n,v){var g="stackTraceLimit",b=v?2:1,w=e.split("."),O=w[w.length-1],E=r.apply(null,w);if(E){var _=E.prototype;if(!m&&o(_,"cause")&&delete _.cause,!n)return E;var x=r("Error"),S=t((function(e,t){var n=f(v?t:e,void 0),r=v?new E(e):new E;return void 0!==n&&i(r,"message",n),h&&i(r,"stack",d(r.stack,2)),this&&a(_,this)&&l(r,this,S),arguments.length>b&&p(r,arguments[b]),r}));if(S.prototype=_,"Error"!==O?u?u(S,x):c(S,x,{name:!0}):y&&g in E&&(s(S,E,g),s(S,E,"prepareStackTrace")),c(S,E),!m)try{_.name!==O&&i(_,"name",O),_.constructor=S}catch(e){}return S}}},36353:(e,t,n)=>{"use strict";var r=n(4209),o=n(82304),i=n(4887),a=n(21752),u=n(55835),c=n(54020),s=n(68539),l=n(48245),f=n(86729),p=n(21392),d=n(2905),h=n(80773),y=d("isConcatSpreadable"),m=h>=51||!o((function(){var e=[];return e[y]=!1,e.concat()[0]!==e})),v=p("concat"),g=function(e){if(!a(e))return!1;var t=e[y];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!v},{concat:function(e){var t,n,r,o,i,a=u(this),p=f(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(g(i=-1===t?a:arguments[t]))for(o=c(i),s(d+o),n=0;n<o;n++,d++)n in i&&l(p,d,i[n]);else s(d+1),l(p,d++,i);return p.length=d,p}})},77653:(e,t,n)=>{"use strict";var r=n(4209),o=n(7189).every;r({target:"Array",proto:!0,forced:!n(62235)("every")},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},93857:(e,t,n)=>{var r=n(4209),o=n(25022),i=n(16693);r({target:"Array",proto:!0},{fill:o}),i("fill")},14862:(e,t,n)=>{"use strict";var r=n(4209),o=n(7189).filter;r({target:"Array",proto:!0,forced:!n(21392)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},35288:(e,t,n)=>{"use strict";var r=n(4209),o=n(7189).findIndex,i=n(16693),a="findIndex",u=!0;a in[]&&Array(1).findIndex((function(){u=!1})),r({target:"Array",proto:!0,forced:u},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},90330:(e,t,n)=>{"use strict";var r=n(4209),o=n(7189).find,i=n(16693),a="find",u=!0;a in[]&&Array(1).find((function(){u=!1})),r({target:"Array",proto:!0,forced:u},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},83159:(e,t,n)=>{"use strict";var r=n(4209),o=n(66469);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},52906:(e,t,n)=>{var r=n(4209),o=n(93099);r({target:"Array",stat:!0,forced:!n(83307)((function(e){Array.from(e)}))},{from:o})},45792:(e,t,n)=>{"use strict";var r=n(4209),o=n(26281).includes,i=n(82304),a=n(16693);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},4356:(e,t,n)=>{"use strict";var r=n(4209),o=n(50295),i=n(26281).indexOf,a=n(62235),u=o([].indexOf),c=!!u&&1/u([1],1,-0)<0,s=a("indexOf");r({target:"Array",proto:!0,forced:c||!s},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?u(this,e,t)||0:i(this,e,t)}})},9229:(e,t,n)=>{n(4209)({target:"Array",stat:!0},{isArray:n(4887)})},87758:(e,t,n)=>{"use strict";var r=n(79486),o=n(16693),i=n(59451),a=n(22956),u=n(60342).f,c=n(69106),s=n(80692),l=n(8370),f="Array Iterator",p=a.set,d=a.getterFor(f);e.exports=c(Array,"Array",(function(e,t){p(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!s&&l&&"values"!==h.name)try{u(h,"name",{value:"values"})}catch(e){}},72829:(e,t,n)=>{"use strict";var r=n(4209),o=n(50295),i=n(6237),a=n(79486),u=n(62235),c=o([].join),s=i!=Object,l=u("join",",");r({target:"Array",proto:!0,forced:s||!l},{join:function(e){return c(a(this),void 0===e?",":e)}})},53790:(e,t,n)=>{"use strict";var r=n(4209),o=n(7189).map;r({target:"Array",proto:!0,forced:!n(21392)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},17918:(e,t,n)=>{"use strict";var r=n(4209),o=n(5153).left,i=n(62235),a=n(80773),u=n(15200);r({target:"Array",proto:!0,forced:!i("reduce")||!u&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},42478:(e,t,n)=>{"use strict";var r=n(4209),o=n(50295),i=n(4887),a=o([].reverse),u=[1,2];r({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},72764:(e,t,n)=>{"use strict";var r=n(4209),o=n(4887),i=n(95386),a=n(21752),u=n(59470),c=n(54020),s=n(79486),l=n(48245),f=n(2905),p=n(21392),d=n(52311),h=p("slice"),y=f("species"),m=Array,v=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,f,p=s(this),h=c(p),g=u(e,h),b=u(void 0===t?h:t,h);if(o(p)&&(n=p.constructor,(i(n)&&(n===m||o(n.prototype))||a(n)&&null===(n=n[y]))&&(n=void 0),n===m||void 0===n))return d(p,g,b);for(r=new(void 0===n?m:n)(v(b-g,0)),f=0;g<b;g++,f++)g in p&&l(r,f,p[g]);return r.length=f,r}})},92973:(e,t,n)=>{"use strict";var r=n(4209),o=n(7189).some;r({target:"Array",proto:!0,forced:!n(62235)("some")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},42396:(e,t,n)=>{"use strict";var r=n(4209),o=n(50295),i=n(83089),a=n(55835),u=n(54020),c=n(91337),s=n(43974),l=n(82304),f=n(41953),p=n(62235),d=n(14855),h=n(48784),y=n(80773),m=n(25109),v=[],g=o(v.sort),b=o(v.push),w=l((function(){v.sort(void 0)})),O=l((function(){v.sort(null)})),E=p("sort"),_=!l((function(){if(y)return y<70;if(!(d&&d>3)){if(h)return!0;if(m)return m<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:w||!O||!E||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?g(t):g(t,e);var n,r,o=[],l=u(t);for(r=0;r<l;r++)r in t&&b(o,t[r]);for(f(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}}(e)),n=o.length,r=0;r<n;)t[r]=o[r++];for(;r<l;)c(t,r++);return t}})},78685:(e,t,n)=>{var r=n(50295),o=n(57002),i=Date.prototype,a="Invalid Date",u="toString",c=r(i.toString),s=r(i.getTime);String(new Date(NaN))!=a&&o(i,u,(function(){var e=s(this);return e==e?c(this):a}))},59201:(e,t,n)=>{var r=n(4209),o=n(68348),i=n(89664),a=n(58113),u="WebAssembly",c=o.WebAssembly,s=7!==Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=a(e,t,s),r({global:!0,constructor:!0,arity:1,forced:s},n)},f=function(e,t){if(c&&c[e]){var n={};n[e]=a("WebAssembly."+e,t,s),r({target:u,stat:!0,constructor:!0,arity:1,forced:s},n)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},86781:(e,t,n)=>{var r=n(57002),o=n(90672),i=Error.prototype;i.toString!==o&&r(i,"toString",o)},82765:(e,t,n)=>{var r=n(4209),o=n(1068);r({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},83386:(e,t,n)=>{var r=n(8370),o=n(10140).EXISTS,i=n(50295),a=n(60342).f,u=Function.prototype,c=i(u.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(s.exec);r&&!o&&a(u,"name",{configurable:!0,get:function(){try{return l(s,c(this))[1]}catch(e){return""}}})},80763:(e,t,n)=>{var r=n(4209),o=n(38161),i=n(89664),a=n(12364),u=n(50295),c=n(82304),s=n(4887),l=n(83907),f=n(21752),p=n(33758),d=n(52311),h=n(37201),y=o("JSON","stringify"),m=u(/./.exec),v=u("".charAt),g=u("".charCodeAt),b=u("".replace),w=u(1..toString),O=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,x=!h||c((function(){var e=o("Symbol")();return"[null]"!=y([e])||"{}"!=y({a:e})||"{}"!=y(Object(e))})),S=c((function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")})),j=function(e,t){var n=d(arguments),r=t;if((f(t)||void 0!==e)&&!p(e))return s(t)||(t=function(e,t){if(l(r)&&(t=a(r,this,e,t)),!p(t))return t}),n[1]=t,i(y,null,n)},P=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return m(E,e)&&!m(_,o)||m(_,e)&&!m(E,r)?"\\u"+w(g(e,0),16):e};y&&r({target:"JSON",stat:!0,arity:3,forced:x||S},{stringify:function(e,t,n){var r=d(arguments),o=i(x?j:y,null,r);return S&&"string"==typeof o?b(o,O,P):o}})},22532:(e,t,n)=>{var r=n(68348);n(14036)(r.JSON,"JSON",!0)},49564:(e,t,n)=>{n(14036)(Math,"Math",!0)},26072:(e,t,n)=>{"use strict";var r=n(8370),o=n(68348),i=n(50295),a=n(82136),u=n(57002),c=n(35920),s=n(84175),l=n(18142),f=n(33758),p=n(4420),d=n(82304),h=n(13194).f,y=n(4172).f,m=n(60342).f,v=n(90364),g=n(16221).trim,b="Number",w=o.Number,O=w.prototype,E=o.TypeError,_=i("".slice),x=i("".charCodeAt),S=function(e){var t=p(e,"number");return"bigint"==typeof t?t:j(t)},j=function(e){var t,n,r,o,i,a,u,c,s=p(e,"number");if(f(s))throw E("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=g(s),43===(t=x(s,0))||45===t){if(88===(n=x(s,2))||120===n)return NaN}else if(48===t){switch(x(s,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=_(s,2)).length,u=0;u<a;u++)if((c=x(i,u))<48||c>o)return NaN;return parseInt(i,r)}return+s};if(a(b,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var P,k=function(e){var t=arguments.length<1?0:w(S(e)),n=this;return l(O,n)&&d((function(){v(n)}))?s(Object(t),n,k):t},I=r?h(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),T=0;I.length>T;T++)c(w,P=I[T])&&!c(k,P)&&m(k,P,y(w,P));k.prototype=O,O.constructor=k,u(o,b,k,{constructor:!0})}},86833:(e,t,n)=>{n(4209)({target:"Number",stat:!0},{isInteger:n(37086)})},15661:(e,t,n)=>{n(4209)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},70849:(e,t,n)=>{"use strict";var r=n(4209),o=n(50295),i=n(89345),a=n(90364),u=n(98816),c=n(82304),s=RangeError,l=String,f=Math.floor,p=o(u),d=o("".slice),h=o(1..toFixed),y=function(e,t,n){return 0===t?n:t%2==1?y(e,t-1,n*e):y(e*e,t/2,n)},m=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=f(o/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=f(r/t),r=r%t*1e7},g=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=l(e[t]);n=""===n?r:n+p("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!c((function(){h({})}))},{toFixed:function(e){var t,n,r,o,u=a(this),c=i(e),f=[0,0,0,0,0,0],h="",b="0";if(c<0||c>20)throw s("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return l(u);if(u<0&&(h="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*y(2,69,1))-69)<0?u*y(2,-t,1):u/y(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(f,0,n),r=c;r>=7;)m(f,1e7,0),r-=7;for(m(f,y(10,r,1),0),r=t-1;r>=23;)v(f,1<<23),r-=23;v(f,1<<r),m(f,1,1),v(f,2),b=g(f)}else m(f,0,n),m(f,1<<-t,0),b=g(f)+p("0",c);return b=c>0?h+((o=b.length)<=c?"0."+p("0",c-o)+b:d(b,0,o-c)+"."+d(b,o-c)):h+b}})},12578:(e,t,n)=>{var r=n(4209),o=n(70194);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},22653:(e,t,n)=>{n(4209)({target:"Object",stat:!0,sham:!n(8370)},{create:n(63513)})},12978:(e,t,n)=>{var r=n(4209),o=n(8370),i=n(81040).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},67407:(e,t,n)=>{var r=n(4209),o=n(8370),i=n(60342).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},99627:(e,t,n)=>{var r=n(4209),o=n(24367),i=n(82304),a=n(21752),u=n(61145).onFreeze,c=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){c(1)})),sham:!o},{freeze:function(e){return c&&a(e)?c(u(e)):e}})},7283:(e,t,n)=>{var r=n(4209),o=n(82304),i=n(79486),a=n(4172).f,u=n(8370),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!u||c,sham:!u},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},75880:(e,t,n)=>{var r=n(4209),o=n(8370),i=n(81448),a=n(79486),u=n(4172),c=n(48245);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=u.f,s=i(r),l={},f=0;s.length>f;)void 0!==(n=o(r,t=s[f++]))&&c(l,t,n);return l}})},18412:(e,t,n)=>{var r=n(4209),o=n(37201),i=n(82304),a=n(19849),u=n(55835);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(u(e)):[]}})},92792:(e,t,n)=>{var r=n(4209),o=n(82304),i=n(55835),a=n(78066),u=n(83379);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function(e){return a(i(e))}})},61511:(e,t,n)=>{var r=n(4209),o=n(55835),i=n(89361);r({target:"Object",stat:!0,forced:n(82304)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},88627:(e,t,n)=>{n(4209)({target:"Object",stat:!0},{setPrototypeOf:n(12398)})},99918:(e,t,n)=>{var r=n(54172),o=n(57002),i=n(51431);r||o(Object.prototype,"toString",i,{unsafe:!0})},94606:(e,t,n)=>{var r=n(4209),o=n(64307).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},13940:(e,t,n)=>{var r=n(4209),o=n(10634);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},92124:(e,t,n)=>{var r=n(4209),o=n(49268);r({global:!0,forced:parseInt!=o},{parseInt:o})},9206:(e,t,n)=>{"use strict";var r=n(4209),o=n(12364),i=n(83089),a=n(63223),u=n(88481),c=n(46386);r({target:"Promise",stat:!0,forced:n(69700)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,s=n.reject,l=u((function(){var n=i(t.resolve),a=[],u=0,l=1;c(e,(function(e){var i=u++,c=!1;l++,o(n,t,e).then((function(e){c||(c=!0,a[i]=e,--l||r(a))}),s)})),--l||r(a)}));return l.error&&s(l.value),n.promise}})},5665:(e,t,n)=>{"use strict";var r=n(4209),o=n(80692),i=n(31240).CONSTRUCTOR,a=n(36576),u=n(38161),c=n(83907),s=n(57002),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&c(a)){var f=u("Promise").prototype.catch;l.catch!==f&&s(l,"catch",f,{unsafe:!0})}},63692:(e,t,n)=>{"use strict";var r,o,i,a=n(4209),u=n(80692),c=n(15200),s=n(68348),l=n(12364),f=n(57002),p=n(12398),d=n(14036),h=n(53207),y=n(83089),m=n(83907),v=n(21752),g=n(66992),b=n(18062),w=n(36585).set,O=n(21029),E=n(10917),_=n(88481),x=n(55149),S=n(22956),j=n(36576),P=n(31240),k=n(63223),I="Promise",T=P.CONSTRUCTOR,R=P.REJECTION_EVENT,C=P.SUBCLASSING,A=S.getterFor(I),N=S.set,L=j&&j.prototype,D=j,M=L,F=s.TypeError,U=s.document,B=s.process,H=k.f,q=H,z=!!(U&&U.createEvent&&s.dispatchEvent),G="unhandledrejection",W=function(e){var t;return!(!v(e)||!m(t=e.then))&&t},V=function(e,t){var n,r,o,i=t.value,a=1==t.state,u=a?e.ok:e.fail,c=e.resolve,s=e.reject,f=e.domain;try{u?(a||(2===t.rejection&&Q(t),t.rejection=1),!0===u?n=i:(f&&f.enter(),n=u(i),f&&(f.exit(),o=!0)),n===e.promise?s(F("Promise-chain cycle")):(r=W(n))?l(r,n,c,s):c(n)):s(i)}catch(e){f&&!o&&f.exit(),s(e)}},Y=function(e,t){e.notified||(e.notified=!0,O((function(){for(var n,r=e.reactions;n=r.get();)V(n,e);e.notified=!1,t&&!e.rejection&&$(e)})))},Z=function(e,t,n){var r,o;z?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},!R&&(o=s["on"+e])?o(r):e===G&&E("Unhandled promise rejection",n)},$=function(e){l(w,s,(function(){var t,n=e.facade,r=e.value;if(K(e)&&(t=_((function(){c?B.emit("unhandledRejection",r,n):Z(G,n,r)})),e.rejection=c||K(e)?2:1,t.error))throw t.value}))},K=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){l(w,s,(function(){var t=e.facade;c?B.emit("rejectionHandled",t):Z("rejectionhandled",t,e.value)}))},X=function(e,t,n){return function(r){e(t,r,n)}},J=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw F("Promise can't be resolved itself");var r=W(t);r?O((function(){var n={done:!1};try{l(r,t,X(ee,n,e),X(J,n,e))}catch(t){J(n,t,e)}})):(e.value=t,e.state=1,Y(e,!1))}catch(t){J({done:!1},t,e)}}};if(T&&(M=(D=function(e){g(this,M),y(e),l(r,this);var t=A(this);try{e(X(ee,t),X(J,t))}catch(e){J(t,e)}}).prototype,(r=function(e){N(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:void 0})}).prototype=f(M,"then",(function(e,t){var n=A(this),r=H(b(this,D));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=c?B.domain:void 0,0==n.state?n.reactions.add(r):O((function(){V(r,n)})),r.promise})),o=function(){var e=new r,t=A(e);this.promise=e,this.resolve=X(ee,t),this.reject=X(J,t)},k.f=H=function(e){return e===D||undefined===e?new o(e):q(e)},!u&&m(j)&&L!==Object.prototype)){i=L.then,C||f(L,"then",(function(e,t){var n=this;return new D((function(e,t){l(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}p&&p(L,M)}a({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:D}),d(D,I,!1,!0),h(I)},72145:(e,t,n)=>{n(63692),n(9206),n(5665),n(8147),n(97120),n(55754)},8147:(e,t,n)=>{"use strict";var r=n(4209),o=n(12364),i=n(83089),a=n(63223),u=n(88481),c=n(46386);r({target:"Promise",stat:!0,forced:n(69700)},{race:function(e){var t=this,n=a.f(t),r=n.reject,s=u((function(){var a=i(t.resolve);c(e,(function(e){o(a,t,e).then(n.resolve,r)}))}));return s.error&&r(s.value),n.promise}})},97120:(e,t,n)=>{"use strict";var r=n(4209),o=n(12364),i=n(63223);r({target:"Promise",stat:!0,forced:n(31240).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return o(t.reject,void 0,e),t.promise}})},55754:(e,t,n)=>{"use strict";var r=n(4209),o=n(38161),i=n(80692),a=n(36576),u=n(31240).CONSTRUCTOR,c=n(26750),s=o("Promise"),l=i&&!u;r({target:"Promise",stat:!0,forced:i||u},{resolve:function(e){return c(l&&this===s?a:this,e)}})},25701:(e,t,n)=>{var r=n(4209),o=n(38161),i=n(89664),a=n(1068),u=n(31474),c=n(95665),s=n(21752),l=n(63513),f=n(82304),p=o("Reflect","construct"),d=Object.prototype,h=[].push,y=f((function(){function e(){}return!(p((function(){}),[],e)instanceof e)})),m=!f((function(){p((function(){}))})),v=y||m;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){u(e),c(t);var n=arguments.length<3?e:u(arguments[2]);if(m&&!y)return p(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(h,r,t),new(i(a,e,r))}var o=n.prototype,f=l(s(o)?o:d),v=i(e,f,t);return s(v)?v:f}})},98120:(e,t,n)=>{var r=n(4209),o=n(68348),i=n(14036);r({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},34591:(e,t,n)=>{var r=n(8370),o=n(68348),i=n(50295),a=n(82136),u=n(84175),c=n(54652),s=n(13194).f,l=n(18142),f=n(12810),p=n(43974),d=n(17350),h=n(7588),y=n(97487),m=n(57002),v=n(82304),g=n(35920),b=n(22956).enforce,w=n(53207),O=n(2905),E=n(53937),_=n(41085),x=O("match"),S=o.RegExp,j=S.prototype,P=o.SyntaxError,k=i(j.exec),I=i("".charAt),T=i("".replace),R=i("".indexOf),C=i("".slice),A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,N=/a/g,L=/a/g,D=new S(N)!==N,M=h.MISSED_STICKY,F=h.UNSUPPORTED_Y,U=r&&(!D||M||E||_||v((function(){return L[x]=!1,S(N)!=N||S(L)==L||"/a/i"!=S(N,"i")})));if(a("RegExp",U)){for(var B=function(e,t){var n,r,o,i,a,s,h=l(j,this),y=f(e),m=void 0===t,v=[],w=e;if(!h&&y&&m&&e.constructor===B)return e;if((y||l(j,e))&&(e=e.source,m&&(t=d(w))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),w=e,E&&"dotAll"in N&&(r=!!t&&R(t,"s")>-1)&&(t=T(t,/s/g,"")),n=t,M&&"sticky"in N&&(o=!!t&&R(t,"y")>-1)&&F&&(t=T(t,/y/g,"")),_&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,c=!1,s=0,l="";r<=n;r++){if("\\"===(t=I(e,r)))t+=I(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:k(A,C(e,r+1))&&(r+=2,c=!0),o+=t,s++;continue;case">"===t&&c:if(""===l||g(a,l))throw new P("Invalid capture group name");a[l]=!0,i[i.length]=[l,s],c=!1,l="";continue}c?l+=t:o+=t}return[o,i]}(e))[0],v=i[1]),a=u(S(e,t),h?this:j,B),(r||o||v.length)&&(s=b(a),r&&(s.dotAll=!0,s.raw=B(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=I(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+I(e,++r);return o}(e),n)),o&&(s.sticky=!0),v.length&&(s.groups=v)),e!==w)try{c(a,"source",""===w?"(?:)":w)}catch(e){}return a},H=s(S),q=0;H.length>q;)y(B,S,H[q++]);j.constructor=B,B.prototype=j,m(o,"RegExp",B,{constructor:!0})}w("RegExp")},41866:(e,t,n)=>{var r=n(8370),o=n(53937),i=n(47157),a=n(21394),u=n(22956).get,c=RegExp.prototype,s=TypeError;r&&o&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!u(this).dotAll;throw s("Incompatible receiver, RegExp required")}}})},42484:(e,t,n)=>{"use strict";var r=n(4209),o=n(64118);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},11253:(e,t,n)=>{var r=n(8370),o=n(7588).MISSED_STICKY,i=n(47157),a=n(21394),u=n(22956).get,c=RegExp.prototype,s=TypeError;r&&o&&a(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!u(this).sticky;throw s("Incompatible receiver, RegExp required")}}})},31815:(e,t,n)=>{"use strict";n(42484);var r,o,i=n(4209),a=n(12364),u=n(50295),c=n(83907),s=n(21752),l=(r=!1,(o=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&r),f=TypeError,p=u(/./.test);i({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=this.exec;if(!c(t))return p(this,e);var n=a(t,this,e);if(null!==n&&!s(n))throw new f("RegExp exec method returned something other than an Object or null");return!!n}})},28417:(e,t,n)=>{"use strict";var r=n(10140).PROPER,o=n(57002),i=n(95665),a=n(43974),u=n(82304),c=n(17350),s="toString",l=RegExp.prototype.toString,f=u((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),p=r&&l.name!=s;(f||p)&&o(RegExp.prototype,s,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},86330:(e,t,n)=>{"use strict";n(86535)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(81632))},68064:(e,t,n)=>{n(86330)},48078:(e,t,n)=>{"use strict";var r,o=n(4209),i=n(50295),a=n(4172).f,u=n(36350),c=n(43974),s=n(9397),l=n(21132),f=n(33241),p=n(80692),d=i("".endsWith),h=i("".slice),y=Math.min,m=f("endsWith");o({target:"String",proto:!0,forced:!!(p||m||(r=a(String.prototype,"endsWith"),!r||r.writable))&&!m},{endsWith:function(e){var t=c(l(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:y(u(n),r),i=c(e);return d?d(t,i,o):h(t,o-i.length,o)===i}})},6893:(e,t,n)=>{"use strict";var r=n(4209),o=n(50295),i=n(9397),a=n(21132),u=n(43974),c=n(33241),s=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~s(u(a(this)),u(i(e)),arguments.length>1?arguments[1]:void 0)}})},66728:(e,t,n)=>{"use strict";var r=n(42968).charAt,o=n(43974),i=n(22956),a=n(69106),u="String Iterator",c=i.set,s=i.getterFor(u);a(String,"String",(function(e){c(this,{type:u,string:o(e),index:0})}),(function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},4941:(e,t,n)=>{"use strict";var r=n(12364),o=n(19798),i=n(95665),a=n(36350),u=n(43974),c=n(21132),s=n(37838),l=n(96281),f=n(90123);o("match",(function(e,t,n){return[function(t){var n=c(this),o=null==t?void 0:s(t,e);return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=i(this),o=u(e),c=n(t,r,o);if(c.done)return c.value;if(!r.global)return f(r,o);var s=r.unicode;r.lastIndex=0;for(var p,d=[],h=0;null!==(p=f(r,o));){var y=u(p[0]);d[h]=y,""===y&&(r.lastIndex=l(o,a(r.lastIndex),s)),h++}return 0===h?null:d}]}))},71772:(e,t,n)=>{"use strict";var r=n(89664),o=n(12364),i=n(50295),a=n(19798),u=n(82304),c=n(95665),s=n(83907),l=n(89345),f=n(36350),p=n(43974),d=n(21132),h=n(96281),y=n(37838),m=n(30585),v=n(90123),g=n(2905)("replace"),b=Math.max,w=Math.min,O=i([].concat),E=i([].push),_=i("".indexOf),x=i("".slice),S="$0"==="a".replace(/./,"$0"),j=!!/./[g]&&""===/./[g]("a","$0");a("replace",(function(e,t,n){var i=j?"$":"$0";return[function(e,n){var r=d(this),i=null==e?void 0:y(e,g);return i?o(i,e,r,n):o(t,p(r),e,n)},function(e,o){var a=c(this),u=p(e);if("string"==typeof o&&-1===_(o,i)&&-1===_(o,"$<")){var d=n(t,a,u,o);if(d.done)return d.value}var y=s(o);y||(o=p(o));var g=a.global;if(g){var S=a.unicode;a.lastIndex=0}for(var j=[];;){var P=v(a,u);if(null===P)break;if(E(j,P),!g)break;""===p(P[0])&&(a.lastIndex=h(u,f(a.lastIndex),S))}for(var k,I="",T=0,R=0;R<j.length;R++){for(var C=p((P=j[R])[0]),A=b(w(l(P.index),u.length),0),N=[],L=1;L<P.length;L++)E(N,void 0===(k=P[L])?k:String(k));var D=P.groups;if(y){var M=O([C],N,A,u);void 0!==D&&E(M,D);var F=p(r(o,void 0,M))}else F=m(C,u,A,N,D,o);A>=T&&(I+=x(u,T,A)+F,T=A+C.length)}return I+x(u,T)}]}),!!u((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!S||j)},71246:(e,t,n)=>{"use strict";var r=n(12364),o=n(19798),i=n(95665),a=n(21132),u=n(19300),c=n(43974),s=n(37838),l=n(90123);o("search",(function(e,t,n){return[function(t){var n=a(this),o=null==t?void 0:s(t,e);return o?r(o,t,n):new RegExp(t)[e](c(n))},function(e){var r=i(this),o=c(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var f=l(r,o);return u(r.lastIndex,s)||(r.lastIndex=s),null===f?-1:f.index}]}))},24450:(e,t,n)=>{"use strict";var r=n(89664),o=n(12364),i=n(50295),a=n(19798),u=n(12810),c=n(95665),s=n(21132),l=n(18062),f=n(96281),p=n(36350),d=n(43974),h=n(37838),y=n(51069),m=n(90123),v=n(64118),g=n(7588),b=n(82304),w=g.UNSUPPORTED_Y,O=4294967295,E=Math.min,_=[].push,x=i(/./.exec),S=i(_),j=i("".slice);a("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=d(s(this)),a=void 0===n?O:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!u(e))return o(t,i,e,a);for(var c,l,f,p=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=new RegExp(e.source,h+"g");(c=o(v,g,i))&&!((l=g.lastIndex)>m&&(S(p,j(i,m,c.index)),c.length>1&&c.index<i.length&&r(_,p,y(c,1)),f=c[0].length,m=l,p.length>=a));)g.lastIndex===c.index&&g.lastIndex++;return m===i.length?!f&&x(g,"")||S(p,""):S(p,j(i,m)),p.length>a?y(p,0,a):p}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=s(this),a=null==t?void 0:h(t,e);return a?o(a,t,r,n):o(i,d(r),t,n)},function(e,r){var o=c(this),a=d(e),u=n(i,o,a,r,i!==t);if(u.done)return u.value;var s=l(o,RegExp),h=o.unicode,y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(w?"g":"y"),v=new s(w?"^(?:"+o.source+")":o,y),g=void 0===r?O:r>>>0;if(0===g)return[];if(0===a.length)return null===m(v,a)?[a]:[];for(var b=0,_=0,x=[];_<a.length;){v.lastIndex=w?0:_;var P,k=m(v,w?j(a,_):a);if(null===k||(P=E(p(v.lastIndex+(w?_:0)),a.length))===b)_=f(a,_,h);else{if(S(x,j(a,b,_)),x.length===g)return x;for(var I=1;I<=k.length-1;I++)if(S(x,k[I]),x.length===g)return x;_=b=P}}return S(x,j(a,b)),x}]}),!!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),w)},95581:(e,t,n)=>{"use strict";var r,o=n(4209),i=n(50295),a=n(4172).f,u=n(36350),c=n(43974),s=n(9397),l=n(21132),f=n(33241),p=n(80692),d=i("".startsWith),h=i("".slice),y=Math.min,m=f("startsWith");o({target:"String",proto:!0,forced:!!(p||m||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!m},{startsWith:function(e){var t=c(l(this));s(e);var n=u(y(arguments.length>1?arguments[1]:void 0,t.length)),r=c(e);return d?d(t,r,n):h(t,n,n+r.length)===r}})},76047:(e,t,n)=>{"use strict";var r=n(4209),o=n(50295),i=n(21132),a=n(89345),u=n(43974),c=o("".slice),s=Math.max,l=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var n,r,o=u(i(this)),f=o.length,p=a(e);return p===1/0&&(p=0),p<0&&(p=s(f+p,0)),(n=void 0===t?f:a(t))<=0||n===1/0||p>=(r=l(p+n,f))?"":c(o,p,r)}})},38233:(e,t,n)=>{"use strict";var r=n(4209),o=n(16221).trim;r({target:"String",proto:!0,forced:n(21225)("trim")},{trim:function(){return o(this)}})},20227:(e,t,n)=>{n(87251)("asyncIterator")},29283:(e,t,n)=>{"use strict";var r=n(4209),o=n(68348),i=n(12364),a=n(50295),u=n(80692),c=n(8370),s=n(37201),l=n(82304),f=n(35920),p=n(18142),d=n(95665),h=n(79486),y=n(54089),m=n(43974),v=n(53688),g=n(63513),b=n(89361),w=n(13194),O=n(78698),E=n(19849),_=n(4172),x=n(60342),S=n(81040),j=n(12922),P=n(57002),k=n(54365),I=n(95235),T=n(19112),R=n(51339),C=n(2905),A=n(43445),N=n(87251),L=n(50205),D=n(14036),M=n(22956),F=n(7189).forEach,U=I("hidden"),B="Symbol",H=M.set,q=M.getterFor(B),z=Object.prototype,G=o.Symbol,W=G&&G.prototype,V=o.TypeError,Y=o.QObject,Z=_.f,$=x.f,K=O.f,Q=j.f,X=a([].push),J=k("symbols"),ee=k("op-symbols"),te=k("wks"),ne=!Y||!Y.prototype||!Y.prototype.findChild,re=c&&l((function(){return 7!=g($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Z(z,t);r&&delete z[t],$(e,t,n),r&&e!==z&&$(z,t,r)}:$,oe=function(e,t){var n=J[e]=g(W);return H(n,{type:B,tag:e,description:t}),c||(n.description=t),n},ie=function(e,t,n){e===z&&ie(ee,t,n),d(e);var r=y(t);return d(n),f(J,r)?(n.enumerable?(f(e,U)&&e[U][r]&&(e[U][r]=!1),n=g(n,{enumerable:v(0,!1)})):(f(e,U)||$(e,U,v(1,{})),e[U][r]=!0),re(e,r,n)):$(e,r,n)},ae=function(e,t){d(e);var n=h(t),r=b(n).concat(le(n));return F(r,(function(t){c&&!i(ue,n,t)||ie(e,t,n[t])})),e},ue=function(e){var t=y(e),n=i(Q,this,t);return!(this===z&&f(J,t)&&!f(ee,t))&&(!(n||!f(this,t)||!f(J,t)||f(this,U)&&this[U][t])||n)},ce=function(e,t){var n=h(e),r=y(t);if(n!==z||!f(J,r)||f(ee,r)){var o=Z(n,r);return!o||!f(J,r)||f(n,U)&&n[U][r]||(o.enumerable=!0),o}},se=function(e){var t=K(h(e)),n=[];return F(t,(function(e){f(J,e)||f(T,e)||X(n,e)})),n},le=function(e){var t=e===z,n=K(t?ee:h(e)),r=[];return F(n,(function(e){!f(J,e)||t&&!f(z,e)||X(r,J[e])})),r};s||(P(W=(G=function(){if(p(W,this))throw V("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=R(e),n=function(e){this===z&&i(n,ee,e),f(this,U)&&f(this[U],t)&&(this[U][t]=!1),re(this,t,v(1,e))};return c&&ne&&re(z,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return q(this).tag})),P(G,"withoutSetter",(function(e){return oe(R(e),e)})),j.f=ue,x.f=ie,S.f=ae,_.f=ce,w.f=O.f=se,E.f=le,A.f=function(e){return oe(C(e),e)},c&&($(W,"description",{configurable:!0,get:function(){return q(this).description}}),u||P(z,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:G}),F(b(te),(function(e){N(e)})),r({target:B,stat:!0,forced:!s},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(e,t){return void 0===t?g(e):ae(g(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:se}),L(),D(G,B),T[U]=!0},38957:(e,t,n)=>{"use strict";var r=n(4209),o=n(8370),i=n(68348),a=n(50295),u=n(35920),c=n(83907),s=n(18142),l=n(43974),f=n(60342).f,p=n(37349),d=i.Symbol,h=d&&d.prototype;if(o&&c(d)&&(!("description"in h)||void 0!==d().description)){var y={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=s(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(y[t]=!0),t};p(m,d),m.prototype=h,h.constructor=m;var v="Symbol(test)"==String(d("test")),g=a(h.toString),b=a(h.valueOf),w=/^Symbol\((.*)\)[^)]+$/,O=a("".replace),E=a("".slice);f(h,"description",{configurable:!0,get:function(){var e=b(this),t=g(e);if(u(y,e))return"";var n=v?E(t,7,-1):O(t,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},48959:(e,t,n)=>{var r=n(4209),o=n(38161),i=n(35920),a=n(43974),u=n(54365),c=n(75698),s=u("string-to-symbol-registry"),l=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=a(e);if(i(s,t))return s[t];var n=o("Symbol")(t);return s[t]=n,l[n]=t,n}})},51913:(e,t,n)=>{n(87251)("iterator")},79249:(e,t,n)=>{n(29283),n(48959),n(6935),n(80763),n(18412)},6935:(e,t,n)=>{var r=n(4209),o=n(35920),i=n(33758),a=n(89075),u=n(54365),c=n(75698),s=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(s,e))return s[e]}})},21094:(e,t,n)=>{var r=n(38161),o=n(87251),i=n(14036);o("toStringTag"),i(r("Symbol"),"Symbol")},9536:(e,t,n)=>{var r=n(68348),o=n(6917),i=n(4152),a=n(66469),u=n(54652),c=function(e){if(e&&e.forEach!==a)try{u(e,"forEach",a)}catch(t){e.forEach=a}};for(var s in o)o[s]&&c(r[s]&&r[s].prototype);c(i)},53689:(e,t,n)=>{var r=n(68348),o=n(6917),i=n(4152),a=n(87758),u=n(54652),c=n(2905),s=c("iterator"),l=c("toStringTag"),f=a.values,p=function(e,t){if(e){if(e[s]!==f)try{u(e,s,f)}catch(t){e[s]=f}if(e[l]||u(e,l,t),o[t])for(var n in a)if(e[n]!==a[n])try{u(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var d in o)p(r[d]&&r[d].prototype,d);p(i,"DOMTokenList")},59694:(e,t,n)=>{var r=n(4209),o=n(68348),i=n(65387).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},14187:(e,t,n)=>{var r=n(4209),o=n(68348),i=n(65387).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},99385:(e,t,n)=>{n(59694),n(14187)},12569:(e,t,n)=>{"use strict";var r=n(23205);function o(){this._key="chai/deep-eql__"+Math.random()+Date.now()}o.prototype={get:function(e){return e[this._key]},set:function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})}};var i="function"==typeof WeakMap?WeakMap:o;function a(e,t,n){if(!n||g(e)||g(t))return null;var r=n.get(e);if(r){var o=r.get(t);if("boolean"==typeof o)return o}return null}function u(e,t,n,r){if(n&&!g(e)&&!g(t)){var o=n.get(e);o?o.set(t,r):((o=new i).set(t,r),n.set(e,o))}}function c(e,t,n){if(n&&n.comparator)return l(e,t,n);var r=s(e,t);return null!==r?r:l(e,t,n)}function s(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t||!g(e)&&!g(t)&&null}function l(e,t,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new i);var o=n&&n.comparator,l=a(e,t,n.memoize);if(null!==l)return l;var g=a(t,e,n.memoize);if(null!==g)return g;if(o){var b=o(e,t);if(!1===b||!0===b)return u(e,t,n.memoize,b),b;var w=s(e,t);if(null!==w)return w}var O=r(e);if(O!==r(t))return u(e,t,n.memoize,!1),!1;u(e,t,n.memoize,!0);var E=function(e,t,n,r){switch(n){case"String":case"Number":case"Boolean":case"Date":return c(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return v(e,t,["name","message","code"],r);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return p(e,t,r);case"RegExp":return function(e,t){return e.toString()===t.toString()}(e,t);case"Generator":return function(e,t,n){return p(h(e),h(t),n)}(e,t,r);case"DataView":return p(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case"ArrayBuffer":return p(new Uint8Array(e),new Uint8Array(t),r);case"Set":case"Map":return f(e,t,r);default:return function(e,t,n){var r=y(e),o=y(t),i=m(e),a=m(t);i&&(r=r.concat(i));a&&(o=o.concat(a));if(r.length&&r.length===o.length)return r.sort(),o.sort(),!1!==p(r,o)&&v(e,t,r,n);var u=d(e),c=d(t);if(u.length&&u.length===c.length)return u.sort(),c.sort(),p(u,c,n);if(0===r.length&&0===u.length&&0===o.length&&0===c.length)return!0;return!1}(e,t,r)}}(e,t,O,n);return u(e,t,n.memoize,E),E}function f(e,t,n){if(e.size!==t.size)return!1;if(0===e.size)return!0;var r=[],o=[];return e.forEach((function(e,t){r.push([e,t])})),t.forEach((function(e,t){o.push([e,t])})),p(r.sort(),o.sort(),n)}function p(e,t,n){var r=e.length;if(r!==t.length)return!1;if(0===r)return!0;for(var o=-1;++o<r;)if(!1===c(e[o],t[o],n))return!1;return!0}function d(e){if(function(e){return"undefined"!=typeof Symbol&&"object"==typeof e&&void 0!==Symbol.iterator&&"function"==typeof e[Symbol.iterator]}(e))try{return h(e[Symbol.iterator]())}catch(e){return[]}return[]}function h(e){for(var t=e.next(),n=[t.value];!1===t.done;)t=e.next(),n.push(t.value);return n}function y(e){var t=[];for(var n in e)t.push(n);return t}function m(e){return Object.getOwnPropertySymbols(e)}function v(e,t,n,r){var o=n.length;if(0===o)return!0;for(var i=0;i<o;i+=1)if(!1===c(e[n[i]],t[n[i]],r))return!1;return!0}function g(e){return null===e||"object"!=typeof e}e.exports=c,e.exports.MemoizeMap=i},49394:function(e,t,n){e.exports=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var r=t((function(t,n){!function(e,n){t.exports=n()}(0,(function(){var t="function"==typeof Promise,n="object"==typeof self?self:e,r="undefined"!=typeof Symbol,o="undefined"!=typeof Map,i="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,u="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,s=r&&void 0!==Symbol.iterator,l=r&&void 0!==Symbol.toStringTag,f=i&&"function"==typeof Set.prototype.entries,p=o&&"function"==typeof Map.prototype.entries,d=f&&Object.getPrototypeOf((new Set).entries()),h=p&&Object.getPrototypeOf((new Map).entries()),y=s&&"function"==typeof Array.prototype[Symbol.iterator],m=y&&Object.getPrototypeOf([][Symbol.iterator]()),v=s&&"function"==typeof String.prototype[Symbol.iterator],g=v&&Object.getPrototypeOf(""[Symbol.iterator]()),b=8,w=-1;function O(e){var r=typeof e;if("object"!==r)return r;if(null===e)return"null";if(e===n)return"global";if(Array.isArray(e)&&(!1===l||!(Symbol.toStringTag in e)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&e===window.location)return"Location";if("object"==typeof window.document&&e===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&e===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&e===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&e instanceof window.HTMLElement){if("BLOCKQUOTE"===e.tagName)return"HTMLQuoteElement";if("TD"===e.tagName)return"HTMLTableDataCellElement";if("TH"===e.tagName)return"HTMLTableHeaderCellElement"}}var s=l&&e[Symbol.toStringTag];if("string"==typeof s)return s;var f=Object.getPrototypeOf(e);return f===RegExp.prototype?"RegExp":f===Date.prototype?"Date":t&&f===Promise.prototype?"Promise":i&&f===Set.prototype?"Set":o&&f===Map.prototype?"Map":u&&f===WeakSet.prototype?"WeakSet":a&&f===WeakMap.prototype?"WeakMap":c&&f===DataView.prototype?"DataView":o&&f===h?"Map Iterator":i&&f===d?"Set Iterator":y&&f===m?"Array Iterator":v&&f===g?"String Iterator":null===f?"Object":Object.prototype.toString.call(e).slice(b,w)}return O}))}));const o="undefined"!=typeof Buffer,i=o&&void 0!==Buffer.from,a=o?function(e){return Buffer.isBuffer(e)}:function(){return!1},u=i?function(e){return Buffer.from(e)}:o?function(e){return new Buffer(e)}:function(e){return e};function c(e){return a(e)?"Buffer":r(e)}const s=new Set(["Arguments","Array","Map","Object","Set"]);function l(e,t,n=null){switch(n||c(e)){case"Arguments":case"Array":case"Object":return e[t];case"Map":return e.get(t);case"Set":return t}}function f(e){return s.has(e)}function p(e,t,n,r=null){switch(r||c(e)){case"Arguments":case"Array":case"Object":e[t]=n;break;case"Map":e.set(t,n);break;case"Set":e.add(n)}return e}const d="undefined"!=typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis,h=void 0!==n.g&&null!==n.g&&n.g.Object===Object&&n.g,y="undefined"!=typeof self&&null!==self&&self.Object===Object&&self,m=d||h||y||Function("return this")();function v(e){return e.slice(0)}function g(e){return new Boolean(e.valueOf())}function b(e){return new DataView(e.buffer)}function w(e){return u(e)}function O(e){return new Date(e.getTime())}function E(e){return new Number(e)}function _(e){return new RegExp(e.source,e.flags)}function x(e){return new String(e)}function S(e,t){return m[t].from?m[t].from(e):new m[t](e)}function j(e){return e}function P(){return[]}function k(){return new Map}function I(){return{}}function T(){return new Set}var R=new Map([["ArrayBuffer",v],["Boolean",g],["Buffer",w],["DataView",b],["Date",O],["Number",E],["RegExp",_],["String",x],["Float32Array",S],["Float64Array",S],["Int16Array",S],["Int32Array",S],["Int8Array",S],["Uint16Array",S],["Uint32Array",S],["Uint8Array",S],["Uint8ClampedArray",S],["Array Iterator",j],["Map Iterator",j],["Promise",j],["Set Iterator",j],["String Iterator",j],["function",j],["global",j],["WeakMap",j],["WeakSet",j],["boolean",j],["null",j],["number",j],["string",j],["symbol",j],["undefined",j],["Arguments",P],["Array",P],["Map",k],["Object",I],["Set",T]]);function C(){}function A(e,t=null,n=C){2===arguments.length&&"function"==typeof t&&(n=t,t=null);const r=t||c(e),o=R.get(r);if("Object"===r){const t=n(e,r);if(void 0!==t)return t}return o?o(e,r):e}function N(e,t={}){"function"==typeof t&&(t={customizer:t});const{customizer:n}=t,r=c(e);if(!f(r))return L(e,null,null,null);const o=A(e,r,n);return L(e,o,new WeakMap([[e,o]]),new WeakSet([e]))}function L(e,t,n,r,o){const i=c(e),a=A(e,i);if(!f(i))return a;let u;switch(i){case"Arguments":case"Array":u=Object.keys(e);break;case"Object":u=Object.keys(e),u.push(...Object.getOwnPropertySymbols(e));break;case"Map":case"Set":u=e.keys()}for(let o of u){const a=l(e,o,i);if(r.has(a))p(t,o,n.get(a),i);else{const e=c(a),u=A(a,e);f(e)&&(n.set(a,u),r.add(a)),p(t,o,L(a,u,n,r),i)}}return t}return N}()},44683:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return(r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i}).apply(null,arguments)}function o(e){return i(e)||a(e)||u(e)||s()}function i(e){if(Array.isArray(e))return c(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,f=Object.setPrototypeOf,p=Object.isFrozen,d=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,y=Object.freeze,m=Object.seal,v=Object.create,g="undefined"!=typeof Reflect&&Reflect,b=g.apply,w=g.construct;b||(b=function(e,t,n){return e.apply(t,n)}),y||(y=function(e){return e}),m||(m=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var O=R(Array.prototype.forEach),E=R(Array.prototype.pop),_=R(Array.prototype.push),x=R(String.prototype.toLowerCase),S=R(String.prototype.match),j=R(String.prototype.replace),P=R(String.prototype.indexOf),k=R(String.prototype.trim),I=R(RegExp.prototype.test),T=C(TypeError);function R(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function C(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function A(e,t){f&&f(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=x(r);o!==r&&(p(t)||(t[n]=o),r=o)}e[r]=!0}return e}function N(e){var t,n=v(null);for(t in e)b(l,e,[t])&&(n[t]=e[t]);return n}function L(e,t){for(;null!==e;){var n=h(e,t);if(n){if(n.get)return R(n.get);if("function"==typeof n.value)return R(n.value)}e=d(e)}function r(e){return null}return r}var D=y(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),F=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),U=y(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=y(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),H=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=y(["#text"]),z=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),G=y(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),W=y(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y=m(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Z=m(/<%[\w\W]*|[\w\W]*%>/gm),$=m(/^data-[\-\w.\u00B7-\uFFFF]/),K=m(/^aria-[\-\w]+$/),Q=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=m(/^(?:\w+script|data):/i),J=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=m(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e}})}catch(e){return null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.3.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,u=t.HTMLTemplateElement,c=t.Node,s=t.Element,l=t.NodeFilter,f=t.NamedNodeMap,p=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,d=t.HTMLFormElement,h=t.DOMParser,m=t.trustedTypes,v=s.prototype,g=L(v,"cloneNode"),b=L(v,"nextSibling"),w=L(v,"childNodes"),R=L(v,"parentNode");if("function"==typeof u){var C=i.createElement("template");C.content&&C.content.ownerDocument&&(i=C.content.ownerDocument)}var oe=ne(m,r),ie=oe?oe.createHTML(""):"",ae=i,ue=ae.implementation,ce=ae.createNodeIterator,se=ae.createDocumentFragment,le=ae.getElementsByTagName,fe=r.importNode,pe={};try{pe=N(i).documentMode?i.documentMode:{}}catch(e){}var de={};n.isSupported="function"==typeof R&&ue&&void 0!==ue.createHTMLDocument&&9!==pe;var he,ye,me=Y,ve=Z,ge=$,be=K,we=X,Oe=J,Ee=Q,_e=null,xe=A({},[].concat(o(D),o(M),o(F),o(B),o(q))),Se=null,je=A({},[].concat(o(z),o(G),o(W),o(V))),Pe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,Ie=null,Te=!0,Re=!0,Ce=!1,Ae=!1,Ne=!1,Le=!1,De=!1,Me=!1,Fe=!1,Ue=!1,Be=!0,He=!0,qe=!1,ze={},Ge=null,We=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,Ye=A({},["audio","video","img","source","image","track"]),Ze=null,$e=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml",Je=Xe,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,ot=i.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=N(t),_e="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS):xe,Se="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR):je,Ze="ADD_URI_SAFE_ATTR"in t?A(N($e),t.ADD_URI_SAFE_ATTR):$e,Ve="ADD_DATA_URI_TAGS"in t?A(N(Ye),t.ADD_DATA_URI_TAGS):Ye,Ge="FORBID_CONTENTS"in t?A({},t.FORBID_CONTENTS):We,ke="FORBID_TAGS"in t?A({},t.FORBID_TAGS):{},Ie="FORBID_ATTR"in t?A({},t.FORBID_ATTR):{},ze="USE_PROFILES"in t&&t.USE_PROFILES,Te=!1!==t.ALLOW_ARIA_ATTR,Re=!1!==t.ALLOW_DATA_ATTR,Ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,Me=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,De=t.FORCE_BODY||!1,Be=!1!==t.SANITIZE_DOM,He=!1!==t.KEEP_CONTENT,qe=t.IN_PLACE||!1,Ee=t.ALLOWED_URI_REGEXP||Ee,Je=t.NAMESPACE||Xe,t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Pe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he=he=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===he?function(e){return e}:x,Ae&&(Re=!1),Fe&&(Me=!0),ze&&(_e=A({},o(q)),Se=[],!0===ze.html&&(A(_e,D),A(Se,z)),!0===ze.svg&&(A(_e,M),A(Se,G),A(Se,V)),!0===ze.svgFilters&&(A(_e,F),A(Se,G),A(Se,V)),!0===ze.mathMl&&(A(_e,B),A(Se,W),A(Se,V))),t.ADD_TAGS&&(_e===xe&&(_e=N(_e)),A(_e,t.ADD_TAGS)),t.ADD_ATTR&&(Se===je&&(Se=N(Se)),A(Se,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&A(Ze,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(Ge===We&&(Ge=N(Ge)),A(Ge,t.FORBID_CONTENTS)),He&&(_e["#text"]=!0),Ne&&A(_e,["html","head","body"]),_e.table&&(A(_e,["tbody"]),delete ke.tbody),y&&y(t),rt=t)},ut=A({},["mi","mo","mn","ms","mtext"]),ct=A({},["foreignobject","desc","title","annotation-xml"]),st=A({},["title","style","font","a","script"]),lt=A({},M);A(lt,F),A(lt,U);var ft=A({},B);A(ft,H);var pt=function(e){var t=R(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});var n=x(e.tagName),r=x(t.tagName);return e.namespaceURI===Qe?t.namespaceURI===Xe?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(lt[n]):e.namespaceURI===Ke?t.namespaceURI===Xe?"math"===n:t.namespaceURI===Qe?"math"===n&&ct[r]:Boolean(ft[n]):e.namespaceURI===Xe&&!(t.namespaceURI===Qe&&!ct[r])&&!(t.namespaceURI===Ke&&!ut[r])&&!ft[n]&&(st[n]||!lt[n])},dt=function(e){_(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},ht=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(Me||Fe)try{dt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){var t,n;if(De)e="<remove></remove>"+e;else{var r=S(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(Je===Xe)try{t=(new h).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),Je===Xe?le.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:a},mt=function(e){return ce.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},vt=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},gt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},bt=function(e,t,r){de[e]&&O(de[e],(function(e){e.call(n,t,r,rt)}))},wt=function(e){var t;if(bt("beforeSanitizeElements",e,null),vt(e))return dt(e),!0;if(I(/[\u0080-\uFFFF]/,e.nodeName))return dt(e),!0;var r=ye(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:r,allowedTags:_e}),e.hasChildNodes()&&!gt(e.firstElementChild)&&(!gt(e.content)||!gt(e.content.firstElementChild))&&I(/<[/\w]/g,e.innerHTML)&&I(/<[/\w]/g,e.textContent))return dt(e),!0;if("select"===r&&I(/<template/i,e.innerHTML))return dt(e),!0;if(!_e[r]||ke[r]){if(!ke[r]&&Et(r)){if(Pe.tagNameCheck instanceof RegExp&&I(Pe.tagNameCheck,r))return!1;if(Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(r))return!1}if(He&&!Ge[r]){var o=R(e)||e.parentNode,i=w(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(g(i[a],!0),b(e))}return dt(e),!0}return e instanceof s&&!pt(e)?(dt(e),!0):"noscript"!==r&&"noembed"!==r||!I(/<\/no(script|embed)/i,e.innerHTML)?(Ae&&3===e.nodeType&&(t=e.textContent,t=j(t,me," "),t=j(t,ve," "),e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(dt(e),!0)},Ot=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in i||n in ot))return!1;if(Re&&!Ie[t]&&I(ge,t));else if(Te&&I(be,t));else if(!Se[t]||Ie[t]){if(!(Et(e)&&(Pe.tagNameCheck instanceof RegExp&&I(Pe.tagNameCheck,e)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(e))&&(Pe.attributeNameCheck instanceof RegExp&&I(Pe.attributeNameCheck,t)||Pe.attributeNameCheck instanceof Function&&Pe.attributeNameCheck(t))||"is"===t&&Pe.allowCustomizedBuiltInElements&&(Pe.tagNameCheck instanceof RegExp&&I(Pe.tagNameCheck,n)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(n))))return!1}else if(Ze[t]);else if(I(Ee,j(n,Oe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==P(n,"data:")||!Ve[e])if(Ce&&!I(we,j(n,Oe,"")));else if(n)return!1;return!0},Et=function(e){return e.indexOf("-")>0},_t=function(e){var t,r,o,i;bt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(i=a.length;i--;){var c=t=a[i],s=c.name,l=c.namespaceURI;if(r="value"===s?t.value:k(t.value),o=ye(s),u.attrName=o,u.attrValue=r,u.keepAttr=!0,u.forceKeepAttr=void 0,bt("uponSanitizeAttribute",e,u),r=u.attrValue,!u.forceKeepAttr&&(ht(s,e),u.keepAttr))if(I(/\/>/i,r))ht(s,e);else{Ae&&(r=j(r,me," "),r=j(r,ve," "));var f=ye(e.nodeName);if(Ot(f,o,r))try{l?e.setAttributeNS(l,s,r):e.setAttribute(s,r),E(n.removed)}catch(e){}}}bt("afterSanitizeAttributes",e,null)}},xt=function e(t){var n,r=mt(t);for(bt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)bt("uponSanitizeShadowNode",n,null),wt(n)||(n.content instanceof a&&e(n.content),_t(n));bt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o,i){var u,s,l,f,p;if((et=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!gt(o)){if("function"!=typeof o.toString)throw T("toString is not a function");if("string"!=typeof(o=o.toString()))throw T("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(gt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Le||at(i),n.removed=[],"string"==typeof o&&(qe=!1),qe){if(o.nodeName){var d=ye(o.nodeName);if(!_e[d]||ke[d])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof c)1===(s=(u=yt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?u=s:u.appendChild(s);else{if(!Me&&!Ae&&!Ne&&-1===o.indexOf("<"))return oe&&Ue?oe.createHTML(o):o;if(!(u=yt(o)))return Me?null:Ue?ie:""}u&&De&&dt(u.firstChild);for(var h=mt(qe?o:u);l=h.nextNode();)3===l.nodeType&&l===f||wt(l)||(l.content instanceof a&&xt(l.content),_t(l),f=l);if(f=null,qe)return o;if(Me){if(Fe)for(p=se.call(u.ownerDocument);u.firstChild;)p.appendChild(u.firstChild);else p=u;return Se.shadowroot&&(p=fe.call(r,p,!0)),p}var y=Ne?u.outerHTML:u.innerHTML;return Ne&&_e["!doctype"]&&u.ownerDocument&&u.ownerDocument.doctype&&u.ownerDocument.doctype.name&&I(ee,u.ownerDocument.doctype.name)&&(y="<!DOCTYPE "+u.ownerDocument.doctype.name+">\n"+y),Ae&&(y=j(y,me," "),y=j(y,ve," ")),oe&&Ue?oe.createHTML(y):y},n.setConfig=function(e){at(e),Le=!0},n.clearConfig=function(){rt=null,Le=!1},n.isValidAttribute=function(e,t,n){rt||at({});var r=ye(e),o=ye(t);return Ot(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(de[e]=de[e]||[],_(de[e],t))},n.removeHook=function(e){if(de[e])return E(de[e])},n.removeHooks=function(e){de[e]&&(de[e]=[])},n.removeAllHooks=function(){de={}},n}return re()}()},97925:e=>{e.exports={middleware:function(e,t,n){throw new Error("`middleware` cannot be called from the browser code.")},get:function(){return null},set:function(e,t){},ns:null}},67683:function(e){e.exports=function(){"use strict";var e=/^(b|B)$/,t={iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},n={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},r={floor:Math.floor,ceil:Math.ceil};function o(o){var i,a,u,c,s,l,f,p,d,h,y,m,v,g,b,w,O,E,_,x,S,j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},P=[],k=0;if(isNaN(o))throw new TypeError("Invalid number");if(u=!0===j.bits,b=!0===j.unix,m=!0===j.pad,a=j.base||10,v=void 0!==j.round?j.round:b?1:2,f=void 0!==j.locale?j.locale:"",p=j.localeOptions||{},w=void 0!==j.separator?j.separator:"",O=void 0!==j.spacer?j.spacer:b?"":" ",_=j.symbols||{},E=2===a?j.standard||"iec":"jedec",y=j.output||"string",s=!0===j.fullform,l=j.fullforms instanceof Array?j.fullforms:[],i=void 0!==j.exponent?j.exponent:-1,x=r[j.roundingMethod]||Math.round,d=(h=Number(o))<0,c=a>2?1e3:1024,S=!1===isNaN(j.precision)?parseInt(j.precision,10):0,d&&(h=-h),(-1===i||isNaN(i))&&(i=Math.floor(Math.log(h)/Math.log(c)))<0&&(i=0),i>8&&(S>0&&(S+=8-i),i=8),"exponent"===y)return i;if(0===h)P[0]=0,g=P[1]=b?"":t[E][u?"bits":"bytes"][i];else{k=h/(2===a?Math.pow(2,10*i):Math.pow(1e3,i)),u&&(k*=8)>=c&&i<8&&(k/=c,i++);var I=Math.pow(10,i>0?v:0);P[0]=x(k*I)/I,P[0]===c&&i<8&&void 0===j.exponent&&(P[0]=1,i++),g=P[1]=10===a&&1===i?u?"kbit":"kB":t[E][u?"bits":"bytes"][i],b&&(P[1]=P[1].charAt(0),e.test(P[1])&&(P[0]=Math.floor(P[0]),P[1]=""))}if(d&&(P[0]=-P[0]),S>0&&(P[0]=P[0].toPrecision(S)),P[1]=_[P[1]]||P[1],!0===f?P[0]=P[0].toLocaleString():f.length>0?P[0]=P[0].toLocaleString(f,p):w.length>0&&(P[0]=P[0].toString().replace(".",w)),m&&!1===Number.isInteger(P[0])&&v>0){var T=w||".",R=P[0].toString().split(T),C=R[1]||"",A=C.length,N=v-A;P[0]="".concat(R[0]).concat(T).concat(C.padEnd(A+N,"0"))}return s&&(P[1]=l[i]?l[i]:n[E][i]+(u?"bit":"byte")+(1===P[0]?"":"s")),"array"===y?P:"object"===y?{value:P[0],symbol:P[1],exponent:i,unit:g}:P.join(O)}return o.partial=function(e){return function(t){return o(t,e)}},o}()},21699:function(){!function(){"use strict";function e(e){var t=!0,n=!1,r=null,o={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function a(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!o[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}function u(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function c(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function s(n){n.metaKey||n.altKey||n.ctrlKey||(i(e.activeElement)&&u(e.activeElement),t=!0)}function l(e){t=!1}function f(e){i(e.target)&&(t||a(e.target))&&u(e.target)}function p(e){i(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(r),r=window.setTimeout((function(){n=!1}),100),c(e.target))}function d(e){"hidden"===document.visibilityState&&(n&&(t=!0),h())}function h(){document.addEventListener("mousemove",m),document.addEventListener("mousedown",m),document.addEventListener("mouseup",m),document.addEventListener("pointermove",m),document.addEventListener("pointerdown",m),document.addEventListener("pointerup",m),document.addEventListener("touchmove",m),document.addEventListener("touchstart",m),document.addEventListener("touchend",m)}function y(){document.removeEventListener("mousemove",m),document.removeEventListener("mousedown",m),document.removeEventListener("mouseup",m),document.removeEventListener("pointermove",m),document.removeEventListener("pointerdown",m),document.removeEventListener("pointerup",m),document.removeEventListener("touchmove",m),document.removeEventListener("touchstart",m),document.removeEventListener("touchend",m)}function m(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,y())}document.addEventListener("keydown",s,!0),document.addEventListener("mousedown",l,!0),document.addEventListener("pointerdown",l,!0),document.addEventListener("touchstart",l,!0),document.addEventListener("visibilitychange",d,!0),h(),e.addEventListener("focus",f,!0),e.addEventListener("blur",p,!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!=typeof document&&e(document)}()},59757:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(t+i);for(var a,u=n.call(arguments,1),c=function(){if(this instanceof a){var t=i.apply(this,u.concat(n.call(arguments)));return Object(t)===t?t:this}return i.apply(e,u.concat(n.call(arguments)))},s=Math.max(0,i.length-u.length),l=[],f=0;f<s;f++)l.push("$"+f);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var p=function(){};p.prototype=i.prototype,a.prototype=new p,p.prototype=null}return a}},92502:(e,t,n)=>{"use strict";var r=n(59757);e.exports=Function.prototype.bind||r},13049:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,a=TypeError,u=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var s=function(){throw new a},l=c?function(){try{return s}catch(e){try{return c(arguments,"callee").get}catch(e){return s}}}():s,f=n(14844)(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?r:p(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},m=function e(t){var n;if("%AsyncFunction%"===t)n=u("async function () {}");else if("%GeneratorFunction%"===t)n=u("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=u("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=p(o.prototype))}return y[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(92502),b=n(66670),w=g.call(Function.call,Array.prototype.concat),O=g.call(Function.apply,Array.prototype.splice),E=g.call(Function.call,String.prototype.replace),_=g.call(Function.call,String.prototype.slice),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,j=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return E(e,x,(function(e,t,n,o){r[r.length]=n?E(o,S,"$1"):t||e})),r},P=function(e,t){var n,r=e;if(b(v,r)&&(r="%"+(n=v[r])[0]+"%"),b(y,r)){var i=y[r];if(i===d&&(i=m(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=j(e),r=n.length>0?n[0]:"",i=P("%"+r+"%",t),u=i.name,s=i.value,l=!1,f=i.alias;f&&(r=f[0],O(n,w([0,1],f)));for(var p=1,d=!0;p<n.length;p+=1){var h=n[p],m=_(h,0,1),v=_(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),b(y,u="%"+(r+="."+h)+"%"))s=y[u];else if(null!=s){if(!(h in s)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&p+1>=n.length){var g=c(s,h);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else d=b(s,h),s=s[h];d&&!l&&(y[u]=s)}}return s}},14844:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(10635);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},10635:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},66670:(e,t,n)=>{"use strict";var r=n(92502);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},90528:(e,t,n)=>{"use strict";n.d(t,{lX:()=>_,ob:()=>y,PP:()=>S,Ep:()=>h,Hp:()=>m});var r=n(30513);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],u=e&&o(e),c=t&&o(t),s=u||c;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,p=a.length;p>=0;p--){var d=a[p];"."===d?i(a,p):".."===d?(i(a,p),f++):f&&(i(a,p),f--)}if(!s)for(;f--;f)a.unshift("..");!s||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function u(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const c=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=u(t),o=u(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var s="Invariant failed";const l=function(e,t){if(!e)throw new Error(s)};function f(e){return"/"===e.charAt(0)?e:"/"+e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(e,t,n,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=(0,r.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function m(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var w="popstate",O="hashchange";function E(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),g||l(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,u=a.forceRefresh,c=void 0!==u&&u,s=a.getUserConfirmation,m=void 0===s?b:s,_=a.keyLength,x=void 0===_?6:_,S=e.basename?d(f(e.basename)):"";function j(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return S&&(i=p(i,S)),y(i,r,n)}function P(){return Math.random().toString(36).substr(2,x)}var k=v();function I(e){(0,r.Z)(H,e),H.length=n.length,k.notifyListeners(H.location,H.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||A(j(e.state))}function R(){A(j(E()))}var C=!1;function A(e){if(C)C=!1,I();else{k.confirmTransitionTo(e,"POP",m,(function(t){t?I({action:"POP",location:e}):function(e){var t=H.location,n=L.indexOf(t.key);-1===n&&(n=0);var r=L.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(C=!0,M(o))}(e)}))}}var N=j(E()),L=[N.key];function D(e){return S+h(e)}function M(e){n.go(e)}var F=0;function U(e){1===(F+=e)&&1===e?(window.addEventListener(w,T),i&&window.addEventListener(O,R)):0===F&&(window.removeEventListener(w,T),i&&window.removeEventListener(O,R))}var B=!1;var H={length:n.length,action:"POP",location:N,createHref:D,push:function(e,t){var r="PUSH",i=y(e,t,P(),H.location);k.confirmTransitionTo(i,r,m,(function(e){if(e){var t=D(i),a=i.key,u=i.state;if(o)if(n.pushState({key:a,state:u},null,t),c)window.location.href=t;else{var s=L.indexOf(H.location.key),l=L.slice(0,s+1);l.push(i.key),L=l,I({action:r,location:i})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",i=y(e,t,P(),H.location);k.confirmTransitionTo(i,r,m,(function(e){if(e){var t=D(i),a=i.key,u=i.state;if(o)if(n.replaceState({key:a,state:u},null,t),c)window.location.replace(t);else{var s=L.indexOf(H.location.key);-1!==s&&(L[s]=i.key),I({action:r,location:i})}else window.location.replace(t)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return B||(U(1),B=!0),function(){return B&&(B=!1,U(-1)),t()}},listen:function(e){var t=k.appendListener(e);return U(1),function(){U(-1),t()}}};return H}function x(e,t,n){return Math.min(Math.max(e,t),n)}function S(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,u=void 0===a?0:a,c=t.keyLength,s=void 0===c?6:c,l=v();function f(e){(0,r.Z)(w,e),w.length=w.entries.length,l.notifyListeners(w.location,w.action)}function p(){return Math.random().toString(36).substr(2,s)}var d=x(u,0,i.length-1),m=i.map((function(e){return y(e,void 0,"string"==typeof e?p():e.key||p())})),g=h;function b(e){var t=x(w.index+e,0,w.entries.length-1),r=w.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var w={length:m.length,action:"POP",location:m[d],index:d,entries:m,createHref:g,push:function(e,t){var r="PUSH",o=y(e,t,p(),w.location);l.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),f({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=y(e,t,p(),w.location);l.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,f({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return w}},37707:(e,t,n)=>{"use strict";var r=n(2781),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var u=c(t),y=c(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||y&&y[v]||u&&u[v])){var g=p(n,v);try{s(t,v,g)}catch(e){}}}}return t}},21706:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,c=(1<<u)-1,s=c>>1,l=-7,f=n?o-1:0,p=n?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=u;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=s}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,u,c,s=8*i-o-1,l=(1<<s)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(u=0,a=l):a+f>=1?(u=(t*c-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&u,d+=h,u/=256,o-=8);for(a=a<<o|u,s+=o;s>0;e[n+d]=255&a,d+=h,a/=256,s-=8);e[n+d-h]|=128*y}},83021:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],l=0;(c=new Error(t.replace(/%s/g,(function(){return s[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},58412:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},33529:(e,t,n)=>{n(35409),e.exports=self.fetch.bind(self)},12321:function(e,t){!function(n,r){var o=Array.prototype,i=Object.prototype,a=o.slice,u=i.hasOwnProperty,c=o.forEach,s={},l={forEach:function(e,t,n){var r,o,i;if(null!==e)if(c&&e.forEach===c)e.forEach(t,n);else if(e.length===+e.length){for(r=0,o=e.length;r<o;r++)if(r in e&&t.call(n,e[r],r,e)===s)return}else for(i in e)if(u.call(e,i)&&t.call(n,e[i],i,e)===s)return},extend:function(e){return this.forEach(a.call(arguments,1),(function(t){for(var n in t)e[n]=t[n]})),e}},f=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=l.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};function p(e){return f.PF.compile(e||"nplurals=2; plural=(n != 1);")}function d(e,t){this._key=e,this._i18n=t}f.context_delimiter=String.fromCharCode(4),l.extend(d.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?f.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),l.extend(f.prototype,{translate:function(e){return new d(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){return this.dcnpgettext.call(this,r,r,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,r,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,r,t)},ngettext:function(e,t,n){return this.dcnpgettext.call(this,r,r,e,t,n)},dngettext:function(e,t,n,o){return this.dcnpgettext.call(this,e,r,t,n,o)},dcngettext:function(e,t,n,o){return this.dcnpgettext.call(this,e,r,t,n,o)},pgettext:function(e,t){return this.dcnpgettext.call(this,r,e,t)},dpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},dcpgettext:function(e,t,n){return this.dcnpgettext.call(this,e,t,n)},npgettext:function(e,t,n,o){return this.dcnpgettext.call(this,r,e,t,n,o)},dnpgettext:function(e,t,n,r,o){return this.dcnpgettext.call(this,e,t,n,r,o)},dcnpgettext:function(e,t,n,r,o){var i;if(r=r||n,e=e||this._textdomain,!this.options)return(i=new f).dcnpgettext.call(i,void 0,void 0,n,r,o);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!n)throw new Error("No translation key found.");var a,u,c,s=t?t+f.context_delimiter+n:n,l=this.options.locale_data,d=l[e],h=(l.messages||this.defaults.locale_data.messages)[""],y=d[""].plural_forms||d[""]["Plural-Forms"]||d[""]["plural-forms"]||h.plural_forms||h["Plural-Forms"]||h["plural-forms"];if(void 0===o)c=0;else{if("number"!=typeof o&&(o=parseInt(o,10),isNaN(o)))throw new Error("The number that was passed in is not a number.");c=p(y)(o)}if(!d)throw new Error("No domain named `"+e+"` could be found.");return!(a=d[s])||c>a.length?(this.options.missing_key_callback&&this.options.missing_key_callback(s,e),u=[n,r],this.options.debug,u[p()(o)]):(u=a[c])||(u=[n,r])[p()(o)]}});var h,y,m=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var n=[];t>0;n[--t]=e);return n.join("")}var n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){var o,i,a,u,c,s,l,f=1,p=n.length,d="",h=[];for(i=0;i<p;i++)if("string"===(d=e(n[i])))h.push(n[i]);else if("array"===d){if((u=n[i])[2])for(o=r[f],a=0;a<u[2].length;a++){if(!o.hasOwnProperty(u[2][a]))throw m('[sprintf] property "%s" does not exist',u[2][a]);o=o[u[2][a]]}else o=u[1]?r[u[1]]:r[f++];if(/[^s]/.test(u[8])&&"number"!=e(o))throw m("[sprintf] expecting number but found %s",e(o));switch(null==o&&(o=""),u[8]){case"b":o=o.toString(2);break;case"c":o=String.fromCharCode(o);break;case"d":o=parseInt(o,10);break;case"e":o=u[7]?o.toExponential(u[7]):o.toExponential();break;case"f":o=u[7]?parseFloat(o).toFixed(u[7]):parseFloat(o);break;case"o":o=o.toString(8);break;case"s":o=(o=String(o))&&u[7]?o.substring(0,u[7]):o;break;case"u":o=Math.abs(o);break;case"x":o=o.toString(16);break;case"X":o=o.toString(16).toUpperCase()}o=/[def]/.test(u[8])&&u[3]&&o>=0?"+"+o:o,s=u[4]?"0"==u[4]?"0":u[4].charAt(1):" ",l=u[6]-String(o).length,c=u[6]?t(s,l):"",h.push(u[5]?o+c:c+o)}return h.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],o=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw"[sprintf] huh?";if(n[2]){o|=1;var i=[],a=n[2],u=[];if(null===(u=/^([a-z_][a-z_\d]*)/i.exec(a)))throw"[sprintf] huh?";for(i.push(u[1]);""!==(a=a.substring(u[0].length));)if(null!==(u=/^\.([a-z_][a-z_\d]*)/i.exec(a)))i.push(u[1]);else{if(null===(u=/^\[(\d+)\]/.exec(a)))throw"[sprintf] huh?";i.push(u[1])}n[2]=i}else o|=2;if(3===o)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(n)}t=t.substring(n[0].length)}return r},n}(),v=function(e,t){return t.unshift(e),m.apply(null,t)};f.parse_plural=function(e,t){return e=e.replace(/n/g,t),f.parse_expression(e)},f.sprintf=function(e,t){return"[object Array]"=={}.toString.call(t)?v(e,[].slice.call(t)):m.apply(this,[].slice.call(arguments))},f.prototype.sprintf=function(){return f.sprintf.apply(this,arguments)},(f.PF={}).parse=function(e){var t=f.PF.extractPluralExpr(e);return f.PF.parser.parse.call(f.PF.parser,t)},f.PF.compile=function(e){var t=f.PF.parse(e);return function(e){return!0===(n=f.PF.interpreter(t)(e))?1:n||0;var n}},f.PF.interpreter=function(e){return function(t){switch(e.type){case"GROUP":return f.PF.interpreter(e.expr)(t);case"TERNARY":return f.PF.interpreter(e.expr)(t)?f.PF.interpreter(e.truthy)(t):f.PF.interpreter(e.falsey)(t);case"OR":return f.PF.interpreter(e.left)(t)||f.PF.interpreter(e.right)(t);case"AND":return f.PF.interpreter(e.left)(t)&&f.PF.interpreter(e.right)(t);case"LT":return f.PF.interpreter(e.left)(t)<f.PF.interpreter(e.right)(t);case"GT":return f.PF.interpreter(e.left)(t)>f.PF.interpreter(e.right)(t);case"LTE":return f.PF.interpreter(e.left)(t)<=f.PF.interpreter(e.right)(t);case"GTE":return f.PF.interpreter(e.left)(t)>=f.PF.interpreter(e.right)(t);case"EQ":return f.PF.interpreter(e.left)(t)==f.PF.interpreter(e.right)(t);case"NEQ":return f.PF.interpreter(e.left)(t)!=f.PF.interpreter(e.right)(t);case"MOD":return f.PF.interpreter(e.left)(t)%f.PF.interpreter(e.right)(t);case"VAR":return t;case"NUM":return e.val;default:throw new Error("Invalid Token found.")}}},f.PF.extractPluralExpr=function(e){e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(e)||(e=e.concat(";"));var t,n=/nplurals\=(\d+);/,r=e.match(n);if(!(r.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(r[1],!((t=(e=e.replace(n,"")).match(/plural\=(.*);/))&&t.length>1))throw new Error("`plural` expression not found: "+e);return t[1]},f.PF.parser=(h={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(e,t,n,r,o,i,a){var u=i.length-1;switch(o){case 1:return{type:"GROUP",expr:i[u-1]};case 2:this.$={type:"TERNARY",expr:i[u-4],truthy:i[u-2],falsey:i[u]};break;case 3:this.$={type:"OR",left:i[u-2],right:i[u]};break;case 4:this.$={type:"AND",left:i[u-2],right:i[u]};break;case 5:this.$={type:"LT",left:i[u-2],right:i[u]};break;case 6:this.$={type:"LTE",left:i[u-2],right:i[u]};break;case 7:this.$={type:"GT",left:i[u-2],right:i[u]};break;case 8:this.$={type:"GTE",left:i[u-2],right:i[u]};break;case 9:this.$={type:"NEQ",left:i[u-2],right:i[u]};break;case 10:this.$={type:"EQ",left:i[u-2],right:i[u]};break;case 11:this.$={type:"MOD",left:i[u-2],right:i[u]};break;case 12:this.$={type:"GROUP",expr:i[u-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,n=[0],r=[null],o=[],i=this.table,a="",u=0,c=0,s=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;function f(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}o.push(l),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var p,d,h,y,m,v,g,b,w,O,E={};;){if(h=n[n.length-1],this.defaultActions[h]?y=this.defaultActions[h]:(null==p&&(p=f()),y=i[h]&&i[h][p]),void 0===y||!y.length||!y[0]){if(!s){for(v in w=[],i[h])this.terminals_[v]&&v>2&&w.push("'"+this.terminals_[v]+"'");var _="";_=this.lexer.showPosition?"Parse error on line "+(u+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+w.join(", ")+", got '"+this.terminals_[p]+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:l,expected:w})}if(3==s){if(1==p)throw new Error(_||"Parsing halted.");c=this.lexer.yyleng,a=this.lexer.yytext,u=this.lexer.yylineno,l=this.lexer.yylloc,p=f()}for(;!(2..toString()in i[h]);){if(0==h)throw new Error(_||"Parsing halted.");O=1,n.length=n.length-2*O,r.length=r.length-O,o.length=o.length-O,h=n[n.length-1]}d=p,p=2,y=i[h=n[n.length-1]]&&i[h][2],s=3}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+h+", token: "+p);switch(y[0]){case 1:n.push(p),r.push(this.lexer.yytext),o.push(this.lexer.yylloc),n.push(y[1]),p=null,d?(p=d,d=null):(c=this.lexer.yyleng,a=this.lexer.yytext,u=this.lexer.yylineno,l=this.lexer.yylloc,s>0&&s--);break;case 2:if(g=this.productions_[y[1]][1],E.$=r[r.length-g],E._$={first_line:o[o.length-(g||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(g||1)].first_column,last_column:o[o.length-1].last_column},void 0!==(m=this.performAction.call(E,a,c,u,this.yy,y[1],r,o)))return m;g&&(n=n.slice(0,-1*g*2),r=r.slice(0,-1*g),o=o.slice(0,-1*g)),n.push(this.productions_[y[1]][0]),r.push(E.$),o.push(E._$),b=i[n[n.length-2]][n[n.length-1]],n.push(b);break;case 3:return!0}}return!0}},y=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e,e.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if(e=this._input.match(this.rules[n[r]]))return(t=e[0].match(/\n.*/g))&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],this.performAction.call(this,this.yy,this,n[r],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},rules:[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};return e}(),h.lexer=y,h),e.exports&&(t=e.exports=f),t.Jed=f}()},97170:e=>{"use strict";function t(e){return null!=e}e.exports={pathname:function(){for(var e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n.filter(t).join("/").replace(/\/+/g,"/")},hostname:function(){for(var e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n.filter(t).join(".").replace(/^\./,"").replace(/\.+/g,".")},query:function(){for(var e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n.filter(t).join("&").replace(/^&/,"").replace(/&+/g,"&")}}},86432:(e,t,n)=>{e.exports=function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var s=n[a]={exports:{}};t[a][0].call(s.exports,(function(e){var n=t[a][1][e];return o(n||e)}),s,s.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,r){(function(e){"use strict";var n,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(l),u=e.document.createTextNode("");a.observe(u,{characterData:!0}),n=function(){u.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var c=new e.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var s=[];function l(){var e,t;r=!0;for(var n=s.length;n;){for(t=s,s=[],e=-1;++e<n;)t[e]();n=s.length}r=!1}function f(e){1!==s.push(e)||r||n()}t.exports=f}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function o(){}var i={},a=["REJECTED"],u=["FULFILLED"],c=["PENDING"];function s(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==o&&d(this,e)}function l(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function f(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return i.reject(e,t)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)}))}function p(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function o(t){n||(n=!0,i.resolve(e,t))}function a(){t(o,r)}var u=h(a);"error"===u.status&&r(u.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}function y(e){return e instanceof this?e:i.resolve(new this(o),e)}function m(e){var t=new this(o);return i.reject(t,e)}function v(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),u=0,c=-1,s=new this(o);++c<n;)l(e[c],c);return s;function l(e,o){function c(e){a[o]=e,++u!==n||r||(r=!0,i.resolve(s,a))}t.resolve(e).then(c,(function(e){r||(r=!0,i.reject(s,e))}))}}function g(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=-1,u=new this(o);++a<n;)c(e[a]);return u;function c(e){t.resolve(e).then((function(e){r||(r=!0,i.resolve(u,e))}),(function(e){r||(r=!0,i.reject(u,e))}))}}t.exports=s,s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){if("function"!=typeof e&&this.state===u||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(o);return this.state!==c?f(n,this.state===u?e:t,this.outcome):this.queue.push(new l(n,e,t)),n},l.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){i.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},i.resolve=function(e,t){var n=h(p,t);if("error"===n.status)return i.reject(e,n.value);var r=n.value;if(r)d(e,r);else{e.state=u,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},s.resolve=y,s.reject=m,s.all=v,s.race=g},{1:1}],3:[function(e,t,r){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}var a=i();function u(){try{if(!a||!a.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}function c(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var s=Promise;function l(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function f(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function p(e){return"string"!=typeof e&&(e=String(e)),e}function d(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var h="local-forage-detect-blob-support",y=void 0,m={},v=Object.prototype.toString,g="readonly",b="readwrite";function w(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o<t;o++)r[o]=e.charCodeAt(o);return n}function O(e){return new s((function(t){var n=e.transaction(h,b),r=c([""]);n.objectStore(h).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}function E(e){return"boolean"==typeof y?s.resolve(y):O(e).then((function(e){return y=e}))}function _(e){var t=m[e.name],n={};n.promise=new s((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function x(e){var t=m[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function S(e,t){var n=m[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function j(e,t){return new s((function(n,r){if(m[e.name]=m[e.name]||D(),e.db){if(!t)return n(e.db);_(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var i=a.open.apply(a,o);t&&(i.onupgradeneeded=function(t){var n=i.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(h)}catch(e){if("ConstraintError"!==e.name)throw e}}),i.onerror=function(e){e.preventDefault(),r(i.error)},i.onsuccess=function(){var t=i.result;t.onversionchange=function(e){e.target.close()},n(t),x(e)}}))}function P(e){return j(e,!1)}function k(e){return j(e,!0)}function I(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,o=e.version>e.db.version;if(r&&(e.version,e.version=e.db.version),o||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function T(e){return new s((function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)}))}function R(e){return c([w(atob(e.data))],{type:e.type})}function C(e){return e&&e.__local_forage_encoded_blob}function A(e){var t=this,n=t._initReady().then((function(){var e=m[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return f(n,e,e),n}function N(e){_(e);for(var t=m[e.name],n=t.forages,r=0;r<n.length;r++){var o=n[r];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,P(e).then((function(t){return e.db=t,I(e)?k(e):t})).then((function(r){e.db=t.db=r;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=r})).catch((function(t){throw S(e,t),t}))}function L(e,t,n,r){void 0===r&&(r=1);try{var o=e.db.transaction(e.storeName,t);n(null,o)}catch(o){if(r>0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return s.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),k(e)})).then((function(){return N(e).then((function(){L(e,t,n,r-1)}))})).catch(n);n(o)}}function D(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function M(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var o=m[n.name];o||(o=D(),m[n.name]=o),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=A);var i=[];function a(){return s.resolve()}for(var u=0;u<o.forages.length;u++){var c=o.forages[u];c!==t&&i.push(c._initReady().catch(a))}var l=o.forages.slice(0);return s.all(i).then((function(){return n.db=o.db,P(n)})).then((function(e){return n.db=e,I(n,t._defaultConfig.version)?k(n):e})).then((function(e){n.db=o.db=e,t._dbInfo=n;for(var r=0;r<l.length;r++){var i=l[r];i!==t&&(i._dbInfo.db=n.db,i._dbInfo.version=n.version)}}))}function F(e,t){var n=this;e=p(e);var r=new s((function(t,r){n.ready().then((function(){L(n._dbInfo,g,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),C(e)&&(e=R(e)),t(e)},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return l(r,t),r}function U(e,t){var n=this,r=new s((function(t,r){n.ready().then((function(){L(n._dbInfo,g,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).openCursor(),u=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;C(r)&&(r=R(r));var o=e(r,n.key,u++);void 0!==o?t(o):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return l(r,t),r}function B(e,t,n){var r=this;e=p(e);var o=new s((function(n,o){var i;r.ready().then((function(){return i=r._dbInfo,"[object Blob]"===v.call(t)?E(i.db).then((function(e){return e?t:T(t)})):t})).then((function(t){L(r._dbInfo,b,(function(i,a){if(i)return o(i);try{var u=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var c=u.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){var e=c.error?c.error:c.transaction.error;o(e)}}catch(e){o(e)}}))})).catch(o)}));return l(o,n),o}function H(e,t){var n=this;e=p(e);var r=new s((function(t,r){n.ready().then((function(){L(n._dbInfo,b,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).delete(e);i.oncomplete=function(){t()},i.onerror=function(){r(a.error)},i.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return l(r,t),r}function q(e){var t=this,n=new s((function(e,n){t.ready().then((function(){L(t._dbInfo,b,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=i.error?i.error:i.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return l(n,e),n}function z(e){var t=this,n=new s((function(e,n){t.ready().then((function(){L(t._dbInfo,g,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){n(i.error)}}catch(e){n(e)}}))})).catch(n)}));return l(n,e),n}function G(e,t){var n=this,r=new s((function(t,r){e<0?t(null):n.ready().then((function(){L(n._dbInfo,g,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName),u=!1,c=a.openKeyCursor();c.onsuccess=function(){var n=c.result;n?0===e||u?t(n.key):(u=!0,n.advance(e)):t(null)},c.onerror=function(){r(c.error)}}catch(e){r(e)}}))})).catch(r)}));return l(r,t),r}function W(e){var t=this,n=new s((function(e,n){t.ready().then((function(){L(t._dbInfo,g,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];i.onsuccess=function(){var t=i.result;t?(a.push(t.key),t.continue()):e(a)},i.onerror=function(){n(i.error)}}catch(e){n(e)}}))})).catch(n)}));return l(n,e),n}function V(e,t){t=d.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;if(e.name){var i=e.name===n.name&&o._dbInfo.db?s.resolve(o._dbInfo.db):P(e).then((function(t){var n=m[e.name],r=n.forages;n.db=t;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=t;return t}));r=e.storeName?i.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;_(e);var r=m[e.name],o=r.forages;t.close();for(var i=0;i<o.length;i++){var u=o[i];u._dbInfo.db=null,u._dbInfo.version=n}return new s((function(t,r){var o=a.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}})).then((function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,x(n._dbInfo)}})).catch((function(t){throw(S(e,t)||s.resolve()).catch((function(){})),t}))}})):i.then((function(t){_(e);var n=m[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;return new s((function(t,n){var r=a.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}})).then((function(e){n.db=e;for(var t=0;t<r.length;t++)x(r[t]._dbInfo)})).catch((function(t){throw(S(e,t)||s.resolve()).catch((function(){})),t}))}))}else r=s.reject("Invalid arguments");return l(r,t),r}var Y={_driver:"asyncStorage",_initStorage:M,_support:u(),iterate:U,getItem:F,setItem:B,removeItem:H,clear:q,length:z,key:G,keys:W,dropInstance:V};function Z(){return"function"==typeof openDatabase}var $="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K="~~local_forage_type~",Q=/^~~local_forage_type~([^~]+)~/,X="__lfsc__:",J=X.length,ee="arbf",te="blob",ne="si08",re="ui08",oe="uic8",ie="si16",ae="si32",ue="ur16",ce="ui32",se="fl32",le="fl64",fe=J+ee.length,pe=Object.prototype.toString;function de(e){var t,n,r,o,i,a=.75*e.length,u=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var s=new ArrayBuffer(a),l=new Uint8Array(s);for(t=0;t<u;t+=4)n=$.indexOf(e[t]),r=$.indexOf(e[t+1]),o=$.indexOf(e[t+2]),i=$.indexOf(e[t+3]),l[c++]=n<<2|r>>4,l[c++]=(15&r)<<4|o>>2,l[c++]=(3&o)<<6|63&i;return s}function he(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=$[n[t]>>2],r+=$[(3&n[t])<<4|n[t+1]>>4],r+=$[(15&n[t+1])<<2|n[t+2]>>6],r+=$[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}function ye(e,t){var n="";if(e&&(n=pe.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===pe.call(e.buffer))){var r,o=X;e instanceof ArrayBuffer?(r=e,o+=ee):(r=e.buffer,"[object Int8Array]"===n?o+=ne:"[object Uint8Array]"===n?o+=re:"[object Uint8ClampedArray]"===n?o+=oe:"[object Int16Array]"===n?o+=ie:"[object Uint16Array]"===n?o+=ue:"[object Int32Array]"===n?o+=ae:"[object Uint32Array]"===n?o+=ce:"[object Float32Array]"===n?o+=se:"[object Float64Array]"===n?o+=le:t(new Error("Failed to get type for BinaryArray"))),t(o+he(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n=K+e.type+"~"+he(this.result);t(X+te+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(e){t(null,e)}}function me(e){if(e.substring(0,J)!==X)return JSON.parse(e);var t,n=e.substring(fe),r=e.substring(J,fe);if(r===te&&Q.test(n)){var o=n.match(Q);t=o[1],n=n.substring(o[0].length)}var i=de(n);switch(r){case ee:return i;case te:return c([i],{type:t});case ne:return new Int8Array(i);case re:return new Uint8Array(i);case oe:return new Uint8ClampedArray(i);case ie:return new Int16Array(i);case ue:return new Uint16Array(i);case ae:return new Int32Array(i);case ce:return new Uint32Array(i);case se:return new Float32Array(i);case le:return new Float64Array(i);default:throw new Error("Unkown type: "+r)}}var ve={serialize:ye,deserialize:me,stringToBuffer:de,bufferToString:he};function ge(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function be(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var o=new s((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction((function(o){ge(o,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=ve,o}function we(e,t,n,r,o,i){e.executeSql(n,r,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,u){u.rows.length?i(e,a):ge(e,t,(function(){e.executeSql(n,r,o,i)}),i)}),i):i(e,a)}),i)}function Oe(e,t){var n=this;e=p(e);var r=new s((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return l(r,t),r}function Ee(e,t){var n=this,r=new s((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"SELECT * FROM "+o.storeName,[],(function(n,r){for(var i=r.rows,a=i.length,u=0;u<a;u++){var c=i.item(u),s=c.value;if(s&&(s=o.serializer.deserialize(s)),void 0!==(s=e(s,c.key,u+1)))return void t(s)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return l(r,t),r}function _e(e,t,n,r){var o=this;e=p(e);var i=new s((function(i,a){o.ready().then((function(){void 0===t&&(t=null);var u=t,c=o._dbInfo;c.serializer.serialize(t,(function(t,s){s?a(s):c.db.transaction((function(n){we(n,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){i(u)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void i(_e.apply(o,[e,u,n,r-1]));a(t)}}))}))})).catch(a)}));return l(i,n),i}function xe(e,t,n){return _e.apply(this,[e,t,n,1])}function Se(e,t){var n=this;e=p(e);var r=new s((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return l(r,t),r}function je(e){var t=this,n=new s((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){we(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return l(n,e),n}function Pe(e){var t=this,n=new s((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){we(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return l(n,e),n}function ke(e,t){var n=this,r=new s((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return l(r,t),r}function Ie(e){var t=this,n=new s((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){we(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],o=0;o<n.rows.length;o++)r.push(n.rows.item(o).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return l(n,e),n}function Te(e){return new s((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var o=[],i=0;i<r.rows.length;i++)o.push(r.rows.item(i).name);t({db:e,storeNames:o})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}function Re(e,t){t=d.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;return l(r=e.name?new s((function(t){var r;r=e.name===n.name?o._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(Te(r))})).then((function(e){return new s((function(t,n){e.db.transaction((function(r){function o(e){return new s((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var i=[],a=0,u=e.storeNames.length;a<u;a++)i.push(o(e.storeNames[a]));s.all(i).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):s.reject("Invalid arguments"),t),r}var Ce={_driver:"webSQLStorage",_initStorage:be,_support:Z(),iterate:Ee,getItem:Oe,setItem:xe,removeItem:Se,clear:je,length:Pe,key:ke,keys:Ie,dropInstance:Re};function Ae(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}function Ne(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function Le(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}function De(){return!Le()||localStorage.length>0}function Me(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=Ne(e,t._defaultConfig),De()?(t._dbInfo=n,n.serializer=ve,s.resolve()):s.reject()}function Fe(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return l(n,e),n}function Ue(e,t){var n=this;e=p(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return l(r,t),r}function Be(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,u=0;u<i;u++){var c=localStorage.key(u);if(0===c.indexOf(r)){var s=localStorage.getItem(c);if(s&&(s=t.serializer.deserialize(s)),void 0!==(s=e(s,c.substring(o),a++)))return s}}}));return l(r,t),r}function He(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return l(r,t),r}function qe(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],o=0;o<n;o++){var i=localStorage.key(o);0===i.indexOf(e.keyPrefix)&&r.push(i.substring(e.keyPrefix.length))}return r}));return l(n,e),n}function ze(e){var t=this.keys().then((function(e){return e.length}));return l(t,e),t}function Ge(e,t){var n=this;e=p(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return l(r,t),r}function We(e,t,n){var r=this;e=p(e);var o=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new s((function(o,i){var a=r._dbInfo;a.serializer.serialize(t,(function(t,r){if(r)i(r);else try{localStorage.setItem(a.keyPrefix+e,t),o(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||i(e),i(e)}}))}))}));return l(o,n),o}function Ve(e,t){if(t=d.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,o=this;return l(r=e.name?new s((function(t){e.storeName?t(Ne(e,o._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):s.reject("Invalid arguments"),t),r}var Ye={_driver:"localStorageWrapper",_initStorage:Me,_support:Ae(),iterate:Be,getItem:Ue,setItem:We,removeItem:Ge,clear:Fe,length:ze,key:He,keys:qe,dropInstance:Ve},Ze=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},$e=function(e,t){for(var n=e.length,r=0;r<n;){if(Ze(e[r],t))return!0;r++}return!1},Ke=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Qe={},Xe={},Je={INDEXEDDB:Y,WEBSQL:Ce,LOCALSTORAGE:Ye},et=[Je.INDEXEDDB._driver,Je.WEBSQL._driver,Je.LOCALSTORAGE._driver],tt=["dropInstance"],nt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(tt),rt={description:"",driver:et.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ot(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function it(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(Ke(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var at=new(function(){function e(t){for(var n in o(this,e),Je)if(Je.hasOwnProperty(n)){var r=Je[n],i=r._driver;this[n]=i,Qe[i]||this.defineDriver(r)}this._defaultConfig=it({},rt),this._config=it({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new s((function(t,n){try{var r=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(o);for(var i=nt.concat("_initStorage"),a=0,u=i.length;a<u;a++){var c=i[a];if((!$e(tt,c)||e[c])&&"function"!=typeof e[c])return void n(o)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=s.reject(t);return l(n,arguments[arguments.length-1]),n}},n=0,r=tt.length;n<r;n++){var o=tt[n];e[o]||(e[o]=t(o))}}();var f=function(n){Qe[r],Qe[r]=e,Xe[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(f,n):f(!!e._support):f(!0)}catch(e){n(e)}}));return f(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=Qe[e]?s.resolve(Qe[e]):s.reject(new Error("Driver not found."));return f(r,t,n),r},e.prototype.getSerializer=function(e){var t=s.resolve(ve);return f(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return f(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;Ke(e)||(e=[e]);var o=this._getSupportedDrivers(e);function i(){r._config.driver=r.driver()}function a(e){return r._extend(e),i(),r._ready=r._initStorage(r._config),r._ready}function u(e){return function(){var t=0;function n(){for(;t<e.length;){var o=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(o).then(a).catch(n)}i();var u=new Error("No available storage method found.");return r._driverSet=s.reject(u),r._driverSet}return n()}}var c=null!==this._driverSet?this._driverSet.catch((function(){return s.resolve()})):s.resolve();return this._driverSet=c.then((function(){var e=o[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,i(),r._wrapLibraryMethodsWithReady(),r._initDriver=u(o)}))})).catch((function(){i();var e=new Error("No available storage method found.");return r._driverSet=s.reject(e),r._driverSet})),f(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!Xe[e]},e.prototype._extend=function(e){it(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];this.supports(o)&&t.push(o)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=nt.length;e<t;e++)ot(this,nt[e])},e.prototype.createInstance=function(t){return new e(t)},e}());t.exports=at},{3:3}]},{},[4])(4)},87003:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,s="object"==typeof self&&self&&self.Object===Object&&self,l=c||s||Function("return this")(),f=Object.prototype.toString,p=Math.max,d=Math.min,h=function(){return l.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==f.call(e)}(e))return NaN;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||a.test(e)?u(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,u,c,s=0,l=!1,f=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function b(e){return s=e,u=setTimeout(O,t),l?g(e):a}function w(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-s>=i}function O(){var e=h();if(w(e))return E(e);u=setTimeout(O,function(e){var n=t-(e-c);return f?d(n,i-(e-s)):n}(e))}function E(e){return u=void 0,v&&r?g(e):(r=o=void 0,a)}function _(){var e=h(),n=w(e);if(r=arguments,o=this,c=e,n){if(void 0===u)return b(c);if(f)return u=setTimeout(O,t),g(c)}return void 0===u&&(u=setTimeout(O,t)),a}return t=m(t)||0,y(n)&&(l=!!n.leading,i=(f="maxWait"in n)?p(m(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=o=u=void 0},_.flush=function(){return void 0===u?a:E(h())},_}},8617:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=8617,e.exports=t},59348:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function u(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(c(e,t))return!1;return!0}function l(e){return void 0===e}function f(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function p(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function y(e,t,n,r){return $n(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=m()),e._pf}function g(e){if(null==e._isValid){var t=v(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function b(e){var t=y(NaN);return null!=e?h(v(t),e):v(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var w=o.momentProperties=[],O=!1;function E(e,t){var n,r,o,i=w.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=v(t)),l(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)l(o=t[r=w[n]])||(e[r]=o);return e}function _(e){E(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===O&&(O=!0,o.updateOffset(this),O=!1)}function x(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function S(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function j(e,t){var n=!0;return h((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var r,i,a,u=[],s=arguments.length;for(i=0;i<s;i++){if(r="","object"==typeof arguments[i]){for(a in r+="\n["+i+"] ",arguments[0])c(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[i];u.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var P,k={};function I(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),k[e]||(S(t),k[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function R(e){var t,n;for(n in e)c(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(e,t){var n,r=h({},e);for(n in t)c(t,n)&&(u(e[n])&&u(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)c(e,n)&&!c(t,n)&&u(e[n])&&(r[n]=h({},r[n]));return r}function A(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,P=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function L(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r}function D(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},B={};function H(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(B[e]=o),t&&(B[t[0]]=function(){return D(o.apply(this,arguments),t[1],t[2])}),n&&(B[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e){var t,n,r=e.match(M);for(t=0,n=r.length;t<n;t++)B[r[t]]?r[t]=B[r[t]]:r[t]=q(r[t]);return function(t){var o,i="";for(o=0;o<n;o++)i+=T(r[o])?r[o].call(t,e):r[o];return i}}function G(e,t){return e.isValid()?(t=W(t,e.localeData()),U[t]=U[t]||z(t),U[t](e)):e.localeData().invalidDate()}function W(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var V={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(M).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var Z="Invalid date";function $(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var o=this._relativeTime[n];return T(o)?o(e,t,n,r):o.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}var ne={};function re(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function oe(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)c(e,n)&&(t=oe(n))&&(r[t]=e[n]);return r}var ae={};function ue(e,t){ae[e]=t}function ce(e){var t,n=[];for(t in e)c(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function se(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function fe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=le(t)),n}function pe(e,t){return function(n){return null!=n?(he(this,e,n),o.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function he(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&se(e.year())&&1===e.month()&&29===e.date()?(n=fe(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ye(e){return T(this[e=oe(e)])?this[e]():this}function me(e,t){if("object"==typeof e){var n,r=ce(e=ie(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(T(this[e=oe(e)]))return this[e](t);return this}var ve,ge=/\d/,be=/\d\d/,we=/\d{3}/,Oe=/\d{4}/,Ee=/[+-]?\d{6}/,_e=/\d\d?/,xe=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,je=/\d{1,3}/,Pe=/\d{1,4}/,ke=/[+-]?\d{1,6}/,Ie=/\d+/,Te=/[+-]?\d+/,Re=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,Ae=/[+-]?\d+(\.\d{1,3})?/,Ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Le(e,t,n){ve[e]=T(t)?t:function(e,r){return e&&n?n:t}}function De(e,t){return c(ve,e)?ve[e](t._strict,t._locale):new RegExp(Me(e))}function Me(e){return Fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o})))}function Fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Ue={};function Be(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),f(t)&&(o=function(e,n){n[t]=fe(e)}),r=e.length,n=0;n<r;n++)Ue[e[n]]=o}function He(e,t){Be(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function qe(e,t,n){null!=t&&c(Ue,e)&&Ue[e](t,n._a,n,e)}var ze,Ge=0,We=1,Ve=2,Ye=3,Ze=4,$e=5,Ke=6,Qe=7,Xe=8;function Je(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Je(t,12);return e+=(t-n)/12,1===n?se(e)?29:28:31-n%7%2}ze=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),H("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),ue("month",8),Le("M",_e),Le("MM",_e,be),Le("MMM",(function(e,t){return t.monthsShortRegex(e)})),Le("MMMM",(function(e,t){return t.monthsRegex(e)})),Be(["M","MM"],(function(e,t){t[We]=fe(e)-1})),Be(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[We]=o:v(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=Ne,it=Ne;function at(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ut(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=y([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=ze.call(this._shortMonthsParse,a))?o:null:-1!==(o=ze.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=ze.call(this._shortMonthsParse,a))||-1!==(o=ze.call(this._longMonthsParse,a))?o:null:-1!==(o=ze.call(this._longMonthsParse,a))||-1!==(o=ze.call(this._shortMonthsParse,a))?o:null}function st(e,t,n){var r,o,i;if(this._monthsParseExact)return ct.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=y([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function lt(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=fe(t);else if(!f(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ft(e){return null!=e?(lt(this,e),o.updateOffset(this,!0),this):de(this,"Month")}function pt(){return et(this.year(),this.month())}function dt(e){return this._monthsParseExact?(c(this,"_monthsRegex")||yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ht(e){return this._monthsParseExact?(c(this,"_monthsRegex")||yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yt(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=y([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=Fe(r[t]),o[t]=Fe(o[t]);for(t=0;t<24;t++)i[t]=Fe(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function mt(e){return se(e)?366:365}H("Y",0,0,(function(){var e=this.year();return e<=9999?D(e,4):"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),re("year","y"),ue("year",1),Le("Y",Te),Le("YY",_e,be),Le("YYYY",Pe,Oe),Le("YYYYY",ke,Ee),Le("YYYYYY",ke,Ee),Be(["YYYYY","YYYYYY"],Ge),Be("YYYY",(function(e,t){t[Ge]=2===e.length?o.parseTwoDigitYear(e):fe(e)})),Be("YY",(function(e,t){t[Ge]=o.parseTwoDigitYear(e)})),Be("Y",(function(e,t){t[Ge]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return fe(e)+(fe(e)>68?1900:2e3)};var vt=pe("FullYear",!0);function gt(){return se(this.year())}function bt(e,t,n,r,o,i,a){var u;return e<100&&e>=0?(u=new Date(e+400,t,n,r,o,i,a),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,n,r,o,i,a),u}function wt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ot(e,t,n){var r=7+t-n;return-(7+wt(e,0,r).getUTCDay()-t)%7+r-1}function Et(e,t,n,r,o){var i,a,u=1+7*(t-1)+(7+n-r)%7+Ot(e,r,o);return u<=0?a=mt(i=e-1)+u:u>mt(e)?(i=e+1,a=u-mt(e)):(i=e,a=u),{year:i,dayOfYear:a}}function _t(e,t,n){var r,o,i=Ot(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+xt(o=e.year()-1,t,n):a>xt(e.year(),t,n)?(r=a-xt(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function xt(e,t,n){var r=Ot(e,t,n),o=Ot(e+1,t,n);return(mt(e)-r+o)/7}function St(e){return _t(e,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),ue("week",5),ue("isoWeek",5),Le("w",_e),Le("ww",_e,be),Le("W",_e),Le("WW",_e,be),He(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=fe(e)}));var jt={dow:0,doy:6};function Pt(){return this._week.dow}function kt(){return this._week.doy}function It(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Tt(e){var t=_t(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Rt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ct(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function At(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),ue("day",11),ue("weekday",11),ue("isoWeekday",11),Le("d",_e),Le("e",_e),Le("E",_e),Le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Le("dddd",(function(e,t){return t.weekdaysRegex(e)})),He(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:v(n).invalidWeekday=e})),He(["d","e","E"],(function(e,t,n,r){t[r]=fe(e)}));var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Dt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mt=Ne,Ft=Ne,Ut=Ne;function Bt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?At(n,this._week.dow):e?n[e.day()]:n}function Ht(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function qt(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zt(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=y([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ze.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ze.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=ze.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=ze.call(this._weekdaysParse,a))||-1!==(o=ze.call(this._shortWeekdaysParse,a))||-1!==(o=ze.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ze.call(this._shortWeekdaysParse,a))||-1!==(o=ze.call(this._weekdaysParse,a))||-1!==(o=ze.call(this._minWeekdaysParse,a))?o:null:-1!==(o=ze.call(this._minWeekdaysParse,a))||-1!==(o=ze.call(this._weekdaysParse,a))||-1!==(o=ze.call(this._shortWeekdaysParse,a))?o:null}function Gt(e,t,n){var r,o,i;if(this._weekdaysParseExact)return zt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=y([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Rt(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Yt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Mt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $t(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ut),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],u=[],c=[],s=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),r=Fe(this.weekdaysMin(n,"")),o=Fe(this.weekdaysShort(n,"")),i=Fe(this.weekdays(n,"")),a.push(r),u.push(o),c.push(i),s.push(r),s.push(o),s.push(i);a.sort(e),u.sort(e),c.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function en(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Xt),H("k",["kk",2],0,Jt),H("hmm",0,0,(function(){return""+Xt.apply(this)+D(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Xt.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),en("a",!0),en("A",!1),re("hour","h"),ue("hour",13),Le("a",tn),Le("A",tn),Le("H",_e),Le("h",_e),Le("k",_e),Le("HH",_e,be),Le("hh",_e,be),Le("kk",_e,be),Le("hmm",xe),Le("hmmss",Se),Le("Hmm",xe),Le("Hmmss",Se),Be(["H","HH"],Ye),Be(["k","kk"],(function(e,t,n){var r=fe(e);t[Ye]=24===r?0:r})),Be(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Be(["h","hh"],(function(e,t,n){t[Ye]=fe(e),v(n).bigHour=!0})),Be("hmm",(function(e,t,n){var r=e.length-2;t[Ye]=fe(e.substr(0,r)),t[Ze]=fe(e.substr(r)),v(n).bigHour=!0})),Be("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ye]=fe(e.substr(0,r)),t[Ze]=fe(e.substr(r,2)),t[$e]=fe(e.substr(o)),v(n).bigHour=!0})),Be("Hmm",(function(e,t,n){var r=e.length-2;t[Ye]=fe(e.substr(0,r)),t[Ze]=fe(e.substr(r))})),Be("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ye]=fe(e.substr(0,r)),t[Ze]=fe(e.substr(r,2)),t[$e]=fe(e.substr(o))}));var rn=/[ap]\.?m?\.?/i,on=pe("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var un,cn={calendar:N,longDateFormat:V,invalidDate:Z,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:J,months:tt,monthsShort:nt,week:jt,weekdays:Nt,weekdaysMin:Dt,weekdaysShort:Lt,meridiemParse:rn},sn={},ln={};function fn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function pn(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=pn(e[i]).split("-")).length,n=(n=pn(e[i+1]))?n.split("-"):null;t>0;){if(r=yn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&fn(o,n)>=t-1)break;t--}i++}return un}function hn(e){return null!=e.match("^[^/\\\\]*$")}function yn(t){var r=null;if(void 0===sn[t]&&e&&e.exports&&hn(t))try{r=un._abbr,n(8617)("./"+t),mn(r)}catch(e){sn[t]=null}return sn[t]}function mn(e,t){var n;return e&&((n=l(t)?bn(e):vn(e,t))?un=n:"undefined"!=typeof console&&console.warn),un._abbr}function vn(e,t){if(null!==t){var n,r=cn;if(t.abbr=e,null!=sn[e])I("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=sn[e]._config;else if(null!=t.parentLocale)if(null!=sn[t.parentLocale])r=sn[t.parentLocale]._config;else{if(null==(n=yn(t.parentLocale)))return ln[t.parentLocale]||(ln[t.parentLocale]=[]),ln[t.parentLocale].push({name:e,config:t}),null;r=n._config}return sn[e]=new A(C(r,t)),ln[e]&&ln[e].forEach((function(e){vn(e.name,e.config)})),mn(e),sn[e]}return delete sn[e],null}function gn(e,t){if(null!=t){var n,r,o=cn;null!=sn[e]&&null!=sn[e].parentLocale?sn[e].set(C(sn[e]._config,t)):(null!=(r=yn(e))&&(o=r._config),t=C(o,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=sn[e],sn[e]=n),mn(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?(sn[e]=sn[e].parentLocale,e===mn()&&mn(e)):null!=sn[e]&&delete sn[e]);return sn[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return un;if(!a(e)){if(t=yn(e))return t;e=[e]}return dn(e)}function wn(){return P(sn)}function On(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[We]<0||n[We]>11?We:n[Ve]<1||n[Ve]>et(n[Ge],n[We])?Ve:n[Ye]<0||n[Ye]>24||24===n[Ye]&&(0!==n[Ze]||0!==n[$e]||0!==n[Ke])?Ye:n[Ze]<0||n[Ze]>59?Ze:n[$e]<0||n[$e]>59?$e:n[Ke]<0||n[Ke]>999?Ke:-1,v(e)._overflowDayOfYear&&(t<Ge||t>Ve)&&(t=Ve),v(e)._overflowWeeks&&-1===t&&(t=Qe),v(e)._overflowWeekday&&-1===t&&(t=Xe),v(e).overflow=t),e}var En=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_n=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],jn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Pn=/^\/?Date\((-?\d+)/i,kn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,In={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tn(e){var t,n,r,o,i,a,u=e._i,c=En.exec(u)||_n.exec(u),s=Sn.length,l=jn.length;if(c){for(v(e).iso=!0,t=0,n=s;t<n;t++)if(Sn[t][1].exec(c[1])){o=Sn[t][0],r=!1!==Sn[t][2];break}if(null==o)return void(e._isValid=!1);if(c[3]){for(t=0,n=l;t<n;t++)if(jn[t][1].exec(c[3])){i=(c[2]||" ")+jn[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(c[4]){if(!xn.exec(c[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),qn(e)}else e._isValid=!1}function Rn(e,t,n,r,o,i){var a=[Cn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function Cn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){return!e||Lt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Ln(e,t,n){if(e)return In[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function Dn(e){var t,n=kn.exec(An(e._i));if(n){if(t=Rn(n[4],n[3],n[2],n[5],n[6],n[7]),!Nn(n[1],t,e))return;e._a=t,e._tzm=Ln(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Mn(e){var t=Pn.exec(e._i);null===t?(Tn(e),!1===e._isValid&&(delete e._isValid,Dn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Fn(e,t,n){return null!=e?e:null!=t?t:n}function Un(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Bn(e){var t,n,r,o,i,a=[];if(!e._d){for(r=Un(e),e._w&&null==e._a[Ve]&&null==e._a[We]&&Hn(e),null!=e._dayOfYear&&(i=Fn(e._a[Ge],r[Ge]),(e._dayOfYear>mt(i)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=wt(i,0,e._dayOfYear),e._a[We]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ye]&&0===e._a[Ze]&&0===e._a[$e]&&0===e._a[Ke]&&(e._nextDay=!0,e._a[Ye]=0),e._d=(e._useUTC?wt:bt).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(v(e).weekdayMismatch=!0)}}function Hn(e){var t,n,r,o,i,a,u,c,s;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=Fn(t.GG,e._a[Ge],_t(Kn(),1,4).year),r=Fn(t.W,1),((o=Fn(t.E,1))<1||o>7)&&(c=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,s=_t(Kn(),i,a),n=Fn(t.gg,e._a[Ge],s.year),r=Fn(t.w,s.week),null!=t.d?((o=t.d)<0||o>6)&&(c=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(c=!0)):o=i),r<1||r>xt(n,i,a)?v(e)._overflowWeeks=!0:null!=c?v(e)._overflowWeekday=!0:(u=Et(n,r,o,i,a),e._a[Ge]=u.year,e._dayOfYear=u.dayOfYear)}function qn(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,i,a,u,c,s=""+e._i,l=s.length,f=0;for(c=(r=W(e._f,e._locale).match(M)||[]).length,t=0;t<c;t++)i=r[t],(n=(s.match(De(i,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&v(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),f+=n.length),B[i]?(n?v(e).empty=!1:v(e).unusedTokens.push(i),qe(i,n,e)):e._strict&&!n&&v(e).unusedTokens.push(i);v(e).charsLeftOver=l-f,s.length>0&&v(e).unusedInput.push(s),e._a[Ye]<=12&&!0===v(e).bigHour&&e._a[Ye]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ye]=zn(e._locale,e._a[Ye],e._meridiem),null!==(u=v(e).era)&&(e._a[Ge]=e._locale.erasConvertYear(u,e._a[Ge])),Bn(e),On(e)}else Dn(e);else Tn(e)}function zn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Gn(e){var t,n,r,o,i,a,u=!1,c=e._f.length;if(0===c)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<c;o++)i=0,a=!1,t=E({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],qn(t),g(t)&&(a=!0),i+=v(t).charsLeftOver,i+=10*v(t).unusedTokens.length,v(t).score=i,u?i<r&&(r=i,n=t):(null==r||i<r||a)&&(r=i,n=t,a&&(u=!0));h(e,n||t)}function Wn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Bn(e)}}function Vn(e){var t=new _(On(Yn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Yn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new _(On(t)):(p(t)?e._d=t:a(n)?Gn(e):n?qn(e):Zn(e),g(e)||(e._d=null),e))}function Zn(e){var t=e._i;l(t)?e._d=new Date(o.now()):p(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Mn(e):a(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Bn(e)):u(t)?Wn(e):f(t)?e._d=new Date(t):o.createFromInputFallback(e)}function $n(e,t,n,r,o){var i={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(u(e)&&s(e)||a(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,Vn(i)}function Kn(e,t,n,r){return $n(e,t,n,r,!1)}o.createFromInputFallback=j("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Qn=j("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Xn=j("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function Jn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){return Jn("isBefore",[].slice.call(arguments,0))}function tr(){return Jn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function or(e){var t,n,r=!1,o=rr.length;for(t in e)if(c(e,t)&&(-1===ze.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==fe(e[rr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function ar(){return Ir(NaN)}function ur(e){var t=ie(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,u=t.hour||0,c=t.minute||0,s=t.second||0,l=t.millisecond||0;this._isValid=or(t),this._milliseconds=+l+1e3*s+6e4*c+1e3*u*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function cr(e){return e instanceof ur}function sr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function lr(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&fe(e[r])!==fe(t[r]))&&a++;return a+i}function fr(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+D(~~(e/60),2)+t+D(~~e%60,2)}))}fr("Z",":"),fr("ZZ",""),Le("Z",Ce),Le("ZZ",Ce),Be(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=dr(Ce,e)}));var pr=/([\+\-]|\d\d)/gi;function dr(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(pr)||["-",0,0])[1]+fe(n[2]))?0:"+"===n[0]?r:-r}function hr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(x(e)||p(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):Kn(e).local()}function yr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=dr(Ce,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=yr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Nr(this,Ir(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:yr(this)}function vr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(yr(this),"m")),this}function wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=dr(Re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Or(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Er(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _r(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return E(t,this),(t=Yn(t))._a?(e=t._isUTC?y(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&lr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function jr(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Pr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,kr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ir(e,t){var n,r,o,i=e,a=null;return cr(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:f(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=Pr.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:fe(a[Ve])*n,h:fe(a[Ye])*n,m:fe(a[Ze])*n,s:fe(a[$e])*n,ms:fe(sr(1e3*a[Ke]))*n}):(a=kr.exec(e))?(n="-"===a[1]?-1:1,i={y:Tr(a[2],n),M:Tr(a[3],n),w:Tr(a[4],n),d:Tr(a[5],n),h:Tr(a[6],n),m:Tr(a[7],n),s:Tr(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=Cr(Kn(i.from),Kn(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),r=new ur(i),cr(e)&&c(e,"_locale")&&(r._locale=e._locale),cr(e)&&c(e,"_isValid")&&(r._isValid=e._isValid),r}function Tr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Rr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Cr(e,t){var n;return e.isValid()&&t.isValid()?(t=hr(t,e),e.isBefore(t)?n=Rr(e,t):((n=Rr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ar(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(I(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Nr(this,Ir(n,r),e),this}}function Nr(e,t,n,r){var i=t._milliseconds,a=sr(t._days),u=sr(t._months);e.isValid()&&(r=null==r||r,u&&lt(e,de(e,"Month")+u*n),a&&he(e,"Date",de(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&o.updateOffset(e,a||u))}Ir.fn=ur.prototype,Ir.invalid=ar;var Lr=Ar(1,"add"),Dr=Ar(-1,"subtract");function Mr(e){return"string"==typeof e||e instanceof String}function Fr(e){return x(e)||p(e)||Mr(e)||f(e)||Br(e)||Ur(e)||null==e}function Ur(e){var t,n,r=u(e)&&!s(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=i.length;for(t=0;t<a;t+=1)n=i[t],o=o||c(e,n);return r&&o}function Br(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!f(t)&&Mr(e)})).length),t&&n}function Hr(e){var t,n,r=u(e)&&!s(e),o=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],o=o||c(e,n);return r&&o}function qr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function zr(e,t){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(e=arguments[0],t=void 0):Hr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Kn(),r=hr(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(T(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Kn(n)))}function Gr(){return new _(this)}function Wr(e,t){var n=x(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=oe(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=x(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=oe(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Yr(e,t,n,r){var o=x(e)?e:Kn(e),i=x(t)?t:Kn(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))}function Zr(e,t){var n,r=x(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=oe(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function $r(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=hr(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=oe(t)){case"year":i=Xr(this,r)/12;break;case"month":i=Xr(this,r);break;case"quarter":i=Xr(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:le(i)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function eo(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function to(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",i="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function no(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)}function ro(e,t){return this.isValid()&&(x(e)&&e.isValid()||Kn(e).isValid())?Ir({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oo(e){return this.from(Kn(),e)}function io(e,t){return this.isValid()&&(x(e)&&e.isValid()||Kn(e).isValid())?Ir({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ao(e){return this.to(Kn(),e)}function uo(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var co=j("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function so(){return this._locale}var lo=1e3,fo=60*lo,po=60*fo,ho=3506328*po;function yo(e,t){return(e%t+t)%t}function mo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ho:new Date(e,t,n).valueOf()}function vo(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ho:Date.UTC(e,t,n)}function go(e){var t,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vo:mo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=yo(t+(this._isUTC?0:this.utcOffset()*fo),po);break;case"minute":t=this._d.valueOf(),t-=yo(t,fo);break;case"second":t=this._d.valueOf(),t-=yo(t,lo)}return this._d.setTime(t),o.updateOffset(this,!0),this}function bo(e){var t,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vo:mo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=po-yo(t+(this._isUTC?0:this.utcOffset()*fo),po)-1;break;case"minute":t=this._d.valueOf(),t+=fo-yo(t,fo)-1;break;case"second":t=this._d.valueOf(),t+=lo-yo(t,lo)-1}return this._d.setTime(t),o.updateOffset(this,!0),this}function wo(){return this._d.valueOf()-6e4*(this._offset||0)}function Oo(){return Math.floor(this.valueOf()/1e3)}function Eo(){return new Date(this.valueOf())}function _o(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xo(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function So(){return this.isValid()?this.toISOString():null}function jo(){return g(this)}function Po(){return h({},v(this))}function ko(){return v(this).overflow}function Io(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function To(e,t){var n,r,i,a=this._eras||bn("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=o(a[n].since).startOf("day"),a[n].since=i.valueOf()}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=o(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}}return a}function Ro(e,t,n){var r,o,i,a,u,c=this.eras();for(e=e.toUpperCase(),r=0,o=c.length;r<o;++r)if(i=c[r].name.toUpperCase(),a=c[r].abbr.toUpperCase(),u=c[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return c[r];break;case"NNNN":if(i===e)return c[r];break;case"NNNNN":if(u===e)return c[r]}else if([i,a,u].indexOf(e)>=0)return c[r]}function Co(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n}function Ao(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function No(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Lo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Do(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-o(i[e].since).year())*n+i[e].offset;return this.year()}function Mo(e){return c(this,"_erasNameRegex")||Go.call(this),e?this._erasNameRegex:this._erasRegex}function Fo(e){return c(this,"_erasAbbrRegex")||Go.call(this),e?this._erasAbbrRegex:this._erasRegex}function Uo(e){return c(this,"_erasNarrowRegex")||Go.call(this),e?this._erasNarrowRegex:this._erasRegex}function Bo(e,t){return t.erasAbbrRegex(e)}function Ho(e,t){return t.erasNameRegex(e)}function qo(e,t){return t.erasNarrowRegex(e)}function zo(e,t){return t._eraYearOrdinalRegex||Ie}function Go(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Fe(a[e].name)),n.push(Fe(a[e].abbr)),o.push(Fe(a[e].narrow)),i.push(Fe(a[e].name)),i.push(Fe(a[e].abbr)),i.push(Fe(a[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Wo(e,t){H(0,[e,e.length],0,t)}function Vo(e){return Xo.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Yo(e){return Xo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Zo(){return xt(this.year(),1,4)}function $o(){return xt(this.isoWeekYear(),1,4)}function Ko(){var e=this.localeData()._week;return xt(this.year(),e.dow,e.doy)}function Qo(){var e=this.localeData()._week;return xt(this.weekYear(),e.dow,e.doy)}function Xo(e,t,n,r,o){var i;return null==e?_t(this,r,o).year:(t>(i=xt(e,r,o))&&(t=i),Jo.call(this,e,t,n,r,o))}function Jo(e,t,n,r,o){var i=Et(e,t,n,r,o),a=wt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function ei(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Le("N",Bo),Le("NN",Bo),Le("NNN",Bo),Le("NNNN",Ho),Le("NNNNN",qo),Be(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?v(n).era=o:v(n).invalidEra=e})),Le("y",Ie),Le("yy",Ie),Le("yyy",Ie),Le("yyyy",Ie),Le("yo",zo),Be(["y","yy","yyy","yyyy"],Ge),Be(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ge]=n._locale.eraYearOrdinalParse(e,o):t[Ge]=parseInt(e,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Wo("gggg","weekYear"),Wo("ggggg","weekYear"),Wo("GGGG","isoWeekYear"),Wo("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),ue("weekYear",1),ue("isoWeekYear",1),Le("G",Te),Le("g",Te),Le("GG",_e,be),Le("gg",_e,be),Le("GGGG",Pe,Oe),Le("gggg",Pe,Oe),Le("GGGGG",ke,Ee),Le("ggggg",ke,Ee),He(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=fe(e)})),He(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),re("quarter","Q"),ue("quarter",7),Le("Q",ge),Be("Q",(function(e,t){t[We]=3*(fe(e)-1)})),H("D",["DD",2],"Do","date"),re("date","D"),ue("date",9),Le("D",_e),Le("DD",_e,be),Le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Be(["D","DD"],Ve),Be("Do",(function(e,t){t[Ve]=fe(e.match(_e)[0])}));var ti=pe("Date",!0);function ni(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}H("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),ue("dayOfYear",4),Le("DDD",je),Le("DDDD",we),Be(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=fe(e)})),H("m",["mm",2],0,"minute"),re("minute","m"),ue("minute",14),Le("m",_e),Le("mm",_e,be),Be(["m","mm"],Ze);var ri=pe("Minutes",!1);H("s",["ss",2],0,"second"),re("second","s"),ue("second",15),Le("s",_e),Le("ss",_e,be),Be(["s","ss"],$e);var oi,ii,ai=pe("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),ue("millisecond",16),Le("S",je,ge),Le("SS",je,be),Le("SSS",je,we),oi="SSSS";oi.length<=9;oi+="S")Le(oi,Ie);function ui(e,t){t[Ke]=fe(1e3*("0."+e))}for(oi="S";oi.length<=9;oi+="S")Be(oi,ui);function ci(){return this._isUTC?"UTC":""}function si(){return this._isUTC?"Coordinated Universal Time":""}ii=pe("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var li=_.prototype;function fi(e){return Kn(1e3*e)}function pi(){return Kn.apply(null,arguments).parseZone()}function di(e){return e}li.add=Lr,li.calendar=zr,li.clone=Gr,li.diff=Qr,li.endOf=bo,li.format=no,li.from=ro,li.fromNow=oo,li.to=io,li.toNow=ao,li.get=ye,li.invalidAt=ko,li.isAfter=Wr,li.isBefore=Vr,li.isBetween=Yr,li.isSame=Zr,li.isSameOrAfter=$r,li.isSameOrBefore=Kr,li.isValid=jo,li.lang=co,li.locale=uo,li.localeData=so,li.max=Xn,li.min=Qn,li.parsingFlags=Po,li.set=me,li.startOf=go,li.subtract=Dr,li.toArray=_o,li.toObject=xo,li.toDate=Eo,li.toISOString=eo,li.inspect=to,"undefined"!=typeof Symbol&&null!=Symbol.for&&(li[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),li.toJSON=So,li.toString=Jr,li.unix=Oo,li.valueOf=wo,li.creationData=Io,li.eraName=Ao,li.eraNarrow=No,li.eraAbbr=Lo,li.eraYear=Do,li.year=vt,li.isLeapYear=gt,li.weekYear=Vo,li.isoWeekYear=Yo,li.quarter=li.quarters=ei,li.month=ft,li.daysInMonth=pt,li.week=li.weeks=It,li.isoWeek=li.isoWeeks=Tt,li.weeksInYear=Ko,li.weeksInWeekYear=Qo,li.isoWeeksInYear=Zo,li.isoWeeksInISOWeekYear=$o,li.date=ti,li.day=li.days=Wt,li.weekday=Vt,li.isoWeekday=Yt,li.dayOfYear=ni,li.hour=li.hours=on,li.minute=li.minutes=ri,li.second=li.seconds=ai,li.millisecond=li.milliseconds=ii,li.utcOffset=mr,li.utc=gr,li.local=br,li.parseZone=wr,li.hasAlignedHourOffset=Or,li.isDST=Er,li.isLocal=xr,li.isUtcOffset=Sr,li.isUtc=jr,li.isUTC=jr,li.zoneAbbr=ci,li.zoneName=si,li.dates=j("dates accessor is deprecated. Use date instead.",ti),li.months=j("months accessor is deprecated. Use month instead",ft),li.years=j("years accessor is deprecated. Use year instead",vt),li.zone=j("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),li.isDSTShifted=j("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_r);var hi=A.prototype;function yi(e,t,n,r){var o=bn(),i=y().set(r,t);return o[n](i,e)}function mi(e,t,n){if(f(e)&&(t=e,e=void 0),e=e||"",null!=t)return yi(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=yi(e,r,n,"month");return o}function vi(e,t,n,r){"boolean"==typeof e?(f(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,f(t)&&(n=t,t=void 0),t=t||"");var o,i=bn(),a=e?i._week.dow:0,u=[];if(null!=n)return yi(t,(n+a)%7,r,"day");for(o=0;o<7;o++)u[o]=yi(t,(o+a)%7,r,"day");return u}function gi(e,t){return mi(e,t,"months")}function bi(e,t){return mi(e,t,"monthsShort")}function wi(e,t,n){return vi(e,t,n,"weekdays")}function Oi(e,t,n){return vi(e,t,n,"weekdaysShort")}function Ei(e,t,n){return vi(e,t,n,"weekdaysMin")}hi.calendar=L,hi.longDateFormat=Y,hi.invalidDate=$,hi.ordinal=X,hi.preparse=di,hi.postformat=di,hi.relativeTime=ee,hi.pastFuture=te,hi.set=R,hi.eras=To,hi.erasParse=Ro,hi.erasConvertYear=Co,hi.erasAbbrRegex=Fo,hi.erasNameRegex=Mo,hi.erasNarrowRegex=Uo,hi.months=at,hi.monthsShort=ut,hi.monthsParse=st,hi.monthsRegex=ht,hi.monthsShortRegex=dt,hi.week=St,hi.firstDayOfYear=kt,hi.firstDayOfWeek=Pt,hi.weekdays=Bt,hi.weekdaysMin=qt,hi.weekdaysShort=Ht,hi.weekdaysParse=Gt,hi.weekdaysRegex=Zt,hi.weekdaysShortRegex=$t,hi.weekdaysMinRegex=Kt,hi.isPM=nn,hi.meridiem=an,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===fe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=j("moment.lang is deprecated. Use moment.locale instead.",mn),o.langData=j("moment.langData is deprecated. Use moment.localeData instead.",bn);var _i=Math.abs;function xi(){var e=this._data;return this._milliseconds=_i(this._milliseconds),this._days=_i(this._days),this._months=_i(this._months),e.milliseconds=_i(e.milliseconds),e.seconds=_i(e.seconds),e.minutes=_i(e.minutes),e.hours=_i(e.hours),e.months=_i(e.months),e.years=_i(e.years),this}function Si(e,t,n,r){var o=Ir(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function ji(e,t){return Si(this,e,t,1)}function Pi(e,t){return Si(this,e,t,-1)}function ki(e){return e<0?Math.floor(e):Math.ceil(e)}function Ii(){var e,t,n,r,o,i=this._milliseconds,a=this._days,u=this._months,c=this._data;return i>=0&&a>=0&&u>=0||i<=0&&a<=0&&u<=0||(i+=864e5*ki(Ri(u)+a),a=0,u=0),c.milliseconds=i%1e3,e=le(i/1e3),c.seconds=e%60,t=le(e/60),c.minutes=t%60,n=le(t/60),c.hours=n%24,a+=le(n/24),u+=o=le(Ti(a)),a-=ki(Ri(o)),r=le(u/12),u%=12,c.days=a,c.months=u,c.years=r,this}function Ti(e){return 4800*e/146097}function Ri(e){return 146097*e/4800}function Ci(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=oe(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Ti(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ri(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ai(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*fe(this._months/12):NaN}function Ni(e){return function(){return this.as(e)}}var Li=Ni("ms"),Di=Ni("s"),Mi=Ni("m"),Fi=Ni("h"),Ui=Ni("d"),Bi=Ni("w"),Hi=Ni("M"),qi=Ni("Q"),zi=Ni("y");function Gi(){return Ir(this)}function Wi(e){return e=oe(e),this.isValid()?this[e+"s"]():NaN}function Vi(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yi=Vi("milliseconds"),Zi=Vi("seconds"),$i=Vi("minutes"),Ki=Vi("hours"),Qi=Vi("days"),Xi=Vi("months"),Ji=Vi("years");function ea(){return le(this.days()/7)}var ta=Math.round,na={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ra(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function oa(e,t,n,r){var o=Ir(e).abs(),i=ta(o.as("s")),a=ta(o.as("m")),u=ta(o.as("h")),c=ta(o.as("d")),s=ta(o.as("M")),l=ta(o.as("w")),f=ta(o.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||u<=1&&["h"]||u<n.h&&["hh",u]||c<=1&&["d"]||c<n.d&&["dd",c];return null!=n.w&&(p=p||l<=1&&["w"]||l<n.w&&["ww",l]),(p=p||s<=1&&["M"]||s<n.M&&["MM",s]||f<=1&&["y"]||["yy",f])[2]=t,p[3]=+e>0,p[4]=r,ra.apply(null,p)}function ia(e){return void 0===e?ta:"function"==typeof e&&(ta=e,!0)}function aa(e,t){return void 0!==na[e]&&(void 0===t?na[e]:(na[e]=t,"s"===e&&(na.ss=t-1),!0))}function ua(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=na;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},na,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=oa(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ca=Math.abs;function sa(e){return(e>0)-(e<0)||+e}function la(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,u,c=ca(this._milliseconds)/1e3,s=ca(this._days),l=ca(this._months),f=this.asSeconds();return f?(e=le(c/60),t=le(e/60),c%=60,e%=60,n=le(l/12),l%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=sa(this._months)!==sa(f)?"-":"",a=sa(this._days)!==sa(f)?"-":"",u=sa(this._milliseconds)!==sa(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(l?i+l+"M":"")+(s?a+s+"D":"")+(t||e||c?"T":"")+(t?u+t+"H":"")+(e?u+e+"M":"")+(c?u+r+"S":"")):"P0D"}var fa=ur.prototype;return fa.isValid=ir,fa.abs=xi,fa.add=ji,fa.subtract=Pi,fa.as=Ci,fa.asMilliseconds=Li,fa.asSeconds=Di,fa.asMinutes=Mi,fa.asHours=Fi,fa.asDays=Ui,fa.asWeeks=Bi,fa.asMonths=Hi,fa.asQuarters=qi,fa.asYears=zi,fa.valueOf=Ai,fa._bubble=Ii,fa.clone=Gi,fa.get=Wi,fa.milliseconds=Yi,fa.seconds=Zi,fa.minutes=$i,fa.hours=Ki,fa.days=Qi,fa.weeks=ea,fa.months=Xi,fa.years=Ji,fa.humanize=ua,fa.toISOString=la,fa.toString=la,fa.toJSON=la,fa.locale=uo,fa.localeData=so,fa.toIsoString=j("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",la),fa.lang=co,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Le("x",Te),Le("X",Ae),Be("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Be("x",(function(e,t,n){n._d=new Date(fe(e))})),o.version="2.29.4",i(Kn),o.fn=li,o.min=er,o.max=tr,o.now=nr,o.utc=y,o.unix=fi,o.months=gi,o.isDate=p,o.locale=mn,o.invalid=b,o.duration=Ir,o.isMoment=x,o.weekdays=wi,o.parseZone=pi,o.localeData=bn,o.isDuration=cr,o.monthsShort=bi,o.weekdaysMin=Ei,o.defineLocale=vn,o.updateLocale=gn,o.locales=wn,o.weekdaysShort=Oi,o.normalizeUnits=oe,o.relativeTimeRounding=ia,o.relativeTimeThreshold=aa,o.calendarFormat=qr,o.prototype=li,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()},92366:(e,t,n)=>{"use strict";const r=n(64942),o=process.hrtime(),i=(new Date).getTime();function a(){let e=process.hrtime(o);return r(i).times(1e6).add(r(e[0]).times(1e9).plus(e[1])).toString()}e.exports=a,e.exports.microseconds=e.exports.micro=function(){return r(a()).divide(1e3).toString()}},28608:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,u,c=o(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))n.call(a,l)&&(c[l]=a[l]);if(t){u=t(a);for(var f=0;f<u.length;f++)r.call(a,u[f])&&(c[u[f]]=a[u[f]])}}return c}},6967:(e,t,n)=>{var r=n(58412);e.exports=d,e.exports.parse=i,e.exports.compile=function(e,t){return u(i(e,t),t)},e.exports.tokensToFunction=u,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,u="",l=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],p=n[1],d=n.index;if(u+=e.slice(a,d),a=d+f.length,p)u+=p[1];else{var h=e[a],y=n[2],m=n[3],v=n[4],g=n[5],b=n[6],w=n[7];u&&(r.push(u),u="");var O=null!=y&&null!=h&&h!==y,E="+"===b||"*"===b,_="?"===b||"*"===b,x=n[2]||l,S=v||g;r.push({name:m||i++,prefix:y||"",delimiter:x,optional:_,repeat:E,partial:O,asterisk:!!w,pattern:S?s(S):w?".*":"[^"+c(x)+"]+?"})}}return a<e.length&&(u+=e.substr(a)),u&&r.push(u),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function u(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",u=t||{},c=(o||{}).pretty?a:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var f,p=u[l.name];if(null==p){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(p)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<p.length;d++){if(f=c(p[d]),!n[s].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===d?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(p),!n[s].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');i+=l.prefix+f}}else i+=l}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",u=0;u<e.length;u++){var s=e[u];if("string"==typeof s)a+=c(s);else{var p=c(s.prefix),d="(?:"+s.pattern+")";t.push(s),s.repeat&&(d+="(?:"+p+d+")*"),a+=d=s.optional?s.partial?p+"("+d+")?":"(?:"+p+"("+d+"))?":p+"("+d+")"}}var h=c(n.delimiter||"/"),y=a.slice(-h.length)===h;return o||(a=(y?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&y?"":"(?="+h+"|$)",l(new RegExp("^"+a,f(n)),t)}function d(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(d(e[o],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return p(i(e,n),t,n)}(e,t,n)}},87452:function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";return function(e,t){var n,r,o,i,a,u,c,s,l,f,p,d,h,y,m,v,g,b,w=this,O=!1,E=!0,_=!0,x={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},S=function(e){if(v)return!0;e=e||window.event,m.timeToIdle&&m.mouseUsed&&!l&&L();for(var n,r,o=(e.target||e.srcElement).getAttribute("class")||"",i=0;i<z.length;i++)(n=z[i]).onTap&&o.indexOf("pswp__"+n.name)>-1&&(n.onTap(),r=!0);if(r){e.stopPropagation&&e.stopPropagation(),v=!0;var a=t.features.isOldAndroid?600:30;setTimeout((function(){v=!1}),a)}},j=function(){return!e.likelyTouchDevice||m.mouseUsed||screen.width>m.fitControlsWidth},P=function(e,n,r){t[(r?"add":"remove")+"Class"](e,"pswp__"+n)},k=function(){var e=1===m.getNumItemsFn();e!==y&&(P(r,"ui--one-slide",e),y=e)},I=function(){P(c,"share-modal--hidden",_)},T=function(){return(_=!_)?(t.removeClass(c,"pswp__share-modal--fade-in"),setTimeout((function(){_&&I()}),300)):(I(),setTimeout((function(){_||t.addClass(c,"pswp__share-modal--fade-in")}),30)),_||C(),!1},R=function(t){var n=(t=t||window.event).target||t.srcElement;return e.shout("shareLinkClick",t,n),!(!n.href||!n.hasAttribute("download")&&(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),_||T(),1))},C=function(){for(var e,t,n,r,o="",i=0;i<m.shareButtons.length;i++)e=m.shareButtons[i],t=m.getImageURLForShare(e),n=m.getPageURLForShare(e),r=m.getTextForShare(e),o+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(r))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",m.parseShareButtonOut&&(o=m.parseShareButtonOut(e,o));c.children[0].innerHTML=o,c.children[0].onclick=R},A=function(e){for(var n=0;n<m.closeElClasses.length;n++)if(t.hasClass(e,"pswp__"+m.closeElClasses[n]))return!0},N=0,L=function(){clearTimeout(b),N=0,l&&w.setIdle(!1)},D=function(e){var t=(e=e||window.event).relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(b),b=setTimeout((function(){w.setIdle(!0)}),m.timeToIdleOutside))},M=function(){m.fullscreenEl&&!t.features.isOldAndroid&&(n||(n=w.getFullscreenAPI()),n?(t.bind(document,n.eventK,w.updateFullscreen),w.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs"))},F=function(){m.preloaderEl&&(U(!0),f("beforeChange",(function(){clearTimeout(h),h=setTimeout((function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&U(!1):U(!0)}),m.loadingIndicatorDelay)})),f("imageLoadComplete",(function(t,n){e.currItem===n&&U(!0)})))},U=function(e){d!==e&&(P(p,"preloader--active",!e),d=e)},B=function(e){var n=e.vGap;if(j()){var a=m.barsSize;if(m.captionEl&&"auto"===a.bottom)if(i||((i=t.createEl("pswp__caption pswp__caption--fake")).appendChild(t.createEl("pswp__caption__center")),r.insertBefore(i,o),t.addClass(r,"pswp__ui--fit")),m.addCaptionHTMLFn(e,i,!0)){var u=i.clientHeight;n.bottom=parseInt(u,10)||44}else n.bottom=a.top;else n.bottom="auto"===a.bottom?0:a.bottom;n.top=a.top}else n.top=n.bottom=0},H=function(){m.timeToIdle&&f("mouseUsed",(function(){t.bind(document,"mousemove",L),t.bind(document,"mouseout",D),g=setInterval((function(){2==++N&&w.setIdle(!0)}),m.timeToIdle/2)}))},q=function(){var e;f("onVerticalDrag",(function(e){E&&e<.95?w.hideControls():!E&&e>=.95&&w.showControls()})),f("onPinchClose",(function(t){E&&t<.9?(w.hideControls(),e=!0):e&&!E&&t>.9&&w.showControls()})),f("zoomGestureEnded",(function(){(e=!1)&&!E&&w.showControls()}))},z=[{name:"caption",option:"captionEl",onInit:function(e){o=e}},{name:"share-modal",option:"shareEl",onInit:function(e){c=e},onTap:function(){T()}},{name:"button--share",option:"shareEl",onInit:function(e){u=e},onTap:function(){T()}},{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){a=e}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onTap:e.prev},{name:"button--arrow--right",option:"arrowEl",onTap:e.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){n.isFullscreen()?n.exit():n.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){p=e}}],G=function(){var e,n,o,i=function(r){if(r)for(var i=r.length,a=0;a<i;a++){e=r[a],n=e.className;for(var u=0;u<z.length;u++)o=z[u],n.indexOf("pswp__"+o.name)>-1&&(m[o.option]?(t.removeClass(e,"pswp__element--disabled"),o.onInit&&o.onInit(e)):t.addClass(e,"pswp__element--disabled"))}};i(r.children);var a=t.getChildByClass(r,"pswp__top-bar");a&&i(a.children)};w.init=function(){t.extend(e.options,x,!0),m=e.options,r=t.getChildByClass(e.scrollWrap,"pswp__ui"),f=e.listen,q(),f("beforeChange",w.update),f("doubleTap",(function(t){var n=e.currItem.initialZoomLevel;e.getZoomLevel()!==n?e.zoomTo(n,t,333):e.zoomTo(m.getDoubleTapZoom(!1,e.currItem),t,333)})),f("preventDragEvent",(function(e,t,n){var r=e.target||e.srcElement;r&&r.getAttribute("class")&&e.type.indexOf("mouse")>-1&&(r.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(r.tagName))&&(n.prevent=!1)})),f("bindEvents",(function(){t.bind(r,"pswpTap click",S),t.bind(e.scrollWrap,"pswpTap",w.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",w.onMouseOver)})),f("unbindEvents",(function(){_||T(),g&&clearInterval(g),t.unbind(document,"mouseout",D),t.unbind(document,"mousemove",L),t.unbind(r,"pswpTap click",S),t.unbind(e.scrollWrap,"pswpTap",w.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",w.onMouseOver),n&&(t.unbind(document,n.eventK,w.updateFullscreen),n.isFullscreen()&&(m.hideAnimationDuration=0,n.exit()),n=null)})),f("destroy",(function(){m.captionEl&&(i&&r.removeChild(i),t.removeClass(o,"pswp__caption--empty")),c&&(c.children[0].onclick=null),t.removeClass(r,"pswp__ui--over-close"),t.addClass(r,"pswp__ui--hidden"),w.setIdle(!1)})),m.showAnimationDuration||t.removeClass(r,"pswp__ui--hidden"),f("initialZoomIn",(function(){m.showAnimationDuration&&t.removeClass(r,"pswp__ui--hidden")})),f("initialZoomOut",(function(){t.addClass(r,"pswp__ui--hidden")})),f("parseVerticalMargin",B),G(),m.shareEl&&u&&c&&(_=!0),k(),H(),M(),F()},w.setIdle=function(e){l=e,P(r,"ui--idle",e)},w.update=function(){E&&e.currItem?(w.updateIndexIndicator(),m.captionEl&&(m.addCaptionHTMLFn(e.currItem,o),P(o,"caption--empty",!e.currItem.title)),O=!0):O=!1,_||T(),k()},w.updateFullscreen=function(r){r&&setTimeout((function(){e.setScrollOffset(0,t.getScrollY())}),50),t[(n.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},w.updateIndexIndicator=function(){m.counterEl&&(a.innerHTML=e.getCurrentIndex()+1+m.indexIndicatorSep+m.getNumItemsFn())},w.onGlobalTap=function(n){var r=(n=n||window.event).target||n.srcElement;if(!v)if(n.detail&&"mouse"===n.detail.pointerType){if(A(r))return void e.close();t.hasClass(r,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?m.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(n.detail.releasePoint))}else if(m.tapToToggleControls&&(E?w.hideControls():w.showControls()),m.tapToClose&&(t.hasClass(r,"pswp__img")||A(r)))return void e.close()},w.onMouseOver=function(e){var t=(e=e||window.event).target||e.srcElement;P(r,"ui--over-close",A(t))},w.hideControls=function(){t.addClass(r,"pswp__ui--hidden"),E=!1},w.showControls=function(){E=!0,O||w.update(),t.removeClass(r,"pswp__ui--hidden")},w.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},w.getFullscreenAPI=function(){var t,n=document.documentElement,r="fullscreenchange";return n.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:r}:n.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+r}:n.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+r}:n.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),t&&(t.enter=function(){if(s=m.closeOnScroll,m.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return e.template[this.enterK]();e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return m.closeOnScroll=s,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}})?r.call(t,n,t,e):r)||(e.exports=o)},98454:function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";return function(e,t,n,r){var o={features:null,bind:function(e,t,n,r){var o=(r?"remove":"add")+"EventListener";t=t.split(" ");for(var i=0;i<t.length;i++)t[i]&&e[o](t[i],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var n=document.createElement(t||"div");return e&&(n.className=e),n},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){o.bind(e,t,n,!0)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){o.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(o.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var r=e.length;r--;)if(e[r][n]===t)return r;return-1},extend:function(e,t,n){for(var r in t)if(t.hasOwnProperty(r)){if(n&&e.hasOwnProperty(r))continue;e[r]=t[r]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(o.features)return o.features;var e=o.createEl().style,t="",n={};if(n.oldIE=document.all&&!document.addEventListener,n.touch="ontouchstart"in window,window.requestAnimationFrame&&(n.raf=window.requestAnimationFrame,n.caf=window.cancelAnimationFrame),n.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!n.pointerEvent){var r=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var i=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);i&&i.length>0&&(i=parseInt(i[1],10))>=1&&i<8&&(n.isOldIOSPhone=!0)}var a=r.match(/Android\s([0-9\.]*)/),u=a?a[1]:0;(u=parseFloat(u))>=1&&(u<4.4&&(n.isOldAndroid=!0),n.androidVersion=u),n.isMobileOpera=/opera mini|opera mobi/i.test(r)}for(var c,s,l=["transform","perspective","animationName"],f=["","webkit","Moz","ms","O"],p=0;p<4;p++){t=f[p];for(var d=0;d<3;d++)c=l[d],s=t+(t?c.charAt(0).toUpperCase()+c.slice(1):c),!n[c]&&s in e&&(n[c]=s);t&&!n.raf&&(t=t.toLowerCase(),n.raf=window[t+"RequestAnimationFrame"],n.raf&&(n.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!n.raf){var h=0;n.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),r=window.setTimeout((function(){e(t+n)}),n);return h=t+n,r},n.caf=function(e){clearTimeout(e)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o.features=n,n}};o.detectFeatures(),o.features.oldIE&&(o.bind=function(e,t,n,r){t=t.split(" ");for(var o,i=(r?"detach":"attach")+"Event",a=function(){n.handleEvent.call(n)},u=0;u<t.length;u++)if(o=t[u])if("object"==typeof n&&n.handleEvent){if(r){if(!n["oldIE"+o])return!1}else n["oldIE"+o]=a;e[i]("on"+o,n["oldIE"+o])}else e[i]("on"+o,n)});var i=this,a=25,u=3,c={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};o.extend(c,r);var s,l,f,p,d,h,y,m,v,g,b,w,O,E,_,x,S,j,P,k,I,T,R,C,A,N,L,D,M,F,U,B,H,q,z,G,W,V,Y,Z,$,K,Q,X,J,ee,te,ne,re,oe,ie,ae,ue,ce,se,le,fe=function(){return{x:0,y:0}},pe=fe(),de=fe(),he=fe(),ye={},me=0,ve={},ge=fe(),be=0,we=!0,Oe=[],Ee={},_e=!1,xe=function(e,t){o.extend(i,t.publicMethods),Oe.push(e)},Se=function(e){var t=Jt();return e>t-1?e-t:e<0?t+e:e},je={},Pe=function(e,t){return je[e]||(je[e]=[]),je[e].push(t)},ke=function(e){var t=je[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var r=0;r<t.length;r++)t[r].apply(i,n)}},Ie=function(){return(new Date).getTime()},Te=function(e){ce=e,i.bg.style.opacity=e*c.bgOpacity},Re=function(e,t,n,r,o){(!_e||o&&o!==i.currItem)&&(r/=o?o.fitRatio:i.currItem.fitRatio),e[T]=w+t+"px, "+n+"px"+O+" scale("+r+")"},Ce=function(e){re&&(e&&(g>i.currItem.fitRatio?_e||(fn(i.currItem,!1,!0),_e=!0):_e&&(fn(i.currItem),_e=!1)),Re(re,he.x,he.y,g))},Ae=function(e){e.container&&Re(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Ne=function(e,t){t[T]=w+e+"px, 0px"+O},Le=function(e,t){if(!c.loop&&t){var n=p+(ge.x*me-e)/ge.x,r=Math.round(e-gt.x);(n<0&&r>0||n>=Jt()-1&&r<0)&&(e=gt.x+r*c.mainScrollEndFriction)}gt.x=e,Ne(e,d)},De=function(e,t){var n=bt[e]-ve[e];return de[e]+pe[e]+n-n*(t/b)},Me=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Fe=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Ue=null,Be=function(){Ue&&(o.unbind(document,"mousemove",Be),o.addClass(e,"pswp--has_mouse"),c.mouseUsed=!0,ke("mouseUsed")),Ue=setTimeout((function(){Ue=null}),100)},He=function(){o.bind(document,"keydown",i),U.transform&&o.bind(i.scrollWrap,"click",i),c.mouseUsed||o.bind(document,"mousemove",Be),o.bind(window,"resize scroll orientationchange",i),ke("bindEvents")},qe=function(){o.unbind(window,"resize scroll orientationchange",i),o.unbind(window,"scroll",v.scroll),o.unbind(document,"keydown",i),o.unbind(document,"mousemove",Be),U.transform&&o.unbind(i.scrollWrap,"click",i),Y&&o.unbind(window,y,i),clearTimeout(B),ke("unbindEvents")},ze=function(e,t){var n=un(i.currItem,ye,e);return t&&(ne=n),n},Ge=function(e){return e||(e=i.currItem),e.initialZoomLevel},We=function(e){return e||(e=i.currItem),e.w>0?c.maxSpreadZoom:1},Ve=function(e,t,n,r){return r===i.currItem.initialZoomLevel?(n[e]=i.currItem.initialPosition[e],!0):(n[e]=De(e,r),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},Ye=function(){if(T){var t=U.perspective&&!C;return w="translate"+(t?"3d(":"("),void(O=U.perspective?", 0px)":")")}T="left",o.addClass(e,"pswp--ie"),Ne=function(e,t){t.left=e+"px"},Ae=function(e){var t=e.fitRatio>1?1:e.fitRatio,n=e.container.style,r=t*e.w,o=t*e.h;n.width=r+"px",n.height=o+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},Ce=function(){if(re){var e=re,t=i.currItem,n=t.fitRatio>1?1:t.fitRatio,r=n*t.w,o=n*t.h;e.width=r+"px",e.height=o+"px",e.left=he.x+"px",e.top=he.y+"px"}}},Ze=function(e){var t="";c.escKey&&27===e.keyCode?t="close":c.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,i[t]()))},$e=function(e){e&&(K||$||oe||W)&&(e.preventDefault(),e.stopPropagation())},Ke=function(){i.setScrollOffset(0,o.getScrollY())},Qe={},Xe=0,Je=function(e){Qe[e]&&(Qe[e].raf&&N(Qe[e].raf),Xe--,delete Qe[e])},et=function(e){Qe[e]&&Je(e),Qe[e]||(Xe++,Qe[e]={})},tt=function(){for(var e in Qe)Qe.hasOwnProperty(e)&&Je(e)},nt=function(e,t,n,r,o,i,a){var u,c=Ie();et(e);var s=function(){if(Qe[e]){if((u=Ie()-c)>=r)return Je(e),i(n),void(a&&a());i((n-t)*o(u/r)+t),Qe[e].raf=A(s)}};s()},rt={shout:ke,listen:Pe,viewportSize:ye,options:c,isMainScrollAnimating:function(){return oe},getZoomLevel:function(){return g},getCurrentIndex:function(){return p},isDragging:function(){return Y},isZooming:function(){return ee},setScrollOffset:function(e,t){ve.x=e,F=ve.y=t,ke("updateScrollOffset",ve)},applyZoomPan:function(e,t,n,r){he.x=t,he.y=n,g=e,Ce(r)},init:function(){if(!s&&!l){var n;i.framework=o,i.template=e,i.bg=o.getChildByClass(e,"pswp__bg"),L=e.className,s=!0,U=o.detectFeatures(),A=U.raf,N=U.caf,T=U.transform,M=U.oldIE,i.scrollWrap=o.getChildByClass(e,"pswp__scroll-wrap"),i.container=o.getChildByClass(i.scrollWrap,"pswp__container"),d=i.container.style,i.itemHolders=x=[{el:i.container.children[0],wrap:0,index:-1},{el:i.container.children[1],wrap:0,index:-1},{el:i.container.children[2],wrap:0,index:-1}],x[0].el.style.display=x[2].el.style.display="none",Ye(),v={resize:i.updateSize,orientationchange:function(){clearTimeout(B),B=setTimeout((function(){ye.x!==i.scrollWrap.clientWidth&&i.updateSize()}),500)},scroll:Ke,keydown:Ze,click:$e};var r=U.isOldIOSPhone||U.isOldAndroid||U.isMobileOpera;for(U.animationName&&U.transform&&!r||(c.showAnimationDuration=c.hideAnimationDuration=0),n=0;n<Oe.length;n++)i["init"+Oe[n]]();t&&(i.ui=new t(i,o)).init(),ke("firstUpdate"),p=p||c.index||0,(isNaN(p)||p<0||p>=Jt())&&(p=0),i.currItem=Xt(p),(U.isOldIOSPhone||U.isOldAndroid)&&(we=!1),e.setAttribute("aria-hidden","false"),c.modal&&(we?e.style.position="fixed":(e.style.position="absolute",e.style.top=o.getScrollY()+"px")),void 0===F&&(ke("initialLayout"),F=D=o.getScrollY());var a="pswp--open ";for(c.mainClass&&(a+=c.mainClass+" "),c.showHideOpacity&&(a+="pswp--animate_opacity "),a+=C?"pswp--touch":"pswp--notouch",a+=U.animationName?" pswp--css_animation":"",a+=U.svg?" pswp--svg":"",o.addClass(e,a),i.updateSize(),h=-1,be=null,n=0;n<u;n++)Ne((n+h)*ge.x,x[n].el.style);M||o.bind(i.scrollWrap,m,i),Pe("initialZoomInEnd",(function(){i.setContent(x[0],p-1),i.setContent(x[2],p+1),x[0].el.style.display=x[2].el.style.display="block",c.focus&&e.focus(),He()})),i.setContent(x[1],p),i.updateCurrItem(),ke("afterInit"),we||(E=setInterval((function(){Xe||Y||ee||g!==i.currItem.initialZoomLevel||i.updateSize()}),1e3)),o.addClass(e,"pswp--visible")}},close:function(){s&&(s=!1,l=!0,ke("close"),qe(),en(i.currItem,null,!0,i.destroy))},destroy:function(){ke("destroy"),Zt&&clearTimeout(Zt),e.setAttribute("aria-hidden","true"),e.className=L,E&&clearInterval(E),o.unbind(i.scrollWrap,m,i),o.unbind(window,"scroll",i),xt(),tt(),je=null},panTo:function(e,t,n){n||(e>ne.min.x?e=ne.min.x:e<ne.max.x&&(e=ne.max.x),t>ne.min.y?t=ne.min.y:t<ne.max.y&&(t=ne.max.y)),he.x=e,he.y=t,Ce()},handleEvent:function(e){e=e||window.event,v[e.type]&&v[e.type](e)},goTo:function(e){var t=(e=Se(e))-p;be=t,p=e,i.currItem=Xt(p),me-=t,Le(ge.x*me),tt(),oe=!1,i.updateCurrItem()},next:function(){i.goTo(p+1)},prev:function(){i.goTo(p-1)},updateCurrZoomItem:function(e){if(e&&ke("beforeChange",0),x[1].el.children.length){var t=x[1].el.children[0];re=o.hasClass(t,"pswp__zoom-wrap")?t.style:null}else re=null;ne=i.currItem.bounds,b=g=i.currItem.initialZoomLevel,he.x=ne.center.x,he.y=ne.center.y,e&&ke("afterChange")},invalidateCurrItems:function(){_=!0;for(var e=0;e<u;e++)x[e].item&&(x[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==be){var t,n=Math.abs(be);if(!(e&&n<2)){i.currItem=Xt(p),_e=!1,ke("beforeChange",be),n>=u&&(h+=be+(be>0?-u:u),n=u);for(var r=0;r<n;r++)be>0?(t=x.shift(),x[u-1]=t,h++,Ne((h+2)*ge.x,t.el.style),i.setContent(t,p-n+r+1+1)):(t=x.pop(),x.unshift(t),h--,Ne(h*ge.x,t.el.style),i.setContent(t,p+n-r-1-1));if(re&&1===Math.abs(be)){var o=Xt(S);o.initialZoomLevel!==g&&(un(o,ye),fn(o),Ae(o))}be=0,i.updateCurrZoomItem(),S=p,ke("afterChange")}}},updateSize:function(t){if(!we&&c.modal){var n=o.getScrollY();if(F!==n&&(e.style.top=n+"px",F=n),!t&&Ee.x===window.innerWidth&&Ee.y===window.innerHeight)return;Ee.x=window.innerWidth,Ee.y=window.innerHeight,e.style.height=Ee.y+"px"}if(ye.x=i.scrollWrap.clientWidth,ye.y=i.scrollWrap.clientHeight,Ke(),ge.x=ye.x+Math.round(ye.x*c.spacing),ge.y=ye.y,Le(ge.x*me),ke("beforeResize"),void 0!==h){for(var r,a,s,l=0;l<u;l++)r=x[l],Ne((l+h)*ge.x,r.el.style),s=p+l-1,c.loop&&Jt()>2&&(s=Se(s)),(a=Xt(s))&&(_||a.needsUpdate||!a.bounds)?(i.cleanSlide(a),i.setContent(r,s),1===l&&(i.currItem=a,i.updateCurrZoomItem(!0)),a.needsUpdate=!1):-1===r.index&&s>=0&&i.setContent(r,s),a&&a.container&&(un(a,ye),fn(a),Ae(a));_=!1}b=g=i.currItem.initialZoomLevel,(ne=i.currItem.bounds)&&(he.x=ne.center.x,he.y=ne.center.y,Ce(!0)),ke("resize")},zoomTo:function(e,t,n,r,i){t&&(b=g,bt.x=Math.abs(t.x)-he.x,bt.y=Math.abs(t.y)-he.y,Me(de,he));var a=ze(e,!1),u={};Ve("x",a,u,e),Ve("y",a,u,e);var c=g,s={x:he.x,y:he.y};Fe(u);var l=function(t){1===t?(g=e,he.x=u.x,he.y=u.y):(g=(e-c)*t+c,he.x=(u.x-s.x)*t+s.x,he.y=(u.y-s.y)*t+s.y),i&&i(t),Ce(1===t)};n?nt("customZoomTo",0,1,n,r||o.easing.sine.inOut,l):l(1)}},ot=30,it=10,at={},ut={},ct={},st={},lt={},ft=[],pt={},dt=[],ht={},yt=0,mt=fe(),vt=0,gt=fe(),bt=fe(),wt=fe(),Ot=function(e,t){return e.x===t.x&&e.y===t.y},Et=function(e,t){return Math.abs(e.x-t.x)<a&&Math.abs(e.y-t.y)<a},_t=function(e,t){return ht.x=Math.abs(e.x-t.x),ht.y=Math.abs(e.y-t.y),Math.sqrt(ht.x*ht.x+ht.y*ht.y)},xt=function(){Q&&(N(Q),Q=null)},St=function(){Y&&(Q=A(St),Ht())},jt=function(){return!("fit"===c.scaleMode&&g===i.currItem.initialZoomLevel)},Pt=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:Pt(e.parentNode,t))},kt={},It=function(e,t){return kt.prevent=!Pt(e.target,c.isClickableElement),ke("preventDragEvent",e,t,kt),kt.prevent},Tt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Rt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},Ct=function(e,t,n){if(e-q>50){var r=dt.length>2?dt.shift():{};r.x=t,r.y=n,dt.push(r),q=e}},At=function(){var e=he.y-i.currItem.initialPosition.y;return 1-Math.abs(e/(ye.y/2))},Nt={},Lt={},Dt=[],Mt=function(e){for(;Dt.length>0;)Dt.pop();return R?(le=0,ft.forEach((function(e){0===le?Dt[0]=e:1===le&&(Dt[1]=e),le++}))):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(Dt[0]=Tt(e.touches[0],Nt),e.touches.length>1&&(Dt[1]=Tt(e.touches[1],Lt))):(Nt.x=e.pageX,Nt.y=e.pageY,Nt.id="",Dt[0]=Nt),Dt},Ft=function(e,t){var n,r,o,a,u=he[e]+t[e],s=t[e]>0,l=gt.x+t.x,f=gt.x-pt.x;if(n=u>ne.min[e]||u<ne.max[e]?c.panEndFriction:1,u=he[e]+t[e]*n,(c.allowPanToNext||g===i.currItem.initialZoomLevel)&&(re?"h"!==ie||"x"!==e||$||(s?(u>ne.min[e]&&(n=c.panEndFriction,ne.min[e],r=ne.min[e]-de[e]),(r<=0||f<0)&&Jt()>1?(a=l,f<0&&l>pt.x&&(a=pt.x)):ne.min.x!==ne.max.x&&(o=u)):(u<ne.max[e]&&(n=c.panEndFriction,ne.max[e],r=de[e]-ne.max[e]),(r<=0||f>0)&&Jt()>1?(a=l,f>0&&l<pt.x&&(a=pt.x)):ne.min.x!==ne.max.x&&(o=u))):a=l,"x"===e))return void 0!==a&&(Le(a,!0),X=a!==pt.x),ne.min.x!==ne.max.x&&(void 0!==o?he.x=o:X||(he.x+=t.x*n)),void 0!==a;oe||X||g>i.currItem.fitRatio&&(he[e]+=t[e]*n)},Ut=function(e){if(!("mousedown"===e.type&&e.button>0))if(Qt)e.preventDefault();else if(!V||"mousedown"!==e.type){if(It(e,!0)&&e.preventDefault(),ke("pointerDown"),R){var t=o.arraySearch(ft,e.pointerId,"id");t<0&&(t=ft.length),ft[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Mt(e),r=n.length;J=null,tt(),Y&&1!==r||(Y=ae=!0,o.bind(window,y,i),G=se=ue=W=X=K=Z=$=!1,ie=null,ke("firstTouchStart",n),Me(de,he),pe.x=pe.y=0,Me(st,n[0]),Me(lt,st),pt.x=ge.x*me,dt=[{x:st.x,y:st.y}],q=H=Ie(),ze(g,!0),xt(),St()),!ee&&r>1&&!oe&&!X&&(b=g,$=!1,ee=Z=!0,pe.y=pe.x=0,Me(de,he),Me(at,n[0]),Me(ut,n[1]),Rt(at,ut,wt),bt.x=Math.abs(wt.x)-he.x,bt.y=Math.abs(wt.y)-he.y,te=_t(at,ut))}},Bt=function(e){if(e.preventDefault(),R){var t=o.arraySearch(ft,e.pointerId,"id");if(t>-1){var n=ft[t];n.x=e.pageX,n.y=e.pageY}}if(Y){var r=Mt(e);if(ie||K||ee)J=r;else if(gt.x!==ge.x*me)ie="h";else{var i=Math.abs(r[0].x-st.x)-Math.abs(r[0].y-st.y);Math.abs(i)>=it&&(ie=i>0?"h":"v",J=r)}}},Ht=function(){if(J){var e=J.length;if(0!==e)if(Me(at,J[0]),ct.x=at.x-st.x,ct.y=at.y-st.y,ee&&e>1){if(st.x=at.x,st.y=at.y,!ct.x&&!ct.y&&Ot(J[1],ut))return;Me(ut,J[1]),$||($=!0,ke("zoomGestureStarted"));var t=_t(at,ut),n=Vt(t);n>i.currItem.initialZoomLevel+i.currItem.initialZoomLevel/15&&(se=!0);var r=1,o=Ge(),a=We();if(n<o)if(c.pinchToClose&&!se&&b<=i.currItem.initialZoomLevel){var u=1-(o-n)/(o/1.2);Te(u),ke("onPinchClose",u),ue=!0}else(r=(o-n)/o)>1&&(r=1),n=o-r*(o/3);else n>a&&((r=(n-a)/(6*o))>1&&(r=1),n=a+r*o);r<0&&(r=0),Rt(at,ut,mt),pe.x+=mt.x-wt.x,pe.y+=mt.y-wt.y,Me(wt,mt),he.x=De("x",n),he.y=De("y",n),G=n>g,g=n,Ce()}else{if(!ie)return;if(ae&&(ae=!1,Math.abs(ct.x)>=it&&(ct.x-=J[0].x-lt.x),Math.abs(ct.y)>=it&&(ct.y-=J[0].y-lt.y)),st.x=at.x,st.y=at.y,0===ct.x&&0===ct.y)return;if("v"===ie&&c.closeOnVerticalDrag&&!jt()){pe.y+=ct.y,he.y+=ct.y;var s=At();return W=!0,ke("onVerticalDrag",s),Te(s),void Ce()}Ct(Ie(),at.x,at.y),K=!0,ne=i.currItem.bounds,Ft("x",ct)||(Ft("y",ct),Fe(he),Ce())}}},qt=function(e){if(U.isOldAndroid){if(V&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(V),V=setTimeout((function(){V=0}),600))}var t;if(ke("pointerUp"),It(e,!1)&&e.preventDefault(),R){var n=o.arraySearch(ft,e.pointerId,"id");if(n>-1)if(t=ft.splice(n,1)[0],navigator.msPointerEnabled){var r={4:"mouse",2:"touch",3:"pen"};t.type=r[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}else t.type=e.pointerType||"mouse"}var a,u=Mt(e),s=u.length;if("mouseup"===e.type&&(s=0),2===s)return J=null,!0;1===s&&Me(lt,u[0]),0!==s||ie||oe||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),ke("touchRelease",e,t));var l=-1;if(0===s&&(Y=!1,o.unbind(window,y,i),xt(),ee?l=0:-1!==vt&&(l=Ie()-vt)),vt=1===s?Ie():-1,a=-1!==l&&l<150?"zoom":"swipe",ee&&s<2&&(ee=!1,1===s&&(a="zoomPointerUp"),ke("zoomGestureEnded")),J=null,K||$||oe||W)if(tt(),z||(z=zt()),z.calculateSwipeSpeed("x"),W)if(At()<c.verticalDragRange)i.close();else{var f=he.y,p=ce;nt("verticalDrag",0,1,300,o.easing.cubic.out,(function(e){he.y=(i.currItem.initialPosition.y-f)*e+f,Te((1-p)*e+p),Ce()})),ke("onVerticalDrag",1)}else{if((X||oe)&&0===s){if(Wt(a,z))return;a="zoomPointerUp"}oe||("swipe"===a?!X&&g>i.currItem.fitRatio&&Gt(z):Yt())}},zt=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(r){dt.length>1?(e=Ie()-q+50,t=dt[dt.length-2][r]):(e=Ie()-H,t=lt[r]),n.lastFlickOffset[r]=st[r]-t,n.lastFlickDist[r]=Math.abs(n.lastFlickOffset[r]),n.lastFlickDist[r]>20?n.lastFlickSpeed[r]=n.lastFlickOffset[r]/e:n.lastFlickSpeed[r]=0,Math.abs(n.lastFlickSpeed[r])<.1&&(n.lastFlickSpeed[r]=0),n.slowDownRatio[r]=.95,n.slowDownRatioReverse[r]=1-n.slowDownRatio[r],n.speedDecelerationRatio[r]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(he[e]>ne.min[e]?n.backAnimDestination[e]=ne.min[e]:he[e]<ne.max[e]&&(n.backAnimDestination[e]=ne.max[e]),void 0!==n.backAnimDestination[e]&&(n.slowDownRatio[e]=.7,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatioAbs[e]<.05&&(n.lastFlickSpeed[e]=0,n.backAnimStarted[e]=!0,nt("bounceZoomPan"+e,he[e],n.backAnimDestination[e],t||300,o.easing.sine.out,(function(t){he[e]=t,Ce()})))))},calculateAnimOffset:function(e){n.backAnimStarted[e]||(n.speedDecelerationRatio[e]=n.speedDecelerationRatio[e]*(n.slowDownRatio[e]+n.slowDownRatioReverse[e]-n.slowDownRatioReverse[e]*n.timeDiff/10),n.speedDecelerationRatioAbs[e]=Math.abs(n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]),n.distanceOffset[e]=n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]*n.timeDiff,he[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(Qe.zoomPan&&(Qe.zoomPan.raf=A(n.panAnimLoop),n.now=Ie(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Ce(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return he.x=Math.round(he.x),he.y=Math.round(he.y),Ce(),void Je("zoomPan")}};return n},Gt=function(e){if(e.calculateSwipeSpeed("y"),ne=i.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;et("zoomPan"),e.lastNow=Ie(),e.panAnimLoop()},Wt=function(e,t){var n,r,a;if(oe||(yt=p),"swipe"===e){var u=st.x-lt.x,s=t.lastFlickDist.x<10;u>ot&&(s||t.lastFlickOffset.x>20)?r=-1:u<-ot&&(s||t.lastFlickOffset.x<-20)&&(r=1)}r&&((p+=r)<0?(p=c.loop?Jt()-1:0,a=!0):p>=Jt()&&(p=c.loop?0:Jt()-1,a=!0),a&&!c.loop||(be+=r,me-=r,n=!0));var l,f=ge.x*me,d=Math.abs(f-gt.x);return n||f>gt.x==t.lastFlickSpeed.x>0?(l=Math.abs(t.lastFlickSpeed.x)>0?d/Math.abs(t.lastFlickSpeed.x):333,l=Math.min(l,400),l=Math.max(l,250)):l=333,yt===p&&(n=!1),oe=!0,ke("mainScrollAnimStart"),nt("mainScroll",gt.x,f,l,o.easing.cubic.out,Le,(function(){tt(),oe=!1,yt=-1,(n||yt!==p)&&i.updateCurrItem(),ke("mainScrollAnimComplete")})),n&&i.updateCurrItem(!0),n},Vt=function(e){return 1/te*e*b},Yt=function(){var e=g,t=Ge(),n=We();g<t?e=t:g>n&&(e=n);var r,a=1,u=ce;return ue&&!G&&!se&&g<t?(i.close(),!0):(ue&&(r=function(e){Te((a-u)*e+u)}),i.zoomTo(e,0,200,o.easing.cubic.out,r),!0)};xe("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,r,o){j=e+t,P=e+n,k=e+r,I=o?e+o:""};(R=U.pointerEvent)&&U.touch&&(U.touch=!1),R?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):U.touch?(e("touch","start","move","end","cancel"),C=!0):e("mouse","down","move","up"),y=P+" "+k+" "+I,m=j,R&&!C&&(C=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),i.likelyTouchDevice=C,v[j]=Ut,v[P]=Bt,v[k]=qt,I&&(v[I]=v[k]),U.touch&&(m+=" mousedown",y+=" mousemove mouseup",v.mousedown=v[j],v.mousemove=v[P],v.mouseup=v[k]),C||(c.allowPanToNext=!1)}}});var Zt,$t,Kt,Qt,Xt,Jt,en=function(t,n,r,a){var u;Zt&&clearTimeout(Zt),Qt=!0,Kt=!0,t.initialLayout?(u=t.initialLayout,t.initialLayout=null):u=c.getThumbBoundsFn&&c.getThumbBoundsFn(p);var s,l,d=r?c.hideAnimationDuration:c.showAnimationDuration,h=function(){Je("initialZoom"),r?(i.template.removeAttribute("style"),i.bg.removeAttribute("style")):(Te(1),n&&(n.style.display="block"),o.addClass(e,"pswp--animated-in"),ke("initialZoom"+(r?"OutEnd":"InEnd"))),a&&a(),Qt=!1};if(!d||!u||void 0===u.x)return ke("initialZoom"+(r?"Out":"In")),g=t.initialZoomLevel,Me(he,t.initialPosition),Ce(),e.style.opacity=r?0:1,Te(1),void(d?setTimeout((function(){h()}),d):h());s=f,l=!i.currItem.src||i.currItem.loadError||c.showHideOpacity,t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),r||(g=u.w/t.w,he.x=u.x,he.y=u.y-D,i[l?"template":"bg"].style.opacity=.001,Ce()),et("initialZoom"),r&&!s&&o.removeClass(e,"pswp--animated-in"),l&&(r?o[(s?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout((function(){o.addClass(e,"pswp--animate_opacity")}),30)),Zt=setTimeout((function(){if(ke("initialZoom"+(r?"Out":"In")),r){var n=u.w/t.w,i={x:he.x,y:he.y},a=g,c=ce,f=function(t){1===t?(g=n,he.x=u.x,he.y=u.y-F):(g=(n-a)*t+a,he.x=(u.x-i.x)*t+i.x,he.y=(u.y-F-i.y)*t+i.y),Ce(),l?e.style.opacity=1-t:Te(c-t*c)};s?nt("initialZoom",0,1,d,o.easing.cubic.out,f,h):(f(1),Zt=setTimeout(h,d+20))}else g=t.initialZoomLevel,Me(he,t.initialPosition),Ce(),Te(1),l?e.style.opacity=1:Te(1),Zt=setTimeout(h,d+20)}),r?25:90)},tn={},nn=[],rn={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return $t.length}},on=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},an=function(e,t,n){var r=e.bounds;r.center.x=Math.round((tn.x-t)/2),r.center.y=Math.round((tn.y-n)/2)+e.vGap.top,r.max.x=t>tn.x?Math.round(tn.x-t):r.center.x,r.max.y=n>tn.y?Math.round(tn.y-n)+e.vGap.top:r.center.y,r.min.x=t>tn.x?0:r.center.x,r.min.y=n>tn.y?e.vGap.top:r.center.y},un=function(e,t,n){if(e.src&&!e.loadError){var r=!n;if(r&&(e.vGap||(e.vGap={top:0,bottom:0}),ke("parseVerticalMargin",e)),tn.x=t.x,tn.y=t.y-e.vGap.top-e.vGap.bottom,r){var o=tn.x/e.w,i=tn.y/e.h;e.fitRatio=o<i?o:i;var a=c.scaleMode;"orig"===a?n=1:"fit"===a&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds=on())}if(!n)return;return an(e,e.w*n,e.h*n),r&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=on(),e.initialPosition=e.bounds.center,e.bounds},cn=function(e,t,n,r,o,a){t.loadError||r&&(t.imageAppended=!0,fn(t,r,t===i.currItem&&_e),n.appendChild(r),a&&setTimeout((function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)}),500))},sn=function(e){e.loading=!0,e.loaded=!1;var t=e.img=o.createEl("pswp__img","img"),n=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=n,t.onerror=function(){e.loadError=!0,n()},t.src=e.src,t},ln=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=c.errorMsg.replace("%url%",e.src),!0},fn=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var r=n?e.w:Math.round(e.w*e.fitRatio),o=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=r+"px",e.placeholder.style.height=o+"px"),t.style.width=r+"px",t.style.height=o+"px"}},pn=function(){if(nn.length){for(var e,t=0;t<nn.length;t++)(e=nn[t]).holder.index===e.index&&cn(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);nn=[]}};xe("Controller",{publicMethods:{lazyLoadItem:function(e){e=Se(e);var t=Xt(e);t&&(!t.loaded&&!t.loading||_)&&(ke("gettingData",e,t),t.src&&sn(t))},initController:function(){o.extend(c,rn,!0),i.items=$t=n,Xt=i.getItemAt,Jt=c.getNumItemsFn,c.loop,Jt()<3&&(c.loop=!1),Pe("beforeChange",(function(e){var t,n=c.preload,r=null===e||e>=0,o=Math.min(n[0],Jt()),a=Math.min(n[1],Jt());for(t=1;t<=(r?a:o);t++)i.lazyLoadItem(p+t);for(t=1;t<=(r?o:a);t++)i.lazyLoadItem(p-t)})),Pe("initialLayout",(function(){i.currItem.initialLayout=c.getThumbBoundsFn&&c.getThumbBoundsFn(p)})),Pe("mainScrollAnimComplete",pn),Pe("initialZoomInEnd",pn),Pe("destroy",(function(){for(var e,t=0;t<$t.length;t++)(e=$t[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);nn=null}))},getItemAt:function(e){return e>=0&&void 0!==$t[e]&&$t[e]},allowProgressiveImg:function(){return c.forceProgressiveLoading||!C||c.mouseUsed||screen.width>1200},setContent:function(e,t){c.loop&&(t=Se(t));var n=i.getItemAt(e.index);n&&(n.container=null);var r,a=i.getItemAt(t);if(a){ke("gettingData",t,a),e.index=t,e.item=a;var u=a.container=o.createEl("pswp__zoom-wrap");if(!a.src&&a.html&&(a.html.tagName?u.appendChild(a.html):u.innerHTML=a.html),ln(a),un(a,ye),!a.src||a.loadError||a.loaded)a.src&&!a.loadError&&((r=o.createEl("pswp__img","img")).style.opacity=1,r.src=a.src,fn(a,r),cn(t,a,u,r,!0));else{if(a.loadComplete=function(n){if(s){if(e&&e.index===t){if(ln(n,!0))return n.loadComplete=n.img=null,un(n,ye),Ae(n),void(e.index===p&&i.updateCurrZoomItem());n.imageAppended?!Qt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):U.transform&&(oe||Qt)?nn.push({item:n,baseDiv:u,img:n.img,index:t,holder:e,clearPlaceholder:!0}):cn(t,n,u,n.img,oe||Qt,!0)}n.loadComplete=null,n.img=null,ke("imageLoadComplete",t,n)}},o.features.transform){var l="pswp__img pswp__img--placeholder";l+=a.msrc?"":" pswp__img--placeholder--blank";var f=o.createEl(l,a.msrc?"img":"");a.msrc&&(f.src=a.msrc),fn(a,f),u.appendChild(f),a.placeholder=f}a.loading||sn(a),i.allowProgressiveImg()&&(!Kt&&U.transform?nn.push({item:a,baseDiv:u,img:a.img,index:t,holder:e}):cn(t,a,u,a.img,!0,!0))}Kt||t!==p?Ae(a):(re=u.style,en(a,r||a.img)),e.el.innerHTML="",e.el.appendChild(u)}else e.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var dn,hn,yn={},mn=function(e,t,n){var r=document.createEvent("CustomEvent"),o={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};r.initCustomEvent("pswpTap",!0,!0,o),e.target.dispatchEvent(r)};xe("Tap",{publicMethods:{initTap:function(){Pe("firstTouchStart",i.onTapStart),Pe("touchRelease",i.onTapRelease),Pe("destroy",(function(){yn={},dn=null}))},onTapStart:function(e){e.length>1&&(clearTimeout(dn),dn=null)},onTapRelease:function(e,t){if(t&&!K&&!Z&&!Xe){var n=t;if(dn&&(clearTimeout(dn),dn=null,Et(n,yn)))return void ke("doubleTap",n);if("mouse"===t.type)return void mn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||o.hasClass(e.target,"pswp__single-tap"))return void mn(e,t);Me(yn,n),dn=setTimeout((function(){mn(e,t),dn=null}),300)}}}}),xe("DesktopZoom",{publicMethods:{initDesktopZoom:function(){M||(C?Pe("mouseUsed",(function(){i.setupDesktopZoom()})):i.setupDesktopZoom(!0))},setupDesktopZoom:function(t){hn={};var n="wheel mousewheel DOMMouseScroll";Pe("bindEvents",(function(){o.bind(e,n,i.handleMouseWheel)})),Pe("unbindEvents",(function(){hn&&o.unbind(e,n,i.handleMouseWheel)})),i.mouseZoomedIn=!1;var r,a=function(){i.mouseZoomedIn&&(o.removeClass(e,"pswp--zoomed-in"),i.mouseZoomedIn=!1),g<1?o.addClass(e,"pswp--zoom-allowed"):o.removeClass(e,"pswp--zoom-allowed"),u()},u=function(){r&&(o.removeClass(e,"pswp--dragging"),r=!1)};Pe("resize",a),Pe("afterChange",a),Pe("pointerDown",(function(){i.mouseZoomedIn&&(r=!0,o.addClass(e,"pswp--dragging"))})),Pe("pointerUp",u),t||a()},handleMouseWheel:function(e){if(g<=i.currItem.fitRatio)return c.modal&&(!c.closeOnScroll||Xe||Y?e.preventDefault():T&&Math.abs(e.deltaY)>2&&(f=!0,i.close())),!0;if(e.stopPropagation(),hn.x=0,"deltaX"in e)1===e.deltaMode?(hn.x=18*e.deltaX,hn.y=18*e.deltaY):(hn.x=e.deltaX,hn.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(hn.x=-.16*e.wheelDeltaX),e.wheelDeltaY?hn.y=-.16*e.wheelDeltaY:hn.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;hn.y=e.detail}ze(g,!0);var t=he.x-hn.x,n=he.y-hn.y;(c.modal||t<=ne.min.x&&t>=ne.max.x&&n<=ne.min.y&&n>=ne.max.y)&&e.preventDefault(),i.panTo(t,n)},toggleDesktopZoom:function(t){t=t||{x:ye.x/2+ve.x,y:ye.y/2+ve.y};var n=c.getDoubleTapZoom(!0,i.currItem),r=g===n;i.mouseZoomedIn=!r,i.zoomTo(r?i.currItem.initialZoomLevel:n,t,333),o[(r?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var vn,gn,bn,wn,On,En,_n,xn,Sn,jn,Pn,kn,In={history:!0,galleryUID:1},Tn=function(){return Pn.hash.substring(1)},Rn=function(){vn&&clearTimeout(vn),bn&&clearTimeout(bn)},Cn=function(){var e=Tn(),t={};if(e.length<5)return t;var n,r=e.split("&");for(n=0;n<r.length;n++)if(r[n]){var o=r[n].split("=");o.length<2||(t[o[0]]=o[1])}if(c.galleryPIDs){var i=t.pid;for(t.pid=0,n=0;n<$t.length;n++)if($t[n].pid===i){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},An=function(){if(bn&&clearTimeout(bn),Xe||Y)bn=setTimeout(An,500);else{wn?clearTimeout(gn):wn=!0;var e=p+1,t=Xt(p);t.hasOwnProperty("pid")&&(e=t.pid);var n=_n+"&gid="+c.galleryUID+"&pid="+e;xn||-1===Pn.hash.indexOf(n)&&(jn=!0);var r=Pn.href.split("#")[0]+"#"+n;kn?"#"+n!==window.location.hash&&history[xn?"replaceState":"pushState"]("",document.title,r):xn?Pn.replace(r):Pn.hash=n,xn=!0,gn=setTimeout((function(){wn=!1}),60)}};xe("History",{publicMethods:{initHistory:function(){if(o.extend(c,In,!0),c.history){Pn=window.location,jn=!1,Sn=!1,xn=!1,_n=Tn(),kn="pushState"in history,_n.indexOf("gid=")>-1&&(_n=(_n=_n.split("&gid=")[0]).split("?gid=")[0]),Pe("afterChange",i.updateURL),Pe("unbindEvents",(function(){o.unbind(window,"hashchange",i.onHashChange)}));var e=function(){En=!0,Sn||(jn?history.back():_n?Pn.hash=_n:kn?history.pushState("",document.title,Pn.pathname+Pn.search):Pn.hash=""),Rn()};Pe("unbindEvents",(function(){f&&e()})),Pe("destroy",(function(){En||e()})),Pe("firstUpdate",(function(){p=Cn().pid}));var t=_n.indexOf("pid=");t>-1&&"&"===(_n=_n.substring(0,t)).slice(-1)&&(_n=_n.slice(0,-1)),setTimeout((function(){s&&o.bind(window,"hashchange",i.onHashChange)}),40)}},onHashChange:function(){if(Tn()===_n)return Sn=!0,void i.close();wn||(On=!0,i.goTo(Cn().pid),On=!1)},updateURL:function(){Rn(),On||(xn?vn=setTimeout(An,800):An())}}}),o.extend(i,rt)}})?r.call(t,n,t,e):r)||(e.exports=o)},14777:e=>{!function(){const t=({_console:e,data:t,prefix:n=null})=>{const r={10:e.trace,20:e.debug,30:e.info,40:e.warn,50:e.error,60:e.error};try{const e=JSON.parse(t),{hostname:o,level:i,msg:a,name:u,pid:c,time:s,v:l}=e,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["hostname","level","msg","name","pid","time","v"]),p=`[${n?`${n}|${u}`:u}] ${a||"<no message>"}`;Object.keys(f).length?r[i](p,f):r[i](p)}catch(n){e.debug("[pino-devtools] could not write log:",t)}},n=({_WebSocket:e=WebSocket,_console:n=console,_window:r=window}={})=>{const{hostname:o,port:i}=r.location;new e(`ws://${o}:${parseInt(i,10)+1}`).addEventListener("message",(({data:e})=>{t({data:e,_console:n})}))},r=({host:e="127.0.0.1",port:n=3010,_console:r=console}={})=>{if(!e)throw new Error("You must pass `host` to `fetchBufferedLogs()`.");if(!n)throw new Error("You must pass `port` to `fetchBufferedLogs()`.");return fetch(`http://${e}:${n}/server-logs.json`).then((e=>e.json())).then((({logs:e,prefix:n})=>{e.forEach((e=>{t({_console:r,data:e,prefix:n})}))})).catch((e=>{r.debug("[pino-devtools] error while fetching the logs:",{error:e.toString()})}))};e.exports?e.exports={fetchBufferedLogs:r,readWebSocketLogs:n}:n()}()},93667:(e,t,n)=>{"use strict";var r=n(21587);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},53486:(e,t,n)=>{e.exports=n(93667)()},21587:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},744:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},27107:(e,t,n)=>{"use strict";var r=n(4974),o=n(15377),i=n(744);e.exports={formats:i,parse:o,stringify:r}},15377:(e,t,n)=>{"use strict";var r=n(69857),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=u?i.slice(0,u.index):i,l=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var f=0;n.depth>0&&null!==(u=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+i.slice(u.index)+"]"),function(e,t,n,r){for(var o=r?t:c(t,n),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=parseInt(s,10);n.parseArrays||""!==s?!isNaN(l)&&u!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:"__proto__"!==s&&(a[s]=o):a={0:o}}o=a}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,s={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=l.split(t.delimiter,f),d=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?h="utf-8":"utf8=%26%2310003%3B"===p[n]&&(h="iso-8859-1"),d=n,n=p.length);for(n=0;n<p.length;++n)if(n!==d){var y,m,v=p[n],g=v.indexOf("]="),b=-1===g?v.indexOf("="):g+1;-1===b?(y=t.decoder(v,a.decoder,h,"key"),m=t.strictNullHandling?null:""):(y=t.decoder(v.slice(0,b),a.decoder,h,"key"),m=r.maybeMap(c(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=u(m)),v.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(s,y)?s[y]=r.combine(s[y],m):s[y]=m}return s}(e,n):e,f=n.plainObjects?Object.create(null):{},p=Object.keys(l),d=0;d<p.length;++d){var h=p[d],y=s(h,l[h],n,"string"==typeof e);f=r.merge(f,y,n)}return!0===n.allowSparse?f:r.compact(f)}},4974:(e,t,n)=>{"use strict";var r=n(31059),o=n(69857),i=n(744),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,s=String.prototype.split,l=Array.prototype.push,f=function(e,t){l.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,d=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},y={},m=function e(t,n,i,a,u,l,p,d,m,v,g,b,w,O,E){for(var _,x=t,S=E,j=0,P=!1;void 0!==(S=S.get(y))&&!P;){var k=S.get(t);if(j+=1,void 0!==k){if(k===j)throw new RangeError("Cyclic object value");P=!0}void 0===S.get(y)&&(j=0)}if("function"==typeof p?x=p(n,x):x instanceof Date?x=v(x):"comma"===i&&c(x)&&(x=o.maybeMap(x,(function(e){return e instanceof Date?v(e):e}))),null===x){if(a)return l&&!w?l(n,h.encoder,O,"key",g):n;x=""}if("string"==typeof(_=x)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||o.isBuffer(x)){if(l){var I=w?n:l(n,h.encoder,O,"key",g);if("comma"===i&&w){for(var T=s.call(String(x),","),R="",C=0;C<T.length;++C)R+=(0===C?"":",")+b(l(T[C],h.encoder,O,"value",g));return[b(I)+"="+R]}return[b(I)+"="+b(l(x,h.encoder,O,"value",g))]}return[b(n)+"="+b(String(x))]}var A,N=[];if(void 0===x)return N;if("comma"===i&&c(x))A=[{value:x.length>0?x.join(",")||null:void 0}];else if(c(p))A=p;else{var L=Object.keys(x);A=d?L.sort(d):L}for(var D=0;D<A.length;++D){var M=A[D],F="object"==typeof M&&void 0!==M.value?M.value:x[M];if(!u||null!==F){var U=c(x)?"function"==typeof i?i(n,M):n:n+(m?"."+M:"["+M+"]");E.set(t,j);var B=r();B.set(y,E),f(N,e(F,U,i,a,u,l,p,d,m,v,g,b,w,O,B))}}return N};e.exports=function(e,t){var n,o=e,s=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=h.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof s.filter?o=(0,s.filter)("",o):c(s.filter)&&(n=s.filter);var l,p=[];if("object"!=typeof o||null===o)return"";l=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=u[l];n||(n=Object.keys(o)),s.sort&&n.sort(s.sort);for(var y=r(),v=0;v<n.length;++v){var g=n[v];s.skipNulls&&null===o[g]||f(p,m(o[g],g,d,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,y))}var b=p.join(s.delimiter),w=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},69857:(e,t,n)=>{"use strict";var r=n(744),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],u=Object.keys(a),c=0;c<u.length;++c){var s=u[c],l=a[s];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:s}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",s=0;s<u.length;++s){var l=u.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?c+=u.charAt(s):l<128?c+=a[l]:l<2048?c+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&u.charCodeAt(s)),c+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=u(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},1726:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,o){n=n||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(n);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var s=0;s<c;++s){var l,f,p,d,h=e[s].replace(a,"%20"),y=h.indexOf(r);y>=0?(l=h.substr(0,y),f=h.substr(y+1)):(l=h,f=""),p=decodeURIComponent(l),d=decodeURIComponent(f),t(i,p)?Array.isArray(i[p])?i[p].push(d):i[p]=[i[p],d]:i[p]=d}return i}},73294:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,o){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var i=encodeURIComponent(t(o))+r;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(t(e))})).join(n):i+encodeURIComponent(t(e[o]))})).join(n):o?encodeURIComponent(t(o))+r+encodeURIComponent(t(e)):""}},49122:(e,t,n)=>{"use strict";t.decode=t.parse=n(1726),t.encode=t.stringify=n(73294)},5837:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,n,r){var o=r&&r.stringify||t;if("object"==typeof e&&null!==e){var i=n.length+1;if(1===i)return e;var a=new Array(i);a[0]=o(e);for(var u=1;u<i;u++)a[u]=o(n[u]);return a.join(" ")}if("string"!=typeof e)return e;var c=n.length;if(0===c)return e;for(var s="",l=0,f=-1,p=e&&e.length||0,d=0;d<p;){if(37===e.charCodeAt(d)&&d+1<p){switch(f=f>-1?f:0,e.charCodeAt(d+1)){case 100:case 102:if(l>=c)break;if(f<d&&(s+=e.slice(f,d)),null==n[l])break;s+=Number(n[l]),f=d+=2;break;case 105:if(l>=c)break;if(f<d&&(s+=e.slice(f,d)),null==n[l])break;s+=Math.floor(Number(n[l])),f=d+=2;break;case 79:case 111:case 106:if(l>=c)break;if(f<d&&(s+=e.slice(f,d)),void 0===n[l])break;var h=typeof n[l];if("string"===h){s+="'"+n[l]+"'",f=d+2,d++;break}if("function"===h){s+=n[l].name||"<anonymous>",f=d+2,d++;break}s+=o(n[l]),f=d+2,d++;break;case 115:if(l>=c)break;f<d&&(s+=e.slice(f,d)),s+=String(n[l]),f=d+2,d++;break;case 37:f<d&&(s+=e.slice(f,d)),s+="%",f=d+2,d++,l--}++l}++d}if(-1===f)return e;f<p&&(s+=e.slice(f));return s}},57990:(e,t,n)=>{"use strict";var r=65536,o=4294967295;var i=n(62673).Buffer,a=n.g.crypto||n.g.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>o)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>r)for(var u=0;u<e;u+=r)a.getRandomValues(n.slice(u,u+r));else a.getRandomValues(n);if("function"==typeof t)return process.nextTick((function(){t(null,n)}));return n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},68365:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===i)for(var u in n)r.call(n,u)&&n[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},56355:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===i)for(var u in n)r.call(n,u)&&n[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},71412:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(84258)),o=c(n(35577)),i=c(n(9985)),a=c(n(82107)),u=n(45778);function c(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(){return!0},O="suggestions-revealed",E="input-focused",_="input-changed",x="escape-pressed",S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(l,e);var t,n,o,c,s=(t=l,function(){var e,n=v(t);if(m()){var r=v(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return h(this,e)});function l(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),b(y(t=s.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),b(y(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),b(y(t),"onSuggestionMouseEnter",(function(e,n){var r=n.sectionIndex,o=n.itemIndex;t.updateHighlightedSuggestion(r,o),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),b(y(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),b(y(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),b(y(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),b(y(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),b(y(t),"onSuggestionSelected",(function(e,n){var r=t.props,o=r.alwaysRenderSuggestions,i=r.onSuggestionSelected,a=r.onSuggestionsFetchRequested;i&&i(e,n);var u=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);o||u?a({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),b(y(t),"onSuggestionClick",(function(e){var n=t.props,r=n.alwaysRenderSuggestions,o=n.focusInputOnSuggestionClick,i=t.getSuggestionIndices(t.findSuggestionElement(e.target)),a=i.sectionIndex,u=i.suggestionIndex,c=t.getSuggestion(a,u),s=t.props.getSuggestionValue(c);t.maybeCallOnChange(e,s,"click"),t.onSuggestionSelected(e,{suggestion:c,suggestionValue:s,suggestionIndex:u,sectionIndex:a,method:"click"});var l=t.props.shouldKeepSuggestionsOnSelect(c);r||l||t.closeSuggestions(),!0===o?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))})),b(y(t),"onBlur",(function(){var e=t.props,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value,i=n.onBlur,a=t.getHighlightedSuggestion(),u=r(o,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!u}),i&&i(t.blurEvent,{highlightedSuggestion:a})})),b(y(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),b(y(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),b(y(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),b(y(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),b(y(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,r=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:r,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return n=l,(o=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,i.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,o=n.onSuggestionHighlighted,a=n.highlightFirstSuggestion;if(!(0,i.default)(r,e.suggestions)&&r.length>0&&a)this.highlightFirstSuggestion();else if(o){var u=this.getHighlightedSuggestion();u!=t.highlightedSuggestion&&o({suggestion:u})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(o){var i=o.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,o=n.multiSection,i=n.getSectionSuggestions;return o?i(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,o=r.value,i=r.onChange;t!==o&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,r=e.inputProps,o=e.shouldRenderSuggestions,i=r.value;return n.length>0&&o(i,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,o=t.renderInputComponent,i=t.onSuggestionsFetchRequested,c=t.renderSuggestion,s=t.inputProps,l=t.multiSection,f=t.renderSectionTitle,d=t.id,h=t.getSectionSuggestions,y=t.theme,m=t.getSuggestionValue,v=t.alwaysRenderSuggestions,g=t.highlightFirstSuggestion,b=t.containerProps,S=this.state,j=S.isFocused,P=S.isCollapsed,k=S.highlightedSectionIndex,I=S.highlightedSuggestionIndex,T=S.valueBeforeUpDown,R=v?w:this.props.shouldRenderSuggestions,C=s.value,A=s.onFocus,N=s.onKeyDown,L=this.willRenderSuggestions(this.props,"render"),D=v||j&&!P&&L,M=D?n:[],F=p({},s,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=R(C,E);e.setState({isFocused:!0,isCollapsed:!n}),A&&A(t),n&&i({value:C,reason:E})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=R(n,_);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(p({},g?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?i({value:n,reason:_}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var o=t.keyCode;switch(o){case 40:case 38:if(P)R(C,O)&&(i({value:C,reason:O}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var a,u=r.newHighlightedSectionIndex,c=r.newHighlightedItemIndex;a=null===c?null===T?C:T:e.getSuggestionValueByIndex(u,c),e.updateHighlightedSuggestion(u,c,C),e.maybeCallOnChange(t,a,40===o?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var s=e.getHighlightedSuggestion();if(D&&!v&&e.closeSuggestions(),null!=s){t.preventDefault();var l=m(s);e.maybeCallOnChange(t,l,"enter"),e.onSuggestionSelected(t,{suggestion:s,suggestionValue:l,suggestionIndex:I,sectionIndex:k,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:D&&t.preventDefault();var f=D&&!v;null===T?f||(e.maybeCallOnChange(t,"","escape"),R("",x)?i({value:"",reason:x}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,T,"escape"),f?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}N&&N(t)}}),U={query:this.getQuery()};return r.default.createElement(a.default,{multiSection:l,items:M,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:c,renderItemData:U,renderSectionTitle:f,getSectionItems:h,highlightedSectionIndex:k,highlightedItemIndex:I,containerProps:b,inputProps:F,itemProps:this.itemProps,theme:(0,u.mapToAutowhateverTheme)(y),id:d,ref:this.storeAutowhateverRef})}}])&&d(n.prototype,o),c&&d(n,c),l}(r.Component);t.default=S,b(S,"propTypes",{suggestions:o.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:o.default.func,onSuggestionSelected:o.default.func,onSuggestionHighlighted:o.default.func,renderInputComponent:o.default.func,renderSuggestionsContainer:o.default.func,getSuggestionValue:o.default.func.isRequired,renderSuggestion:o.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:o.default.func,alwaysRenderSuggestions:o.default.bool,multiSection:o.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:o.default.bool,highlightFirstSuggestion:o.default.bool,theme:o.default.object,id:o.default.string,containerProps:o.default.object}),b(S,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:u.defaultTheme,id:"1",containerProps:{}})},82107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==y(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(84258)),o=s(n(35577)),i=s(n(44238)),a=s(n(47311)),u=s(n(69911)),c=s(n(83860));function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||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.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _={},x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(f,e);var t,n,o,s,l=(t=f,function(){var e,n=w(t);if(b()){var r=w(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return v(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),E(g(t=l.call(this,e)),"storeInputReference",(function(e){null!==e&&(t.input=e);var n=t.props.inputProps.ref;n&&("function"==typeof n?n(e):"object"===y(n)&&Object.prototype.hasOwnProperty.call(n,"current")&&(n.current=e))})),E(g(t),"storeItemsContainerReference",(function(e){null!==e&&(t.itemsContainer=e)})),E(g(t),"onHighlightedItemChange",(function(e){t.highlightedItem=e})),E(g(t),"getItemId",(function(e,n){if(null===n)return null;var r=t.props.id,o=null===e?"":"section-".concat(e);return"react-autowhatever-".concat(r,"-").concat(o,"-item-").concat(n)})),E(g(t),"onFocus",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)})),E(g(t),"onBlur",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)})),E(g(t),"onKeyDown",(function(e){var n=t.props,r=n.inputProps,o=n.highlightedSectionIndex,i=n.highlightedItemIndex,a=e.keyCode;switch(a){case 40:case 38:var u=40===a?"next":"prev",c=d(t.sectionIterator[u]([o,i]),2),s=c[0],l=c[1];r.onKeyDown(e,{newHighlightedSectionIndex:s,newHighlightedItemIndex:l});break;default:r.onKeyDown(e,{highlightedSectionIndex:o,highlightedItemIndex:i})}})),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return n=f,(o=[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,i.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,a.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,o=n.id,i=n.items,a=n.renderItem,s=n.renderItemData,l=n.renderSectionTitle,f=n.highlightedSectionIndex,p=n.highlightedItemIndex,d=n.itemProps;return i.map((function(n,i){var h="react-autowhatever-".concat(o,"-"),y="".concat(h,"section-").concat(i,"-"),m=0===i;return r.default.createElement("div",t("".concat(y,"container"),"sectionContainer",m&&"sectionContainerFirst"),r.default.createElement(u.default,{section:n,renderSectionTitle:l,theme:t,sectionKeyPrefix:y}),r.default.createElement(c.default,{items:e.sectionsItems[i],itemProps:d,renderItem:a,renderItemData:s,sectionIndex:i,highlightedItemIndex:f===i?p:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:h,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,o=n.id,i=n.renderItem,a=n.renderItemData,u=n.highlightedSectionIndex,s=n.highlightedItemIndex,l=n.itemProps;return r.default.createElement(c.default,{items:e,itemProps:l,renderItem:i,renderItemData:a,highlightedItemIndex:null===u?s:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-".concat(o,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,o=t.multiSection,i=t.renderInputComponent,a=t.renderItemsContainer,u=t.highlightedSectionIndex,c=t.highlightedItemIndex,s=this.state.isInputFocused,l=o?this.renderSections():this.renderItems(),f=null!==l,d=this.getItemId(u,c),h="react-autowhatever-".concat(n),y=p({role:"combobox","aria-haspopup":"listbox","aria-owns":h,"aria-expanded":f},e("react-autowhatever-".concat(n,"-container"),"container",f&&"containerOpen"),{},this.props.containerProps),m=i(p({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":h,"aria-activedescendant":d},e("react-autowhatever-".concat(n,"-input"),"input",f&&"inputOpen",s&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),v=a({containerProps:p({id:h,role:"listbox"},e("react-autowhatever-".concat(n,"-items-container"),"itemsContainer",f&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:l});return r.default.createElement("div",y,m,v)}}])&&m(n.prototype,o),s&&m(n,s),f}(r.Component);t.default=x,E(x,"propTypes",{id:o.default.string,multiSection:o.default.bool,renderInputComponent:o.default.func,renderItemsContainer:o.default.func,items:o.default.array.isRequired,renderItem:o.default.func,renderItemData:o.default.object,renderSectionTitle:o.default.func,getSectionItems:o.default.func,containerProps:o.default.object,inputProps:o.default.object,itemProps:o.default.oneOfType([o.default.object,o.default.func]),highlightedSectionIndex:o.default.number,highlightedItemIndex:o.default.number,theme:o.default.oneOfType([o.default.object,o.default.array])}),E(x,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:function(e){return r.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:_,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:_,inputProps:_,itemProps:_,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}})},91934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(84258)),o=a(n(35577)),i=a(n(64563));function a(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(c,e);var t,n,o,a,u=(t=c,function(){var e,n=v(t);if(m()){var r=v(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return h(this,e)});function c(){var e;p(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(y(e=u.call.apply(u,[this].concat(n))),"storeItemReference",(function(t){null!==t&&(e.item=t)})),b(y(e),"onMouseEnter",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:r,itemIndex:o})})),b(y(e),"onMouseLeave",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:r,itemIndex:o})})),b(y(e),"onMouseDown",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:r,itemIndex:o})})),b(y(e),"onClick",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onClick(t,{sectionIndex:r,itemIndex:o})})),e}return n=c,(o=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,o=e.renderItem,i=e.renderItemData,a=f(e,["isHighlighted","item","renderItem","renderItemData"]);return delete a.sectionIndex,delete a.itemIndex,"function"==typeof a.onMouseEnter&&(a.onMouseEnter=this.onMouseEnter),"function"==typeof a.onMouseLeave&&(a.onMouseLeave=this.onMouseLeave),"function"==typeof a.onMouseDown&&(a.onMouseDown=this.onMouseDown),"function"==typeof a.onClick&&(a.onClick=this.onClick),r.default.createElement("li",s({role:"option"},a,{ref:this.storeItemReference}),o(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isHighlighted:t},i)))}}])&&d(n.prototype,o),a&&d(n,a),c}(r.Component);t.default=w,b(w,"propTypes",{sectionIndex:o.default.number,isHighlighted:o.default.bool.isRequired,itemIndex:o.default.number.isRequired,item:o.default.any.isRequired,renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,onMouseEnter:o.default.func,onMouseLeave:o.default.func,onMouseDown:o.default.func,onClick:o.default.func})},83860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(84258)),o=u(n(35577)),i=u(n(91934)),a=u(n(64563));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,e);var t,n,o,u,c=(t=s,function(){var e,n=v(t);if(m()){var r=v(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return h(this,e)});function s(){var e;p(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(y(e=c.call.apply(c,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return n=s,(o=[{key:"shouldComponentUpdate",value:function(e){return(0,a.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,o=t.itemProps,a=t.renderItem,u=t.renderItemData,c=t.sectionIndex,s=t.highlightedItemIndex,p=t.getItemId,d=t.theme,h=t.keyPrefix,y=null===c?h:"".concat(h,"section-").concat(c,"-"),m="function"==typeof o;return r.default.createElement("ul",l({role:"listbox"},d("".concat(y,"items-list"),"itemsList")),n.map((function(t,n){var h=0===n,v=n===s,g="".concat(y,"item-").concat(n),w=m?o({sectionIndex:c,itemIndex:n}):o,O=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:p(c,n),"aria-selected":v},d(g,"item",h&&"itemFirst",v&&"itemHighlighted"),{},w);return v&&(O.ref=e.storeHighlightedItemReference),r.default.createElement(i.default,l({},O,{sectionIndex:c,isHighlighted:v,itemIndex:n,item:t,renderItem:a,renderItemData:u}))})))}}])&&d(n.prototype,o),u&&d(n,u),s}(r.Component);t.default=w,b(w,"propTypes",{items:o.default.array.isRequired,itemProps:o.default.oneOfType([o.default.object,o.default.func]),renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,sectionIndex:o.default.number,highlightedItemIndex:o.default.number,onHighlightedItemChange:o.default.func.isRequired,getItemId:o.default.func.isRequired,theme:o.default.func.isRequired,keyPrefix:o.default.string.isRequired}),b(w,"defaultProps",{sectionIndex:null})},69911:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(84258)),o=a(n(35577)),i=a(n(64563));function a(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y,m,v,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,o,a,u=(t=c,function(){var e,n=d(t);if(p()){var r=d(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return f(this,e)});function c(){return s(this,c),u.apply(this,arguments)}return n=c,(o=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,o=e.theme,i=e.sectionKeyPrefix,a=n(t);return a?r.default.createElement("div",o("".concat(i,"title"),"sectionTitle"),a):null}}])&&l(n.prototype,o),a&&l(n,a),c}(r.Component);t.default=g,y=g,m="propTypes",v={section:o.default.any.isRequired,renderSectionTitle:o.default.func.isRequired,theme:o.default.func.isRequired,sectionKeyPrefix:o.default.string.isRequired},m in y?Object.defineProperty(y,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[m]=v},64563:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!0;var a,u,c={};for(a=0,u=r.length;a<u;a++)c[r[a]]=!0;for(a=0,u=o.length;a<u;a++){var s=o[a],l=e[s],f=t[s];if(l!==f){if(!c[s]||null===l||null===f||"object"!==n(l)||"object"!==n(f))return!0;var p=Object.keys(l),d=Object.keys(f);if(p.length!==d.length)return!0;for(var h=0,y=p.length;h<y;h++){var m=p[h];if(l[m]!==f[m])return!0}}}return!1}},5241:(e,t,n)=>{"use strict";e.exports=n(71412).default},45778:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0;t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},88476:(e,t,n)=>{"use strict";var r=n(23970);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},35577:(e,t,n)=>{e.exports=n(88476)()},23970:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},89395:(e,t,n)=>{"use strict";var r=n(84258),o=n(28608),i=n(89019);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var u=new Set,c={};function s(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(c[e]=t,e=0;e<t.length;e++)u.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,h={},y={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(y,e)||!d.call(h,e)&&(p.test(e)?y[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var O=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,_=60106,x=60107,S=60108,j=60114,P=60109,k=60110,I=60112,T=60113,R=60120,C=60115,A=60116,N=60121,L=60128,D=60129,M=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var U=Symbol.for;E=U("react.element"),_=U("react.portal"),x=U("react.fragment"),S=U("react.strict_mode"),j=U("react.profiler"),P=U("react.provider"),k=U("react.context"),I=U("react.forward_ref"),T=U("react.suspense"),R=U("react.suspense_list"),C=U("react.memo"),A=U("react.lazy"),N=U("react.block"),U("react.scope"),L=U("react.opaque.id"),D=U("react.debug_trace_mode"),M=U("react.offscreen"),F=U("react.legacy_hidden")}var B,H="function"==typeof Symbol&&Symbol.iterator;function q(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=H&&e[H]||e["@@iterator"])?e:null}function z(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var G=!1;function W(e,t){if(!e||G)return"";G=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,u=i.length-1;1<=a&&0<=u&&o[a]!==i[u];)u--;for(;1<=a&&0<=u;a--,u--)if(o[a]!==i[u]){if(1!==a||1!==u)do{if(a--,0>--u||o[a]!==i[u])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=u);break}}}finally{G=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function V(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 22:return e=W(e.type._render,!1);case 1:return e=W(e.type,!0);default:return""}}function Y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case _:return"Portal";case j:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case C:return Y(e.type);case N:return Y(e._render);case A:t=e._payload,e=e._init;try{return Y(e(t))}catch(e){}}return null}function Z(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Z(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Z(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,Z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Z(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ce(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Z(n)}}function se(e,t){var n=Z(t.value),r=Z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ye,me,ve=(me=function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((ye=ye||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ye.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Oe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var _e=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function je(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,ke=null,Ie=null;function Te(e){if(e=eo(e)){if("function"!=typeof Pe)throw Error(a(280));var t=e.stateNode;t&&(t=no(t),Pe(e.stateNode,e.type,t))}}function Re(e){ke?Ie?Ie.push(e):Ie=[e]:ke=e}function Ce(){if(ke){var e=ke,t=Ie;if(Ie=ke=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ae(e,t){return e(t)}function Ne(e,t,n,r,o){return e(t,n,r,o)}function Le(){}var De=Ae,Me=!1,Fe=!1;function Ue(){null===ke&&null===Ie||(Le(),Ce())}function Be(e,t){var n=e.stateNode;if(null===n)return null;var r=no(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var He=!1;if(f)try{var qe={};Object.defineProperty(qe,"passive",{get:function(){He=!0}}),window.addEventListener("test",qe,qe),window.removeEventListener("test",qe,qe)}catch(me){He=!1}function ze(e,t,n,r,o,i,a,u,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Ge=!1,We=null,Ve=!1,Ye=null,Ze={onError:function(e){Ge=!0,We=e}};function $e(e,t,n,r,o,i,a,u,c){Ge=!1,We=null,ze.apply(Ze,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ke(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Xe(o),e;if(i===r)return Xe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var u=!1,c=o.child;c;){if(c===n){u=!0,n=o,r=i;break}if(c===r){u=!0,r=o,n=i;break}c=c.sibling}if(!u){for(c=i.child;c;){if(c===n){u=!0,n=i,r=o;break}if(c===r){u=!0,r=i,n=o;break}c=c.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],ut=null,ct=null,st=null,lt=new Map,ft=new Map,pt=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function yt(e,t){switch(e){case"focusin":case"focusout":ut=null;break;case"dragenter":case"dragleave":ct=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&(null!==(t=eo(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function vt(e){var t=Jr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=eo(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){gt(e)&&n.delete(t)}function wt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=eo(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==ut&&gt(ut)&&(ut=null),null!==ct&&gt(ct)&&(ct=null),null!==st&&gt(st)&&(st=null),lt.forEach(bt),ft.forEach(bt)}function Ot(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wt)))}function Et(e){function t(t){return Ot(t,e)}if(0<at.length){Ot(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ut&&Ot(ut,e),null!==ct&&Ot(ct,e),null!==st&&Ot(st,e),lt.forEach(t),ft.forEach(t),n=0;n<pt.length;n++)(r=pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pt.length&&null===(n=pt[0]).blockedOn;)vt(n),null===n.blockedOn&&pt.shift()}function _t(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xt={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},St={},jt={};function Pt(e){if(St[e])return St[e];if(!xt[e])return e;var t,n=xt[e];for(t in n)if(n.hasOwnProperty(t)&&t in jt)return St[e]=n[t];return e}f&&(jt=document.createElement("div").style,"AnimationEvent"in window||(delete xt.animationend.animation,delete xt.animationiteration.animation,delete xt.animationstart.animation),"TransitionEvent"in window||delete xt.transitionend.transition);var kt=Pt("animationend"),It=Pt("animationiteration"),Tt=Pt("animationstart"),Rt=Pt("transitionend"),Ct=new Map,At=new Map,Nt=["abort","abort",kt,"animationEnd",It,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rt,"transitionEnd","waiting","waiting"];function Lt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),At.set(r,t),Ct.set(r,o),s(o,[r])}}(0,i.unstable_now)();var Dt=8;function Mt(e){if(0!=(1&e))return Dt=15,1;if(0!=(2&e))return Dt=14,2;if(0!=(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!=(32&e)?(Dt=11,32):0!==(t=192&e)?(Dt=10,t):0!=(256&e)?(Dt=9,256):0!==(t=3584&e)?(Dt=8,t):0!=(4096&e)?(Dt=7,4096):0!==(t=4186112&e)?(Dt=6,t):0!==(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!=(134217728&e)?(Dt=3,134217728):0!==(t=805306368&e)?(Dt=2,t):0!=(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,u=e.pingedLanes;if(0!==i)r=i,o=Dt=15;else if(0!==(i=134217727&n)){var c=i&~a;0!==c?(r=Mt(c),o=Dt):0!==(u&=i)&&(r=Mt(u),o=Dt)}else 0!==(i=n&~a)?(r=Mt(i),o=Dt):0!==u&&(r=Mt(u),o=Dt);if(0===r)return 0;if(r=n&((0>(r=31-Gt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Mt(t),o<=Dt)return t;Dt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Gt(t)),r|=e[n],t&=~o;return r}function Ut(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ht(24&~t))?Bt(10,t):e;case 10:return 0===(e=Ht(192&~t))?Bt(8,t):e;case 8:return 0===(e=Ht(3584&~t))&&(0===(e=Ht(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ht(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ht(e){return e&-e}function qt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Gt(t)]=n}var Gt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Vt|0)|0},Wt=Math.log,Vt=Math.LN2;var Yt=i.unstable_UserBlockingPriority,Zt=i.unstable_runWithPriority,$t=!0;function Kt(e,t,n,r){Me||Le();var o=Xt,i=Me;Me=!0;try{Ne(o,e,t,n,r)}finally{(Me=i)||Ue()}}function Qt(e,t,n,r){Zt(Yt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var o;if($t)if((o=0==(4&t))&&0<at.length&&-1<dt.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var i=Jt(e,t,n,r);if(null===i)o&&yt(e,r);else{if(o){if(-1<dt.indexOf(e))return e=ht(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return ut=mt(ut,e,t,n,r,o),!0;case"dragenter":return ct=mt(ct,e,t,n,r,o),!0;case"mouseover":return st=mt(st,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return lt.set(i,mt(lt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ft.set(i,mt(ft.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;yt(e,r)}Cr(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=je(r);if(null!==(o=Jr(o))){var i=Ke(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Qe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Cr(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function un(){return!1}function cn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:un,this.isPropagationStopped=un,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var sn,ln,fn,pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=cn(pn),hn=o({},pn,{view:0,detail:0}),yn=cn(hn),mn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(sn=e.screenX-fn.screenX,ln=e.screenY-fn.screenY):ln=sn=0,fn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),vn=cn(mn),gn=cn(o({},mn,{dataTransfer:0})),bn=cn(o({},hn,{relatedTarget:0})),wn=cn(o({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),On=cn(o({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),En=cn(o({},pn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Pn(){return jn}var kn=cn(o({},hn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),In=cn(o({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=cn(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Rn=cn(o({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Cn=cn(o({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),An=[9,13,27,32],Nn=f&&"CompositionEvent"in window,Ln=null;f&&"documentMode"in document&&(Ln=document.documentMode);var Dn=f&&"TextEvent"in window&&!Ln,Mn=f&&(!Nn||Ln&&8<Ln&&11>=Ln),Fn=String.fromCharCode(32),Un=!1;function Bn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Wn(e,t,n,r){Re(r),0<(t=Nr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Yn=null;function Zn(e){jr(e,0)}function $n(e){if(Q(to(e)))return e}function Kn(e,t){if("change"===e)return t}var Qn=!1;if(f){var Xn;if(f){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Qn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Yn=Vn=null)}function nr(e){if("value"===e.propertyName&&$n(Yn)){var t=[];if(Wn(t,Yn,e,je(e)),e=Zn,Me)e(t);else{Me=!0;try{Ae(e,t)}finally{Me=!1,Ue()}}}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Yn)}function ir(e,t){if("click"===e)return $n(t)}function ar(e,t){if("input"===e||"change"===e)return $n(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},cr=Object.prototype.hasOwnProperty;function sr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!cr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=f&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==X(r)||("selectionStart"in(r=mr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&sr(gr,r)||(gr=r,0<(r=Nr(vr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}Lt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Lt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Lt(Nt,2);for(var Or="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<Or.length;Er++)At.set(Or[Er],0);l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),xr=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,u,c,s){if($e.apply(this,arguments),Ge){if(!Ge)throw Error(a(198));var l=We;Ge=!1,We=null,Ve||(Ve=!0,Ye=l)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],c=u.instance,s=u.currentTarget;if(u=u.listener,c!==i&&o.isPropagationStopped())break e;Sr(o,u,s),i=c}else for(a=0;a<r.length;a++){if(c=(u=r[a]).instance,s=u.currentTarget,u=u.listener,c!==i&&o.isPropagationStopped())break e;Sr(o,u,s),i=c}}}if(Ve)throw e=Ye,Ve=!1,Ye=null,e}function Pr(e,t){var n=ro(t),r=e+"__bubble";n.has(r)||(Rr(t,e,2,!1),n.add(r))}var kr="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){e[kr]||(e[kr]=!0,u.forEach((function(t){xr.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&xr.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ro(i),u=e+"__"+(t?"capture":"bubble");a.has(u)||(t&&(o|=4),Rr(i,e,o,t),a.add(u))}function Rr(e,t,n,r){var o=At.get(t);switch(void 0===o?2:o){case 0:o=Kt;break;case 1:o=Qt;break;default:o=Xt}n=o.bind(null,t,n,e),o=void 0,!He||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Cr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===o||8===c.nodeType&&c.parentNode===o))return;a=a.return}for(;null!==u;){if(null===(a=Jr(u)))return;if(5===(c=a.tag)||6===c){r=i=a;continue e}u=u.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{De(e,t,n)}finally{Fe=!1,Ue()}}((function(){var r=i,o=je(n),a=[];e:{var u=Ct.get(e);if(void 0!==u){var c=dn,s=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":c=kn;break;case"focusin":s="focus",c=bn;break;case"focusout":s="blur",c=bn;break;case"beforeblur":case"afterblur":c=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Tn;break;case kt:case It:case Tt:c=wn;break;case Rt:c=Rn;break;case"scroll":c=yn;break;case"wheel":c=Cn;break;case"copy":case"cut":case"paste":c=On;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=In}var l=0!=(4&t),f=!l&&"scroll"===e,p=l?null!==u?u+"Capture":null:u;l=[];for(var d,h=r;null!==h;){var y=(d=h).stateNode;if(5===d.tag&&null!==y&&(d=y,null!==p&&(null!=(y=Be(h,p))&&l.push(Ar(h,y,d)))),f)break;h=h.return}0<l.length&&(u=new c(u,s,null,n,o),a.push({event:u,listeners:l}))}}if(0==(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!Jr(s)&&!s[Qr])&&(c||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,c?(c=r,null!==(s=(s=n.relatedTarget||n.toElement)?Jr(s):null)&&(s!==(f=Ke(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(c=null,s=r),c!==s)){if(l=vn,y="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(l=In,y="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==c?u:to(c),d=null==s?u:to(s),(u=new l(y,h+"leave",c,n,o)).target=f,u.relatedTarget=d,y=null,Jr(o)===r&&((l=new l(p,h+"enter",s,n,o)).target=d,l.relatedTarget=f,y=l),f=y,c&&s)e:{for(p=s,h=0,d=l=c;d;d=Lr(d))h++;for(d=0,y=p;y;y=Lr(y))d++;for(;0<h-d;)l=Lr(l),h--;for(;0<d-h;)p=Lr(p),d--;for(;h--;){if(l===p||null!==p&&l===p.alternate)break e;l=Lr(l),p=Lr(p)}l=null}else l=null;null!==c&&Dr(a,u,c,l,!1),null!==s&&null!==f&&Dr(a,f,s,l,!0)}if("select"===(c=(u=r?to(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===c&&"file"===u.type)var m=Kn;else if(Gn(u))if(Qn)m=ar;else{m=or;var v=rr}else(c=u.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(m=ir);switch(m&&(m=m(e,r))?Wn(a,m,n,o):(v&&v(e,u,r),"focusout"===e&&(v=u._wrapperState)&&v.controlled&&"number"===u.type&&oe(u,"number",u.value)),v=r?to(r):window,e){case"focusin":(Gn(v)||"true"===v.contentEditable)&&(mr=v,vr=r,gr=null);break;case"focusout":gr=vr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":wr(a,n,o)}var g;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(g=rn()):(tn="value"in(en=o)?en.value:en.textContent,qn=!0)),0<(v=Nr(r,b)).length&&(b=new En(b,e,null,n,o),a.push({event:b,listeners:v}),g?b.data=g:null!==(g=Hn(n))&&(b.data=g))),(g=Dn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Un=!0,Fn);case"textInput":return(e=t.data)===Fn&&Un?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Nn&&Bn(e,t)?(e=rn(),nn=tn=en=null,qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Nr(r,"onBeforeInput")).length&&(o=new En("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g))}jr(a,t)}))}function Ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Be(e,n))&&r.unshift(Ar(e,i,o)),null!=(i=Be(e,t))&&r.push(Ar(e,i,o))),e=e.return}return r}function Lr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Dr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var u=n,c=u.alternate,s=u.stateNode;if(null!==c&&c===r)break;5===u.tag&&null!==s&&(u=s,o?null!=(c=Be(n,i))&&a.unshift(Ar(n,c,u)):o||null!=(c=Be(n,i))&&a.push(Ar(n,c,u))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Mr(){}var Fr=null,Ur=null;function Br(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var qr="function"==typeof setTimeout?setTimeout:void 0,zr="function"==typeof clearTimeout?clearTimeout:void 0;function Gr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Vr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0;var Zr=Math.random().toString(36).slice(2),$r="__reactFiber$"+Zr,Kr="__reactProps$"+Zr,Qr="__reactContainer$"+Zr,Xr="__reactEvents$"+Zr;function Jr(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Vr(e);null!==e;){if(n=e[$r])return n;e=Vr(e)}return t}n=(e=n).parentNode}return null}function eo(e){return!(e=e[$r]||e[Qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function to(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function no(e){return e[Kr]||null}function ro(e){var t=e[Xr];return void 0===t&&(t=e[Xr]=new Set),t}var oo=[],io=-1;function ao(e){return{current:e}}function uo(e){0>io||(e.current=oo[io],oo[io]=null,io--)}function co(e,t){io++,oo[io]=e.current,e.current=t}var so={},lo=ao(so),fo=ao(!1),po=so;function ho(e,t){var n=e.type.contextTypes;if(!n)return so;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yo(e){return null!=(e=e.childContextTypes)}function mo(){uo(fo),uo(lo)}function vo(e,t,n){if(lo.current!==so)throw Error(a(168));co(lo,t),co(fo,n)}function go(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,Y(t)||"Unknown",i));return o({},n,r)}function bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||so,po=lo.current,co(lo,e),co(fo,fo.current),!0}function wo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=go(e,t,po),r.__reactInternalMemoizedMergedChildContext=e,uo(fo),uo(lo),co(lo,e)):uo(fo),co(fo,n)}var Oo=null,Eo=null,_o=i.unstable_runWithPriority,xo=i.unstable_scheduleCallback,So=i.unstable_cancelCallback,jo=i.unstable_shouldYield,Po=i.unstable_requestPaint,ko=i.unstable_now,Io=i.unstable_getCurrentPriorityLevel,To=i.unstable_ImmediatePriority,Ro=i.unstable_UserBlockingPriority,Co=i.unstable_NormalPriority,Ao=i.unstable_LowPriority,No=i.unstable_IdlePriority,Lo={},Do=void 0!==Po?Po:function(){},Mo=null,Fo=null,Uo=!1,Bo=ko(),Ho=1e4>Bo?ko:function(){return ko()-Bo};function qo(){switch(Io()){case To:return 99;case Ro:return 98;case Co:return 97;case Ao:return 96;case No:return 95;default:throw Error(a(332))}}function zo(e){switch(e){case 99:return To;case 98:return Ro;case 97:return Co;case 96:return Ao;case 95:return No;default:throw Error(a(332))}}function Go(e,t){return e=zo(e),_o(e,t)}function Wo(e,t,n){return e=zo(e),xo(e,t,n)}function Vo(){if(null!==Fo){var e=Fo;Fo=null,So(e)}Yo()}function Yo(){if(!Uo&&null!==Mo){Uo=!0;var e=0;try{var t=Mo;Go(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mo=null}catch(t){throw null!==Mo&&(Mo=Mo.slice(e+1)),xo(To,Vo),t}finally{Uo=!1}}}var Zo=O.ReactCurrentBatchConfig;function $o(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ko=ao(null),Qo=null,Xo=null,Jo=null;function ei(){Jo=Xo=Qo=null}function ti(e){var t=Ko.current;uo(Ko),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ri(e,t){Qo=e,Jo=Xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Na=!0),e.firstContext=null)}function oi(e,t){if(Jo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Jo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xo){if(null===Qo)throw Error(a(308));Xo=t,Qo.dependencies={lanes:0,firstContext:t,responders:null}}else Xo=Xo.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ci(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function si(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function li(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fi(e,t,n,r){var i=e.updateQueue;ii=!1;var a=i.firstBaseUpdate,u=i.lastBaseUpdate,c=i.shared.pending;if(null!==c){i.shared.pending=null;var s=c,l=s.next;s.next=null,null===u?a=l:u.next=l,u=s;var f=e.alternate;if(null!==f){var p=(f=f.updateQueue).lastBaseUpdate;p!==u&&(null===p?f.firstBaseUpdate=l:p.next=l,f.lastBaseUpdate=s)}}if(null!==a){for(p=i.baseState,u=0,f=l=s=null;;){c=a.lane;var d=a.eventTime;if((r&c)===c){null!==f&&(f=f.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,y=a;switch(c=t,d=n,y.tag){case 1:if("function"==typeof(h=y.payload)){p=h.call(d,p,c);break e}p=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(c="function"==typeof(h=y.payload)?h.call(d,p,c):h))break e;p=o({},p,c);break e;case 2:ii=!0}}null!==a.callback&&(e.flags|=32,null===(c=i.effects)?i.effects=[a]:c.push(a))}else d={eventTime:d,lane:c,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(l=f=d,s=p):f=f.next=d,u|=c;if(null===(a=a.next)){if(null===(c=i.shared.pending))break;a=c.next,c.next=null,i.lastBaseUpdate=c,i.shared.pending=null}}null===f&&(s=p),i.baseState=s,i.firstBaseUpdate=l,i.lastBaseUpdate=f,Mu|=u,e.lanes=u,e.memoizedState=p}}function pi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var di=(new r.Component).refs;function hi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yi={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=cc(),o=sc(e),i=ci(r,o);i.payload=t,null!=n&&(i.callback=n),si(e,i),lc(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cc(),o=sc(e),i=ci(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),si(e,i),lc(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cc(),r=sc(e),o=ci(n,r);o.tag=2,null!=t&&(o.callback=t),si(e,o),lc(e,r,n)}};function mi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,i))}function vi(e,t,n){var r=!1,o=so,i=t.contextType;return"object"==typeof i&&null!==i?i=oi(i):(o=yo(t)?po:lo.current,i=(r=null!=(r=t.contextTypes))?ho(e,o):so),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function gi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yi.enqueueReplaceState(t,t.state,null)}function bi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=di,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=oi(i):(i=yo(t)?po:lo.current,o.context=ho(e,i)),fi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(hi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&yi.enqueueReplaceState(o,o.state,null),fi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var wi=Array.isArray;function Oi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===di&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ei(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _i(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=qc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function u(t){return e&&null===t.alternate&&(t.flags=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Vc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Oi(e,t,n),r.return=e,r):((r=zc(n.type,n.key,n.props,null,e.mode,r)).ref=Oi(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Yc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Gc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Vc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=zc(t.type,t.key,t.props,null,e.mode,n)).ref=Oi(e,null,t),n.return=e,n;case _:return(t=Yc(t,e.mode,n)).return=e,t}if(wi(t)||q(t))return(t=Gc(t,e.mode,n,null)).return=e,t;Ei(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?n.type===x?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case _:return n.key===o?l(e,t,n,r):null}if(wi(n)||q(n))return null!==o?null:f(e,t,n,r,null);Ei(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===x?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case _:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(wi(r)||q(r))return f(t,e=e.get(n)||null,r,o,null);Ei(t,r)}return null}function y(o,a,u,c){for(var s=null,l=null,f=a,y=a=0,m=null;null!==f&&y<u.length;y++){f.index>y?(m=f,f=null):m=f.sibling;var v=d(o,f,u[y],c);if(null===v){null===f&&(f=m);break}e&&f&&null===v.alternate&&t(o,f),a=i(v,a,y),null===l?s=v:l.sibling=v,l=v,f=m}if(y===u.length)return n(o,f),s;if(null===f){for(;y<u.length;y++)null!==(f=p(o,u[y],c))&&(a=i(f,a,y),null===l?s=f:l.sibling=f,l=f);return s}for(f=r(o,f);y<u.length;y++)null!==(m=h(f,o,y,u[y],c))&&(e&&null!==m.alternate&&f.delete(null===m.key?y:m.key),a=i(m,a,y),null===l?s=m:l.sibling=m,l=m);return e&&f.forEach((function(e){return t(o,e)})),s}function m(o,u,c,s){var l=q(c);if("function"!=typeof l)throw Error(a(150));if(null==(c=l.call(c)))throw Error(a(151));for(var f=l=null,y=u,m=u=0,v=null,g=c.next();null!==y&&!g.done;m++,g=c.next()){y.index>m?(v=y,y=null):v=y.sibling;var b=d(o,y,g.value,s);if(null===b){null===y&&(y=v);break}e&&y&&null===b.alternate&&t(o,y),u=i(b,u,m),null===f?l=b:f.sibling=b,f=b,y=v}if(g.done)return n(o,y),l;if(null===y){for(;!g.done;m++,g=c.next())null!==(g=p(o,g.value,s))&&(u=i(g,u,m),null===f?l=g:f.sibling=g,f=g);return l}for(y=r(o,y);!g.done;m++,g=c.next())null!==(g=h(y,o,m,g.value,s))&&(e&&null!==g.alternate&&y.delete(null===g.key?m:g.key),u=i(g,u,m),null===f?l=g:f.sibling=g,f=g);return e&&y.forEach((function(e){return t(o,e)})),l}return function(e,r,i,c){var s="object"==typeof i&&null!==i&&i.type===x&&null===i.key;s&&(i=i.props.children);var l="object"==typeof i&&null!==i;if(l)switch(i.$$typeof){case E:e:{for(l=i.key,s=r;null!==s;){if(s.key===l){switch(s.tag){case 7:if(i.type===x){n(e,s.sibling),(r=o(s,i.props.children)).return=e,e=r;break e}break;default:if(s.elementType===i.type){n(e,s.sibling),(r=o(s,i.props)).ref=Oi(e,s,i),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}i.type===x?((r=Gc(i.props.children,e.mode,c,i.key)).return=e,e=r):((c=zc(i.type,i.key,i.props,null,e.mode,c)).ref=Oi(e,r,i),c.return=e,e=c)}return u(e);case _:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Yc(i,e.mode,c)).return=e,e=r}return u(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Vc(i,e.mode,c)).return=e,e=r),u(e);if(wi(i))return y(e,r,i,c);if(q(i))return m(e,r,i,c);if(l&&Ei(e,i),void 0===i&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,Y(e.type)||"Component"))}return n(e,r)}}var xi=_i(!0),Si=_i(!1),ji={},Pi=ao(ji),ki=ao(ji),Ii=ao(ji);function Ti(e){if(e===ji)throw Error(a(174));return e}function Ri(e,t){switch(co(Ii,t),co(ki,e),co(Pi,ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(Pi),co(Pi,t)}function Ci(){uo(Pi),uo(ki),uo(Ii)}function Ai(e){Ti(Ii.current);var t=Ti(Pi.current),n=he(t,e.type);t!==n&&(co(ki,e),co(Pi,n))}function Ni(e){ki.current===e&&(uo(Pi),uo(ki))}var Li=ao(0);function Di(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mi=null,Fi=null,Ui=!1;function Bi(e,t){var n=Bc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Hi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function qi(e){if(Ui){var t=Fi;if(t){var n=t;if(!Hi(e,t)){if(!(t=Wr(n.nextSibling))||!Hi(e,t))return e.flags=-1025&e.flags|2,Ui=!1,void(Mi=e);Bi(Mi,n)}Mi=e,Fi=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,Ui=!1,Mi=e}}function zi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Mi=e}function Gi(e){if(e!==Mi)return!1;if(!Ui)return zi(e),Ui=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Fi;t;)Bi(e,t),t=Wr(t.nextSibling);if(zi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fi=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fi=null}}else Fi=Mi?Wr(e.stateNode.nextSibling):null;return!0}function Wi(){Fi=Mi=null,Ui=!1}var Vi=[];function Yi(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var Zi=O.ReactCurrentDispatcher,$i=O.ReactCurrentBatchConfig,Ki=0,Qi=null,Xi=null,Ji=null,ea=!1,ta=!1;function na(){throw Error(a(321))}function ra(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function oa(e,t,n,r,o,i){if(Ki=i,Qi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zi.current=null===e||null===e.memoizedState?Ta:Ra,e=n(r,o),ta){i=0;do{if(ta=!1,!(25>i))throw Error(a(301));i+=1,Ji=Xi=null,t.updateQueue=null,Zi.current=Ca,e=n(r,o)}while(ta)}if(Zi.current=Ia,t=null!==Xi&&null!==Xi.next,Ki=0,Ji=Xi=Qi=null,ea=!1,t)throw Error(a(300));return e}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ji?Qi.memoizedState=Ji=e:Ji=Ji.next=e,Ji}function aa(){if(null===Xi){var e=Qi.alternate;e=null!==e?e.memoizedState:null}else e=Xi.next;var t=null===Ji?Qi.memoizedState:Ji.next;if(null!==t)Ji=t,Xi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Xi=e).memoizedState,baseState:Xi.baseState,baseQueue:Xi.baseQueue,queue:Xi.queue,next:null},null===Ji?Qi.memoizedState=Ji=e:Ji=Ji.next=e}return Ji}function ua(e,t){return"function"==typeof t?t(e):t}function ca(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Xi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var u=o.next;o.next=i.next,i.next=u}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var c=u=i=null,s=o;do{var l=s.lane;if((Ki&l)===l)null!==c&&(c=c.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:l,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===c?(u=c=f,i=r):c=c.next=f,Qi.lanes|=l,Mu|=l}s=s.next}while(null!==s&&s!==o);null===c?i=r:c.next=u,ur(r,t.memoizedState)||(Na=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function sa(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{i=e(i,u.action),u=u.next}while(u!==o);ur(i,t.memoizedState)||(Na=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function la(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ki&e)===e)&&(t._workInProgressVersionPrimary=r,Vi.push(t))),e)return n(t._source);throw Vi.push(t),Error(a(350))}function fa(e,t,n,r){var o=Iu;if(null===o)throw Error(a(349));var i=t._getVersion,u=i(t._source),c=Zi.current,s=c.useState((function(){return la(o,t,n)})),l=s[1],f=s[0];s=Ji;var p=e.memoizedState,d=p.refs,h=d.getSnapshot,y=p.source;p=p.subscribe;var m=Qi;return e.memoizedState={refs:d,source:t,subscribe:r},c.useEffect((function(){d.getSnapshot=n,d.setSnapshot=l;var e=i(t._source);if(!ur(u,e)){e=n(t._source),ur(f,e)||(l(e),e=sc(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var c=31-Gt(a),s=1<<c;r[c]|=e,a&=~s}}}),[n,t,r]),c.useEffect((function(){return r(t._source,(function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=sc(m);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ur(h,n)&&ur(y,t)&&ur(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:f}).dispatch=l=ka.bind(null,Qi,e),s.queue=e,s.baseQueue=null,f=la(o,t,n),s.memoizedState=s.baseState=f),f}function pa(e,t,n){return fa(aa(),e,t,n)}function da(e){var t=ia();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=ka.bind(null,Qi,e),[t.memoizedState,e]}function ha(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Qi.updateQueue)?(t={lastEffect:null},Qi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ya(e){return e={current:e},ia().memoizedState=e}function ma(){return aa().memoizedState}function va(e,t,n,r){var o=ia();Qi.flags|=e,o.memoizedState=ha(1|t,n,void 0,void 0===r?null:r)}function ga(e,t,n,r){var o=aa();r=void 0===r?null:r;var i=void 0;if(null!==Xi){var a=Xi.memoizedState;if(i=a.destroy,null!==r&&ra(r,a.deps))return void ha(t,n,i,r)}Qi.flags|=e,o.memoizedState=ha(1|t,n,i,r)}function ba(e,t){return va(516,4,e,t)}function wa(e,t){return ga(516,4,e,t)}function Oa(e,t){return ga(4,2,e,t)}function Ea(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function _a(e,t,n){return n=null!=n?n.concat([e]):null,ga(4,2,Ea.bind(null,t,e),n)}function xa(){}function Sa(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ja(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pa(e,t){var n=qo();Go(98>n?98:n,(function(){e(!0)})),Go(97<n?97:n,(function(){var n=$i.transition;$i.transition=1;try{e(!1),t()}finally{$i.transition=n}}))}function ka(e,t,n){var r=cc(),o=sc(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Qi||null!==a&&a===Qi)ta=ea=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var u=t.lastRenderedState,c=a(u,n);if(i.eagerReducer=a,i.eagerState=c,ur(c,u))return}catch(e){}lc(e,o,r)}}var Ia={readContext:oi,useCallback:na,useContext:na,useEffect:na,useImperativeHandle:na,useLayoutEffect:na,useMemo:na,useReducer:na,useRef:na,useState:na,useDebugValue:na,useDeferredValue:na,useTransition:na,useMutableSource:na,useOpaqueIdentifier:na,unstable_isNewReconciler:!1},Ta={readContext:oi,useCallback:function(e,t){return ia().memoizedState=[e,void 0===t?null:t],e},useContext:oi,useEffect:ba,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return va(4,2,e,t)},useMemo:function(e,t){var n=ia();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ia();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ka.bind(null,Qi,e),[r.memoizedState,e]},useRef:ya,useState:da,useDebugValue:xa,useDeferredValue:function(e){var t=da(e),n=t[0],r=t[1];return ba((function(){var t=$i.transition;$i.transition=1;try{r(e)}finally{$i.transition=t}}),[e]),n},useTransition:function(){var e=da(!1),t=e[0];return ya(e=Pa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ia();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fa(r,e,t,n)},useOpaqueIdentifier:function(){if(Ui){var e=!1,t=function(e){return{$$typeof:L,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(a(355))})),n=da(t)[1];return 0==(2&Qi.mode)&&(Qi.flags|=516,ha(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return da(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},Ra={readContext:oi,useCallback:Sa,useContext:oi,useEffect:wa,useImperativeHandle:_a,useLayoutEffect:Oa,useMemo:ja,useReducer:ca,useRef:ma,useState:function(){return ca(ua)},useDebugValue:xa,useDeferredValue:function(e){var t=ca(ua),n=t[0],r=t[1];return wa((function(){var t=$i.transition;$i.transition=1;try{r(e)}finally{$i.transition=t}}),[e]),n},useTransition:function(){var e=ca(ua)[0];return[ma().current,e]},useMutableSource:pa,useOpaqueIdentifier:function(){return ca(ua)[0]},unstable_isNewReconciler:!1},Ca={readContext:oi,useCallback:Sa,useContext:oi,useEffect:wa,useImperativeHandle:_a,useLayoutEffect:Oa,useMemo:ja,useReducer:sa,useRef:ma,useState:function(){return sa(ua)},useDebugValue:xa,useDeferredValue:function(e){var t=sa(ua),n=t[0],r=t[1];return wa((function(){var t=$i.transition;$i.transition=1;try{r(e)}finally{$i.transition=t}}),[e]),n},useTransition:function(){var e=sa(ua)[0];return[ma().current,e]},useMutableSource:pa,useOpaqueIdentifier:function(){return sa(ua)[0]},unstable_isNewReconciler:!1},Aa=O.ReactCurrentOwner,Na=!1;function La(e,t,n,r){t.child=null===e?Si(t,null,n,r):xi(t,e.child,n,r)}function Da(e,t,n,r,o){n=n.render;var i=t.ref;return ri(t,o),r=oa(e,t,n,r,i,o),null===e||Na?(t.flags|=1,La(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,nu(e,t,o))}function Ma(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Hc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:sr)(o,r)&&e.ref===t.ref)?nu(e,t,i):(t.flags|=1,(e=qc(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,o,i){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(Na=!1,0==(i&o))return t.lanes=e.lanes,nu(e,t,i);0!=(16384&e.flags)&&(Na=!0)}return Ha(e,t,n,r,i)}function Ua(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},gc(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},gc(t,e),null;t.memoizedState={baseLanes:0},gc(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,gc(t,r);return La(e,t,o,n),t.child}function Ba(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ha(e,t,n,r,o){var i=yo(n)?po:lo.current;return i=ho(t,i),ri(t,o),n=oa(e,t,n,r,i,o),null===e||Na?(t.flags|=1,La(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,nu(e,t,o))}function qa(e,t,n,r,o){if(yo(n)){var i=!0;bo(t)}else i=!1;if(ri(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),vi(t,n,r),bi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var c=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=oi(s):s=ho(t,s=yo(n)?po:lo.current);var l=n.getDerivedStateFromProps,f="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||c!==s)&&gi(t,a,r,s),ii=!1;var p=t.memoizedState;a.state=p,fi(t,r,a,o),c=t.memoizedState,u!==r||p!==c||fo.current||ii?("function"==typeof l&&(hi(t,n,l,r),c=t.memoizedState),(u=ii||mi(t,n,u,r,p,c,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=s,r=u):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ui(e,t),u=t.memoizedProps,s=t.type===t.elementType?u:$o(t.type,u),a.props=s,f=t.pendingProps,p=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=oi(c):c=ho(t,c=yo(n)?po:lo.current);var d=n.getDerivedStateFromProps;(l="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==f||p!==c)&&gi(t,a,r,c),ii=!1,p=t.memoizedState,a.state=p,fi(t,r,a,o);var h=t.memoizedState;u!==f||p!==h||fo.current||ii?("function"==typeof d&&(hi(t,n,d,r),h=t.memoizedState),(s=ii||mi(t,n,s,r,p,h,c))?(l||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=c,r=s):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return za(e,t,n,r,i,o)}function za(e,t,n,r,o,i){Ba(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&wo(t,n,!1),nu(e,t,i);r=t.stateNode,Aa.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,u,i)):La(e,t,u,i),t.memoizedState=r.state,o&&wo(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?vo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vo(0,t.context,!1),Ri(e,t.containerInfo)}var Wa,Va,Ya,Za={dehydrated:null,retryLane:0};function $a(e,t,n){var r,o=t.pendingProps,i=Li.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),co(Li,1&i),null===e?(void 0!==o.fallback&&qi(t),e=o.children,i=o.fallback,a?(e=Ka(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Za,e):"number"==typeof o.unstable_expectedLoadTime?(e=Ka(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Za,t.lanes=33554432,e):((n=Wc({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=Xa(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Za,o):(n=Qa(e,t,o.children,n),t.memoizedState=null,n))}function Ka(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Wc(t,o,0,null),n=Gc(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Qa(e,t,n,r){var o=e.child;return e=o.sibling,n=qc(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Xa(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var u={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=u,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=qc(a,u),null!==e?r=qc(e,r):(r=Gc(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ja(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ni(e.return,t)}function eu(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function tu(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(La(e,t,r.children,n),0!=(2&(r=Li.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ja(e,n);else if(19===e.tag)Ja(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(co(Li,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Di(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),eu(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Di(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}eu(t,!0,n,null,i,t.lastEffect);break;case"together":eu(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function nu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Mu|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=qc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=qc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ru(e,t){if(!Ui)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ou(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return yo(t.type)&&mo(),null;case 3:return Ci(),uo(fo),uo(lo),Yi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Gi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ni(t);var i=Ti(Ii.current);if(n=t.type,null!==e&&null!=t.stateNode)Va(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ti(Pi.current),Gi(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[$r]=t,r[Kr]=u,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<_r.length;e++)Pr(_r[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":ee(r,u),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Pr("invalid",r);break;case"textarea":ce(r,u),Pr("invalid",r)}for(var s in xe(n,u),e=null,u)u.hasOwnProperty(s)&&(i=u[s],"children"===s?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):c.hasOwnProperty(s)&&null!=i&&"onScroll"===s&&Pr("scroll",r));switch(n){case"input":K(r),re(r,u,!0);break;case"textarea":K(r),le(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=Mr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=de(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[$r]=t,e[Kr]=r,Wa(e,t),t.stateNode=e,s=Se(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),i=r;break;case"iframe":case"object":case"embed":Pr("load",e),i=r;break;case"video":case"audio":for(i=0;i<_r.length;i++)Pr(_r[i],e);i=r;break;case"source":Pr("error",e),i=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),i=r;break;case"details":Pr("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Pr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":ce(e,r),i=ue(e,r),Pr("invalid",e);break;default:i=r}xe(n,i);var l=i;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];"style"===u?Ee(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===u?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(c.hasOwnProperty(u)?null!=f&&"onScroll"===u&&Pr("scroll",e):null!=f&&w(e,u,f,s))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Z(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?ae(e,!!r.multiple,u,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Mr)}Br(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ya(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ti(Ii.current),Ti(Pi.current),Gi(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[$r]=t,t.stateNode=r)}return null;case 13:return uo(Li),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Gi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Li.current)?0===Nu&&(Nu=3):(0!==Nu&&3!==Nu||(Nu=4),null===Iu||0==(134217727&Mu)&&0==(134217727&Fu)||hc(Iu,Ru))),(r||n)&&(t.flags|=4),null);case 4:return Ci(),null===e&&Ir(t.stateNode.containerInfo),null;case 10:return ti(t),null;case 17:return yo(t.type)&&mo(),null;case 19:if(uo(Li),null===(r=t.memoizedState))return null;if(u=0!=(64&t.flags),null===(s=r.rendering))if(u)ru(r,!1);else{if(0!==Nu||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Di(e))){for(t.flags|=64,ru(r,!1),null!==(u=s.updateQueue)&&(t.updateQueue=u,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(u=n).flags&=2,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null,null===(s=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,u.type=s.type,e=s.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return co(Li,1&Li.current|2),t.child}e=e.sibling}null!==r.tail&&Ho()>qu&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=Di(s))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ru(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Ui)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ho()-r.renderingStartTime>qu&&1073741824!==n&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ho(),n.sibling=null,t=Li.current,co(Li,u?1&t|2:1&t),n):null;case 23:case 24:return bc(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function iu(e){switch(e.tag){case 1:yo(e.type)&&mo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ci(),uo(fo),uo(lo),Yi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ni(e),null;case 13:return uo(Li),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return uo(Li),null;case 4:return Ci(),null;case 10:return ti(e),null;case 23:case 24:return bc(),null;default:return null}}function au(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}Wa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ti(Pi.current);var a,u=null;switch(n){case"input":i=J(e,i),r=J(e,r),u=[];break;case"option":i=ie(e,i),r=ie(e,r),u=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),u=[];break;case"textarea":i=ue(e,i),r=ue(e,r),u=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Mr)}for(f in xe(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var s=i[f];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(c.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var l=r[f];if(s=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&l!==s&&(null!=l||null!=s))if("style"===f)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(u||(u=[]),u.push(f,n)),n=l;else"dangerouslySetInnerHTML"===f?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(u=u||[]).push(f,l)):"children"===f?"string"!=typeof l&&"number"!=typeof l||(u=u||[]).push(f,""+l):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(c.hasOwnProperty(f)?(null!=l&&"onScroll"===f&&Pr("scroll",e),u||s===l||(u=[])):"object"==typeof l&&null!==l&&l.$$typeof===L?l.toString():(u=u||[]).push(f,l))}n&&(u=u||[]).push("style",n);var f=u;(t.updateQueue=f)&&(t.flags|=4)}},Ya=function(e,t,n,r){n!==r&&(t.flags|=4)};var uu="function"==typeof WeakMap?WeakMap:Map;function cu(e,t,n){(n=ci(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,Yu=r)},n}function su(e,t,n){(n=ci(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Zu?Zu=new Set([this]):Zu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var lu="function"==typeof WeakSet?WeakSet:Set;function fu(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Dc(e,t)}else t.current=null}function pu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$o(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function du(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Ac(n,e),Cc(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$o(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&pi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}pi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Br(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function hu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=Oe("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function yu(e,t){if(Eo&&"function"==typeof Eo.onCommitFiberUnmount)try{Eo.onCommitFiberUnmount(Oo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Ac(t,n);else{r=t;try{o()}catch(e){Dc(r,e)}}n=n.next}while(n!==e)}break;case 1:if(fu(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Dc(t,e)}break;case 5:fu(t);break;case 4:Ou(e,t)}}function mu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vu(e){return 5===e.tag||3===e.tag||4===e.tag}function gu(e){e:{for(var t=e.return;null!==t;){if(vu(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?bu(e,n,t):wu(e,n,t)}function bu(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Mr));else if(4!==r&&null!==(e=e.child))for(bu(e,t,n),e=e.sibling;null!==e;)bu(e,t,n),e=e.sibling}function wu(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(wu(e,t,n),e=e.sibling;null!==e;)wu(e,t,n),e=e.sibling}function Ou(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var u=e,c=o,s=c;;)if(yu(u,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===c)break e;for(;null===s.sibling;){if(null===s.return||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(u=n,c=o.stateNode,8===u.nodeType?u.parentNode.removeChild(c):u.removeChild(c)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(yu(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Eu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,o),t=Se(e,r),o=0;o<i.length;o+=2){var u=i[o],c=i[o+1];"style"===u?Ee(n,c):"dangerouslySetInnerHTML"===u?ve(n,c):"children"===u?ge(n,c):w(n,u,c,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Hu=Ho(),hu(t.child,!0)),void _u(t);case 19:return void _u(t);case 17:return;case 23:case 24:return void hu(t,null!==t.memoizedState)}throw Error(a(163))}function _u(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new lu),t.forEach((function(t){var r=Fc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function xu(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Su=Math.ceil,ju=O.ReactCurrentDispatcher,Pu=O.ReactCurrentOwner,ku=0,Iu=null,Tu=null,Ru=0,Cu=0,Au=ao(0),Nu=0,Lu=null,Du=0,Mu=0,Fu=0,Uu=0,Bu=null,Hu=0,qu=1/0;function zu(){qu=Ho()+500}var Gu,Wu=null,Vu=!1,Yu=null,Zu=null,$u=!1,Ku=null,Qu=90,Xu=[],Ju=[],ec=null,tc=0,nc=null,rc=-1,oc=0,ic=0,ac=null,uc=!1;function cc(){return 0!=(48&ku)?Ho():-1!==rc?rc:rc=Ho()}function sc(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===qo()?1:2;if(0===oc&&(oc=Du),0!==Zo.transition){0!==ic&&(ic=null!==Bu?Bu.pendingLanes:0),e=oc;var t=4186112&~ic;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=qo(),0!=(4&ku)&&98===e?e=Bt(12,oc):e=Bt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),oc),e}function lc(e,t,n){if(50<tc)throw tc=0,nc=null,Error(a(185));if(null===(e=fc(e,t)))return null;zt(e,t,n),e===Iu&&(Fu|=t,4===Nu&&hc(e,Ru));var r=qo();1===t?0!=(8&ku)&&0==(48&ku)?yc(e):(pc(e,n),0===ku&&(zu(),Vo())):(0==(4&ku)||98!==r&&99!==r||(null===ec?ec=new Set([e]):ec.add(e)),pc(e,n)),Bu=e}function fc(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function pc(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes;0<u;){var c=31-Gt(u),s=1<<c,l=i[c];if(-1===l){if(0==(s&r)||0!=(s&o)){l=t,Mt(s);var f=Dt;i[c]=10<=f?l+250:6<=f?l+5e3:-1}}else l<=t&&(e.expiredLanes|=s);u&=~s}if(r=Ft(e,e===Iu?Ru:0),t=Dt,0===r)null!==n&&(n!==Lo&&So(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Lo&&So(n)}15===t?(n=yc.bind(null,e),null===Mo?(Mo=[n],Fo=xo(To,Yo)):Mo.push(n),n=Lo):14===t?n=Wo(99,yc.bind(null,e)):n=Wo(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),dc.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function dc(e){if(rc=-1,ic=oc=0,0!=(48&ku))throw Error(a(327));var t=e.callbackNode;if(Rc()&&e.callbackNode!==t)return null;var n=Ft(e,e===Iu?Ru:0);if(0===n)return null;var r=n,o=ku;ku|=16;var i=Ec();for(Iu===e&&Ru===r||(zu(),wc(e,r));;)try{Sc();break}catch(t){Oc(e,t)}if(ei(),ju.current=i,ku=o,null!==Tu?r=0:(Iu=null,Ru=0,r=Nu),0!=(Du&Fu))wc(e,0);else if(0!==r){if(2===r&&(ku|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=Ut(e))&&(r=_c(e,n))),1===r)throw t=Lu,wc(e,0),hc(e,n),pc(e,Ho()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:kc(e);break;case 3:if(hc(e,n),(62914560&n)===n&&10<(r=Hu+500-Ho())){if(0!==Ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){cc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=qr(kc.bind(null,e),r);break}kc(e);break;case 4:if(hc(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var u=31-Gt(n);i=1<<u,(u=r[u])>o&&(o=u),n&=~i}if(n=o,10<(n=(120>(n=Ho()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Su(n/1960))-n)){e.timeoutHandle=qr(kc.bind(null,e),n);break}kc(e);break;case 5:kc(e);break;default:throw Error(a(329))}}return pc(e,Ho()),e.callbackNode===t?dc.bind(null,e):null}function hc(e,t){for(t&=~Uu,t&=~Fu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Gt(t),r=1<<n;e[n]=-1,t&=~r}}function yc(e){if(0!=(48&ku))throw Error(a(327));if(Rc(),e===Iu&&0!=(e.expiredLanes&Ru)){var t=Ru,n=_c(e,t);0!=(Du&Fu)&&(n=_c(e,t=Ft(e,t)))}else n=_c(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(ku|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=Ut(e))&&(n=_c(e,t))),1===n)throw n=Lu,wc(e,0),hc(e,t),pc(e,Ho()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e),pc(e,Ho()),null}function mc(e,t){var n=ku;ku|=1;try{return e(t)}finally{0===(ku=n)&&(zu(),Vo())}}function vc(e,t){var n=ku;ku&=-2,ku|=8;try{return e(t)}finally{0===(ku=n)&&(zu(),Vo())}}function gc(e,t){co(Au,Cu),Cu|=t,Du|=t}function bc(){Cu=Au.current,uo(Au)}function wc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,zr(n)),null!==Tu)for(n=Tu.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&mo();break;case 3:Ci(),uo(fo),uo(lo),Yi();break;case 5:Ni(r);break;case 4:Ci();break;case 13:case 19:uo(Li);break;case 10:ti(r);break;case 23:case 24:bc()}n=n.return}Iu=e,Tu=qc(e.current,null),Ru=Cu=Du=t,Nu=0,Lu=null,Uu=Fu=Mu=0}function Oc(e,t){for(;;){var n=Tu;try{if(ei(),Zi.current=Ia,ea){for(var r=Qi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ea=!1}if(Ki=0,Ji=Xi=Qi=null,ta=!1,Pu.current=null,null===n||null===n.return){Nu=1,Lu=t,Tu=null;break}e:{var i=e,a=n.return,u=n,c=t;if(t=Ru,u.flags|=2048,u.firstEffect=u.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var s=c;if(0==(2&u.mode)){var l=u.alternate;l?(u.updateQueue=l.updateQueue,u.memoizedState=l.memoizedState,u.lanes=l.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=0!=(1&Li.current),p=a;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var y=p.memoizedProps;d=void 0!==y.fallback&&(!0!==y.unstable_avoidThisFallback||!f)}}if(d){var m=p.updateQueue;if(null===m){var v=new Set;v.add(s),p.updateQueue=v}else m.add(s);if(0==(2&p.mode)){if(p.flags|=64,u.flags|=16384,u.flags&=-2981,1===u.tag)if(null===u.alternate)u.tag=17;else{var g=ci(-1,1);g.tag=2,si(u,g)}u.lanes|=1;break e}c=void 0,u=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new uu,c=new Set,b.set(s,c)):void 0===(c=b.get(s))&&(c=new Set,b.set(s,c)),!c.has(u)){c.add(u);var w=Mc.bind(null,i,s,u);s.then(w,w)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);c=Error((Y(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Nu&&(Nu=2),c=au(c,u),p=a;do{switch(p.tag){case 3:i=c,p.flags|=4096,t&=-t,p.lanes|=t,li(p,cu(0,i,t));break e;case 1:i=c;var O=p.type,E=p.stateNode;if(0==(64&p.flags)&&("function"==typeof O.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Zu||!Zu.has(E)))){p.flags|=4096,t&=-t,p.lanes|=t,li(p,su(p,i,t));break e}}p=p.return}while(null!==p)}Pc(n)}catch(e){t=e,Tu===n&&null!==n&&(Tu=n=n.return);continue}break}}function Ec(){var e=ju.current;return ju.current=Ia,null===e?Ia:e}function _c(e,t){var n=ku;ku|=16;var r=Ec();for(Iu===e&&Ru===t||wc(e,t);;)try{xc();break}catch(t){Oc(e,t)}if(ei(),ku=n,ju.current=r,null!==Tu)throw Error(a(261));return Iu=null,Ru=0,Nu}function xc(){for(;null!==Tu;)jc(Tu)}function Sc(){for(;null!==Tu&&!jo();)jc(Tu)}function jc(e){var t=Gu(e.alternate,e,Cu);e.memoizedProps=e.pendingProps,null===t?Pc(e):Tu=t,Pu.current=null}function Pc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ou(n,t,Cu)))return void(Tu=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Cu)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=iu(t)))return n.flags&=2047,void(Tu=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Tu=t);Tu=t=e}while(null!==t);0===Nu&&(Nu=5)}function kc(e){var t=qo();return Go(99,Ic.bind(null,e,t)),null}function Ic(e,t){do{Rc()}while(null!==Ku);if(0!=(48&ku))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var u=e.eventTimes,c=e.expirationTimes;0<i;){var s=31-Gt(i),l=1<<s;o[s]=0,u[s]=-1,c[s]=-1,i&=~l}if(null!==ec&&0==(24&r)&&ec.has(e)&&ec.delete(e),e===Iu&&(Tu=Iu=null,Ru=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=ku,ku|=32,Pu.current=null,Fr=$t,hr(u=dr())){if("selectionStart"in u)c={start:u.selectionStart,end:u.selectionEnd};else e:if(c=(c=u.ownerDocument)&&c.defaultView||window,(l=c.getSelection&&c.getSelection())&&0!==l.rangeCount){c=l.anchorNode,i=l.anchorOffset,s=l.focusNode,l=l.focusOffset;try{c.nodeType,s.nodeType}catch(e){c=null;break e}var f=0,p=-1,d=-1,h=0,y=0,m=u,v=null;t:for(;;){for(var g;m!==c||0!==i&&3!==m.nodeType||(p=f+i),m!==s||0!==l&&3!==m.nodeType||(d=f+l),3===m.nodeType&&(f+=m.nodeValue.length),null!==(g=m.firstChild);)v=m,m=g;for(;;){if(m===u)break t;if(v===c&&++h===i&&(p=f),v===s&&++y===l&&(d=f),null!==(g=m.nextSibling))break;v=(m=v).parentNode}m=g}c=-1===p||-1===d?null:{start:p,end:d}}else c=null;c=c||{start:0,end:0}}else c=null;Ur={focusedElem:u,selectionRange:c},$t=!1,ac=null,uc=!1,Wu=r;do{try{Tc()}catch(e){if(null===Wu)throw Error(a(330));Dc(Wu,e),Wu=Wu.nextEffect}}while(null!==Wu);ac=null,Wu=r;do{try{for(u=e;null!==Wu;){var b=Wu.flags;if(16&b&&ge(Wu.stateNode,""),128&b){var w=Wu.alternate;if(null!==w){var O=w.ref;null!==O&&("function"==typeof O?O(null):O.current=null)}}switch(1038&b){case 2:gu(Wu),Wu.flags&=-3;break;case 6:gu(Wu),Wu.flags&=-3,Eu(Wu.alternate,Wu);break;case 1024:Wu.flags&=-1025;break;case 1028:Wu.flags&=-1025,Eu(Wu.alternate,Wu);break;case 4:Eu(Wu.alternate,Wu);break;case 8:Ou(u,c=Wu);var E=c.alternate;mu(c),null!==E&&mu(E)}Wu=Wu.nextEffect}}catch(e){if(null===Wu)throw Error(a(330));Dc(Wu,e),Wu=Wu.nextEffect}}while(null!==Wu);if(O=Ur,w=dr(),b=O.focusedElem,u=O.selectionRange,w!==b&&b&&b.ownerDocument&&pr(b.ownerDocument.documentElement,b)){null!==u&&hr(b)&&(w=u.start,void 0===(O=u.end)&&(O=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(O,b.value.length)):(O=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(O=O.getSelection(),c=b.textContent.length,E=Math.min(u.start,c),u=void 0===u.end?E:Math.min(u.end,c),!O.extend&&E>u&&(c=u,u=E,E=c),c=fr(b,E),i=fr(b,u),c&&i&&(1!==O.rangeCount||O.anchorNode!==c.node||O.anchorOffset!==c.offset||O.focusNode!==i.node||O.focusOffset!==i.offset)&&((w=w.createRange()).setStart(c.node,c.offset),O.removeAllRanges(),E>u?(O.addRange(w),O.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),O.addRange(w))))),w=[];for(O=b;O=O.parentNode;)1===O.nodeType&&w.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(O=w[b]).element.scrollLeft=O.left,O.element.scrollTop=O.top}$t=!!Fr,Ur=Fr=null,e.current=n,Wu=r;do{try{for(b=e;null!==Wu;){var _=Wu.flags;if(36&_&&du(b,Wu.alternate,Wu),128&_){w=void 0;var x=Wu.ref;if(null!==x){var S=Wu.stateNode;switch(Wu.tag){case 5:w=S;break;default:w=S}"function"==typeof x?x(w):x.current=w}}Wu=Wu.nextEffect}}catch(e){if(null===Wu)throw Error(a(330));Dc(Wu,e),Wu=Wu.nextEffect}}while(null!==Wu);Wu=null,Do(),ku=o}else e.current=n;if($u)$u=!1,Ku=e,Qu=t;else for(Wu=r;null!==Wu;)t=Wu.nextEffect,Wu.nextEffect=null,8&Wu.flags&&((_=Wu).sibling=null,_.stateNode=null),Wu=t;if(0===(r=e.pendingLanes)&&(Zu=null),1===r?e===nc?tc++:(tc=0,nc=e):tc=0,n=n.stateNode,Eo&&"function"==typeof Eo.onCommitFiberRoot)try{Eo.onCommitFiberRoot(Oo,n,void 0,64==(64&n.current.flags))}catch(e){}if(pc(e,Ho()),Vu)throw Vu=!1,e=Yu,Yu=null,e;return 0!=(8&ku)||Vo(),null}function Tc(){for(;null!==Wu;){var e=Wu.alternate;uc||null===ac||(0!=(8&Wu.flags)?et(Wu,ac)&&(uc=!0):13===Wu.tag&&xu(e,Wu)&&et(Wu,ac)&&(uc=!0));var t=Wu.flags;0!=(256&t)&&pu(e,Wu),0==(512&t)||$u||($u=!0,Wo(97,(function(){return Rc(),null}))),Wu=Wu.nextEffect}}function Rc(){if(90!==Qu){var e=97<Qu?97:Qu;return Qu=90,Go(e,Nc)}return!1}function Cc(e,t){Xu.push(t,e),$u||($u=!0,Wo(97,(function(){return Rc(),null})))}function Ac(e,t){Ju.push(t,e),$u||($u=!0,Wo(97,(function(){return Rc(),null})))}function Nc(){if(null===Ku)return!1;var e=Ku;if(Ku=null,0!=(48&ku))throw Error(a(331));var t=ku;ku|=32;var n=Ju;Ju=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],u=o.destroy;if(o.destroy=void 0,"function"==typeof u)try{u()}catch(e){if(null===i)throw Error(a(330));Dc(i,e)}}for(n=Xu,Xu=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var c=o.create;o.destroy=c()}catch(e){if(null===i)throw Error(a(330));Dc(i,e)}}for(c=e.current.firstEffect;null!==c;)e=c.nextEffect,c.nextEffect=null,8&c.flags&&(c.sibling=null,c.stateNode=null),c=e;return ku=t,Vo(),!0}function Lc(e,t,n){si(e,t=cu(0,t=au(n,t),1)),t=cc(),null!==(e=fc(e,1))&&(zt(e,1,t),pc(e,t))}function Dc(e,t){if(3===e.tag)Lc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Lc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Zu||!Zu.has(r))){var o=su(n,e=au(t,e),1);if(si(n,o),o=cc(),null!==(n=fc(n,1)))zt(n,1,o),pc(n,o);else if("function"==typeof r.componentDidCatch&&(null===Zu||!Zu.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Mc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=cc(),e.pingedLanes|=e.suspendedLanes&n,Iu===e&&(Ru&n)===n&&(4===Nu||3===Nu&&(62914560&Ru)===Ru&&500>Ho()-Hu?wc(e,0):Uu|=n),pc(e,t)}function Fc(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===qo()?1:2:(0===oc&&(oc=Du),0===(t=Ht(62914560&~oc))&&(t=4194304))),n=cc(),null!==(e=fc(e,t))&&(zt(e,t,n),pc(e,n))}function Uc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Bc(e,t,n,r){return new Uc(e,t,n,r)}function Hc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function qc(e,t){var n=e.alternate;return null===n?((n=Bc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zc(e,t,n,r,o,i){var u=2;if(r=e,"function"==typeof e)Hc(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case x:return Gc(n.children,o,i,t);case D:u=8,o|=16;break;case S:u=8,o|=1;break;case j:return(e=Bc(12,n,t,8|o)).elementType=j,e.type=j,e.lanes=i,e;case T:return(e=Bc(13,n,t,o)).type=T,e.elementType=T,e.lanes=i,e;case R:return(e=Bc(19,n,t,o)).elementType=R,e.lanes=i,e;case M:return Wc(n,o,i,t);case F:return(e=Bc(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:u=10;break e;case k:u=9;break e;case I:u=11;break e;case C:u=14;break e;case A:u=16,r=null;break e;case N:u=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Bc(u,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Gc(e,t,n,r){return(e=Bc(7,e,r,t)).lanes=n,e}function Wc(e,t,n,r){return(e=Bc(23,e,r,t)).elementType=M,e.lanes=n,e}function Vc(e,t,n){return(e=Bc(6,e,null,t)).lanes=n,e}function Yc(e,t,n){return(t=Bc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zc(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=qt(0),this.expirationTimes=qt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qt(0),this.mutableSourceEagerHydrationData=null}function $c(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Kc(e,t,n,r){var o=t.current,i=cc(),u=sc(o);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(yo(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var s=n.type;if(yo(s)){n=go(n,s,c);break e}}n=c}else n=so;return null===t.context?t.context=n:t.pendingContext=n,(t=ci(i,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),si(o,t),lc(o,u,i),u}function Qc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Xc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Jc(e,t){Xc(e,t),(e=e.alternate)&&Xc(e,t)}function es(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Zc(e,t,null!=n&&!0===n.hydrate),t=Bc(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ai(t),e[Qr]=n.current,Ir(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ts(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ns(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var u=o;o=function(){var e=Qc(a);u.call(e)}}Kc(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new es(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var c=o;o=function(){var e=Qc(a);c.call(e)}}vc((function(){Kc(t,a,e,o)}))}return Qc(a)}function rs(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ts(t))throw Error(a(200));return $c(e,t,null,n)}Gu=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fo.current)Na=!0;else{if(0==(n&r)){switch(Na=!1,t.tag){case 3:Ga(t),Wi();break;case 5:Ai(t);break;case 1:yo(t.type)&&bo(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;co(Ko,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?$a(e,t,n):(co(Li,1&Li.current),null!==(t=nu(e,t,n))?t.sibling:null);co(Li,1&Li.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return tu(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),co(Li,Li.current),r)break;return null;case 23:case 24:return t.lanes=0,Ua(e,t,n)}return nu(e,t,n)}Na=0!=(16384&e.flags)}else Na=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=ho(t,lo.current),ri(t,n),o=oa(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yo(r)){var i=!0;bo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(t);var u=r.getDerivedStateFromProps;"function"==typeof u&&hi(t,r,u,e),o.updater=yi,t.stateNode=o,o._reactInternals=t,bi(t,r,e,n),t=za(null,t,r,!0,i,n)}else t.tag=0,La(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Hc(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===C)return 14}return 2}(o),e=$o(o,e),i){case 0:t=Ha(null,t,o,e,n);break e;case 1:t=qa(null,t,o,e,n);break e;case 11:t=Da(null,t,o,e,n);break e;case 14:t=Ma(null,t,o,$o(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ha(e,t,r,o=t.elementType===r?o:$o(r,o),n);case 1:return r=t.type,o=t.pendingProps,qa(e,t,r,o=t.elementType===r?o:$o(r,o),n);case 3:if(Ga(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),fi(t,r,null,n),(r=t.memoizedState.element)===o)Wi(),t=nu(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Fi=Wr(t.stateNode.containerInfo.firstChild),Mi=t,i=Ui=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Vi.push(i);for(n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else La(e,t,r,n),Wi();t=t.child}return t;case 5:return Ai(t),null===e&&qi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,u=o.children,Hr(r,o)?u=null:null!==i&&Hr(r,i)&&(t.flags|=16),Ba(e,t),La(e,t,u,n),t.child;case 6:return null===e&&qi(t),null;case 13:return $a(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):La(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Da(e,t,r,o=t.elementType===r?o:$o(r,o),n);case 7:return La(e,t,t.pendingProps,n),t.child;case 8:case 12:return La(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,u=t.memoizedProps,i=o.value;var c=t.type._context;if(co(Ko,c._currentValue),c._currentValue=i,null!==u)if(c=u.value,0===(i=ur(c,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,i):1073741823))){if(u.children===o.children&&!fo.current){t=nu(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var s=c.dependencies;if(null!==s){u=c.child;for(var l=s.firstContext;null!==l;){if(l.context===r&&0!=(l.observedBits&i)){1===c.tag&&((l=ci(-1,n&-n)).tag=2,si(c,l)),c.lanes|=n,null!==(l=c.alternate)&&(l.lanes|=n),ni(c.return,n),s.lanes|=n;break}l=l.next}}else u=10===c.tag&&c.type===t.type?null:c.child;if(null!==u)u.return=c;else for(u=c;null!==u;){if(u===t){u=null;break}if(null!==(c=u.sibling)){c.return=u.return,u=c;break}u=u.return}c=u}La(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ri(t,n),r=r(o=oi(o,i.unstable_observedBits)),t.flags|=1,La(e,t,r,n),t.child;case 14:return i=$o(o=t.type,t.pendingProps),Ma(e,t,o,i=$o(o.type,i),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$o(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yo(r)?(e=!0,bo(t)):e=!1,ri(t,n),vi(t,r,o),bi(t,r,o,n),za(null,t,r,!0,e,n);case 19:return tu(e,t,n);case 23:case 24:return Ua(e,t,n)}throw Error(a(156,t.tag))},es.prototype.render=function(e){Kc(e,this._internalRoot,null,null)},es.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Kc(null,e,null,(function(){t[Qr]=null}))},tt=function(e){13===e.tag&&(lc(e,4,cc()),Jc(e,4))},nt=function(e){13===e.tag&&(lc(e,67108864,cc()),Jc(e,67108864))},rt=function(e){if(13===e.tag){var t=cc(),n=sc(e);lc(e,n,t),Jc(e,n)}},ot=function(e,t){return t()},Pe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=no(r);if(!o)throw Error(a(90));Q(r),ne(r,o)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ae=mc,Ne=function(e,t,n,r,o){var i=ku;ku|=4;try{return Go(98,e.bind(null,t,n,r,o))}finally{0===(ku=i)&&(zu(),Vo())}},Le=function(){0==(49&ku)&&(function(){if(null!==ec){var e=ec;ec=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,pc(e,Ho())}))}Vo()}(),Rc())},De=function(e,t){var n=ku;ku|=2;try{return e(t)}finally{0===(ku=n)&&(zu(),Vo())}};var os={Events:[eo,to,no,Re,Ce,Rc,{current:!1}]},is={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},as={bundleType:is.bundleType,version:is.version,rendererPackageName:is.rendererPackageName,rendererConfig:is.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:is.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!us.isDisabled&&us.supportsFiber)try{Oo=us.inject(as),Eo=us}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=os,t.createPortal=rs,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=ku;if(0!=(48&n))return e(t);ku|=1;try{if(e)return Go(99,e.bind(null,t))}finally{ku=n,Vo()}},t.hydrate=function(e,t,n){if(!ts(t))throw Error(a(200));return ns(null,e,t,!0,n)},t.render=function(e,t,n){if(!ts(t))throw Error(a(200));return ns(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ts(e))throw Error(a(40));return!!e._reactRootContainer&&(vc((function(){ns(null,null,e,!1,(function(){e._reactRootContainer=null,e[Qr]=null}))})),!0)},t.unstable_batchedUpdates=mc,t.unstable_createPortal=function(e,t){return rs(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ts(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ns(e,t,n,!1,r)},t.version="17.0.2"},14486:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),e.exports=n(89395)},49686:(e,t)=>{"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,d=window.clearTimeout;if("undefined"!=typeof console){window.cancelAnimationFrame;window.requestAnimationFrame}var h=!1,y=null,m=-1,v=5,g=0;t.unstable_shouldYield=function(){return t.unstable_now()>=g},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e||(v=0<e?Math.floor(1e3/e):5)};var b=new MessageChannel,w=b.port2;b.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();g=e+v;try{y(!0,e)?w.postMessage(null):(h=!1,y=null)}catch(e){throw w.postMessage(null),e}}else h=!1},n=function(e){y=e,h||(h=!0,w.postMessage(null))},r=function(e,n){m=p((function(){e(t.unstable_now())}),n)},o=function(){d(m),m=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<x(o,t)))break e;e[r]=t,e[n]=o,n=r}}function E(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],u=i+1,c=e[u];if(void 0!==a&&0>x(a,n))void 0!==c&&0>x(c,a)?(e[r]=c,e[u]=n,r=u):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>x(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}return null}function x(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var S=[],j=[],P=1,k=null,I=3,T=!1,R=!1,C=!1;function A(e){for(var t=E(j);null!==t;){if(null===t.callback)_(j);else{if(!(t.startTime<=e))break;_(j),t.sortIndex=t.expirationTime,O(S,t)}t=E(j)}}function N(e){if(C=!1,A(e),!R)if(null!==E(S))R=!0,n(L);else{var t=E(j);null!==t&&r(N,t.startTime-e)}}function L(e,n){R=!1,C&&(C=!1,o()),T=!0;var i=I;try{for(A(n),k=E(S);null!==k&&(!(k.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=k.callback;if("function"==typeof a){k.callback=null,I=k.priorityLevel;var u=a(k.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?k.callback=u:k===E(S)&&_(S),A(n)}else _(S);k=E(S)}if(null!==k)var c=!0;else{var s=E(j);null!==s&&r(N,s.startTime-n),c=!1}return c}finally{k=null,I=i,T=!1}}var D=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||T||(R=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return E(S)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,i,a){var u=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?u+a:u:a=u,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:P++,callback:i,priorityLevel:e,startTime:a,expirationTime:c=a+c,sortIndex:-1},a>u?(e.sortIndex=a,O(j,e),null===E(S)&&e===E(j)&&(C?o():C=!0,r(N,a-u))):(e.sortIndex=c,O(S,e),R||T||(R=!0,n(L))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},89019:(e,t,n)=>{"use strict";e.exports=n(49686)},40801:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var u,c,s,l;if(Array.isArray(e)){if((u=e.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(e[c],a[c]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=e.entries();!(c=l.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((u=e.length)!=a.length)return!1;for(c=u;0!=c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((u=(s=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,s[c]))return!1;if(t&&e instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!e.$$typeof)&&!i(e[s[c]],a[s[c]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return!1;throw e}}},6761:(e,t,n)=>{"use strict";var r=n(76630);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},29622:(e,t,n)=>{e.exports=n(6761)()},76630:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1816:(e,t,n)=>{"use strict";var r,o=n(84258),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,s=[];function l(){c=e(s.map((function(e){return e.props}))),f.canUseDOM?t(c):n&&(c=n(c))}var f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return c},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,s=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),l()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",u),f}}},99173:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,y=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case u:case a:case d:return e;default:switch(e=e&&e.$$typeof){case s:case p:case m:case y:case c:return e;default:return t}}case o:return t}}}function E(e){return O(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=c,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=m,t.Memo=y,t.Portal=o,t.Profiler=u,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return E(e)||O(e)===l},t.isConcurrentMode=E,t.isContextConsumer=function(e){return O(e)===s},t.isContextProvider=function(e){return O(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===p},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===m},t.isMemo=function(e){return O(e)===y},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===u},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===u||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===c||e.$$typeof===s||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=O},2781:(e,t,n)=>{"use strict";e.exports=n(99173)},76511:()=>{var e,t,n,r;Array.from||(Array.from=(e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},n=Math.pow(2,53)-1,r=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),n)},function(e){var n=this,o=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!t(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(i=arguments[2])}for(var u,c=r(o.length),s=t(n)?Object(new n(c)):new Array(c),l=0;l<c;)u=o[l],s[l]=a?void 0===i?a(u,l):a.call(i,u,l):u,l+=1;return s.length=c,s}))},98269:(e,t,n)=>{"use strict";var r=n(84258),o=n(53486),i=n(99890);function a(){}a.prototype=Object.create(r.Component.prototype),a.displayName="NestedStatus",a.propTypes={code:o.number.isRequired},a.prototype.render=function(){return this.props.children?r.Children.only(this.props.children):null};var u=i((function(e){var t=e[e.length-1];if(t)return t.code}),(function(e){return e}))(a),c=u.peek,s=u.rewind;u.peek=function(){return c()||200},u.rewind=function(){return s()||200},e.exports=u},26598:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context=void 0;var o=r(n(84258));t.Context=o.default.createContext({remove:function(){},set:function(){},handleClick:function(){},open:function(){}})},55155:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.baseGalleryPropTypes=void 0;var o=r(n(53486));t.baseGalleryPropTypes={children:o.default.any,options:o.default.object,id:o.default.oneOfType([o.default.string,o.default.number])}},93694:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},u=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomGallery=void 0;var l=s(n(98454)),f=a(n(84258)),p=s(n(53486)),d=n(46930),h=n(26598),y=n(55155);t.CustomGallery=function(e){var t=e.children,n=e.layoutRef,o=e.ui,i=e.options,a=e.id,s=e.onOpen,p=(0,f.useRef)(new Map),y=(0,f.useRef)(null),m=(0,f.useCallback)((function(e,t,f){var h=f||null,y=[],m=Array.from(p.current),v=function(n,o){var i=c(n,2),a=i[0],s=i[1],l=s.width,f=s.height,p=s.title,d=s.original,m=s.thumbnail,v=s.id,g=u(s,["width","height","title","original","thumbnail","id"]);(e===a||void 0!==v&&String(v)===t)&&(h=o),y.push(r(r(r(r({},p?{title:p}:{}),{w:Number(l),h:Number(f),src:d,msrc:m,el:a.current}),void 0!==v?{pid:v}:{}),g))};p.current.size>1?m.sort((function(e,t){var n=c(e,1)[0].current,r=c(t,1)[0].current;return(0,d.sortNodes)(n,r)})).forEach(v):m.forEach(v);var g=n.current;if(g){var b=new l.default(g,o,y,r(r({index:null===h?parseInt(t,10)-1:h,getThumbBoundsFn:function(e){var t=y[e].el;return t?(0,d.getElBounds)(t):{x:0,y:0,w:0}},history:!1},void 0!==a?{galleryUID:a,history:!0}:{}),i||{}));b.init(),void 0!==s&&"function"==typeof s&&s(b)}}),[i,a,s]);(0,f.useEffect)((function(){if(void 0!==a){var e=window.location.hash.substring(1),t={};if(!(e.length<5)){for(var n=e.split("&"),r=0;r<n.length;r++)if(n[r]){var o=c(n[r].split("="),2),i=o[0],u=o[1];i&&u&&(t[i]=u)}var s=t.pid,l=t.gid;0!==p.current.size?s&&l===String(a)&&m(null,s):y.current=s}}}),[m,a]);var v=(0,f.useCallback)((function(e){p.current.delete(e)}),[]),g=(0,f.useCallback)((function(e,t){var n=t.id;if(p.current.set(e,t),y.current)if(n===y.current)m(e),y.current=null;else if(!n){var r=parseInt(y.current,10)-1,o=Array.from(p.current.keys())[r];o&&(m(o),y.current=null)}}),[m]),b=(0,f.useCallback)((function(e){m(null,null,e)}),[m]),w=(0,f.useMemo)((function(){return{remove:v,set:g,handleClick:m,open:b}}),[v,g,m,b]);return f.default.createElement(h.Context.Provider,{value:w},t)},t.CustomGallery.propTypes=r(r({},y.baseGalleryPropTypes),{layoutRef:p.default.shape({current:p.default.instanceOf("undefined"==typeof Element?function(){}:Element)}).isRequired,ui:p.default.any.isRequired})},48683:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},u=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Gallery=void 0;var s=c(n(87452)),l=a(n(84258)),f=n(32520),p=n(55155);t.Gallery=function(e){var t=e.children,n=e.options,o=e.id,i=e.onOpen,a=u(e,["children","options","id","onOpen"]),c=(0,l.useRef)();return l.default.createElement(f.CustomGallery,{layoutRef:c,ui:s.default,options:n,id:o,onOpen:i},t,l.default.createElement(f.DefaultLayout,r({},a,{ref:c})))},t.Gallery.propTypes=r(r({},p.baseGalleryPropTypes),f.layoutPropTypes)},46930:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.shuffle=t.sortNodes=t.getElBounds=void 0;var i=n(56777);t.getElBounds=function(e){var t=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop,r=e.getBoundingClientRect();return{x:r.left+t,y:r.top+n,w:r.width}},t.sortNodes=function(e,t){if(!(e instanceof Element))throw new i.NoRefError;return e===t?0:2&e.compareDocumentPosition(t)?1:-1},t.shuffle=function(e){for(var t,n,i=o([],r(e),!1),a=i.length;0!==a;)n=Math.floor(Math.random()*a),t=i[a-=1],i[a]=i[n],i[n]=t;return i}},32378:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useGallery=void 0;var o=r(n(84258)),i=n(26598);t.useGallery=function(){return{open:o.default.useContext(i.Context).open}}},32520:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(31883),t),o(n(93694),t),o(n(48683),t),o(n(36033),t),o(n(75127),t),o(n(32378),t)},36033:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Item=void 0;var i=n(84258),a=o(n(53486)),u=n(26598);t.Item=function(e){var t=e.children,n=r(e,["children"]),o=(0,i.useRef)(),a=(0,i.useContext)(u.Context),c=a.remove,s=a.set,l=a.handleClick,f=(0,i.useCallback)((function(){return l(o)}),[]);return(0,i.useEffect)((function(){return s(o,n),function(){return c(o)}}),Object.values(n)),t({ref:o,open:f})},t.Item.propTypes={original:a.default.string,thumbnail:a.default.string,width:a.default.oneOfType([a.default.number,a.default.string]),height:a.default.oneOfType([a.default.number,a.default.string]),title:a.default.string,html:a.default.string,children:a.default.func.isRequired,id:a.default.oneOfType([a.default.number,a.default.string])}},56777:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.NoRefError=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.message="No valid `ref` provided.\nYou shuld use `ref` from render prop of Item component.\nExample:\n<Item>{({ ref }) => <div ref={ref}></div>}</Item>\n",t}return r(t,e),t}(Error);t.NoRefError=o},31883:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultLayout=t.layoutDefaultProps=t.layoutPropTypes=void 0;var a=i(n(84258)),u=i(n(53486));t.layoutPropTypes={closeButtonCaption:u.default.string,shareButtonCaption:u.default.string,toggleFullscreenButtonCaption:u.default.string,zoomButtonCaption:u.default.string,prevButtonCaption:u.default.string,nextButtonCaption:u.default.string,shareButton:u.default.bool,fullscreenButton:u.default.bool,zoomButton:u.default.bool},t.layoutDefaultProps={closeButtonCaption:"Close (Esc)",shareButtonCaption:"Share",toggleFullscreenButtonCaption:"Toggle fullscreen",zoomButtonCaption:"Zoom in/out",prevButtonCaption:"Previous (arrow left)",nextButtonCaption:"Next (arrow right)",shareButton:!0,fullscreenButton:!0,zoomButton:!0},t.DefaultLayout=a.default.forwardRef((function(e,t){var n=e.closeButtonCaption,i=e.shareButtonCaption,u=e.toggleFullscreenButtonCaption,c=e.zoomButtonCaption,s=e.prevButtonCaption,l=e.nextButtonCaption,f=e.shareButton,p=e.fullscreenButton,d=e.zoomButton,h=o(e,["closeButtonCaption","shareButtonCaption","toggleFullscreenButtonCaption","zoomButtonCaption","prevButtonCaption","nextButtonCaption","shareButton","fullscreenButton","zoomButton"]);return a.default.createElement("div",r({className:"pswp",tabIndex:-1,role:"dialog","aria-hidden":"true"},h,{ref:t}),a.default.createElement("div",{className:"pswp__bg"}),a.default.createElement("div",{className:"pswp__scroll-wrap"},a.default.createElement("div",{className:"pswp__container"},a.default.createElement("div",{className:"pswp__item"}),a.default.createElement("div",{className:"pswp__item"}),a.default.createElement("div",{className:"pswp__item"})),a.default.createElement("div",{className:"pswp__ui pswp__ui--hidden"},a.default.createElement("div",{className:"pswp__top-bar"},a.default.createElement("div",{className:"pswp__counter"}),a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--close",title:n}),f&&a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--share",title:i}),p&&a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--fs",title:u}),d&&a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--zoom",title:c}),a.default.createElement("div",{className:"pswp__preloader"},a.default.createElement("div",{className:"pswp__preloader__icn"},a.default.createElement("div",{className:"pswp__preloader__cut"},a.default.createElement("div",{className:"pswp__preloader__donut"}))))),a.default.createElement("div",{className:"pswp__share-modal pswp__share-modal--hidden pswp__single-tap"},a.default.createElement("div",{className:"pswp__share-tooltip"})),a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--arrow--left",title:s}),a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--arrow--right",title:l}),a.default.createElement("div",{className:"pswp__caption"},a.default.createElement("div",{className:"pswp__caption__center"})))))})),t.DefaultLayout.propTypes=t.layoutPropTypes,t.DefaultLayout.defaultProps=t.layoutDefaultProps},75127:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},72466:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Provider:()=>l,connect:()=>z,connectAdvanced:()=>j,createProvider:()=>s});var r=n(85854),o=n(84258),i=n(25732),a=n.n(i),u=a().shape({trySubscribe:a().func.isRequired,tryUnsubscribe:a().func.isRequired,notifyNestedSubs:a().func.isRequired,isSubscribed:a().func.isRequired}),c=a().shape({subscribe:a().func.isRequired,dispatch:a().func.isRequired,getState:a().func.isRequired});o.forwardRef;function s(e){var t;void 0===e&&(e="store");var n=e+"Subscription",i=function(t){(0,r.Z)(a,t);var i=a.prototype;function a(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return i.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},i.render=function(){return o.Children.only(this.props.children)},a}(o.Component);return i.propTypes={store:c.isRequired,children:a().element.isRequired},i.childContextTypes=((t={})[e]=c.isRequired,t[n]=u,t),i}const l=s();var f=n(5573),p=n(30513),d=n(3812),h=n(37707),y=n.n(h),m=n(83021),v=n.n(m),g=n(2781),b=null,w={notify:function(){}};var O=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=w}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=b,e=b},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==b&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=w)},e}(),E=void 0!==o.forwardRef,_=0,x={};function S(){}function j(e,t){var n,i;void 0===t&&(t={});var a=t,s=a.getDisplayName,l=void 0===s?function(e){return"ConnectAdvanced("+e+")"}:s,h=a.methodName,m=void 0===h?"connectAdvanced":h,b=a.renderCountProp,w=void 0===b?void 0:b,j=a.shouldHandleStateChanges,P=void 0===j||j,k=a.storeKey,I=void 0===k?"store":k,T=a.withRef,R=void 0!==T&&T,C=(0,d.Z)(a,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),A=I+"Subscription",N=_++,L=((n={})[I]=c,n[A]=u,n),D=((i={})[A]=u,i);return function(t){v()((0,g.isValidElementType)(t),"You must pass a component to the function returned by "+m+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=l(n),a=(0,p.Z)({},C,{getDisplayName:l,methodName:m,renderCountProp:w,shouldHandleStateChanges:P,storeKey:I,withRef:R,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=function(n){function u(e,t){var r;return(r=n.call(this,e,t)||this).version=N,r.state={},r.renderCount=0,r.store=e[I]||t[I],r.propsMode=Boolean(e[I]),r.setWrappedInstance=r.setWrappedInstance.bind((0,f.Z)((0,f.Z)(r))),v()(r.store,'Could not find "'+I+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+I+'" as a prop to "'+i+'".'),r.initSelector(),r.initSubscription(),r}(0,r.Z)(u,n);var c=u.prototype;return c.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[A]=t||this.context[A],e},c.componentDidMount=function(){P&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.componentWillReceiveProps=function(e){this.selector.run(e)},c.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=S,this.store=null,this.selector.run=S,this.selector.shouldComponentUpdate=!1},c.getWrappedInstance=function(){return v()(R,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+m+"() call."),this.wrappedInstance},c.setWrappedInstance=function(e){this.wrappedInstance=e},c.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},c.initSubscription=function(){if(P){var e=(this.propsMode?this.props:this.context)[A];this.subscription=new O(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(x)):this.notifyNestedSubs()},c.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.addExtraProps=function(e){if(!(R||w||this.propsMode&&this.subscription))return e;var t=(0,p.Z)({},e);return R&&(t.ref=this.setWrappedInstance),w&&(t[w]=this.renderCount++),this.propsMode&&this.subscription&&(t[A]=this.subscription),t},c.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,o.createElement)(t,this.addExtraProps(e.props))},u}(o.Component);return E&&(u.prototype.UNSAFE_componentWillReceiveProps=u.prototype.componentWillReceiveProps,delete u.prototype.componentWillReceiveProps),u.WrappedComponent=t,u.displayName=i,u.childContextTypes=D,u.contextTypes=L,u.propTypes=L,y()(u,t)}}var P=Object.prototype.hasOwnProperty;function k(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function I(e,t){if(k(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!P.call(t,n[o])||!k(e[n[o]],t[n[o]]))return!1;return!0}var T=n(51324);function R(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function C(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=C(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=C(o),o=r(t,n)),o},r}}const N=[function(e){return"function"==typeof e?A(e):void 0},function(e){return e?void 0:R((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?R((function(t){return(0,T.DE)(e,t)})):void 0}];const L=[function(e){return"function"==typeof e?A(e):void 0},function(e){return e?void 0:R((function(){return{}}))}];function D(e,t,n){return(0,p.Z)({},n,e,t)}const M=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,u){var c=e(t,n,u);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return D}}];function F(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function U(e,t,n,r,o){var i,a,u,c,s,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function h(o,d){var h,y,m=!f(d,a),v=!l(o,i);return i=o,a=d,m&&v?(u=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):m?(e.dependsOnOwnProps&&(u=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):v?(h=e(i,a),y=!p(h,u),u=h,y&&(s=n(u,c,a)),s):s}return function(o,l){return d?h(o,l):(u=e(i=o,a=l),c=t(r,a),s=n(u,c,a),d=!0,s)}}function B(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,d.Z)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),c=o(e,i);return(i.pure?U:F)(a,u,c,e,i)}function H(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function q(e,t){return e===t}const z=(V=(W=void 0===G?{}:G).connectHOC,Y=void 0===V?j:V,Z=W.mapStateToPropsFactories,$=void 0===Z?L:Z,K=W.mapDispatchToPropsFactories,Q=void 0===K?N:K,X=W.mergePropsFactories,J=void 0===X?M:X,ee=W.selectorFactory,te=void 0===ee?B:ee,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,u=o.areStatesEqual,c=void 0===u?q:u,s=o.areOwnPropsEqual,l=void 0===s?I:s,f=o.areStatePropsEqual,h=void 0===f?I:f,y=o.areMergedPropsEqual,m=void 0===y?I:y,v=(0,d.Z)(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),g=H(e,$,"mapStateToProps"),b=H(t,Q,"mapDispatchToProps"),w=H(n,J,"mergeProps");return Y(te,(0,p.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:g,initMapDispatchToProps:b,initMergeProps:w,pure:a,areStatesEqual:c,areOwnPropsEqual:l,areStatePropsEqual:h,areMergedPropsEqual:m},v))});var G,W,V,Y,Z,$,K,Q,X,J,ee,te},11023:(e,t,n)=>{"use strict";var r=n(631);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},25732:(e,t,n)=>{e.exports=n(11023)()},631:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},85201:(e,t,n)=>{"use strict";var r=n(8306);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},58137:(e,t,n)=>{e.exports=n(85201)()},8306:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},68597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(16727),o=n.n(r),i=n(83021),a=n.n(i),u=n(84258),c=n(24451),s=n.n(c),l=n(70454),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){return 0===u.Children.count(e)},y=function(e){function t(){var n,r;p(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,e.call.apply(e,[this].concat(i))),r.state={match:r.computeMatch(r.props,r.context.router)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:f({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,o=e.path,i=e.strict,u=e.exact,c=e.sensitive;if(n)return n;a()(t,"You should not use <Route> or withRouter() outside a <Router>");var s=t.route,f=(r||s.location).pathname;return(0,l.Z)(f,{path:o,strict:i,exact:u,sensitive:c},s.match)},t.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),o()(!(this.props.component&&this.props.children&&!h(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),o()(!(this.props.render&&this.props.children&&!h(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,c=i.route,s=i.staticContext,l={match:e,location:this.props.location||c.location,history:a,staticContext:s};return r?e?u.createElement(r,l):null:o?e?o(l):null:"function"==typeof n?n(l):n&&!h(n)?u.Children.only(n):null},t}(u.Component);y.propTypes={computedMatch:s().object,path:s().string,exact:s().bool,strict:s().bool,sensitive:s().bool,component:s().func,render:s().func,children:s().oneOfType([s().func,s().node]),location:s().object},y.contextTypes={router:s().shape({history:s().object.isRequired,route:s().object.isRequired,staticContext:s().object})},y.childContextTypes={router:s().object.isRequired};const m=y},49950:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(84258),o=n(24451),i=n.n(o),a=n(16727),u=n.n(a),c=n(83021),s=n.n(c),l=n(70454);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){return f(this,t),p(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){s()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){u()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),u()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,o=void 0,i=void 0;return r.Children.forEach(t,(function(t){if(null==o&&r.isValidElement(t)){var a=t.props,u=a.path,c=a.exact,s=a.strict,f=a.sensitive,p=a.from,d=u||p;i=t,o=(0,l.Z)(n.pathname,{path:d,exact:c,strict:s,sensitive:f},e.match)}})),o?r.cloneElement(i,{location:n,computedMatch:o}):null},t}(r.Component);d.contextTypes={router:i().shape({route:i().object.isRequired}).isRequired},d.propTypes={children:i().node,location:i().object};const h=d},91499:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MemoryRouter:()=>b,Prompt:()=>_,Redirect:()=>N,Route:()=>L.Z,Router:()=>y,StaticRouter:()=>V,Switch:()=>Y.Z,generatePath:()=>I,matchPath:()=>Z.Z,withRouter:()=>$.Z});var r=n(16727),o=n.n(r),i=n(84258),a=n(24451),u=n.n(a),c=n(90528),s=n(83021),l=n.n(s),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){var n,r;p(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,e.call.apply(e,[this].concat(i))),r.state={match:r.computeMatch(r.props.history.location.pathname)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:f({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;l()(null==n||1===i.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen((function(){e.setState({match:e.computeMatch(r.location.pathname)})}))},t.prototype.componentWillReceiveProps=function(e){o()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?i.Children.only(e):null},t}(i.Component);h.propTypes={history:u().object.isRequired,children:u().node},h.contextTypes={router:u().object},h.childContextTypes={router:u().object.isRequired};const y=h;function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=function(e){function t(){var n,r;m(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=v(this,e.call.apply(e,[this].concat(i))),r.history=(0,c.PP)(r.props),v(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){o()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return i.createElement(y,{history:this.history,children:this.props.children})},t}(i.Component);g.propTypes={initialEntries:u().array,initialIndex:u().number,getUserConfirmation:u().func,keyLength:u().number,children:u().node};const b=g;function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var E=function(e){function t(){return w(this,t),O(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){l()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(i.Component);E.propTypes={when:u().bool,message:u().oneOfType([u().func,u().string]).isRequired},E.defaultProps={when:!0},E.contextTypes={router:u().shape({history:u().shape({block:u().func.isRequired}).isRequired}).isRequired};const _=E;var x=n(6967),S=n.n(x),j={},P=0,k=function(e){var t=e,n=j[t]||(j[t]={});if(n[e])return n[e];var r=S().compile(e);return P<1e4&&(n[e]=r,P++),r};const I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("/"===e)return e;var n=k(e);return n(t,{pretty:!0})};var T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var A=function(e){function t(){return R(this,t),C(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){l()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=(0,c.ob)(e.to),n=(0,c.ob)(this.props.to);(0,c.Hp)(t,n)?o()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?I(n,t.params):T({},n,{pathname:I(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(i.Component);A.propTypes={computedMatch:u().object,push:u().bool,from:u().string,to:u().oneOfType([u().string,u().object]).isRequired},A.defaultProps={push:!1},A.contextTypes={router:u().shape({history:u().shape({push:u().func.isRequired,replace:u().func.isRequired}).isRequired,staticContext:u().object}).isRequired};const N=A;var L=n(68597),D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var U=function(e){return"/"===e.charAt(0)?e:"/"+e},B=function(e,t){return e?D({},t,{pathname:U(e)+t.pathname}):t},H=function(e,t){if(!e)return t;var n=U(e);return 0!==t.pathname.indexOf(n)?t:D({},t,{pathname:t.pathname.substr(n.length)})},q=function(e){return"string"==typeof e?e:(0,c.Ep)(e)},z=function(e){return function(){l()(!1,"You cannot %s with <StaticRouter>",e)}},G=function(){},W=function(e){function t(){var n,r;M(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=F(this,e.call.apply(e,[this].concat(i))),r.createHref=function(e){return U(r.props.basename+q(e))},r.handlePush=function(e){var t=r.props,n=t.basename,o=t.context;o.action="PUSH",o.location=B(n,(0,c.ob)(e)),o.url=q(o.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,o=t.context;o.action="REPLACE",o.location=B(n,(0,c.ob)(e)),o.url=q(o.location)},r.handleListen=function(){return G},r.handleBlock=function(){return G},F(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){o()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:H(t,(0,c.ob)(n)),push:this.handlePush,replace:this.handleReplace,go:z("go"),goBack:z("goBack"),goForward:z("goForward"),listen:this.handleListen,block:this.handleBlock};return i.createElement(y,D({},r,{history:o}))},t}(i.Component);W.propTypes={basename:u().string,context:u().object.isRequired,location:u().oneOfType([u().string,u().object])},W.defaultProps={basename:"",location:"/"},W.childContextTypes={router:u().object.isRequired};const V=W;var Y=n(49950),Z=n(70454),$=n(10153)},70454:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(6967),o=n.n(r),i={},a=0,u=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var u=[],c={re:o()(e,u,t),keys:u};return a<1e4&&(r[e]=c,a++),c};const c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,o=r.path,i=r.exact,a=void 0!==i&&i,c=r.strict,s=void 0!==c&&c,l=r.sensitive,f=void 0!==l&&l;if(null==o)return n;var p=u(o,{end:a,strict:s,sensitive:f}),d=p.re,h=p.keys,y=d.exec(e);if(!y)return null;var m=y[0],v=y.slice(1),g=e===m;return a&&!g?null:{path:o,url:"/"===o&&""===m?"/":m,isExact:g,params:h.reduce((function(e,t,n){return e[t.name]=v[n],e}),{})}}},10153:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(84258),o=n(24451),i=n.n(o),a=n(71471),u=n.n(a),c=n(68597),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};const l=function(e){var t=function(t){var n=t.wrappedComponentRef,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return r.createElement(c.Z,{children:function(t){return r.createElement(e,s({},o,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:i().func},u()(t,e)}},71471:e=>{"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,c=u&&u(Object);e.exports=function e(s,l,f){if("string"!=typeof l){if(c){var p=u(l);p&&p!==c&&e(s,p,f)}var d=o(l);i&&(d=d.concat(i(l)));for(var h=0;h<d.length;++h){var y=d[h];if(!(t[y]||n[y]||f&&f[y])){var m=a(l,y);try{r(s,y,m)}catch(e){}}}return s}return s}},2717:(e,t,n)=>{"use strict";var r=n(45775);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},24451:(e,t,n)=>{e.exports=n(2717)()},45775:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},99890:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(84258),i=r(o),a=r(n(44167));function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var s,l=[];function f(){s=e(l.map((function(e){return e.props}))),p.canUseDOM?t(s):n&&(s=n(s))}var p=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return s},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=s;return s=void 0,l=[],e};var u=o.prototype;return u.shouldComponentUpdate=function(e){return!a(e,this.props)},u.componentWillMount=function(){l.push(this),f()},u.componentDidUpdate=function(){f()},u.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),f()},u.render=function(){return i.createElement(r,this.props)},o}(o.Component);return u(p,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),u(p,"canUseDOM",c),p}}},16039:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n(84258)),i=c(n(53486)),a=n(87095),u=c(n(22705));function c(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(c,e);var t,n,r,i=p(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,e)).state={headers:{}},t}return t=c,(n=[{key:"render",value:function(){var e=this.state.headers,t=this.props,n=t.className,r=t.forwardedRef,i="".concat(n||""," responsiveTable");return o.default.createElement(a.Provider,{value:e},o.default.createElement("table",s({"data-testid":"table"},(0,u.default)(this.props),{className:i,ref:r})))}}])&&l(t.prototype,n),r&&l(t,r),c}(o.default.Component);y.propTypes={className:i.default.string,forwardedRef:i.default.oneOfType([i.default.func,i.default.shape({current:i.default.instanceOf(n.g.Element)})])},y.defaultProps={className:void 0,forwardedRef:void 0};var m=o.default.forwardRef((function(e,t){return o.default.createElement(y,s({},e,{forwardedRef:t}))}));m.displayName=y.name;var v=m;t.default=v},92341:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(84258)),o=i(n(22705));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=function(e){return r.default.createElement("tbody",a({"data-testid":"tbody"},(0,o.default)(e)))};t.default=u},95891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(84258)),o=n(87095),i=a(n(74497));function a(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=function(e){return r.default.createElement(o.Consumer,null,(function(t){return r.default.createElement(i.default,u({},e,{headers:t}))}))};t.default=c},74497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(84258)),o=a(n(53486)),i=a(n(22705));function a(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=function(e){var t=e.headers,n=e.children,o=e.columnKey,a=e.className,c=e.colSpan,s="".concat(a||""," pivoted");return c?r.default.createElement("td",u({"data-testid":"td"},(0,i.default)(e))):r.default.createElement("td",u({"data-testid":"td"},(0,i.default)(e),{className:s}),r.default.createElement("div",{"data-testid":"td-before",className:"tdBefore"},t[o]),null!=n?n:r.default.createElement("div",null," "))};c.propTypes={children:o.default.node,headers:o.default.shape({}),columnKey:o.default.number,className:o.default.string,colSpan:o.default.oneOfType([o.default.number,o.default.string])},c.defaultProps={children:void 0,headers:void 0,columnKey:void 0,className:void 0,colSpan:void 0};var s=c;t.default=s},20344:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(84258)),o=i(n(22705));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=function(e){return r.default.createElement("th",a({"data-testid":"th"},(0,o.default)(e)))};t.default=u},10201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(84258)),o=a(n(53486)),i=a(n(22705));function a(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=function(e){var t=e.children;return r.default.createElement("thead",u({"data-testid":"thead"},(0,i.default)(e)),r.default.cloneElement(t,{inHeader:!0}))};c.propTypes={children:o.default.node},c.defaultProps={children:void 0};var s=c;t.default=s},61333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(84258)),o=n(87095),i=a(n(16148));function a(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=function(e){return r.default.createElement(o.Consumer,null,(function(t){return r.default.createElement(i.default,u({},e,{headers:t}))}))};t.default=c},16148:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(n(84258)),i=u(n(53486)),a=u(n(22705));function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,e);var t,n,r,i=f(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t=i.call(this,e);var n=e.headers;return n&&e.inHeader&&o.default.Children.map(e.children,(function(e,t){e&&(n[t]=e.props.children)})),t}return t=u,(n=[{key:"render",value:function(){var e=this.props.children;return o.default.createElement("tr",c({"data-testid":"tr"},(0,a.default)(this.props)),e&&o.default.Children.map(e,(function(e,t){return e&&o.default.cloneElement(e,{key:t,columnKey:t})})))}}])&&s(t.prototype,n),r&&s(t,r),u}(o.default.Component);h.propTypes={children:i.default.node,headers:i.default.shape({}),inHeader:i.default.bool},h.defaultProps={children:void 0,headers:void 0,inHeader:void 0};var y=h;t.default=y},73331:(e,t,n)=>{"use strict";Object.defineProperty(t,"iA",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"p3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Td",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Th",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"hr",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Tr",{enumerable:!0,get:function(){return c.default}});var r=s(n(16039)),o=s(n(92341)),i=s(n(95891)),a=s(n(20344)),u=s(n(10201)),c=s(n(61333));function s(e){return e&&e.__esModule?e:{default:e}}},22705:(e,t)=>{"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){return t=e,n=["inHeader","columnKey","headers","forwardedRef"],Object.keys(t).filter((function(e){return-1===n.indexOf(e)})).reduce((function(e,n){return r(r({},e),{},o({},n,t[n]))}),{});var t,n};t.default=i},87095:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Consumer=t.Provider=void 0;var o=((r=n(84258))&&r.__esModule?r:{default:r}).default.createContext({}),i=o.Provider,a=o.Consumer;t.Consumer=a,t.Provider=i},47311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i,a=n(14223),u=(i=a)&&i.__esModule?i:{default:i},c=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),i=n[0],a=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var s=n.map((function(e){return i[e]})).filter(c);return"string"==typeof s[0]||"function"==typeof a?{key:e,className:a?a.apply(void 0,o(s)):s.join(" ")}:{key:e,style:u.default.apply(void 0,[{}].concat(o(s)))}}},e.exports=t.default},14223:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var o,i,a=n(e),u=1;u<arguments.length;u++){o=arguments[u],i=r(Object(o));for(var c=0;c<i.length;c++)a[i[c]]=o[i[c]]}return a}},84982:(e,t,n)=>{"use strict";var r=n(59296);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},19115:(e,t,n)=>{e.exports=n(84982)()},59296:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},32867:(e,t,n)=>{"use strict";var r=n(28608),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,u=60110,c=60112;t.Suspense=60113;var s=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),u=f("react.context"),c=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),l=f("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function m(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function v(){}function g(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var b=g.prototype=new v;b.constructor=g,r(b,m.prototype),b.isPureReactComponent=!0;var w={current:null},O=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,i={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)O.call(t,r)&&!E.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:u,props:i,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var S=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,n,r,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c=!1;if(null===e)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case o:case i:c=!0}}if(c)return a=a(c=e),e=""===r?"."+j(c,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),P(a,t,n,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(c=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var l=r+j(u=e[s],s);c+=P(u,t,n,l,a)}else if("function"==typeof(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),s=0;!(u=e.next()).done;)c+=P(u=u.value,t,n,l=r+j(u,s++),a);else if("object"===u)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function k(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function R(){var e=T.current;if(null===e)throw Error(d(321));return e}var C={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:k,forEach:function(e,t,n){k(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(d(143));return e}},t.Component=m,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C,t.cloneElement=function(e,t,n){if(null==e)throw Error(d(267,e));var i=r({},e.props),a=e.key,u=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,c=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)O.call(t,l)&&!E.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){s=Array(l);for(var f=0;f<l;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,type:e.type,key:a,ref:u,props:i,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return R().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,n){return R().useReducer(e,t,n)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},84258:(e,t,n)=>{"use strict";e.exports=n(32867)},13586:function(e,t,n){!function(e){"use strict";function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function r(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function o(e,t,n){o.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function u(e,t,n){u.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function c(e,t,n){var r=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,r),e}function s(e){var t=void 0===e?"undefined":T(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function l(e,t,n,r,f,p,d){d=d||[];var h=(f=f||[]).slice(0);if(void 0!==p){if(r){if("function"==typeof r&&r(h,p))return;if("object"===(void 0===r?"undefined":T(r))){if(r.prefilter&&r.prefilter(h,p))return;if(r.normalize){var y=r.normalize(h,p,e,t);y&&(e=y[0],t=y[1])}}}h.push(p)}"regexp"===s(e)&&"regexp"===s(t)&&(e=e.toString(),t=t.toString());var m=void 0===e?"undefined":T(e),v=void 0===t?"undefined":T(t),g="undefined"!==m||d&&d[d.length-1].lhs&&d[d.length-1].lhs.hasOwnProperty(p),b="undefined"!==v||d&&d[d.length-1].rhs&&d[d.length-1].rhs.hasOwnProperty(p);if(!g&&b)n(new i(h,t));else if(!b&&g)n(new a(h,e));else if(s(e)!==s(t))n(new o(h,e,t));else if("date"===s(e)&&e-t!=0)n(new o(h,e,t));else if("object"===m&&null!==e&&null!==t)if(d.filter((function(t){return t.lhs===e})).length)e!==t&&n(new o(h,e,t));else{if(d.push({lhs:e,rhs:t}),Array.isArray(e)){var w;for(e.length,w=0;w<e.length;w++)w>=t.length?n(new u(h,w,new a(void 0,e[w]))):l(e[w],t[w],n,r,h,w,d);for(;w<t.length;)n(new u(h,w,new i(void 0,t[w++])))}else{var O=Object.keys(e),E=Object.keys(t);O.forEach((function(o,i){var a=E.indexOf(o);a>=0?(l(e[o],t[o],n,r,h,o,d),E=c(E,a)):l(e[o],void 0,n,r,h,o,d)})),E.forEach((function(e){l(void 0,t[e],n,r,h,e,d)}))}d.length=d.length-1}else e!==t&&("number"===m&&isNaN(e)&&isNaN(t)||n(new o(h,e,t)))}function f(e,t,n,r){return r=r||[],l(e,t,(function(e){e&&r.push(e)}),n),r.length?r:void 0}function p(e,t,n){if(n.path&&n.path.length){var r,o=e[t],i=n.path.length-1;for(r=0;r<i;r++)o=o[n.path[r]];switch(n.kind){case"A":p(o[n.path[r]],n.index,n.item);break;case"D":delete o[n.path[r]];break;case"E":case"N":o[n.path[r]]=n.rhs}}else switch(n.kind){case"A":p(e[t],n.index,n.item);break;case"D":e=c(e,t);break;case"E":case"N":e[t]=n.rhs}return e}function d(e,t,n){if(e&&t&&n&&n.kind){for(var r=e,o=-1,i=n.path?n.path.length-1:0;++o<i;)void 0===r[n.path[o]]&&(r[n.path[o]]="number"==typeof n.path[o]?[]:{}),r=r[n.path[o]];switch(n.kind){case"A":p(n.path?r[n.path[o]]:r,n.index,n.item);break;case"D":delete r[n.path[o]];break;case"E":case"N":r[n.path[o]]=n.rhs}}}function h(e,t,n){if(n.path&&n.path.length){var r,o=e[t],i=n.path.length-1;for(r=0;r<i;r++)o=o[n.path[r]];switch(n.kind){case"A":h(o[n.path[r]],n.index,n.item);break;case"D":case"E":o[n.path[r]]=n.lhs;break;case"N":delete o[n.path[r]]}}else switch(n.kind){case"A":h(e[t],n.index,n.item);break;case"D":case"E":e[t]=n.lhs;break;case"N":e=c(e,t)}return e}function y(e,t,n){if(e&&t&&n&&n.kind){var r,o,i=e;for(o=n.path.length-1,r=0;r<o;r++)void 0===i[n.path[r]]&&(i[n.path[r]]={}),i=i[n.path[r]];switch(n.kind){case"A":h(i[n.path[r]],n.index,n.item);break;case"D":case"E":i[n.path[r]]=n.lhs;break;case"N":delete i[n.path[r]]}}}function m(e,t,n){e&&t&&l(e,t,(function(r){n&&!n(e,t,r)||d(e,t,r)}))}function v(e){return"color: "+A[e].color+"; font-weight: bold"}function g(e){var t=e.kind,n=e.path,r=e.lhs,o=e.rhs,i=e.index,a=e.item;switch(t){case"E":return[n.join("."),r,"→",o];case"N":return[n.join("."),o];case"D":return[n.join(".")];case"A":return[n.join(".")+"["+i+"]",a];default:return[]}}function b(e,t,n,r){var o=f(e,t);try{r?n.groupCollapsed("diff"):n.group("diff")}catch(e){n.log("diff")}o?o.forEach((function(e){var t=e.kind,r=g(e);n.log.apply(n,["%c "+A[t].text,v(t)].concat(R(r)))})):n.log("—— no diff ——");try{n.groupEnd()}catch(e){n.log("—— diff end —— ")}}function w(e,t,n,r){switch(void 0===e?"undefined":T(e)){case"object":return"function"==typeof e[r]?e[r].apply(e,R(n)):e[r];case"function":return e(t);default:return e}}function O(e){var t=e.timestamp,n=e.duration;return function(e,r,o){var i=["action"];return i.push("%c"+String(e.type)),t&&i.push("%c@ "+r),n&&i.push("%c(in "+o.toFixed(2)+" ms)"),i.join(" ")}}function E(e,t){var n=t.logger,r=t.actionTransformer,o=t.titleFormatter,i=void 0===o?O(t):o,a=t.collapsed,u=t.colors,c=t.level,s=t.diff,l=void 0===t.titleFormatter;e.forEach((function(o,f){var p=o.started,d=o.startedTime,h=o.action,y=o.prevState,m=o.error,v=o.took,g=o.nextState,O=e[f+1];O&&(g=O.prevState,v=O.started-p);var E=r(h),_="function"==typeof a?a((function(){return g}),h,o):a,x=k(d),S=u.title?"color: "+u.title(E)+";":"",j=["color: gray; font-weight: lighter;"];j.push(S),t.timestamp&&j.push("color: gray; font-weight: lighter;"),t.duration&&j.push("color: gray; font-weight: lighter;");var P=i(E,x,v);try{_?u.title&&l?n.groupCollapsed.apply(n,["%c "+P].concat(j)):n.groupCollapsed(P):u.title&&l?n.group.apply(n,["%c "+P].concat(j)):n.group(P)}catch(e){n.log(P)}var I=w(c,E,[y],"prevState"),T=w(c,E,[E],"action"),R=w(c,E,[m,y],"error"),C=w(c,E,[g],"nextState");if(I)if(u.prevState){var A="color: "+u.prevState(y)+"; font-weight: bold";n[I]("%c prev state",A,y)}else n[I]("prev state",y);if(T)if(u.action){var N="color: "+u.action(E)+"; font-weight: bold";n[T]("%c action ",N,E)}else n[T]("action ",E);if(m&&R)if(u.error){var L="color: "+u.error(m,y)+"; font-weight: bold;";n[R]("%c error ",L,m)}else n[R]("error ",m);if(C)if(u.nextState){var D="color: "+u.nextState(g)+"; font-weight: bold";n[C]("%c next state",D,g)}else n[C]("next state",g);s&&b(y,g,n,_);try{n.groupEnd()}catch(e){n.log("—— log end ——")}}))}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},N,e),n=t.logger,r=t.stateTransformer,o=t.errorTransformer,i=t.predicate,a=t.logErrors,u=t.diffPredicate;if(void 0===n)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return function(){return function(e){return function(t){return e(t)}}};var c=[];return function(e){var n=e.getState;return function(e){return function(s){if("function"==typeof i&&!i(n,s))return e(s);var l={};c.push(l),l.started=I.now(),l.startedTime=new Date,l.prevState=r(n()),l.action=s;var f=void 0;if(a)try{f=e(s)}catch(e){l.error=o(e)}else f=e(s);l.took=I.now()-l.started,l.nextState=r(n());var p=t.diff&&"function"==typeof u?u(n,s):t.diff;if(E(c,Object.assign({},t,{diff:p})),c.length=0,l.error)throw l.error;return f}}}}var x,S,j=function(e,t){return new Array(t+1).join(e)},P=function(e,t){return j("0",t-e.toString().length)+e},k=function(e){return P(e.getHours(),2)+":"+P(e.getMinutes(),2)+":"+P(e.getSeconds(),2)+"."+P(e.getMilliseconds(),3)},I="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},C=[];x="object"===(void 0===n.g?"undefined":T(n.g))&&n.g?n.g:"undefined"!=typeof window?window:{},(S=x.DeepDiff)&&C.push((function(){void 0!==S&&x.DeepDiff===f&&(x.DeepDiff=S,S=void 0)})),t(o,r),t(i,r),t(a,r),t(u,r),Object.defineProperties(f,{diff:{value:f,enumerable:!0},observableDiff:{value:l,enumerable:!0},applyDiff:{value:m,enumerable:!0},applyChange:{value:d,enumerable:!0},revertChange:{value:y,enumerable:!0},isConflict:{value:function(){return void 0!==S},enumerable:!0},noConflict:{value:function(){return C&&(C.forEach((function(e){e()})),C=null),f},enumerable:!0}});var A={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},N={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,n=e.getState;return"function"==typeof t||"function"==typeof n?_()({dispatch:t,getState:n}):void 0};e.defaults=N,e.createLogger=_,e.logger=L,e.default=L,Object.defineProperty(e,"__esModule",{value:!0})}(t)},56325:(e,t)=>{"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.gw=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=void 0,r=new Promise((function(r){n=setTimeout((function(){return r(t)}),e)}));return r[u]=function(){return clearTimeout(n)},r};var o=function(e){return"@@redux-saga/"+e},i=o("TASK"),a=o("HELPER"),u=(o("MATCH"),o("CANCEL_PROMISE")),c=o("SAGA_ACTION"),s=(o("SELF_CANCELLATION"),function(e){return function(){return e}});s(!0),s(!1);var l=Object.prototype.hasOwnProperty;function f(e,t){return p.notUndef(e)&&l.call(e,t)}var p={undef:function(e){return null==e},notUndef:function(e){return null!=e},func:function(e){return"function"==typeof e},number:function(e){return"number"==typeof e},string:function(e){return"string"==typeof e},array:Array.isArray,object:function(e){return e&&!p.array(e)&&"object"===(void 0===e?"undefined":r(e))},promise:function(e){return e&&p.func(e.then)},iterator:function(e){return e&&p.func(e.next)&&p.func(e.throw)},iterable:function(e){return e&&p.func(Symbol)?p.func(e[Symbol.iterator]):p.array(e)},task:function(e){return e&&e[i]},observable:function(e){return e&&p.func(e.subscribe)},buffer:function(e){return e&&p.func(e.isEmpty)&&p.func(e.take)&&p.func(e.put)},pattern:function(e){return e&&(p.string(e)||"symbol"===(void 0===e?"undefined":r(e))||p.func(e)||p.array(e))},channel:function(e){return e&&p.func(e.take)&&p.func(e.close)},helper:function(e){return e&&e[a]},stringableFunc:function(e){return p.func(e)&&f(e,"toString")}};function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n({},e),r=new Promise((function(e,n){t.resolve=e,t.reject=n}));return t.promise=r,t}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(){return++e}}h();var y=function(e){throw e},m=function(e){return{value:e,done:!0}};function v(e,t){}},51324:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.d(t,{md:()=>m,DE:()=>h,UY:()=>p,qC:()=>y,MT:()=>f});var u="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(f)(e,t)}if("function"!=typeof e)throw new Error(a(2));var o=e,i=t,c=[],p=c,d=!1;function h(){p===c&&(p=c.slice())}function y(){if(d)throw new Error(a(3));return i}function m(e){if("function"!=typeof e)throw new Error(a(4));if(d)throw new Error(a(5));var t=!0;return h(),p.push(e),function(){if(t){if(d)throw new Error(a(6));t=!1,h();var n=p.indexOf(e);p.splice(n,1),c=null}}}function v(e){if(!l(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(d)throw new Error(a(9));try{d=!0,i=o(i,e)}finally{d=!1}for(var t=c=p,n=0;n<t.length;n++){(0,t[n])()}return e}function g(e){if("function"!=typeof e)throw new Error(a(10));o=e,v({type:s.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(y())}return n(),{unsubscribe:t(n)}}})[u]=function(){return this},e}return v({type:s.INIT}),(r={dispatch:v,subscribe:m,getState:y,replaceReducer:g})[u]=b,r}function p(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,u=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:s.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},c=0;c<u.length;c++){var s=u[c],l=n[s],f=e[s],p=l(f,t);if(void 0===p){t&&t.type;throw new Error(a(14))}o[s]=p,r=r||p!==f}return(r=r||u.length!==Object.keys(e).length)?o:e}}function d(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error(a(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=d(o,t))}return n}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},u=t.map((function(e){return e(o)}));return r=y.apply(void 0,u)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},39425:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=S(a,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:p,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",y={};function m(){}function v(){}function g(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,O=w&&w(w(I([])));O&&O!==n&&r.call(O,i)&&(b=O);var E=g.prototype=m.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,a,u){var c=l(e[o],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function I(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return v.prototype=E.constructor=g,g.constructor=v,v.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},_(x.prototype),x.prototype[a]=function(){return this},e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(E),c(E,u,"Generator"),E[i]=function(){return this},E.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},62673:(e,t,n)=>{var r=n(16274),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},44238:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,r=e.multiSection;function o(e){var o=t(e,2),i=o[0],a=o[1];return r?null===a||a===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,a+1]:0===n||a===n-1?[null,null]:null===a?[null,0]:[null,a+1]}return{next:o,prev:function(e){var o=t(e,2),i=o[0],a=o[1];return r?null===a||0===a?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,a-1]:0===n||0===a?[null,null]:null===a?[null,n-1]:[null,a-1]},isLast:function(e){return null===o(e)[1]}}}},10017:(e,t,n)=>{"use strict";var r=n(57990),o=function(){for(var e=r(16),t="",n=0;n<16;++n)t+=e[n].toString(16);return t}(),i=new RegExp('(\\\\)?"@__(F|R|D|M|S|A|U|I|B|L)-'+o+'-(\\d+)__@"',"g"),a=/\{\s*\[native code\]\s*\}/g,u=/function.*?\(/,c=/.*?=>.*?/,s=/[<>\/\u2028\u2029]/g,l=["*","async"],f={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function p(e){return f[e]}e.exports=function e(t,n){n||(n={}),"number"!=typeof n&&"string"!=typeof n||(n={space:n});var r,f=[],d=[],h=[],y=[],m=[],v=[],g=[],b=[],w=[],O=[];return n.ignoreFunction&&"function"==typeof t&&(t=void 0),void 0===t?String(t):"string"!=typeof(r=n.isJSON&&!n.space?JSON.stringify(t):JSON.stringify(t,n.isJSON?null:function(e,t){if(n.ignoreFunction&&function(e){var t=[];for(var n in e)"function"==typeof e[n]&&t.push(n);for(var r=0;r<t.length;r++)delete e[t[r]]}(t),!t&&void 0!==t)return t;var r=this[e],i=typeof r;if("object"===i){if(r instanceof RegExp)return"@__R-"+o+"-"+(d.push(r)-1)+"__@";if(r instanceof Date)return"@__D-"+o+"-"+(h.push(r)-1)+"__@";if(r instanceof Map)return"@__M-"+o+"-"+(y.push(r)-1)+"__@";if(r instanceof Set)return"@__S-"+o+"-"+(m.push(r)-1)+"__@";if(r instanceof Array&&r.filter((function(){return!0})).length!==r.length)return"@__A-"+o+"-"+(v.push(r)-1)+"__@";if(r instanceof URL)return"@__L-"+o+"-"+(O.push(r)-1)+"__@"}return"function"===i?"@__F-"+o+"-"+(f.push(r)-1)+"__@":"undefined"===i?"@__U-"+o+"-"+(g.push(r)-1)+"__@":"number"!==i||isNaN(r)||isFinite(r)?"bigint"===i?"@__B-"+o+"-"+(w.push(r)-1)+"__@":t:"@__I-"+o+"-"+(b.push(r)-1)+"__@"},n.space))?String(r):(!0!==n.unsafe&&(r=r.replace(s,p)),0===f.length&&0===d.length&&0===h.length&&0===y.length&&0===m.length&&0===v.length&&0===g.length&&0===b.length&&0===w.length&&0===O.length?r:r.replace(i,(function(t,r,o,i){return r?t:"D"===o?'new Date("'+h[i].toISOString()+'")':"R"===o?"new RegExp("+e(d[i].source)+', "'+d[i].flags+'")':"M"===o?"new Map("+e(Array.from(y[i].entries()),n)+")":"S"===o?"new Set("+e(Array.from(m[i].values()),n)+")":"A"===o?"Array.prototype.slice.call("+e(Object.assign({length:v[i].length},v[i]),n)+")":"U"===o?"undefined":"I"===o?b[i]:"B"===o?'BigInt("'+w[i]+'")':"L"===o?'new URL("'+O[i].toString()+'")':function(e){var t=e.toString();if(a.test(t))throw new TypeError("Serializing native function: "+e.name);if(u.test(t))return t;if(c.test(t))return t;var n=t.indexOf("("),r=t.substr(0,n).trim().split(" ").filter((function(e){return e.length>0}));return r.filter((function(e){return-1===l.indexOf(e)})).length>0?(r.indexOf("async")>-1?"async ":"")+"function"+(r.join("").indexOf("*")>-1?"*":"")+t.substr(n):t}(f[i])})))}},9985:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},44167:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var s=i[c];if(!u(s))return!1;var l=e[s],f=t[s];if(!1===(o=n?n.call(r,l,f,s):void 0)||void 0===o&&l!==f)return!1}return!0}},31059:(e,t,n)=>{"use strict";var r=n(13049),o=n(77352),i=n(50266),a=r("%TypeError%"),u=r("%WeakMap%",!0),c=r("%Map%",!0),s=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),y=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return s(e,r)}else if(c){if(t)return p(t,r)}else if(n)return function(e,t){var n=y(e,t);return n&&n.value}(n,r)},has:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(c){if(t)return h(t,r)}else if(n)return function(e,t){return!!y(e,t)}(n,r);return!1},set:function(r,o){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),l(e,r,o)):c?(t||(t=new c),d(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=y(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},50266:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=u&&c&&"function"==typeof c.get?c.get:null,l=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,y=Function.prototype.toString,m=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,g=Object.getOwnPropertySymbols,b="function"==typeof Symbol?Symbol.prototype.toString:null,w=Object.prototype.propertyIsEnumerable,O=n(69599).custom,E=O&&j(O)?O:null;function _(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function x(e){return String(e).replace(/"/g,"&quot;")}function S(e){return"[object Array]"===I(e)}function j(e){return"[object Symbol]"===I(e)}e.exports=function e(t,n,r,o){var u=n||{};if(k(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(k(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!k(u,"customInspect")||u.customInspect;if("boolean"!=typeof c)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(k(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return R(t,u);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var h=void 0===u.depth?5:u.depth;if(void 0===r&&(r=0),r>=h&&h>0&&"object"==typeof t)return S(t)?"[Array]":"[Object]";var g=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(u,r);if(void 0===o)o=[];else if(T(o,t)>=0)return"[Circular]";function w(t,n,i){if(n&&(o=o.slice()).push(n),i){var a={depth:u.depth};return k(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(t,a,r+1,o)}return e(t,u,r+1,o)}if("function"==typeof t){var O=function(e){if(e.name)return e.name;var t=m.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),P=M(t,w);return"[Function"+(O?": "+O:" (anonymous)")+"]"+(P.length>0?" { "+P.join(", ")+" }":"")}if(j(t)){var C=b.call(t);return"object"==typeof t?A(C):C}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var F="<"+String(t.nodeName).toLowerCase(),U=t.attributes||[],B=0;B<U.length;B++)F+=" "+U[B].name+"="+_(x(U[B].value),"double",u);return F+=">",t.childNodes&&t.childNodes.length&&(F+="..."),F+="</"+String(t.nodeName).toLowerCase()+">"}if(S(t)){if(0===t.length)return"[]";var H=M(t,w);return g&&!function(e){for(var t=0;t<e.length;t++)if(T(e[t],"\n")>=0)return!1;return!0}(H)?"["+D(H,g)+"]":"[ "+H.join(", ")+" ]"}if(function(e){return"[object Error]"===I(e)}(t)){var q=M(t,w);return 0===q.length?"["+String(t)+"]":"{ ["+String(t)+"] "+q.join(", ")+" }"}if("object"==typeof t&&c){if(E&&"function"==typeof t[E])return t[E]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{s.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var z=[];return a.call(t,(function(e,n){z.push(w(n,t,!0)+" => "+w(e,t))})),L("Map",i.call(t),z,g)}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var G=[];return l.call(t,(function(e){G.push(w(e,t))})),L("Set",s.call(t),G,g)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return N("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return N("WeakSet");if(function(e){return"[object Number]"===I(e)}(t))return A(w(Number(t)));if(function(e){return"[object BigInt]"===I(e)}(t))return A(w(v.call(t)));if(function(e){return"[object Boolean]"===I(e)}(t))return A(d.call(t));if(function(e){return"[object String]"===I(e)}(t))return A(w(String(t)));if(!function(e){return"[object Date]"===I(e)}(t)&&!function(e){return"[object RegExp]"===I(e)}(t)){var W=M(t,w);return 0===W.length?"{}":g?"{"+D(W,g)+"}":"{ "+W.join(", ")+" }"}return String(t)};var P=Object.prototype.hasOwnProperty||function(e){return e in this};function k(e,t){return P.call(e,t)}function I(e){return h.call(e)}function T(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function R(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return R(e.slice(0,t.maxStringLength),t)+r}return _(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,C),"single",t)}function C(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function A(e){return"Object("+e+")"}function N(e){return e+" { ? }"}function L(e,t,n,r){return e+" ("+t+") {"+(r?D(n,r):n.join(", "))+"}"}function D(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function M(e,t){var n=S(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=k(e,o)?t(e[o],e):""}for(var i in e)k(e,i)&&(n&&String(Number(i))===i&&i<e.length||(/[^\w$]/.test(i)?r.push(t(i,e)+": "+t(e[i],e)):r.push(i+": "+t(e[i],e))));if("function"==typeof g)for(var a=g(e),u=0;u<a.length;u++)w.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},23205:function(e,t,n){e.exports=function(){"use strict";var e="function"==typeof Promise,t="object"==typeof self?self:n.g,r="undefined"!=typeof Symbol,o="undefined"!=typeof Map,i="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,u="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,s=r&&void 0!==Symbol.iterator,l=r&&void 0!==Symbol.toStringTag,f=i&&"function"==typeof Set.prototype.entries,p=o&&"function"==typeof Map.prototype.entries,d=f&&Object.getPrototypeOf((new Set).entries()),h=p&&Object.getPrototypeOf((new Map).entries()),y=s&&"function"==typeof Array.prototype[Symbol.iterator],m=y&&Object.getPrototypeOf([][Symbol.iterator]()),v=s&&"function"==typeof String.prototype[Symbol.iterator],g=v&&Object.getPrototypeOf(""[Symbol.iterator]()),b=8,w=-1;function O(n){var r=typeof n;if("object"!==r)return r;if(null===n)return"null";if(n===t)return"global";if(Array.isArray(n)&&(!1===l||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var s=l&&n[Symbol.toStringTag];if("string"==typeof s)return s;var f=Object.getPrototypeOf(n);return f===RegExp.prototype?"RegExp":f===Date.prototype?"Date":e&&f===Promise.prototype?"Promise":i&&f===Set.prototype?"Set":o&&f===Map.prototype?"Map":u&&f===WeakSet.prototype?"WeakSet":a&&f===WeakMap.prototype?"WeakMap":c&&f===DataView.prototype?"DataView":o&&f===h?"Map Iterator":i&&f===d?"Set Iterator":y&&f===m?"Array Iterator":v&&f===g?"String Iterator":null===f?"Object":Object.prototype.toString.call(n).slice(b,w)}return O}()},79952:function(e,t,n){var r;!function(o,i){"use strict";var a="function",u="undefined",c="object",s="string",l="model",f="name",p="type",d="vendor",h="version",y="architecture",m="console",v="mobile",g="tablet",b="smarttv",w="wearable",O="embedded",E="Amazon",_="Apple",x="ASUS",S="BlackBerry",j="Firefox",P="Google",k="Huawei",I="LG",T="Microsoft",R="Motorola",C="Opera",A="Samsung",N="Sony",L="Xiaomi",D="Zebra",M="Facebook",F=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},U=function(e,t){return typeof e===s&&-1!==B(t).indexOf(B(e))},B=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===u?e:e.substring(0,255)},q=function(e,t){for(var n,r,o,u,s,l,f=0;f<t.length&&!s;){var p=t[f],d=t[f+1];for(n=r=0;n<p.length&&!s;)if(s=p[n++].exec(e))for(o=0;o<d.length;o++)l=s[++r],typeof(u=d[o])===c&&u.length>0?2===u.length?typeof u[1]==a?this[u[0]]=u[1].call(this,l):this[u[0]]=u[1]:3===u.length?typeof u[1]!==a||u[1].exec&&u[1].test?this[u[0]]=l?l.replace(u[1],u[2]):i:this[u[0]]=l?u[1].call(this,l,u[2]):i:4===u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):i):this[u]=l||i;f+=2}},z=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(U(t[n][r],e))return"?"===n?i:n}else if(U(t[n],e))return"?"===n?i:n;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,h],[/opios[\/ ]+([\w\.]+)/i],[h,[f,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[h,[f,C]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[f,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[f,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[h,[f,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[f,"IE"]],[/yabrowser\/([\w\.]+)/i],[h,[f,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure Browser"],h],[/\bfocus\/([\w\.]+)/i],[h,[f,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[h,[f,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[f,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[f,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[h,[f,j]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 Browser"],h],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[f,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,M],h],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[f,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[f,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[f,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,"Chrome WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[f,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,h],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[h,[f,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[h,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[h,z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[f,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[f,h]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,B]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,"",B]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,B]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,A],[p,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,A],[p,v]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[d,_],[p,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,_],[p,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[d,k],[p,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[l,[d,k],[p,v]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[d,L],[p,v]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[d,L],[p,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,"OPPO"],[p,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[p,v]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[p,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[d,R],[p,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,R],[p,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,I],[p,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,I],[p,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[d,"Lenovo"],[p,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[d,"Nokia"],[p,v]],[/(pixel c)\b/i],[l,[d,P],[p,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,P],[p,v]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,N],[p,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,N],[p,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,"OnePlus"],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,E],[p,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,E],[p,v]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[p,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,S],[p,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,x],[p,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,x],[p,v]],[/(nexus 9)/i],[l,[d,"HTC"],[p,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[p,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[p,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[p,v]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,"Sharp"],[p,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[p,v]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,l,[p,g]],[/(surface duo)/i],[l,[d,T],[p,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[p,v]],[/(u304aa)/i],[l,[d,"AT&T"],[p,v]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[p,v]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[p,g]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[p,g]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[p,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[p,g]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[p,g]],[/\b(k88) b/i],[l,[d,"ZTE"],[p,g]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[p,v]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[p,v]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[p,g]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[p,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[p,g]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[p,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[p,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[p,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[p,v]],[/\b(ph-1) /i],[l,[d,"Essential"],[p,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[p,g]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[p,g]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[p,g]],[/(shield[\w ]+) b/i],[l,[d,"Nvidia"],[p,g]],[/(sprint) (\w+)/i],[d,l,[p,v]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,T],[p,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,D],[p,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,D],[p,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[p,m]],[/droid.+; (shield) bui/i],[l,[d,"Nvidia"],[p,m]],[/(playstation [345portablevi]+)/i],[l,[d,N],[p,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,T],[p,m]],[/smart-tv.+(samsung)/i],[d,[p,b]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,A],[p,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,I],[p,b]],[/(apple) ?tv/i],[d,[l,"Apple TV"],[p,b]],[/crkey/i],[[l,"Chromecast"],[d,P],[p,b]],[/droid.+aft(\w)( bui|\))/i],[l,[d,E],[p,b]],[/\(dtv[\);].+(aquos)/i],[l,[d,"Sharp"],[p,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,H],[l,H],[p,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,b]],[/((pebble))app/i],[d,l,[p,w]],[/droid.+; (glass) \d/i],[l,[d,P],[p,w]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,D],[p,w]],[/(quest( 2)?)/i],[l,[d,M],[p,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[p,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[p,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[p,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,g]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[p,v]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[f,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[f,[h,z,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,"Windows"],[h,z,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,"Mac OS"],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[h,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,h],[/\(bb(10);/i],[h,[f,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[f,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[f,"webOS"]],[/crkey\/([\d\.]+)/i],[h,[f,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[f,"Chromium OS"],h],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,h],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[f,h]]},V=function(e,t){if(typeof e===c&&(t=e,e=i),!(this instanceof V))return new V(e,t).getResult();var n=e||(typeof o!==u&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),r=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(W,t):W;return this.getBrowser=function(){var e,t={};return t.name=i,t.version=i,q.call(t,n,r.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:i,t},this.getCPU=function(){var e={};return e.architecture=i,q.call(e,n,r.cpu),e},this.getDevice=function(){var e={};return e.vendor=i,e.model=i,e.type=i,q.call(e,n,r.device),e},this.getEngine=function(){var e={};return e.name=i,e.version=i,q.call(e,n,r.engine),e},this.getOS=function(){var e={};return e.name=i,e.version=i,q.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===s&&e.length>255?H(e,255):e,this},this.setUA(n),this};V.VERSION="1.0.2",V.BROWSER=F([f,h,"major"]),V.CPU=F([y]),V.DEVICE=F([l,d,p,m,v,b,g,w,O]),V.ENGINE=V.OS=F([f,h]),typeof t!==u?(e.exports&&(t=e.exports=V),t.UAParser=V):n.amdO?(r=function(){return V}.call(t,n,t,e))===i||(e.exports=r):typeof o!==u&&(o.UAParser=V);var Y=typeof o!==u&&(o.jQuery||o.Zepto);if(Y&&!Y.ua){var Z=new V;Y.ua=Z.getResult(),Y.ua.get=function(){return Z.getUA()},Y.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)Y.ua[n]=t[n]}}}("object"==typeof window?window:this)},20714:(e,t)=>{"use strict";function n(e){return String.fromCharCode(parseInt(e.slice(1),16))}function r(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}Object.defineProperty(t,"__esModule",{value:!0}),t.encode=function(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,n))},t.decode=function(e){return decodeURIComponent(Array.from(atob(e),r).join(""))}},39735:(e,t,n)=>{"use strict";const r=n(20714);t.Jx=function(e){return r.decode(e.replace(/\-/g,"+").replace(/_/g,"/"))},t.cv=function(e){return r.encode(e).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}},8191:(e,t)=>{"use strict";t.Q=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var r={},i=t||{},u=e.split(o),c=i.decode||n,s=0;s<u.length;s++){var l=u[s],f=l.indexOf("=");if(!(f<0)){var p=l.substr(0,f).trim(),d=l.substr(++f,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),null==r[p]&&(r[p]=a(d,c))}}return r},t.q=function(e,t,n){var o=n||{},a=o.encode||r;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var u=a(t);if(u&&!i.test(u))throw new TypeError("argument val is invalid");var c=e+"="+u;if(null!=o.maxAge){var s=o.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(s)}if(o.domain){if(!i.test(o.domain))throw new TypeError("option domain is invalid");c+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is invalid");c+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+o.expires.toUTCString()}o.httpOnly&&(c+="; HttpOnly");o.secure&&(c+="; Secure");if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return c};var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(t){return e}}},19704:(e,t,n)=>{e.exports=n.p+"b4ed07ea73fd9b86f6ace81025f9c6eb.png"},424:(e,t,n)=>{e.exports=n.p+"fa9755b65373c6cee3b350e987333a6c.svg"},65117:(e,t,n)=>{e.exports=n.p+"3a8be7acd94a11760707d5374bea1f6d.svg"},2138:(e,t,n)=>{e.exports=n.p+"1b2fb62f37f1c1e59208f4993714d166.svg"},64265:function(e,t,n){var r;e=n.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var a,u=2147483647,c=36,s=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function y(e){throw RangeError(p[e])}function m(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+m((e=e.replace(f,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function b(e){return m(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=c)e=d(e/35);return d(r+36*e/(e+38))}function E(e){var t,n,r,o,i,a,s,l,f,p,h,m=[],v=e.length,g=0,w=128,E=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&y("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<v;){for(i=g,a=1,s=c;o>=v&&y("invalid-input"),((l=(h=e.charCodeAt(o++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:c)>=c||l>d((u-g)/a))&&y("overflow"),g+=l*a,!(l<(f=s<=E?1:s>=E+26?26:s-E));s+=c)a>d(u/(p=c-f))&&y("overflow"),a*=p;E=O(g-i,t=m.length+1,0==i),d(g/t)>u-w&&y("overflow"),w+=d(g/t),g%=t,m.splice(g++,0,w)}return b(m)}function _(e){var t,n,r,o,i,a,s,l,f,p,m,v,b,E,_,x=[];for(v=(e=g(e)).length,t=128,n=0,i=72,a=0;a<v;++a)(m=e[a])<128&&x.push(h(m));for(r=o=x.length,o&&x.push("-");r<v;){for(s=u,a=0;a<v;++a)(m=e[a])>=t&&m<s&&(s=m);for(s-t>d((u-n)/(b=r+1))&&y("overflow"),n+=(s-t)*b,t=s,a=0;a<v;++a)if((m=e[a])<t&&++n>u&&y("overflow"),m==t){for(l=n,f=c;!(l<(p=f<=i?1:f>=i+26?26:f-i));f+=c)_=l-p,E=c-p,x.push(h(w(p+_%E,0))),l=d(_/E);x.push(h(w(l,0))),i=O(n,b,r==o),n=0,++r}++n,++t}return x.join("")}a={version:"1.3.2",ucs2:{decode:g,encode:b},decode:E,encode:_,toASCII:function(e){return v(e,(function(e){return l.test(e)?"xn--"+_(e):e}))},toUnicode:function(e){return v(e,(function(e){return s.test(e)?E(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},9989:(e,t,n)=>{"use strict";var r=n(64265),o=n(7030);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(s),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(49122);function b(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),u=-1!==i&&i<e.indexOf("#")?"?":"#",s=e.split(u);s[0]=s[0].replace(/\\/g,"/");var b=e=s.join(u);if(b=b.trim(),!n&&1===e.split("#").length){var w=c.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var O=a.exec(b);if(O){var E=(O=O[0]).toLowerCase();this.protocol=E,b=b.substr(O.length)}if(n||O||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var _="//"===b.substr(0,2);!_||O&&m[O]||(b=b.substr(2),this.slashes=!0)}if(!m[O]&&(_||O&&!v[O])){for(var x,S,j=-1,P=0;P<p.length;P++){-1!==(k=b.indexOf(p[P]))&&(-1===j||k<j)&&(j=k)}-1!==(S=-1===j?b.lastIndexOf("@"):b.lastIndexOf("@",j))&&(x=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(x)),j=-1;for(P=0;P<f.length;P++){var k;-1!==(k=b.indexOf(f[P]))&&(-1===j||k<j)&&(j=k)}-1===j&&(j=b.length),this.host=b.slice(0,j),b=b.slice(j),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var T=this.hostname.split(/\./),R=(P=0,T.length);P<R;P++){var C=T[P];if(C&&!C.match(d)){for(var A="",N=0,L=C.length;N<L;N++)C.charCodeAt(N)>127?A+="x":A+=C[N];if(!A.match(d)){var D=T.slice(0,P),M=T.slice(P+1),F=C.match(h);F&&(D.push(F[1]),M.unshift(F[2])),M.length&&(b="/"+M.join(".")+b),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+U,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!y[E])for(P=0,R=l.length;P<R;P++){var H=l[P];if(-1!==b.indexOf(H)){var q=encodeURIComponent(H);q===H&&(q=escape(H)),b=b.split(H).join(q)}}var z=b.indexOf("#");-1!==z&&(this.hash=b.substr(z),b=b.slice(0,z));var G=b.indexOf("?");if(-1!==G?(this.search=b.substr(G),this.query=b.substr(G+1),t&&(this.query=g.parse(this.query)),b=b.slice(0,G)):t&&(this.search="",this.query={}),b&&(this.pathname=b),v[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var W=this.search||"";this.path=U+W}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=g.stringify(this.query));var u=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),u&&"?"!==u.charAt(0)&&(u="?"+u),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(u=u.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var u=r[a];n[u]=this[u]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),s=0;s<c.length;s++){var l=c[s];"protocol"!==l&&(n[l]=e[l])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var f=Object.keys(e),p=0;p<f.length;p++){var d=f[p];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var y=n.pathname||"",g=n.search||"";n.path=y+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),O=w||b||n.host&&e.pathname,E=O,_=n.pathname&&n.pathname.split("/")||[],x=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(x&&(n.hostname="",n.port=null,n.host&&(""===_[0]?_[0]=n.host:_.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),O=O&&(""===h[0]||""===_[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,_=h;else if(h.length)_||(_=[]),_.pop(),_=_.concat(h),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(x)n.hostname=n.host=_.shift(),(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=_.slice(-1)[0],j=(n.host||e.host||_.length>1)&&("."===S||".."===S)||""===S,P=0,k=_.length;k>=0;k--)"."===(S=_[k])?_.splice(k,1):".."===S?(_.splice(k,1),P++):P&&(_.splice(k,1),P--);if(!O&&!E)for(;P--;P)_.unshift("..");!O||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),j&&"/"!==_.join("/").substr(-1)&&_.push("");var I,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);x&&(n.hostname=n.host=T?"":_.length?_.shift():"",(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift()));return(O=O||n.host&&_.length)&&!T&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},7030:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},16727:e=>{"use strict";var t=function(){};e.exports=t},35409:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DOMException:()=>S,Headers:()=>h,Request:()=>O,Response:()=>_,fetch:()=>j});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,o="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in r,c="ArrayBuffer"in r;if(c)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function f(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function y(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&a&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=y(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=y(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(v)}),this.text=function(){var e,t,n,r=y(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=f(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[f(e)]},h.prototype.get=function(e){return e=f(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(f(e))},h.prototype.set=function(e,t){this.map[f(e)]=p(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},i&&(h.prototype[Symbol.iterator]=h.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof O){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),w.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function E(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},b.call(O.prototype),b.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];_.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})};var S=r.DOMException;try{new S}catch(e){(S=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function j(e,t){return new Promise((function(n,o){var i=new O(e,t);if(i.signal&&i.signal.aborted)return o(new S("Aborted","AbortError"));var u=new XMLHttpRequest;function s(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new _(o,r))}),0)},u.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){o(new S("Aborted","AbortError"))}),0)},u.open(i.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?u.withCredentials=!0:"omit"===i.credentials&&(u.withCredentials=!1),"responseType"in u&&(a?u.responseType="blob":c&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof h?i.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){u.setRequestHeader(e,p(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),u.onreadystatechange=function(){4===u.readyState&&i.signal.removeEventListener("abort",s)}),u.send(void 0===i._bodyInit?null:i._bodyInit)}))}j.polyfill=!0,r.fetch||(r.fetch=j,r.Headers=h,r.Request=O,r.Response=_)},69599:()=>{},88653:(e,t,n)=>{"use strict";const r=n(5837);e.exports=a;const o=function(){function e(e){return void 0!==e&&e}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{},i={mapHttpRequest:h,mapHttpResponse:h,wrapRequestSerializer:y,wrapResponseSerializer:y,wrapErrorSerializer:y,req:h,res:h,err:function(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const n in e)void 0===t[n]&&(t[n]=e[n]);return t}};function a(e){(e=e||{}).browser=e.browser||{};const t=e.browser.transmit;if(t&&"function"!=typeof t.send)throw Error("pino: transmit option must have a send function");const n=e.browser.write||o;e.browser.write&&(e.browser.asObject=!0);const r=e.serializers||{},i=function(e,t){if(Array.isArray(e))return e.filter((function(e){return"!stdSerializers.err"!==e}));return!0===e&&Object.keys(t)}(e.browser.serialize,r);let c=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(c=!1);"function"==typeof n&&(n.error=n.fatal=n.warn=n.info=n.debug=n.trace=n),!1===e.enabled&&(e.level="silent");const f=e.level||"info",h=Object.create(n);h.log||(h.log=m),Object.defineProperty(h,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(h,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,u(y,h,"error","log"),u(y,h,"fatal","error"),u(y,h,"warn","error"),u(y,h,"info","log"),u(y,h,"debug","log"),u(y,h,"trace","log")}});const y={transmit:t,serialize:i,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:d(e)};return h.levels=a.levels,h.level=f,h.setMaxListeners=h.getMaxListeners=h.emit=h.addListener=h.on=h.prependListener=h.once=h.prependOnceListener=h.removeListener=h.removeAllListeners=h.listeners=h.listenerCount=h.eventNames=h.write=h.flush=m,h.serializers=r,h._serialize=i,h._stdErrSerialize=c,h.child=function(n,o){if(!n)throw new Error("missing bindings for child Pino");o=o||{},i&&n.serializers&&(o.serializers=n.serializers);const a=o.serializers;if(i&&a){var u=Object.assign({},r,a),c=!0===e.browser.serialize?Object.keys(u):i;delete n.serializers,s([n],c,u,this._stdErrSerialize)}function f(e){this._childLevel=1+(0|e._childLevel),this.error=l(e,n,"error"),this.fatal=l(e,n,"fatal"),this.warn=l(e,n,"warn"),this.info=l(e,n,"info"),this.debug=l(e,n,"debug"),this.trace=l(e,n,"trace"),u&&(this.serializers=u,this._serialize=c),t&&(this._logEvent=p([].concat(e._logEvent.bindings,n)))}return f.prototype=this,new f(this)},t&&(h._logEvent=p()),h}function u(e,t,n,r){const i=Object.getPrototypeOf(t);t[n]=t.levelVal>t.levels.values[n]?m:i[n]?i[n]:o[n]||o[r]||m,function(e,t,n){if(!e.transmit&&t[n]===m)return;t[n]=(r=t[n],function(){const i=e.timestamp(),u=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===o?o:this;for(var p=0;p<u.length;p++)u[p]=arguments[p];if(e.serialize&&!e.asObject&&s(u,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?r.call(l,c(this,n,u,i)):r.apply(l,u),e.transmit){const r=e.transmit.level||t.level,o=a.levels.values[r],c=a.levels.values[n];if(c<o)return;f(this,{ts:i,methodLevel:n,methodValue:c,transmitLevel:r,transmitValue:a.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},u)}});var r}(e,t,n)}function c(e,t,n,o){e._serialize&&s(n,e._serialize,e.serializers,e._stdErrSerialize);const i=n.slice();let u=i[0];const c={};o&&(c.time=o),c.level=a.levels.values[t];let l=1+(0|e._childLevel);if(l<1&&(l=1),null!==u&&"object"==typeof u){for(;l--&&"object"==typeof i[0];)Object.assign(c,i.shift());u=i.length?r(i.shift(),i):void 0}else"string"==typeof u&&(u=r(i.shift(),i));return void 0!==u&&(c.msg=u),c}function s(e,t,n,r){for(const o in e)if(r&&e[o]instanceof Error)e[o]=a.stdSerializers.err(e[o]);else if("object"==typeof e[o]&&!Array.isArray(e[o]))for(const r in e[o])t&&t.indexOf(r)>-1&&r in n&&(e[o][r]=n[r](e[o][r]))}function l(e,t,n){return function(){const r=new Array(1+arguments.length);r[0]=t;for(var o=1;o<r.length;o++)r[o]=arguments[o-1];return e[n].apply(this,r)}}function f(e,t,n){const r=t.send,o=t.ts,i=t.methodLevel,a=t.methodValue,u=t.val,c=e._logEvent.bindings;s(n,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=o,e._logEvent.messages=n.filter((function(e){return-1===c.indexOf(e)})),e._logEvent.level.label=i,e._logEvent.level.value=a,r(i,e._logEvent,u),e._logEvent=p(c)}function p(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function d(e){return"function"==typeof e.timestamp?e.timestamp:!1===e.timestamp?v:g}function h(){return{}}function y(e){return e}function m(){}function v(){return!1}function g(){return Date.now()}a.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},a.stdSerializers=i,a.stdTimeFunctions=Object.assign({},{nullTime:v,epochTime:g,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}})},5573:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},30513:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},85854:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(40589);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},3812:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},40589:(e,t,n)=>{"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:()=>r})}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.amdO={},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var u=2&r&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>({186:"amo-i18n-et-amo-js",339:"amo-i18n-az-amo-js",458:"amo-i18n-eu-amo-js",652:"amo-i18n-de-amo-js",673:"amo-i18n-fy_NL-amo-js",685:"amo-i18n-bn-amo-js",689:"amo-i18n-da-amo-js",929:"amo-i18n-sq-amo-js",972:"amo-i18n-fi-amo-js",1132:"amo-i18n-el-amo-js",1818:"amo-i18n-uk-amo-js",2068:"amo-i18n-nn_NO-amo-js",2580:"amo-i18n-sk-amo-js",2704:"amo-i18n-ka-amo-js",2958:"amo-i18n-ja-amo-js",3107:"amo-i18n-hr-amo-js",3130:"amo-i18n-mt-amo-js",3155:"amo-i18n-tr-amo-js",3178:"amo-i18n-es-amo-js",3197:"amo-i18n-pa_IN-amo-js",3751:"amo-i18n-bs-amo-js",3957:"amo-i18n-lv-amo-js",4402:"amo-i18n-cs-amo-js",4469:"amo-i18n-sl-amo-js",4872:"amo-i18n-zh_CN-amo-js",4960:"amo-i18n-mk-amo-js",5039:"amo-i18n-ia-amo-js",5101:"amo-i18n-mn-amo-js",5110:"amo-i18n-is-amo-js",5256:"amo-i18n-ms-amo-js",5490:"amo-i18n-ro-amo-js",5494:"amo-i18n-zh_TW-amo-js",5763:"amo-i18n-fa-amo-js",5899:"amo-i18n-ur-amo-js",6553:"amo-i18n-vi-amo-js",6737:"amo-i18n-pl-amo-js",6788:"amo-i18n-nb_NO-amo-js",6872:"amo-i18n-ru-amo-js",6897:"amo-i18n-kab-amo-js",6918:"amo-i18n-it-amo-js",7004:"amo-i18n-af-amo-js",7030:"amo-i18n-lt-amo-js",7049:"amo-i18n-dsb-amo-js",7284:"amo-i18n-sv_SE-amo-js",7352:"amo-i18n-hsb-amo-js",7496:"amo-i18n-ar-amo-js",7542:"amo-i18n-id-amo-js",7597:"amo-i18n-ga_IE-amo-js",7636:"amo-i18n-en_US-amo-js",7905:"amo-i18n-pt_PT-amo-js",7927:"amo-i18n-en_GB-amo-js",8470:"amo-i18n-fr-amo-js",8677:"amo-i18n-cak-amo-js",8865:"amo-i18n-ast-amo-js",9290:"amo-i18n-te-amo-js",9300:"amo-i18n-he-amo-js",9419:"amo-i18n-en_CA-amo-js",9628:"amo-i18n-bg-amo-js",9649:"amo-i18n-hu-amo-js",9700:"amo-i18n-pt_BR-amo-js",9814:"amo-i18n-ko-amo-js",9901:"amo-i18n-th-amo-js",9918:"amo-i18n-ca-amo-js",9988:"amo-i18n-nl-amo-js"}[e]+"-"+{186:"c4edd5ffafeafad602ff",339:"cd149e3509aa47511816",458:"3010e8ef9b6535a6e203",652:"72dd2299b65735ff870a",673:"abb93fb7af80c4520617",685:"927e4bdd8b51557c3895",689:"ffdb419d7a69730a3fca",929:"0f001770645cd1d07d42",972:"b1ecc2c0f477149a5870",1132:"2ed8524834c30496bc3b",1818:"beaffb385572dbbf6499",2068:"868767d300f1b1c9cf75",2580:"524edb3f5194ea5fc3aa",2704:"15fd59dd97b35dfa25eb",2958:"fb6020e1404aa4cf7ff0",3107:"444042a469366e8e0542",3130:"e967bd02776f556ef0b8",3155:"0147182f4e9aa118f2a2",3178:"7d3b7d42fe93066ba266",3197:"2e801117c0fe85087d08",3751:"ef19ad413f5a3c946beb",3957:"cbb2dbb2fa1d6eb53b97",4402:"3336f6cbd82e87f56e6f",4469:"5ac35ba9855d1688402c",4872:"40f4fca69bd8a96da247",4960:"5ebf299a5fbe2cc740de",5039:"303e155422b3255cff08",5101:"35983318a95ef0c4654d",5110:"e5c19ba54ec1c8eeb71f",5256:"16b76b19415a75f43848",5490:"5aad4a87a2514e8ffacd",5494:"ef9e3c8440084b95d1be",5763:"40d4569d4754da51d74c",5899:"c4c67d1400bccb6664c9",6553:"c2ea66611d5db3ef2294",6737:"31db0e331f5b4acb7aa8",6788:"f9328795b73c6b647e10",6872:"7476fa74b2800a4a2f21",6897:"8bfc9dccf70a027a90ac",6918:"adccdaa4baad4f1147c1",7004:"ea862cf8e76dedbd6df4",7030:"bbd8b538f06b55bd9920",7049:"4ca46a1527faa7c3134a",7284:"e670cb84f484d60ffd82",7352:"092aba055d7a4b534658",7496:"07fea7e3155bee9fefca",7542:"0b7e29a78482365b2852",7597:"03c35dc66ccc6de60919",7636:"409e344d91d603e3c14e",7905:"6f2eb8c371d1c907b811",7927:"a46a87652cd93b1bc79e",8470:"0820b8e54540fa427175",8677:"30346548dd8163664bab",8865:"edd5e9fa54e632b77a96",9290:"7e30f5fd1497fc58c510",9300:"39731d49c5b45d2fbe86",9419:"d838516726bdcc2d998d",9628:"d799c6b357db719198ed",9649:"6370082631668991bab6",9700:"f71a489416710abf2465",9814:"8f85fb209750f43377f5",9901:"675d83c8568f11229f4e",9918:"e062ad38948b978a49f2",9988:"dfee20c108aa4bb368b3"}[e]+".js"),a.miniCssF=e=>"amo-3d24af19c698652ec47b.css",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="mozilla-addons-frontend:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var u,c;if(void 0!==o)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var f=s[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){u=f;break}}u||(c=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,a.nc&&u.setAttribute("nonce",a.nc),u.setAttribute("data-webpack",r+o),u.src=e,0!==u.src.indexOf(window.location.origin+"/")&&(u.crossOrigin="anonymous"),u.integrity=a.sriHashes[i],u.crossOrigin="anonymous"),n[e]=[t];var p=(t,r)=>{u.onerror=u.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=p.bind(null,u.onerror),u.onload=p.bind(null,u.onload),c&&document.head.appendChild(u)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.p="/static-frontend/",a.sriHashes={186:"sha512-BinXcmSqa+EdgDwT6XTIE25GNWEGnWeTWAFnMUzUyOF5B3crT7k7/fIJBYU+hBRKcrVZaKFJvQqUpyZRYcecyg==",339:"sha512-c8ZotMBOGLFU7bPCoOQJxkCnKB1zcD/f2ItH5nVyJkoumJ7nqPR9ec+HK9GR4pLG/MAzCLHyLxpFUlOpn/81LQ==",458:"sha512-qUBSoDpfPW26paCS9Zkgw9RR7mNRiYycYaxT8qbdpdmjN0Q4ggQWsDh9OR1+/EttC1TofESM1flhQmYP4OPuOg==",652:"sha512-+d41h58bhTkkMDCiBjRXlToscXeTWc0bhZoRhbE8+FN1MMv2JgO3KKJfc0IZPKgffk8smf/7Q+lDz+iGn/Ht7A==",673:"sha512-FZrUY8VVU3cQbrAku4YZvW2IqNkwaZIJPEtZ4RlMUms/2JGXZx6uGAlxHBT2j+vMuvZkXJfNCbo4t+RbwkOMjQ==",685:"sha512-AQi+X7+GC6dn9iyFv00eiOqXMJ2P03aoQ9MuTJRLGYWOBS3wqO6A+hkhOBiiwwbyyWV5FtsF2IH1AK7OYJ7SCA==",689:"sha512-v0Bhjc/JkHY5JbTkO8ljNByU0ilXKEMdaWgepFxIvnKw0KiuWR3H31cs2ohRz0Ckz/WZhqjMJlbfoguARCmfZw==",929:"sha512-NV5ov1672NMFX9di5+YuVPbpj6w0FL5JD0j73MXw5kYOOuBDHm9q54tKungRJK4XfrM4KRbMON5NfrXidhpOeQ==",972:"sha512-6/nwFOikUyimxhsI9Bx7IL39N+dvypWMMl4voSUL0TVExPLTNvfsAuR/1foXVMjesclLIBUQMOZjgSYs8eLFLA==",1132:"sha512-RGZiEKGbXfCKxefxAV2d4VjOIJSvLKwQsVnyUDWVe193XGvI5awVBZMKdv1N+YQ8835neYqsbEGmAOszncWgVA==",1818:"sha512-hV5VxWJjKN2VN0k06H/VbRfHeLbBRh9iiOAwa9Mr7uBMCkm9qZqFwsbiaBLM4Tm6Z+ryVtsds8slYDXng/IRPA==",2068:"sha512-MwcRl6cmmDirS1flQzUJqshmSy3w1NoeZJzEIVQat/3KnuB7LwEFKMySXRBwtHoWd+ROgArSpywSbvpcQ1qoOQ==",2580:"sha512-5LDa2m1EkK3NhAgQb09id94ZZ2du6uTayRwEGGNyCHsHnTzpAF5kOhZg34HPRVyF/mtCYDRQXGotz6W7SY4oHw==",2704:"sha512-Ikh8Xcm7tNvd9RKFyQUlODCWdJunBQgnxI4HkkfT7XivH50S+YMcO0eM7bT3tJAGnskSCzK9NnsU73sce6C/9A==",2958:"sha512-BotLrzIGWJ76pLhE12QOIkRdb2YT/takKNtqep6uoN1WjIvBLSBjv1mOvuIker+qAuLR0bFlyXhN+0VoYjXnoQ==",3107:"sha512-ocrH9vV7590iy9UFHYXiK/QuDlxcSQLjb+TQXRsyI6Y/E0pzdDwX285nc/AJK6JnIPVcmnCQKAu0JhVz5nkXOA==",3130:"sha512-8pskVqLA39qntxOtMTrrvQNGYO0vhGpJzAnIugVGmINAY2YDCF4LLl1uIv4NcPD9C3SHBU7jeFr/EOzIRXBrWg==",3155:"sha512-G/6H5DNUrWPEQv3O56FbVQKoU4mTa11++vxs5RpBzWwu7ZjeV8QeuTJKm8+g1SH2xx1Pk7EVryCLyQoZjoJolg==",3178:"sha512-77YQLcsrjyE92lNLf259wlcj+7K0IscU6Jp19LjZ0eeZ5Jdswyr2ls1sV4o1WQ0LdVdaayIZ2cd0jWsvSGUZpA==",3197:"sha512-9dFMZxHh94BbzEbRZSOek585ireMUPEnF/qdzyDV7SX/ae1yqQIBNK3YPgZJfrTV8hjMxhqGJWH/shwSIg0ccA==",3751:"sha512-VX+31lUL0Wzo+dItDLxjDwiJIDZTepE3RSkglWbOI5KbYkbhDTzm3kuDoE05gdLqGzlyy3I8RjUUnMP8BKRfnA==",3957:"sha512-fUfjyh8+h+pYcBdbS4Tb2slE7YEw1pisX8XypqbLvv34ZZ1sW1O+bD96BeYf4CTJQe7g5a5ngD0C5mRUpI+2ig==",4402:"sha512-LDS1hvvqrxn/ibcMa0OIbUGEJBPGpMghjqN/hV2ups1OAc8SiDXH7OxcSXcko9KfkF6zueHMKTZmKgvacp3UuA==",4469:"sha512-s2NF+vXsT+Bag3Y+WRjyllHoVOyhSvJF64okF1dMiiioJzdBowcQfhnxXvF1sff7+vUrqpLJdo4lLWq1Av4POQ==",4872:"sha512-QMehNo5qMRyCAyiVWX2+qiVaD9nHUrUxoRv8wL5dW60M1T7VyvO5q9XX2TP8qAGlXV4UWt625zh/93ipYSm4tg==",4960:"sha512-jGQOSJ0CFSJrF7EtnbelzxafCtwfeJBKFuvyCwdxPn9ih0sapNM8EvUgqegadokut48syyJ7uBx4qQD4OQKp2g==",5039:"sha512-WD2McLKHMpNMnlHHu75iS/L2U0uH5eFNs4kEQXwCJ0/vGxgLcSFpOrPFb5q7fD43AgO/j6gmpdXjKhR/4j+FFA==",5101:"sha512-vl+2W7Mu03gO+qqVAhurfaPD3uvJZVNXRJ6neHW098+efSV15bV0VnxvqHxHqfT3TgXEuK84IKsfLk8EAWP8zw==",5110:"sha512-9VLAMcOwQwkrieHbYGdEY9roWOrseTht1fgXhmig04aif3hYaD2PazXWkrsDYEkCEiZBksJYPiAffrFf4V/c/w==",5256:"sha512-184S62wVXIIEN+uh+qmcf/p9AlTsXks+YFXAm0KX9zx03hhD/RoBlNUTw88m3DLH8VCKjJVssM/K1sKYzPjWyA==",5490:"sha512-SAZ1h52DA3s856pDQsNOJ2BXR/dFfJD9ENz/EYgpBd13erMcVSZY+ZUaHF6fi4OAmSrXQtpya9a1rLXeFy4xYg==",5494:"sha512-Vc8fLJz1Y+mRwdtnc3o1wN2+Z3DHJ9rq/cNo71JMctBvsUfYvEn8iYj9rpBPycr2yKxv+aK2mViFaEPANkC2fg==",5763:"sha512-A5RXQye+yzImrZOIl3w50r6ptGdh+aEn5SbJk4UUxl7nrZq+uadHIGJK5Y/OWWWY1IhxJQa84C4G9y3Qnm/G/g==",5899:"sha512-8CoGr+IfG+JN0KUPzjpckSJw7XG5HHCrSPVyTBSmpMFdBB9pGuaRxLaVvSEV3Qkd+9jJ3qlEwuPiBvE2eWmnkA==",6553:"sha512-uHPPfPJp7S7kuV/pL61DxGNLTHzaN7XIU8Mw5V6ryLjAaNgyV5TROYxugiHeEWD1sbzxRUNeGdrNBpP3Ft+yDg==",6737:"sha512-9aEA5DkNk0NxiwqccTI12jwLFqCIOiX6sx0Gyk3Rmbrbgb78F5Xc7xdrKpzPKrVfRh6qfOa1BF3hZ7OepOVpMQ==",6788:"sha512-OWQiL11/QDkGPJ1TuxvepFlYndP5kUVdcvJxZyeoqN3wNf3q1vPu7mo1we0QlmAunCcAk+T7cfgd4IvSbFYjcA==",6872:"sha512-xtr1Ai7uvF+7LPW5TdP/bnBLjsFrFhgGJS/OkHcx0ozOAKl3PotZspAz0XRQU5p4reoIZWmsUs1yRHsrD7B4rA==",6897:"sha512-h6+iIgGaYzo/9JRcG1BpWS8BiVne1Py9uarwCtvcqNTZFLNJbGpSXXLf5Upd4oPUO2BkjkibnEECoY9Q0HyKtA==",6918:"sha512-f60G4Me8Bppg3nobkkYOuZXV+wAYIaX9T/wdD2nlERFLGL7lxIMoSdUjc4D47Y1p6V9WYedJKkvzRBiY9TQAkA==",7004:"sha512-BLEswm1FhCKaEMgplNY+rVGNZTOCmwg/SDW0yY3t7J7cfgRbGLOymKcVUM0PEbrW01rXtzeOKBbSojne/uBmAA==",7030:"sha512-MYd6ZEe+s/+vE2WDXc7lAOBCrTDdB413FHN+4mU2Nq9+qCDxrPpNRK3C5V7s5m/t7QmUAhYRz2koqYbz1c6g5Q==",7049:"sha512-lYAQu8uWDCcPkwjQcTKj4gy/m9CpapeAR3TRGXawwDMoTGYfuczi87nAHElKJgWFt2sM227RZmHY+sG7nbeFhg==",7284:"sha512-syj2zEQd5YYWfybknV9+L9RO5KXc1ELekTBLYYUVWScJGL/PaYd/QaLUlsMP4/HP53HJ9zZGBur0E0LlVp1ROA==",7352:"sha512-rIc5cEZzH4ramnBwCOvjLC8Oq+/uEKfBaiN8Ac+VF52va0eX7sd7EPeTBfR7doWicZalYC33OXouAgBMryZwGw==",7496:"sha512-rxhUSPycNlYzpauRdVDp5NUeOmfmHjGwCGBYb0qVOSX3loWdvrn6w4leLsrb72twKrEm3POY6cPPbquarJU6Eg==",7542:"sha512-2hTnrWjcywVt82rwONYZyC95AuQaAI0Y2hyafGOHZy/ZRzxE9vE4G/jUaDdNOf2WVsgZqfRAbO4ftTvJ1FqnoQ==",7597:"sha512-5dW/XrGLc97BDB/Oh06IglMFYuJBxoEldmgb3H2HSiAv2JBHxhkonltdoCobZM0biTP4RZ/h3sukJY4+0VX6Gg==",7636:"sha512-FJg7rxO0CMsl3tppttdC+ZwjaUKQdjZUYNdhdc6TKwYp94ZSZyEQAcsBI7qoWHsV98d3Qgoklh/joaWNrEWerw==",7905:"sha512-jjY9wWibPClahBBq+7WKrGwljpeyHXk2CPhCUEibELP+/Oy5lgnPr5GB0dW7A7+mHbRpQoVVY+gNIO4gO+wPXg==",7927:"sha512-Ss0z5T1/1IjaU6pNrT1Ypc+0HsllVN0+p8csl+wRwzYsiKOz4BGUrh595AuTRtPJa7BJzo5ztDCbHRxiB/ylfw==",8470:"sha512-64u+fzCIbSqgFX1muIOptJ9JLIuf2AY83WWSEmJ//aIBaIAZDIaxEk/bXm54HezLZSo2p+Wb7DKmFWMm/NnplQ==",8677:"sha512-M0SehFwN2sXNXd70DLntTIyiAMPVBZ1996ruMZqxDa+javGFVQ4ZYEA0GHUbfNEpzc6ShAE19pc8PWvfoXGzOA==",8865:"sha512-dp0wmQr6SLB1NscpuzM9YdCIJmiqiGVN9jO2BljfvevgwEXwWUVY1wzBwmhqXZ4+G0XabLSecJOqo+Lu0y2lIg==",9290:"sha512-wo6nV438tJALMboUyC2zHno1Suau0wwD8oKtKK61HzCdvt6VqqTTbHJ963xmvZrNka0sRG8/NoVIek345VHmow==",9300:"sha512-QNsn3LPp7l+SKKhX26oW1mJdxKrjVLbRRafjELn5B6PXdsHAqiQCm/uZwNEYOdVsq9RR0BKZyrNQsfg9N5hc1A==",9419:"sha512-kH/Yx9qm9BmMxwS6LMmmOMYuCCofYG0oBBTuENh84f5S6t7DO+/jWHRgtqFq63q2o3/RXdVBvrbVWk9RCnuoyQ==",9628:"sha512-nov0NpLXSXS0lB6UYFVRleSSVwwHasilsFx02PWrp81IYiILvzdWnpKKyCJy3gNbZdigy4Xx0i1DwCfvuvo0nw==",9649:"sha512-/kBTcEMUG8Vgsc/BMGRzQHKBFCV//kFfNdC3bwJ4KFWhbgpZnzTLb1qk2FN5cfnA/6jh1DFf+IbSXsbsGI2aXw==",9700:"sha512-346KGu+qre+TNWVabgl+vj9W3tGigUNv7mKL1f95b6POGQNIlDBh9u6miYS7n6Q7Wtn2e5vPd6qZqBKnQm02Og==",9814:"sha512-S7BhUiZruYuMJez+GkGh4h1SYiaQXLnbgWF5FB/rfzNaZp4FKH8GfBL5v58udzPr4PGmtAoqVmMgl6J+QPVZ3Q==",9901:"sha512-MwvFkpvcu8/J1dTmcHdqUjfz3hgpfFUh1fjzSWUb8pquCnm2+topHsGPpsDl3J9D8wTMeNKtBrUGOej2gfNtmA==",9918:"sha512-NovZTt7c75+HPKUtoi1xXFU2dCJf6cEhb9mJuWfJZWKb8gCL0faEAE72v9XK0gsmEWaloNE0+Zu89GwKNPsGdQ==",9988:"sha512-2ahW0sRscRfEuB+JJWSy8YoBZq+AmKHWu94QM9gezUyDPBwo1kE2TVXM3ktKTBuVz6d119kAZCxG1zsMnRJiKg=="},(()=>{var e={9937:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),u=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;u.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",u.name="ChunkLoadError",u.type=o,u.request=i,r[1](u)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,u,c]=n,s=0;if(i.some((t=>0!==e[t]))){for(r in u)a.o(u,r)&&(a.m[r]=u[r]);if(c)c(a)}for(t&&t(n);s<i.length;s++)o=i[s],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkmozilla_addons_frontend=self.webpackChunkmozilla_addons_frontend||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";a(72764),a(99627),a(12978),a(79249),a(38957),a(51913),a(20227),a(21094),a(22532),a(49564),a(67407),a(22653),a(59201),a(86781),a(92792),a(83159),a(9536),a(83386),a(88627),a(42478),a(99918),a(72145),a(87758),a(66728),a(53689),a(33529),a(21699);var e=a(29343),t=a(18647),n=a(90528),r=a(84258),o=a(14486),i=a(99133),u=a(8191);function c(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(e){}return e}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};const l=function(){function e(e,t){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(e,t){return"string"==typeof e?u.Q(e,t):"object"==typeof e&&null!==e?e:{}}(e,t),new Promise((function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=u.Q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,n){return void 0===t&&(t={}),this._updateBrowserValues(n),c(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var n={};for(var r in this.cookies)n[r]=c(this.cookies[r],e);return n},e.prototype.set=function(e,t,n){var r;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=s(s({},this.cookies),((r={})[e]=t,r)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=u.q(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=s(s({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=s({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=u.q(e,"",n)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}(),f=l;var p=r.createContext(new f),d=p.Provider,h=p.Consumer;var y,m=(y=function(e,t){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});const v=function(e){function t(t){var n=e.call(this,t)||this;return t.cookies?n.cookies=t.cookies:n.cookies=new l,n}return m(t,e),t.prototype.render=function(){return r.createElement(d,{value:this.cookies},this.props.children)},t}(r.Component);var g=a(72466),b=(a(82765),a(98120),a(25701),a(53486)),w=a.n(b);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(a,e);var t,n,o,i=x(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,e,t)).i18n=e.i18n,n}return t=a,(n=[{key:"getChildContext",value:function(){return{i18n:this.i18n}}},{key:"render",value:function(){var e=this.props.children;return r.Children.only(e)}}])&&E(t.prototype,n),o&&E(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);P.propTypes={i18n:w().object.isRequired,children:w().element.isRequired},P.childContextTypes={i18n:w().object.isRequired};const k=function(e){var n=e._config,o=void 0===n?t.Z:n,a=e.children,u=e.history,c=e.i18n,s=e.store,l=e.cookies,f=void 0===l?null:l;return r.createElement(P,{i18n:c},r.createElement(g.Provider,{store:s,key:"provider"},r.createElement(i.xI,{history:u},r.createElement(v,{cookies:f},o.get("enableStrictMode")?r.createElement(r.StrictMode,null,a):a))))};a(36353),a(61511),a(42484),a(24450),a(45792),a(6893),a(53790),a(4356),a(38233),a(13940),a(42396),a(71772),a(4941),a(34591),a(41866),a(11253),a(28417),a(72829),a(17918),a(52906),a(31815),a(9229),a(14862),a(7283),a(75880);var I=a(67683),T=a.n(I),R=a(12321),C=a.n(R),A=a(59348),N=a.n(A),L=a(9119),D=a(2163);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(e,t)||q(e,t)||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.")}()}function q(e,t){if(e){if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var G=t.Z.get("defaultLang"),W=t.Z.get("langs"),V=t.Z.get("langMap"),Y=(W.concat(Object.keys(V)),t.Z.get("rtlLangs"));function Z(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.Z;if(e&&e.split){var r=e.split("_");if(1===r.length)t=r[0].toLowerCase();else if(2===r.length){var o=r[1];o=o.length>2?o[0].toUpperCase()+o.slice(1).toLowerCase():o.toUpperCase(),t="".concat(r[0].toLowerCase(),"-").concat(o)}else 3===r.length?t="".concat(r[0].toLowerCase(),"-").concat(r[2].toUpperCase()):n.error("Unable to map a language from locale code [".concat(e,"]"))}return t}function $(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.Z;if(e&&e.split){var r=e.split("-");if(1===r.length)t=r[0].toLowerCase();else if(2===r.length){var o=r[1];o=o.length>2?o[0].toUpperCase()+o.slice(1).toLowerCase():o.toUpperCase(),t="".concat(r[0].toLowerCase(),"_").concat(o)}else 3===r.length?t="".concat(r[0].toLowerCase(),"_").concat(r[2].toUpperCase()):n.error("Unable to map a locale from language code [".concat(e,"]"))}return t}function K(e){return Z($(e))}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t._langs,r=void 0===n?W:n;return r.includes(e)}function X(e){var t=K(e);return Q(t)||(t=V.hasOwnProperty(t)?V[t]:G),t}function J(e){var t=X(e);return Y.includes(t)}function ee(e){return e.replace("_","-").toLowerCase()}function te(e){return e&&e.replace&&e.trim?e.replace(/(?:\n(?:\s*))+/g," ").trim():e}var ne=function(e){var t=e._filesize,n=void 0===t?T():t,r=e._log,o=void 0===r?L.Z:r,i=e.i18n,a=e.size,u={B:i.gettext("%(localizedSize)s B"),KB:i.gettext("%(localizedSize)s KB"),MB:i.gettext("%(localizedSize)s MB"),GB:i.gettext("%(localizedSize)s GB"),TB:i.gettext("%(localizedSize)s TB")},c=H(n(a,{base:2,standard:"jedec"}).split(" "),2),s=c[0],l=c[1];if(!s||!l)return o.error('Filesize returned sizeNumber: "'.concat(s,'", sizeName: "').concat(l,'" size "').concat(a,'"')),i.formatNumber(a);var f=i.formatNumber(s),p=u[l];return p?i.sprintf(p,{localizedSize:f}):(o.error("Filesize returned unrecognized unit: ".concat(l)),f)};function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r._Intl,i=void 0===o?"undefined"!=typeof Intl?Intl:void 0:o,a=new n(e);a.lang=t,"object"===B(i)&&Object.prototype.hasOwnProperty.call(i,"NumberFormat")?(L.Z.debug("Intl.NumberFormat exists"),a.numberFormat=new i.NumberFormat(t)):L.Z.debug("Intl.NumberFormat does NOT exist"),a.formatNumber=function(e){return void 0!==a.numberFormat?a.numberFormat.format(e):e.toLocaleString(t)},a.options&&"function"==typeof a.options._momentDefineLocale&&a.options._momentDefineLocale(),a._dcnpgettext=a.dcnpgettext,a.dcnpgettext=function(e,t,n,r,o){return a._dcnpgettext(e,t,te(n),te(r),o)};var u=ee(a.lang);return a.moment=function(){var e=N().apply(void 0,arguments);return e.locale(u),e},a}var oe=function(e,t){return"".concat(e,",").concat(t)},ie=function(e){var t=e.text,n=e.replacements;if(0===n.length)throw new Error("`replacements` should not be empty");var r=t.match(/%\(\w+\)s/g),o=(r&&r.length||0)/2;if(0===o)throw new Error("No placeholder found in `text`");if(o!==n.length)throw new Error("Expected ".concat(o," replacements but only got ").concat(n.length));var i=new RegExp(["^(.*?)",n.map((function(){return"%\\((\\w+)\\)s(.+?)%\\((\\w+)\\)s"})).join("(.*?)"),"(.*?)$"].join("")),a=t.match(i),u=n.reduce((function(e,t){var n=oe(t[0],t[1]);if(e[n])throw new Error("Duplicate key detected in `replacements`: ".concat(n));return F(F({},e),{},U({},n,t[2]))}),{});if(!a)throw new Error("`text` does not appear to be compatible with the provided replacements");a.shift();for(var c=[];a.length;){var s=a.shift();if(u[oe(s,a[1])]){var l=a.shift(),f=a.shift(),p=oe(s,f),d=u[p];c.push(d(l)),delete u[p]}else c.push(s)}if(Object.keys(u).length>0)throw new Error("Not all replacements have been used; unused keys: ".concat(Object.keys(u).join("; ")));return c},ae=(a(95581),a(92973),a(9989)),ue=a(83021),ce=a.n(ue),se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};const fe=function(e,t,n){ce()("function"==typeof t,"A stringify function is required in order to transform query objects into search strings."),ce()("function"==typeof n,"A parse function is required in order to transform search strings into query objects.");var r=function(e){if("object"===(void 0===e?"undefined":le(e))){var n=e.search||"";return e.query&&(n=t(e.query)).length>0&&"?"!==n.charAt(0)&&(n="?"+n),se({},e,{search:n})}return e},o=function(e){var t=e.search;return se({},e,{query:t?n("?"===t.charAt(0)?t.substring(1):t):{}})};e.listen((function(t){!function(e){["length","entries","index","action"].forEach((function(t){e.hasOwnProperty(t)&&(i[t]=e[t])}))}(e)}));var i=se({},e,{listen:function(t){return e.listen((function(e,n){var r=null!=e.location;r&&(n=e.action,e=e.location);var i=o(e);r?t({location:i,action:n}):t(i,n)}))},push:function(t,n){return e.push(r(t),n)},replace:function(t,n){return e.replace(r(t),n)},createHref:function(t){return e.createHref(r(t))}});return Object.defineProperty(i,"location",{get:function(){return o(e.location)}}),i};var pe=a(27107),de=(a(1047),a(80763),a(48078),a(17066)),he=a.n(de);function ye(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}(e)||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 me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we={af:{English:"Afrikaans",native:"Afrikaans"},ach:{English:"Acholi",native:"Acholi"},ak:{English:"Akan",native:"Akan"},"am-et":{English:"Amharic",native:"አማርኛ"},an:{English:"Aragonese",native:"aragonés"},ar:{English:"Arabic",native:"عربي"},as:{English:"Assamese",native:"অসমীয়া"},ast:{English:"Asturian",native:"Asturianu"},az:{English:"Azerbaijani",native:"Azərbaycanca"},be:{English:"Belarusian",native:"Беларуская"},bg:{English:"Bulgarian",native:"Български"},bm:{English:"Bambara",native:"Bamanankan"},"bn-BD":{English:"Bengali (Bangladesh)",native:"বাংলা (বাংলাদেশ)"},"bn-IN":{English:"Bengali (India)",native:"বাংলা (ভারত)"},bn:{English:"Bengali",native:"বাংলা"},br:{English:"Breton",native:"Brezhoneg"},brx:{English:"Bodo",native:"बर'"},bs:{English:"Bosnian",native:"Bosanski"},ca:{English:"Catalan",native:"Català"},"ca-valencia":{English:"Catalan (Valencian)",native:"Català (Valencià)"},cak:{English:"Kaqchikel",native:"Maya Kaqchikel"},cs:{English:"Czech",native:"Čeština"},csb:{English:"Kashubian",native:"Kaszëbsczi"},cy:{English:"Welsh",native:"Cymraeg"},da:{English:"Danish",native:"Dansk"},dbg:{English:"Debug Robot",native:"Ḓḗƀŭɠ Řǿƀǿŧ"},de:{English:"German",native:"Deutsch"},"de-AT":{English:"German (Austria)",native:"Deutsch (Österreich)"},"de-CH":{English:"German (Switzerland)",native:"Deutsch (Schweiz)"},"de-DE":{English:"German (Germany)",native:"Deutsch (Deutschland)"},dsb:{English:"Lower Sorbian",native:"Dolnoserbšćina"},ee:{English:"Ewe",native:"Eʋe"},el:{English:"Greek",native:"Ελληνικά"},"en-AU":{English:"English (Australian)",native:"English (Australian)"},"en-CA":{English:"English (Canadian)",native:"English (Canadian)"},"en-GB":{English:"English (British)",native:"English (British)"},"en-NZ":{English:"English (New Zealand)",native:"English (New Zealand)"},"en-US":{English:"English (US)",native:"English (US)"},"en-ZA":{English:"English (South African)",native:"English (South African)"},eo:{English:"Esperanto",native:"Esperanto"},es:{English:"Spanish",native:"Español"},"es-AR":{English:"Spanish (Argentina)",native:"Español (de Argentina)"},"es-CL":{English:"Spanish (Chile)",native:"Español (de Chile)"},"es-ES":{English:"Spanish (Spain)",native:"Español (de España)"},"es-MX":{English:"Spanish (Mexico)",native:"Español (de México)"},et:{English:"Estonian",native:"Eesti keel"},eu:{English:"Basque",native:"Euskara"},fa:{English:"Persian",native:"فارسی"},"fa-IR":{English:"Persian (Iran)",native:"(ایران) فارسی"},ff:{English:"Fulah",native:"Pulaar-Fulfulde"},fi:{English:"Finnish",native:"suomi"},"fj-FJ":{English:"Fijian",native:"Vosa vaka-Viti"},fr:{English:"French",native:"Français"},"fur-IT":{English:"Friulian",native:"Furlan"},"fy-NL":{English:"Frisian",native:"Frysk"},ga:{English:"Irish",native:"Gaeilge"},"ga-IE":{English:"Irish",native:"Gaeilge"},gd:{English:"Gaelic (Scotland)",native:"Gàidhlig"},gl:{English:"Galician",native:"Galego"},gn:{English:"Guarani (Paraguay)",native:"GuaranÍ"},gu:{English:"Gujarati",native:"ગુજરાતી"},"gu-IN":{English:"Gujarati (India)",native:"ગુજરાતી (ભારત)"},ha:{English:"Hausa",native:"Hausa"},he:{English:"Hebrew",native:"עברית"},hi:{English:"Hindi",native:"हिन्दी"},"hi-IN":{English:"Hindi (India)",native:"हिन्दी (भारत)"},hr:{English:"Croatian",native:"Hrvatski"},hsb:{English:"Upper Sorbian",native:"Hornjoserbsce"},hu:{English:"Hungarian",native:"magyar"},"hy-AM":{English:"Armenian",native:"Հայերեն"},ia:{English:"Interlingua",native:"Interlingua"},id:{English:"Indonesian",native:"Bahasa Indonesia"},ig:{English:"Igbo",native:"Igbo"},is:{English:"Icelandic",native:"íslenska"},it:{English:"Italian",native:"Italiano"},ja:{English:"Japanese",native:"日本語"},"ja-JP-mac":{English:"Japanese",native:"日本語"},ka:{English:"Georgian",native:"ქართული"},kab:{English:"Kabyle",native:"Taqbaylit"},kk:{English:"Kazakh",native:"Қазақ"},km:{English:"Khmer",native:"ខ្មែរ"},kn:{English:"Kannada",native:"ಕನ್ನಡ"},ko:{English:"Korean",native:"한국어"},kok:{English:"Konkani",native:"कोंकनी"},ku:{English:"Kurdish",native:"Kurdî"},ks:{English:"Kashmiri",native:"كشمیری"},la:{English:"Latin",native:"Latina"},lg:{English:"Luganda",native:"Luganda"},lij:{English:"Ligurian",native:"Ligure"},ln:{English:"Lingala",native:"Lingála"},lo:{English:"Lao",native:"ພາສາລາວ"},lt:{English:"Lithuanian",native:"lietuvių kalba"},lv:{English:"Latvian",native:"Latviešu"},mai:{English:"Maithili",native:"मैथिली মৈথিলী"},mg:{English:"Malagasy",native:"Malagasy"},mi:{English:"Maori (Aotearoa)",native:"Māori (Aotearoa)"},mk:{English:"Macedonian",native:"Македонски"},ml:{English:"Malayalam",native:"മലയാളം"},mn:{English:"Mongolian",native:"Монгол"},mr:{English:"Marathi",native:"मराठी"},ms:{English:"Malay",native:"Melayu"},mt:{English:"Maltese",native:"Malti"},my:{English:"Burmese",native:"မြန်မာဘာသာ"},"nb-NO":{English:"Norwegian (Bokmål)",native:"Norsk bokmål"},"ne-NP":{English:"Nepali",native:"नेपाली"},"nn-NO":{English:"Norwegian (Nynorsk)",native:"Norsk nynorsk"},nl:{English:"Dutch",native:"Nederlands"},nr:{English:"Ndebele, South",native:"isiNdebele"},nso:{English:"Northern Sotho",native:"Sepedi"},oc:{English:"Occitan",native:"occitan"},or:{English:"Oriya",native:"ଓଡ଼ିଆ"},pa:{English:"Punjabi",native:"ਪੰਜਾਬੀ"},"pa-IN":{English:"Punjabi (India)",native:"ਪੰਜਾਬੀ (ਭਾਰਤ)"},pl:{English:"Polish",native:"Polski"},"pt-BR":{English:"Portuguese (Brazilian)",native:"Português (do Brasil)"},"pt-PT":{English:"Portuguese (Portugal)",native:"Português (Europeu)"},ro:{English:"Romanian",native:"Română"},rm:{English:"Romansh",native:"rumantsch"},ru:{English:"Russian",native:"Русский"},rw:{English:"Kinyarwanda",native:"Ikinyarwanda"},sa:{English:"Sanskrit",native:"संस्कृत"},sat:{English:"Santali",native:"संताली"},sah:{English:"Sakha",native:"Сахалыы"},sco:{English:"Scots",native:"Scots"},si:{English:"Sinhala",native:"සිංහල"},sk:{English:"Slovak",native:"slovenčina"},sl:{English:"Slovenian",native:"Slovenščina"},son:{English:"Songhai",native:"Soŋay"},sq:{English:"Albanian",native:"Shqip"},sr:{English:"Serbian",native:"Српски"},"sr-Cyrl":{English:"Serbian",native:"Српски"},"sr-Latn":{English:"Serbian",native:"Srpski"},ss:{English:"Siswati",native:"siSwati"},st:{English:"Southern Sotho",native:"Sesotho"},"sv-SE":{English:"Swedish",native:"Svenska"},sw:{English:"Swahili",native:"Kiswahili"},szl:{English:"Silesian",native:"Ślōnski"},ta:{English:"Tamil",native:"தமிழ்"},"ta-IN":{English:"Tamil (India)",native:"தமிழ் (இந்தியா)"},"ta-LK":{English:"Tamil (Sri Lanka)",native:"தமிழ் (இலங்கை)"},te:{English:"Telugu",native:"తెలుగు"},th:{English:"Thai",native:"ไทย"},tl:{English:"Tagalog",native:"Tagalog"},tn:{English:"Tswana",native:"Setswana"},tr:{English:"Turkish",native:"Türkçe"},trs:{English:"Triqui",native:"Nánj nï'ïn"},ts:{English:"Tsonga",native:"Xitsonga"},tsz:{English:"Purépecha",native:"Purépecha"},"tt-RU":{English:"Tatar",native:"Tatarça"},uk:{English:"Ukrainian",native:"Українська"},ur:{English:"Urdu",native:"اُردو"},uz:{English:"Uzbek",native:"Oʻzbek tili"},ve:{English:"Venda",native:"Tshivenḓa"},vec:{English:"Venetan",native:"Vèneto"},vi:{English:"Vietnamese",native:"Tiếng Việt"},wo:{English:"Wolof",native:"Wolof"},"x-testing":{English:"Testing",native:"Ŧḗşŧīƞɠ"},xh:{English:"Xhosa",native:"isiXhosa"},yo:{English:"Yoruba",native:"Yorùbá"},"zh-CN":{English:"Chinese (Simplified)",native:"中文 (简体)"},"zh-TW":{English:"Chinese (Traditional)",native:"正體中文 (繁體)"},zu:{English:"Zulu",native:"isiZulu"}},Oe=t.Z.get("langs").reduce((function(e,t){return void 0!==we[t]?ge(ge({},e),{},be({},t,we[t])):e}),{}),Ee=[].concat(ye(Object.keys(t.Z.get("hrefLangsMap"))),ye(Object.keys(Oe).filter((function(e){return!t.Z.get("unsupportedHrefLangs").includes(e)}))));const _e=Oe;var xe=a(79952),Se=a.n(xe);function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie="FINISH_UPDATE_USER_ACCOUNT",Te="UPDATE_USER_ACCOUNT",Re="LOG_OUT_USER",Ce="LOAD_CURRENT_USER_ACCOUNT",Ae="FETCH_USER_ACCOUNT",Ne="LOAD_USER_ACCOUNT",Le="DELETE_USER_PICTURE",De="FETCH_USER_NOTIFICATIONS",Me="LOAD_USER_NOTIFICATIONS",Fe="DELETE_USER_ACCOUNT",Ue="UNLOAD_USER_ACCOUNT",Be="UNSUBSCRIBE_NOTIFICATION",He="ABORT_UNSUBSCRIBE_NOTIFICATION",qe="FINISH_UNSUBSCRIBE_NOTIFICATION",ze={currentUserID:null,byID:{},byUsername:{},isUpdating:!1,userPageBeingViewed:{loading:!1,userId:null},isUnsubscribedFor:{},currentUserWasLoggedOut:!1,resetStateOnNextChange:!1},Ge=function(e){var t=e.errorHandlerId,n=e.userId;return ce()(t,"errorHandlerId is required"),ce()(n,"userId is required"),{type:Ae,payload:{errorHandlerId:t,userId:n}}},We=function(e){var t=e.user;return ce()(t,"user is required"),{type:Ce,payload:{user:t}}},Ve=function(e){var t=e.user;return ce()(t,"user is required"),{type:Ne,payload:{user:t}}},Ye=function(e){var t=e.userId;return ce()(t,"userId is required"),{type:Ue,payload:{userId:t}}};function Ze(){return{type:Re,payload:{}}}var $e=function(e){var t=e.errorHandlerId,n=e.userId;return ce()(t,"errorHandlerId is required"),ce()(n,"userId is required"),{type:De,payload:{errorHandlerId:t,userId:n}}},Ke=function(e){var t=e.notifications,n=e.userId;return ce()(t,"notifications is required"),ce()(n,"userId is required"),{type:Me,payload:{notifications:t,userId:n}}},Qe=function(e,t){return ce()("number"==typeof t,"userId is required"),e.byID[t]},Xe=function(e){if(!e.currentUserID)return null;var t=Qe(e,e.currentUserID);return ce()(t,"currentUserID is defined but no matching user found in users state."),t},Je=function(e){return!!e&&(e.is_addon_developer||e.is_artist)},et=function(e,t){var n=Xe(e.users);if(!n)return!1;var r=n.permissions;if(!r)return!1;if(r.includes(D.jm))return!0;if(r.includes(t))return!0;var o=r.filter((function(e){return e.endsWith(":*")})).map((function(e){return e.replace(":*","")})),i=t.split(":")[0];return o.includes(i)},tt=function(e){var t=Xe(e.users);if(!t)return!1;var n=t.permissions;return!!n&&(!!n.includes(D.jm)||(n.includes(D.Mr)||n.includes(D.mD)||n.includes(D.jy)||n.includes(D.QZ)||n.includes(D.Yp)||n.includes(D.V_)||n.includes(D.xS)||n.includes(D.lS)))},nt=function(e){var t=e.state,n=e.user;ce()(n,"user is required");var r=Qe(t,n.id)||{notifications:null};return{byID:Pe(Pe({},t.byID),{},ke({},n.id,Pe(Pe({},r),n))),byUsername:Pe(Pe({},t.byUsername),{},ke({},n.username.toLowerCase(),n.id))}},rt=function(e){var t=e.hash,n=e.notification,r=e.token;return ce()(t,"hash is required"),ce()(n,"notification is required"),ce()(r,"token is required"),{type:qe,payload:{hash:t,notification:n,token:r}}},ot=function(e){var t=e.hash,n=e.notification,r=e.token;return ce()(t,"hash is required"),ce()(n,"notification is required"),ce()(r,"token is required"),{type:He,payload:{hash:t,notification:n,token:r}}},it=function(e){var t=e.hash,n=e.notification,r=e.token;return ce()(t,"hash is required"),ce()(n,"notification is required"),ce()(r,"token is required"),"".concat(t,"-").concat(n,"-").concat(r)},at=function(e,t,n,r){return e.isUnsubscribedFor[it({hash:t,notification:n,token:r})]};const ut=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ze,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.Z;switch(n.type){case Te:return Pe(Pe({},e),{},{isUpdating:!0});case Ie:return Pe(Pe({},e),{},{isUpdating:!1});case Ce:var o=n.payload.user;return Pe(Pe(Pe({},e),nt({state:e,user:o})),{},{currentUserID:o.id});case Ne:var a=n.payload.user;return Pe(Pe({},e),nt({state:e,user:a}));case Me:var u=n.payload,c=u.notifications,s=u.userId,l=Qe(e,s);return ce()(l,"user is required"),ce()(c,"notifications are required"),Pe(Pe({},e),{},{byID:Pe(Pe({},e.byID),{},ke({},l.id,Pe(Pe({},l),{},{notifications:c})))});case Re:return Pe(Pe({},e),{},{currentUserID:null,currentUserWasLoggedOut:!0});case Ue:var f=n.payload.userId;if(e.byID[f]){var p=e.byID[f].username;return Pe(Pe({},e),{},{currentUserID:e.currentUserID===f?null:e.currentUserID,byID:Pe(Pe({},e.byID),{},ke({},f,void 0)),byUsername:Pe(Pe({},e.byUsername),{},ke({},p,void 0))})}return e;case Be:var d=n.payload,h=d.hash,y=d.notification,m=d.token;return Pe(Pe({},e),{},{isUnsubscribedFor:Pe(Pe({},e.isUnsubscribedFor),{},ke({},it({hash:h,notification:y,token:m}),!1))});case He:var v=n.payload,g=v.hash,b=v.notification,w=v.token;return Pe(Pe({},e),{},{isUnsubscribedFor:Pe(Pe({},e.isUnsubscribedFor),{},ke({},it({hash:g,notification:b,token:w}),null))});case qe:var O=n.payload,E=O.hash,_=O.notification,x=O.token;return Pe(Pe({},e),{},{isUnsubscribedFor:Pe(Pe({},e.isUnsubscribedFor),{},ke({},it({hash:E,notification:_,token:x}),!0))});case i.nk:return r.get("server")?e:e.resetStateOnNextChange?Pe(Pe({},e),{},{resetStateOnNextChange:!1,currentUserWasLoggedOut:!1}):Pe(Pe({},e),{},{resetStateOnNextChange:!0});default:return e}};function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ft="SET_AUTH_TOKEN",pt="SET_CLIENT_APP",dt="SET_LANG",ht="SET_REGION_CODE",yt="SET_REQUEST_ID",mt="SET_USER_AGENT",vt="Android",gt="iOS",bt={clientApp:"",lang:"",regionCode:null,requestId:null,token:null,userAgent:null,userAgentInfo:{browser:{},device:{},os:{}}};function wt(e){return ce()(e,"clientApp cannot be falsey"),{type:pt,payload:{clientApp:e}}}var Ot,Et;a(92124);function _t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pt(e){return["__gt","__lt","__lte","__gte",""].reduce((function(t,n){return St(St({},t),{},jt({},"".concat(e).concat(n),"".concat(e).concat(n)))}),{})}var kt=St(St({app:"clientApp",appversion:"compatibleWithVersion",author:"author",category:"category",exclude_addons:"exclude_addons",guid:"guid",page:"page",page_size:"page_size",promoted:"promoted",q:"query"},Pt("ratings")),{},{sort:"sort",tag:"tag",type:"addonType"},Pt("users"));function It(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.config,o=void 0===r?t.Z:r,i=n.filters,a=n.userAgentInfo;if(!i)throw new Error("filters are required");if(!a)throw new Error("userAgentInfo is required");var u=St({},i);if("Firefox"===a.browser.name&&a.os.name!==gt){var c=parseInt(a.browser.version,10);c>=57&&(o.get("restrictSearchResultsToAppVersion")?(L.Z.debug((0,e.f9)(Ot||(Ot=_t(['Setting "compatibleWithVersion" to current application\n version (Firefox ',") so only relevant extensions are\n displayed."])),c)),u.compatibleWithVersion=a.browser.version):L.Z.warn((0,e.f9)(Et||(Et=_t(['restrictSearchResultsToAppVersion config set;\n not setting "compatibleWithVersion" to current application version,\n even though it\'s above 57.'])))))}return u}function Tt(e){return Object.keys(kt).reduce((function(t,n){return e&&void 0!==e[kt[n]]&&""!==e[kt[n]]?St(St({},t),{},jt({},n,e[kt[n]])):t}),{})}function Rt(e){return Object.keys(kt).reduce((function(t,n){var r=e[n];return Array.isArray(e[n])&&(L.Z.info("".concat(n," param was provided multiple times: ").concat(r)),r=e[n][0]),void 0!==r&&""!==r?St(St({},t),{},jt({},kt[n],r)):t}),{})}var Ct,At=function(e){var t=e.api,n=St({},e.filters);return!n.clientApp&&t.clientApp&&(L.Z.debug("No clientApp found in filters; using api.clientApp (".concat(t.clientApp,")")),n.clientApp=t.clientApp),n.clientApp===D.wZ&&(n.promoted=D.g$,n.addonType=D.Gz),n},Nt=function(e){var t=St({},e);return delete t.clientApp,delete t.lang,t};a(71246);function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){Mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ft(e){var t={};return Object.keys(e).forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}function Ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ae.parse(e,!0);return n.search=null,n.query=Ft(Dt(Dt({},n.query),t)),ae.format(n)}function Bt(e){return{utm_campaign:e.query.utm_campaign,utm_content:e.query.utm_content,utm_medium:e.query.utm_medium,utm_source:e.query.utm_source}}function Ht(e){return(Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qt(){qt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Ht(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function zt(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){Vt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yt="".concat(t.Z.get("apiHost")).concat(t.Z.get("apiPath"));function Zt(e){var t=Wt({},e);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&""!==n||delete t[e]})),ae.format({query:t})}function $t(n){var r=n.endpoint,o=n.params,i=void 0===o?{}:o,a=n.auth,u=void 0!==a&&a,c=n.apiState,s=void 0===c?bt:c,l=n.method,f=void 0===l?"GET":l,p=n.body,d=n.credentials,h=n.errorHandler,y=n._config,m=void 0===y?t.Z:y,v=n.version,g=void 0===v?m.get("apiVersion"):v,b=n._log,w=void 0===b?L.Z:b;if(!r)return Promise.reject(new Error('endpoint URL cannot be falsy: "'.concat(r,'"')));h&&h.clear();var O="".concat(t.Z.get("apiPath")).concat(g),E=ae.parse(r,!0),_=E.pathname||"";if(E.host){if(!_.startsWith(O))return Promise.reject(new Error('Absolute URL "'.concat(r,'" has an unexpected prefix.')))}else{var x=_.startsWith("/")?"":"/";_="".concat(O).concat(x).concat(_)}var S=Zt(Wt(Wt(Wt({},E.query),i),{},{lang:s.lang})),j={headers:{},method:f.toUpperCase(),credentials:void 0,body:void 0};d&&(j.credentials="include"),p&&(p instanceof he()?(j.body=p,delete j.headers["Content-type"]):(j.body=JSON.stringify(p),j.headers["Content-type"]="application/json")),u&&s.token&&(j.headers.authorization="Session ".concat(s.token)),s.regionCode&&(j.headers["X-Country-Code"]=s.regionCode),_=_.endsWith("/")?_:"".concat(_,"/");var P="".concat(t.Z.get("apiHost")).concat(_).concat(S);return fetch(P,j).then((function(t){var n=t.headers.get("Content-Type");return"application/json"===(n=n&&n.toLowerCase())?t.json().then((function(e){return{response:t,jsonResponse:e}})):t.text().then((function(r){var o,i;return w.warn((0,e.f9)(Ct||(o=["Response from API was not JSON (was Content-Type:\n ",") %o"],i||(i=o.slice(0)),Ct=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}}))),n),{body:r?r.substring(0,100):"[empty]",status:t.status||"[unknown]",url:t.url||"[unknown]"}),{jsonResponse:{},response:t}}))})).then((function(e){var n=e.response,r=e.jsonResponse;if(n.ok)return r;var o=function(e){var n=e.apiURL,r=e.response,o=e.jsonResponse,i="[unknown URL]";n&&(i=(i=n.replace(t.Z.get("apiHost"),"")).split("?")[0]);var a=new Error("Error calling: ".concat(i," (status: ").concat(r.status,")"));return a.response={apiURL:n,status:r.status,data:o},a}({apiURL:P,response:n,jsonResponse:r});throw h&&h.handle(o),o}),(function(e){throw h&&h.handle(e),e}))}function Kt(e){var t=e.api,n=e.showGroupedRatings,r=void 0!==n&&n,o=e.slug,i=t.clientApp,a=t.userAgentInfo.browser.version;return a||L.Z.debug("Failed to parse appversion for client app ".concat(i||"[empty]")),$t({endpoint:Ut("addons/addon/".concat(o),{app:i,appversion:a||"",show_grouped_ratings:String(r)}),auth:!0,apiState:t})}function Qt(e){var n=e._config,r=void 0===n?t.Z:n,o=e._window,i=void 0===o?"undefined"!=typeof window?window:null:o,a=e.location,u=r.get("fxaConfig"),c=Zt({config:u,to:"local"===u&&i?i.location.href:ae.format(Wt({},a))});return"".concat(Yt).concat(r.get("apiVersion"),"/accounts/login/start/").concat(c)}function Xt(e){var t=e._fixFiltersForClientApp,n=void 0===t?At:t,r=e.api,o=It({filters:n({api:r,filters:e.filters}),userAgentInfo:r.userAgentInfo});return $t({endpoint:"addons/autocomplete",params:Wt({app:r.clientApp},Tt(o)),apiState:r})}var Jt=function(){var e,t=(e=qt().mark((function e(t){var n,r,o,i,a,u,c,s,l,f=arguments;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=f.length>1&&void 0!==f[1]?f[1]:{},r=n.pageLimit,o=void 0===r?100:r,i=[],u=0,c=0,s=1;case 5:if(!(s<=o)){e.next=21;break}return e.next=8,t(a);case 8:if(l=e.sent,u||(u=l.count),c||(c=l.page_size),i=i.concat(l.results),!l.next){e.next=17;break}a=l.next,L.Z.debug('Fetching next page "'.concat(a,'"')),e.next=18;break;case 17:return e.abrupt("return",{count:u,page_size:c,results:i});case 18:s++,e.next=5;break;case 21:throw new Error("Fetched too many pages (the limit is ".concat(o,")"));case 22:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){zt(i,r,o,a,u,"next",e)}function u(e){zt(i,r,o,a,u,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),en=function(e){if("object"!==Ht(e))throw new Error('Expected an object type, got "'.concat(Ht(e),'"'));Object.keys(e).forEach((function(e){if(void 0===_e[e])throw new Error('Unknown locale: "'.concat(e,'"'))}))},tn=a(44683);const nn=window,rn=a.n(tn)()(nn);var on=["utm_campaign","utm_content","utm_medium","utm_source","utm_term"];function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ln(e){return"/addon/".concat(e,"/")}var fn=function(e){var t=e.utm_campaign,n=void 0===t?D.Bg:t,r=e.utm_content,o=void 0===r?null:r,i=e.utm_medium,a=void 0===i?D.AT:i,u=e.utm_source,c=void 0===u?D.Pr:u,s=e.utm_term,l=void 0===s?null:s;return Zt(un(un({},sn(e,on)),{},{utm_campaign:n,utm_content:o,utm_medium:a,utm_source:c,utm_term:l}))},pn=function(e){var n=e._config,r=void 0===n?t.Z:n,o=e.locationPathname;return"".concat(r.get("baseURL")).concat(o)},dn=function(e){var n=e._config,r=void 0===n?t.Z:n,o=e.urlString,i=r.get("baseURL"),a=ae.parse(o,!0),u=o.startsWith("/")&&!o.startsWith("//"),c=ae.parse(i).host||"",s=c===a.host||o.startsWith("//".concat(c)),l=/^\/blog\//.test(a.pathname||""),f=(u||s)&&!l,p=o.startsWith("//".concat(c))?o.replace("//".concat(c),""):o.replace(i,"");return f&&!p.startsWith("/")&&(p="/".concat(p)),{isInternal:f,relativeURL:p}},hn=function(e){var t=e.utm_content;return"".concat(D.q3).concat(fn({utm_campaign:null,utm_content:t}))},yn=function(e){var t=e._checkInternalURL,n=void 0===t?dn:t,r=e.urlString;if(n({urlString:r}).isInternal){var o=ae.parse(r,!0);if(o.pathname){var i=o.pathname.split("/")[1];if(Q(i))return r.replace("".concat(i,"/"),"")}}return r};function mn(e){switch(e){case!0:case 1:case"1":case"true":return!0;default:return!1}}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rn;return{__html:n.sanitize(e,{ALLOWED_TAGS:t})}}function gn(e){return(e||"").replace(/(\r\n|\r|\n)(?!<\/?(li|ul|ol)>)/g,"<br />")}function bn(e){return vn(gn(e),["a","abbr","acronym","b","blockquote","br","code","em","i","li","ol","strong","ul"])}function wn(e){var t=e.addon,n=e.userId;return!!(t&&t.authors&&t.authors.length&&n)&&t.authors.some((function(e){return e.id===n}))}function On(e){return Object.prototype.hasOwnProperty.call(D.Po,e)}function En(e){if(!On(e))throw new Error('"'.concat(e,'" not found in API_ADDON_TYPES_MAPPING'));return D.Po[e]}function _n(e){return Object.prototype.hasOwnProperty.call(D.LF,e)}function xn(e){if(!_n(e))throw new Error('"'.concat(e,'" not found in VISIBLE_ADDON_TYPES_MAPPING'));return D.LF[e]}var Sn,jn,Pn,kn,In,Tn=function(e){var t=e;return t.startsWith("src")||(t=t.replace(/^.*src/,"src")),t},Rn=function(e){return e.displayName||e.name||"Component"},Cn=function(e){var t=e.history,n=e._parse,r=void 0===n?pe.parse:n,o=e._stringify,i=void 0===o?pe.stringify:o;return fe(t,i,r)},An=(a(78685),function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}}),Nn=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},Ln=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Dn=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Mn=function(e,t,n){var r;return function(o){t.value>=0&&(o||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Fn=-1,Un=function(){return"hidden"===document.visibilityState?0:1/0},Bn=function(){Ln((function(e){var t=e.timeStamp;Fn=t}),!0)},Hn=function(){return Fn<0&&(Fn=Un(),Bn(),Dn((function(){setTimeout((function(){Fn=Un(),Bn()}),0)}))),{get firstHiddenTime(){return Fn}}},qn=function(e,t){var n,r=Hn(),o=An("FCP"),i=function(e){"first-contentful-paint"===e.name&&(u&&u.disconnect(),e.startTime<r.firstHiddenTime&&(o.value=e.startTime,o.entries.push(e),n(!0)))},a=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],u=a?null:Nn("paint",i);(a||u)&&(n=Mn(e,o,t),a&&i(a),Dn((function(r){o=An("FCP"),n=Mn(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-r.timeStamp,n(!0)}))}))})))},zn=!1,Gn=-1,Wn=function(e,t){zn||(qn((function(e){Gn=e.value})),zn=!0);var n,r=function(t){Gn>-1&&e(t)},o=An("CLS",0),i=0,a=[],u=function(e){if(!e.hadRecentInput){var t=a[0],r=a[a.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e]),i>o.value&&(o.value=i,o.entries=a,n())}},c=Nn("layout-shift",u);c&&(n=Mn(r,o,t),Ln((function(){c.takeRecords().map(u),n(!0)})),Dn((function(){i=0,Gn=-1,o=An("CLS",0),n=Mn(r,o,t)})))},Vn={passive:!0,capture:!0},Yn=new Date,Zn=function(e,t){Sn||(Sn=t,jn=e,Pn=new Date,Qn(removeEventListener),$n())},$n=function(){if(jn>=0&&jn<Pn-Yn){var e={entryType:"first-input",name:Sn.type,target:Sn.target,cancelable:Sn.cancelable,startTime:Sn.timeStamp,processingStart:Sn.timeStamp+jn};kn.forEach((function(t){t(e)})),kn=[]}},Kn=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){Zn(e,t),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,Vn),removeEventListener("pointercancel",r,Vn)};addEventListener("pointerup",n,Vn),addEventListener("pointercancel",r,Vn)}(t,e):Zn(t,e)}},Qn=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Kn,Vn)}))},Xn=function(e,t){var n,r=Hn(),o=An("FID"),i=function(e){e.startTime<r.firstHiddenTime&&(o.value=e.processingStart-e.startTime,o.entries.push(e),n(!0))},a=Nn("first-input",i);n=Mn(e,o,t),a&&Ln((function(){a.takeRecords().map(i),a.disconnect()}),!0),a&&Dn((function(){var r;o=An("FID"),n=Mn(e,o,t),kn=[],jn=-1,Sn=null,Qn(addEventListener),r=i,kn.push(r),$n()}))},Jn={},er=function(e,t){var n,r=Hn(),o=An("LCP"),i=function(e){var t=e.startTime;t<r.firstHiddenTime&&(o.value=t,o.entries.push(e),n())},a=Nn("largest-contentful-paint",i);if(a){n=Mn(e,o,t);var u=function(){Jn[o.id]||(a.takeRecords().map(i),a.disconnect(),Jn[o.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,u,{once:!0,capture:!0})})),Ln(u,!0),Dn((function(r){o=An("LCP"),n=Mn(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-r.timeStamp,Jn[o.id]=!0,n(!0)}))}))}))}};function tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach((function(t){rr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(e){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ir(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e._log,n=void 0===t?L.Z:t,r=e._navigator,o=void 0===r?"undefined"!=typeof navigator?navigator:null:r,i=e._window,a=void 0===i?"undefined"!=typeof window?window:null:i;if(!o||!a)return!1;var u=o.doNotTrack||a.doNotTrack;return"1"===u&&(n.info("Do Not Track is enabled"),!0)}var sr=function(e){return{eventAction:e.action,eventCategory:e.category,eventLabel:e.label,eventValue:e.value,hitType:"event"}};function lr(e){var t;return(t={},rr(t,D.jV,D.JW),rr(t,D.Gz,D.JW),rr(t,D.d$,D.JW),rr(t,D.Yd,D.o6),t)[e]||D.HH}var fr=function(e,t){var n=D.Yd===e;switch(t){case D.H0:return n?D.jM:D.ZV;case D.lm:return n?D.i_:D.lx;case D.nl:return n?D.Oj:D.o_;case D.gQ:return n?D.Zt:D.aS;case D.VN:return n?D.z8:D.ui;default:return n?D.dJ:D.z}};const pr=new(function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r._config,i=void 0===o?t.Z:o,a=r._isDoNotTrackEnabled,u=void 0===a?cr:a,c=r._getCLS,s=void 0===c?Wn:c,l=r._getFID,f=void 0===l?Xn:l,p=r._getLCP,d=void 0===p?er:p;if(ar(this,n),"undefined"!=typeof window&&(this._log=L.Z,this.logPrefix="[GA]",this.id=i.get("trackingId"),mn(i.get("trackingEnabled"))?this.id?u()?(this.log((0,e.f9)(In||(In=ir(["Do Not Track Enabled; Google Analytics not\n loaded and tracking disabled"])))),this.trackingEnabled=!1):(this.log("Google Analytics is enabled"),this.trackingEnabled=!0):(this.log("GA Disabled because trackingId was empty"),this.trackingEnabled=!1):(this.log("GA disabled because trackingEnabled was false"),this.trackingEnabled=!1),this.logPrefix="[GA: ".concat(this.trackingEnabled?"ON":"OFF","]"),this.trackingEnabled&&(window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create",this.id,"auto"),ga("set","transport","beacon"),mn(i.get("trackingSendInitPageView"))&&ga("send","pageview"),ga("set","dimension3","addons-frontend"),mn(i.get("trackingSendWebVitals"))))){this.log("trackingSendWebVitals is enabled");var h=this.sendWebVitalStats.bind(this);s(h),f(h),d(h)}}var r,o,i;return r=n,(o=[{key:"sendWebVitalStats",value:function(e){var t=e.name,n=e.delta,r=e.id;this.log("sendWebVitalStats",{name:t,delta:n,id:r}),this._ga("send","event",{eventCategory:"Web Vitals",eventAction:t,eventLabel:r,eventValue:Math.round("CLS"===t?1e3*n:n),nonInteraction:!0,transport:"beacon"})}},{key:"log",value:function(e,t){if(this._log){var n=void 0===t?"%s %s":"%s %s: %o";this._log.info(n,this.logPrefix,e,t)}}},{key:"_ga",value:function(){var e;this.trackingEnabled&&(e=window).ga.apply(e,arguments)}},{key:"sendEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e._config,r=void 0===n?t.Z:n,o=e.action,i=e.category,a=e.label,u=e.sendSecondEventWithOverrides,c=e.value;if(!i)throw new Error("sendEvent: category is required");if(!o)throw new Error("sendEvent: action is required");if(r.get("server"))throw new Error("sendEvent: cannot send tracking events on the server");var s={action:o,category:i,label:a,value:c},l=sr(s);if(this._ga("send",l),this.log("sendEvent",l),"object"===or(u)){var f=sr(nr(nr({},s),u));this._ga("send",f),this.log("sendEvent",f)}}},{key:"setPage",value:function(e){if(!e)throw new Error("setPage: page is required");this._ga("set","page",e),this.log("setPage",e)}},{key:"pageView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._ga("send",nr({hitType:"pageview"},e)),this.log("pageView",e)}},{key:"setDimension",value:function(e){var t=e.dimension,n=e.value;ce()(t,"A dimension is required"),ce()(n,"A value is required"),this._ga("set",t,n),this.log("set",{dimension:t,value:n})}}])&&ur(r.prototype,o),i&&ur(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}());function dr(e){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var hr,yr;function mr(){mr=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==dr(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function vr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function gr(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function br(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){gr(i,r,o,a,u,"next",e)}function u(e){gr(i,r,o,a,u,"throw",e)}a(void 0)}))}}function wr(){return(wr=br(mr().mark((function i(u){var c,s,l,f,p,d,h,y,m,v,g,b,w,O,E,_,x,S,j,P,I,T,R,C=arguments;return mr().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(c=C.length>1&&void 0!==C[1]?C[1]:{},s=c._config,l=void 0===s?t.Z:s,f=c._createBrowserHistory,p=void 0===f?n.lX:f,d=c._tracking,h=void 0===d?pr:d,y=c.sagas,m=void 0===y?null:y,!l.get("isDevelopment")){i.next=5;break}return v=a(14777),g=v.fetchBufferedLogs,i.next=5,g();case 5:if(t.Z.get("enableStrictMode")&&L.Z.info((0,e.f9)(hr||(hr=vr(["StrictMode is enabled, which causes double redux action\n dispatching. See: https://github.com/mozilla/addons-frontend/issues/6424"])))),b=document.getElementById("redux-store-state"),O=document.querySelector("html"),E=X(O.getAttribute("lang")),_=$(E),b)try{w=JSON.parse(b.textContent)}catch(e){L.Z.error("Could not load initial redux data")}if((x=Cn({history:p({forceRefresh:!(!w||!w.site)&&w.site.loadedPageIsAnonymous})})).listen((function(e){h.setPage(e.pathname),h.pageView({title:""})})),S=u({history:x,initialState:w}),j=S.sagaMiddleware,P=S.store,m&&j?j.run(m):L.Z.warn("sagas not found"),I={},i.prev=16,_===$(l.get("defaultLang"))){i.next=21;break}return i.next=20,a(82603)("./".concat(_,"/amo.js"));case 20:I=i.sent;case 21:i.next=26;break;case 23:i.prev=23,i.t0=i.catch(16),L.Z.info((0,e.f9)(yr||(yr=vr(['Locale not found or required for locale: "','".\n Falling back to default lang: "','"'])),_,l.get("defaultLang")));case 26:return T=re(I,E),R=function(e){(0,o.render)(r.createElement(k,{history:x,i18n:T,store:P},r.createElement(e,null)),document.getElementById("react-view"))},i.abrupt("return",{history:x,renderApp:R,store:P});case 29:case"end":return i.stop()}}),i,null,[[16,23]])})))).apply(this,arguments)}var Or,Er,_r,xr,Sr=a(29622),jr=a.n(Sr),Pr=a(1816),kr=a.n(Pr),Ir=a(40801),Tr=a.n(Ir),Rr=a(28608),Cr=a.n(Rr),Ar="bodyAttributes",Nr="htmlAttributes",Lr="titleAttributes",Dr={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Mr=(Object.keys(Dr).map((function(e){return Dr[e]})),"charset"),Fr="cssText",Ur="href",Br="http-equiv",Hr="innerHTML",qr="itemprop",zr="name",Gr="property",Wr="rel",Vr="src",Yr="target",Zr={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},$r="defaultTitle",Kr="defer",Qr="encodeSpecialCharacters",Xr="onChangeClientState",Jr="titleTemplate",eo=Object.keys(Zr).reduce((function(e,t){return e[Zr[t]]=t,e}),{}),to=[Dr.NOSCRIPT,Dr.SCRIPT,Dr.STYLE],no="data-react-helmet",ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oo=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},io=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ao=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uo=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},co=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},so=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},lo=function(e){var t=mo(e,Dr.TITLE),n=mo(e,Jr);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=mo(e,$r);return t||r||void 0},fo=function(e){return mo(e,Xr)||function(){}},po=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return ao({},e,t)}),{})},ho=function(e,t){return t.filter((function(e){return void 0!==e[Dr.BASE]})).map((function(e){return e[Dr.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},yo=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&Oo("Helmet: "+e+' should be of type "Array". Instead found type "'+ro(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var u=i[a],c=u.toLowerCase();-1===t.indexOf(c)||n===Wr&&"canonical"===e[n].toLowerCase()||c===Wr&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(u)||u!==Hr&&u!==Fr&&u!==qr||(n=u)}if(!n||!e[n])return!1;var s=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][s]&&(o[n][s]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var u=i[a],c=Cr()({},r[u],o[u]);r[u]=c}return e}),[]).reverse()},mo=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},vo=(Or=Date.now(),function(e){var t=Date.now();t-Or>16?(Or=t,e(t)):setTimeout((function(){vo(e)}),0)}),go=function(e){return clearTimeout(e)},bo="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||vo:a.g.requestAnimationFrame||vo,wo="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||go:a.g.cancelAnimationFrame||go,Oo=function(e){return console&&"function"==typeof console.warn&&void 0},Eo=null,_o=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,u=e.noscriptTags,c=e.onChangeClientState,s=e.scriptTags,l=e.styleTags,f=e.title,p=e.titleAttributes;jo(Dr.BODY,r),jo(Dr.HTML,o),So(f,p);var d={baseTag:Po(Dr.BASE,n),linkTags:Po(Dr.LINK,i),metaTags:Po(Dr.META,a),noscriptTags:Po(Dr.NOSCRIPT,u),scriptTags:Po(Dr.SCRIPT,s),styleTags:Po(Dr.STYLE,l)},h={},y={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(y[e]=d[e].oldTags)})),t&&t(),c(e,h,y)},xo=function(e){return Array.isArray(e)?e.join(""):e},So=function(e,t){void 0!==e&&document.title!==e&&(document.title=xo(e)),jo(Dr.TITLE,t)},jo=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(no),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),u=0;u<a.length;u++){var c=a[u],s=t[c]||"";n.getAttribute(c)!==s&&n.setAttribute(c,s),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f--)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute(no):n.getAttribute(no)!==a.join(",")&&n.setAttribute(no,a.join(","))}},Po=function(e,t){var n=document.head||document.querySelector(Dr.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Hr)n.innerHTML=t.innerHTML;else if(r===Fr)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var u=void 0===t[r]?"":t[r];n.setAttribute(r,u)}n.setAttribute(no,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},ko=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Io=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Zr[n]||n]=e[n],t}),t)},To=function(e,t,n){switch(e){case Dr.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(o={key:e})[no]=!0,i=Io(n,o),[r.createElement(Dr.TITLE,i,e)];var e,n,o,i},toString:function(){return function(e,t,n,r){var o=ko(n),i=xo(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+so(i,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+so(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Ar:case Nr:return{toComponent:function(){return Io(t)},toString:function(){return ko(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var o,i=((o={key:n})[no]=!0,o);return Object.keys(t).forEach((function(e){var n=Zr[e]||e;if(n===Hr||n===Fr){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),r.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===Hr||e===Fr)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+so(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===to.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},Ro=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,u=e.noscriptTags,c=e.scriptTags,s=e.styleTags,l=e.title,f=void 0===l?"":l,p=e.titleAttributes;return{base:To(Dr.BASE,t,r),bodyAttributes:To(Ar,n,r),htmlAttributes:To(Nr,o,r),link:To(Dr.LINK,i,r),meta:To(Dr.META,a,r),noscript:To(Dr.NOSCRIPT,u,r),script:To(Dr.SCRIPT,c,r),style:To(Dr.STYLE,s,r),title:To(Dr.TITLE,{title:f,titleAttributes:p},r)}},Co=kr()((function(e){return{baseTag:ho([Ur,Yr],e),bodyAttributes:po(Ar,e),defer:mo(e,Kr),encode:mo(e,Qr),htmlAttributes:po(Nr,e),linkTags:yo(Dr.LINK,[Wr,Ur],e),metaTags:yo(Dr.META,[zr,Mr,Br,Gr,qr],e),noscriptTags:yo(Dr.NOSCRIPT,[Hr],e),onChangeClientState:fo(e),scriptTags:yo(Dr.SCRIPT,[Vr,Hr],e),styleTags:yo(Dr.STYLE,[Fr],e),title:lo(e),titleAttributes:po(Lr,e)}}),(function(e){Eo&&wo(Eo),e.defer?Eo=bo((function(){_o(e,(function(){Eo=null}))})):(_o(e),Eo=null)}),Ro)((function(){return null})),Ao=(Er=Co,xr=_r=function(e){function t(){return oo(this,t),co(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!Tr()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Dr.SCRIPT:case Dr.NOSCRIPT:return{innerHTML:t};case Dr.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return ao({},r,((t={})[n.type]=[].concat(r[n.type]||[],[ao({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case Dr.TITLE:return ao({},o,((t={})[r.type]=a,t.titleAttributes=ao({},i),t));case Dr.BODY:return ao({},o,{bodyAttributes:ao({},i)});case Dr.HTML:return ao({},o,{htmlAttributes:ao({},i)})}return ao({},o,((n={})[r.type]=ao({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=ao({},t);return Object.keys(e).forEach((function(t){var r;n=ao({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,o={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,i=r.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[eo[n]||n]=e[n],t}),t)}(uo(r,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case Dr.LINK:case Dr.META:case Dr.NOSCRIPT:case Dr.SCRIPT:case Dr.STYLE:o=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:o,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(o,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=uo(e,["children"]),o=ao({},n);return t&&(o=this.mapChildrenToProps(t,o)),r.createElement(Er,o)},io(t,null,[{key:"canUseDOM",set:function(e){Er.canUseDOM=e}}]),t}(r.Component),_r.propTypes={base:jr().object,bodyAttributes:jr().object,children:jr().oneOfType([jr().arrayOf(jr().node),jr().node]),defaultTitle:jr().string,defer:jr().bool,encodeSpecialCharacters:jr().bool,htmlAttributes:jr().object,link:jr().arrayOf(jr().object),meta:jr().arrayOf(jr().object),noscript:jr().arrayOf(jr().object),onChangeClientState:jr().func,script:jr().arrayOf(jr().object),style:jr().arrayOf(jr().object),title:jr().string,titleAttributes:jr().object,titleTemplate:jr().string},_r.defaultProps={defer:!0,encodeSpecialCharacters:!0},_r.peek=Er.peek,_r.rewind=function(){var e=Er.rewind();return e||(e=Ro({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},xr);Ao.renderStatic=Ao.rewind;const No=a(10153).Z;var Lo=a(98269),Do=a.n(Lo),Mo=a(51324);a(12578);const Fo=a(49950).Z;const Uo=a(68597).Z;var Bo=a(10166),Ho=a.n(Bo),qo=function(e){if(!e)throw new Error("context parameter is required");return{type:D.Of,payload:{context:e}}},zo=(a(94606),a(26072),"CREATE_ADDON_REVIEW"),Go="SHOW_EDIT_REVIEW_FORM",Wo="SHOW_REPLY_TO_REVIEW_FORM",Vo="FETCH_REVIEW",Yo="FETCH_REVIEW_PERMISSIONS",Zo="FETCH_REVIEWS",$o="FETCH_LATEST_USER_REVIEW",Ko="FETCH_USER_REVIEWS",Qo="FLASH_REVIEW_MESSAGE",Xo="HIDE_FLASHED_REVIEW_MESSAGE",Jo="HIDE_EDIT_REVIEW_FORM",ei="HIDE_REPLY_TO_REVIEW_FORM",ti="SET_ADDON_REVIEWS",ni="SET_INTERNAL_REVIEW",ri="SET_USER_REVIEWS",oi="SET_REVIEW",ii="SET_LATEST_REVIEW",ai="SET_REVIEW_PERMISSIONS",ui="SET_REVIEW_REPLY",ci="SET_REVIEW_WAS_FLAGGED",si="SEND_REPLY_TO_REVIEW",li="SEND_REVIEW_FLAG",fi="UPDATE_ADDON_REVIEW",pi="DELETE_ADDON_REVIEW",di="BEGIN_DELETE_ADDON_REVIEW",hi="CANCEL_DELETE_ADDON_REVIEW",yi="UNLOAD_ADDON_REVIEWS",mi="UPDATE_RATING_COUNTS";function vi(e){return{reviewAddon:{iconUrl:e.addon.icon_url,id:e.addon.id,name:e.addon.name,slug:e.addon.slug},body:e.body,created:e.created,id:e.id,isDeleted:e.is_deleted,isDeveloperReply:e.is_developer_reply,isLatest:e.is_latest,score:e.score||null,reply:e.reply?vi(e.reply):null,userId:e.user.id,userName:e.user.name,userUrl:e.user.url,versionId:e.version?e.version.id:null}}var gi=function(e){return ce()(e,"review is required"),{type:oi,payload:e}},bi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.originalReviewId,n=e.reply;if(!t)throw new Error("The originalReviewId parameter is required");if(!n)throw new Error("The reply parameter is required");return{type:ui,payload:{originalReviewId:t,reply:n}}};function wi(e){var t=e.addonId,n=e.userId,r=e.canReplyToReviews;return ce()(t,"addonId is required"),ce()(n,"userId is required"),ce()(void 0!==r,"canReplyToReviews is required"),{type:ai,payload:{addonId:t,userId:n,canReplyToReviews:r}}}function Oi(e){var t=e.addonId,n=e.oldReview,r=e.newReview;return ce()(t,"addonId is required"),ce()(r,"newReview is required"),{type:mi,payload:{addonId:t,oldReview:n,newReview:r}}}function Ei(e){var t=e.errorHandlerId,n=e.userId,r=e.page,o=void 0===r?"1":r;return ce()(t,"errorHandlerId is required"),ce()(n,"userId is required"),{type:Ko,payload:{errorHandlerId:t,page:o,userId:n}}}var _i=function(e){var t=e.pageSize,n=e.reviewCount,r=e.reviews,o=e.userId;return ce()(t,"pageSize is required"),ce()("number"==typeof n,"reviewCount is required"),ce()(Array.isArray(r),"reviews are required and must be an array"),ce()(o,"userId is required"),{type:ri,payload:{pageSize:t,reviewCount:n,reviews:r,userId:o}}},xi=function(e){var t=e.addonSlug,n=e.page,r=e.pageSize,o=e.reviewCount,i=e.reviews,a=e.score;return ce()(t,"addonSlug is required"),ce()(n,"page is required"),ce()(r,"pageSize is required"),ce()("number"==typeof o,"reviewCount is required"),ce()(Array.isArray(i),"reviews is required and must be an array"),ce()(void 0!==a,"score is required"),{type:ti,payload:{addonSlug:t,page:n,pageSize:r,reviewCount:o,reviews:i,score:a}}},Si=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorHandlerId,n=e.originalReviewId,r=e.body,o=e.title;if(!t)throw new Error("The errorHandlerId parameter is required");if(!n)throw new Error("The originalReviewId parameter is required");if(!r)throw new Error("The body parameter is required");return{type:si,payload:{errorHandlerId:t,originalReviewId:n,body:r,title:o}}},ji=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reviewId,n=e.type;if(!t)throw new Error("The reviewId parameter is required");return{type:n,payload:{reviewId:t}}},Pi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reviewId;return ji({type:Go,reviewId:t})},ki=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reviewId;return ji({type:Wo,reviewId:t})},Ii=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reviewId;return ji({type:Jo,reviewId:t})},Ti=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reviewId;return ji({type:ei,reviewId:t})},Ri=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorHandlerId,n=e.note,r=e.reason,o=e.reviewId;if(!t)throw new Error("The errorHandlerId parameter is required");if(!r)throw new Error("The reason parameter is required");if(!o)throw new Error("The reviewId parameter is required");return{type:li,payload:{errorHandlerId:t,note:n,reason:r,reviewId:o}}},Ci=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reason,n=e.reviewId;if(!t)throw new Error("The reason parameter is required");if(!n)throw new Error("The reviewId parameter is required");return{type:ci,payload:{reason:t,reviewId:n}}},Ai=function(e){var t=e.addonId,n=e.review,r=e.userId;return ce()(t,"addonId is required"),ce()(void 0!==n,"review is required"),ce()(r,"userId is required"),{type:ii,payload:{addonId:t,review:n,userId:r}}},Ni=function(e){var t=e.addonId,n=e.body,r=e.errorHandlerId,o=e.score,i=e.versionId;return ce()(t,"addonId is required"),ce()(r,"errorHandlerId is required"),ce()(o,"score is required"),ce()(i,"versionId is required"),{type:zo,payload:{addonId:t,body:n,errorHandlerId:r,score:o,versionId:i}}},Li=function(e){var t=e.body,n=e.errorHandlerId,r=e.score,o=e.reviewId;return ce()(n,"errorHandlerId is required"),ce()(o,"reviewId is required"),{type:fi,payload:{body:t,errorHandlerId:n,score:r,reviewId:o}}},Di="aborted",Mi="saved-rating",Fi="saved-review",Ui="started-save-rating",Bi="started-save-review",Hi=function(e){return ce()(e,"message is required"),{type:Qo,payload:{message:e}}},qi=function(){return{type:Xo}},zi=function(e){var t=e.addonId,n=e.errorHandlerId,r=e.isReplyToReviewId,o=e.reviewId;return ce()(t,"addonId is required"),ce()(n,"errorHandlerId is required"),ce()(o,"reviewId is required"),{type:pi,payload:{addonId:t,errorHandlerId:n,isReplyToReviewId:r,reviewId:o}}},Gi=function(e){var t=e.reviewId;return{type:di,payload:{reviewId:t}}},Wi=function(e){var t=e.reviewId;return{type:hi,payload:{reviewId:t}}},Vi=function(e){var t=e.addonId,n=e.reviewId;return{type:yi,payload:{addonId:t,reviewId:n}}},Yi=function(e,t){return ce()(t,"lang must not be empty"),e?e[t]?e[t]:e[e._default]:null};function Zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach((function(t){Ki(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qi="FETCH_ADDON_INFO",Xi="LOAD_ADDON_INFO",Ji="FETCH_ADDON",ea="LOAD_ADDON",ta={byID:{},byIdInURL:{},byGUID:{},bySlug:{},infoBySlug:{},lang:"",loadingByIdInURL:{}};function na(e){var t=e.errorHandler,n=e.showGroupedRatings,r=void 0!==n&&n,o=e.slug;if(!t)throw new Error("errorHandler cannot be empty");if(!o)throw new Error("slug cannot be empty");return{type:Ji,payload:{errorHandlerId:t.id,showGroupedRatings:r,slug:o}}}function ra(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addon,n=e.slug;return ce()(t,"addon is required"),ce()(n,"slug is required"),{type:ea,payload:{addon:t,slug:n}}}var oa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.info,n=e.slug;return ce()(t,"info is required"),ce()(n,"slug is required"),{type:Xi,payload:{info:t,slug:n}}},ia=function(e,t){return e.map((function(e){return{h:e.image_size[1],src:e.image_url,thumbnail_h:e.thumbnail_size[1],thumbnail_src:e.thumbnail_url,thumbnail_w:e.thumbnail_size[0],title:Yi(e.caption,t),w:e.image_size[0]}}))},aa=function(e,t){return e&&e.url&&e.outgoing?{url:Yi(e.url,t),outgoing:Yi(e.outgoing,t)}:null};function ua(e,t){var n={authors:e.authors,average_daily_users:e.average_daily_users,categories:e.categories,contributions_url:e.contributions_url,created:e.created,default_locale:e.default_locale,description:Yi(e.description,t),developer_comments:Yi(e.developer_comments,t),edit_url:e.edit_url,guid:e.guid,has_eula:e.has_eula,has_privacy_policy:e.has_privacy_policy,homepage:aa(e.homepage,t),icon_url:e.icon_url,id:e.id,is_disabled:e.is_disabled,is_experimental:e.is_experimental,is_source_public:e.is_source_public,last_updated:e.last_updated,latest_unlisted_version:e.latest_unlisted_version,locale_disambiguation:e.locale_disambiguation,name:Yi(e.name,t),previews:e.previews?ia(e.previews,t):void 0,promoted:e.promoted,ratings:e.ratings,requires_payment:e.requires_payment,review_url:e.review_url,slug:e.slug,status:e.status,summary:Yi(e.summary,t),support_email:Yi(e.support_email,t),support_url:aa(e.support_url,t),tags:e.tags,target_locale:e.target_locale,type:e.type,url:e.url,weekly_downloads:e.weekly_downloads,currentVersionId:e.current_version?e.current_version.id:null,isMozillaSignedExtension:!1},r=e.current_version;return r&&(n.isMozillaSignedExtension=r.file.is_mozilla_signed_extension),n}var ca,sa=function(e,t){return e.byID["".concat(t)]||null},la=function(e,t){var n=e.byIdInURL[t];return sa(e,n)},fa=function(e,t){return"string"==typeof t&&Boolean(e.addons.loadingByIdInURL[t])},pa=function(e){var t=e.slug,n=e.state;ce()(t,"slug is required"),ce()(n,"state is required");var r=n.infoBySlug[t];return r&&r.info||null},da=function(e){var t=e.slug,n=e.state;ce()(t,"slug is required"),ce()(n,"state is required");var r=n.infoBySlug[t];return Boolean(r&&r.loading)},ha=function(e,t){return{eula:Yi(e.eula,t),privacyPolicy:Yi(e.privacy_policy,t)}};function ya(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $i({1:0,2:0,3:0,4:0,5:0},e)}function ma(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach((function(t){wa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oa="ADD_ADDON_TO_COLLECTION",Ea="FETCH_CURRENT_COLLECTION",_a="FETCH_USER_COLLECTIONS",xa="LOAD_CURRENT_COLLECTION",Sa="FETCH_CURRENT_COLLECTION_PAGE",ja="LOAD_CURRENT_COLLECTION_PAGE",Pa="ABORT_FETCH_CURRENT_COLLECTION",ka="ABORT_FETCH_USER_COLLECTIONS",Ia="ABORT_ADD_ADDON_TO_COLLECTION",Ta="LOAD_USER_COLLECTIONS",Ra="ADDON_ADDED_TO_COLLECTION",Ca="LOAD_COLLECTION_ADDONS",Aa="UPDATE_COLLECTION",Na="UNLOAD_COLLECTION_BY_SLUG",La="CREATE_COLLECTION",Da="BEGIN_COLLECTION_MODIFICATION",Ma="FINISH_COLLECTION_MODIFICATION",Fa="REMOVE_ADDON_FROM_COLLECTION",Ua="ADDON_REMOVED_FROM_COLLECTION",Ba="DELETE_COLLECTION",Ha="UPDATE_COLLECTION_ADDON",qa="DELETE_COLLECTION_ADDON_NOTES",za="BEGIN_EDITING_COLLECTION_DETAILS",Ga="FINISH_EDITING_COLLECTION_DETAILS",Wa={byId:{},bySlug:{},current:{id:null,loading:!1},userCollections:{},addonInCollections:{},isCollectionBeingModified:!1,hasAddonBeenAdded:!1,hasAddonBeenRemoved:!1,editingCollectionDetails:!1,lang:""},Va=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorHandlerId,n=e.userId;return ce()(t,"errorHandlerId is required"),ce()(n,"userId is required"),{type:_a,payload:{errorHandlerId:t,userId:n}}},Ya=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userId;return ce()(t,"userId is required"),{type:ka,payload:{userId:t}}},Za=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addonId,n=e.userId;return ce()(n,"userId is required"),ce()(t,"addonId is required"),{type:Ia,payload:{userId:n,addonId:t}}},$a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorHandlerId,n=e.filters,r=e.slug,o=e.userId;return ce()(t,"errorHandlerId is required"),ce()(r,"slug is required"),ce()(o,"userId is required"),{type:Sa,payload:{errorHandlerId:t,filters:n,slug:r,userId:o}}},Ka=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addonsResponse,n=e.detail;return ce()(n,"detail is required"),{type:xa,payload:{addonsResponse:t,detail:n}}},Qa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addonsResponse;return ce()(t,"The addonsResponse parameter is required"),{type:ja,payload:{addonsResponse:t}}},Xa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collections,n=e.userId;return ce()(n,"userId is required"),ce()(t,"collections are required"),{type:Ta,payload:{userId:n,collections:t}}},Ja=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addonId,n=e.collectionId,r=e.userId;return ce()(t,"addonId is required"),ce()(r,"userId is required"),ce()(n,"collectionId is required"),{type:Ra,payload:{addonId:t,collectionId:n,userId:r}}},eu=function(){return{type:Pa}},tu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addonId,n=e.collectionId,r=e.editing,o=e.errorHandlerId,i=e.filters,a=e.notes,u=e.slug,c=e.userId;return ce()(t,"The addonId parameter is required"),ce()(n,"The collectionId parameter is required"),ce()(u,"The slug parameter is required"),ce()(o,"The errorHandlerId parameter is required"),ce()(c,"The userId parameter is required"),r&&ce()(i,"The filters parameter is required when editing"),{type:Oa,payload:{addonId:t,collectionId:n,editing:r,errorHandlerId:o,filters:i,notes:a,slug:u,userId:c}}},nu=function(e){if(!e)throw new Error("A slug is required");return{type:Na,payload:{slug:e}}},ru=function(){return{type:za}},ou=function(){return{type:Ga}},iu=function(e,t){return e.map((function(e){var n=e.addon,r=e.notes;return ba(ba({},ua(n,t)),{},{notes:Yi(r,t)})}))},au=function(e){if(!e)throw new Error("The collectionsState parameter is required");return e.current.id?function(e){var t=e.id,n=e.state;if(!t)throw new Error("The id parameter is required");if(!n)throw new Error("The state parameter is required");return n.byId[t]||null}({id:e.current.id,state:e}):null},uu=function(e){var t=e.addonsResponse,n=e.collection,r=e.state,o=r.byId[n.id],i=function(e){var t=e.addonsResponse,n=e.detail,r=e.lang;return{addons:t?iu(t.results,r):null,authorId:n.author.id,authorName:n.author.name,authorUsername:n.author.username,defaultLocale:n.default_locale,description:Yi(n.description,r),id:n.id,lastUpdatedDate:n.modified,name:Yi(n.name,r)||"",numberOfAddons:t?t.count:n.addon_count,pageSize:t?t.page_size:null,slug:n.slug}}({detail:n,addonsResponse:t,lang:r.lang});return!i.addons&&o&&(i.addons=o.addons,i.pageSize=o.pageSize),ba(ba({},r),{},{byId:ba(ba({},r.byId),{},wa({},i.id,i)),bySlug:ba(ba({},r.bySlug),{},wa({},i.slug,i.id))})},cu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addonId,n=e.loading,r=e.state,o=e.userId,i=r.addonInCollections[o],a=i&&i[t];return ba(ba({},r),{},{addonInCollections:ba(ba({},r.addonInCollections),{},wa({},o,ba(ba({},i),{},wa({},t,{collections:a?a.collections:null,loading:n}))))})},su=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.state,n=e.userId;return ba(ba({},t),{},{userCollections:ba(ba({},t.userCollections),{},wa({},n,{collections:null,loading:!1}))})},lu=function(e,t){return t&&t.collections?t.collections.reduce((function(t,n){var r=e.byId[n];return r&&t.push(r),t}),[]):null},fu=function(e){return{page:e.page,collection_sort:e.collectionSort}},pu=function(e){var t=e.authorId,n=e.collection,r=e.collectionSlug,o=t;return n&&(r=n.slug,o=n.authorId),ce()(r&&o,"Either a collection or an authorId and collectionSlug are required."),"/collections/".concat(o,"/").concat(r,"/")},du=function(e){var t=e.authorId,n=e.collection,r=e.collectionSlug,o=e._collectionUrl;return"".concat((void 0===o?pu:o)({authorId:t,collection:n,collectionSlug:r}),"edit/")},hu=function(e){var t=e.i18n;return e.name||t.gettext("(no name)")};const yu=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wa,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Ea:return ba(ba({},t),{},{current:{id:null,loading:!0}});case Sa:var r={id:t.current.id,loading:!0},o=au(t);return ba(ba({},t),{},o?{byId:ba(ba({},t.byId),{},wa({},o.id,ba(ba({},o),{},{addons:[],numberOfAddons:null,pageSize:null}))),current:r}:{current:r});case xa:var a=n.payload,u=a.addonsResponse,c=a.detail,s=uu({addonsResponse:u,collection:c,state:t});return ba(ba({},s),{},{current:{id:c.id,loading:!1}});case ja:var l=n.payload.addonsResponse,f=au(t);if(!f)throw new Error("".concat(n.type,": a current collection does not exist"));return ba(ba({},t),{},{byId:ba(ba({},t.byId),{},wa({},f.id,ba(ba({},f),{},{addons:iu(l.results,t.lang),numberOfAddons:l.count,pageSize:l.page_size}))),current:{id:t.current.id,loading:!1}});case Ca:var p=n.payload,d=p.addons,h=p.slug,y=t.bySlug[h];if(!y)throw new Error((0,e.f9)(ca||(ca=ma(['Cannot load add-ons for collection\n "','" because the collection has not\n been loaded yet'])),h));var m=t.byId[y];return ba(ba({},t),{},{byId:ba(ba({},t.byId),{},wa({},y,ba(ba({},m),{},{addons:iu(d,t.lang)})))});case Pa:return ba(ba({},t),{},{current:{id:null,loading:!1}});case _a:var v=n.payload.userId;return ba(ba({},t),{},{userCollections:ba(ba({},t.userCollections),{},wa({},v,{collections:null,loading:!0}))});case ka:var g=n.payload.userId;return ba(ba({},t),{},{userCollections:ba(ba({},t.userCollections),{},wa({},g,{collections:null,loading:!1}))});case Ta:var b=n.payload,w=b.collections,O=b.userId,E=ba({},t);return w.forEach((function(e){E=uu({state:E,collection:e})})),ba(ba({},E),{},{userCollections:ba(ba({},t.userCollections),{},wa({},O,{collections:w.map((function(e){return e.id})),loading:!1}))});case Ra:var _=n.payload,x=_.addonId,S=_.collectionId,j=_.userId,P=t.addonInCollections,k=[];if(P[j]&&P[j][x]){var I=P[j][x].collections;I&&(k=I)}return ba(ba({},t),{},{addonInCollections:ba(ba({},t.addonInCollections),{},wa({},j,ba(ba({},t.addonInCollections[j]),{},wa({},x,{collections:k.concat([S]),loading:!1})))),hasAddonBeenAdded:!0});case Oa:var T=n.payload,R=T.addonId,C=T.userId,A=cu({addonId:R,userId:C,state:t,loading:!0});return ba(ba({},A),{},{hasAddonBeenAdded:!1});case Ia:var N=n.payload,L=N.addonId,D=N.userId,M=cu({addonId:L,userId:D,state:t,loading:!1});return ba(ba({},M),{},{hasAddonBeenAdded:!1});case Da:return ba(ba({},t),{},{isCollectionBeingModified:!0});case Ma:return ba(ba({},t),{},{isCollectionBeingModified:!1});case Na:var F=n.payload.slug,U=t.bySlug[F];return U?ba(ba({},t),{},{byId:ba(ba({},t.byId),{},wa({},U,void 0))}):t;case La:case Ba:case Aa:var B=n.payload.userId;return su({state:t,userId:B});case Fa:return ba(ba({},t),{},{hasAddonBeenRemoved:!1});case Ua:return ba(ba({},t),{},{hasAddonBeenRemoved:!0});case za:return ba(ba({},t),{},{editingCollectionDetails:!0});case Ga:return ba(ba({},t),{},{editingCollectionDetails:!1});case i.nk:return ba(ba({},t),{},{addonInCollections:{}});case dt:return ba(ba({},t),{},{lang:n.payload.lang});default:return t}};a(76047);function mu(e){return(mu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gu(e,t){return(gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ou(e);if(t){var o=Ou(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wu(this,n)}}function wu(e,t){if(t&&("object"===mu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ou(e){return(Ou=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}const Eu=function(){return function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gu(e,t)}(u,t);var n,o,i,a=bu(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,e,t)).i18n=t.i18n,n}return n=u,(o=[{key:"render",value:function(){return r.createElement(e,Object.assign({i18n:this.i18n},this.props))}}])&&vu(n.prototype,o),i&&vu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(r.Component);return t.contextTypes={i18n:w().object},t.displayName="Translate(".concat(Rn(e),")"),t}};function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(n),!0).forEach((function(t){Su(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ju="SET_UI_STATE",Pu={};function ku(e){return(ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Iu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ru(e,t){return(Ru=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Cu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nu(e);if(t){var o=Nu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Au(this,n)}}function Au(e,t){if(t&&("object"===ku(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nu(e){return(Nu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach((function(t){Mu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fu=function(e){var t=e.initialState,n=e.extractId,r=e.fileName;ce()(t,"initialState is required");return function(e,o){ce()(n,"extractId is required."),ce()(r,"fileName is required.");var i,a=function(e){var t=e.fileName,n=e.id;return ce()(t,"fileName is required"),ce()("string"==typeof n,"id must be a string"),"".concat(Tn(t),"-").concat(n)}({fileName:r,id:n(o)});return{uiState:(i={uiState:e.uiState,uiStateID:a}).uiState[i.uiStateID]||t,uiStateID:a}}},Uu=function(e,t,n){var r=t.dispatch;return Du(Du(Du(Du({},n),e),t),{},{setUIState:function(t){r(function(e){var t=e.change,n=e.id;return ce()(t,"change cannot be undefined"),ce()(n,"id cannot be undefined"),{type:ju,payload:{change:t,id:n}}}({id:e.uiStateID,change:t}))}})};const Bu=function(e){var t=e.fileName,n=e.extractId,o=e.initialState,i=e.resetOnUnmount,a=void 0!==i&&i;ce()(t,"fileName is required"),ce()(n,"extractId is required"),ce()(o,"initialState is required");var u=Fu({extractId:n,fileName:t,initialState:o});return function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ru(e,t)}(s,t);var n,i,u,c=Cu(s);function s(){return Iu(this,s),c.apply(this,arguments)}return n=s,(i=[{key:"componentWillUnmount",value:function(){a&&this.props.setUIState(o)}},{key:"render",value:function(){return r.createElement(e,this.props)}}])&&Tu(n.prototype,i),u&&Tu(n,u),Object.defineProperty(n,"prototype",{writable:!1}),s}(r.Component);return t.displayName="WithUIState(".concat(Rn(e),")"),(0,g.connect)(u,void 0,Uu)(t)}};var Hu=a(97170),qu=a.n(Hu),zu=a(58137),Gu=a.n(zu),Wu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Vu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Zu=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},$u=function(e){function t(){var n,r;Vu(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Yu(this,e.call.apply(e,[this].concat(i))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!Zu(e)){e.preventDefault();var t=r.context.router.history,n=r.props,o=n.replace,i=n.to;o?t.replace(i):t.push(i)}},Yu(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),o=e.innerRef,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);ce()(this.context.router,"You should not use <Link> outside a <Router>"),ce()(void 0!==t,'You must specify the "to" property');var a=this.context.router.history,u="string"==typeof t?(0,n.ob)(t,null,null,a.location):t,c=a.createHref(u);return r.createElement("a",Wu({},i,{onClick:this.handleClick,href:c,ref:o}))},t}(r.Component);$u.propTypes={onClick:Gu().func,target:Gu().string,replace:Gu().bool,to:Gu().oneOfType([Gu().string,Gu().object]).isRequired,innerRef:Gu().oneOfType([Gu().string,Gu().func])},$u.defaultProps={replace:!1},$u.contextTypes={router:Gu().shape({history:Gu().shape({push:Gu().func.isRequired,replace:Gu().func.isRequired,createHref:Gu().func.isRequired}).isRequired}).isRequired};const Ku=$u;function Qu(e){return(Qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Xu=["alt","children","className","name"];function Ju(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ec(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nc(e,t){return(nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ic(e);if(t){var o=ic(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oc(this,n)}}function oc(e,t){if(t&&("object"===Qu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ic(e){return(ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ac=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nc(e,t)}(a,e);var t,n,o,i=rc(a);function a(){return ec(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e,t=this.props,n=t.alt,o=t.children,i=t.className,a=t.name,u=Ju(t,Xu);return n&&(e=r.createElement("span",{className:"visually-hidden"},n)),r.createElement("span",Object.assign({className:Ho()("Icon","Icon-".concat(a),i)},u),e,o)}}])&&tc(t.prototype,n),o&&tc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);function uc(e){return(uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var cc=["clientApp","children","dispatch","external","externalDark","href","lang","prependClientApp","prependLang","to","target"];function sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sc(Object(n),!0).forEach((function(t){fc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yc(e,t){return(yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gc(e);if(t){var o=gc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vc(this,n)}}function vc(e,t){if(t&&("object"===uc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function gc(e){return(gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yc(e,t)}(a,e);var t,n,o,i=mc(a);function a(){return dc(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"urlPrefix",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.clientApp,n=e.lang,r=e.prependClientApp,o=e.prependLang,i=[];return o&&i.push(n),r&&i.push(t),i.length?"/".concat(i.join("/"),"/"):null}},{key:"render",value:function(){var e=this.props,t=e.clientApp,n=e.children,o=(e.dispatch,e.external),i=e.externalDark,a=e.href,u=e.lang,c=e.prependClientApp,s=e.prependLang,l=e.to,f=e.target,p=pc(e,cc),d=this.urlPrefix({clientApp:t,lang:u,prependClientApp:c,prependLang:s}),h=function(e){return d&&!e.startsWith(d)?qu().pathname(d,e):e},y=i||o,m=i?"external-dark":"external";if("string"==typeof a&&void 0!==l)throw new Error('Cannot use "href" prop and "to" prop in the same Link component');if(void 0!==l&&("string"==typeof l&&!l.startsWith("/")||l&&l.pathname&&!l.pathname.startsWith("/")))throw new Error('"to" prop cannot contain a relative path; it must start with a "/".');var v=lc(lc({},p),{},{target:f,rel:"_blank"===f?"noopener noreferrer":p.rel});if("string"==typeof a)return r.createElement("a",Object.assign({},v,{href:h(a)}),n,y?r.createElement(ac,{name:m}):null);var g=l;return"string"==typeof l?g=h(l):l&&l.pathname&&(g=lc(lc({},l),{},{pathname:h(l.pathname)})),r.createElement(Ku,Object.assign({},v,{to:g}),n,y?r.createElement(ac,{name:m}):null)}}])&&hc(t.prototype,n),o&&hc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);bc.propTypes={children:w().node,className:w().string,clientApp:w().string.isRequired,dispatch:w().func.isRequired,external:w().bool,externalDark:w().bool,href:w().string,lang:w().string.isRequired,prependClientApp:w().bool,prependLang:w().bool,target:w().string,to:w().oneOfType([w().object,w().string])},bc.defaultProps={external:!1,externalDark:!1,prependClientApp:!0,prependLang:!0};const wc=(0,Mo.qC)((0,g.connect)((function(e){return{clientApp:e.api.clientApp,lang:e.api.lang}})))(bc);function Oc(e){return(Oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ec,_c,xc=["buttonType","children","className","href","htmlType","micro","puffy","noLink","to"];function Sc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ic(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rc(e,t){return(Rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Cc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nc(e);if(t){var o=Nc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ac(this,n)}}function Ac(e,t){if(t&&("object"===Oc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nc(e){return(Nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lc=["neutral","light","action","cancel","confirm","alert","none"],Dc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rc(e,t)}(u,t);var n,o,i,a=Cc(u);function u(){return Ic(this,u),a.apply(this,arguments)}return n=u,(o=[{key:"render",value:function(){var t=this.props,n=t.buttonType,o=t.children,i=t.className,a=t.href,u=t.htmlType,c=t.micro,s=t.puffy,l=t.noLink,f=t.to,p=kc(t,xc),d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(n),!0).forEach((function(t){Pc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},p);if(!Lc.includes(n))throw new Error((0,e.f9)(Ec||(Ec=Sc(['buttonType="','" supplied but that is\n not a valid button type'])),n));var h=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ho().apply(void 0,["Button","Button--".concat(n),i].concat(t,[{"Button--disabled":d.disabled,"Button--micro":c,"Button--puffy":s}]))};return l?r.createElement("span",{className:h(),title:p.title},o):a||f?(a?(d.href=a,d.prependClientApp=!1,d.prependLang=!1):f&&(d.to=f),d.className=h({disabled:d.disabled}),d.disabled&&(d.onClick=function(t){t.preventDefault(),L.Z.warn((0,e.f9)(_c||(_c=Sc(["Not calling onClick() for Button link to\n "," because it is disabled"])),d.href||d.to))}),r.createElement(wc,d,o)):r.createElement("button",Object.assign({className:h(),type:u},d),o)}}])&&Tc(n.prototype,o),i&&Tc(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(r.Component);Dc.defaultProps={buttonType:"none",disabled:!1,htmlType:"submit",micro:!1,noLink:!1,puffy:!1};var Mc=["className"];function Fc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Uc=function(e){var t=e.className,n=Fc(e,Mc);return r.createElement(ac,Object.assign({},n,{className:Ho()("IconXMark",t),name:"inline-content"}),r.createElement("svg",{className:"IconXMark-svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},r.createElement("g",{className:"IconXMark-path",transform:"translate(-1.000000, -1.000000)",fill:"#0C0C0D"},r.createElement("path",{d:"M1.293,2.707 C1.03304342,2.45592553 0.928787403,2.08412211 1.02030284,1.73449268 C1.11181828,1.38486324 1.38486324,1.11181828 1.73449268,1.02030284 C2.08412211,0.928787403 2.45592553,1.03304342 2.707,1.293 L8,6.586 L13.293,1.293 C13.5440745,1.03304342 13.9158779,0.928787403 14.2655073,1.02030284 C14.6151368,1.11181828 14.8881817,1.38486324 14.9796972,1.73449268 C15.0712126,2.08412211 14.9669566,2.45592553 14.707,2.707 L9.414,8 L14.707,13.293 C15.0859722,13.6853789 15.0805524,14.3090848 14.6948186,14.6948186 C14.3090848,15.0805524 13.6853789,15.0859722 13.293,14.707 L8,9.414 L2.707,14.707 C2.31462111,15.0859722 1.69091522,15.0805524 1.30518142,14.6948186 C0.919447626,14.3090848 0.91402779,13.6853789 1.293,13.293 L6.586,8 L1.293,2.707 Z"}))))};function Bc(e){return(Bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zc(e,t){return(zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vc(e);if(t){var o=Vc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wc(this,n)}}function Wc(e,t){if(t&&("object"===Bc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Vc(e){return(Vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yc="generic",Zc="genericWarning",$c="success",Kc="warningInfo",Qc=["error",Yc,Zc,"firefox",$c,Kc,"warning"],Xc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zc(e,t)}(a,e);var t,n,o,i=Gc(a);function a(){var e;Hc(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onDismissNotice=function(t){e.props.setUIState({wasDismissed:!0}),e.props.onDismiss&&e.props.onDismiss(t)},e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.actionHref,n=e.actionOnClick,o=e.actionTarget,i=e.actionText,a=e.actionTo,u=e.againstGrey20,c=e.children,s=e.className,l=e.dismissible,f=e.i18n,p=e.light,d=e.type,h=e.uiState;if(ce()(Qc.includes(d),"Unknown type: ".concat(d)),l&&h.wasDismissed)return null;var y,m={href:t||void 0,onClick:n||void 0,to:a||void 0};Object.values(m).some((function(e){return void 0!==e}))&&(ce()(i,"When specifying an action button, actionText is required"),y=r.createElement(Dc,Object.assign({className:"Notice-button",micro:!0,target:o},m),i));var v=Ho()("Notice","Notice-".concat(d),s,{"Notice-againstGrey20":u,"Notice-dismissible":l,"Notice-light":p});return r.createElement("div",{className:v},r.createElement("div",{className:"Notice-icon"}),r.createElement("div",{className:"Notice-column"},r.createElement("div",{className:"Notice-content"},r.createElement("p",{className:"Notice-text"},c),y)),l&&r.createElement("div",{className:"Notice-dismisser"},r.createElement(Dc,{className:"Notice-dismisser-button",onClick:this.onDismissNotice},r.createElement(Uc,{className:"Notice-dismisser-icon",alt:f.gettext("Dismiss this notice")}))))}}])&&qc(t.prototype,n),o&&qc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const Jc=(0,Mo.qC)(Bu({fileName:"src/amo/components/Notice/index.js",extractId:function(e){return e.dismissible&&ce()(e.id,"When dismissible=true, the id property must be defined"),e.id||""},initialState:{wasDismissed:!1}}),Eu())(Xc);function es(e){return(es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ts(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rs(e,t){return(rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function os(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=as(e);if(t){var o=as(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return is(this,n)}}function is(e,t){if(t&&("object"===es(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function as(e){return(as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var us=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rs(e,t)}(a,e);var t,n,o,i=os(a);function a(){return ts(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e,t,n=this.props,o=n._window,i=n.code,a=n.className,u=n.i18n,c=n.messages,s=[];return c.forEach((function(e){var t=e;"object"===es(t)&&(t=JSON.stringify(t)),D.Jp.includes(i)&&(L.Z.debug("Detected ".concat(i,", replacing API message: ").concat(t)),t=u.gettext("Your session has expired")),s.push(t)})),s.length||(L.Z.debug("No messages were passed to ErrorList, code: ".concat(i)),s.push(u.gettext("An unexpected error occurred"))),D.Jp.includes(i)&&(e=function(){return o.location.reload()},t=u.gettext("Reload To Continue"),s.length>1&&L.Z.warn("The API unexpectedly returned multiple signature expired errors")),r.createElement("ul",{className:Ho()("ErrorList",a)},s.map((function(n,o){return r.createElement("li",{className:"ErrorList-item",key:"erroritem-".concat(o)},r.createElement(Jc,{type:"error",actionOnClick:e,actionText:t},n))})))}}])&&ns(t.prototype,n),o&&ns(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);us.propTypes={_window:w().object,code:w().string,className:w().string,i18n:w().object.isRequired,messages:w().array.isRequired},us.defaultProps={_window:"undefined"!=typeof window?window:{}};const cs=(0,Mo.qC)(Eu())(us);var ss;function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ls(Object(n),!0).forEach((function(t){ps(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ds(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ys=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,r=t.dispatch,o=void 0===r?null:r,i=t.capturedError,a=void 0===i?null:i;ds(this,e),this.id=n,this.dispatch=o,this.capturedError=a}var t,n,o;return t=e,(n=[{key:"captureError",value:function(e){this.capturedError=e}},{key:"clear",value:function(){var e=this.createClearingAction();this.dispatch(e)}},{key:"createClearingAction",value:function(){return function(e){if(!e)throw new Error("id cannot be empty");return{type:D.kl,payload:{id:e}}}(this.id)}},{key:"hasError",value:function(){return Boolean(this.capturedError)}},{key:"renderError",value:function(){var e=this.capturedError,t=e.code,n=e.messages;return r.createElement(cs,{messages:n,code:t})}},{key:"renderErrorIfPresent",value:function(){return this.hasError()?this.renderError():null}},{key:"setDispatch",value:function(e){this.dispatch=e}},{key:"createErrorAction",value:function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.error,n=e.id;if(!n)throw new Error("id cannot be empty");if(!t)throw new Error("error cannot be empty");return{type:D.Go,payload:{error:t,id:n}}}({error:e,id:this.id})}},{key:"addMessage",value:function(e){this.dispatchAction(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=e.id;if(!n)throw new Error("id cannot be empty");if(!t)throw new Error("message cannot be empty");return{type:D.rs,payload:{id:n,message:t}}}({id:this.id,message:e}))}},{key:"handle",value:function(e){var t=this.createErrorAction(e);this.dispatchAction(t)}},{key:"dispatchAction",value:function(e){if(!this.dispatch)throw new Error("A dispatch function has not been configured");this.dispatch(e)}}])&&hs(t.prototype,n),o&&hs(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ms(t){var n=t.name,r=t.id,o=t.extractId,i=void 0===o?null:o;if(r&&i)throw new Error("You can define either `id` or `extractId` but not both.");if(i&&"function"!=typeof i)throw new Error("`extractId` must be a function taking `ownProps` as unique argument.");return function(t){return(0,Mo.qC)((0,g.connect)((function(){var t;return i||(t=r)||(t=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).name;return"".concat(void 0===e?"":e,"-").concat(Math.random().toString(36).substr(2,9))}({name:n}),L.Z.debug("Generated error handler ID: ".concat(t))),function(r,o){var a,u;i&&(t="".concat(n,"-").concat(i(o)),L.Z.debug((0,e.f9)(ss||(a=["Generated error handler ID with extractId():\n ",""],u||(u=a.slice(0)),ss=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(u)}}))),t)));var c=o.errorHandler?o.errorHandler.id:t;return{error:r.errors[c],errorId:c}}}),void 0,(function(e,t,n){var r=n.errorHandler||new ys({id:e.errorId});return r.setDispatch(t.dispatch),e.error&&r.captureError(e.error),fs(fs({},n),{},{errorHandler:r})})))(t)}}var vs,gs=function(e){var t=e.fileName,n=e.extractId;if(!t)throw new Error("`fileName` parameter is required.");if("function"!=typeof n)throw new Error("`extractId` is required and must be a function.");return ms({name:Tn(t),extractId:n})};function bs(e){return(bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ws(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Es(e,t){return(Es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ss(e);if(t){var o=Ss(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xs(this,n)}}function xs(e,t){if(t&&("object"===bs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ss(e){return(Ss=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var js=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Es(e,t)}(u,t);var n,o,i,a=_s(u);function u(){return ws(this,u),a.apply(this,arguments)}return n=u,(o=[{key:"render",value:function(){var t,n,o,i,a=this.props,u=a.children,c=a.className,s=a.footer,l=a.footerLink,f=a.footerText,p=a.isHomepageShelf,d=a.header,h=a.photonStyle;if(f&&l||l&&s||f&&s)throw new Error((0,e.f9)(vs||(o=["You can only specify exactly one of these props:\n footer, footerLink or footerText."],i||(i=o.slice(0)),vs=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}})))));return f?(t=f,n="Card-footer-text"):l?(t=l,n="Card-footer-link"):t=s,r.createElement("section",{className:Ho()("Card",c,{"Card--photon":h,"Card--no-header":!d,"Card--no-footer":!t})},d?r.createElement("header",{className:Ho()("Card-header",{"Card-shelf-header":p})},r.createElement("div",{className:"Card-header-text"},d),p&&t?r.createElement("footer",{className:"Card-shelf-footer-in-header"},t):null):null,u?r.createElement("div",{className:"Card-contents"},u):null,t?r.createElement("footer",{className:Ho()("Card-footer",{"Card-shelf-footer":p},n)},t):null)}}])&&Os(n.prototype,o),i&&Os(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(r.Component);js.propTypes={children:w().node,className:w().string,footer:w().node,footerLink:w().node,footerText:w().node,header:w().node,isHomepageShelf:w().bool,photonStyle:w().bool},js.defaultProps={isHomepageShelf:!1,photonStyle:!1};var Ps=["children","className"];function ks(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Is=function(e){var t=e.children,n=e.className,o=ks(e,Ps);return r.createElement("select",Object.assign({},o,{className:Ho()("Select",n)}),t)};function Ts(e){return(Ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cs(e,t){return(Cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function As(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ls(e);if(t){var o=Ls(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ns(this,n)}}function Ns(e,t){if(t&&("object"===Ts(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ls(e){return(Ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ds=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cs(e,t)}(a,e);var t,n,o,i=As(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).onSelectOption=function(e){e.preventDefault();var n=e.target.value,r=t.optionSelectHandlers[n];r?r():L.Z.warn('No handler for option: "'.concat(n,'"'))},t.optionSelectHandlers={},t}return t=a,(n=[{key:"componentDidMount",value:function(){this.loadDataIfNeeded()}},{key:"componentDidUpdate",value:function(){this.loadDataIfNeeded()}},{key:"loadDataIfNeeded",value:function(){var e=this.props,t=e.currentUserId,n=e.dispatch,r=e.errorHandler,o=e.loadingUserCollections,i=e.userCollections;r.hasError()||!t||o||i||n(Va({errorHandlerId:r.id,userId:t}))}},{key:"addToCollection",value:function(e){var t=this.props,n=t.addon,r=t.currentUserId,o=t.dispatch,i=t.errorHandler;ce()(n,"Cannot add to collection because no add-on has been loaded"),ce()(r,"Cannot add to collection because you are not signed in"),o(tu({addonId:n.id,collectionId:e.id,slug:e.slug,errorHandlerId:i.id,userId:r}))}},{key:"createOption",value:function(e){var t=e.text,n=e.key,o=e.onSelect;return o&&(this.optionSelectHandlers[n]=o),r.createElement("option",{className:"AddAddonToCollection-option",key:n,value:n},t)}},{key:"getSelectData",value:function(){var e,t=this,n=this.props,r=n.addon,o=n.clientApp,i=n.i18n,a=n.lang,u=n.loadingAddonsInCollections,c=n.loadingUserCollections,s=n.history,l=n.userCollections,f=[],p=[];return c?e=i.gettext("Loading…"):u&&(e=i.gettext("Adding…")),e?(f.push(this.createOption({text:e,key:"default"})),{disabled:!0,actionOptions:f,collectionOptions:p}):(f.push(this.createOption({text:i.gettext("Select a collection…"),key:"default"})),f.push(this.createOption({text:i.gettext("Create new collection"),key:"create-new-collection",onSelect:function(){ce()(r,"addon is required"),s.push("/".concat(a,"/").concat(o,"/collections/add/?include_addon_id=").concat(r.id))}})),l&&l.length&&l.sort((function(e,t){return e.name.localeCompare(t.name)})).forEach((function(e){p.push(t.createOption({text:hu({name:e.name,i18n:i}),key:"collection-".concat(e.id),onSelect:function(){t.addToCollection(e)}}))})),{actionOptions:f,collectionOptions:p,disabled:!1})}},{key:"render",value:function(){var e=this.props,t=e.errorHandler,n=e.i18n,o=e.addonInCollections,i=this.getSelectData(),a=i.actionOptions,u=i.collectionOptions,c=i.disabled,s=[];o&&(s=o.map((function(e){var t=n.sprintf(n.gettext("Added to %(collectionName)s"),{collectionName:hu({name:e.name,i18n:n})});return r.createElement(Jc,{type:"success",key:e.id,className:"AddAddonToCollection-added"},t)})));var l=n.gettext("Add to…");return r.createElement(js,{className:"AddAddonToCollection",header:n.gettext("Add to collection")},t.renderErrorIfPresent(),s,r.createElement(Is,{disabled:c,onChange:this.onSelectOption,className:"AddAddonToCollection-select"},a,u.length?r.createElement("optgroup",{label:l},u):null))}}])&&Rs(t.prototype,n),o&&Rs(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const Ms=(0,Mo.qC)(No,(0,g.connect)((function(e,t){var n,r,o=e.collections,i=e.users,a=Xe(i),u=a&&a.id;if(u){n=o.userCollections[u];var c=t.addon;c&&(r=o.addonInCollections[u]&&o.addonInCollections[u][c.id])}return{addonInCollections:lu(o,r),clientApp:e.api.clientApp,currentUserId:u,lang:e.api.lang,loadingAddonsInCollections:!!r&&r.loading,loadingUserCollections:!!n&&n.loading,userCollections:lu(o,n)}})),Eu(),gs({fileName:"src/amo/components/AddAddonToCollection/index.js",extractId:function(e){var t=e.addon,n=e.currentUserId;return"".concat(t?t.id:"","-").concat(n||"")}}))(Ds);a(35288);var Fs=a(2138),Us=a.n(Fs);function Bs(e){return e?e.icon_url:Us()}var Hs,qs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.full,r=void 0===n||n;if(!e.previews.length)return null;var o=e.previews.findIndex((function(e){return 720===e.w}));o<0&&(o=0);var i=e.previews[o],a=r?"src":"thumbnail_src";return i[a]||null};var zs=function(t){var n,r,o=t.addon,i=t.installURL,a=t.version,u=i.split("?")[0],c=a.file;if(c&&c.url.startsWith(u))return c.hash;L.Z.warn((0,e.f9)(Hs||(n=['No file hash found for addon "','", installURL\n "','" (as "','")'],r||(r=n.slice(0)),Hs=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))),o.slug,i,u))},Gs=function(e){var t=e.addon,n=e.clientApp,r=e.forBadging,o=void 0!==r&&r,i=null;return t&&t.promoted&&t.promoted.apps.includes(n)&&(i=t.promoted.category),o&&(i===D.B6&&(i=D.OO),D.D6.includes(i)||(i=null)),i},Ws=function(e){switch(e){case"experimental":return"experimental-badge"}return e};const Vs=function(e){var t=e.label,n=e.type;if(n&&!["experimental","requires-payment"].includes(n))throw new Error('Invalid badge type given: "'.concat(n,'"'));return r.createElement("div",{className:n?"Badge Badge-".concat(n):"Badge"},n&&r.createElement(ac,{alt:t,name:Ws(n)}),t)};var Ys={recommended:"M15.449999809265137,3.999999523162842 H4.550000190734863 C4.25,3.999999523162842 4,4.219999313354492 4,4.499999523162842 V6.999999523162842 c0,1.100000023841858 0.9800000190734863,2 2.180000066757202,2 h0.05000000074505806 a3.6700000762939453,3.6700000762939453 0 0 0 3.2200000286102295,2.9600000381469727 V13.499999523162842 h1.100000023841858 V11.959999561309814 A3.6700000762939453,3.6700000762939453 0 0 0 13.770000457763672,8.999999523162842 h0.05000000074505806 C15.020000457763672,8.999999523162842 16,8.099998950958252 16,6.999999523162842 V4.499999523162842 c0,-0.2800000011920929 -0.23999999463558197,-0.5 -0.550000011920929,-0.5 zM5.099999904632568,6.999999523162842 V4.999999523162842 h1.100000023841858 v3 c-0.6100000143051147,0 -1.100000023841858,-0.44999998807907104 -1.100000023841858,-1 zm9.819999694824219,0 c0,0.550000011920929 -0.49000000953674316,1 -1.100000023841858,1 V4.999999523162842 h1.100000023841858 v2 zM11.100000381469727,13.999999523162842 H8.899999618530273 c-2.7200000286102295,0 -2.7200000286102295,2 -2.7200000286102295,2 h7.639999866485596 s0,-2 -2.7300000190734863,-2 z",verified:"M6 14a1 1 0 0 1-.707-.293l-3-3a1 1 0 0 1 1.414-1.414l2.157 2.157 6.316-9.023a1 1 0 0 1 1.639 1.146l-7 10a1 1 0 0 1-.732.427A.863.863 0 0 1 6 14z"};const Zs=(0,Mo.qC)(Eu())((function(e){var t=e.category,n=e.className,o=e.i18n,i=e.showAlt,a=void 0!==i&&i,u=e.size,c={line:o.gettext("By Firefox"),recommended:o.gettext("Recommended"),verified:o.gettext("Verified")}[t];return r.createElement(ac,{alt:a&&c?c:void 0,className:Ho()("IconPromotedBadge",n,{"IconPromotedBadge-large":"large"===u,"IconPromotedBadge-small":"small"===u}),name:"line"===t?"line":"inline-content"},"line"!==t&&r.createElement("svg",{className:"IconPromotedBadge-svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},r.createElement("circle",{className:"IconPromotedBadge-circle-bgColor--".concat(t),cx:"50%",cy:"50%",r:"50%"}),r.createElement("g",{fillRule:"nonzero"},r.createElement("path",{className:Ho()("IconPromotedBadge-iconPath","IconPromotedBadge-iconPath--".concat(t)),d:Ys[t]}))))}));const $s=(0,Mo.qC)(Eu())((function(e){var t,n,o=e.category,i=e.i18n,a=e.onClick,u=void 0===a?null:a,c=e.size,s=hn({utm_content:"promoted-addon-badge"});switch(o){case"line":t=i.gettext("By Firefox"),n=i.gettext("Official add-on built by Mozilla Firefox. Meets security and performance standards.");break;case"recommended":t=i.gettext("Recommended"),n=i.gettext("Firefox only recommends add-ons that meet our standards for security and performance.");break;default:t=i.gettext("Verified"),n=i.gettext("This add-on has been reviewed to meet our standards for security and performance.")}return r.createElement("div",{className:Ho()("PromotedBadge","PromotedBadge--".concat(o),{"PromotedBadge-large":"large"===c,"PromotedBadge-small":"small"===c})},r.createElement("a",{className:Ho()("PromotedBadge-link","PromotedBadge-link--".concat(o)),href:s,onClick:u,rel:"noopener noreferrer",target:"_blank",title:n},r.createElement(Zs,{category:o,size:c}),r.createElement("span",{className:Ho()("PromotedBadge-label","PromotedBadge-label--".concat(o))},t)))}));function Ks(e){return(Ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Js(e,t){return(Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function el(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nl(e);if(t){var o=nl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tl(this,n)}}function tl(e,t){if(t&&("object"===Ks(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function nl(e){return(nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Js(e,t)}(a,e);var t,n,o,i=el(a);function a(){return Qs(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e._getPromotedCategory,n=e.addon,o=e.clientApp,i=e.i18n;if(!n)return null;var a=t({addon:n,clientApp:o,forBadging:!0});return r.createElement("div",{className:"AddonBadges"},a?r.createElement($s,{category:a,size:"large"}):null,n.is_experimental?r.createElement(Vs,{type:"experimental",label:i.gettext("Experimental")}):null,n.requires_payment?r.createElement(Vs,{type:"requires-payment",label:i.gettext("Some features may require payment")}):null)}}])&&Xs(t.prototype,n),o&&Xs(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);rl.defaultProps={_getPromotedCategory:Gs};const ol=(0,Mo.qC)((0,g.connect)((function(e){return{clientApp:e.api.clientApp}})),Eu())(rl);var il=a(49394),al=a.n(il);function ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ul(Object(n),!0).forEach((function(t){sl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ll(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return fl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fl(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function fl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pl={byAddonId:{},byAddonSlug:{},byAuthorId:{},countFor:{},lang:"",loadingFor:{}},dl="FETCH_ADDONS_BY_AUTHORS",hl="LOAD_ADDONS_BY_AUTHORS",yl=function(e){var t=e.addonType,n=e.addons,r=e.authorIds,o=e.count,i=e.forAddonSlug,a=e.pageSize;return ce()(n,"A set of add-ons is required."),ce()(r,"A list of authorIds is required."),ce()("number"==typeof o,"count is required."),ce()(a,"pageSize is required."),{type:hl,payload:{addonType:t,addons:n,authorIds:r,count:o,forAddonSlug:i,pageSize:a}}},ml=function(e,t){return e.sort().join("-")+(t?"-".concat(t):"")},vl=function(e,t,n,r){ce()(t&&t.length,"At least one authorId is required.");var o=t.map((function(t){return e.byAuthorId[t]})).reduce((function(e,t){if(t){var n,r=ll(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.includes(o)||e.push(o)}}catch(e){r.e(e)}finally{r.f()}}return e}),[]);return o.length?o.map((function(t){return e.byAddonId[t]})).filter((function(e){return!n||e.type===n})).filter((function(e){return e.slug!==r})):null};const gl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pl,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case dt:return cl(cl({},e),{},{lang:t.payload.lang});case dl:var n=al()(e),r=t.payload,o=r.addonType,i=r.authorIds,a=r.forAddonSlug;if(a&&(n.byAddonSlug=cl(cl({},n.byAddonSlug),{},sl({},a,void 0))),i.length){var u=vl(n,i,o);if(u){var c,s=ll(u);try{var l=function(){var e=c.value;if(e.authors){var t,r=ll(e.authors);try{for(r.s();!(t=r.n()).done;){var o=t.value;n.byAuthorId[o.id]=n.byAuthorId[o.id].filter((function(t){return t!==e.id}))}}catch(e){r.e(e)}finally{r.f()}}};for(s.s();!(c=s.n()).done;)l()}catch(e){s.e(e)}finally{s.f()}}}var f=ml(i,o);return n.loadingFor[f]=!0,n.countFor[f]=null,n;case hl:var p=al()(e),d=t.payload,h=d.addonType,y=d.addons,m=d.authorIds,v=d.count,g=d.forAddonSlug,b=d.pageSize;g&&(p.byAddonSlug=cl(cl({},p.byAddonSlug),{},sl({},g,y.slice(0,Number(b)).map((function(e){return e.id})))));var w=ml(m,h);p.countFor[w]=v,p.loadingFor[w]=!1;var O,E=y.map((function(t){return ua(t,e.lang)})),_=ll(E);try{for(_.s();!(O=_.n()).done;){var x=O.value;if(p.byAddonId[x.id]=x,x.authors){var S,j=ll(x.authors);try{for(j.s();!(S=j.n()).done;){var P=S.value;p.byAuthorId[P.id]||(p.byAuthorId[P.id]=[]),p.byAuthorId[P.id].includes(x.id)||p.byAuthorId[P.id].push(x.id)}}catch(e){j.e(e)}finally{j.f()}}}}catch(e){_.e(e)}finally{_.f()}return p;default:return e}};function bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bl(Object(n),!0).forEach((function(t){Ol(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ol(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var El="ABORT_FETCH_HOME_DATA",_l="FETCH_HOME_DATA",xl="LOAD_HOME_DATA",Sl={homeShelves:null,isLoading:!1,lang:"",resetStateOnNextChange:!1,resultsLoaded:!1,shelves:{}},jl=function(e){var t=e.homeShelves,n=e.shelves;return ce()(n,"shelves are required"),{type:xl,payload:{homeShelves:t,shelves:n}}},Pl=function(e,t){return e.results.map((function(e){return ua(e,t)}))},kl=function(e,t){var n=e.id,r=e.guid,o=e.homepage,i=e.name,a=e.type;return{id:n,guid:r,homepage:aa(o,t),name:Yi(i,t),type:a}},Il=function(e,t){return{url:e.url,outgoing:e.outgoing,text:Yi(e.text,t)}},Tl=function(e,t){var n=e.results,r=e.primary,o=e.secondary,i=n.map((function(e){return function(e,t){var n=e.addons.map((function(e){return ua(e,t)}));return{title:Yi(e.title,t),url:e.url,endpoint:e.endpoint,addonType:e.addon_type,footer:Il(e.footer,t),addons:n}}(e,t)})),a=null;if(null!==o&&(a={headline:Yi(o.headline,t),description:Yi(o.description,t),cta:o.cta?Il(o.cta,t):null,modules:o.modules.map((function(e){return function(e,t){return{icon:e.icon,description:Yi(e.description,t),cta:e.cta?Il(e.cta,t):null}}(e,t)}))}),null===r)return{results:i,primary:null,secondary:a};ce()(r.addon||r.external,"Either primary.addon or primary.external is required");var u={gradient:r.gradient,featuredImage:r.featured_image,description:Yi(r.description,t)};return r.addon?{results:i,primary:wl(wl({},u),{},{addon:ua(r.addon,t),external:void 0}),secondary:a}:{results:i,primary:wl(wl({},u),{},{addon:void 0,external:kl(r.external,t)}),secondary:a}};const Rl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sl,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.Z;switch(n.type){case dt:return wl(wl({},e),{},{lang:n.payload.lang});case pt:return wl(wl({},Sl),{},{lang:e.lang});case El:return wl(wl({},e),{},{isLoading:!1});case _l:return wl(wl({},e),{},{isLoading:!0,resultsLoaded:!1});case xl:var o=n.payload,a=o.homeShelves,u=o.shelves;return wl(wl({},e),{},{homeShelves:a?Tl(a,e.lang):null,isLoading:!1,resultsLoaded:!0,shelves:Object.keys(u).reduce((function(t,n){var r=u[n];return wl(wl({},t),{},Ol({},n,r?Pl(r,e.lang):[]))}),{})});case i.nk:return r.get("server")?e:e.resetStateOnNextChange?wl(wl({},Sl),{},{lang:e.lang}):wl(wl({},e),{},{resetStateOnNextChange:!0});default:return e}};function Cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cl(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ll="GET_LANDING",Dl="LOAD_LANDING",Ml={addonType:null,category:null,recommended:{count:0,results:[]},highlyRated:{count:0,results:[]},lang:"",loading:!1,trending:{count:0,results:[]},resultsLoaded:!1};function Fl(e){var t=e.addonType,n=e.recommended,r=e.highlyRated,o=e.trending;return ce()(t,"addonType is required"),ce()(n,"recommended is required"),ce()(r,"highlyRated is required"),ce()(o,"trending is required"),{type:Dl,payload:{addonType:t,recommended:n,highlyRated:r,trending:o}}}function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach((function(t){Hl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ql="ABORT_FETCH_RECOMMENDATIONS",zl="FETCH_RECOMMENDATIONS",Gl="LOAD_RECOMMENDATIONS",Wl={byGuid:{},lang:""},Vl=function(e){var t=e.guid;return ce()(t,"guid is required"),{type:ql,payload:{guid:t}}},Yl=function(e){var t=e.addons,n=e.fallbackReason,r=e.guid,o=e.outcome;return ce()(t,"addons is required"),ce()(r,"guid is required"),ce()(o,"outcome is required"),{type:Gl,payload:{addons:t,guid:r,outcome:o,fallbackReason:n}}};const Zl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wl,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case dt:return Bl(Bl({},e),{},{lang:t.payload.lang});case ql:return Bl(Bl({},e),{},{byGuid:Bl(Bl({},e.byGuid),{},Hl({},t.payload.guid,{addons:null,fallbackReason:null,loading:!1,outcome:null}))});case zl:return Bl(Bl({},e),{},{byGuid:Bl(Bl({},e.byGuid),{},Hl({},t.payload.guid,{addons:null,fallbackReason:null,loading:!0,outcome:null}))});case Gl:var n=t.payload,r=n.fallbackReason,o=n.guid,i=n.outcome,a=t.payload.addons.map((function(t){return ua(t,e.lang)}));return Bl(Bl({},e),{},{byGuid:Bl(Bl({},e.byGuid),{},Hl({},o,{addons:a,fallbackReason:r,loading:!1,outcome:i}))});default:return e}};function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach((function(t){Ql(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xl="SEARCH_STARTED",Jl="SEARCH_LOADED",ef="SEARCH_ABORTED",tf={count:0,filters:null,lang:"",loading:!1,pageSize:null,results:[]};function nf(e){var t=e.errorHandlerId,n=e.filters;return ce()(t,"errorHandlerId is required"),ce()(n,"filters are required"),{type:Xl,payload:{errorHandlerId:t,filters:n}}}function rf(e){var t=e.count,n=e.pageSize,r=e.results;return ce()(r,"results are required"),{type:Jl,payload:{count:t,pageSize:n,results:r}}}function of(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return af(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return af(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function af(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uf(Object(n),!0).forEach((function(t){sf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lf="FETCH_VERSION",ff="FETCH_VERSIONS",pf="LOAD_VERSIONS",df={byId:{},bySlug:{},lang:""},hf=function(e,t){var n=cf({},e.compatibility),r=n[D.So];return r&&"91.1.0"===r.min&&(n[D.So].min="91.0.0"),{compatibility:n,id:e.id,isStrictCompatibilityEnabled:Boolean(e.is_strict_compatibility_enabled),license:e.license?{isCustom:e.license.is_custom,name:Yi(e.license.name,t),text:void 0===e.license.text?void 0:Yi(e.license.text,t),url:e.license.url}:null,file:e.file,releaseNotes:Yi(e.release_notes,t),version:e.version}},yf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.slug,n=e.versions;return ce()(t,"slug is required"),ce()(n,"versions is required"),{type:pf,payload:{slug:t,versions:n}}},mf=function(e){var t=e.id,n=e.state;return ce()(t,"id is required"),ce()(n,"state is required"),n.byId[t]||null},vf=function(e){var t=e.slug,n=e.state;ce()(t,"slug is required"),ce()(n,"state is required");var r=n.bySlug[t];return r&&r.versionIds?r.versionIds.map((function(e){var r=mf({id:e,state:n});return ce()(r,"missing version for slug ".concat(t," and versionId ").concat(e)),r})):null},gf=function(e){var t=e.slug,n=e.state;ce()(t,"slug is required"),ce()(n,"state is required");var r=n.bySlug[t];return Boolean(r&&r.loading)},bf=function(e){var t=e.i18n,n=e.state,r=e.versionId,o=mf({id:r,state:n});if(o){var i=o.file,a=t.gettext("%(application)s %(minVersion)s and later"),u=t.gettext("%(application)s %(minVersion)s to %(maxVersion)s"),c=Object.keys(o.compatibility).map((function(e){var n=o.compatibility[e],r=n.max,i=n.min;return"*"===r?t.sprintf(a,{application:e,minVersion:i}):t.sprintf(u,{application:e,maxVersion:r,minVersion:i})})).join(", ");return{compatibilityString:t.sprintf(t.gettext("Works with %(listOfApplicatonsAndVersions)s"),{listOfApplicatonsAndVersions:c}),created:i?i.created:null,filesize:i?ne({i18n:t,size:i.size}):null}}return null};const wf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:df,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case dt:return cf(cf({},e),{},{lang:t.payload.lang});case lf:case ff:var n=t.payload.slug;return cf(cf({},e),{},{bySlug:cf(cf({},e.bySlug),{},sf({},n,{versionIds:null,loading:!0}))});case pf:var r,o=t.payload,i=o.slug,a=o.versions,u={},c=of(a);try{for(c.s();!(r=c.n()).done;){var s=r.value;u[s.id]=hf(s,e.lang)}}catch(e){c.e(e)}finally{c.f()}return cf(cf({},e),{},{byId:cf(cf({},e.byId),u),bySlug:cf(cf({},e.bySlug),{},sf({},i,{versionIds:a.map((function(e){return e.id})),loading:!1}))});case ea:t.payload.addons=[t.payload.addon];case hl:case Ca:case xa:case ja:case Gl:case Jl:var l,f=t.payload,p=f.addons,d=f.addonsResponse,h=f.results,y={},m=of(h||(d?d.results:p.results||p));try{for(m.s();!(l=m.n()).done;){var v=l.value,g=v.addon||v;if(g.current_version){var b=g.current_version,w=hf(b,e.lang);if(!b.license||!b.release_notes){var O=mf({id:b.id,state:e});O&&(w.license=w.license||O.license,w.releaseNotes=w.releaseNotes||O.releaseNotes)}y[w.id]=w}}}catch(e){m.e(e)}finally{m.f()}return cf(cf({},e),{},{byId:cf(cf({},e.byId),y)});case xl:var E=t.payload,_=E.homeShelves,x=E.shelves,S={},j=function(t){if(t.current_version){var n=t.current_version,r=hf(n,e.lang),o=n.id,i=mf({id:o,state:e});i&&(r=cf(cf({},r),{},{license:i.license,releaseNotes:i.releaseNotes})),S[o]=r}};if(_&&_.results){var P,k=of(_.results);try{for(k.s();!(P=k.n()).done;){var I,T=P.value,R=of(T.addons);try{for(R.s();!(I=R.n()).done;){var C=I.value;j(C)}}catch(e){R.e(e)}finally{R.f()}}}catch(e){k.e(e)}finally{k.f()}}for(var A=0,N=Object.keys(x);A<N.length;A++){var L=N[A];if(x[L]){var D,M=of(x[L].results);try{for(M.s();!(D=M.n()).done;){var F=D.value;j(F)}}catch(e){M.e(e)}finally{M.f()}}}return cf(cf({},e),{},{byId:cf(cf({},e.byId),S)});case Dl:for(var U=t.payload,B=U.recommended,H=U.highlyRated,q=U.trending,z={},G=0,W=[B,H,q];G<W.length;G++){var V,Y=W[G],Z=of(Y.results);try{for(Z.s();!(V=Z.n()).done;){var $=V.value;if($.current_version){var K=hf($.current_version,e.lang);z[K.id]=K}}}catch(e){Z.e(e)}finally{Z.f()}}return cf(cf({},e),{},{byId:cf(cf({},e.byId),z)});default:return e}};var Of,Ef,_f,xf=a(96521);function Sf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function jf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t._log,r=void 0===n?L.Z:n,o=t.addon,i=t.clientApp,a=t.currentVersion,u=null,c=null,s=!1;if(a){var l=a.compatibility[i];l&&(s=!0,u=l.max,c=l.min),s||r.warn((0,e.f9)(Of||(Of=Sf(['addon guid: "','" is incompatible with\n clientApp: "','"'])),o.guid,i))}return{supportsClientApp:s,maxVersion:u,minVersion:c}}var Pf=function(e){var t=e.userAgentInfo;return ce()(t,"userAgentInfo is required"),"Firefox"===t.browser.name},kf=function(e){return ce()(e,"userAgentInfo is required"),Pf({userAgentInfo:e})&&e.os.name===vt},If=function(e){return ce()(e,"userAgentInfo is required"),Pf({userAgentInfo:e})&&e.os.name===gt},Tf=function(e){var t=e.addon;return!!t&&t.type===D.Gz&&Gs({addon:t,clientApp:D.wZ})===D.g$};function Rf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t._log,r=void 0===n?L.Z:n,o=t.addon,i=t.currentVersion,a=t.maxVersion,u=t.minVersion,c=t.userAgentInfo;ce()(c,"userAgentInfo is required");var s=c.browser;if(If(c))return{compatible:!1,reason:D.Px};if(!Pf({userAgentInfo:c}))return{compatible:!1,reason:D.T3};if(kf(c)&&(!Tf({addon:o})||i&&!i.compatibility[D.wZ]))return{compatible:!1,reason:D.op};if(!i||!i.file)return{compatible:!1,reason:D.YE};if(a&&1===(0,xf.mozCompare)(s.version,a)){if(i.isStrictCompatibilityEnabled)return{compatible:!1,reason:D.CK};r.info((0,e.f9)(Ef||(Ef=Sf(["maxVersion "," for add-on lower than\n browser version ",", but add-on still marked as\n compatible because we largely ignore maxVersion. See:\n https://github.com/mozilla/addons-frontend/issues/2074"])),a,s.version))}return u&&-1===(0,xf.mozCompare)(s.version,u)?("*"===u&&r.error((0,e.f9)(_f||(_f=Sf(['minVersion of "*" was passed to\n isCompatibleWithUserAgent(); bad add-on version data (browserVersion:\n ',")"])),s.version)),{compatible:!1,reason:D.VD}):{compatible:!0,reason:null}}function Cf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addon,n=e.clientApp,r=e.currentVersion,o=e.userAgentInfo,i=e._window,a=void 0===i?"undefined"!=typeof window?window:{}:i,u=jf({addon:t,clientApp:n,currentVersion:r}),c=u.supportsClientApp,s=u.maxVersion,l=u.minVersion,f=Rf({addon:t,currentVersion:r,maxVersion:s,minVersion:l,userAgentInfo:o,_window:a}),p=f.reason;return c||p||(p=D.YE),{compatible:f.compatible&&c,maxVersion:s,minVersion:l,reason:p}}var Af=function(e){return"/".concat(e,"/").concat(D.wZ,"/")},Nf=function(e){var t=e.clientApp,n=e.isHomePage,r=void 0!==n&&n,o=e.lang,i=e.location,a=e.userAgentInfo;ce()(a,"userAgentInfo is required");var u=a.browser,c=a.os;return If(a)||!Pf({userAgentInfo:a})?null:kf(a)&&t===D.So||kf(a)&&!r&&!i.pathname.includes("/search/")?Af(o):c.name!==vt&&"Firefox"===u.name&&t===D.wZ?"".concat(i.pathname.replace(D.wZ,D.So)).concat(i.search):null};function Lf(e){return(Lf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ff(e,t){return(Ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Uf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hf(e);if(t){var o=Hf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bf(this,n)}}function Bf(e,t){if(t&&("object"===Lf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hf(e){return(Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ff(e,t)}(a,e);var t,n,o,i=Uf(a);function a(){return Df(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e._getClientCompatibility,n=e.addon,o=e.clientApp,i=e.currentVersion,a=e.i18n,u=e.userAgentInfo;if(!n)return null;var c=t({addon:n,clientApp:o,currentVersion:i,userAgentInfo:u});if(c.compatible)return null;var s=c.reason;if(ce()(s,"reason is required"),![D.CK,D.YE].includes(s))return null;var l=s===D.CK?a.gettext("This add-on is not compatible with your\n version of Firefox."):a.gettext("This add-on is not available on your platform.");return r.createElement(Jc,{type:"error",className:"AddonCompatibilityError"},r.createElement("span",{className:"AddonCompatibilityError-message",dangerouslySetInnerHTML:vn(l,["a"])}))}}])&&Mf(t.prototype,n),o&&Mf(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);qf.defaultProps={_getClientCompatibility:Cf};const zf=(0,Mo.qC)((0,g.connect)((function(e,t){var n=t.addon,r=null;return n&&n.currentVersionId&&(r=mf({id:n.currentVersionId,state:e.versions})),{clientApp:e.api.clientApp,currentVersion:r,userAgentInfo:e.api.userAgentInfo}})),Eu())(qf);var Gf=a(10017),Wf=a.n(Gf);function Vf(e){return(Vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $f(e,t){return($f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Kf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xf(e);if(t){var o=Xf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qf(this,n)}}function Qf(e,t){if(t&&("object"===Vf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xf(e){return(Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$f(e,t)}(a,e);var t,n,o,i=Kf(a);function a(){return Yf(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e._config,n=e._hrefLangs,o=e.currentURL,i=e.lang,a=e.locationPathname,u=e.queryString,c=a.split("/").slice(2).join("/"),s="/".concat(i,"/").concat(c).concat(u||""),l=t.get("hrefLangsMap"),f=!1===t.get("unsupportedHrefLangs").includes(i)&&s===o;return r.createElement(Ao,null,r.createElement("link",{rel:"canonical",href:pn({_config:t,locationPathname:s})}),f&&n.map((function(e){var n=l[e]||e,o="/".concat(n,"/").concat(c);return r.createElement("link",{href:pn({_config:t,locationPathname:"".concat(o).concat(u||"")}),hrefLang:e,key:e,rel:"alternate"})})))}}])&&Zf(t.prototype,n),o&&Zf(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.PureComponent);Jf.defaultProps={_config:t.Z,_hrefLangs:Ee};const ep=(0,Mo.qC)((0,g.connect)((function(e){var t=e.api.lang,n=e.router.location,r=n.pathname,o=n.search;return{currentURL:"".concat(r).concat(o),lang:t,locationPathname:r}})))(Jf);var tp=a(19704),np=a.n(tp);function rp(e){return(rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function op(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?op(Object(n),!0).forEach((function(t){ap(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):op(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ap(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function up(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sp(e,t){return(sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pp(e);if(t){var o=pp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fp(this,n)}}function fp(e,t){if(t&&("object"===rp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function pp(e){return(pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sp(e,t)}(a,e);var t,n,o,i=lp(a);function a(){return up(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getImage",value:function(){var e=this.props.image;return e||np()}},{key:"getTitle",value:function(){var e,t=this.props,n=t.clientApp,r=t.i18n,o=t.lang,i=t.title,a=t.appendDefaultTitle,u={locale:o};if(i){if(!a)return i;e=n===D.wZ?r.gettext("%(title)s – Add-ons for Firefox Android (%(locale)s)"):r.gettext("%(title)s – Add-ons for Firefox (%(locale)s)"),u=ip(ip({},u),{},{title:i})}else e=n===D.wZ?r.gettext("Add-ons for Firefox Android (%(locale)s)"):r.gettext("Add-ons for Firefox (%(locale)s)");return r.sprintf(e,u)}},{key:"renderOpenGraph",value:function(){var e=this.props,t=e._config,n=e.description,o=e.lang,i=e.locationPathname,a=e.queryString,u="".concat(pn({_config:t,locationPathname:i})).concat(a||""),c=[r.createElement("meta",{key:"og:type",property:"og:type",content:"website"}),r.createElement("meta",{key:"og:url",property:"og:url",content:u}),r.createElement("meta",{key:"og:title",property:"og:title",content:this.getTitle()}),r.createElement("meta",{key:"og:locale",property:"og:locale",content:o}),r.createElement("meta",{key:"og:image",property:"og:image",content:this.getImage()})];return n&&c.push(r.createElement("meta",{key:"og:description",property:"og:description",content:n})),c}},{key:"renderTwitter",value:function(){return this.props.withTwitterMeta?[r.createElement("meta",{key:"twitter:site",name:"twitter:site",content:"@mozamo"}),r.createElement("meta",{key:"twitter:card",name:"twitter:card",content:"summary_large_image"})]:null}},{key:"render",value:function(){var e=this.props,t=e.date,n=e.description,o=e.lastModified;return r.createElement(Ao,null,n&&r.createElement("meta",{name:"description",content:n}),t&&r.createElement("meta",{name:"date",content:t}),o&&r.createElement("meta",{name:"last-modified",content:o}),this.renderOpenGraph(),this.renderTwitter())}}])&&cp(t.prototype,n),o&&cp(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.PureComponent);dp.defaultProps={_config:t.Z,appendDefaultTitle:!0,withTwitterMeta:!1};const hp=(0,Mo.qC)((0,g.connect)((function(e){var t=e.api;return{clientApp:t.clientApp,lang:t.lang,locationPathname:e.router.location.pathname}})),Eu())(dp);function yp(e){return(yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gp(e,t){return(gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Op(e);if(t){var o=Op(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wp(this,n)}}function wp(e,t){if(t&&("object"===yp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Op(e){return(Op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ep=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gp(e,t)}(a,e);var t,n,o,i=bp(a);function a(){return mp(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getPageTitle",value:function(){var e=this.props,t=e.addon,n=e.clientApp,r=e.i18n,o=e.lang;ce()(t,"addon is required");var i,a={addonName:t.name,locale:o};if(n===D.wZ)switch(t.type){case D.jV:i=r.gettext("%(addonName)s – Get this Dictionary\n for 🦊 Firefox Android (%(locale)s)");break;case D.Gz:i=r.gettext("%(addonName)s – Get this Extension for\n 🦊 Firefox Android (%(locale)s)");break;case D.d$:i=r.gettext("%(addonName)s – Get this Language Pack\n for 🦊 Firefox Android (%(locale)s)");break;case D.Yd:i=r.gettext("%(addonName)s – Get this Theme for 🦊 Firefox Android (%(locale)s)");break;default:i=r.gettext("%(addonName)s – Get this Add-on for 🦊\n Firefox Android (%(locale)s)")}else switch(t.type){case D.jV:i=r.gettext("%(addonName)s – Get this Dictionary\n for 🦊 Firefox (%(locale)s)");break;case D.Gz:i=r.gettext("%(addonName)s – Get this Extension for\n 🦊 Firefox (%(locale)s)");break;case D.d$:i=r.gettext("%(addonName)s – Get this Language Pack\n for 🦊 Firefox (%(locale)s)");break;case D.Yd:i=r.gettext("%(addonName)s – Get this Theme for 🦊\n Firefox (%(locale)s)");break;default:i=r.gettext("%(addonName)s – Get this Add-on for 🦊\n Firefox (%(locale)s)")}return r.sprintf(i,a)}},{key:"getPageDescription",value:function(){var e=this.props,t=e.addon,n=e.i18n;return ce()(t,"addon is required"),n.sprintf(n.gettext("Download %(addonName)s for Firefox. %(summary)s"),{addonName:t.name,summary:t.summary})}},{key:"render",value:function(){var e=this.props,t=e._getAddonJsonLinkedData,n=e.addon,o=e.currentVersion,i=e.versionInfo;if(ce()(t,"_getAddonJsonLinkedData is required."),!n)return null;var a=i&&i.created;return r.createElement(r.Fragment,null,r.createElement(Ao,{titleTemplate:null},r.createElement("title",null,this.getPageTitle()),r.createElement("script",{type:"application/ld+json"},Wf()(t({addon:n,currentVersion:o}),{isJSON:!0}))),r.createElement(hp,{appendDefaultTitle:!1,date:n.created,description:this.getPageDescription(),image:qs(n),lastModified:a,title:this.getPageTitle(),withTwitterMeta:n.type===D.Gz}),r.createElement(ep,null))}}])&&vp(t.prototype,n),o&&vp(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);Ep.defaultProps={_getAddonJsonLinkedData:function(e){var t,n=e.addon,r=e.currentVersion,o=e.ratingThreshold,i=void 0===o?3.3:o,a=n.ratings;return a&&a.count>0&&a.average>=i&&(t={"@type":"AggregateRating",ratingCount:a.count,ratingValue:a.average}),Ft({"@context":"http://schema.org","@type":"WebApplication",name:n.name,url:n.url,image:qs(n),applicationCategory:"http://schema.org/OtherApplication",operatingSystem:"Firefox",description:n.summary,offers:{"@type":"Offer",availability:"http://schema.org/InStock",price:0,priceCurrency:"USD"},version:r?r.version:void 0,aggregateRating:t})}};const _p=(0,Mo.qC)(Eu(),(0,g.connect)((function(e,t){var n=t.addon,r=t.i18n,o=e.api,i=o.clientApp,a=o.lang,u=null,c=null;return n&&n.currentVersionId&&(u=mf({id:n.currentVersionId,state:e.versions})),u&&(c=bf({i18n:r,state:e.versions,versionId:u.id})),{clientApp:i,currentVersion:u,lang:a,versionInfo:c}})))(Ep);const xp=Eu()((function(e){var t=e.error,n=e.i18n;return t?r.createElement(Jc,{className:"AddonInstallError",type:"error"},function(e){var t=e.i18n,n=e.error;switch(ce()(t,"i18n is required"),n){case D._y:return t.gettext("Installation aborted because the add-on appears to be corrupt.");case D.DE:return t.gettext("Installation failed. Please try again.");case D.Vg:return t.gettext("Download failed. Please check your connection.");case D.pl:return t.gettext("An unexpected error occurred during installation.");case D.hY:return t.gettext("An unexpected error occurred during uninstallation.");case D.F6:default:return t.gettext("An unexpected error occurred.")}}({i18n:n,error:t})):null}));var Sp;function jp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Pp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pp(Object(n),!0).forEach((function(t){Ip(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ip(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tp(e){var t=e.addonSlug,n=e.id,r=e.location,o=e.score;ce()(t,"addonSlug is required");var i="/addon/".concat(t,"/reviews/").concat(n?"".concat(n,"/"):""),a=o?{score:String(o)}:{};return r&&(a=kp(kp({},a),Bt(r))),Ut(i,a)}var Rp={permissions:{},byAddon:{},byId:{},byUserId:{},latestUserReview:{},view:{},flashMessage:void 0,loadingForSlug:{}};var Cp=function(e,t){return e.byId[t]};function Ap(e){var t=e.addonId,n=e.userId;return"".concat(t,"-").concat(n)}var Np=function(e){var t=e.state;return e.reviews.map((function(e){var n=Cp(t,e);if(!n)throw new Error("No stored review exists for ID ".concat(e));return n}))},Lp=function(e){var t=e.state,n=e.reviews,r=kp({},t.byId);return n.forEach((function(e){if(!e.id)throw new Error("Cannot store review because review.id is falsy");r[e.id]=e})),r},Dp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.state,n=e.reviewId,r=e.stateChange,o=kp({},r),i=t.view[n]?t.view[n].flag:{};return kp(kp({},t),{},{view:kp(kp({},t.view),{},Ip({},n,kp(kp(kp({beginningToDeleteReview:!1,deletingReview:!1,editingReview:!1,loadingReview:!1,replyingToReview:!1,submittingReply:!1},t.view[n]),o),{},{flag:kp(kp({},i),o.flag)})))})},Mp=function(e){var t=e.userId,n=e.addonId;return"user-".concat(t,"/addon-").concat(n)},Fp=function(e){var t=e.state,n=e.review,r=Cp(t,n.id),o=Boolean(r),i=o;r&&!r.body&&n.body&&(i=!1);var a=o?t.byUserId:kp(kp({},t.byUserId),{},Ip({},n.userId,void 0)),u=i?t.byAddon:kp(kp({},t.byAddon),{},Ip({},n.reviewAddon.slug,void 0));return kp(kp({},t),{},{byId:Lp({state:t,reviews:[n]}),byUserId:a,byAddon:u})},Up=function(e,t){return Boolean(e.reviews.loadingForSlug[t])};function Bp(e){return(Bp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zp(e,t){return(zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vp(e);if(t){var o=Vp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wp(this,n)}}function Wp(e,t){if(t&&("object"===Bp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Vp(e){return(Vp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yp=[20,40,60,80,100],Zp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zp(e,t)}(a,e);var t,n,o,i=Gp(a);function a(){return Hp(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.minWidth,o=e.width,i=Math.floor(3*Math.random())+1,a=o;if(void 0===a||!Yp.includes(a)){var u=Yp.filter((function(e){return e>=n}));a=u[Math.floor(Math.random()*u.length)]}return r.createElement("span",{className:Ho()("LoadingText","LoadingText--delay-".concat(i),"LoadingText--width-".concat(a),t),role:"alert","aria-busy":"true"})}}])&&qp(t.prototype,n),o&&qp(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);Zp.defaultProps={minWidth:20};const $p=function(e){var t=e.className,n=e.metadata;return ce()(n,"The metadata property is required"),r.createElement("div",{className:Ho()("MetadataCard",t)},n.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.content,n=e.title,o=arguments.length>1?arguments[1]:void 0;if(void 0===t)throw new Error("content is required");if(void 0===n)throw new Error("title is required");var i=t||""===t||0===t;return r.createElement("dl",{className:"MetadataCard-list",key:o},r.createElement("dd",{className:"MetadataCard-content"},i?t:r.createElement(Zp,null)),r.createElement("dt",{className:"MetadataCard-title"},n))})))};var Kp;a(70849);function Qp(e){return(Qp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jp(e,t){return(Jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ed(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nd(e);if(t){var o=nd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return td(this,n)}}function td(e,t){if(t&&("object"===Qp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function nd(e){return(nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rd=Object.keys({small:"",large:""}),od=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jp(e,t)}(u,t);var n,o,i,a=ed(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).onSelectRating=function(e){var n=t.props.onSelectRating;ce()(n,"onSelectRating was empty. Did you mean to set readOnly=true?"),e.preventDefault(),e.stopPropagation();var r=e.currentTarget,o=parseInt(r.value,10);L.Z.debug("Selected rating from form button: ".concat(o)),n(o)},t.renderTitle=function(e,n,r){var o=t.props.i18n;return n?e?o.sprintf(o.gettext("Rated %(rating)s out of 5"),{rating:o.formatNumber(parseFloat(e).toFixed(1))}):o.gettext("There are no ratings yet"):(ce()(r,"starRating is required when readOnly=false"),e?r===e?o.sprintf(o.gettext("Rated %(rating)s out of 5"),{rating:o.formatNumber(parseFloat(e).toFixed(1))}):o.sprintf(o.gettext("Update your rating to %(starRating)s out of 5"),{starRating:r}):o.sprintf(o.gettext("Rate this add-on %(starRating)s out of 5"),{starRating:r}))},t.onHoverStar=function(e){t.props.readOnly||t._setState({hoveringOverStar:e})},t.stopHovering=function(){t.props.readOnly||t._setState({hoveringOverStar:null})},t.state={hoveringOverStar:null},t}return n=u,(o=[{key:"_setState",value:function(e){return(this.props._setState||this.setState.bind(this))(e)}},{key:"renderRatings",value:function(){var e=this,t=this.props.readOnly,n=this.state.hoveringOverStar,o=this.props.rating||0;return[1,2,3,4,5].map((function(i){var a=i-o<=.25;null!==n&&(a=i<=n);var u=e.renderTitle(o,t,i),c=i-o>.25&&i-o<=.75,s={className:Ho()("Rating-star","Rating-rating-".concat(i),{"Rating-selected-star":a,"Rating-half-star":c}),key:"rating-".concat(i),onClick:void 0,onMouseEnter:function(){return e.onHoverStar(i)},title:u};if(t)return r.createElement("div",s);e.isLoading()||(s.onClick=e.onSelectRating);var l="Rating-rating-".concat(i,"-title");return r.createElement(r.Fragment,null,r.createElement("button",Object.assign({"aria-describedby":l,type:"button",value:i},s),r.createElement("span",{id:l,className:"visually-hidden"},u)))}))}},{key:"isLoading",value:function(){return void 0===this.props.rating}},{key:"render",value:function(){var t,n,o=this.props,i=o.className,a=o.rating,u=o.readOnly,c=o.styleSize,s=o.yellowStars;if(!c||!rd.includes(c))throw new Error((0,e.f9)(Kp||(t=["styleSize="," is not a valid\n value; possible values: ",""],n||(n=t.slice(0)),Kp=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))),c||"[empty string]",rd.join(", ")));var l=u?this.renderTitle(a,u,null):null,f=Ho()("Rating","Rating--".concat(c),i,{"Rating--editable":!u,"Rating--loading":this.isLoading(),"Rating--yellowStars":s}),p={};return this.isLoading()&&(p.role="alert",p["aria-busy"]="true"),r.createElement("div",Object.assign({className:f,title:l,onMouseLeave:this.stopHovering},p),this.renderRatings(),r.createElement("span",{className:"visually-hidden"},l))}}])&&Xp(n.prototype,o),i&&Xp(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(r.Component);od.defaultProps={className:"",readOnly:!1,styleSize:"large",yellowStars:!1};const id=(0,Mo.qC)(Eu())(od);function ad(e){return(ad="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ud(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sd(e,t){return(sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ld(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pd(e);if(t){var o=pd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fd(this,n)}}function fd(e,t){if(t&&("object"===ad(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function pd(e){return(pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sd(e,t)}(a,e);var t,n,o,i=ld(a);function a(){return ud(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"renderBarValue",value:function(e){var t=this.props.addon;ce()(t,"addon is required");var n=0;return t.ratings&&t.ratings.count>0&&(n=Math.round(e/t.ratings.count*100)),r.createElement("div",{className:Ho()("RatingsByStar-bar","RatingsByStar-barValue","RatingsByStar-barValue--".concat(n,"pct"),{"RatingsByStar-partialBar":n<100})})}},{key:"render",value:function(){var e=this,t=this.props,n=t.addon,o=t.i18n,i=t.location,a=!n,u=function(e,t){switch(e){case"5":return t&&t>0?o.sprintf(o.ngettext("Read the 1 five-star review","Read all %(total)s five-star reviews",t),{total:o.formatNumber(t||0)}):o.gettext("There are no five-star reviews");case"4":return t&&t>0?o.sprintf(o.ngettext("Read the 1 four-star review","Read all %(total)s four-star reviews",t),{total:o.formatNumber(t||0)}):o.gettext("There are no four-star reviews");case"3":return t&&t>0?o.sprintf(o.ngettext("Read the 1 three-star review","Read all %(total)s three-star reviews",t),{total:o.formatNumber(t||0)}):o.gettext("There are no three-star reviews");case"2":return t&&t>0?o.sprintf(o.ngettext("Read the 1 two-star review","Read all %(total)s two-star reviews",t),{total:o.formatNumber(t||0)}):o.gettext("There are no two-star reviews");case"1":return t&&t>0?o.sprintf(o.ngettext("Read the 1 one-star review","Read all %(total)s one-star reviews",t),{total:o.formatNumber(t||0)}):o.gettext("There are no one-star reviews");default:return o.gettext("There are no reviews")}};return r.createElement("div",{className:"RatingsByStar"},r.createElement("div",{className:"RatingsByStar-graph"},["5","4","3","2","1"].map((function(t){var c;n&&n.ratings&&(c=n.ratings.grouped_counts[t]);var s,l=r.createElement("div",{key:t,className:"RatingsByStar-row"},r.createElement("div",{className:"RatingsByStar-star"},r.createElement(Zp,{width:100}),r.createElement(ac,{name:"star-yellow"})),r.createElement("div",{className:"RatingsByStar-barContainer"},r.createElement("div",{className:"RatingsByStar-bar RatingsByStar-barFrame"})),r.createElement("div",{className:"RatingsByStar-count"},r.createElement(Zp,{width:100}))),f=r.createElement(r.Fragment,null,r.createElement("div",{className:"RatingsByStar-star"},o.formatNumber(t),r.createElement(ac,{name:"star-yellow"})),r.createElement("div",{className:"RatingsByStar-barContainer"},r.createElement("div",{className:"RatingsByStar-bar RatingsByStar-barFrame"},void 0!==c?e.renderBarValue(c):null)),r.createElement("div",{className:"RatingsByStar-count"},o.formatNumber(c||0)));return a?l:(s=f,ce()(n,"addon was unexpectedly empty"),r.createElement(wc,{className:"RatingsByStar-row",key:t,title:u(t,c)||"",to:Tp({addonSlug:n.slug,score:t,location:i})},s))}))))}}])&&cd(t.prototype,n),o&&cd(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const hd=(0,Mo.qC)(No,Eu())(dd);function yd(e){return(yd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function md(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gd(e,t){return(gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Od(e);if(t){var o=Od(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wd(this,n)}}function wd(e,t){if(t&&("object"===yd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Od(e){return(Od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ed=function(e){return e?Math.round(10*e)/10:0},_d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gd(e,t)}(a,e);var t,n,o,i=bd(a);function a(){return md(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e,t=this.props,n=t.addon,o=t.i18n,i=t.location;n&&(e=n.ratings?n.ratings.average:null);var a,u=n&&n.ratings?n.ratings.count:null,c=n?n.average_daily_users:null,s=Ed(e||null),l="";n?c?(l=o.formatNumber(c),a=o.ngettext("User","Users",c)):a=o.gettext("No Users"):(l=null,a=o.gettext("Users"));var f,p="";n?u?(p=o.formatNumber(u),f=o.ngettext("Review","Reviews",u)):f=o.gettext("No Reviews"):(p=null,f=o.gettext("Reviews"));var d=n&&p?Tp({addonSlug:n.slug,location:i}):null,h=d?r.createElement(wc,{className:"AddonMeta-reviews-content-link",to:d},p):p,y=d?r.createElement(wc,{className:"AddonMeta-reviews-title-link",to:d},f):f;return r.createElement("div",{className:"AddonMeta"},r.createElement("h3",{className:"visually-hidden"},o.gettext("Used by")),r.createElement($p,{className:"AddonMeta-overallRating",metadata:[{content:l,title:a},{content:h,title:y},{content:r.createElement("div",{className:"AddonMeta-rating-content"},r.createElement(id,{rating:e,readOnly:!0,styleSize:"small",yellowStars:!0})),title:r.createElement("div",{className:"AddonMeta-rating-title"},u?o.sprintf(o.ngettext("%(total)s Star","%(total)s Stars",s),{total:o.formatNumber(s)}):o.gettext("Not rated yet"))}]}),r.createElement(hd,{addon:n}))}}])&&vd(t.prototype,n),o&&vd(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const xd=(0,Mo.qC)(No,Eu())(_d);var Sd=function(e){var t=e.children,n=e.className,o=e.term;return r.createElement(r.Fragment,null,r.createElement("dt",{className:"Definition-dt"},o),r.createElement("dd",{className:Ho()("Definition-dd",n)},t))};const jd=function(e){var t=e.className,n=e.children;return r.createElement("dl",{className:Ho()("DefinitionList",t)},n)};function Pd(e){return(Pd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Id(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Td(e,t){return(Td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ad(e);if(t){var o=Ad(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cd(this,n)}}function Cd(e,t){if(t&&("object"===Pd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ad(e){return(Ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Td(e,t)}(a,e);var t,n,o,i=Rd(a);function a(){return kd(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.addon,n=e.hasCodeReviewPermission,o=e.hasContentReviewPermission,i=e.hasEditPermission,a=e.hasStaticThemeReviewPermission,u=e.i18n;if(null===t)return null;var c=t.type===D.Yd,s=n&&!c,l=a&&c,f=o&&!c;if(!(i||f||s||l))return null;var p=i?r.createElement("li",null,r.createElement("a",{className:"AddonAdminLinks-edit-link",href:"/developers/addon/".concat(t.slug,"/edit")},u.gettext("Edit add-on"))):null,d=i?r.createElement("li",null,r.createElement("a",{className:"AddonAdminLinks-admin-link",href:"/admin/models/addons/addon/".concat(t.id)},u.gettext("Admin add-on"))):null,h=f?r.createElement("li",null,r.createElement("a",{className:"AddonAdminLinks-contentReview-link",href:"/reviewers/review-content/".concat(t.id)},u.gettext("Content review add-on"))):null,y=c?u.gettext("Review theme"):u.gettext("Review add-on code"),m=s||l?r.createElement("li",null,r.createElement("a",{className:"AddonAdminLinks-".concat(c?"themeReview":"codeReview","-link"),href:"/reviewers/review/".concat(t.id)},y)):null;return r.createElement(jd,{className:"AddonAdminLinks"},r.createElement(Sd,{term:u.gettext("Admin Links")},r.createElement("ul",{className:"AddonAdminLinks-list"},p,d,h,m)))}}])&&Id(t.prototype,n),o&&Id(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const Ld=(0,Mo.qC)((0,g.connect)((function(e){return{hasCodeReviewPermission:et(e,D.QZ),hasContentReviewPermission:et(e,D.Mr),hasEditPermission:et(e,D.mD),hasStaticThemeReviewPermission:et(e,D.lS)}})),Eu())(Nd);function Dd(e){return(Dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Md(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ud(e,t){return(Ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Bd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qd(e);if(t){var o=qd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hd(this,n)}}function Hd(e,t){if(t&&("object"===Dd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qd(e){return(qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ud(e,t)}(a,e);var t,n,o,i=Bd(a);function a(){return Md(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.addon,n=e.i18n,o=e.currentUserID;if(null===t)return null;if(!wn({addon:t,userId:o}))return null;var i=r.createElement("li",null,r.createElement("a",{className:"AddonAuthorLinks-edit-link",href:"/developers/addon/".concat(t.slug,"/edit")},n.gettext("Edit add-on")));return r.createElement(jd,{className:"AddonAuthorLinks"},r.createElement(Sd,{term:n.gettext("Author Links")},r.createElement("ul",{className:"AddonAuthorLinks-list"},i)))}}])&&Fd(t.prototype,n),o&&Fd(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const Gd=(0,Mo.qC)((0,g.connect)((function(e){return{currentUserID:e.users.currentUserID}})),Eu())(zd);var Wd,Vd;function Yd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Zd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zd(Object(n),!0).forEach((function(t){Kd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qd="FETCH_CATEGORIES",Xd="LOAD_CATEGORIES",Jd={categories:null,loading:!1};function eh(e){var t=e.errorHandlerId;return ce()(t,"errorHandlerId is required"),{type:Qd,payload:{errorHandlerId:t}}}function th(e){var t=e.results;return{type:Xd,payload:{results:t}}}function nh(){return t.Z.get("validClientApplications").reduce((function(e,t){return $d($d({},e),{},Kd({},t,D.Tq.reduce((function(e,t){return $d($d({},e),{},Kd({},t,[]))}),{})))}),{})}var rh=function(e){var t=e.addonType,n=e.slug;return"/".concat(xn(t),"/category/").concat(n,"/")},oh=function(e,t){return e&&e[t]?e[t].name:null},ih=function(e){var t=e.tag;return"/tag/".concat(t,"/")};function ah(e){return(ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ch(e,t){return(ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fh(e);if(t){var o=fh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lh(this,n)}}function lh(e,t){if(t&&("object"===ah(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fh(e){return(fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ph=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ch(e,t)}(a,e);var t,n,o,i=sh(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=e.categoriesLoading,r=e.dispatch,o=e.errorHandler,u=e.relatedCategories;return n||u||r(eh({errorHandlerId:o.id})),t}return t=a,(n=[{key:"listContent",value:function(){var e=this.props,t=e.addon,n=e.currentVersion,o=e.hasStatsPermission,i=e.i18n,a=e.location,u=e.relatedCategories,c=e.userId,s=e.versionInfo;if(!t)return this.renderDefinitions({versionLastUpdated:r.createElement(Zp,{minWidth:20}),versionLicense:r.createElement(Zp,{minWidth:20})});var l=t.homepage&&t.homepage.outgoing;l&&(l=r.createElement("li",null,r.createElement("a",{className:"AddonMoreInfo-homepage-link",href:l,title:t.homepage&&t.homepage.url},i.gettext("Homepage"))));var f=t.support_url&&t.support_url.outgoing;f&&(f=r.createElement("li",null,r.createElement("a",{className:"AddonMoreInfo-support-link",href:f,title:t.support_url&&t.support_url.url},i.gettext("Support site"))));var p=t.support_email;p=p&&/.+@.+/.test(p)?r.createElement("li",null,r.createElement("a",{className:"AddonMoreInfo-support-email",href:"mailto:".concat(p)},i.gettext("Support Email"))):null;var d=null;(wn({addon:t,userId:c})||o)&&(d=r.createElement(wc,{className:"AddonMoreInfo-stats-link",href:Ut("/addon/".concat(t.slug,"/statistics/"),Bt(a))},i.gettext("Visit stats dashboard")));var h=s&&s.created,y=n&&n.license,m=null;if(y){var v=y.isCustom?{to:Ut("/addon/".concat(t.slug,"/license/"),Bt(a))}:{href:y.url,prependClientApp:!1,prependLang:!1},g=y.name||i.gettext("Custom License");m=y.url?r.createElement(wc,Object.assign({className:"AddonMoreInfo-license-link"},v),g):r.createElement("span",{className:"AddonMoreInfo-license-name"},g)}var b=null;return[D.Gz,D.Yd].includes(t.type)&&u&&u.length>0&&(b=u.map((function(e){return r.createElement("li",{key:e.slug},r.createElement(wc,{className:"AddonMoreInfo-related-category-link",to:rh({addonType:e.type,slug:e.slug})},i.gettext(e.name)))}))),this.renderDefinitions({homepage:l,supportUrl:f,supportEmail:p,statsLink:d,version:n?n.version:null,filesize:s&&s.filesize,versionLastUpdated:h?i.sprintf(i.gettext("%(timeFromNow)s (%(date)s)"),{timeFromNow:i.moment(h).fromNow(),date:i.moment(h).format("ll")}):null,versionLicenseLink:m,privacyPolicyLink:t.has_privacy_policy?r.createElement(wc,{className:"AddonMoreInfo-privacy-policy-link",to:Ut("/addon/".concat(t.slug,"/privacy/"),Bt(a))},i.gettext("Read the privacy policy for this add-on")):null,eulaLink:t.has_eula?r.createElement(wc,{className:"AddonMoreInfo-eula-link",to:Ut("/addon/".concat(t.slug,"/eula/"),Bt(a))},i.gettext("Read the license agreement for this add-on")):null,relatedCategories:b,versionHistoryLink:r.createElement("li",null,r.createElement(wc,{className:"AddonMoreInfo-version-history-link",to:Ut("/addon/".concat(t.slug,"/versions/"),Bt(a))},i.gettext("See all versions"))),tagsLinks:t.tags.length>0?t.tags.map((function(e){return r.createElement("li",{key:e},r.createElement(wc,{className:"AddonMoreInfo-tag-link",to:Ut(ih({tag:e}),Bt(a))},e))})):null})}},{key:"renderDefinitions",value:function(e){var t=e.eulaLink,n=void 0===t?null:t,o=e.filesize,i=void 0===o?null:o,a=e.homepage,u=void 0===a?null:a,c=e.privacyPolicyLink,s=void 0===c?null:c,l=e.relatedCategories,f=void 0===l?null:l,p=e.statsLink,d=void 0===p?null:p,h=e.supportEmail,y=void 0===h?null:h,m=e.supportUrl,v=void 0===m?null:m,g=e.tagsLinks,b=void 0===g?null:g,w=e.version,O=void 0===w?null:w,E=e.versionHistoryLink,_=void 0===E?null:E,x=e.versionLastUpdated,S=e.versionLicenseLink,j=void 0===S?null:S,P=this.props,k=P.addon,I=P.i18n;return r.createElement(r.Fragment,null,r.createElement(jd,{className:"AddonMoreInfo-dl"},(u||v||y)&&r.createElement(Sd,{className:"AddonMoreInfo-links",term:I.gettext("Add-on Links")},r.createElement("ul",{className:"AddonMoreInfo-links-contents-list"},u,v,y)),O&&r.createElement(Sd,{className:"AddonMoreInfo-version",term:I.gettext("Version")},O),i&&r.createElement(Sd,{className:"AddonMoreInfo-filesize",term:I.gettext("Size")},i),x&&r.createElement(Sd,{className:"AddonMoreInfo-last-updated",term:I.gettext("Last updated")},x),f&&r.createElement(Sd,{className:"AddonMoreInfo-related-categories",term:I.gettext("Related Categories")},r.createElement("ul",{className:"AddonMoreInfo-related-categories-list"},f)),j&&r.createElement(Sd,{className:"AddonMoreInfo-license",term:I.gettext("License")},j),s&&r.createElement(Sd,{className:"AddonMoreInfo-privacy-policy",term:I.gettext("Privacy Policy")},s),n&&r.createElement(Sd,{className:"AddonMoreInfo-eula",term:I.gettext("End-User License Agreement")},n),_&&r.createElement(Sd,{className:"AddonMoreInfo-version-history",term:I.gettext("Version History")},r.createElement("ul",{className:"AddonMoreInfo-links-contents-list"},_)),d&&r.createElement(Sd,{className:"AddonMoreInfo-stats",term:I.gettext("Usage Statistics")},d),b&&r.createElement(Sd,{className:"AddonMoreInfo-tag-links",term:I.gettext("Tags")},r.createElement("ul",{className:"AddonMoreInfo-tag-links-list"},b))),r.createElement(Ld,{addon:k}),r.createElement(Gd,{addon:k}))}},{key:"render",value:function(){var e=this.props,t=e.errorHandler,n=e.i18n;return r.createElement(js,{className:"AddonMoreInfo",header:n.gettext("More information")},t.renderErrorIfPresent(),this.listContent())}}])&&uh(t.prototype,n),o&&uh(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const dh=(0,Mo.qC)(No,Eu(),(0,g.connect)((function(e,t){var n=t.addon,r=t.i18n,o=e.categories.categories,i=e.api.clientApp,a=null,u=null,c=null;if(n&&n.currentVersionId&&(a=mf({id:n.currentVersionId,state:e.versions})),a&&(c=bf({i18n:r,state:e.versions,versionId:a.id})),n&&n.categories&&n.type&&o&&i){var s=o[i][n.type];u=(n.categories[i]||[]).reduce((function(e,t){return void 0!==s[t]&&e.push(s[t]),e}),[])}return{currentVersion:a,relatedCategories:u,versionInfo:c,categoriesLoading:e.categories.loading,hasStatsPermission:et(e,D.bp),userId:e.users.currentUserID}})),ms({name:"AddonMoreInfo"}))(ph);var hh=a(87003),yh=a.n(hh),mh=a(30513),vh=a(3812);const gh=r.useLayoutEffect;const bh=function(e){var t=(0,r.useRef)(e);return gh((function(){t.current=e})),t};var wh=function(e,t){"function"!=typeof e?e.current=t:e(t)};const Oh=function(e,t){var n=(0,r.useRef)();return(0,r.useCallback)((function(r){e.current=r,n.current&&wh(n.current,null),n.current=t,t&&wh(t,r)}),[t])};var Eh={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},_h=function(e){Object.keys(Eh).forEach((function(t){e.style.setProperty(t,Eh[t],"important")}))},xh=null;var Sh=function(){},jh=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Ph=!!document.documentElement.currentStyle,kh=function(e,t){var n=e.cacheMeasurements,o=e.maxRows,i=e.minRows,a=e.onChange,u=void 0===a?Sh:a,c=e.onHeightChange,s=void 0===c?Sh:c,l=(0,vh.Z)(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var f,p=void 0!==l.value,d=(0,r.useRef)(null),h=Oh(d,t),y=(0,r.useRef)(0),m=(0,r.useRef)(),v=function(){var e=d.current,t=n&&m.current?m.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,jh.reduce((function(e,t){return e[t]=n[t],e}),{})),o=r.boxSizing;return""===o?null:(Ph&&"border-box"===o&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){m.current=t;var r=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),xh||((xh=document.createElement("textarea")).setAttribute("tabindex","-1"),xh.setAttribute("aria-hidden","true"),_h(xh)),null===xh.parentNode&&document.body.appendChild(xh);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,u=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;xh.style[t]=a[t]})),_h(xh),xh.value=t;var c=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(xh,e);xh.value="x";var s=xh.scrollHeight-o,l=s*n;"border-box"===u&&(l=l+o+i),c=Math.max(l,c);var f=s*r;return"border-box"===u&&(f=f+o+i),[c=Math.min(f,c),s]}(t,e.value||e.placeholder||"x",i,o),a=r[0],u=r[1];y.current!==a&&(y.current=a,e.style.setProperty("height",a+"px","important"),s(a,{rowHeight:u}))}};return(0,r.useLayoutEffect)(v),f=bh(v),(0,r.useLayoutEffect)((function(){var e=function(e){f.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),(0,r.createElement)("textarea",(0,mh.Z)({},l,{onChange:function(e){p||v(),u(e)},ref:h}))};const Ih=(0,r.forwardRef)(kh);var Th=a(86432),Rh=a.n(Th),Ch="src/amo/localState.js";function Ah(e){return(Ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.localForage,n=void 0===t?Rh():t;n.config({name:"addons-frontend",version:"1.0",storeName:Tn(Ch)})}var Mh,Fh=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.localForage,o=void 0===r?Rh():r;Nh(this,e),this.id=t,this.localForage=o,Dh({localForage:o})}var t,n,r;return t=e,(n=[{key:"load",value:function(){var e=this;return this.localForage.getItem(this.id).then((function(e){return e||null})).catch((function(t){throw L.Z.debug('Error with localForage.getItem("'.concat(e.id,'"): ').concat(t)),t}))}},{key:"clear",value:function(){var e=this;return this.localForage.removeItem(this.id).catch((function(t){throw L.Z.debug('Error with localForage.removeItem("'.concat(e.id,'"): ').concat(t)),t}))}},{key:"save",value:function(e){var t=this;return"object"!==Ah(e)||null===e?Promise.reject(new Error("The argument to save() must be an object")):this.localForage.setItem(this.id,e).catch((function(e){throw L.Z.debug('Error with localForage.setItem("'.concat(t.id,'"): ').concat(e)),e}))}}])&&Lh(t.prototype,n),r&&Lh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Uh(e){return(Uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bh(){Bh=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Uh(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function Hh(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function qh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zh(e,t){return(zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vh(e);if(t){var o=Vh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wh(this,n)}}function Wh(e,t){if(t&&("object"===Uh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Vh(e){return(Vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yh=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zh(e,t)}(s,t);var n,o,i,a,u,c=Gh(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=c.call(this,e)).onDelete=function(e){e.preventDefault(),ce()(t.props.onDelete,"onDelete() is not defined"),t.props.onDelete(),t.localState.clear()},t.onDismiss=function(e){var n=t.props.onDismiss;e.preventDefault(),ce()(n,"onDismiss() is required"),n(),t.setState({text:""}),t.localState.clear()},t.onSubmit=function(e){e.preventDefault(),t.props.onSubmit({event:e,text:t.state.text}),t.localState.clear()},t.persistState=t.props._debounce((function(e){t.localState.save(e)}),800,{trailing:!0}),t.onTextChange=function(e){e.preventDefault();var n={text:e.target.value};t.setState(n),t.persistState(n)};var n=e.text||"";return t.state={initialText:n,text:n},t.localState=t.createLocalState(),t}return n=s,(o=[{key:"componentDidMount",value:function(){this.checkForStoredState(),this.textarea&&this.textarea.focus()}},{key:"componentDidUpdate",value:function(e){this.props.id!==e.id&&(this.localState=this.createLocalState(),this.checkForStoredState())}},{key:"createLocalState",value:function(){var e=this.props;return(0,e._createLocalState)(e.id)}},{key:"checkForStoredState",value:(a=Bh().mark((function t(){var n;return Bh().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.localState.load();case 2:(n=t.sent)&&(L.Z.debug((0,e.f9)(Mh||(r=["Initializing DismissibleTextForm state from LocalState\n ",""],(o=void 0)||(o=r.slice(0)),Mh=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}}))),this.localState.id),n),this.setState(n));case 4:case"end":return t.stop()}var r,o}),t,this)})),u=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=a.apply(e,t);function i(e){Hh(o,n,r,i,u,"next",e)}function u(e){Hh(o,n,r,i,u,"throw",e)}i(void 0)}))},function(){return u.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=t.dismissButtonText,i=t.formFooter,a=t.i18n,u=t.isSubmitting,c=t.microButtons,s=t.onDelete,l=t.onDismiss,f=t.placeholder,p=t.puffyButtons,d=t.reverseButtonOrder,h=t.submitButtonClassName,y=t.submitButtonText,m=t.submitButtonInProgressText,v=u||!this.state.text.trim()||this.state.initialText===this.state.text.trim(),g=!this.state.text.trim(),b={placeholder:f||a.gettext("Enter text."),submitButtonText:y||a.gettext("Submit"),submitButtonInProgressText:m||a.gettext("Submitting")};ce()(!(c&&p),"microButtons and puffyButtons cannot both be true; choose one");var w=l?r.createElement(Dc,{buttonType:"neutral",className:"DismissibleTextForm-dismiss",disabled:u,key:"cancel",micro:c,onClick:this.onDismiss,puffy:p,type:"cancel"},o||a.gettext("Cancel")):null,O=[s?r.createElement(Dc,{buttonType:"alert",className:"DismissibleTextForm-delete",disabled:g,key:"delete",onClick:this.onDelete,micro:c,puffy:p,type:"button"},a.gettext("Delete")):null,r.createElement(Dc,{buttonType:"action",className:Ho()("DismissibleTextForm-submit",h),disabled:v,key:"submit",onClick:this.onSubmit,micro:c,puffy:p,type:"submit"},u?b.submitButtonInProgressText:b.submitButtonText)];d&&O.reverse();var E=[w,r.createElement("span",{className:"DismissibleTextForm-delete-submit-buttons",key:"actionButtons"},O)];return d&&E.reverse(),r.createElement("form",{className:Ho()("DismissibleTextForm-form",n)},r.createElement(Ih,{disabled:u,className:"DismissibleTextForm-textarea",ref:function(t){e.textarea=t},onChange:this.onTextChange,placeholder:b.placeholder,value:this.state.text}),i&&r.createElement("div",{className:"DismissibleTextForm-formFooter"},i),r.createElement("div",{className:"DismissibleTextForm-buttons"},E))}}])&&qh(n.prototype,o),i&&qh(n,i),Object.defineProperty(n,"prototype",{writable:!1}),s}(r.Component);Yh.defaultProps={_createLocalState:function(e,t){return new Fh(e,t)},_debounce:yh(),isSubmitting:!1,microButtons:!1,puffyButtons:!1,reverseButtonOrder:!1};const Zh=(0,Mo.qC)(Eu())(Yh);var $h="src/amo/components/EditableCollectionAddon/index.js";function Kh(e){return(Kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jh(e,t){return(Jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ey(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ny(e);if(t){var o=ny(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ty(this,n)}}function ty(e,t){if(t&&("object"===Kh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ny(e){return(ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ry=function(e){var t=e.addon;return"editable-collection-addon-".concat(t.id)},oy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jh(e,t)}(a,e);var t,n,o,i=ey(a);function a(){var e;Qh(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onEditNote=function(t){t.preventDefault(),e.props.setUIState({editingNote:!0})},e.onDeleteNote=function(){var t=e.props,n=t.addon.id;(0,t.deleteNote)(n,t.errorHandler)},e.onDismissNoteForm=function(){e.props.setUIState({editingNote:!1})},e.onRemoveAddon=function(t){var n=e.props,r=n.addon.id,o=n.removeAddon;t.preventDefault(),t.stopPropagation(),ce()(r,"addonId is required"),o(r)},e.onSaveNote=function(t){var n=e.props,r=n.addon.id,o=n.errorHandler,i=n.saveNote;ce()(r,"addonId is required"),i(r,o,t.text)},e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.addon,n=e.errorHandler,o=e.i18n,i=t.notes||this.props.uiState.editingNote,a=Bs(t);return r.createElement("li",{className:Ho()("EditableCollectionAddon","EditableCollectionAddon--".concat(t.type))},r.createElement("div",{className:"EditableCollectionAddon-details"},r.createElement("img",{className:"EditableCollectionAddon-icon",src:a,alt:t.name}),r.createElement("h2",{className:"EditableCollectionAddon-name"},t.name)),r.createElement("div",{className:"EditableCollectionAddon-buttons"},r.createElement("div",{className:Ho()("EditableCollectionAddon-leaveNote",{"EditableCollectionAddon-leaveNote--hidden":i})},r.createElement(Dc,{buttonType:"action",className:"EditableCollectionAddon-leaveNote-button",micro:!0,onClick:this.onEditNote},o.gettext("Leave a note"))),r.createElement(Dc,{buttonType:"alert",className:"EditableCollectionAddon-remove-button",micro:!0,name:t.id,onClick:this.onRemoveAddon},o.gettext("Remove"))),i&&r.createElement("div",{className:"EditableCollectionAddon-notes"},r.createElement("h4",{className:"EditableCollectionAddon-notes-header"},r.createElement(ac,{name:"comments-blue"}),this.props.uiState.editingNote?o.gettext("Leave a note"):o.gettext("Collector's note")),this.props.uiState.editingNote?r.createElement(r.Fragment,null,n.renderErrorIfPresent(),r.createElement(Zh,{className:"EditableCollectionAddon-notes-form",id:"".concat(Tn($h),"-").concat(ry(this.props)),microButtons:!0,onDelete:t.notes?this.onDeleteNote:null,onDismiss:this.onDismissNoteForm,onSubmit:this.onSaveNote,placeholder:o.gettext("Add a comment about this add-on."),submitButtonText:o.gettext("Save"),text:vn(t.notes||"").__html})):r.createElement("div",{className:"EditableCollectionAddon-notes-read-only"},r.createElement("span",{className:"EditableCollectionAddon-notes-content",dangerouslySetInnerHTML:vn(gn(t.notes||""),["br","a"])}),r.createElement("div",{className:"EditableCollectionAddon-notes-buttons"},r.createElement(Dc,{buttonType:"action",className:"EditableCollectionAddon-notes-edit-button",micro:!0,onClick:this.onEditNote},o.gettext("Edit"))))))}}])&&Xh(t.prototype,n),o&&Xh(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const iy=(0,Mo.qC)(Eu(),gs({fileName:$h,extractId:ry}),Bu({fileName:$h,extractId:ry,initialState:{editingNote:!1},resetOnUnmount:!0}))(oy);function ay(e){return(ay="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sy(e,t){return(sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ly(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=py(e);if(t){var o=py(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fy(this,n)}}function fy(e,t){if(t&&("object"===ay(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function py(e){return(py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sy(e,t)}(a,e);var t,n,o,i=ly(a);function a(){var e;uy(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onClickAddon=function(t){var n=e.props,r=n.addon,o=n.onClick;t.stopPropagation(),r&&o&&o(r)},e.onClickResult=function(){var t=e.props,n=t.addon,r=t.addonInstallSource,o=t.clientApp,i=t.history,a=t.lang,u=t.onClick;n&&(i.push("/".concat(a,"/").concat(o).concat(e.getAddonLink(n,r))),u&&u(n))},e}return t=a,(n=[{key:"getAddonLink",value:function(e,t){var n=ln(e.slug);return t&&(n=Ut(n,{utm_source:D.Pr,utm_medium:D.AT,utm_content:t})),n}},{key:"renderResult",value:function(){var e=this.props,t=e._getPromotedCategory,n=e.addon,o=e.addonInstallSource,i=e.clientApp,a=e.i18n,u=e.onImpression,c=e.showFullSizePreview,s=e.showMetadata,l=e.showPromotedBadge,f=e.showSummary,p=e.useThemePlaceholder;n&&u&&u(n);var d=n?n.average_daily_users:null,h=Bs(n),y=r.createElement(Zp,null);n&&(y=r.createElement(wc,{className:"SearchResult-link",to:this.getAddonLink(n,o),onClick:this.onClickAddon},n.name)),n&&n.type===D.Yd&&(h=qs(n,{full:c}));var m=Ho()("SearchResult-icon-wrapper",{"SearchResult-icon-wrapper--no-theme-image":n?null===h:p}),v=null,g=n&&n.authors&&n.authors.length?n.authors:null;if(!n||g){var b=g&&g[0];v=r.createElement("h3",{className:"SearchResult-author SearchResult--meta-section"},b?b.name:r.createElement(Zp,null))}var w=null;if(f){var O={};n?O.dangerouslySetInnerHTML=vn(n.summary):O.children=r.createElement(Zp,null),w=r.createElement("p",Object.assign({className:"SearchResult-summary"},O))}var E=t({addon:n,clientApp:i,forBadging:!0});return r.createElement("div",{className:"SearchResult-wrapper"},r.createElement("div",{className:"SearchResult-result"},r.createElement("div",{className:m},n&&h||!n&&!p?r.createElement("img",{className:Ho()("SearchResult-icon",{"SearchResult-icon--loading":!n}),src:h,alt:n?"".concat(n.name):""}):r.createElement("p",{className:"SearchResult-notheme"},a.gettext("No theme preview available"))),r.createElement("div",{className:"SearchResult-contents"},r.createElement("h2",{className:"SearchResult-name"},y,l&&n&&E?r.createElement($s,{category:E,onClick:function(e){return e.stopPropagation()},size:"small"}):null),w,s?r.createElement("div",{className:"SearchResult-metadata"},r.createElement("div",{className:"SearchResult-rating"},r.createElement(id,{rating:n&&n.ratings?n.ratings.average:0,readOnly:!0,styleSize:"small"})),v):null,n&&n.notes&&r.createElement("div",{className:"SearchResult-note"},r.createElement("h4",{className:"SearchResult-note-header"},r.createElement(ac,{name:"comments-blue"}),a.gettext("Add-on note")),r.createElement("p",{className:"SearchResult-note-content",dangerouslySetInnerHTML:vn(gn(n.notes),["br"])}))),r.createElement("h3",{className:"SearchResult-users SearchResult--meta-section"},r.createElement(ac,{className:"SearchResult-users-icon",name:"user-fill"}),r.createElement("span",{className:"SearchResult-users-text"},null!=d?a.sprintf(a.ngettext("%(total)s user","%(total)s users",d),{total:a.formatNumber(d)}):r.createElement(Zp,{width:80})))))}},{key:"render",value:function(){var e=this.props,t=e.addon,n=e.useThemePlaceholder,o=this.renderResult(),i=Ho()("SearchResult",{"SearchResult--theme":t?D.Yd===t.type:n});return r.createElement("li",{onClick:this.onClickResult,className:i},o)}}])&&cy(t.prototype,n),o&&cy(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);dy.defaultProps={_getPromotedCategory:Gs,showFullSizePreview:!1,showMetadata:!0,showPromotedBadge:!0,showSummary:!0,useThemePlaceholder:!1};const hy=(0,Mo.qC)(No,(0,g.connect)((function(e){return{clientApp:e.api.clientApp,lang:e.api.lang}})),Eu())(dy);function yy(e){return(yy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var my=["children","className"];function vy(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function by(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wy(e,t){return(wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Oy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_y(e);if(t){var o=_y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ey(this,n)}}function Ey(e,t){if(t&&("object"===yy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _y(e){return(_y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wy(e,t)}(a,e);var t,n,o,i=Oy(a);function a(){return gy(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=vy(e,my);return r.createElement(js,Object.assign({},o,{className:Ho()("CardList",n),photonStyle:!0}),t)}}])&&by(t.prototype,n),o&&by(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);function Sy(e){return(Sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}xy.propTypes={children:w().node,className:w().string};var jy=["addonInstallSource","addons","children","className","deleteNote","editing","loading","removeAddon","saveNote","onAddonClick","onAddonImpression","placeholderCount","useThemePlaceholder","showFullSizePreview","showMetadata","showPromotedBadge","showSummary","type"];function Py(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ky(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ty(e,t){return(Ty=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ry(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ay(e);if(t){var o=Ay(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cy(this,n)}}function Cy(e,t){if(t&&("object"===Sy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ay(e){return(Ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ny=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ty(e,t)}(a,e);var t,n,o,i=Ry(a);function a(){return ky(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.addonInstallSource,n=e.addons,o=e.children,i=e.className,a=e.deleteNote,u=e.editing,c=e.loading,s=e.removeAddon,l=e.saveNote,f=e.onAddonClick,p=e.onAddonImpression,d=e.placeholderCount,h=e.useThemePlaceholder,y=e.showFullSizePreview,m=e.showMetadata,v=e.showPromotedBadge,g=e.showSummary,b=e.type,w=Py(e,jy),O=[];if(n&&n.length)n.forEach((function(e){u?(ce()(a,"deleteNote() is undefined"),ce()(s,"removeAddon() is undefined"),ce()(l,"saveNote() is undefined"),O.push(r.createElement(iy,{addon:e,deleteNote:a,key:e.slug,removeAddon:s,saveNote:l}))):O.push(r.createElement(hy,{addonInstallSource:t,addon:e,key:"".concat(e.slug,"-").concat(e.type),onClick:f,onImpression:p,showFullSizePreview:y,showMetadata:m,showPromotedBadge:v,showSummary:D.Yd!==e.type&&g}))}));else if(c)for(var E=0;E<d;E++)O.push(r.createElement(hy,{key:E,useThemePlaceholder:h}));var _=Ho()("AddonsCard",i,b&&"AddonsCard--".concat(b));return r.createElement(xy,Object.assign({},w,{className:_}),o,O.length?r.createElement("ul",{className:"AddonsCard-list"},O):null)}}])&&Iy(t.prototype,n),o&&Iy(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);function Ly(e){return(Ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function My(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fy(e,t){return(Fy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Uy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hy(e);if(t){var o=Hy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return By(this,n)}}function By(e,t){if(t&&("object"===Ly(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hy(e){return(Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ny.defaultProps={editing:!1,isHomepageShelf:!1,loading:!1,placeholderCount:25,showPromotedBadge:!0,useThemePlaceholder:!1};var qy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fy(e,t)}(a,e);var t,n,o,i=Uy(a);function a(){return Dy(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.addon,n=e.recommendations,r=e.tracking;r.setDimension({dimension:"dimension4",value:"TAAR_COHORT_INCLUDED"}),r.setDimension({dimension:"dimension5",value:"TAAR-LITE-AB"}),t&&!n&&this.dispatchFetchRecommendations(t.guid)}},{key:"componentDidUpdate",value:function(e){var t=e.addon,n=e.recommendations,r=this.props,o=r.addon,i=r.recommendations,a=r.tracking,u=r.errorHandler;if(o&&(!t||t&&t.guid!==o.guid)&&this.dispatchFetchRecommendations(o.guid),i&&n!==i){var c=i.fallbackReason,s=i.loading,l=i.outcome;if(s||u.hasError())return;ce()(o,"newAddon is required"),ce()(l,"outcome is required");var f=l;c&&(f="".concat(f,"-").concat(c)),a.sendEvent({action:f,category:"AMO Addon / Recommendations Shown",label:o.guid})}}},{key:"dispatchFetchRecommendations",value:function(e){this.props.dispatch(function(e){var t=e.errorHandlerId,n=e.guid,r=e.recommended,o=void 0===r||r;return ce()(t,"errorHandlerId is required"),ce()(n,"guid is required"),{type:zl,payload:{errorHandlerId:t,guid:n,recommended:o}}}({errorHandlerId:this.props.errorHandler.id,guid:e}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.i18n,o=e.recommendations,i=e.errorHandler;if(!o)return L.Z.debug("No recommendations, hiding the AddonRecommendations component."),null;if(i.hasError())return L.Z.debug("Error in fetching recommendations, hiding the AddonRecommendations component."),null;var a=o.addons,u=o.loading,c=o.outcome,s=Ho()("AddonRecommendations",t),l=r.createElement(Zp,{width:100});return u||(l="recommended"===c?n.gettext("Other users with this extension also installed"):n.gettext("Other popular extensions")),r.createElement(Ny,{addonInstallSource:c||"",addons:a,className:s,header:l,loading:u,placeholderCount:4,showMetadata:!0,showSummary:!1,type:"horizontal"})}}])&&My(t.prototype,n),o&&My(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);qy.defaultProps={tracking:pr};const zy=(0,Mo.qC)((0,g.connect)((function(e,t){var n=t.addon;return{recommendations:n?function(e){var t=e.guid,n=e.state;return ce()(t,"guid is required"),ce()(n,"state is required"),n.byGuid[t]||null}({guid:n.guid,state:e.recommendations}):null}})),Eu(),ms({id:"AddonRecommendations"}))(qy);const Gy=(0,Mo.qC)(Eu(),(0,g.connect)((function(e){return{isRTL:J(e.api.lang)}})))((function(e){var t=e.addon,n=e.as,o=void 0===n?"h1":n,i=e.i18n,a=e.isRTL,u=e.linkToAddon,c=void 0!==u&&u,s=e.queryParamsForAttribution,l=void 0===s?{}:s,f=[];if(t&&t.authors){var p=t.authors,d=i.gettext(","),h=a?" ".concat(d):"".concat(d," ");p.forEach((function(e,t){f.push(e.url?r.createElement(wc,{key:e.id,to:"/user/".concat(e.id,"/")},e.name):e.name),t+1<p.length&&f.push(h)}))}return r.createElement(o,{className:"AddonTitle"},t?r.createElement(r.Fragment,null,c?r.createElement(wc,{to:Ut(ln(t.slug),l)},t.name):t.name,f.length>0&&r.createElement("span",{className:"AddonTitle-author"}," ",a?r.createElement(r.Fragment,null,f," ",i.gettext("by")):r.createElement(r.Fragment,null,i.gettext("by")," ",f))):r.createElement(Zp,{width:80}))}));a(15661);var Wy=a(12569),Vy=a.n(Wy);function Yy(e){return(Yy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zy(Object(n),!0).forEach((function(t){Ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ky(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jy(e,t){return(Jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function em(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nm(e);if(t){var o=nm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tm(this,n)}}function tm(e,t){if(t&&("object"===Yy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function nm(e){return(nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jy(e,t)}(a,e);var t,n,o,i=em(a);function a(){return Qy(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.currentPage,o=e.page,i=e.pageCount,a=e.pageParam,u=e.pathname,c=e.queryParams,s=e.text;ce()(void 0!==n,"The currentPage property cannot be undefined"),ce()(void 0!==u,"The pathname property cannot be undefined"),ce()(void 0!==o,"The page property cannot be undefined"),ce()(void 0!==i,"The pageCount property cannot be undefined");var l=null;if(o+1===n?l="prev":o-1===n&&(l="next"),n===o||o<1||o>i){var f=Ho()("Paginate-item",t,{"Paginate-item--current-page":n===o});return r.createElement(Dc,{buttonType:"cancel",className:f,disabled:!0,key:o},s||o)}var p=ae.parse(u,!0);return r.createElement(Dc,{buttonType:"cancel",className:Ho()("Paginate-item",t),rel:l,to:{pathname:p.pathname,query:$y($y($y({},p.query),c),{},Ky({},a,o))}},s||o)}}])&&Xy(t.prototype,n),o&&Xy(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);function om(e){return(om="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function im(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function am(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function um(e,t){return(um=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lm(e);if(t){var o=lm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sm(this,n)}}function sm(e,t){if(t&&("object"===om(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function lm(e){return(lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fm(e){for(var t=e.start,n=e.end,r=[],o=t;o<=n;o++)r.push(o);return r}rm.propTypes={className:w().string,currentPage:w().number.isRequired,page:w().number.isRequired,pageCount:w().number.isRequired,pageParam:w().string,pathname:w().string.isRequired,queryParams:w().object,text:w().string},rm.defaultProps={pageParam:"page"};var pm=function(e){var t=e.count,n=e.perPage;return ce()("number"==typeof n,"perPage is required"),ce()(n>0,"A perPage value of ".concat(n," is not allowed")),Math.ceil(t/n)},dm=function(e){var t=parseInt(e,10);return Number.isNaN(t)||t<1?1:t},hm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&um(e,t)}(a,e);var t,n,o,i=cm(a);function a(){return im(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.LinkComponent,n=e.count,o=e.currentPage,i=e.i18n,a=e.pageParam,u=e.pathname,c=e.perPage,s=e.queryParams,l=e.showPages,f=pm({count:n,perPage:c}),p=dm(o);if(ce()(void 0!==n,"The count property cannot be undefined"),ce()(void 0!==u,"The pathname property cannot be undefined"),1===f)return null;var d={LinkComponent:t,currentPage:p,pageCount:f,pathname:u,queryParams:s};return r.createElement("div",{className:"Paginate"},r.createElement("div",{className:"Paginate-links"},r.createElement(rm,Object.assign({},d,{className:"Paginate-item--previous",page:p-1,pageParam:a,text:i.gettext("Previous")})),function(e){var t=e.currentPage,n=e.pageCount,r=e.showPages;if(!r)return[];var o=dm(t),i=Math.floor(r/2),a=Math.max(1,o-i),u=Math.min(n,o+i);return fm(n<=r?{start:1,end:n}:u-o<i?{start:u-r+1,end:u}:o-a<i?{start:a,end:a+r-1}:{start:a,end:u})}({currentPage:o,pageCount:f,showPages:l}).map((function(e){return r.createElement(rm,Object.assign({},d,{key:"page-".concat(e),page:e,pageParam:a}))})),r.createElement(rm,Object.assign({},d,{className:"Paginate-item--next",page:p+1,pageParam:a,text:i.gettext("Next")}))),r.createElement("div",{className:"Paginate-page-number"},i.sprintf(i.gettext("Page %(thisPage)s of %(totalPages)s"),{thisPage:p,totalPages:pm({count:n,perPage:c})})))}}])&&am(t.prototype,n),o&&am(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);hm.defaultProps={pageParam:"page",showPages:7};const ym=(0,Mo.qC)(Eu())(hm);function mm(e){return(mm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wm(e,t){return(wm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Om(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_m(e);if(t){var o=_m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Em(this,n)}}function Em(e,t){if(t&&("object"===mm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _m(e){return(_m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wm(e,t)}(a,e);var t,n,o,i=Om(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=e.addonType,r=e.authorIds,o=e.forAddonSlug,u=e.location,c=e.pageParam,s=e.paginate;return r?(t.dispatchFetchAddonsByAuthors({addonType:n,authorIds:r,forAddonSlug:o,page:t.getCurrentPage({location:u,paginate:s,pageParam:c})}),t):Em(t)}return t=a,(n=[{key:"componentDidUpdate",value:function(e){var t=e.addonType,n=e.authorIds,r=e.forAddonSlug,o=e.location,i=this.props,a=i.addonType,u=i.authorIds,c=i.forAddonSlug,s=i.location,l=i.pageParam,f=i.paginate;if(u){var p=!!f&&o.query[l]!==s.query[l];t===a&&r===c&&Vy()(n,u)&&!p||this.dispatchFetchAddonsByAuthors({addonType:a,authorIds:u,forAddonSlug:c,page:this.getCurrentPage({location:s,paginate:f,pageParam:l})})}}},{key:"getCurrentPage",value:function(e){var t=e.location,n=e.paginate,r=e.pageParam;if(n){var o=parseInt(t.query[r],10);return Number.isNaN(o)||o<1?"1":o.toString()}}},{key:"dispatchFetchAddonsByAuthors",value:function(e){var t=e.addonType,n=e.authorIds,r=e.forAddonSlug,o=e.page,i=this.props,a=i.errorHandler,u=i.numberOfAddons,c={page:void 0,sort:void 0};i.paginate&&(ce()(o,"page is required when paginate is `true`."),c.page=o,c.sort=D.Nu),ce()(a,"errorHandler is required"),this.props.dispatch(function(e){var t=e.addonType,n=e.authorIds,r=e.errorHandlerId,o=e.forAddonSlug,i=e.page,a=e.pageSize,u=e.sort;return ce()(r,"An errorHandlerId is required"),ce()(n,"authorIds are required."),ce()(Array.isArray(n),"The authorIds parameter must be an array."),ce()(a,"pageSize is required."),{type:dl,payload:{addonType:t,authorIds:n,errorHandlerId:r,forAddonSlug:o,page:i,pageSize:a,sort:u}}}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vm(Object(n),!0).forEach((function(t){gm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({addonType:t,authorIds:n,errorHandlerId:a.id,forAddonSlug:r,page:o,pageSize:String(u)},c)))}},{key:"render",value:function(){var e=this.props,t=e.addonType,n=e.addons,o=e.authorDisplayName,i=e.authorIds,a=e.className,u=e.errorHandler,c=e.i18n,s=e.loading,l=e.numberOfAddons,f=e.paginate,p=e.showMore,d=e.showSummary,h=e.type;if(ce()(u,"errorHandler is required"),u.hasError())return u.renderError();var y=!0===s||null===s;if(!(y||n&&n.length))return null;var m=r.createElement(Zp,null);if(i)switch(t){case D.jV:m=c.ngettext(c.sprintf(c.gettext("More dictionaries by %(author)s"),{author:o}),c.gettext("More dictionaries by these translators"),i.length);break;case D.Gz:m=p?c.ngettext(c.sprintf(c.gettext("More extensions by %(author)s"),{author:o}),c.gettext("More extensions by these developers"),i.length):c.ngettext(c.sprintf(c.gettext("Extensions by %(author)s"),{author:o}),c.gettext("Extensions by these developers"),i.length);break;case D.d$:m=c.ngettext(c.sprintf(c.gettext("More language packs by %(author)s"),{author:o}),c.gettext("More language packs by these translators"),i.length);break;case D.Yd:m=p?c.ngettext(c.sprintf(c.gettext("More themes by %(author)s"),{author:o}),c.gettext("More themes by these artists"),i.length):c.ngettext(c.sprintf(c.gettext("Themes by %(author)s"),{author:o}),c.gettext("Themes by these artists"),i.length);break;default:m=c.ngettext(c.sprintf(c.gettext("More add-ons by %(author)s"),{author:o}),c.gettext("More add-ons by these developers"),i.length)}var v=Ho()("AddonsByAuthorsCard",a,{"AddonsByAuthorsCard--theme":D.Yd===t}),g=null;if(f){var b=this.props,w=b.count,O=b.location,E=b.pageParam,_=b.pathname;ce()(_,"pathname is required when paginate is `true`.");var x=this.getCurrentPage({location:O,paginate:f,pageParam:E});g=w&&w>l?r.createElement(ym,{LinkComponent:wc,count:w,currentPage:x,pageParam:E,pathname:_,perPage:l,queryParams:O.query}):null}return r.createElement(Ny,{addons:n,className:v,footer:g,header:m,loading:y,placeholderCount:l,showMetadata:!0,showSummary:d,type:h})}}])&&bm(t.prototype,n),o&&bm(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);xm.defaultProps={pageParam:"page",paginate:!1,showMore:!0,showSummary:!1,type:"horizontal"};const Sm=(0,Mo.qC)(No,(0,g.connect)((function(e,t){var n=t.addonType,r=t.authorIds,o=t.forAddonSlug,i=t.numberOfAddons,a=null,u=null;return r&&(a=(a=vl(e.addonsByAuthors,r,n,o))?a.slice(0,i):a,u=function(e,t,n){var r=ml(t,n);return void 0===e.loadingFor[r]?null:e.loadingFor[r]}(e.addonsByAuthors,r,n)),{addons:a,count:r?function(e,t,n){return e.countFor[ml(t,n)]||null}(e.addonsByAuthors,r,n):0,loading:u}})),Eu(),ms({extractId:function(e){return e.addonType||""},name:"AddonsByAuthorsCard"}))(xm);const jm=(0,Mo.qC)(Eu())((function(e){var t=e._tracking,n=void 0===t?pr:t,o=e.addon,i=e.i18n;if(!o||o&&!o.contributions_url)return null;var a,u,c=o.authors?o.authors.length:1;switch(o.type){case D.Gz:a=i.ngettext(i.gettext("Support this developer"),i.gettext("Support these developers"),c),u=i.ngettext(i.gettext("The developer of this extension asks that you help support\n its continued development by making a small contribution."),i.gettext("The developers of this extension ask that you help\n support its continued development by making a small contribution."),c);break;case D.Yd:a=i.ngettext(i.gettext("Support this artist"),i.gettext("Support these artists"),c),u=i.ngettext(i.gettext("The artist of this theme asks that you help support\n its continued creation by making a small contribution."),i.gettext("The artists of this theme ask that you help support\n its continued creation by making a small contribution."),c);break;default:a=i.ngettext(i.gettext("Support this author"),i.gettext("Support these authors"),c),u=i.ngettext(i.gettext("The author of this add-on asks that you help support\n its continued work by making a small contribution."),i.gettext("The authors of this add-on ask that you help support\n its continued work by making a small contribution."),c)}return r.createElement(js,{className:"ContributeCard",header:a},r.createElement("p",{className:"ContributeCard-content"},u),r.createElement("p",null,r.createElement(Dc,{buttonType:"action",className:"ContributeCard-button",href:o.contributions_url&&o.contributions_url.outgoing||"",title:o.contributions_url&&o.contributions_url.url,onClick:function(){n.sendEvent({action:"contribute-click",category:"AMO Addon / Contribute Button Clicks",label:o.guid})},target:"_blank",puffy:!0},r.createElement(ac,{name:"heart"}),i.gettext("Contribute now"))))}));var Pm=a(5573),km=a(85854);a(19115);const Im=r.createContext(null);function Tm(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function Rm(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Cm(e,t,n){var o=Tm(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var u={};for(var c in t){if(o[c])for(r=0;r<o[c].length;r++){var s=o[c][r];u[o[c][r]]=n(s)}u[c]=n(c)}for(r=0;r<i.length;r++)u[i[r]]=n(i[r]);return u}(t,o);return Object.keys(i).forEach((function(a){var u=i[a];if((0,r.isValidElement)(u)){var c=a in t,s=a in o,l=t[a],f=(0,r.isValidElement)(l)&&!l.props.in;!s||c&&!f?s||!c||f?s&&c&&(0,r.isValidElement)(l)&&(i[a]=(0,r.cloneElement)(u,{onExited:n.bind(null,u),in:l.props.in,exit:Rm(u,"exit",e),enter:Rm(u,"enter",e)})):i[a]=(0,r.cloneElement)(u,{in:!1}):i[a]=(0,r.cloneElement)(u,{onExited:n.bind(null,u),in:!0,exit:Rm(u,"exit",e),enter:Rm(u,"enter",e)})}})),i}var Am=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Nm=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,Pm.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,km.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,o=a,Tm(n.children,(function(e){return(0,r.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:Rm(e,"appear",n),enter:Rm(e,"enter",n),exit:Rm(e,"exit",n)})}))):Cm(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=Tm(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,mh.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,vh.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=Am(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(Im.Provider,{value:i},a):r.createElement(Im.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);Nm.propTypes={},Nm.defaultProps={component:"div",childFactory:function(e){return e}};const Lm=Nm;function Dm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Mm=!1;var Fm="unmounted",Um="exited",Bm="entering",Hm="entered",qm="exiting",zm=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Um,r.appearStatus=Bm):o=Hm:o=t.unmountOnExit||t.mountOnEnter?Fm:Um,r.state={status:o},r.nextCallback=null,r}(0,km.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Fm?{status:Um}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Bm&&n!==Hm&&(t=Bm):n!==Bm&&n!==Hm||(t=qm)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Bm?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Um&&this.setState({status:Fm})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[o.findDOMNode(this),r],a=i[0],u=i[1],c=this.getTimeouts(),s=r?c.appear:c.enter;!e&&!n||Mm?this.safeSetState({status:Hm},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,u),this.safeSetState({status:Bm},(function(){t.props.onEntering(a,u),t.onTransitionEnd(s,(function(){t.safeSetState({status:Hm},(function(){t.props.onEntered(a,u)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!Mm?(this.props.onExit(r),this.safeSetState({status:qm},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Um},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Um},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],u=i[1];this.props.addEndListener(a,u)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Fm)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,vh.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(Im.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Gm(){}zm.contextType=Im,zm.propTypes={},zm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gm,onEntering:Gm,onEntered:Gm,onExit:Gm,onExiting:Gm,onExited:Gm},zm.UNMOUNTED=Fm,zm.EXITED=Um,zm.ENTERING=Bm,zm.ENTERED=Hm,zm.EXITING=qm;const Wm=zm;var Vm=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Dm(n.className,r):n.setAttribute("class",Dm(n.className&&n.className.baseVal||"",r)));var n,r}))},Ym=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,km.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&Vm(e,r),o&&Vm(e,o),i&&Vm(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,vh.Z)(e,["classNames"]));return r.createElement(Wm,(0,mh.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(r.Component);Ym.defaultProps={classNames:""},Ym.propTypes={};const Zm=Ym;function $m(e){return($m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Km(){Km=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==$m(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function Qm(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function Xm(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Qm(i,r,o,a,u,"next",e)}function u(e){Qm(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Jm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ev(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tv(e,t){return(tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ov(e);if(t){var o=ov(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rv(this,n)}}function rv(e,t){if(t&&("object"===$m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ov(e){return(ov=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var iv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tv(e,t)}(a,e);var t,n,o,i=nv(a);function a(){var e;Jm(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).installExtension=function(){var t=Xm(Km().mark((function t(n){var r;return Km().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.props.install,n.preventDefault(),n.stopPropagation(),t.next=5,r();case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.uninstallAddon=function(t){var n=e.props,r=n.addon,o=n.uninstall,i=r.guid,a=r.name,u=r.type;return t.preventDefault(),t.stopPropagation(),o({guid:i,name:a,type:u}),!1},e.enableAddon=function(t){var n=e.props.enable;return t.preventDefault(),t.stopPropagation(),n(),!1},e}return t=a,(n=[{key:"showLoadingAnimation",value:function(){var e=this.props.status;return[D.iq,D.UZ,D.g,D.ZP,D.Mg].includes(e)}},{key:"getButtonText",value:function(){var e=this.props,t=e.addon,n=e.i18n,r=e.status,o=e.defaultButtonText;switch(r){case D.rr:return n.gettext("Enable");case D.Hi:case D.e_:return n.gettext("Remove");case D.g:return n.gettext("Enabling");case D.iq:return n.gettext("Disabling");case D.UZ:return n.gettext("Downloading");case D.ZP:return n.gettext("Installing");case D.Mg:return n.gettext("Uninstalling");case D.zK:default:return o||(D.Yd===t.type?n.gettext("Install Theme"):n.gettext("Add to Firefox"))}}},{key:"render",value:function(){var e=this.props,t=e.canUninstall,n=e.className,o=e.currentVersion,i=e.disabled,a=e.hasAddonManager,u=e.status,c=o&&o.file?o.file.url:void 0,s=!0===i||!c||a&&u===D.lz;ce()(void 0!==this.props.puffy,"puffy prop is required");var l={buttonType:"action",className:"AMInstallButton-button",disabled:s,href:c,onClick:a?function(e){return e.preventDefault(),e.stopPropagation(),!1}:null,puffy:this.props.puffy};s||([D.Hi,D.e_].includes(u)?(l.buttonType="neutral",l.className=Ho()(l.className,"AMInstallButton-button--uninstall"),!1===t?l.disabled=!0:l.onClick=this.uninstallAddon):u===D.rr?(l.buttonType="neutral",l.onClick=this.enableAddon,l.className=Ho()(l.className,"AMInstallButton-button--enable")):a&&(l.onClick=this.installExtension));var f={classNames:"AMInstallButton-transition",timeout:150},p=this.getButtonText();return r.createElement(Lm,{className:Ho()("AMInstallButton",n)},this.showLoadingAnimation()?r.createElement(Zm,Object.assign({key:"loading"},f),r.createElement("div",{className:Ho()("AMInstallButton-loading-button",{"AMInstallButton-loading-button--puffy":this.props.puffy}),title:p},r.createElement("div",{className:"AMInstallButton-loader"},r.createElement("div",{className:"AMInstallButton-loader-container"},r.createElement("div",{className:"AMInstallButton-loader-ball"})),r.createElement("span",{className:"visually-hidden"},p)))):r.createElement(Zm,Object.assign({key:"button"},f),r.createElement(Dc,l,p)))}}])&&ev(t.prototype,n),o&&ev(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);iv.defaultProps={_config:t.Z,_log:L.Z,_window:"undefined"!=typeof window?window:{},puffy:!0};const av=(0,Mo.qC)(Eu())(iv);var uv=a(39735);function cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lv="AMO Download Firefox",fv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addonId,n=D.Bg;return t&&(n="".concat(n,"-").concat(t)),n},pv=function(e){var t=e._encode,n=void 0===t?uv.cv:t,r=e._getDownloadCampaign,o=void 0===r?fv:r,i=e.addon,a=e.overrideQueryParams,u=void 0===a?{}:a;return"".concat(D.rZ).concat(fn(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(n),!0).forEach((function(t){sv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({utm_campaign:o({addonId:i&&i.id}),utm_content:i&&i.guid?"rta:".concat(n(i.guid)):"",s:"direct"},u)))};const dv=(0,Mo.qC)((0,g.connect)((function(e){return{clientApp:e.api.clientApp,userAgentInfo:e.api.userAgentInfo}})),Eu())((function(e){var t=e._encode,n=void 0===t?uv.cv:t,o=e._tracking,i=void 0===o?pr:o,a=e.addon,u=e.className,c=e.clientApp,s=e.forIncompatibleAddon,l=e.i18n,f=e.overrideQueryParams,p=void 0===f?{}:f,d=e.userAgentInfo;ce()(!Pf({userAgentInfo:d})||s,"The download button should not be rendered on Firefox unless the add-on\n is incompatible.");var h=c===D.So,y=a.type===D.Yd?l.gettext("Download Firefox and get the theme"):l.gettext("Download Firefox and get the extension");s&&(y=a.type===D.Yd?l.gettext("Download the new Firefox and get the theme"):l.gettext("Download the new Firefox and get the extension"));var m=h?y:l.gettext("Download Firefox"),v=a.type===D.Yd?l.gettext("You'll need Firefox to use this theme"):l.gettext("You'll need Firefox to use this extension");s&&(v=a.type===D.Yd?l.gettext("You need an updated version of Firefox for this theme"):l.gettext("You need an updated version of Firefox for this extension"));var g=r.createElement(Dc,{buttonType:"action",className:"GetFirefoxButton-button",href:pv({_encode:n,addon:a,overrideQueryParams:p}),onClick:function(){i.sendEvent({action:"download-firefox-click",category:lv,label:a.guid})},puffy:!0},m);return r.createElement("div",{className:Ho()("GetFirefoxButton",u)},r.createElement("div",{className:"GetFirefoxButton-callout"},r.createElement("div",{className:"GetFirefoxButton-callout-icon"}),r.createElement("div",{className:"GetFirefoxButton-callout-text"},v)),g)}));function hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hv(Object(n),!0).forEach((function(t){mv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vv(e){return{type:D.tX,payload:e}}var gv=function(e){var t=e.guid,n=e.error;return ce()(t,"guid is required"),{type:D.Rq,payload:{guid:t,error:n}}};var bv=a(77565);function wv(e){return(wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ov,Ev=["WrappedComponent","_addonManager"];function _v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xv(Object(n),!0).forEach((function(t){jv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Iv(e,t){return(Iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cv(e);if(t){var o=Cv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rv(this,n)}}function Rv(e,t){if(t&&("object"===wv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Cv(e){return(Cv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Av=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iv(e,t)}(u,t);var n,o,i,a=Tv(u);function u(){return Pv(this,u),a.apply(this,arguments)}return n=u,(o=[{key:"componentDidMount",value:function(){this.setCurrentStatus()}},{key:"componentDidUpdate",value:function(e){var t=e.addon?e.addon.guid:null,n=this.props.addon?this.props.addon.guid:null;n&&n!==t&&(this.props._log.info("Updating add-on status"),this.setCurrentStatus())}},{key:"setCurrentStatus",value:function(){var t=this.props,n=t._addonManager,r=t._log,o=t.addon,i=t.currentVersion,a=t.dispatch;if(!n.hasAddonManager())return r.info("No addon manager, cannot set add-on status"),Promise.resolve();if(!o)return r.debug("no addon, aborting setCurrentStatus()"),Promise.resolve();if(!i)return r.debug("no currentVersion, aborting setCurrentStatus()"),Promise.resolve();var u=o.guid,c=o.type,s=i.file;if(!s)return r.debug("no file, aborting setCurrentStatus()"),Promise.resolve();var l={guid:u,url:s.url};return r.info("Setting add-on status"),n.getAddon(u).then((function(e){var t=n.getAddonStatus({addon:e,type:c});a(vv(Sv(Sv({},l),{},{status:t,canUninstall:e.canUninstall})))}),(function(t){var n,o;r.info((0,e.f9)(Ov||(n=['Add-on "','" not found so setting status to\n UNINSTALLED; exact error: ',""],o||(o=n.slice(0)),Ov=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(o)}}))),u,t)),a(vv(Sv(Sv({},l),{},{status:D.un})))})).catch((function(e){r.error("Caught error from addonManager: ".concat(e)),a(vv({guid:u,status:D.Kj,error:D.F6}))}))}},{key:"enable",value:function(){var e=this.props,t=e._addonManager,n=e._log,r=e._tracking,o=e.dispatch,i=e.addon;ce()(i,"need an addon to call enable()");var a=i.guid,u=i.type;return t.enable(a).then((function(){r.sendEvent({action:lr(u),category:fr(u,D.H0),label:a})})).catch((function(e){e&&e.message===D.U4?n.info("addon.setEnabled not available. Unable to enable ".concat(a)):(n.error("Error while trying to enable ".concat(a,": %o"),e),o(vv({guid:a,status:D.Kj,error:D.F6})))}))}},{key:"install",value:function(){var e=this.props,t=e._addonManager,n=e._log,r=e._tracking,o=e.addon,i=e.currentVersion,a=e.dispatch;ce()(o,"need an addon to call install()"),ce()(i,"need a currentVersion to call install()");var u=o.guid,c=o.name,s=o.type,l=i.file;return l?new Promise((function(e){a({type:D.hi,payload:{guid:u}}),r.sendEvent({action:lr(s),category:fr(s,D.gQ),label:u}),e(l.url)})).then((function(e){var n=zs({addon:o,installURL:e,version:i});return t.install(e||"",function(e){var t=e._tracking,n=e.dispatch,r=e.guid,o=e.type;return function(e,i){if("STATE_DOWNLOADING"===e.state){var a=parseInt(100*e.progress/e.maxProgress,10);n({type:D.HR,payload:{guid:r,downloadProgress:a}})}else"onDownloadEnded"===i.type?n(vv({guid:r,status:D.ZP})):"onDownloadFailed"===i.type?i.target&&i.target.error===D._y?n(gv({guid:r,error:D._y})):(n(gv({guid:r,error:D.Vg})),t.sendEvent({action:lr(o),category:fr(o,D.nl),label:r})):"onInstallCancelled"===i.type?(n({type:D.zl,payload:{guid:r}}),t.sendEvent({action:lr(o),category:fr(o,D.lm),label:r})):"onInstallFailed"===i.type&&n(gv({guid:r,error:D.DE}))}}({_tracking:r,dispatch:a,guid:u,name:c,type:s}),{hash:n})})).then((function(){r.sendEvent({action:lr(s),category:fr(s,D.zi),label:u})})).catch((function(e){n.error("Install error: ".concat(e)),a(gv({guid:u,error:D.pl}))})):(n.debug("no file found, aborting install()."),Promise.resolve())}},{key:"uninstall",value:function(e){var t=e.guid,n=e.type,r=this.props,o=r._addonManager,i=r._log,a=r._tracking,u=r.dispatch;u(vv({guid:t,status:D.Mg}));var c=lr(n);return o.uninstall(t).then((function(){a.sendEvent({action:c,category:fr(n,D.VN),label:t})})).catch((function(e){i.error("Uninstall error: ".concat(e)),u(gv({guid:t,error:D.hY}))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.WrappedComponent,o=t._addonManager,i=_v(t,Ev),a={enable:function(){return e.enable.apply(e,arguments)},hasAddonManager:o.hasAddonManager(),install:function(){return e.install.apply(e,arguments)},setCurrentStatus:function(){return e.setCurrentStatus.apply(e,arguments)},uninstall:function(){return e.uninstall.apply(e,arguments)}};return r.createElement(n,Object.assign({},a,i))}}])&&kv(n.prototype,o),i&&kv(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(r.Component);Av.defaultProps={_addonManager:bv,_log:L.Z,_tracking:pr};const Nv=(0,Mo.qC)(No,(function(e){Av.displayName="WithInstallHelpers(".concat(Rn(e),")");return(0,g.connect)((function(t,n){var r=n.addon;ce()(void 0!==r,"addon is required");var o=n.version;return o||(o=r&&r.currentVersionId?mf({id:r.currentVersionId,state:t.versions}):null),{WrappedComponent:e,currentVersion:o}}))(Av)}),(0,g.connect)((function(e,t){var n=t.addon,r=t.version,o=n&&e.installations[n.guid]||{},i=r||null;return n&&n.currentVersionId&&!i&&(i=mf({id:n.currentVersionId,state:e.versions})),{canUninstall:o.canUninstall,clientApp:e.api.clientApp,currentVersion:i,installStatus:o.status||D.lz,userAgentInfo:e.api.userAgentInfo}})),Eu())((function(e){var t=e._getClientCompatibility,n=void 0===t?Cf:t,o=e.addon,i=e.canUninstall,a=e.className,u=e.clientApp,c=e.currentVersion,s=e.defaultButtonText,l=e.enable,f=e.hasAddonManager,p=e.i18n,d=e.install,h=e.installStatus,y=e.puffy,m=e.setCurrentStatus,v=e.showLinkInsteadOfButton,g=e.uninstall,b=e.userAgentInfo,w=Pf({userAgentInfo:b}),O=!1,E=w,_=!w,x=!1;if(o&&w){var S=n({addon:o,currentVersion:c,clientApp:u,userAgentInfo:b});(O=S.compatible)||[D.op,D.Px,D.T3,D.CK,D.YE].includes(S.reason)||(x=!0,E=!1,_=!0)}var j=c&&c.file?c.file.url:void 0,P=!O&&j;return o&&r.createElement("div",{className:"InstallButtonWrapper"},!v&&r.createElement(r.Fragment,null,E?r.createElement(av,{addon:o,canUninstall:i,className:Ho()(a?"AMInstallButton--".concat(a):"",{"AMInstallButton--noDownloadLink":!P}),currentVersion:c,defaultButtonText:s,disabled:!O,enable:l,hasAddonManager:f,install:d,puffy:y,setCurrentStatus:m,status:h,uninstall:g}):null,_?r.createElement(dv,{addon:o,className:a?"GetFirefoxButton--".concat(a):"",forIncompatibleAddon:x}):null),P||v?r.createElement("div",{className:"InstallButtonWrapper-download"},r.createElement("a",{className:"InstallButtonWrapper-download-link",href:j},p.gettext("Download file"))):null)}));function Lv(e){return(Lv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fv(e,t){return(Fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Uv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hv(e);if(t){var o=Hv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bv(this,n)}}function Bv(e,t){if(t&&("object"===Lv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hv(e){return(Hv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qv=hn({utm_content:"install-warning"}),zv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fv(e,t)}(a,e);var t,n,o,i=Uv(a);function a(){var e;Dv(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).couldShowWarning=function(){var t=e.props,n=t._correctedLocationForPlatform,r=t._getPromotedCategory,o=t.addon,i=t.clientApp,a=t.lang,u=t.location,c=t.userAgentInfo,s=n({clientApp:i,lang:a,location:u,userAgentInfo:c}),l=r({addon:o,clientApp:i});return!s&&Pf({userAgentInfo:c})&&i===D.So&&o.type===D.Gz&&(!l||!D.W8.includes(l))},e}return t=a,(n=[{key:"render",value:function(){var e=this.props.i18n;return this.couldShowWarning()?r.createElement(Jc,{actionHref:qv,actionTarget:"_blank",actionText:e.gettext("Learn more"),className:"InstallWarning",type:Zc},e.gettext("This add-on is not actively monitored for security by Mozilla. Make sure you trust it before installing.")):null}}])&&Mv(t.prototype,n),o&&Mv(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);zv.defaultProps={_correctedLocationForPlatform:Nf,_getPromotedCategory:Gs};const Gv=(0,Mo.qC)(No,(0,g.connect)((function(e){return{clientApp:e.api.clientApp,lang:e.api.lang,userAgentInfo:e.api.userAgentInfo}})),Eu())(zv);function Wv(e){return(Wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zv(e,t){return(Zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qv(e);if(t){var o=Qv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kv(this,n)}}function Kv(e,t){if(t&&("object"===Wv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Qv(e){return(Qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zv(e,t)}(a,e);var t,n,o,i=$v(a);function a(){return Vv(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e,t=this.props,n=t.i18n,o=t.siteIsReadOnly,i=t.siteNotice,a=t.currentUserWasLoggedOut,u=[];return i&&u.push(r.createElement(Jc,{className:"SiteNotices",id:"amo-site-notice",type:"warning",key:"amo-site-notice"},r.createElement("span",{dangerouslySetInnerHTML:(e=i,vn(gn(e),["a","b","br","em","i","strong"]))}))),o&&u.push(r.createElement(Jc,{className:"SiteNotices",id:"amo-site-read-only",type:"warning",key:"amo-site-read-only"},n.gettext("Some features are temporarily disabled while we\n perform website maintenance. We'll be back to full capacity\n shortly."))),a&&u.push(r.createElement(Jc,{className:"SiteNotices",id:"user-was-logged-out",type:"warning",key:"user-was-logged-out"},n.gettext("You have been logged out."))),u}}])&&Yv(t.prototype,n),o&&Yv(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const Jv=(0,Mo.qC)((0,g.connect)((function(e){return{siteIsReadOnly:e.site.readOnly,siteNotice:e.site.notice,currentUserWasLoggedOut:e.users.currentUserWasLoggedOut}})),Eu())(Xv);const eg=function(e){var t=e.className;return r.createElement("div",{className:Ho()("AppBanner",t)},r.createElement(Jv,null))};function tg(e){return(tg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ng(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function og(e,t){return(og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ig(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ug(e);if(t){var o=ug(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ag(this,n)}}function ag(e,t){if(t&&("object"===tg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ug(e){return(ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&og(e,t)}(a,e);var t,n,o,i=ig(a);function a(){return ng(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.code,i=e.header;return ce()(t,"children is required"),ce()(i,"header is required"),ce()([400,401,404,451,500].includes(o),"a valid error code is required"),r.createElement(Do(),{code:o},r.createElement(js,{className:Ho()("Errors",n,{NotAuthorized:401===o,NotFound:404===o,UnavailableForLegalReasons:451===o,ServerError:500===o}),header:i},t))}}])&&rg(t.prototype,n),o&&rg(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);function sg(e){return(sg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pg(e,t){return(pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function dg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yg(e);if(t){var o=yg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hg(this,n)}}function hg(e,t){if(t&&("object"===sg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function yg(e){return(yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pg(e,t)}(a,e);var t,n,o,i=dg(a);function a(){return lg(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){(0,this.props.dispatch)(Ze())}},{key:"render",value:function(){var e=this.props,t=e._window,n=e.i18n,o=ie({text:n.gettext("\n Login authentication has expired. %(startLink)sReload the page%(endLink)s\n to continue without authentication, or login again using the Log In\n link at the top of the page."),replacements:[["startLink","endLink",function(e){return r.createElement(wc,{className:"ReloadPageLink",onClick:function(){return t.location.reload()},href:"#",prependClientApp:!1,prependLang:!1},e)}]]});return r.createElement(cg,{code:401,header:n.gettext("Login Expired")},r.createElement("p",null,o))}}])&&fg(t.prototype,n),o&&fg(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);mg.defaultProps={_window:"undefined"!=typeof window?window:{}};const vg=(0,Mo.qC)((0,g.connect)(),Eu())(mg);function gg(e){return(gg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Og(e,t){return(Og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Eg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xg(e);if(t){var o=xg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _g(this,n)}}function _g(e,t){if(t&&("object"===gg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xg(e){return(xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Og(e,t)}(a,e);var t,n,o,i=Eg(a);function a(){return bg(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.i18n,t=ie({text:e.gettext("Try visiting the page later, as the theme or extension may become\n available again. Alternatively, you may be able to find what you’re\n looking for in one of the available\n %(extensionStart)sextensions%(extensionEnd)s or\n %(themeStart)sthemes%(themeEnd)s, or by asking for help on our\n %(communityStart)scommunity forums%(communityEnd)s."),replacements:[["extensionStart","extensionEnd",function(e){return r.createElement(wc,{key:"link-extensions",to:"/".concat(xn(D.Gz),"/")},e)}],["themeStart","themeEnd",function(e){return r.createElement(wc,{key:"link-themes",to:"/".concat(xn(D.Yd),"/")},e)}],["communityStart","communityEnd",function(e){return r.createElement(wc,{key:"link-community",href:"https://discourse.mozilla.org/c/add-ons",prependClientApp:!1,prependLang:!1},e)}]]});return r.createElement(cg,{code:404,header:e.gettext("Oops! We can’t find that page")},r.createElement("p",null,e.gettext("If you’ve followed a link from another site for an\n extension or theme, that item is no longer available. This could\n be because:")),r.createElement("ul",null,r.createElement("li",null,e.gettext("The developer removed it. Developers commonly do\n this because they no longer support the extension or theme, or\n have replaced it.")),r.createElement("li",null,e.gettext("Mozilla removed it. This can happen when issues\n are found during the review of the extension or theme, or the\n extension or theme has been abusing the terms and conditions\n for addons.mozilla.org. The developer has the opportunity to\n resolve the issues and make the add-on available again."))),r.createElement("p",{className:"Errors-paragraph-with-links"},t))}}])&&wg(t.prototype,n),o&&wg(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const jg=(0,Mo.qC)(Eu())(Sg);function Pg(e){return(Pg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ig(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tg(e,t){return(Tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ag(e);if(t){var o=Ag(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cg(this,n)}}function Cg(e,t){if(t&&("object"===Pg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ag(e){return(Ag=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ng=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tg(e,t)}(a,e);var t,n,o,i=Rg(a);function a(){return kg(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.i18n,t=ie({text:e.gettext("You may be able to find what you’re looking for in one of the available\n %(extensionStart)sextensions%(extensionEnd)s or\n %(themeStart)sthemes%(themeEnd)s, or by asking for help on our\n %(communityStart)scommunity forums%(communityEnd)s."),replacements:[["extensionStart","extensionEnd",function(e){return r.createElement(wc,{key:"link-extensions",to:"/".concat(xn(D.Gz),"/")},e)}],["themeStart","themeEnd",function(e){return r.createElement(wc,{key:"link-themes",to:"/".concat(xn(D.Yd),"/")},e)}],["communityStart","communityEnd",function(e){return r.createElement(wc,{key:"link-community",href:"https://discourse.mozilla.org/c/add-ons",prependClientApp:!1,prependLang:!1},e)}]]});return r.createElement(cg,{code:451,header:e.gettext("That page is not available in your region")},r.createElement("p",null,e.gettext("The page you tried to access is not available in your region.")),r.createElement("p",{className:"Errors-paragraph-with-links"},t))}}])&&Ig(t.prototype,n),o&&Ig(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const Lg=(0,Mo.qC)(Eu())(Ng);function Dg(e){return(Dg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ug(e,t){return(Ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Bg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qg(e);if(t){var o=qg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hg(this,n)}}function Hg(e,t){if(t&&("object"===Dg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qg(e){return(qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ug(e,t)}(a,e);var t,n,o,i=Bg(a);function a(){var e;Mg(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onChange=function(t){t.preventDefault(),e.changeLanguage(t.target.value)},e}return t=a,(n=[{key:"changeLanguage",value:function(e){var t=this.props,n=t.currentLocale,r=t.location,o=t._window;if(n!==e){var i=function(e){var t=e.currentLocale,n=e.location,r=e.newLocale;return Ut(n.pathname.replace(new RegExp("^/".concat(t,"/")),"/".concat(r,"/")),n.query)}({currentLocale:n,location:r,newLocale:e});(o||window).location=i}}},{key:"render",value:function(){var e=this.props,t=e.currentLocale,n=e.i18n;return r.createElement("div",{className:"LanguagePicker"},r.createElement("label",{htmlFor:"lang-picker",className:"LanguagePicker-header"},n.gettext("Change language")),r.createElement("select",{className:"LanguagePicker-selector",defaultValue:t,id:"lang-picker",onChange:this.onChange},Object.keys(_e).map((function(e){return r.createElement("option",{key:e,value:e},_e[e].native)}))))}}])&&Fg(t.prototype,n),o&&Fg(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);zg.propTypes={currentLocale:w().string.isRequired,i18n:w().object.isRequired,location:w().object.isRequired,_window:w().object};const Gg=(0,Mo.qC)(No,(0,g.connect)((function(e){return{currentLocale:e.api.lang}})),Eu())(zg);function Wg(e){return(Wg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zg(e,t){return(Zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qg(e);if(t){var o=Qg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kg(this,n)}}function Kg(e,t){if(t&&("object"===Wg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Qg(e){return(Qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zg(e,t)}(a,e);var t,n,o,i=$g(a);function a(){return Vg(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e._config,n=e.i18n,o=e.noLangPicker,i=n.gettext("Go to Mozilla's homepage");return r.createElement("footer",{className:"Footer"},r.createElement("div",{className:"Footer-wrapper"},r.createElement("div",{className:"Footer-mozilla-link-wrapper"},r.createElement("a",{className:"Footer-mozilla-link",href:"https://mozilla.org/",title:i},r.createElement(ac,{alt:i,className:"Footer-mozilla-logo",name:"mozilla"}))),r.createElement("section",{className:"Footer-amo-links"},r.createElement("h4",{className:"Footer-links-header"},r.createElement(wc,{href:"/"},n.gettext("Add-ons"))),r.createElement("ul",{className:"Footer-links"},r.createElement("li",null,r.createElement(wc,{to:"/about",prependClientApp:!1},n.gettext("About"))),r.createElement("li",null,r.createElement("a",{className:"Footer-blog-link",href:"/blog/"},n.gettext("Firefox Add-ons Blog"))),r.createElement("li",null,r.createElement("a",{className:"Footer-extension-workshop-link",href:"".concat(t.get("extensionWorkshopUrl"),"/").concat(fn({utm_content:"footer-link",utm_campaign:null}))},n.gettext("Extension Workshop"))),r.createElement("li",null,r.createElement(wc,{href:"/developers/",prependClientApp:!1},n.gettext("Developer Hub"))),r.createElement("li",null,r.createElement("a",{className:"Footer-developer-policies-link",href:"".concat(t.get("extensionWorkshopUrl"),"/documentation/publish/add-on-policies/").concat(fn({utm_medium:"photon-footer",utm_campaign:null}))},n.gettext("Developer Policies"))),r.createElement("li",null,r.createElement("a",{className:"Footer-community-blog-link",href:"https://blog.mozilla.com/addons".concat(fn({utm_campaign:null,utm_content:"footer-link",utm_medium:"referral"}))},n.gettext("Community Blog"))),r.createElement("li",null,r.createElement("a",{href:"https://discourse.mozilla-community.org/c/add-ons"},n.gettext("Forum"))),r.createElement("li",null,r.createElement("a",{className:"Footer-bug-report-link",href:"https://developer.mozilla.org/docs/Mozilla/Add-ons/Contact_us"},n.gettext("Report a bug"))),r.createElement("li",null,r.createElement(wc,{to:"/review_guide",prependClientApp:!1},n.gettext("Review Guide"))))),r.createElement("section",{className:"Footer-browsers-links"},r.createElement("h4",{className:"Footer-links-header"},n.gettext("Browsers")),r.createElement("ul",{className:"Footer-links"},r.createElement("li",null,r.createElement("a",{className:"Footer-desktop-link",href:"https://www.mozilla.org/firefox/new/".concat(fn({utm_content:"footer-link",utm_campaign:null}))},"Desktop")),r.createElement("li",null,r.createElement("a",{className:"Footer-mobile-link",href:"https://www.mozilla.org/firefox/mobile/".concat(fn({utm_content:"footer-link",utm_campaign:null}))},"Mobile")),r.createElement("li",null,r.createElement("a",{className:"Footer-enterprise-link",href:"https://www.mozilla.org/firefox/enterprise/".concat(fn({utm_content:"footer-link",utm_campaign:null}))},"Enterprise")))),r.createElement("section",{className:"Footer-product-links"},r.createElement("h4",{className:"Footer-links-header"},n.gettext("Products")),r.createElement("ul",{className:"Footer-links"},r.createElement("li",null,r.createElement("a",{className:"Footer-browsers-link",href:"https://www.mozilla.org/firefox/browsers/".concat(fn({utm_content:"footer-link",utm_campaign:null}))},"Browsers")),r.createElement("li",null,r.createElement("a",{className:"Footer-vpn-link",href:"https://www.mozilla.org/products/vpn/".concat(fn({utm_content:"footer-link",utm_campaign:null}),"#pricing")},"VPN")),r.createElement("li",null,r.createElement("a",{className:"Footer-relay-link",href:"https://relay.firefox.com/".concat(fn({utm_content:"footer-link",utm_campaign:null}))},"Relay")),r.createElement("li",null,r.createElement("a",{className:"Footer-monitor-link",href:"https://monitor.firefox.com/".concat(fn({utm_content:"footer-link",utm_campaign:null}))},"Monitor")),r.createElement("li",null,r.createElement("a",{className:"Footer-pocket-link",href:"https://getpocket.com".concat(fn({utm_content:"footer-link",utm_campaign:null}))},"Pocket"))),r.createElement("ul",{className:"Footer-links Footer-links-social"},r.createElement("li",{className:"Footer-link-social"},r.createElement("a",{href:"https://twitter.com/firefox"},r.createElement(ac,{name:"twitter",alt:"Twitter (@firefox)"}))),r.createElement("li",{className:"Footer-link-social"},r.createElement("a",{href:"https://www.instagram.com/firefox/"},r.createElement(ac,{name:"instagram",alt:"Instagram (Firefox)"}))),r.createElement("li",{className:"Footer-link-social"},r.createElement("a",{href:"https://www.youtube.com/firefoxchannel"},r.createElement(ac,{name:"youtube",alt:"YouTube (firefoxchannel)"}))))),r.createElement("ul",{className:"Footer-legal-links"},r.createElement("li",null,r.createElement("a",{className:"Footer-privacy-link",href:"https://www.mozilla.org/privacy/websites/"},n.gettext("Privacy"))),r.createElement("li",null,r.createElement("a",{className:"Footer-cookies-link",href:"https://www.mozilla.org/privacy/websites/"},n.gettext("Cookies"))),r.createElement("li",null,r.createElement("a",{className:"Footer-legal-link",href:"https://www.mozilla.org/about/legal/terms/mozilla/"},n.gettext("Legal")))),r.createElement("p",{className:"Footer-copyright",dangerouslySetInnerHTML:vn(n.sprintf(n.gettext("Except where otherwise %(startNotedLink)snoted%(endNotedLink)s,\n content on this site is licensed under the %(startLicenseLink)sCreative Commons\n Attribution Share-Alike License v3.0%(endLicenseLink)s or any later version."),{startNotedLink:'<a href="https://www.mozilla.org/en-US/about/legal/">',endNotedLink:"</a>",startLicenseLink:'<a href="https://creativecommons.org/licenses/by-sa/3.0/">',endLicenseLink:"</a>"}),["a"])}),!o&&r.createElement("div",{className:"Footer-language-picker"},r.createElement(Gg,null))))}}])&&Yg(t.prototype,n),o&&Yg(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);Xg.defaultProps={_config:t.Z,noLangPicker:!1};const Jg=(0,Mo.qC)(Eu())(Xg);const eb=(0,Mo.qC)((0,g.connect)((function(e){return{userAgentInfo:e.api.userAgentInfo}})),Eu())((function(e){var t=e._tracking,n=void 0===t?pr:t,o=e.i18n,i=e.userAgentInfo,a=function(){n.sendEvent({action:"download-firefox-banner-click",category:lv})};if(Pf({userAgentInfo:i}))return null;var u={utm_content:"banner-download-button"},c=ie({text:o.gettext("To use these add-ons, you'll need to %(linkStart)sdownload Firefox%(linkEnd)s"),replacements:[["linkStart","linkEnd",function(e){return r.createElement(r.Fragment,null,r.createElement("br",null),r.createElement(Dc,{buttonType:"none",className:"GetFirefoxBanner-button",href:pv({overrideQueryParams:u}),key:"GetFirefoxBanner-button",onClick:a},e))}]]});return r.createElement(Jc,{className:"GetFirefoxBanner",dismissible:!0,id:"GetFirefoxBanner-notice",onDismiss:function(){n.sendEvent({action:"download-firefox-banner-dismiss",category:"AMO Download Firefox Banner"})},type:"warning"},r.createElement("span",{className:"GetFirefoxBanner-content"},c))}));a(93857);var tb=a(5241),nb=a.n(tb);const rb=(0,Mo.qC)((0,g.connect)((function(e){return{clientApp:e.api.clientApp}})))((function(e){var t=e._getPromotedCategory,n=void 0===t?Gs:t,o=e.arrowAlt,i=e.clientApp,a=e.loading,u=e.suggestion,c=u.iconUrl,s=u.name,l=u.type,f=n({addon:u,clientApp:i,forBadging:!0});return r.createElement("p",{className:Ho()("SearchSuggestion","SearchSuggestion--".concat(l))},r.createElement("img",{alt:s,className:"SearchSuggestion-icon",src:c}),r.createElement("span",{className:"SearchSuggestion-name"},a?r.createElement(Zp,{minWidth:20}):s),f?r.createElement(Zs,{category:f,className:"SearchSuggestion-icon-promoted",showAlt:!0,size:"small"}):null,r.createElement(ac,{alt:o,className:"SearchSuggestion-icon-arrow",name:"arrow-blue"}))}));function ob(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ib(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ob(Object(n),!0).forEach((function(t){ab(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ob(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ab(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ub="AUTOCOMPLETE_LOADED",cb="AUTOCOMPLETE_STARTED",sb="AUTOCOMPLETE_CANCELLED",lb={lang:"",loading:!1,suggestions:[]};function fb(){return{type:sb}}function pb(e){var t=e.results;return ce()(t,"results are required"),{type:ub,payload:{results:t}}}var db=function(e,t){return{addonId:e.id,iconUrl:Bs(e),name:Yi(e.name,t),promoted:e.promoted,type:e.type,url:e.url}};var hb;function yb(e){return(yb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mb(Object(n),!0).forEach((function(t){gb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wb(e,t){return(wb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ob(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_b(e);if(t){var o=_b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Eb(this,n)}}function Eb(e,t){if(t&&("object"===yb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _b(e){return(_b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xb=100,Sb=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wb(e,t)}(u,t);var n,o,i,a=Ob(u);function u(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,t)).handleSuggestionsClearRequested=function(){n.setState({autocompleteIsOpen:!1}),n.props.dispatch(fb())},n.handleSuggestionsFetchRequested=function(t){var r,o,i=t.value;if(ce()(i,"It should not be possible to have a falsey value"),ce()(i.length<=xb,"It should not be possible to have a value > ".concat(xb)),i.length<2)return L.Z.debug((0,e.f9)(hb||(r=["Ignoring suggestions fetch because query\n does not meet the required length (",")"],o||(o=r.slice(0)),hb=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}}))),2)),void n.props.dispatch(fb());var a=n.createFiltersFromQuery(i);n.setState({autocompleteIsOpen:!0}),n.dispatchAutocompleteStart({filters:a})},n.handleSearch=function(e){e.preventDefault(),n.searchInput&&n.searchInput.blur();var t=n.props.onSearch;t&&t(n.createFiltersFromQuery(n.state.searchValue.trim()))},n.handleSearchChange=function(e,t){var r=t.newValue||"";r.trim().length<=xb&&n.setState({searchValue:r})},n.handleSuggestionSelected=function(e,t){var r=t.suggestion;e.preventDefault(),n.props.loadingSuggestions?L.Z.debug("Ignoring a click on the suggestion while loading"):(n.setState({autocompleteIsOpen:!1,searchValue:""}),n.props.onSuggestionSelected(r))},n.renderSuggestion=function(e){var t=n.props,o=t.loadingSuggestions,i=t.selectSuggestionText;return r.createElement(rb,{arrowAlt:i,loading:o,suggestion:e})},n.dispatchAutocompleteStart=n.props.debounce((function(e){var t=e.filters,r=n.props;(0,r.dispatch)(function(e){var t=e.errorHandlerId,n=e.filters;return ce()(t,"errorHandlerId is required"),ce()(n,"filters are required"),{type:cb,payload:{errorHandlerId:t,filters:n}}}({errorHandlerId:r.errorHandler.id,filters:t}))}),200,{trailing:!0}),n.state={autocompleteIsOpen:!1,searchValue:n.getSearchValueFromProps(t)},n}return n=u,(o=[{key:"getSearchValueFromProps",value:function(e){var t=e.location,n=e.inputName;return t.query&&"string"==typeof t.query[n]&&t.query[n]||""}},{key:"createFiltersFromQuery",value:function(e){var t=this.props.location,n={};return t&&delete(n=Rt(t.query)).page,n.sort&&n.sort===D.wn&&delete n.sort,vb(vb({},n),{},{query:e})}},{key:"getSuggestions",value:function(){return this.props.loadingSuggestions?Array(10).fill({addonId:void 0,iconUrl:Bs(),name:this.props.i18n.gettext("Loading"),promoted:null,url:void 0}):this.props.suggestions}},{key:"render",value:function(){var e=this,t=this.props,n=t.errorHandler,o=t.i18n,i=t.inputLabelText,a=t.inputName,u=t.inputPlaceholder,c=t.showInputLabel,s=this.state.autocompleteIsOpen&&this.getSuggestions().length>0,l={className:"AutoSearchInput-query",id:"AutoSearchInput-".concat(a),maxLength:xb,minLength:2,name:a,onChange:this.handleSearchChange,placeholder:u||o.gettext("Find add-ons"),type:"search",value:this.state.searchValue};return r.createElement("div",{className:Ho()("AutoSearchInput",{"AutoSearchInput--autocompleteIsOpen":s})},n.renderErrorIfPresent(),r.createElement("label",{className:Ho()("AutoSearchInput-label",{"visually-hidden":!c}),htmlFor:l.id},i||o.gettext("Search")),r.createElement("div",{className:"AutoSearchInput-search-box"},r.createElement(ac,{className:"AutoSearchInput-icon-magnifying-glass",name:"magnifying-glass"}),r.createElement(nb(),{focusInputOnSuggestionClick:!1,getSuggestionValue:function(e){return e.name},inputProps:l,onSuggestionsClearRequested:this.handleSuggestionsClearRequested,onSuggestionsFetchRequested:this.handleSuggestionsFetchRequested,onSuggestionSelected:this.handleSuggestionSelected,ref:function(t){t&&(e.searchInput=t.input)},renderSuggestion:this.renderSuggestion,suggestions:this.getSuggestions(),theme:{suggestionContainer:"AutoSearchInput-suggestions",suggestionsList:"AutoSearchInput-suggestions-list",suggestion:"AutoSearchInput-suggestions-item",suggestionHighlighted:"AutoSearchInput-suggestions-item--highlighted"}}),r.createElement("button",{className:"AutoSearchInput-submit-button",onClick:this.handleSearch,type:"submit"},r.createElement("span",{className:"visually-hidden"},o.gettext("Search")),r.createElement(ac,{name:"arrow"}))))}}])&&bb(n.prototype,o),i&&bb(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(r.Component);Sb.defaultProps={debounce:yh(),showInputLabel:!0};const jb=(0,Mo.qC)(No,gs({fileName:"src/amo/components/AutoSearchInput/index.js",extractId:function(e){return e.inputName}}),(0,g.connect)((function(e){return{suggestions:e.autocomplete.suggestions,loadingSuggestions:e.autocomplete.loading}})),Eu())(Sb);function Pb(e){return(Pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ib(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tb(e,t){return(Tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ab(e);if(t){var o=Ab(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cb(this,n)}}function Cb(e,t){if(t&&("object"===Pb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ab(e){return(Ab=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tb(e,t)}(a,e);var t,n,o,i=Rb(a);function a(){var e;kb(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onSearch=function(t){e.props.history.push({pathname:e.baseSearchURL(),query:Tt(t)})},e.onSuggestionSelected=function(t){var n=ae.parse(t.url).pathname;n&&e.props.history.push(n)},e}return t=a,(n=[{key:"baseSearchURL",value:function(){var e=this.props,t=e.lang,n=e.clientApp,r=e.pathname;return"/".concat(t,"/").concat(n).concat(r)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.i18n,o=e.lang,i=e.clientApp,a=i===D.wZ?n.gettext("Firefox Add-ons for Android"):n.gettext("Firefox Add-ons");return r.createElement(r.Fragment,null,r.createElement(Ao,null,r.createElement("link",{title:a,rel:"search",type:"application/opensearchdescription+xml",href:"/".concat(o,"/").concat(i,"/opensearch.xml")})),r.createElement("form",{action:this.baseSearchURL(),className:Ho()("SearchForm",t),method:"GET","data-no-csrf":!0,role:"search"},r.createElement(jb,{inputName:"q",onSearch:this.onSearch,onSuggestionSelected:this.onSuggestionSelected,selectSuggestionText:n.gettext("Go to the add-on page"),showInputLabel:!1})))}}])&&Ib(t.prototype,n),o&&Ib(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const Lb=(0,Mo.qC)(No,(0,g.connect)((function(e){var t=e.api;return{lang:t.lang,clientApp:t.clientApp}})),Eu())(Nb);function Db(e,t){return(Db=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fb(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var Ub,Bb,Hb=(void 0===Ub&&(Ub=0),function(){return++Ub}),qb={},zb={},Gb=["touchstart","touchmove"];function Wb(e,t){var n=null;return-1!==Gb.indexOf(t)&&Bb&&(n={passive:!e.props.preventDefault}),n}const Vb=function(e,t){var n,i,a=e.displayName||e.name||"Component";return i=n=function(n){var i,u;function c(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+a+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,o.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!zb[r._uid]){void 0===Bb&&(Bb=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),zb[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),qb[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Fb(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,qb[r._uid],Wb(Mb(r),e))}))}},r.disableOnClickOutside=function(){delete zb[r._uid];var e=qb[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,Wb(Mb(r),t))})),delete qb[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=Hb(),r}u=n,(i=c).prototype=Object.create(u.prototype),i.prototype.constructor=i,Db(i,u);var s=c.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},s.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+a+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},c}(r.Component),n.displayName="OnClickOutside("+a+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},i};function Yb(e){return(Yb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Zb;function $b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kb(e,t){return(Kb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jb(e);if(t){var o=Jb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xb(this,n)}}function Xb(e,t){if(t&&("object"===Yb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Jb(e){return(Jb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ew=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kb(e,t)}(u,t);var n,o,i,a=Qb(u);function u(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,t)).handleOnClick=function(e){e.preventDefault(),n.setState((function(e){return{buttonIsActive:!e.buttonIsActive}}))},n.handleOnClickForLinks=function(t){var r,o;t.target&&"A"===t.target.tagName&&(L.Z.debug((0,e.f9)(Zb||(r=["Setting state of DropdownMenu to buttonIsActive to\n false, because a link inside the menu was clicked."],o||(o=r.slice(0)),Zb=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}}))))),n.setState({buttonIsActive:!1}))},n.handleClickOutside=function(){n.setState({buttonIsActive:!1})},n.handleOnMouseEnter=function(){var e=n.props._window;e&&e.matchMedia("(hover)").matches&&n.setState({buttonIsActive:!0})},n.handleOnMouseLeave=function(){var e=n.props._window;e&&e.matchMedia("(hover)").matches&&n.setState({buttonIsActive:!1})},n.state={buttonIsActive:!1},n}return n=u,(o=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.text;return r.createElement("div",{className:Ho()("DropdownMenu",n,{"DropdownMenu--active":this.state.buttonIsActive}),onClick:this.handleOnClickForLinks,onMouseEnter:this.handleOnMouseEnter,onMouseLeave:this.handleOnMouseLeave},r.createElement("button",{className:"DropdownMenu-button",onClick:this.handleOnClick,title:o,type:"button","aria-haspopup":"true"},r.createElement("span",{className:"DropdownMenu-button-text"},o),r.createElement(ac,{name:"inverted-caret"})),t&&r.createElement("ul",{className:"DropdownMenu-items","aria-hidden":!this.state.buttonIsActive,"aria-label":"submenu"},t))}}])&&$b(n.prototype,o),i&&$b(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(r.Component);ew.defaultProps={_window:"undefined"!=typeof window?window:null};const tw=Vb(ew);function nw(e){return(nw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}const rw=function(e){var t=e.children,n=e.className,o=e.onClick,i=e.title,a=e.detached,u=void 0!==a&&a,c=e.disabled,s=void 0!==c&&c,l="object"===nw(t),f=Ho()("DropdownMenuItem",{"DropdownMenuItem-section":!l&&!o,"DropdownMenuItem-link":l||o,"DropdownMenuItem--detached":u,"DropdownMenuItem--disabled":s},n);return r.createElement("li",{className:f},o?r.createElement("button",{disabled:s,onClick:o,title:i,type:"button"},t):t)};function ow(e){return(ow="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function iw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uw(e,t){return(uw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lw(e);if(t){var o=lw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sw(this,n)}}function sw(e,t){if(t&&("object"===ow(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function lw(e){return(lw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uw(e,t)}(a,e);var t,n,o,i=cw(a);function a(){var e;iw(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).setClientApp=function(t){t.preventDefault();var n=e.props,r=n.dispatch,o=n.history,i=t.currentTarget.getAttribute("data-clientapp"),a=t.currentTarget.getAttribute("href");i&&r(wt(i)),a&&o.push(a)},e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.clientApp,o=e.forBlog,i=e.i18n,a=e.viewContext;ce()(n===D.So,"SectionLinks included when clientApp is not Firefox");var u={prependClientApp:!o,prependLang:!o};return r.createElement("ul",{className:Ho()("SectionLinks",t)},r.createElement("li",null,r.createElement(wc,Object.assign({className:Ho()("SectionLinks-link","SectionLinks-link-extension",{"SectionLinks-link--active":a===D.Gz}),to:"/".concat(xn(D.Gz),"/")},u),i.gettext("Extensions"))),r.createElement("li",null,r.createElement(wc,Object.assign({className:Ho()("SectionLinks-link","SectionLinks-link-theme",{"SectionLinks-link--active":a===D.Yd}),to:"/".concat(xn(D.Yd),"/")},u),i.gettext("Themes"))),r.createElement("li",null,r.createElement(tw,{className:"SectionLinks-link SectionLinks-dropdown",text:i.gettext("More…")},r.createElement(r.Fragment,null,r.createElement(rw,{className:"SectionLinks-subheader"},i.gettext("for Firefox")),r.createElement(rw,{key:"dictionaries-and-language-packs"},r.createElement(wc,{className:Ho()("SectionLinks-dropdownlink",{"SectionLinks-dropdownlink--active":a===D.NI}),to:"/language-tools/"},i.gettext("Dictionaries & Language Packs"))),r.createElement(rw,{className:"SectionLinks-subheader"},i.gettext("Other Browser Sites")),r.createElement(rw,null,r.createElement(wc,{className:"SectionLinks-clientApp-".concat(D.wZ),"data-clientapp":D.wZ,onClick:this.setClientApp,prependClientApp:!1,to:"/".concat(D.wZ,"/")},i.gettext("Add-ons for Android")))))))}}])&&aw(t.prototype,n),o&&aw(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const pw=(0,Mo.qC)(No,(0,g.connect)((function(e){return{clientApp:e.api.clientApp,viewContext:e.viewContext.context}})),Eu())(fw);function dw(e){return(dw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mw(e,t){return(mw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bw(e);if(t){var o=bw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gw(this,n)}}function gw(e,t){if(t&&("object"===dw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function bw(e){return(bw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ww=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mw(e,t)}(a,e);var t,n,o,i=vw(a);function a(){var e;hw(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onClick=function(t){t.preventDefault(),t.stopPropagation();var n=e.props,r=n.api,o=n.handleLogIn,i=n.handleLogOut,a=n.location,u=n.siteUser;ce()(i,"handleLogOut() is undefined"),u?i({api:r}):o(a)},e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.buttonType,n=e.className,o=e.i18n,i=e.logInText,a=e.logOutText,u=e.noIcon,c=e.siteIsReadOnly,s=e.siteUser,l=s?a||o.gettext("Log out"):i||o.gettext("Log in"),f=c?o.gettext("This action is currently unavailable. Please reload the\n page in a moment."):null;return r.createElement(Dc,{href:"#".concat(s?"logout":"login"),buttonType:t,className:n,disabled:c,onClick:this.onClick,title:f,micro:!0},u?null:r.createElement(ac,{name:"user-dark"}),l)}}])&&yw(t.prototype,n),o&&yw(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);ww.defaultProps={buttonType:"action",noIcon:!1};var Ow=function(e){return function(t){var n,r=t.api;return(n={api:r},$t({auth:!0,credentials:!0,endpoint:"accounts/session",method:"DELETE",apiState:n.api})).catch((function(e){L.Z.warn("Received error from the API while logging out: ".concat(e))})).then((function(){return e(Ze())}))}};const Ew=(0,Mo.qC)(No,(0,g.connect)((function(e,t){return{api:e.api,handleLogIn:t.handleLogIn||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t._window,r=void 0===n?window:n;r.location.assign(Qt({location:e}))},siteIsReadOnly:e.site.readOnly,siteUser:Xe(e.users)}}),(function(e,t){return{handleLogOut:t.handleLogOut||Ow(e)}})),Eu())(ww);function _w(e){return(_w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jw(e,t){return(jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Iw(e);if(t){var o=Iw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kw(this,n)}}function kw(e,t){if(t&&("object"===_w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Iw(e){return(Iw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Tw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jw(e,t)}(a,e);var t,n,o,i=Pw(a);function a(){var e;xw(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).handleLogOut=function(t){t.preventDefault(),e.props.handleLogOut({api:e.props.api})},e}return t=a,(n=[{key:"renderMenuOrAuthButton",value:function(){var e=this.props,t=e.i18n,n=e.isReviewer,o=e.loadedPageIsAnonymous,i=e.siteIsReadOnly,a=e.siteUser;return o?null:a?r.createElement(tw,{text:a.name,className:"Header-authenticate-button Header-button"},r.createElement(rw,null,t.gettext("My Account")),r.createElement(rw,null,r.createElement(wc,{className:"Header-user-menu-collections-link",to:"/collections/"},t.gettext("View My Collections"))),r.createElement(rw,null,r.createElement(wc,{className:"Header-user-menu-view-profile-link",to:a?"/user/".concat(a.id,"/"):null},t.gettext("View My Profile"))),r.createElement(rw,null,r.createElement(wc,{className:"Header-user-menu-edit-profile-link",to:a?"/users/edit":null},t.gettext("Edit My Profile"))),r.createElement(rw,null,t.gettext("Tools")),r.createElement(rw,null,r.createElement(wc,{href:"/developers/addon/submit/distribution",prependClientApp:!1},t.gettext("Submit a New Add-on"))),r.createElement(rw,null,r.createElement(wc,{href:"/developers/theme/submit",prependClientApp:!1},t.gettext("Submit a New Theme"))),r.createElement(rw,null,r.createElement(wc,{className:"Header-user-menu-developers-submissions-link",href:"/developers/addons/",prependClientApp:!1},t.gettext("Manage My Submissions"))),n&&r.createElement(rw,null,r.createElement(wc,{className:"Header-user-menu-reviewer-tools-link",href:"/reviewers/",prependClientApp:!1},t.gettext("Reviewer Tools"))),r.createElement(rw,{className:"Header-logout-button",detached:!0,disabled:i,onClick:this.handleLogOut,title:i?t.gettext("This action is currently unavailable.\n Please reload the page in a moment."):null},t.gettext("Log out"))):r.createElement(Ew,{buttonType:"none",className:"Header-authenticate-button Header-button",noIcon:!0})}},{key:"render",value:function(){var e=this.props,t=e._config,n=e.clientApp,o=e.forBlog,i=e.i18n,a=e.isAddonInstallPage,u=e.isHomePage,c=e.loadedPageIsAnonymous,s=e.location,l=e.userAgentInfo,f=r.createElement(wc,{className:"Header-title",to:"/",prependClientApp:!o,prependLang:!o},r.createElement("span",{className:"visually-hidden"},i.gettext("Firefox Browser Add-ons"))),p=Pf({userAgentInfo:l})?r.createElement(r.Fragment,null,r.createElement(wc,{className:"Header-blog-link Header-button",href:"/blog/",prependClientApp:!1,prependLang:!1},i.gettext("Firefox Add-ons Blog")),r.createElement(wc,{className:"Header-extension-workshop-link Header-button",href:"".concat(t.get("extensionWorkshopUrl"),"/").concat(fn({utm_content:"header-link",utm_campaign:null})),external:!0,prependClientApp:!1,prependLang:!1,target:"_blank",title:i.gettext("Learn how to create extensions and themes")},i.gettext("Extension Workshop")),r.createElement(wc,{className:"Header-developer-hub-link Header-button",href:"/developers/",external:!0,prependClientApp:!1,target:"_blank",title:i.gettext("Submit and manage extensions and themes")},i.gettext("Developer Hub"))):null;return r.createElement("header",{className:Ho()("Header",{"Header--loaded-page-is-anonymous":c})},a||o?null:r.createElement(eb,null),r.createElement("div",{className:"Header-wrapper"},r.createElement("div",{className:"Header-content"},u?r.createElement("h1",{className:"Header-title-wrapper"},f):f),n===D.So?r.createElement(pw,{className:"Header-SectionLinks",location:s,forBlog:o}):null,!o&&r.createElement(r.Fragment,null,r.createElement("div",{className:"Header-user-and-external-links"},p,this.renderMenuOrAuthButton()),r.createElement(Lb,{className:Ho()("Header-search-form",{"Header-search-form--desktop":n===D.So}),pathname:"/search/"}))))}}])&&Sw(t.prototype,n),o&&Sw(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);Tw.propTypes={_config:w().object,api:w().object.isRequired,clientApp:w().string.isRequired,handleLogOut:w().func.isRequired,i18n:w().object.isRequired,isAddonInstallPage:w().bool,isHomePage:w().bool,isReviewer:w().bool.isRequired,loadedPageIsAnonymous:w().bool.isRequired,location:w().object.isRequired,siteIsReadOnly:w().bool.isRequired,siteUser:w().object,userAgentInfo:w().object,forBlog:w().bool},Tw.defaultProps={_config:t.Z,forBlog:!1};const Rw=(0,Mo.qC)((0,g.connect)((function(e){return{api:e.api,clientApp:e.api.clientApp,isReviewer:tt(e),loadedPageIsAnonymous:e.site.loadedPageIsAnonymous,siteIsReadOnly:e.site.readOnly,siteUser:Xe(e.users),userAgentInfo:e.api.userAgentInfo}}),(function(e,t){return{handleLogOut:t.handleLogOut||Ow(e)}})),Eu())(Tw);function Cw(e){return(Cw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Aw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lw(e,t){return(Lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Dw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fw(e);if(t){var o=Fw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mw(this,n)}}function Mw(e,t){if(t&&("object"===Cw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fw(e){return(Fw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Uw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lw(e,t)}(a,e);var t,n,o,i=Dw(a);function a(){return Aw(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e,t=this.props,n=t._correctedLocationForPlatform,o=t._isAndroidInstallable,i=t._isFirefoxForAndroid,a=t._isFirefoxForIOS,u=t.addon,c=t.className,s=t.clientApp,l=t.i18n,f=t.isHomePage,p=t.lang,d=t.location,h=t.userAgentInfo,y=n({clientApp:s,isHomePage:f,lang:p,location:d,userAgentInfo:h});return a(h)?e=l.gettext("Add-ons are not compatible with Firefox for iOS. Try installing them on Firefox for desktop."):u&&i(h)&&o({addon:u})?e=null:y===Af(p)?e=l.sprintf(l.gettext('To find add-ons compatible with Firefox for Android,\n <a href="%(newLocation)s">click here</a>.'),{newLocation:y}):u&&y?e=l.sprintf('This listing is not intended for this platform.\n <a href="%(newLocation)s">Browse add-ons for Firefox on desktop</a>.',{newLocation:y}):y&&(e=l.sprintf('To find add-ons compatible with Firefox on desktop,\n <a href="%(newLocation)s">visit our desktop site</a>.',{newLocation:y})),e?r.createElement("div",{className:Ho()("WrongPlatformWarning",c)},r.createElement(Jc,{id:"WrongPlatformWarning-Notice",type:Kc},r.createElement("span",{className:"WrongPlatformWarning-message",dangerouslySetInnerHTML:vn(e,["a"])}))):null}}])&&Nw(t.prototype,n),o&&Nw(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);Uw.defaultProps={_correctedLocationForPlatform:Nf,_isAndroidInstallable:Tf,_isFirefoxForAndroid:kf,_isFirefoxForIOS:If,isHomePage:!1};const Bw=(0,Mo.qC)(No,(0,g.connect)((function(e){return{clientApp:e.api.clientApp,lang:e.api.lang,userAgentInfo:e.api.userAgentInfo}})),Eu())(Uw);var Hw=a(37707),qw=a.n(Hw),zw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gw=function(){return(Gw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ww=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Vw(e){var t=e.displayName||e.name,n=function(n){function o(){var e=null!==n&&n.apply(this,arguments)||this;return e.onChange=function(){e.forceUpdate()},e}return zw(o,n),o.prototype.listen=function(){this.props.cookies.addChangeListener(this.onChange)},o.prototype.unlisten=function(e){(e||this.props.cookies).removeChangeListener(this.onChange)},o.prototype.componentDidMount=function(){this.listen()},o.prototype.componentDidUpdate=function(e){e.cookies!==this.props.cookies&&(this.unlisten(e.cookies),this.listen())},o.prototype.componentWillUnmount=function(){this.unlisten()},o.prototype.render=function(){var t=this.props,n=t.forwardedRef,o=t.cookies,i=Ww(t,["forwardedRef","cookies"]),a=o.getAll();return r.createElement(e,Gw({},i,{ref:n,cookies:o,allCookies:a}))},o.displayName="withCookies("+t+")",o.WrappedComponent=e,o}(r.Component),o=r.forwardRef((function(e,t){return r.createElement(h,null,(function(o){return r.createElement(n,Gw({cookies:o},e,{forwardedRef:t}))}))}));return o.displayName=n.displayName,o.WrappedComponent=n.WrappedComponent,qw()(o,e)}a(77653);function Yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yw(Object(n),!0).forEach((function(t){$w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kw="STORE_EXPERIMENT_VARIANT",Qw={};function Xw(e){return(Xw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Jw=["_getVariant","_isExperimentEnabled"];function eO(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oO(e,t){return(oO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function iO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uO(e);if(t){var o=uO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return aO(this,n)}}function aO(e,t){if(t&&("object"===Xw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function uO(e){return(uO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cO(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return sO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sO(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function sO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lO="frontend_active_experiments",fO="AMO Experiment Enrollment -",pO="notInExperiment",dO=/\d{8}_amo_.+/,hO=function(e){var t=e.randomizer,n=void 0===t?Math.random:t,r=e.variants;ce()(1===r.reduce((function(e,t){return e+t.percentage}),0),"The sum of all percentages in `variants` must be 1"),ce()(r.every((function(e){return e.id.length<=50})),"Variant ids must be no more than 50 characters long");var o,i,a=n(),u=0,c=cO(r);try{for(c.s();!(i=c.n()).done;){var s=i.value;if(o=u+s.percentage,a>u&&a<=o)return s.id;u=o}}catch(e){c.e(e)}finally{c.f()}throw new Error("Unable to allocate a user to a variant")},yO=function(e){var n=e._config,r=void 0===n?t.Z:n,o=e.id;return!0===(r.get("experiments")||{})[o]},mO={maxAge:2592e3,path:"/",secure:!0},vO="show-promo",gO=function(e){var t=e.clientApp,n=e.regionCode;return t===D.wZ||!["US","DE","FR"].includes(n)},bO={id:"20210714_amo_vpn_promo",variants:[{id:vO,percentage:.05},{id:"hide-promo",percentage:.05},{id:pO,percentage:.9}],shouldExcludeUser:function(e){var t=e.state.api,n=t.clientApp,r=t.regionCode;return gO({clientApp:n,regionCode:r})}},wO=a(424),OO=a.n(wO),EO=a(65117),_O=a.n(EO);function xO(e){return(xO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jO(e,t){return(jO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function PO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=IO(e);if(t){var o=IO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kO(this,n)}}function kO(e,t){if(t&&("object"===xO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function IO(e){return(IO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var TO="VPNPromoImpressionCount",RO="VPN Promo Banner",CO=function(e){var t=e.getItem(TO),n=parseInt(t||0,10);return ce()(!Number.isNaN(n),"A non-number was stored in ".concat(TO,": ").concat(t)),n},AO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jO(e,t)}(a,e);var t,n,o,i=PO(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).onInteract=function(e){var n=t.props,r=n._tracking,o=n._localStorage,i=n.cookies,a=CO(o);r.sendEvent({action:e,category:RO,label:String(a)}),o.removeItem(TO),t.setState({dismissed:!0});var u=i.get(lO);u[bO.id]=pO,i.set(lO,u,mO)},t.onButtonClick=function(){t.onInteract("vpn-promo-banner-click")},t.onDismiss=function(){t.onInteract("vpn-promo-banner-dismiss")},t.onImpression=function(){var e=t.props,n=e._tracking,r=e._localStorage;if(t.shouldShowBanner()){var o=CO(r)+1;n.sendEvent({action:"vpn-promo-banner-impression",category:RO,label:String(o)}),r.setItem(TO,o)}},t.state={dismissed:e.variant!==vO},t}return t=a,(n=[{key:"shouldShowBanner",value:function(){var e=this.props,t=e.clientApp,n=e.regionCode;return e.variant===vO&&!this.state.dismissed&&!gO({clientApp:t,regionCode:n})}},{key:"componentDidMount",value:function(){this.onImpression()}},{key:"componentDidUpdate",value:function(e){Vy()(this.props.location,e.location)||this.onImpression()}},{key:"render",value:function(){var e=this.props,t=e.addonIdentifier,n=e.i18n;if(!this.shouldShowBanner())return null;var o=n.gettext("Save 50% with a full year subscription"),i=n.gettext("Protect your online data—and choose a VPN subscription plan that works\n for you."),a="".concat("https://www.mozilla.org/products/vpn").concat(fn({utm_campaign:"amo-vpn-promo",utm_content:t}));return r.createElement("div",{className:"VPNPromoBanner"},r.createElement("div",{className:"VPNPromoBanner-wrapper"},r.createElement("img",{alt:"Mozilla VPN",className:"VPNPromoBanner-logo",src:OO()}),r.createElement("div",{className:"VPNPromoBanner-copy"},r.createElement("strong",null,o),r.createElement("span",null,i)),r.createElement("a",{className:"VPNPromoBanner-cta",href:a,onClick:this.onButtonClick},n.gettext("Get Mozilla VPN")),r.createElement(Dc,{className:"VPNPromoBanner-dismisser-button",onClick:this.onDismiss},r.createElement("img",{alt:"",src:_O()}))))}}])&&SO(t.prototype,n),o&&SO(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);AO.defaultProps={_tracking:pr,_localStorage:"undefined"!=typeof window?window.localStorage:{}};const NO=(0,Mo.qC)(No,Eu(),Vw,(0,g.connect)((function(e,t){var n=t.match.params.slug,r=la(e.addons,n);return{addonIdentifier:r&&String(r.id)||null,clientApp:e.api.clientApp,regionCode:e.api.regionCode}})))(AO);var LO,DO,MO,FO,UO,BO;const HO=(0,Mo.qC)(No,(0,g.connect)((function(e){return{clientApp:e.api.clientApp}})),(DO=(LO={experimentConfig:bO})._config,MO=void 0===DO?t.Z:DO,FO=LO._tracking,UO=void 0===FO?pr:FO,BO=LO.experimentConfig,function(e){var t=BO.cookieConfig,n=BO.id,o=BO.shouldExcludeUser,i=BO.variants;ce()(n,"id is required"),ce()(dO.test(n),"id must match the pattern YYYYMMDD_amo_experiment_id"),ce()(n.length<=50,"id must be no more than 50 characters long"),ce()(i,"variants is required");var a=function(o){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oO(e,t)}(l,o);var a,u,c,s=iO(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this,e)).variant=t.setupExperiment(e),t}return a=l,(u=[{key:"isEnabled",value:function(){return this.props._isExperimentEnabled({_config:MO,id:n})}},{key:"readVariantFromCookie",value:function(){return this.cookieIncludesExperiment()?this.getExperimentsFromCookie()[n]:null}},{key:"setupExperiment",value:function(e){var t=e._getVariant,r=e.dispatch,o=e.isUserExcluded,a=e.storedVariants;if(!this.isEnabled())return null;var u=this.readVariantFromCookie();if(!u){var c=a[n];u=c||(o?pO:t({variants:i})),this.cookieIncludesExperiment()||c||r(function(e){var t=e.id,n=e.variant;return{type:Kw,payload:{id:t,variant:n}}}({id:n,variant:u}))}return u}},{key:"componentDidMount",value:function(){for(var e=this.variant,r=this.props,o=r._isExperimentEnabled,i=r.cookies,a=e&&!this.cookieIncludesExperiment(),u=this.getExperimentsFromCookie(),c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tO(Object(n),!0).forEach((function(t){nO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},u),s=!1,l=0,f=Object.keys(u);l<f.length;l++){var p=f[l];o({_config:MO,id:p})||(delete c[p],s=!0)}a&&(c[n]=e,e&&UO.sendEvent({_config:MO,action:e,category:[fO,n].join(" ")})),(s||a)&&i.set(lO,c,t||mO)}},{key:"getExperimentsFromCookie",value:function(){return this.props.cookies.get(lO)||{}}},{key:"cookieIncludesExperiment",value:function(){return Object.keys(this.getExperimentsFromCookie()).includes(n)}},{key:"render",value:function(){var t=this.props,o=(t._getVariant,t._isExperimentEnabled,eO(t,Jw)),i=this.readVariantFromCookie()||this.variant,a={experimentId:n,isExperimentEnabled:this.isEnabled(),isUserInExperiment:Boolean(i&&i!==pO),variant:i};return r.createElement(e,Object.assign({},a,o))}}])&&rO(a.prototype,u),c&&rO(a,c),Object.defineProperty(a,"prototype",{writable:!1}),l}(r.Component);return a.defaultProps={_getVariant:hO,_isExperimentEnabled:yO},a.displayName="WithExperiment(".concat(Rn(e),")"),(0,Mo.qC)(Vw,(0,g.connect)((function(e){return{isUserExcluded:Boolean(o&&o({state:e})),storedVariants:e.experiments}})))(a)}))((function(e){var n,o=e._config,i=void 0===o?t.Z:o,a=e._log,u=void 0===a?L.Z:a,c=e.children,s=e.clientApp,l=e.errorHandler,f=e.isAddonInstallPage,p=void 0!==f&&f,d=e.isHomePage,h=void 0!==d&&d,y=e.location,m=e.showVPNPromo,v=void 0!==m&&m,g=e.showWrongPlatformWarning,b=void 0===g||g,w=e.variant;if(l&&l.hasError()){401===l.capturedError.responseStatusCode&&D.Jp.includes(l.capturedError.code)?n=r.createElement(vg,null):401===l.capturedError.responseStatusCode||403===l.capturedError.responseStatusCode||404===l.capturedError.responseStatusCode?n=r.createElement(jg,null):451===l.capturedError.responseStatusCode&&(n=r.createElement(Lg,null));var O="Captured API Error: ".concat(l.capturedError.messages);n?u.debug(O):u.warn(O)}return r.createElement("div",{className:"Page-amo"},v&&i.get("enableFeatureVPNPromo")&&r.createElement(NO,{variant:w}),r.createElement(Rw,{isAddonInstallPage:p,isHomePage:h,location:y}),r.createElement("div",{className:"Page-content"},r.createElement("div",{className:Ho()("Page",{"Page-not-homepage":!h,"Page-no-hero-promo":s===D.wZ})},(!h||s===D.wZ)&&r.createElement(eg,null),b&&r.createElement(Bw,{className:"Page-WrongPlatformWarning",isHomePage:h}),n||c)),r.createElement(Jg,null))}));function qO(e){return(qO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function WO(e,t){return(WO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function VO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ZO(e);if(t){var o=ZO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return YO(this,n)}}function YO(e,t){if(t&&("object"===qO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ZO(e){return(ZO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$O(Object(n),!0).forEach((function(t){QO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XO={showAllContent:!0,readMoreExpanded:!1},JO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WO(e,t)}(a,e);var t,n,o,i=VO(a);function a(){var e;zO(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onClick=function(t){t.preventDefault(),e.props.setUIState({showAllContent:!0,readMoreExpanded:!0})},e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e._setUIState,n=e._truncateToMaxHeight,r=e.maxHeight,o=e.setUIState,i=e.uiState;i.readMoreExpanded||n({contents:this.contents,maxHeight:r,setUIState:t||o,uiState:i})}},{key:"componentDidUpdate",value:function(e){var t=e.contentId,n=this.props,r=n._setUIState,o=n._truncateToMaxHeight,i=n.contentId,a=n.maxHeight,u=n.setUIState,c=n.uiState;i&&t!==i&&this.resetUIState(),c.readMoreExpanded||o({contents:this.contents,maxHeight:a,setUIState:r||u,uiState:c})}},{key:"resetUIState",value:function(){this.props.setUIState(KO({},XO))}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.header,a=t.id,u=t.i18n,c=t.uiState.showAllContent;ce()(n,"The children property is required"),ce()(a,"The id property is required");var s=r.createElement("a",{"aria-label":u.gettext("Expand to read more"),className:"ShowMoreCard-expand-link",href:"#show-more",onClick:this.onClick,dangerouslySetInnerHTML:vn(u.gettext('<span class="visually-hidden">Expand to</span> Read more'),["span"])});return r.createElement(js,{className:Ho()("ShowMoreCard",o,{"ShowMoreCard--expanded":c}),header:i,footerLink:c?null:s},r.createElement("div",{className:"ShowMoreCard-contents",ref:function(t){e.contents=t}},n))}}])&&GO(t.prototype,n),o&&GO(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);JO.defaultProps={_truncateToMaxHeight:function(e){var t=e.contents,n=e.maxHeight,r=e.setUIState,o=e.uiState;t&&o.showAllContent&&t.clientHeight>=n&&r(KO(KO({},o),{},{showAllContent:!1}))},maxHeight:150};const eE=(0,Mo.qC)(Eu(),Bu({fileName:"src/amo/components/ShowMoreCard/index.js",extractId:function(e){return e.id},initialState:XO,resetOnUnmount:!0}))(JO);a(68064);function tE(e){return(tE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oE(e,t){return(oE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function iE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uE(e);if(t){var o=uE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return aE(this,n)}}function aE(e,t){if(t&&("object"===tE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function uE(e){return(uE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oE(e,t)}(a,e);var t,n,o,i=iE(a);function a(){return nE(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.type,n=e.description;return r.createElement("li",{className:"Permission"},r.createElement(ac,{name:"permission-".concat(t.replace(/\./g,"-"))}),r.createElement("span",{className:"Permission-description"},n))}}])&&rE(t.prototype,n),o&&rE(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);function sE(e){return(sE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lE(e){return function(e){if(Array.isArray(e))return dE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pE(e)||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 fE(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=pE(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function pE(e,t){if(e){if("string"==typeof e)return dE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dE(e,t):void 0}}function dE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mE(e,t){return(mE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bE(e);if(t){var o=bE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gE(this,n)}}function gE(e,t){if(t&&("object"===sE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function bE(e){return(bE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wE="domainMessageType",OE="siteMessageType",EE="allUrlsMessageType",_E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mE(e,t)}(a,e);var t,n,o,i=vE(a);function a(){return hE(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getPermissionString",value:function(e){var t=e.messageType,n=e.param,r=this.props.i18n;switch(t){case EE:return r.gettext("Access your data for all websites");case wE:return r.sprintf(r.gettext("Access your data for sites in the %(param)s domain"),{param:n});case OE:return r.sprintf(r.gettext("Access your data for %(param)s"),{param:n});default:throw new Error("No matching string found for messageType: ".concat(t))}}},{key:"generateHostPermissions",value:function(e){var t,n=e.permissions,o=e.messageType,i=[],a=fE(n);try{for(a.s();!(t=a.n()).done;){var u=t.value;i.push(r.createElement(cE,{type:"hostPermission",description:this.getPermissionString({messageType:o,param:u}),key:u}))}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"render",value:function(){var e,t=[],n=!1,o=[],i=[],a=fE(this.props.permissions);try{for(a.s();!(e=a.n()).done;){var u=e.value;if("<all_urls>"===u){n=!0;break}if(!u.startsWith("moz-extension:")){var c=/^[a-z*]+:\/\/([^/]+)\//.exec(u);c?"*"===c[1]?n=!0:c[1].startsWith("*.")?o.push(c[1].slice(2)):i.push(c[1]):L.Z.debug('Host permission string "'.concat(u,'" appears to be invalid.'))}}}catch(e){a.e(e)}finally{a.f()}var s=lE(new Set(o)),l=lE(new Set(i));return n?t.push(r.createElement(cE,{type:"hostPermission",description:this.getPermissionString({messageType:EE}),key:"allUrls"})):(t.push.apply(t,lE(this.generateHostPermissions({permissions:s,messageType:wE}))),t.push.apply(t,lE(this.generateHostPermissions({permissions:l,messageType:OE})))),r.createElement(r.Fragment,null,t)}}])&&yE(t.prototype,n),o&&yE(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const xE=(0,Mo.qC)(Eu())(_E);function SE(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return jE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jE(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function jE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var kE=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.i18n=t,this.permissionStrings={bookmarks:t.gettext("Read and modify bookmarks"),browserSettings:t.gettext("Read and modify browser settings"),browsingData:t.gettext("Clear recent browsing history, cookies, and related data"),clipboardRead:t.gettext("Get data from the clipboard"),clipboardWrite:t.gettext("Input data to the clipboard"),devtools:t.gettext("Extend developer tools to access your data in open tabs"),downloads:t.gettext("Download files and read and modify the browser’s download history"),"downloads.open":t.gettext("Open files downloaded to your computer"),find:t.gettext("Read the text of all open tabs"),geolocation:t.gettext("Access your location"),history:t.gettext("Access browsing history"),management:t.gettext("Monitor extension usage and manage themes"),nativeMessaging:t.gettext("Exchange messages with programs other than Firefox"),notifications:t.gettext("Display notifications to you"),pkcs11:t.gettext("Provide cryptographic authentication services"),proxy:t.gettext("Control browser proxy settings"),privacy:t.gettext("Read and modify privacy settings"),sessions:t.gettext("Access recently closed tabs"),tabs:t.gettext("Access browser tabs"),tabHide:t.gettext("Hide and show browser tabs"),topSites:t.gettext("Access browsing history"),unlimitedStorage:t.gettext("Store unlimited amount of client-side data"),webNavigation:t.gettext("Access browser activity during navigation")}}var t,n,o;return t=e,(n=[{key:"getCurrentPermissions",value:function(e){var t=e.file,n={optional:[],required:[]};return t?(n.optional=t.optional_permissions,n.required=t.permissions,n):(L.Z.debug("getCurrentPermissions() called with no file"),n)}},{key:"classifyPermission",value:function(e){var t={type:"permissions",value:e};return/^(\w+)(?:\.(\w+)(?:\.\w+)*)?$/.exec(e)||(t={type:"hosts",value:e}),t}},{key:"formatPermissions",value:function(e){var t,n=[],o={hosts:[],permissions:[]},i=SE(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,u=this.classifyPermission(a),c=u.type,s=u.value;o[c].push(s)}}catch(e){i.e(e)}finally{i.f()}var l="nativeMessaging";o.permissions.includes(l)&&n.push(r.createElement(cE,{type:l,description:this.permissionStrings.nativeMessaging,key:l}));var f,p=SE(o.permissions.slice(0).sort());try{for(p.s();!(f=p.n()).done;){var d=f.value;"nativeMessaging"!==d&&this.permissionStrings[d]&&n.push(r.createElement(cE,{type:d,description:this.permissionStrings[d],key:d}))}}catch(e){p.e(e)}finally{p.f()}return o.hosts.length&&n.push(r.createElement(xE,{permissions:o.hosts})),n}}])&&PE(t.prototype,n),o&&PE(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function IE(e){return(IE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function TE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function CE(e,t){return(CE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function AE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=LE(e);if(t){var o=LE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return NE(this,n)}}function NE(e,t){if(t&&("object"===IE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function LE(e){return(LE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var DE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CE(e,t)}(a,e);var t,n,o,i=AE(a);function a(){return TE(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.version,n=e.i18n,o=new kE(n);if(!t||!t.file)return null;var i=o.getCurrentPermissions({file:t.file});if(!i.optional.length&&!i.required.length)return null;var a=o.formatPermissions(i.optional),u=o.formatPermissions(i.required);if(!a.length&&!u.length)return null;var c=r.createElement("div",{className:"PermissionsCard-header"},n.gettext("Permissions"),r.createElement(wc,{className:"PermissionsCard-learn-more",href:"https://support.mozilla.org/kb/permission-request-messages-firefox-extensions",target:"_blank",externalDark:!0,prependClientApp:!1,prependLang:!1},n.gettext("Learn more")));return r.createElement(eE,{header:c,contentId:t.id,className:"PermissionsCard",id:"AddonDescription-permissions-card",maxHeight:300},u.length?r.createElement(r.Fragment,null,r.createElement("p",{className:"PermissionsCard-subhead--required"},n.gettext("This add-on needs to:")),r.createElement("ul",{className:"PermissionsCard-list--required"},u)):null,a.length?r.createElement(r.Fragment,null,r.createElement("p",{className:"PermissionsCard-subhead--optional"},n.gettext("This add-on may also ask to:")),r.createElement("ul",{className:"PermissionsCard-list--optional"},a)):null)}}])&&RE(t.prototype,n),o&&RE(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const ME=(0,Mo.qC)(Eu())(DE);const FE=(0,Mo.qC)(Eu())((function(e){var t=e.children,n=e.className,o=e.i18n,i=e.onSelectRating,a=e.rating,u=!i;return r.createElement("div",{className:Ho()("AddonReviewManagerRating",n)},r.createElement("span",null,o.gettext("Your star rating:")),r.createElement(id,{onSelectRating:i,rating:a,readOnly:u,styleSize:"small",yellowStars:!0}),t)}));const UE=function(e){var t=e.className,n=e.hideMessage,o=e.message,i=e.type,a={className:Ho()("RatingManagerNotice-savedRating",t,{"RatingManagerNotice-savedRating-hidden":n})};return i?r.createElement(Jc,Object.assign({type:i,light:!0},a),o):r.createElement("span",a,o)};var BE="src/amo/components/AddonReviewManager/index.js";function HE(e){return(HE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function GE(e,t){return(GE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function WE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=YE(e);if(t){var o=YE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return VE(this,n)}}function VE(e,t){if(t&&("object"===HE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function YE(e){return(YE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ZE=function(e){return e.review.id.toString()},$E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GE(e,t)}(a,e);var t,n,o,i=WE(a);function a(){var e;qE(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onSubmitRating=function(t){var n=e.props,r=n.errorHandler,o=n.dispatch,i=n.review;o(Li({score:t,errorHandlerId:r.id,reviewId:i.id}))},e.onSubmitReview=function(t){var n=t.text,r=e.props,o=r.errorHandler,i=r.dispatch,a=r.review;i(Li({body:n,errorHandlerId:o.id,reviewId:a.id}))},e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.errorHandler,n=e.i18n,o=e.onCancel,i=e.review,a=e.flashMessage,u=e.puffyButtons,c=ie({text:n.gettext("Please follow our %(linkStart)sreview guidelines%(linkEnd)s."),replacements:[["linkStart","linkEnd",function(e){return r.createElement(wc,{key:"review-guide",prependClientApp:!1,to:"/review_guide"},e)}]]}),s=r.createElement("div",null,c),l=n.gettext("Write about your experience with this add-on."),f=n.gettext("Submit review"),p=n.gettext("Submitting review");return i.body&&(f=n.gettext("Update review"),p=n.gettext("Updating review")),r.createElement("div",{className:"AddonReviewManager"},t.renderErrorIfPresent(),r.createElement(FE,{onSelectRating:this.onSubmitRating,rating:a===Ui?void 0:i.score},r.createElement(UE,{className:"AddonReviewManager-savedRating",hideMessage:a!==Ui&&a!==Mi,message:a===Ui?n.gettext("Saving"):n.gettext("Saved")})),r.createElement(Zh,{dismissButtonText:n.gettext("Cancel"),formFooter:s,id:"".concat(Tn(BE),"-").concat(ZE(this.props)),isSubmitting:a===Bi,onDismiss:o,onSubmit:this.onSubmitReview,placeholder:l,puffyButtons:u,reverseButtonOrder:!0,submitButtonText:f,submitButtonInProgressText:p,text:i.body}))}}])&&zE(t.prototype,n),o&&zE(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);$E.defaultProps={puffyButtons:!1};const KE=(0,Mo.qC)((0,g.connect)((function(e){return{flashMessage:e.reviews.flashMessage}})),gs({fileName:BE,extractId:ZE}),Eu())($E);function QE(e){return(QE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function XE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function e_(e,t){return(e_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function t_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=r_(e);if(t){var o=r_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return n_(this,n)}}function n_(e,t){if(t&&("object"===QE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function r_(e){return(r_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var o_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&e_(e,t)}(a,e);var t,n,o,i=t_(a);function a(){var e;XE(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onClick=function(t){var n=e.props,r=n.errorHandler,o=n.dispatch,i=n.review,a=n.reason;t.preventDefault(),o(Ri({errorHandlerId:r.id,reason:a,reviewId:i.id}))},e}return t=a,(n=[{key:"renderControls",value:function(){var e=this.props,t=e.errorHandler,n=e.flagState,o=e.buttonText,i=e.wasFlaggedText;if(n){if(n.inProgress&&!t.hasError())return r.createElement(Zp,{minWidth:60});if(n.wasFlagged)return i}return r.createElement("button",{className:"FlagReview-button",onClick:this.onClick,type:"button"},o)}},{key:"render",value:function(){var e=this.props.errorHandler;return r.createElement("div",null,e.renderErrorIfPresent(),this.renderControls())}}])&&JE(t.prototype,n),o&&JE(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const i_=(0,Mo.qC)((0,g.connect)((function(e,t){var n={};if(t.review){var r=e.reviews.view[t.review.id];r&&r.flag&&r.flag.reason===t.reason&&(n=r.flag)}return{flagState:n}})),ms({name:"FlagReview",extractId:function(e){return String(e.review.id)}}))(o_);function a_(e){return(a_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s_(e,t){return(s_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p_(e);if(t){var o=p_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f_(this,n)}}function f_(e,t){if(t&&("object"===a_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p_(e){return(p_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s_(e,t)}(a,e);var t,n,o,i=l_(a);function a(){return u_(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className;return r.createElement("li",{className:Ho()("ListItem",n)},t)}}])&&c_(t.prototype,n),o&&c_(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);function h_(e){return(h_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m_(Object(n),!0).forEach((function(t){y_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g_(e,t){if(null==e)return{};var n,r,o=(0,vh.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O_(e,t,n){return t&&w_(e.prototype,t),n&&w_(e,n),e}var E_=a(40589);function __(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,E_.Z)(e,t)}function x_(e){return(x_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S_(e,t){return!t||"object"!==h_(t)&&"function"!=typeof t?(0,Pm.Z)(e):t}function j_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x_(e);if(t){var o=x_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S_(this,n)}}var P_=function(e){return+setTimeout(e,16)},k_=function(e){return clearTimeout(e)};function I_(e){return P_(e)}function T_(e,t){return!!e&&e.contains(t)}function R_(e){return e instanceof HTMLElement?e:o.findDOMNode(e)}"undefined"!=typeof window&&"requestAnimationFrame"in window&&(P_=function(e){return window.requestAnimationFrame(e)},k_=function(e){return window.cancelAnimationFrame(e)}),I_.cancel=k_;var C_=a(2781);function A_(e,t){"function"==typeof e?e(t):"object"===h_(e)&&e&&"current"in e&&(e.current=t)}function N_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){A_(t,e)}))}}function L_(e,t,n,r){var i=o.unstable_batchedUpdates?function(e){o.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i)}}}function D_(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}const M_=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,i=e.getContainer,a=e.children,u=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var c=(0,r.useRef)(!1);return!c.current&&D_()&&(u.current=i(),c.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return function(){var e,t;null===(e=u.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(u.current)}}),[]),u.current?o.createPortal(a,u.current):null}));var F_=a(56355),U_=a.n(F_);function B_(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function H_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function q_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H_(e,t):void 0}}(e,t)||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.")}()}var z_=a(68365),G_=a.n(z_);function W_(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var V_,Y_,Z_,$_=(V_=D_(),Y_="undefined"!=typeof window?window:{},Z_={animationend:W_("Animation","AnimationEnd"),transitionend:W_("Transition","TransitionEnd")},V_&&("AnimationEvent"in Y_||delete Z_.animationend.animation,"TransitionEvent"in Y_||delete Z_.transitionend.transition),Z_),K_={};if(D_()){var Q_=document.createElement("div");K_=Q_.style}var X_={};function J_(e){if(X_[e])return X_[e];var t=$_[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in K_)return X_[e]=t[i],X_[e]}return""}var ex=J_("animationend"),tx=J_("transitionend"),nx=!(!ex||!tx),rx=ex||"animationend",ox=tx||"transitionend";function ix(e,t){return e?"object"===h_(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var ax="none",ux="appear",cx="enter",sx="leave",lx="none",fx="prepare",px="start",dx="active",hx="end";function yx(e){var t=(0,r.useRef)(!1),n=q_((0,r.useState)(e),2),o=n[0],i=n[1];return(0,r.useEffect)((function(){return function(){t.current=!0}}),[]),[o,function(e){t.current||i(e)}]}const mx=D_()?r.useLayoutEffect:r.useEffect;var vx=[fx,px,dx,hx];function gx(e){return e===dx||e===hx}const bx=function(e,t){var n=q_(r.useState(lx),2),o=n[0],i=n[1],a=q_(function(){var e=r.useRef(null);function t(){I_.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=I_((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),2),u=a[0],c=a[1];return mx((function(){if(o!==lx&&o!==hx){var e=vx.indexOf(o),n=vx[e+1],r=t(o);false===r?i(n):u((function(e){function t(){e.isCanceled()||i(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,o]),r.useEffect((function(){return function(){c()}}),[]),[function(){i(fx)},o]};function wx(e,t,n,o){var i=o.motionEnter,a=void 0===i||i,u=o.motionAppear,c=void 0===u||u,s=o.motionLeave,l=void 0===s||s,f=o.motionDeadline,p=o.motionLeaveImmediately,d=o.onAppearPrepare,h=o.onEnterPrepare,y=o.onLeavePrepare,m=o.onAppearStart,v=o.onEnterStart,g=o.onLeaveStart,b=o.onAppearActive,w=o.onEnterActive,O=o.onLeaveActive,E=o.onAppearEnd,_=o.onEnterEnd,x=o.onLeaveEnd,S=o.onVisibleChanged,j=q_(yx(),2),P=j[0],k=j[1],I=q_(yx(ax),2),T=I[0],R=I[1],C=q_(yx(null),2),A=C[0],N=C[1],L=(0,r.useRef)(!1),D=(0,r.useRef)(null),M=(0,r.useRef)(!1),F=(0,r.useRef)(null);function U(){return n()||F.current}var B=(0,r.useRef)(!1);function H(e){var t,n=U();e&&!e.deadline&&e.target!==n||(T===ux&&B.current?t=null==E?void 0:E(n,e):T===cx&&B.current?t=null==_?void 0:_(n,e):T===sx&&B.current&&(t=null==x?void 0:x(n,e)),!1===t||M.current||(R(ax),N(null)))}var q=q_(function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var o=r.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(ox,o),e.removeEventListener(rx,o))}return r.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(ox,o),e.addEventListener(rx,o),t.current=e)},i]}(H),1)[0],z=r.useMemo((function(){var e,t,n;switch(T){case"appear":return y_(e={},fx,d),y_(e,px,m),y_(e,dx,b),e;case"enter":return y_(t={},fx,h),y_(t,px,v),y_(t,dx,w),t;case"leave":return y_(n={},fx,y),y_(n,px,g),y_(n,dx,O),n;default:return{}}}),[T]),G=q_(bx(T,(function(e){if(e===fx){var t=z.prepare;return!!t&&t(U())}var n;V in z&&N((null===(n=z[V])||void 0===n?void 0:n.call(z,U(),null))||null);return V===dx&&(q(U()),f>0&&(clearTimeout(D.current),D.current=setTimeout((function(){H({deadline:!0})}),f))),true})),2),W=G[0],V=G[1],Y=gx(V);B.current=Y,mx((function(){if(k(t),e){var n,r=L.current;L.current=!0,!r&&t&&c&&(n=ux),r&&t&&a&&(n=cx),(r&&!t&&l||!r&&p&&!t&&l)&&(n=sx),n&&(R(n),W())}}),[t]),(0,r.useEffect)((function(){(T===ux&&!c||T===cx&&!a||T===sx&&!l)&&R(ax)}),[c,a,l]),(0,r.useEffect)((function(){return function(){clearTimeout(D.current),M.current=!0}}),[]),(0,r.useEffect)((function(){void 0!==P&&T===ax&&(null==S||S(P))}),[P,T]);var Z=A;return z.prepare&&V===px&&(Z=v_({transition:"none"},Z)),[T,V,Z,null!=P?P:t]}const Ox=function(e){__(n,e);var t=j_(n);function n(){return b_(this,n),t.apply(this,arguments)}return O_(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);const Ex=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===h_(e)&&(t=e.transitionSupport);var o=r.forwardRef((function(e,t){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,u=void 0===a||a,c=e.forceRender,s=e.children,l=e.motionName,f=e.leavedClassName,p=e.eventProps,d=n(e),h=(0,r.useRef)(),y=(0,r.useRef)();var m=q_(wx(d,i,(function(){try{return R_(h.current||y.current)}catch(e){return null}}),e),4),v=m[0],g=m[1],b=m[2],w=m[3],O=(0,r.useRef)(t);O.current=t;var E,_=r.useCallback((function(e){h.current=e,A_(O.current,e)}),[]),x=v_(v_({},p),{},{visible:i});if(s)if(v!==ax&&n(e)){var S,j;g===fx?j="prepare":gx(g)?j="active":g===px&&(j="start"),E=s(v_(v_({},x),{},{className:G_()(ix(l,v),(S={},y_(S,ix(l,"".concat(v,"-").concat(j)),j),y_(S,l,"string"==typeof l),S)),style:b}),_)}else E=w?s(v_({},x),_):u?c?s(v_(v_({},x),{},{style:{display:"none"}}),_):null:s(v_(v_({},x),{},{className:f}),_);else E=null;return r.createElement(Ox,{ref:y},E)}));return o.displayName="CSSMotion",o}(nx);var _x="add",xx="keep",Sx="remove",jx="removed";function Px(e){var t;return v_(v_({},t=e&&"object"===h_(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function kx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Px)}function Ix(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=kx(e),a=kx(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var u=a[i];if(u.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return v_(v_({},e),{},{status:_x})}))),r=i),n.push(v_(v_({},u),{},{status:xx})),r+=1,t=!0;break}}t||n.push(v_(v_({},e),{},{status:Sx}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return v_(v_({},e),{},{status:_x})}))));var u={};n.forEach((function(e){var t=e.key;u[t]=(u[t]||0)+1}));var c=Object.keys(u).filter((function(e){return u[e]>1}));return c.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Sx}))).forEach((function(t){t.key===e&&(t.status=xx)}))})),n}var Tx=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ex,n=function(e){__(o,e);var n=j_(o);function o(){var e;return b_(this,o),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:v_(v_({},e),{},{status:jx})}))}}))},e}return O_(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,u=o.onVisibleChanged,c=g_(o,["component","children","onVisibleChanged"]),s=i||r.Fragment,l={};return Tx.forEach((function(e){l[e]=c[e],delete c[e]})),delete c.keys,r.createElement(s,Object.assign({},c),n.map((function(n){var o=n.status,i=g_(n,["status"]),c=o===_x||o===xx;return r.createElement(t,Object.assign({},l,{key:i.key,visible:c,eventProps:i,onVisibleChanged:function(t){null==u||u(t,{key:i.key}),t||e.removeKey(i.key)}}),a)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=kx(n);return{keyEntities:Ix(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==jx||e.status!==Sx}))}}}]),o}(r.Component);n.defaultProps={component:"div"}}(nx);const Rx=Ex;function Cx(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function Ax(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,i=e.mask,a=e.maskMotion,u=e.maskAnimation,c=e.maskTransitionName;if(!i)return null;var s={};return(a||c||u)&&(s=v_({motionAppear:!0},Cx({motion:a,prefixCls:t,transitionName:c,animation:u}))),r.createElement(Rx,(0,mh.Z)({},s,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:U_()("".concat(t,"-mask"),n)})}))}function Nx(e){return(Nx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Mx,Fx={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Ux(){if(void 0!==Mx)return Mx;Mx="";var e=document.createElement("p").style;for(var t in Fx)t+"Transform"in e&&(Mx=t);return Mx}function Bx(){return Ux()?"".concat(Ux(),"TransitionProperty"):"transitionProperty"}function Hx(){return Ux()?"".concat(Ux(),"Transform"):"transform"}function qx(e,t){var n=Bx();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function zx(e,t){var n=Hx();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var Gx,Wx=/matrix\((.*)\)/,Vx=/matrix3d\((.*)\)/;function Yx(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function Zx(e,t,n){var r=n;if("object"!==Nx(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):Gx(e,t);for(var o in t)t.hasOwnProperty(o)&&Zx(e,o,t[o])}function $x(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function Kx(e){return $x(e)}function Qx(e){return $x(e,!0)}function Xx(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Kx(r),t.top+=Qx(r),t}function Jx(e){return null!=e&&e==e.window}function eS(e){return Jx(e)?e.document:9===e.nodeType?e:e.ownerDocument}var tS=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),nS=/^(top|right|bottom|left)$/;function rS(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function oS(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function iS(e,t,n){"static"===Zx(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=rS("left",n),a=rS("top",n),u=oS(i),c=oS(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,l="",f=Xx(e);("left"in t||"top"in t)&&(l=(s=e).style.transitionProperty||s.style[Bx()]||"",qx(e,"none")),"left"in t&&(e.style[u]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[c]="",e.style[a]="".concat(o,"px")),Yx(e);var p=Xx(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var y=rS(h,n),m="left"===h?r:o,v=f[h]-p[h];d[y]=y===h?m+v:m-v}Zx(e,d),Yx(e),("left"in t||"top"in t)&&qx(e,l);var g={};for(var b in t)if(t.hasOwnProperty(b)){var w=rS(b,n),O=t[b]-f[b];g[w]=b===w?d[w]+O:d[w]-O}Zx(e,g)}function aS(e,t){var n=Xx(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(Hx());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(Hx());if(r&&"none"!==r){var o,i=r.match(Wx);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,zx(e,"matrix(".concat(o.join(","),")"))):((o=r.match(Vx)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,zx(e,"matrix3d(".concat(o.join(","),")")))}else zx(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function uS(e,t){for(var n=0;n<e.length;n++)t(e[n])}function cS(e){return"border-box"===Gx(e,"boxSizing")}"undefined"!=typeof window&&(Gx=window.getComputedStyle?function(e,t,n){var r=n,o="",i=eS(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(tS.test(n)&&!nS.test(t)){var r=e.style,o=r.left,i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=o,e.runtimeStyle.left=i}return""===n?"auto":n});var sS=["margin","border","padding"];function lS(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function fS(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var u=void 0;u="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(Gx(e,u))||0}return a}var pS={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function dS(e,t,n){var r=n;if(Jx(e))return"width"===t?pS.viewportWidth(e):pS.viewportHeight(e);if(9===e.nodeType)return"width"===t?pS.docWidth(e):pS.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,a=(Gx(e),cS(e)),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=Gx(e,t))||Number(u)<0)&&(u=e.style[t]||0),u=parseFloat(u)||0),void 0===r&&(r=a?1:-1);var c=void 0!==i||a,s=i||u;return-1===r?c?s-fS(e,["border","padding"],o):u:c?1===r?s:s+(2===r?-fS(e,["border"],o):fS(e,["margin"],o)):u+fS(e,sS.slice(r),o)}uS(["Width","Height"],(function(e){pS["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],pS["viewport".concat(e)](n))},pS["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var hS={position:"absolute",visibility:"hidden",display:"block"};function yS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=dS.apply(void 0,t):lS(o,hS,(function(){r=dS.apply(void 0,t)})),r}function mS(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}uS(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);pS["outer".concat(t)]=function(t,n){return t&&yS(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];pS[e]=function(t,r){var o=r;if(void 0===o)return t&&yS(t,e,-1);if(t){Gx(t);return cS(t)&&(o+=fS(t,["padding","border"],n)),Zx(t,e,o)}}}));var vS={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:eS,offset:function(e,t,n){if(void 0===t)return Xx(e);!function(e,t,n){if(n.ignoreShake){var r=Xx(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),u=t.top.toFixed(0);if(o===a&&i===u)return}n.useCssRight||n.useCssBottom?iS(e,t,n):n.useCssTransform&&Hx()in document.body.style?aS(e,t):iS(e,t,n)}(e,t,n||{})},isWindow:Jx,each:uS,css:Zx,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:mS,getWindowScrollLeft:function(e){return Kx(e)},getWindowScrollTop:function(e){return Qx(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)vS.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};mS(vS,pS);var gS=vS.getParent;function bS(e){if(vS.isWindow(e)||9===e.nodeType)return null;var t,n=vS.getDocument(e).body,r=vS.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:gS(e);for(t=gS(e);t&&t!==n&&9!==t.nodeType;t=gS(t))if("static"!==(r=vS.css(t,"position")))return t;return null}var wS=vS.getParent;function OS(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=bS(e),o=vS.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,u=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===u||"visible"===vS.css(r,"overflow")){if(r===a||r===u)break}else{var c=vS.offset(r);c.left+=r.clientLeft,c.top+=r.clientTop,n.top=Math.max(n.top,c.top),n.right=Math.min(n.right,c.left+r.clientWidth),n.bottom=Math.min(n.bottom,c.top+r.clientHeight),n.left=Math.max(n.left,c.left)}r=bS(r)}var s=null;vS.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===vS.css(e,"position")&&(e.style.position="fixed"));var l=vS.getWindowScrollLeft(i),f=vS.getWindowScrollTop(i),p=vS.viewportWidth(i),d=vS.viewportHeight(i),h=u.scrollWidth,y=u.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(h=i.innerWidth),"hidden"===m.overflowY&&(y=i.innerHeight),e.style&&(e.style.position=s),t||function(e){if(vS.isWindow(e)||9===e.nodeType)return!1;var t=vS.getDocument(e).body,n=null;for(n=wS(e);n&&n!==t;n=wS(n))if("fixed"===vS.css(n,"position"))return!0;return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,f),n.right=Math.min(n.right,l+p),n.bottom=Math.min(n.bottom,f+d);else{var v=Math.max(h,l+p);n.right=Math.min(n.right,v);var g=Math.max(y,f+d);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function ES(e){var t,n,r;if(vS.isWindow(e)||9===e.nodeType){var o=vS.getWindow(e);t={left:vS.getWindowScrollLeft(o),top:vS.getWindowScrollTop(o)},n=vS.viewportWidth(o),r=vS.viewportHeight(o)}else t=vS.offset(e),n=vS.outerWidth(e),r=vS.outerHeight(e);return t.width=n,t.height=r,t}function _S(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function xS(e,t,n,r,o){var i=_S(t,n[1]),a=_S(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function SS(e,t,n){return e.left<n.left||e.left+t.width>n.right}function jS(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function PS(e,t,n){var r=[];return vS.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function kS(e,t){return e[t]=-e[t],e}function IS(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function TS(e,t){e[0]=IS(e[0],t.width),e[1]=IS(e[1],t.height)}function RS(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,c=n.source||e;i=[].concat(i),a=[].concat(a);var s={},l=0,f=OS(c,!(!(u=u||{})||!u.alwaysByViewport)),p=ES(c);TS(i,p),TS(a,t);var d=xS(p,t,o,i,a),h=vS.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&SS(d,p,f)){var y=PS(o,/[lr]/gi,{l:"r",r:"l"}),m=kS(i,0),v=kS(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(xS(p,t,y,m,v),p,f)||(l=1,o=y,i=m,a=v)}if(u.adjustY&&jS(d,p,f)){var g=PS(o,/[tb]/gi,{t:"b",b:"t"}),b=kS(i,1),w=kS(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(xS(p,t,g,b,w),p,f)||(l=1,o=g,i=b,a=w)}l&&(d=xS(p,t,o,i,a),vS.mix(h,d));var O=SS(d,p,f),E=jS(d,p,f);if(O||E){var _=o;O&&(_=PS(o,/[lr]/gi,{l:"r",r:"l"})),E&&(_=PS(o,/[tb]/gi,{t:"b",b:"t"})),o=_,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=u.adjustX&&O,s.adjustY=u.adjustY&&E,(s.adjustX||s.adjustY)&&(h=function(e,t,n,r){var o=vS.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),vS.mix(o,i)}(d,p,f,s))}return h.width!==p.width&&vS.css(c,"width",vS.width(c)+h.width-p.width),h.height!==p.height&&vS.css(c,"height",vS.height(c)+h.height-p.height),vS.offset(c,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function CS(e,t,n){var r=n.target||t;return RS(e,ES(r),n,!function(e,t){var n=OS(e,t),r=ES(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport))}function AS(e,t,n){var r,o,i=vS.getDocument(e),a=i.defaultView||i.parentWindow,u=vS.getWindowScrollLeft(a),c=vS.getWindowScrollTop(a),s=vS.viewportWidth(a),l=vS.viewportHeight(a);r="pageX"in t?t.pageX:u+t.clientX,o="pageY"in t?t.pageY:c+t.clientY;var f=r>=0&&r<=u+s&&o>=0&&o<=c+l;return RS(e,{left:r,top:o,width:0,height:0},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dx(n,!0).forEach((function(t){Lx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dx(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{points:[n.points[0],"cc"]}),f)}CS.__getOffsetParent=bS,CS.__getVisibleRectForElement=OS;var NS=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),LS="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,DS=void 0!==a.g&&a.g.Math===Math?a.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),MS="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(DS):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var FS=["top","right","bottom","left","width","height","size","weight"],US="undefined"!=typeof MutationObserver,BS=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function a(){MS(i)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){LS&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),US?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){LS&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;FS.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),HS=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},qS=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||DS},zS=$S(0,0,0,0);function GS(e){return parseFloat(e)||0}function WS(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+GS(e["border-"+n+"-width"])}),0)}function VS(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return zS;var r=qS(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=GS(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=GS(r.width),c=GS(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=WS(r,"left","right")+i),Math.round(c+a)!==n&&(c-=WS(r,"top","bottom")+a)),!function(e){return e===qS(e).document.documentElement}(e)){var s=Math.round(u+i)-t,l=Math.round(c+a)-n;1!==Math.abs(s)&&(u-=s),1!==Math.abs(l)&&(c-=l)}return $S(o.left,o.top,u,c)}var YS="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof qS(e).SVGGraphicsElement}:function(e){return e instanceof qS(e).SVGElement&&"function"==typeof e.getBBox};function ZS(e){return LS?YS(e)?function(e){var t=e.getBBox();return $S(0,0,t.width,t.height)}(e):VS(e):zS}function $S(e,t,n,r){return{x:e,y:t,width:n,height:r}}var KS=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ZS(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),QS=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return HS(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);HS(this,{target:e,contentRect:n})},XS=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new NS,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof qS(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new KS(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof qS(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new QS(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),JS="undefined"!=typeof WeakMap?new WeakMap:new NS,ej=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=BS.getInstance(),r=new XS(t,n,this);JS.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ej.prototype[e]=function(){var t;return(t=JS.get(this))[e].apply(t,arguments)}}));const tj=void 0!==DS.ResizeObserver?DS.ResizeObserver:ej;function nj(e,t){var n=null,r=null;var o=new tj((function(e){var o=q_(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,u=i.height,c=Math.floor(a),s=Math.floor(u);n===c&&r===s||Promise.resolve().then((function(){t({width:c,height:s})})),n=c,r=s}}));return e&&o.observe(e),function(){o.disconnect()}}function rj(e){return"function"!=typeof e?null:e()}function oj(e){return"object"===h_(e)&&e?e:null}var ij=r.forwardRef((function(e,t){var n=e.children,o=e.disabled,i=e.target,a=e.align,u=e.onAlign,c=e.monitorWindowResize,s=e.monitorBufferTime,l=void 0===s?0:s,f=r.useRef({}),p=r.useRef(),d=r.Children.only(n),h=r.useRef({});h.current.disabled=o,h.current.target=i,h.current.onAlign=u;var y=q_(function(e,t){var n=r.useRef(!1),o=r.useRef(null);function i(){window.clearTimeout(o.current)}return[function r(a){if(n.current&&!0!==a)i(),o.current=window.setTimeout((function(){n.current=!1,r()}),t);else{if(!1===e())return;n.current=!0,i(),o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.onAlign;if(!t&&n){var o,i=p.current,u=rj(n),c=oj(n);f.current.element=u,f.current.point=c;var s=document.activeElement;return u&&function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1}(u)?o=CS(i,u,a):c&&(o=AS(i,c,a)),function(e,t){e!==document.activeElement&&T_(t,e)&&"function"==typeof e.focus&&e.focus()}(s,i),r&&o&&r(i,o),!0}return!1}),l),2),m=y[0],v=y[1],g=r.useRef({cancel:function(){}}),b=r.useRef({cancel:function(){}});r.useEffect((function(){var e,t,n=rj(i),r=oj(i);p.current!==b.current.element&&(b.current.cancel(),b.current.element=p.current,b.current.cancel=nj(p.current,m)),f.current.element===n&&((e=f.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(m(),g.current.element!==n&&(g.current.cancel(),g.current.element=n,g.current.cancel=nj(n,m)))})),r.useEffect((function(){o?v():m()}),[o]);var w=r.useRef(null);return r.useEffect((function(){c?w.current||(w.current=L_(window,"resize",m)):w.current&&(w.current.remove(),w.current=null)}),[c]),r.useEffect((function(){return function(){g.current.cancel(),b.current.cancel(),w.current&&w.current.remove(),v()}}),[]),r.useImperativeHandle(t,(function(){return{forceAlign:function(){return m(!0)}}})),r.isValidElement(d)&&(d=r.cloneElement(d,{ref:N_(d.ref,p)})),d}));ij.displayName="Align";const aj=ij;var uj=a(66534),cj=a.n(uj);function sj(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function lj(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){sj(i,r,o,a,u,"next",e)}function u(e){sj(i,r,o,a,u,"throw",e)}a(void 0)}))}}var fj=["measure","align",null,"motion"];var pj=r.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,i=e.className,a=e.style,u=e.children,c=e.zIndex,s=e.stretch,l=e.destroyPopupOnHide,f=e.align,p=e.point,d=e.getRootDomNode,h=e.getClassNameFromAlign,y=e.onAlign,m=e.onMouseEnter,v=e.onMouseLeave,g=e.onMouseDown,b=e.onTouchStart,w=(0,r.useRef)(),O=(0,r.useRef)(),E=q_((0,r.useState)(),2),_=E[0],x=E[1],S=function(e){var t=q_(r.useState({width:0,height:0}),2),n=t[0],o=t[1];return[r.useMemo((function(){var t={};if(e){var r=n.width,o=n.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,n]),function(e){o({width:e.offsetWidth,height:e.offsetHeight})}]}(s),j=q_(S,2),P=j[0],k=j[1];var I=function(e,t){var n=q_((0,r.useState)(null),2),o=n[0],i=n[1],a=(0,r.useRef)(),u=(0,r.useRef)(!1);function c(e){u.current||i(e)}function s(){I_.cancel(a.current)}return(0,r.useEffect)((function(){c("measure")}),[e]),(0,r.useEffect)((function(){switch(o){case"measure":t()}o&&(a.current=I_(lj(cj().mark((function e(){var t,n;return cj().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=fj.indexOf(o),(n=fj[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,r.useEffect)((function(){return function(){u.current=!0,s()}}),[]),[o,function(e){s(),a.current=I_((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){s&&k(d())})),T=q_(I,2),R=T[0],C=T[1],A=(0,r.useRef)();function N(){var e;null===(e=w.current)||void 0===e||e.forceAlign()}function L(e,t){if("align"===R){var n=h(t);x(n),_!==n?Promise.resolve().then((function(){N()})):C((function(){var e;null===(e=A.current)||void 0===e||e.call(A)})),null==y||y(e,t)}}var D=v_({},Cx(e));function M(){return new Promise((function(e){A.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=D[e];D[e]=function(e,n){return C(),null==t?void 0:t(e,n)}})),r.useEffect((function(){D.motionName||"motion"!==R||C()}),[D.motionName,R]),r.useImperativeHandle(t,(function(){return{forceAlign:N,getElement:function(){return O.current}}}));var F=v_(v_(v_({},P),{},{zIndex:c},a),{},{opacity:"motion"!==R&&"stable"!==R&&n?0:void 0,pointerEvents:"stable"===R?void 0:"none"}),U=!0;!(null==f?void 0:f.points)||"align"!==R&&"stable"!==R||(U=!1);var B=u;return r.Children.count(u)>1&&(B=r.createElement("div",{className:"".concat(o,"-content")},u)),r.createElement(Rx,(0,mh.Z)({visible:n,ref:O,leavedClassName:"".concat(o,"-hidden")},D,{onAppearPrepare:M,onEnterPrepare:M,removeOnLeave:l}),(function(e,t){var n=e.className,a=e.style,u=U_()(o,i,_,n);return r.createElement(aj,{target:p||d,key:"popup",ref:w,monitorWindowResize:!0,disabled:U,align:f,onAlign:L},r.createElement("div",{ref:t,className:u,onMouseEnter:m,onMouseLeave:v,onMouseDown:g,onTouchStart:b,style:v_(v_({},a),F)},B))}))}));pj.displayName="PopupInner";const dj=pj;var hj=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,i=e.zIndex,a=e.children,u=e.mobile,c=(u=void 0===u?{}:u).popupClassName,s=u.popupStyle,l=u.popupMotion,f=void 0===l?{}:l,p=u.popupRender,d=r.useRef();r.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return d.current}}}));var h=v_({zIndex:i},s),y=a;return r.Children.count(a)>1&&(y=r.createElement("div",{className:"".concat(n,"-content")},a)),p&&(y=p(y)),r.createElement(Rx,(0,mh.Z)({visible:o,ref:d,removeOnLeave:!0},f),(function(e,t){var o=e.className,i=e.style,a=U_()(n,c,o);return r.createElement("div",{ref:t,className:a,style:v_(v_({},i),h)},y)}))}));hj.displayName="MobilePopupInner";const yj=hj;var mj=r.forwardRef((function(e,t){var n=e.visible,o=e.mobile,i=g_(e,["visible","mobile"]),a=q_((0,r.useState)(n),2),u=a[0],c=a[1],s=q_((0,r.useState)(!1),2),l=s[0],f=s[1],p=v_(v_({},i),{},{visible:u});(0,r.useEffect)((function(){c(n),n&&o&&f(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))}())}),[n,o]);var d=l?r.createElement(yj,(0,mh.Z)({},p,{mobile:o,ref:t})):r.createElement(dj,(0,mh.Z)({},p,{ref:t}));return r.createElement("div",null,r.createElement(Ax,p),d)}));mj.displayName="Popup";const vj=mj;const gj=r.createContext(null);function bj(){}function wj(){return""}function Oj(e){return e?e.ownerDocument:window.document}var Ej=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const _j=(xj=M_,(Sj=function(e){__(n,e);var t=j_(n);function n(e){var i,a;return b_(this,n),(i=t.call(this,e)).popupRef=r.createRef(),i.triggerRef=r.createRef(),i.onMouseEnter=function(e){var t=i.props.mouseEnterDelay;i.fireEvents("onMouseEnter",e),i.delaySetPopupVisible(!0,t,t?null:e)},i.onMouseMove=function(e){i.fireEvents("onMouseMove",e),i.setPoint(e)},i.onMouseLeave=function(e){i.fireEvents("onMouseLeave",e),i.delaySetPopupVisible(!1,i.props.mouseLeaveDelay)},i.onPopupMouseEnter=function(){i.clearDelayTimer()},i.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&T_(null===(t=i.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||i.delaySetPopupVisible(!1,i.props.mouseLeaveDelay)},i.onFocus=function(e){i.fireEvents("onFocus",e),i.clearDelayTimer(),i.isFocusToShow()&&(i.focusTime=Date.now(),i.delaySetPopupVisible(!0,i.props.focusDelay))},i.onMouseDown=function(e){i.fireEvents("onMouseDown",e),i.preClickTime=Date.now()},i.onTouchStart=function(e){i.fireEvents("onTouchStart",e),i.preTouchTime=Date.now()},i.onBlur=function(e){i.fireEvents("onBlur",e),i.clearDelayTimer(),i.isBlurToHide()&&i.delaySetPopupVisible(!1,i.props.blurDelay)},i.onContextMenu=function(e){e.preventDefault(),i.fireEvents("onContextMenu",e),i.setPopupVisible(!0,e)},i.onContextMenuClose=function(){i.isContextMenuToShow()&&i.close()},i.onClick=function(e){if(i.fireEvents("onClick",e),i.focusTime){var t;if(i.preClickTime&&i.preTouchTime?t=Math.min(i.preClickTime,i.preTouchTime):i.preClickTime?t=i.preClickTime:i.preTouchTime&&(t=i.preTouchTime),Math.abs(t-i.focusTime)<20)return;i.focusTime=0}i.preClickTime=0,i.preTouchTime=0,i.isClickToShow()&&(i.isClickToHide()||i.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!i.state.popupVisible;(i.isClickToHide()&&!n||n&&i.isClickToShow())&&i.setPopupVisible(!i.state.popupVisible,e)},i.onPopupMouseDown=function(){var e;i.hasPopupMouseDown=!0,clearTimeout(i.mouseDownTimeout),i.mouseDownTimeout=window.setTimeout((function(){i.hasPopupMouseDown=!1}),0),i.context&&(e=i.context).onPopupMouseDown.apply(e,arguments)},i.onDocumentClick=function(e){if(!i.props.mask||i.props.maskClosable){var t=e.target,n=i.getRootDomNode(),r=i.getPopupDomNode();T_(n,t)||T_(r,t)||i.hasPopupMouseDown||i.close()}},i.getRootDomNode=function(){var e=i.props.getTriggerDOMNode;if(e)return e(i.triggerRef.current);try{var t=R_(i.triggerRef.current);if(t)return t}catch(e){}return o.findDOMNode((0,Pm.Z)(i))},i.getPopupClassNameFromAlign=function(e){var t=[],n=i.props,r=n.popupPlacement,o=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,c=n.getPopupClassNameFromAlign;return r&&o&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var u=i[a];if(B_(e[u].points,o,r))return"".concat(t,"-placement-").concat(u)}return""}(o,a,e,u)),c&&t.push(c(e)),t.join(" ")},i.getComponent=function(){var e=i.props,t=e.prefixCls,n=e.destroyPopupOnHide,o=e.popupClassName,a=e.onPopupAlign,u=e.popupMotion,c=e.popupAnimation,s=e.popupTransitionName,l=e.popupStyle,f=e.mask,p=e.maskAnimation,d=e.maskTransitionName,h=e.maskMotion,y=e.zIndex,m=e.popup,v=e.stretch,g=e.alignPoint,b=e.mobile,w=i.state,O=w.popupVisible,E=w.point,_=i.getPopupAlign(),x={};return i.isMouseEnterToShow()&&(x.onMouseEnter=i.onPopupMouseEnter),i.isMouseLeaveToHide()&&(x.onMouseLeave=i.onPopupMouseLeave),x.onMouseDown=i.onPopupMouseDown,x.onTouchStart=i.onPopupMouseDown,r.createElement(vj,(0,mh.Z)({prefixCls:t,destroyPopupOnHide:n,visible:O,point:g&&E,className:o,align:_,onAlign:a,animation:c,getClassNameFromAlign:i.getPopupClassNameFromAlign},x,{stretch:v,getRootDomNode:i.getRootDomNode,style:l,mask:f,zIndex:y,transitionName:s,maskAnimation:p,maskTransitionName:d,maskMotion:h,ref:i.popupRef,motion:u,mobile:b}),"function"==typeof m?m():m)},i.attachParent=function(e){I_.cancel(i.attachId);var t,n=i.props,r=n.getPopupContainer,o=n.getDocument,a=i.getRootDomNode();r?(a||0===r.length)&&(t=r(a)):t=o(i.getRootDomNode()).body,t?t.appendChild(e):i.attachId=I_((function(){i.attachParent(e)}))},i.getContainer=function(){var e=(0,i.props.getDocument)(i.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",i.attachParent(e),e},i.setPoint=function(e){i.props.alignPoint&&e&&i.setState({point:{pageX:e.pageX,pageY:e.pageY}})},i.handlePortalUpdate=function(){i.state.prevPopupVisible!==i.state.popupVisible&&i.props.afterPopupVisibleChange(i.state.popupVisible)},a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,i.state={prevPopupVisible:a,popupVisible:a},Ej.forEach((function(e){i["fire".concat(e)]=function(t){i.fireEvents(e,t)}})),i}return O_(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=L_(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=L_(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=L_(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=L_(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),I_.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){return v_(v_({},e[t]||{}),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,u=t.autoDestroy,c=r.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var l=U_()(c&&c.props&&c.props.className,a);l&&(s.className=l);var f,p,d,h,y=v_({},s);f=c,"function"==typeof(h=(0,C_.isMemo)(f)?f.type.type:f.type)&&!(null===(p=h.prototype)||void 0===p?void 0:p.render)||"function"==typeof f&&!(null===(d=f.prototype)||void 0===d?void 0:d.render)||(y.ref=N_(this.triggerRef,c.ref));var m,v=r.cloneElement(c,y);return(e||this.popupRef.current||o)&&(m=r.createElement(xj,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&u&&(m=null),r.createElement(gj.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},v,m)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(r.Component)).contextType=gj,Sj.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:wj,getDocument:Oj,onPopupVisibleChange:bj,afterPopupVisibleChange:bj,onPopupAlign:bj,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Sj);var xj,Sj,jj={adjustX:1,adjustY:1},Pj=[0,0],kj={left:{points:["cr","cl"],overflow:jj,offset:[-4,0],targetOffset:Pj},right:{points:["cl","cr"],overflow:jj,offset:[4,0],targetOffset:Pj},top:{points:["bc","tc"],overflow:jj,offset:[0,-4],targetOffset:Pj},bottom:{points:["tc","bc"],overflow:jj,offset:[0,4],targetOffset:Pj},topLeft:{points:["bl","tl"],overflow:jj,offset:[0,-4],targetOffset:Pj},leftTop:{points:["tr","tl"],overflow:jj,offset:[-4,0],targetOffset:Pj},topRight:{points:["br","tr"],overflow:jj,offset:[0,-4],targetOffset:Pj},rightTop:{points:["tl","tr"],overflow:jj,offset:[4,0],targetOffset:Pj},bottomRight:{points:["tr","br"],overflow:jj,offset:[0,4],targetOffset:Pj},rightBottom:{points:["bl","br"],overflow:jj,offset:[4,0],targetOffset:Pj},bottomLeft:{points:["tl","bl"],overflow:jj,offset:[0,4],targetOffset:Pj},leftBottom:{points:["br","bl"],overflow:jj,offset:[-4,0],targetOffset:Pj}};const Ij=function(e){var t=e.overlay,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle;return r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof t?t():t)};var Tj=function(e,t){var n=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,a=e.mouseEnterDelay,u=void 0===a?0:a,c=e.mouseLeaveDelay,s=void 0===c?.1:c,l=e.overlayStyle,f=e.prefixCls,p=void 0===f?"rc-tooltip":f,d=e.children,h=e.onVisibleChange,y=e.afterVisibleChange,m=e.transitionName,v=e.animation,g=e.motion,b=e.placement,w=void 0===b?"right":b,O=e.align,E=void 0===O?{}:O,_=e.destroyTooltipOnHide,x=void 0!==_&&_,S=e.defaultVisible,j=e.getTooltipContainer,P=e.overlayInnerStyle,k=g_(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),I=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){return I.current}));var T=v_({},k);"visible"in e&&(T.popupVisible=e.visible);var R=!1,C=!1;if("boolean"==typeof x)R=x;else if(x&&"object"===h_(x)){var A=x.keepParent;R=!0===A,C=!1===A}return r.createElement(_j,(0,mh.Z)({popupClassName:n,prefixCls:p,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,o=e.overlay,i=e.id;return[r.createElement("div",{className:"".concat(p,"-arrow"),key:"arrow"},n),r.createElement(Ij,{key:"content",prefixCls:p,id:i,overlay:o,overlayInnerStyle:P})]},action:i,builtinPlacements:kj,popupPlacement:w,ref:I,popupAlign:E,getPopupContainer:j,onPopupVisibleChange:h,afterPopupVisibleChange:y,popupTransitionName:m,popupAnimation:v,popupMotion:g,defaultPopupVisible:S,destroyPopupOnHide:R,autoDestroy:C,mouseLeaveDelay:s,popupStyle:l,mouseEnterDelay:u},T),d)};const Rj=(0,r.forwardRef)(Tj);function Cj(e){return(Cj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Aj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lj(e,t){return(Lj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Dj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fj(e);if(t){var o=Fj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mj(this,n)}}function Mj(e,t){if(t&&("object"===Cj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fj(e){return(Fj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Uj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lj(e,t)}(a,e);var t,n,o,i=Dj(a);function a(){return Aj(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=t.idPrefix,i=t.items,a=t.openerClass,u=t.openerText,c=t.openerTitle,s="".concat(o||"","TooltipMenu");return r.createElement("div",{ref:function(t){e.container=t}},r.createElement(Rj,{align:{offset:[0,6]},getTooltipContainer:function(){return e.container},destroyTooltipOnHide:!0,id:s,overlay:r.createElement("ul",{className:"TooltipMenu-list"},i),placement:"bottom",prefixCls:"TooltipMenu",trigger:["click"]},r.createElement("button",{"aria-describedby":s,className:Ho()("TooltipMenu-opener",a,n),title:c,type:"button"},u)))}}])&&Nj(t.prototype,n),o&&Nj(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);function Bj(e){return(Bj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zj(e,t){return(zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vj(e);if(t){var o=Vj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wj(this,n)}}function Wj(e,t){if(t&&("object"===Bj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Vj(e){return(Vj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zj(e,t)}(a,e);var t,n,o,i=Gj(a);function a(){return Hj(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e,t=this.props,n=t.i18n,o=t.isDeveloperReply,i=t.openerClass,a=t.review,u=t.siteUser,c=t.wasFlagged;return ce()(!u||u.id!==a.userId,"A user cannot flag their own review."),e=u?[r.createElement(d_,{className:"FlagReviewMenu-flag-spam-item",key:"flag-spam"},r.createElement(i_,{reason:D.uW,review:a,buttonText:n.gettext("This is spam"),wasFlaggedText:n.gettext("Flagged as spam")})),r.createElement(d_,{className:"FlagReviewMenu-flag-language-item",key:"flag-language"},r.createElement(i_,{reason:D.OC,review:a,buttonText:n.gettext("This contains inappropriate language"),wasFlaggedText:n.gettext("Flagged for inappropriate language")})),o?null:r.createElement(d_,{className:"FlagReviewMenu-flag-bug-support-item",key:"flag-bug-support"},r.createElement(i_,{reason:D.xw,review:a,buttonText:n.gettext("This is a bug report or support request"),wasFlaggedText:n.gettext("Flagged as a bug report or support request")}))]:[r.createElement(d_,{key:"login-required"},r.createElement(Ew,{noIcon:!0,logInText:o?n.gettext("Log in to flag this response"):n.gettext("Log in to flag this review")}))],r.createElement(Uj,{className:"FlagReviewMenu-menu",idPrefix:"flag-review-",items:e,openerClass:i,openerText:c?n.gettext("Flagged"):n.gettext("Flag"),openerTitle:o?n.gettext("Flag this developer response"):n.gettext("Flag this review")})}}])&&qj(t.prototype,n),o&&qj(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);Yj.defaultProps={isDeveloperReply:!1};const Zj=(0,Mo.qC)((0,g.connect)((function(e,t){var n=!1;if(t.review){var r=e.reviews.view[t.review.id];r&&r.flag&&r.flag.wasFlagged&&(n=!0)}return{wasFlagged:n,siteUser:Xe(e.users)}})),Eu())(Yj);const $j=(0,Mo.qC)(Eu())((function(e){var t=e.cancelButtonText,n=e.cancelButtonType,o=void 0===n?"cancel":n,i=e.className,a=e.confirmButtonText,u=e.confirmButtonType,c=void 0===u?"alert":u,s=e.i18n,l=e.onCancel,f=e.onConfirm,p=e.message,d=e.puffyButtons;return r.createElement("div",{className:Ho()("ConfirmationDialog",i)},p&&r.createElement("span",{className:"ConfirmationDialog-message"},p),r.createElement("div",{className:"ConfirmationDialog-buttons"},r.createElement(Dc,{buttonType:c,className:"ConfirmationDialog-confirm-button",onClick:f,puffy:d},a||s.gettext("Confirm")),r.createElement(Dc,{buttonType:o,className:"ConfirmationDialog-cancel-button",onClick:l,puffy:d},t||s.gettext("Cancel"))))}));const Kj=(0,Mo.qC)(Eu(),(0,g.connect)((function(e,t){var n=t.review,r=Xe(e.users);return{isOwner:!(!r||!n||n.userId!==r.id)}})))((function(e){var t=e.className,n=e.isOwner,o=e.readOnly,i=e.onSelectRating,a=e.review,u=e.styleSize;return r.createElement(id,{className:t,onSelectRating:i,rating:a&&a.score,readOnly:o||!1,styleSize:u,yellowStars:n})}));function Qj(e){var t=e.content,n=e.html,o=e.id;ce()(void 0!==t||void 0!==n||void 0!==o,"content or html or id is required");var i={};return t?i.children=t:i.dangerouslySetInnerHTML=n,r.createElement(eE,{id:o,contentId:o,className:Ho()("UserReview-body",{"UserReview-emptyBody":!t&&!n})},r.createElement("div",i))}const Xj=(0,Mo.qC)(Eu())((function(e){var t=e.byLine,n=e.children,o=e.controls,i=e.i18n,a=e.isReply,u=e.review,c=e.showRating,s=u&&u.id?String(u.id):"loading-text",l=Qj({content:r.createElement(Zp,null),id:s});return u&&(l=u.body?Qj({html:vn(gn(u.body),["br"]),id:s}):Qj({content:"",id:s})),r.createElement("div",{className:"UserReview"},r.createElement("div",{className:"UserReview-byLine"},u&&c?r.createElement(Kj,{styleSize:"small",review:u,readOnly:!0}):null,u&&a&&r.createElement("h4",{className:"UserReview-reply-header"},r.createElement(ac,{name:"reply-arrow"}),i.gettext("Developer response")),t),l,o,n)}));function Jj(e){return(Jj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nP(e,t){return(nP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function rP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iP(e);if(t){var o=iP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oP(this,n)}}function oP(e,t){if(t&&("object"===Jj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function iP(e){return(iP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var aP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nP(e,t)}(a,e);var t,n,o,i=rP(a);function a(){var e;eP(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onBeginDeleteReview=function(t){var n=e.props,r=n.dispatch,o=n.review;t.preventDefault(),ce()(o,"review is required"),r(Gi({reviewId:o.id}))},e.onCancelDeleteReview=function(t){var n=e.props,r=n.dispatch,o=n.review;t.preventDefault(),ce()(o,"review is required"),r(Wi({reviewId:o.id}))},e.onClickToDeleteReview=function(t){var n=e.props,r=n.dispatch,o=n.errorHandler,i=n.isReplyToReviewId,a=n.review;t.preventDefault(),ce()(a,"review is required"),r(zi({addonId:a.reviewAddon.id,errorHandlerId:o.id,reviewId:a.id,isReplyToReviewId:i}))},e.onClickToEditReview=function(t){var n=e.props,r=n.dispatch,o=n.isReplyToReviewId,i=n.review;t.preventDefault(),void 0!==o?r(ki({reviewId:o})):(ce()(i,"A review must be loaded."),r(Pi({reviewId:i.id})))},e.onCancelEditReview=function(){var t=e.props,n=t.dispatch,r=t.review;ce()(r,"review is required"),n(Ii({reviewId:r.id}))},e.onClickToBeginReviewReply=function(t){t.preventDefault();var n=e.props,r=n.dispatch,o=n.review;ce()(o,"Cannot show review form because no review has been loaded."),r(ki({reviewId:o.id}))},e.onDismissReviewReply=function(){var t=e.props,n=t.dispatch,r=t.review;ce()(r,"Cannot hide review form because no review has been loaded."),n(Ti({reviewId:r.id}))},e.onSubmitReviewReply=function(t){var n=e.props,r=n.dispatch,o=n.errorHandler,i=n.review;ce()(i,"The review property cannot be empty when replying to a review."),r(Si({errorHandlerId:o.id,originalReviewId:i.id,body:t.text}))},e}return t=a,(n=[{key:"isRatingOnly",value:function(){var e=this.props.review;return Boolean(e&&!e.body)}},{key:"isReply",value:function(){var e=this.props,t=e.isReplyToReviewId,n=e.review;return void 0!==t||Boolean(n&&n.isDeveloperReply)}},{key:"editPrompt",value:function(){var e=this.props.i18n;return this.isReply()?e.gettext("Edit reply"):e.gettext("Edit review")}},{key:"deletePrompt",value:function(){var e=this.props.i18n;return this.isReply()?e.gettext("Delete reply"):this.isRatingOnly()?e.gettext("Delete rating"):e.gettext("Delete review")}},{key:"confirmDeletePrompt",value:function(){var e=this.props.i18n;return this.isReply()?e.gettext("Do you really want to delete this reply?"):this.isRatingOnly()?e.gettext("Do you really want to delete this rating?"):e.gettext("Do you really want to delete this review?")}},{key:"confirmDeleteButtonText",value:function(){var e=this.props,t=e.i18n;return e.slim?this.isReply()?t.gettext("Delete reply"):this.isRatingOnly()?t.gettext("Delete rating"):t.gettext("Delete review"):t.gettext("Delete")}},{key:"cancelDeleteButtonText",value:function(){var e=this.props,t=e.i18n;return e.slim?this.isReply()?t.gettext("Keep reply"):this.isRatingOnly()?t.gettext("Keep rating"):t.gettext("Keep review"):t.gettext("Cancel")}},{key:"renderReply",value:function(){var e=this.props,t=e.addon,n=e.errorHandler,o=e.i18n,i=e.replyingToReview,a=e.review,u=e.slim,c=e.siteUserCanReply,s=e.submittingReply;if(!a||!a.reply&&!i)return null;var l=[Tn("src/amo/components/AddonReviewCard/index.js"),"addon",t?t.id.toString():"no-addon","review",a?a.id.toString():"unsaved-review"].join("-");return r.createElement("div",{className:"AddonReviewCard-reply"},i?r.createElement(Zh,{className:"AddonReviewCard-reply-form",id:l,isSubmitting:s&&!n.hasError(),onDismiss:this.onDismissReviewReply,onSubmit:this.onSubmitReviewReply,placeholder:o.gettext("Write a reply to this review."),submitButtonText:a.reply?o.gettext("Update reply"):o.gettext("Publish reply"),submitButtonInProgressText:a.reply?o.gettext("Updating reply"):o.gettext("Publishing reply"),text:a.reply&&a.reply.body}):r.createElement(uP,{addon:t,isReplyToReviewId:a.id,review:a.reply,slim:u,siteUserCanReply:c}))}},{key:"render",value:function(){var e,t=this.props,n=t.beginningToDeleteReview,o=t.className,i=t.deletingReview,a=t.editingReview,u=t.errorHandler,c=t.flaggable,s=t.hasUsersEditPermission,l=t.i18n,f=t.location,p=t.replyingToReview,d=t.review,h=t.shortByLine,y=t.showControls,m=t.showRating,v=t.siteUser,g=t.siteUserCanManageReplies,b=t.slim,w=h||this.isReply(),O=!w&&s;if(d){var E=w?l.gettext("posted %(linkStart)s%(timestamp)s%(linkEnd)s"):O?l.gettext("by %(linkUserProfileStart)s%(authorName)s%(linkUserProfileEnd)s, %(linkStart)s%(timestamp)s%(linkEnd)s"):l.gettext("by %(authorName)s, %(linkStart)s%(timestamp)s%(linkEnd)s"),_=d.reviewAddon.slug||d.reviewAddon.id;d.reviewAddon.slug||L.Z.error("The add-on for reviewId: ".concat(d.id," has an falsey slug: ").concat(d.reviewAddon.slug)),d.reviewAddon.id||L.Z.error("The add-on for reviewId: ".concat(d.id," has an falsey id: ").concat(d.reviewAddon.id));var x=[["linkStart","linkEnd",function(e){return _?r.createElement(wc,{title:l.moment(d.created).format("lll"),key:d.id,to:Tp({addonSlug:String(_),id:d.id,location:f})},e):e}]];O&&x.push(["linkUserProfileStart","linkUserProfileEnd",function(e){return r.createElement(wc,{key:"".concat(d.id,"-").concat(d.userId),to:"/user/".concat(d.userId,"/")},e)}]);var S=ie({text:l.sprintf(E,{authorName:d.userName,timestamp:l.moment(d.created).fromNow(),linkEnd:"%(linkEnd)s",linkStart:"%(linkStart)s",linkUserProfileStart:O?"%(linkUserProfileStart)s":void 0,linkUserProfileEnd:O?"%(linkUserProfileEnd)s":void 0}),replacements:x});e=r.createElement("span",{className:Ho()({"AddonReviewCard-authorByLine":!w})},S)}else e=r.createElement(Zp,null);var j=y;n&&(j=!1);var P=d&&v&&(d.userId===v.id||this.isReply()&&g),k=j?r.createElement("div",{className:"AddonReviewCard-allControls"},P?r.createElement(r.Fragment,null,!this.isRatingOnly()&&r.createElement("a",{href:"#edit",onClick:this.onClickToEditReview,className:"AddonReviewCard-edit AddonReviewCard-control"},this.editPrompt()),i&&!u.hasError()?r.createElement("span",{className:"AddonReviewCard-control AddonReviewCard-deleting"},l.gettext("Deleting…")):r.createElement(Dc,{buttonType:"neutral",className:Ho()("AddonReviewCard-control","AddonReviewCard-delete"),onClick:this.onBeginDeleteReview},this.deletePrompt())):null,!d||p||d.reply||this.isReply()||this.isRatingOnly()||!g||!v||d.userId===v.id?null:r.createElement("a",{href:"#reply",onClick:this.onClickToBeginReviewReply,className:"AddonReviewCard-begin-reply AddonReviewCard-control"},r.createElement(ac,{name:"reply-arrow"}),l.gettext("Reply to this review")),!c||this.isRatingOnly()||!d||v&&v.id===d.userId?null:r.createElement(Zj,{isDeveloperReply:this.isReply(),openerClass:"AddonReviewCard-control",review:d})):null;return r.createElement("div",{className:Ho()("AddonReviewCard",o,{"AddonReviewCard-isReply":this.isReply(),"AddonReviewCard-ratingOnly":this.isRatingOnly(),"AddonReviewCard-viewOnly":!a,"AddonReviewCard-slim":b})},r.createElement("div",{className:"AddonReviewCard-container"},u.renderErrorIfPresent(),d&&d.isDeleted&&r.createElement(Jc,{type:"error",className:"AddonReviewCard-non-public-notice"},l.gettext("This rating or review has been deleted. You are only seeing it because of elevated permissions.")),d&&a?r.createElement(KE,{onCancel:this.onCancelEditReview,puffyButtons:b,review:d}):r.createElement(Xj,{controls:k,review:d,byLine:e,showRating:Boolean(!this.isReply()&&m),isReply:this.isReply()})),n&&r.createElement($j,{className:"AddonReviewCard-confirmDeleteDialog",cancelButtonText:this.cancelDeleteButtonText(),cancelButtonType:"neutral",confirmButtonText:this.confirmDeleteButtonText(),onCancel:this.onCancelDeleteReview,onConfirm:this.onClickToDeleteReview,message:b?void 0:this.confirmDeletePrompt(),puffyButtons:b}),this.renderReply(),v&&d&&d.userId===v.id&&this.isRatingOnly()&&!n&&!a&&r.createElement(Dc,{className:"AddonReviewCard-writeReviewButton",onClick:this.onClickToEditReview,buttonType:"action",puffy:b},l.gettext("Write a review")))}}])&&tP(t.prototype,n),o&&tP(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);aP.defaultProps={flaggable:!0,shortByLine:!1,showControls:!0,showRating:!0,slim:!1};var uP=(0,Mo.qC)(No,(0,g.connect)((function(e,t){var n=!1,r=!1,o=!1,i=!1,a=!1;if(t.review){var u=e.reviews.view[t.review.id];u&&(n=u.beginningToDeleteReview,r=u.deletingReview,o=u.editingReview,i=u.replyingToReview,a=u.submittingReply)}var c=et(e,D.mD);return{beginningToDeleteReview:n,deletingReview:r,editingReview:o,hasUsersEditPermission:et(e,D.Ai),replyingToReview:i,siteUser:Xe(e.users),siteUserCanManageReplies:t.siteUserCanReply||c,submittingReply:a}})),ms({name:"AddonReviewCard",extractId:function(e){return e.review?String(e.review.id):""}}),Eu())(aP);const cP=uP;function sP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sP(Object(n),!0).forEach((function(t){fP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pP="HIDE_ADDON_ABUSE_REPORT_UI",dP="LOAD_ADDON_ABUSE_REPORT",hP="SEND_ADDON_ABUSE_REPORT",yP="SHOW_ADDON_ABUSE_REPORT_UI",mP="INITIATE_ADDON_ABUSE_REPORT_VIA_FIREFOX",vP="FINISH_ADDON_ABUSE_REPORT_VIA_FIREFOX",gP={bySlug:{},loading:!1};function bP(e){var t=e.addon;return ce()(t,"addon is required"),{type:pP,payload:{addon:t}}}function wP(e){var t=e.addon,n=e.message,r=e.reporter;return ce()(t,"addon is required"),ce()(void 0!==n,"message must be defined"),ce()(void 0!==r,"reporter must be defined"),{type:dP,payload:{addon:t,message:n,reporter:r}}}function OP(e){var t=e.addonSlug,n=e.errorHandlerId,r=e.message;return ce()(t,"addonSlug is required"),ce()(n,"errorHandlerId is required"),ce()(r,"message is required"),{type:hP,payload:{addonSlug:t,errorHandlerId:n,message:r}}}function EP(e){var t=e.addon;return ce()(t,"addon is required"),{type:yP,payload:{addon:t}}}function _P(e){var t=e.addon;return ce()(t,"addon is required"),{type:mP,payload:{addon:t}}}function xP(e){return(xP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SP(){SP=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==xP(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function jP(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function PP(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){jP(i,r,o,a,u,"next",e)}function u(e){jP(i,r,o,a,u,"throw",e)}a(void 0)}))}}function kP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function TP(e,t){return(TP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function RP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AP(e);if(t){var o=AP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return CP(this,n)}}function CP(e,t){if(t&&("object"===xP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function AP(e){return(AP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var NP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TP(e,t)}(a,e);var t,n,o,i=RP(a);function a(){var e;kP(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).dismissReportUI=function(){var t=e.props,n=t.addon;(0,t.dispatch)(bP({addon:n}))},e.sendReport=function(t){var n=t.text;ce()(n.trim().length,"A report cannot be sent with no content.");var r=e.props,o=r.addon,i=r.dispatch,a=r.errorHandler;i(OP({addonSlug:o.slug,errorHandlerId:a.id,message:n}))},e.onReportButtonClick=function(){var t=PP(SP().mark((function t(n){var r,o,i,a;return SP().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props,o=r._hasAbuseReportPanelEnabled,i=r.addon,a=r.dispatch,n.preventDefault(),!o()||![D.Gz,D.Yd].includes(i.type)){t.next=5;break}return a(_P({addon:i})),t.abrupt("return");case 5:a(EP({addon:i}));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.abuseReport,n=e.addon,o=e.errorHandler,i=e.i18n,a=e.loading;if(ce()(n,"An add-on is required"),t&&void 0!==t.message)return r.createElement("div",{className:"ReportAbuseButton ReportAbuseButton--report-sent"},r.createElement("h3",{className:"ReportAbuseButton-header"},i.gettext("You reported this add-on for abuse")),r.createElement("p",{className:"ReportAbuseButton-first-paragraph"},i.gettext("We have received your report. Thanks for letting us know about\n your concerns with this add-on.")),r.createElement("p",null,i.gettext("We can't respond to every abuse report but we'll look into\n this issue.")));var u=i.sprintf(i.gettext("If you think this add-on violates\n %(linkTagStart)sMozilla's add-on policies%(linkTagEnd)s or has\n security or privacy issues, please report these issues to Mozilla using\n this form."),{linkTagStart:'<a href="https://developer.mozilla.org/en-US/Add-ons/AMO/Policy/Reviews">',linkTagEnd:"</a>"}),c=i.gettext("Report this add-on for abuse");return r.createElement("div",{className:Ho()("ReportAbuseButton",{"ReportAbuseButton--is-expanded":t&&t.uiVisible})},r.createElement("div",{className:"ReportAbuseButton--preview"},r.createElement(Dc,{buttonType:"neutral",className:"ReportAbuseButton-show-more",disabled:a,onClick:this.onReportButtonClick,puffy:!0},c)),r.createElement("div",{className:"ReportAbuseButton--expanded"},r.createElement("h3",{className:"ReportAbuseButton-header"},c),r.createElement("p",{className:"ReportAbuseButton-first-paragraph",dangerouslySetInnerHTML:vn(u,["a"])}),r.createElement("p",null,i.gettext("Please don't use this form to report bugs or request add-on\n features; this report will be sent to Mozilla and not to the\n add-on developer.")),o.renderErrorIfPresent(),r.createElement(Zh,{id:Tn("src/amo/components/ReportAbuseButton/index.js"),isSubmitting:a,onSubmit:this.sendReport,submitButtonText:i.gettext("Send abuse report"),submitButtonInProgressText:i.gettext("Sending abuse report"),onDismiss:this.dismissReportUI,dismissButtonText:i.gettext("Dismiss"),placeholder:i.gettext("Explain how this add-on is violating our policies.")})))}}])&&IP(t.prototype,n),o&&IP(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);NP.defaultProps={_hasAbuseReportPanelEnabled:bv.hasAbuseReportPanelEnabled};const LP=(0,Mo.qC)((0,g.connect)((function(e,t){var n=t.addon;return{abuseReport:n&&e.abuse.bySlug[n.slug]?e.abuse.bySlug[n.slug]:null,loading:e.abuse.loading}})),Eu(),ms({id:"ReportAbuseButton"}))(NP);function DP(e){return(DP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var MP;function FP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function BP(e,t){return(BP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function HP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zP(e);if(t){var o=zP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qP(this,n)}}function qP(e,t){if(t&&("object"===DP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function zP(e){return(zP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var GP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BP(e,t)}(a,e);var t,n,o,i=HP(a);function a(){var e;FP(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onSelectRating=function(t){var n=e.props,r=n.addon,o=n.dispatch,i=n.errorHandler,a=n.userReview,u=n.version;o(a?Li({errorHandlerId:i.id,score:t,reviewId:a.id}):Ni({addonId:r.id,errorHandlerId:i.id,score:t,versionId:u.id}))},e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.addon,n=e.dispatch,r=e.errorHandler,o=e.userId,i=e.userReview;r.hasError()?L.Z.warn("Not loading data because of an error"):o&&void 0===i&&(L.Z.debug("Loading a saved rating (if it exists) for user ".concat(o)),n(function(e){var t=e.addonId,n=e.errorHandlerId,r=e.userId;return ce()(t,"addonId is required"),ce()(n,"errorHandlerId is required"),ce()(r,"userId is required"),{type:$o,payload:{addonId:t,errorHandlerId:n,userId:r}}}({userId:o,addonId:t.id,errorHandlerId:r.id})))}},{key:"getLogInPrompt",value:function(e){var t=e.addonType,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.validAddonTypes,o=void 0===r?D.Tq:r,i=this.props.i18n;switch(t){case D.jV:return i.gettext("Log in to rate this dictionary");case D.d$:return i.gettext("Log in to rate this language pack");case D.Yd:return i.gettext("Log in to rate this theme");case D.Gz:return i.gettext("Log in to rate this extension");default:var a=o.includes(t);return L.Z.warn("Using generic prompt for ".concat(a?"add-on":"unknown add-on"," type: ").concat(t)),i.gettext("Log in to rate this add-on")}}},{key:"isSignedIn",value:function(){return Boolean(this.props.userId)}},{key:"renderLogInToRate",value:function(){var e=this.props.addon;return r.createElement(Ew,{noIcon:!0,className:"RatingManager-log-in-to-rate-button",logInText:this.getLogInPrompt({addonType:e.type})})}},{key:"isMessageVisible",value:function(){var e=this.props.flashMessage;return[Ui,Mi].includes(e)}},{key:"renderUserRatingForm",value:function(){var e,t=this.props,n=t.addon,o=t.beginningToDeleteReview,i=t.deletingReview,a=t.i18n,u=t.flashMessage,c=t.userReview,s=o||i;e=c&&s?c.body?a.gettext("Are you sure you want to delete your review of %(addonName)s?"):a.gettext("Are you sure you want to delete your rating of %(addonName)s?"):a.gettext("How are you enjoying %(addonName)s?");var l=vn(a.sprintf(e,{addonName:"<b>".concat(n.name,"</b>")}),["b"]);return r.createElement("form",{action:""},r.createElement("fieldset",null,r.createElement("legend",{className:"RatingManager-legend",dangerouslySetInnerHTML:l}),r.createElement("div",{className:"RatingManager-ratingControl"},this.isSignedIn()?null:this.renderLogInToRate(),c&&s?r.createElement(FE,{className:"RatingManager-AddonReviewManagerRating",onSelectRating:void 0,rating:c.score}):r.createElement(Kj,{className:"RatingManager-UserRating",readOnly:!this.isSignedIn(),onSelectRating:this.onSelectRating,review:this.isSignedIn()?c:null})),r.createElement(UE,{className:c&&c.body?"RatingManager-savedRating-withReview":null,hideMessage:!this.isMessageVisible(),message:u===Ui?a.gettext("Saving star rating"):a.gettext("Star rating saved"),type:u===Ui?Yc:$c})))}},{key:"render",value:function(){var e=this.props,t=e.addon,n=e.editingReview,o=e.userReview,i=e.version;return ce()(t,"addon is required"),ce()(i,"version is required"),r.createElement("div",{className:"RatingManager"},!n&&this.renderUserRatingForm(),o&&r.createElement(cP,{addon:t,className:"RatingManager-AddonReviewCard",flaggable:!1,review:o,shortByLine:!0,showControls:!this.isMessageVisible(),showRating:!1,siteUserCanReply:!1,slim:!0}),r.createElement(LP,{addon:t}))}}])&&UP(t.prototype,n),o&&UP(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component),WP=Eu()(GP);const VP=(0,Mo.qC)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.id;return function(e){return(0,Mo.qC)(ms({name:t,id:n}))((function(t){var n=t.errorHandler;return n.hasError()?r.createElement("div",null,n.renderError(),r.createElement(e,t)):r.createElement(e,t)}))}}({id:"RatingManager"}),(0,g.connect)((function(t,n){var r,o,i,a=t.users.currentUserID;if(a&&n.addon){var u=n.addon.id;L.Z.debug((0,e.f9)(MP||(o=['Looking for latest review of\n addonId "','" by userId "','"'],i||(i=o.slice(0)),MP=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}}))),u,a)),r=function(e){var t=e.reviewsState,n=e.userId,r=e.addonId,o=Mp({userId:n,addonId:r}),i=t.latestUserReview[o];return null===i?null:Cp(t,i)}({reviewsState:t.reviews,userId:a,addonId:u})}var c=!1,s=!1,l=!1;if(r){var f=t.reviews.view[r.id];f&&(s=f.beginningToDeleteReview,c=f.deletingReview,l=f.editingReview)}return{beginningToDeleteReview:s,deletingReview:c,editingReview:l,flashMessage:t.reviews.flashMessage,userReview:r,userId:a}})))(WP);var YP=a(32520);function ZP(e){return(ZP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function QP(e,t){return(QP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function XP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ek(e);if(t){var o=ek(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return JP(this,n)}}function JP(e,t){if(t&&("object"===ZP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ek(e){return(ek=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tk={closeEl:!0,captionEl:!0,fullscreenEl:!1,zoomEl:!1,shareEl:!1,counterEl:!0,arrowEl:!0,preloaderEl:!0},nk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QP(e,t)}(a,e);var t,n,o,i=XP(a);function a(){var e;$P(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onOpenPhotoswipe=function(t){ce()(e.viewport,"viewport ref is required");var n=e.viewport.querySelector(".ScreenShots-list");ce()(n,"list is required"),t.listen("close",(function(){var e=t.getCurrentIndex(),r=n.children[e].getBoundingClientRect().left;n.scrollLeft+=r-n.getBoundingClientRect().left}))},e}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props.previews;return r.createElement("div",{className:"ScreenShots"},r.createElement("div",{className:"ScreenShots-viewport",ref:function(t){e.viewport=t}},r.createElement("div",{className:"ScreenShots-list"},r.createElement(YP.Gallery,{options:tk,onOpen:this.onOpenPhotoswipe},t.map((function(e){return r.createElement(YP.Item,{key:e.src,original:e.src,thumbnail:e.thumbnail_src,width:e.w,height:e.h,title:e.title},(function(t){var n=t.ref,o=t.open;return r.createElement("img",{alt:e.title,className:"ScreenShots-image",ref:n,onClick:o,src:e.thumbnail_src,width:e.thumbnail_w,height:e.thumbnail_h})}))}))))))}}])&&KP(t.prototype,n),o&&KP(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component),rk="SEND_SERVER_REDIRECT",ok={url:null,status:null},ik=function(e){var n=e.status,r=e.url,o=e._config,i=void 0===o?t.Z:o;if(!n)throw new Error("status is required");if(!r)throw new Error("url is required");return i.get("server")||L.Z.warn("sendServerRedirect() currently does nothing when run from client\n code"),{type:rk,payload:{status:n,url:r}}};const ak=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ok,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case rk:var n=t.payload;return{status:n.status,url:n.url};default:return e}};const uk=Eu()((function(e){var t=e.addon,n=e.i18n,o=e.roundedCorners;ce()(t&&D.Yd===t.type,"A ThemeImage can only be rendered for a static theme");var i=n.sprintf(n.gettext("Preview of %(title)s"),{title:t.name});return r.createElement("div",{className:Ho()("ThemeImage",{"ThemeImage--rounded-corners":o}),role:"presentation"},r.createElement("img",{alt:i,className:"ThemeImage-image",src:qs(t)}))}));function ck(e){return(ck="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lk(e,t){return(lk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dk(e);if(t){var o=dk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pk(this,n)}}function pk(e,t){if(t&&("object"===ck(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function dk(e){return(dk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lk(e,t)}(a,e);var t,n,o,i=fk(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).renderDevCommentsCard=function(){var e=t.props,n=e.addon,o=e.i18n;if(!n||!n.developer_comments)return null;var i=bn(n.developer_comments),a="Addon-developer-comments";return r.createElement(eE,{contentId:n.id,className:a,header:o.gettext("Developer comments"),id:a},r.createElement("div",{className:"Addon-developer-comments-contents",dangerouslySetInnerHTML:i}))};var n=e.addon,o=e.addonIsLoading,u=e.clientApp,c=e.dispatch,s=e.errorHandler,l=e.lang,f=e.match.params;if(!s.hasError())if(n){if(n.slug!==f.slug)return c(ik({status:301,url:"/".concat(l,"/").concat(u).concat(ln(n.slug))})),pk(t);c(qo(n.type))}else o||c(na({showGroupedRatings:!0,slug:f.slug,errorHandler:s}));return t}return t=a,(n=[{key:"componentDidUpdate",value:function(e){var t=e.addon,n=e.match.params,r=this.props,o=r.addon,i=r.addonIsLoading,a=r.dispatch,u=r.errorHandler,c=r.match.params;if(!u.hasError()){var s=t?t.type:null;o&&o.type!==s&&a(qo(o.type)),i||o&&n.slug===c.slug||a(na({showGroupedRatings:!0,slug:c.slug,errorHandler:u}))}}},{key:"headerImage",value:function(){var e=this.props,t=e.addon,n=e.i18n;if(t&&D.Yd===t.type)return r.createElement(uk,{addon:t,roundedCorners:!0});var o=t?n.sprintf(n.gettext("Preview of %(title)s"),{title:t.name}):null;return r.createElement("div",{className:"Addon-icon",key:"Addon-icon-header"},r.createElement("div",{className:"Addon-icon-wrapper"},r.createElement("img",{alt:o,className:"Addon-icon-image",src:Bs(t)})))}},{key:"renderRatingsCard",value:function(){var e,t,n=this.props,o=n.RatingManager,i=n.addon,a=n.i18n,u=n.location,c=n.currentVersion,s="footerText";if(t=i&&c?r.createElement(o,{addon:i,version:c}):r.createElement("p",{className:"Addon-no-rating-manager"},a.gettext("This add-on cannot be rated because no versions\n have been published.")),i)if(i.ratings&&i.ratings.count){var l=i.ratings.count,f=a.sprintf(a.ngettext("Read %(count)s review","Read all %(count)s reviews",l),{count:a.formatNumber(l)});s="footerLink",e=r.createElement(wc,{className:"Addon-all-reviews-link",to:Tp({addonSlug:i.slug,location:u})},f)}else e=a.gettext("No reviews yet");else e=r.createElement(Zp,{width:100});var p,d,h,y=(p={},d=s,h=r.createElement("div",{className:"Addon-read-reviews-footer"},e),d in p?Object.defineProperty(p,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):p[d]=h,p);return r.createElement(js,Object.assign({header:a.gettext("Rate your experience"),className:"Addon-overall-rating"},y),t)}},{key:"renderShowMoreCard",value:function(){var e,t=this.props,n=t.addon,o=t.i18n,i={},a=!0;if(n){switch(n.type){case D.jV:e=o.gettext("About this dictionary");break;case D.Gz:e=o.gettext("About this extension");break;case D.d$:e=o.gettext("About this language pack");break;case D.Yd:e=o.gettext("About this theme");break;default:e=o.gettext("About this add-on")}var u=n.description?n.description:n.summary;if(a=u!==n.summary,!u||!u.length)return null;i.dangerouslySetInnerHTML=bn(u)}else e=r.createElement(Zp,{width:40}),i.children=r.createElement(Zp,{width:100});var c="AddonDescription";return a?r.createElement(eE,{contentId:n&&n.id,className:c,header:e,id:c},r.createElement("div",Object.assign({className:"AddonDescription-contents"},i))):null}},{key:"renderVersionReleaseNotes",value:function(){var e=this.props,t=e.addon,n=e.i18n,o=e.currentVersion;if(!t)return null;if(!o||!o.releaseNotes)return null;var i=n.sprintf(n.gettext("Release notes for %(addonVersion)s"),{addonVersion:o.version}),a=bn(o.releaseNotes),u="AddonDescription-version-notes";return r.createElement(eE,{contentId:t.id,className:u,id:u,header:i},r.createElement("div",{dangerouslySetInnerHTML:a}))}},{key:"renderAddonsByAuthorsCard",value:function(e){var t=e.isForTheme,n=this.props.addon,o=n&&D.Yd===n.type;return!n||!n.authors.length||t&&!o||!t&&o?null:r.createElement("div",null,r.createElement(Sm,{addonType:n.type,authorDisplayName:n.authors[0].name,authorIds:n.authors.map((function(e){return e.id})),className:"Addon-MoreAddonsCard",forAddonSlug:n.slug,numberOfAddons:6}))}},{key:"render",value:function(){var e=this.props,t=e.addon,n=e.addonsByAuthors,o=e.currentVersion,i=e.errorHandler,a=e.i18n,u=t&&t.type===D.Yd,c=null;i.hasError()&&(c=i.renderError());var s=t?t.type:D.Gz,l={},f=!1;if(t){var p=t.summary?t.summary:t.description;p&&p.length&&(l.dangerouslySetInnerHTML=vn(gn(p),["a","br"]),f=!0)}else l.children=r.createElement(Zp,{width:100}),f=!0;var d=t?t.previews:[],h=n?n.length:0;return r.createElement(HO,{showVPNPromo:Boolean(t&&t.type===D.Gz),errorHandler:i,isAddonInstallPage:!0,showWrongPlatformWarning:!1},r.createElement("div",{className:Ho()("Addon","Addon-".concat(s),{"Addon-theme":u,"Addon--has-more-than-0-addons":h>0,"Addon--has-more-than-3-addons":h>3}),"data-site-identifier":t?t.id:null},r.createElement(_p,{addon:t}),c,r.createElement("div",{className:"Addon-header-wrapper"},r.createElement(js,{className:"Addon-header-info-card",photonStyle:!0},r.createElement(xp,{error:this.props.installError}),r.createElement(zf,{addon:t}),t&&("public"!==t.status||t.is_disabled)?r.createElement(Jc,{type:"error",className:"Addon-non-public-notice"},a.gettext("This is not a public listing. You are only seeing it because of elevated permissions.")):null,r.createElement("header",{className:"Addon-header"},this.headerImage(),r.createElement(Gy,{addon:t}),r.createElement(ol,{addon:t}),t&&r.createElement(Gv,{addon:t}),r.createElement("div",{className:"Addon-summary-and-install-button-wrapper"},f?r.createElement("p",Object.assign({className:"Addon-summary"},l)):null,r.createElement(Nv,{addon:t})),r.createElement("h2",{className:"visually-hidden"},a.gettext("Extension Metadata"))),t?r.createElement(Bw,{addon:t,className:"Addon-WrongPlatformWarning"}):null),r.createElement(js,{className:"Addon-header-meta-and-ratings",photonStyle:!0},r.createElement(xd,{addon:t}))),r.createElement("div",{className:"Addon-details"},r.createElement("div",{className:"Addon-main-content"},this.renderAddonsByAuthorsCard({isForTheme:!0}),d.length>0&&!u?r.createElement(js,{className:"Addon-screenshots",header:a.gettext("Screenshots")},r.createElement(nk,{previews:d})):null,this.renderShowMoreCard(),this.renderDevCommentsCard(),s===D.Gz&&r.createElement(zy,{addon:t})),this.renderRatingsCard(),r.createElement(jm,{addon:t}),r.createElement(ME,{version:o}),r.createElement(dh,{addon:t}),r.createElement(Ms,{addon:t}),this.renderVersionReleaseNotes(),this.renderAddonsByAuthorsCard({isForTheme:!1}))))}}])&&sk(t.prototype,n),o&&sk(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);hk.propTypes={RatingManager:w().func,addon:w().object,addonIsLoading:w().bool,clientApp:w().string.isRequired,currentVersion:w().object,dispatch:w().func.isRequired,errorHandler:w().object.isRequired,i18n:w().object.isRequired,installError:w().string,lang:w().string.isRequired,location:w().object.isRequired,match:w().shape({params:w().object.isRequired}).isRequired,addonsByAuthors:w().array},hk.defaultProps={RatingManager:VP};const yk=(0,Mo.qC)(Eu(),(0,g.connect)((function(e,t){var n,r=t.match.params.slug,o=la(e.addons,r),i={},a=null;return o&&(n=function(e,t){var n=e.byAddonSlug[t];return n?n.map((function(t){return e.byAddonId[t]})):null}(e.addonsByAuthors,o.slug),i=e.installations[o.guid]||{},a=o.currentVersionId?mf({id:o.currentVersionId,state:e.versions}):null),{addonIsLoading:fa(e,r),addonsByAuthors:n,clientApp:e.api.clientApp,currentVersion:a,installError:i.error,lang:e.api.lang,addon:o}})),gs({fileName:"src/amo/pages/Addon/index.js",extractId:function(e){return e.match.params.slug}}))(hk);const mk=(0,Mo.qC)(No,Eu())((function(e){var t,n=e.addon,o=e.headerText,i=e.i18n,a=Bt(e.location),u=n?Ut(ln(n.slug),a):"",c=Bs(n),s=r.createElement("img",{className:"AddonSummaryCard-header-icon-image",src:c,alt:i.gettext("Add-on icon")}),l=r.createElement("div",{className:"AddonSummaryCard-header"},r.createElement("div",{className:"AddonSummaryCard-header-icon"},n?r.createElement(wc,{to:u},s):s),r.createElement("div",{className:"AddonSummaryCard-header-text"},r.createElement("h1",{className:"visually-hidden"},o),r.createElement(Gy,{addon:n,linkToAddon:!0,queryParamsForAttribution:a})));if(n&&n.ratings){var f=Ed(n.ratings.average);t=i.sprintf(i.ngettext("%(rating)s Star out of 5","%(rating)s Stars out of 5",f),{rating:i.formatNumber(f)})}return r.createElement(js,{header:l,className:"AddonSummaryCard"},r.createElement("div",{className:"AddonSummaryCard-overallRatingStars"},r.createElement(id,{rating:n&&n.ratings&&n.ratings.average,readOnly:!0,yellowStars:!0}),r.createElement("div",{className:"AddonSummaryCard-addonAverage"},n?t:r.createElement(Zp,{minWidth:20}))),r.createElement(hd,{addon:n}))}));function vk(e){return(vk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bk(e,t){return(bk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ek(e);if(t){var o=Ek(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ok(this,n)}}function Ok(e,t){if(t&&("object"===vk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ek(e){return(Ek=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _k="license",xk="eula",Sk="privacy",jk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bk(e,t)}(a,e);var t,n,o,i=wk(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).loadDataIfNeeded(),t}return t=a,(n=[{key:"componentDidUpdate",value:function(e){this.loadDataIfNeeded(e)}},{key:"loadDataIfNeeded",value:function(e){var t=this.props,n=t.addon,r=t.addonInfo,o=t.addonInfoIsLoading,i=t.addonIsLoading,a=t.addonVersion,u=t.addonVersionIsLoading,c=t.dispatch,s=t.errorHandler,l=t.infoType,f=t.match.params.slug,p=e&&e.addon;if(s.hasError())L.Z.warn("Not loading data because of an error");else{var d=p&&p.slug!==f;if(n&&!d||i||c(na({showGroupedRatings:!0,slug:f,errorHandler:s})),l===_k){var h=a&&a.license&&void 0===a.license.text;n&&n.currentVersionId&&!u&&(!a||h||d)&&c(function(e){var t=e.errorHandlerId,n=e.slug,r=e.versionId;return ce()(t,"errorHandlerId is required"),ce()(n,"slug is required"),ce()(r,"versionId is required"),{type:lf,payload:{errorHandlerId:t,slug:n,versionId:r}}}({errorHandlerId:s.id,slug:f,versionId:n.currentVersionId}))}else r&&!d||o||c(function(e){var t=e.errorHandlerId,n=e.slug;return ce()(t,"errorHandlerId is required"),ce()(n,"slug is required"),{type:Qi,payload:{errorHandlerId:t,slug:n}}}({slug:f,errorHandlerId:s.id}))}}},{key:"render",value:function(){var e,t,n,o=this.props,i=o.addon,a=o.addonInfo,u=o.addonVersion,c=o.errorHandler,s=o.i18n,l=o.infoType,f="";switch(l){case _k:n=s.gettext("Custom License for %(addonName)s"),e=u&&u.license?null===u.license.text?"":u.license.text:null;break;case xk:n=s.gettext("End-User License Agreement for %(addonName)s"),e=a?a.eula:null;break;case Sk:n=s.gettext("Privacy policy for %(addonName)s"),e=a?a.privacyPolicy:null;break;default:n=""}return i&&(f=s.sprintf(n,{addonName:i.name})),(e||l===_k&&e)&&(t=bn(e)),r.createElement(HO,{errorHandler:c},r.createElement("div",{className:Ho()("AddonInfo","AddonInfo--".concat(l))},i&&r.createElement(Ao,null,r.createElement("title",null,f),r.createElement("meta",{name:"robots",content:"noindex, follow"})),c.renderErrorIfPresent(),r.createElement(mk,{addon:i,headerText:f}),r.createElement(js,{className:"AddonInfo-info",header:f},t?r.createElement("p",{className:"AddonInfo-info-html",dangerouslySetInnerHTML:t}):r.createElement(Zp,null))))}}])&&gk(t.prototype,n),o&&gk(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const Pk=(0,Mo.qC)((0,g.connect)((function(e,t){var n=t.match.params.slug,r=la(e.addons,n),o=null;return r&&r.currentVersionId&&(o=mf({id:r.currentVersionId,state:e.versions})),{addon:r,addonIsLoading:fa(e,n),addonInfo:pa({slug:n,state:e.addons}),addonInfoIsLoading:da({slug:n,state:e.addons}),addonVersion:o,addonVersionIsLoading:gf({slug:n,state:e.versions})}})),Eu(),gs({fileName:"src/amo/pages/AddonInfo/index.js",extractId:function(e){var t=e.infoType,n=e.match.params.slug;return"".concat(n,"-").concat(t)}}))(jk);function kk(e){return(kk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ik(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tk(e,t){return(Tk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ak(e);if(t){var o=Ak(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ck(this,n)}}function Ck(e,t){if(t&&("object"===kk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ak(e){return(Ak=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tk(e,t)}(a,e);var t,n,o,i=Rk(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).loadDataIfNeeded(),t}return t=a,(n=[{key:"componentDidUpdate",value:function(e){this.loadDataIfNeeded(e)}},{key:"loadDataIfNeeded",value:function(e){var t=this.props,n=t.dispatch,r=t.errorHandler,o=t.featuredReview,i=t.loadingReview,a=t.reviewId;r.hasError()?L.Z.warn("Not loading data because of an error"):o&&(!e||e.reviewId===a)||i||n(function(e){var t=e.errorHandlerId,n=e.reviewId;return ce()(t,"errorHandlerId is required"),ce()(n,"reviewId is required"),{type:Vo,payload:{errorHandlerId:t,reviewId:n}}}({reviewId:a,errorHandlerId:r.id}))}},{key:"render",value:function(){var e=this.props,t=e.addon,n=e.errorHandler,o=e.featuredReview,i=e.i18n,a=e.siteUserCanReply,u=o?i.sprintf(o.isDeveloperReply?i.gettext("Response by %(userName)s"):i.gettext("Review by %(userName)s"),{userName:o.userName}):null,c=n.hasError()&&404===n.capturedError.responseStatusCode?r.createElement(Do(),{code:404},r.createElement("div",{className:"FeaturedAddonReview-notfound"},i.gettext("The review was not found."))):r.createElement(cP,{addon:t,review:o,siteUserCanReply:a});return r.createElement("div",{className:"FeaturedAddonReview"},r.createElement(js,{header:u,className:"FeaturedAddonReview-card"},c))}}])&&Ik(t.prototype,n),o&&Ik(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const Lk=(0,Mo.qC)((0,g.connect)((function(e,t){var n=t.reviewId;return ce()(n,"Cannot render a FeaturedAddonReview without a reviewId"),{featuredReview:Cp(e.reviews,n),loadingReview:e.reviews.view[n]&&e.reviews.view[n].loadingReview}})),Eu(),gs({fileName:"src/amo/components/FeaturedAddonReview/index.js",extractId:function(e){return e.reviewId}}))(Nk);function Dk(e){return(Dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fk(e,t){return(Fk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Uk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hk(e);if(t){var o=Hk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bk(this,n)}}function Bk(e,t){if(t&&("object"===Dk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hk(e){return(Hk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qk="SHOW_ALL_REVIEWS";function zk(e){return e.query.page||"1"}var Gk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fk(e,t)}(a,e);var t,n,o,i=Uk(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).onSelectOption=function(e){var n=t.props,r=n.addon,o=n.clientApp,i=n.history,a=n.lang,u=n.location;ce()(r,"addon is required"),e.preventDefault();var c=e.target.value,s=Tp({addonSlug:r.slug,score:c===qk?void 0:c,location:u});i.push("/".concat(a,"/").concat(o).concat(s))},t.loadDataIfNeeded(),t}return t=a,(n=[{key:"componentDidUpdate",value:function(e){this.loadDataIfNeeded(e),this.dispatchFetchReviewPermissions()}},{key:"loadDataIfNeeded",value:function(e){var t=e&&e.addon,n=this.props,r=n.addon,o=n.addonIsLoading,i=n.areReviewsLoading,a=n.dispatch,u=n.errorHandler,c=n.location,s=n.match.params.addonSlug,l=n.reviews;u.hasError()?L.Z.warn("Not loading data because of an error"):(r?(!e||r&&t&&r.type!==t.type)&&a(qo(r.type)):o||a(na({showGroupedRatings:!0,slug:s,errorHandler:u})),i||l||a(function(e){var t=e.addonSlug,n=e.errorHandlerId,r=e.page,o=void 0===r?"1":r,i=e.score;if(!n)throw new Error("errorHandlerId cannot be empty");if(!t)throw new Error("addonSlug cannot be empty");return{type:Zo,payload:{addonSlug:t,errorHandlerId:n,page:o,score:i}}}({addonSlug:s,errorHandlerId:u.id,page:zk(c),score:c.query.score||null})))}},{key:"componentDidMount",value:function(){this.dispatchFetchReviewPermissions()}},{key:"dispatchFetchReviewPermissions",value:function(){var e,t,n,r,o=this.props,i=o.addon,a=o.checkingIfSiteUserCanReply,u=o.dispatch,c=o.errorHandler,s=o.siteUser,l=o.siteUserCanReplyToReviews;i&&s&&null===l&&!a&&!c.hasError()&&u((e={addonId:i.id,errorHandlerId:c.id,userId:s.id},t=e.errorHandlerId,n=e.addonId,r=e.userId,ce()(t,"errorHandlerId is required"),ce()(n,"addonId is required"),ce()(r,"userId is required"),{type:Yo,payload:{errorHandlerId:t,addonId:n,userId:r}}))}},{key:"getPageDescription",value:function(){var e=this.props,t=e.addon,n=e.i18n;return ce()(t,"addon is required"),n.sprintf(n.gettext("Reviews and ratings for %(addonName)s. Find out what other\n users think about %(addonName)s and add it to your Firefox Browser."),{addonName:t.name})}},{key:"filterByScoreSelector",value:function(){var e=this.props,t=e.addon,n=e.i18n,o=e.location;return r.createElement(Is,{className:"AddonReviewList-filterByScoreSelector",disabled:!t,onChange:this.onSelectOption,value:o.query.score||qk},r.createElement("option",{value:qk},n.gettext("Show all reviews")),r.createElement("option",{value:5},n.gettext("Show only five-star reviews")),r.createElement("option",{value:4},n.gettext("Show only four-star reviews")),r.createElement("option",{value:3},n.gettext("Show only three-star reviews")),r.createElement("option",{value:2},n.gettext("Show only two-star reviews")),r.createElement("option",{value:1},n.gettext("Show only one-star reviews")))}},{key:"render",value:function(){var e=this.props,t=e.addon,n=e.errorHandler,o=e.i18n,i=e.location,a=e.match.params.reviewId,u=e.pageSize,c=e.reviewCount,s=e.reviews,l=e.siteUserCanReplyToReviews,f=t?o.sprintf(o.gettext("Reviews for %(addonName)s"),{addonName:t.name}):"",p=null;p=null!==c?c>0&&o.sprintf(o.ngettext("%(total)s review","%(total)s reviews",c),{total:o.formatNumber(c)}):r.createElement(Zp,{width:40});var d=r.createElement("div",{className:"AddonReviewList-cardListHeader"},r.createElement("div",{className:"AddonReviewList-reviewCount"},p),r.createElement("div",{className:"AddonReviewList-filterByScore"},this.filterByScoreSelector())),h=(t&&t.ratings?t.ratings.count:null)||4;h>25&&(h=25);var y=s?s.filter((function(e){return e.id.toString()!==a})):Array(h).fill(null),m=t&&c&&u&&c>Number(u)?r.createElement(ym,{LinkComponent:wc,count:c,currentPage:zk(i),pathname:Tp({addonSlug:t.slug,score:i.query.score,location:i}),perPage:Number(u)}):null;return r.createElement(HO,{errorHandler:n},r.createElement("div",{className:Ho()("AddonReviewList",t&&t.type?["AddonReviewList--".concat(t.type)]:null)},t&&r.createElement(Ao,null,r.createElement("title",null,f),r.createElement("meta",{name:"description",content:this.getPageDescription()}),a&&r.createElement("meta",{name:"robots",content:"noindex, follow"})),n.renderErrorIfPresent(),r.createElement(mk,{addon:t,headerText:f}),r.createElement("div",{className:"AddonReviewList-reviews"},a&&r.createElement(Lk,{addon:t,reviewId:a,siteUserCanReply:l}),y.length?r.createElement(xy,{className:"AddonReviewList-reviews-listing",footer:m,header:d},r.createElement("ul",null,y.map((function(e,n){return r.createElement("li",{key:String(n)},r.createElement(cP,{addon:t,review:e,siteUserCanReply:l}))})))):r.createElement(js,{header:d},r.createElement("p",{className:"AddonReviewList-noReviews"},o.gettext("There are no reviews"))))))}}])&&Mk(t.prototype,n),o&&Mk(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const Wk=(0,Mo.qC)((0,g.connect)((function(e,t){var n,r,o,i,a=t.match.params.addonSlug,u=la(e.addons,a),c=function(e){var t=e.reviewsState,n=e.addonSlug,r=e.page,o=e.score;ce()(n,"addonSlug is required"),ce()(r,"page is required"),ce()(t,"reviewsState is required"),ce()(void 0!==o,"score is required");var i=t.byAddon[n];return i&&i.score===o&&i.page===r?i.data:null}({page:zk(t.location),reviewsState:e.reviews,addonSlug:a,score:t.location.query.score||null}),s=Xe(e.users),l=!1,f=null;if(u&&s){var p=(n={reviewsState:e.reviews,addonId:u.id,userId:s.id},r=n.reviewsState,o=n.addonId,i=n.userId,r.permissions[Ap({addonId:o,userId:i})]);p&&(l=p.loading,f=p.canReplyToReviews)}return{addon:u,addonIsLoading:fa(e,a),areReviewsLoading:Up(e,a),checkingIfSiteUserCanReply:l,clientApp:e.api.clientApp,lang:e.api.lang,pageSize:c?c.pageSize:null,reviewCount:c?c.reviewCount:null,reviews:c&&Np({state:e.reviews,reviews:c.reviews}),siteUserCanReplyToReviews:f,siteUser:s}})),Eu(),gs({fileName:"src/amo/pages/AddonReviewList/index.js",extractId:function(e){var t=e.location,n=e.match.params;return"".concat(n.addonSlug,"-").concat(t.query.page||"")}}))(Gk);a(90330);const Vk=(0,Mo.qC)(Eu(),(0,g.connect)((function(e,t){var n=t.addon,r=t.i18n,o=t.version,i={};return n&&(i=e.installations[n.guid]),{versionInfo:o?bf({i18n:r,state:e.versions,versionId:o.id}):null,installError:i&&i.error?i.error:null}})))((function(e){var t=e.addon,n=e.headerText,o=e.i18n,i=e.installError,a=e.version,u=e.versionInfo,c=e.isCurrentVersion;if(null===a)return r.createElement("li",{className:"AddonVersionCard"},r.createElement("div",null,n&&r.createElement("h1",{className:"AddonVersionCard-header"},n),r.createElement("h2",{className:"AddonVersionCard-noVersion"},o.gettext("No version found"))));var s=a?o.sprintf(o.gettext("Version %(versionNumber)s"),{versionNumber:a.version}):r.createElement(Zp,null),l=null;if(a){var f=a.license;if(t&&f)if(f.url){var p=f.isCustom?{to:"/addon/".concat(t.slug,"/license/")}:{href:f.url,prependClientApp:!1,prependLang:!1},d=f.name?o.sprintf(o.gettext("Source code released under %(linkStart)s%(licenseName)s%(linkEnd)s"),{licenseName:f.name,linkStart:"%(linkStart)s",linkEnd:"%(linkEnd)s"}):o.gettext("Source code released under %(linkStart)sCustom License%(linkEnd)s"),h=ie({text:d,replacements:[["linkStart","linkEnd",function(e){return r.createElement(wc,Object.assign({key:t.slug},p),e)}]]});l=r.createElement("p",{className:"AddonVersionCard-license"},h)}else l=r.createElement("p",{className:"AddonVersionCard-license"},o.sprintf(o.gettext("Source code released under %(licenseName)s"),{licenseName:f.name}))}return r.createElement("li",{className:"AddonVersionCard"},r.createElement("div",{className:"AddonVersionCard-content"},r.createElement(r.Fragment,null,n&&r.createElement("h1",{className:"AddonVersionCard-header"},n),c&&r.createElement(r.Fragment,null,r.createElement(xp,{error:i}),r.createElement(zf,{addon:t})),r.createElement("h2",{className:"AddonVersionCard-version"},s),function(){if(!a)return r.createElement(Zp,null);if(!u||!u.created||!u.filesize)return null;var e={dateReleased:o.moment(u.created).format("ll"),fileSize:u.filesize};return r.createElement("div",{className:"AddonVersionCard-fileInfo"},o.sprintf(o.gettext("Released %(dateReleased)s - %(fileSize)s"),e))}(),u&&r.createElement("div",{className:"AddonVersionCard-compatibility"},u.compatibilityString),a?r.createElement("div",{className:"AddonVersionCard-releaseNotes",dangerouslySetInnerHTML:bn(a.releaseNotes)}):r.createElement(Zp,null),l)),t&&r.createElement(Gv,{addon:t}),r.createElement(Nv,{addon:t,version:a,showLinkInsteadOfButton:!c}))}));function Yk(e){return(Yk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $k(e,t){return($k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Kk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xk(e);if(t){var o=Xk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qk(this,n)}}function Qk(e,t){if(t&&("object"===Yk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xk(e){return(Xk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$k(e,t)}(a,e);var t,n,o,i=Kk(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).loadDataIfNeeded(),t}return t=a,(n=[{key:"componentDidUpdate",value:function(e){this.loadDataIfNeeded(e)}},{key:"loadDataIfNeeded",value:function(e){var t=this.props,n=t.addon,r=t.addonIsLoading,o=t.areVersionsLoading,i=t.dispatch,a=t.errorHandler,u=t.versions,c=t.match.params.slug,s=e&&e.addon;if(a.hasError())L.Z.warn("Not loading data because of an error");else{var l=s&&s.slug!==c;n&&!l||r||i(na({showGroupedRatings:!0,slug:c,errorHandler:a})),o||u&&!l||i(function(e){var t=e.errorHandlerId,n=e.page,r=void 0===n?"1":n,o=e.slug;return ce()(t,"errorHandlerId is required"),ce()(o,"slug is required"),{type:ff,payload:{errorHandlerId:t,page:r,slug:o}}}({errorHandlerId:a.id,slug:c}))}}},{key:"render",value:function(){var e,t=this.props,n=t.addon,o=t.errorHandler,i=t.i18n,a=t.versions,u=[];n&&a&&(e=a.find((function(e){return e.id===n.currentVersionId}))||null,u=a.filter((function(e){return e.id!==n.currentVersionId})));var c="";return n&&a&&(c=i.sprintf(i.ngettext("%(addonName)s version history - %(total)s version","%(addonName)s version history - %(total)s versions",a.length),{addonName:n.name,total:i.formatNumber(a.length)})),r.createElement(HO,{errorHandler:o,isAddonInstallPage:!0},r.createElement("div",{className:"AddonVersions"},n&&r.createElement(Ao,null,r.createElement("title",null,c)),o.renderErrorIfPresent(),r.createElement("div",{className:"AddonVersions-wrapper"},r.createElement(mk,{addon:n,headerText:c}),r.createElement(xy,{className:"AddonVersions-versions",header:c||r.createElement(Zp,null)},r.createElement("ul",null,r.createElement("li",null,r.createElement(Jc,{type:"warning"},r.createElement("span",{className:"AddonVersions-warning-text"},i.gettext("Be careful with old versions! These versions are displayed for testing and reference purposes.")),r.createElement("span",{className:"AddonVersions-warning-text"},i.gettext("You should always use the latest version of an add-on.")))),r.createElement(Vk,{addon:n,headerText:i.gettext("Latest version"),isCurrentVersion:!0,key:"latestVersion",version:e}),u.map((function(e,t){return r.createElement(Vk,{addon:n,headerText:0===t?i.gettext("Older versions"):null,key:e.id,version:e})})))))))}}])&&Zk(t.prototype,n),o&&Zk(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const eI=(0,Mo.qC)((0,g.connect)((function(e,t){var n=t.match.params.slug,r=la(e.addons,n),o=gf({slug:n,state:e.versions});return{addon:r,addonIsLoading:fa(e,n),areVersionsLoading:o,versions:!r||o?void 0:vf({slug:n,state:e.versions})}})),Eu(),gs({fileName:"src/amo/pages/AddonVersions/index.js",extractId:function(e){var t=e.location,n=e.match.params;return"".concat(n.slug,"-").concat(t.query.page||"")}}))(Jk);function tI(e){return(tI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rI(e,t){return(rI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=aI(e);if(t){var o=aI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return iI(this,n)}}function iI(e,t){if(t&&("object"===tI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function aI(e){return(aI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rI(e,t)}(a,e);var t,n,o,i=oI(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=e.addonType,r=e.categoriesState,o=e.dispatch,u=e.errorHandler,c=e.loading;return ce()(n,"addonType is undefined"),c||r||o(eh({errorHandlerId:u.id})),o(qo(n)),t}return t=a,(n=[{key:"componentDidUpdate",value:function(e){var t=e.addonType,n=this.props,r=n.addonType,o=n.dispatch;r&&t!==r&&o(qo(r))}},{key:"render",value:function(){var e=this.props,t=e.addonType,n=e.categoriesState,o=e.className,i=e.clientApp,a=e.errorHandler,u=e.i18n,c=e.loading;ce()(t,"addonType is undefined");var s=[];n&&n[i]&&n[i][t]&&(s=Object.values(n[i][t]));var l=Ho()("Categories",o);return a.hasError()||c||s.length?r.createElement(js,{className:l,header:u.gettext("Categories")},a.renderErrorIfPresent(),c?r.createElement("div",{className:"Categories-loading"},r.createElement("span",{className:"Categories-loading-info visually-hidden"},u.gettext("Loading categories.")),Array(8).fill(0).map((function(e,t){return r.createElement(Zp,{className:"Categories-loading-text",key:"Categories-loading-text-".concat(t)})}))):r.createElement("ul",{className:"Categories-list"},s.map((function(e,n){var o=e.name,i=e.slug;return r.createElement("li",{className:"Categories-item",key:o},r.createElement(Dc,{className:"Categories-link\n Categories--category-color-".concat(n%12+1),to:{pathname:rh({addonType:t,slug:i})}},o))})))):r.createElement(js,{className:l},r.createElement("p",{className:"Categories-none-loaded-message"},u.gettext("No categories found.")))}}])&&nI(t.prototype,n),o&&nI(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const cI=(0,Mo.qC)(ms({extractId:function(e){return e.addonType},name:"Categories"}),(0,g.connect)((function(e){return{categoriesState:e.categories.categories,clientApp:e.api.clientApp,loading:e.categories.loading}})),Eu())(uI);function sI(e){return(sI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pI(e,t){return(pI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function dI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yI(e);if(t){var o=yI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hI(this,n)}}function hI(e,t){if(t&&("object"===sI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function yI(e){return(yI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pI(e,t)}(a,e);var t,n,o,i=dI(a);function a(){return lI(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getPageTitle",value:function(e){var t=this.props.i18n;switch(e){case D.Gz:return t.gettext("All extension categories");case D.Yd:return t.gettext("All theme categories");default:return null}}},{key:"render",value:function(){var e=En(this.props.match.params.visibleAddonType),t=this.getPageTitle(e);return r.createElement(HO,null,r.createElement(Ao,null,r.createElement("title",null,t)),r.createElement(hp,{title:t}),r.createElement(ep,null),r.createElement(cI,{addonType:e,className:"CategoriesPage"}))}}])&&fI(t.prototype,n),o&&fI(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const vI=Eu()(mI);function gI(e){return(gI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wI(e,t){return(wI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function OI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_I(e);if(t){var o=_I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return EI(this,n)}}function EI(e,t){if(t&&("object"===gI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _I(e){return(_I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wI(e,t)}(a,e);var t,n,o,i=OI(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).props.hasCategory&&!t.props.categoryName&&t.props.dispatch(eh({errorHandlerId:t.props.errorHandler.id})),t}return t=a,(n=[{key:"render",value:function(){var e,t=this.props,n=t.categoryName,o=t.count,i=t.filters,a=t.i18n,u=t.loadingSearch,c=i||{},s=c.addonType,l=c.query,f=c.tag;if(u)u&&l?e=a.sprintf(a.gettext('Searching for "%(query)s"'),{query:l}):u&&(e=a.gettext("Searching for add-ons"));else switch(s){case D.Gz:e=n&&l&&f?a.sprintf(a.ngettext('%(count)s extension found for "%(query)s" with tag %(tag)s in %(categoryName)s','%(count)s extensions found for "%(query)s" with tag %(tag)s in %(categoryName)s',o),{count:a.formatNumber(o),query:l,categoryName:n,tag:f}):n&&l?a.sprintf(a.ngettext('%(count)s extension found for "%(query)s" in %(categoryName)s','%(count)s extensions found for "%(query)s" in %(categoryName)s',o),{count:a.formatNumber(o),query:l,categoryName:n}):n&&f?a.sprintf(a.ngettext("%(count)s extension found with tag %(tag)s in %(categoryName)s","%(count)s extensions found with tag %(tag)s in %(categoryName)s",o),{count:a.formatNumber(o),categoryName:n,tag:f}):n?a.sprintf(a.ngettext("%(count)s extension found in %(categoryName)s","%(count)s extensions found in %(categoryName)s",o),{count:a.formatNumber(o),categoryName:n}):l&&f?a.sprintf(a.ngettext('%(count)s extension found for "%(query)s" with tag %(tag)s','%(count)s extensions found for "%(query)s" with tag %(tag)s',o),{count:a.formatNumber(o),query:l,tag:f}):l?a.sprintf(a.ngettext('%(count)s extension found for "%(query)s"','%(count)s extensions found for "%(query)s"',o),{count:a.formatNumber(o),query:l}):f?a.sprintf(a.ngettext("%(count)s extension found with tag %(tag)s","%(count)s extensions found with tag %(tag)s",o),{count:a.formatNumber(o),tag:f}):a.sprintf(a.ngettext("%(count)s extension found","%(count)s extensions found",o),{count:a.formatNumber(o)});break;case D.Yd:e=n&&l&&f?a.sprintf(a.ngettext('%(count)s theme found for "%(query)s" with tag %(tag)s in %(categoryName)s','%(count)s themes found for "%(query)s" with tag %(tag)s in %(categoryName)s',o),{count:a.formatNumber(o),query:l,categoryName:n,tag:f}):n&&l?a.sprintf(a.ngettext('%(count)s theme found for "%(query)s" in %(categoryName)s','%(count)s themes found for "%(query)s" in %(categoryName)s',o),{count:a.formatNumber(o),query:l,categoryName:n}):n&&f?a.sprintf(a.ngettext("%(count)s theme found with tag %(tag)s in %(categoryName)s","%(count)s themes found with tag %(tag)s in %(categoryName)s",o),{count:a.formatNumber(o),categoryName:n,tag:f}):n?a.sprintf(a.ngettext("%(count)s theme found in %(categoryName)s","%(count)s themes found in %(categoryName)s",o),{count:a.formatNumber(o),categoryName:n}):l&&f?a.sprintf(a.ngettext('%(count)s theme found for "%(query)s" with tag %(tag)s','%(count)s themes found for "%(query)s" with tag %(tag)s',o),{count:a.formatNumber(o),query:l,tag:f}):l?a.sprintf(a.ngettext('%(count)s theme found for "%(query)s"','%(count)s themes found for "%(query)s"',o),{count:a.formatNumber(o),query:l}):f?a.sprintf(a.ngettext("%(count)s theme found with tag %(tag)s","%(count)s themes found with tag %(tag)s",o),{count:a.formatNumber(o),tag:f}):a.sprintf(a.ngettext("%(count)s theme found","%(count)s themes found",o),{count:a.formatNumber(o)});break;default:e=l&&f?a.sprintf(a.ngettext('%(count)s result found for "%(query)s" with tag %(tag)s','%(count)s results found for "%(query)s" with tag %(tag)s',o),{count:a.formatNumber(o),query:l,tag:f}):l?a.sprintf(a.ngettext('%(count)s result found for "%(query)s"','%(count)s results found for "%(query)s"',o),{count:a.formatNumber(o),query:l}):f?a.sprintf(a.ngettext("%(count)s result found with tag %(tag)s","%(count)s results found with tag %(tag)s",o),{count:a.formatNumber(o),tag:f}):a.sprintf(a.ngettext("%(count)s result found","%(count)s results found",o),{count:a.formatNumber(o)})}return r.createElement(js,{className:"SearchContextCard"},r.createElement("h1",{className:"SearchContextCard-header"},e))}}])&&bI(t.prototype,n),o&&bI(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const SI=(0,Mo.qC)(Eu(),(0,g.connect)((function(e){var t,n=e.search,r=n.filters,o=null;if(n&&r&&r.category&&"string"==typeof r.category&&(t=r.category),t){var i=e.categories.categories,a=e.api.clientApp;if(i&&a){var u=i[a];if(u&&r&&r.addonType&&"string"==typeof r.addonType){var c=u[r.addonType];o=oh(c,t)}}}return{hasCategory:!!t,categoryName:o,count:n.count||0,filters:r,loadingSearch:n.loading}})),ms({id:"SearchContextCard"}))(xI);function jI(e){return(jI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function PI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function II(e,t){return(II=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function TI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=CI(e);if(t){var o=CI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RI(this,n)}}function RI(e,t){if(t&&("object"===jI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function CI(e){return(CI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var AI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&II(e,t)}(a,e);var t,n,o,i=TI(a);function a(){var e;PI(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onClick=function(t){var n=e.props.uiState;t.preventDefault(),e.props.setUIState({expanded:!n.expanded})},e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.header,i=e.id,a=e.i18n,u=e.uiState.expanded;ce()(t,"The children property is required"),ce()(i,"The id property is required");var c=r.createElement("a",{"aria-checked":u,className:"ExpandableCard-ToggleLink",href:"#toggle-content",onClick:this.onClick,role:"switch",title:a.gettext("Toggle contents")},o,r.createElement(ac,{className:"ExpandableCard-ToggleArrow",name:"triangle-down-black"}));return r.createElement(js,{className:Ho()("ExpandableCard",n,{"ExpandableCard--expanded":u}),header:c},r.createElement("div",{className:"ExpandableCard-contents"},t))}}])&&kI(t.prototype,n),o&&kI(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const NI=(0,Mo.qC)(Eu(),Bu({fileName:"src/amo/components/ExpandableCard/index.js",extractId:function(e){return e.id},initialState:{expanded:!1}}))(AI);function LI(e){return(LI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var DI;function MI(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function FI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FI(Object(n),!0).forEach((function(t){BI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zI(e,t){return(zI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function GI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VI(e);if(t){var o=VI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return WI(this,n)}}function WI(e,t){if(t&&("object"===LI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function VI(e){return(VI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var YI="",ZI=kt.sort,$I=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zI(e,t)}(u,t);var n,o,i,a=GI(u);function u(){var t;HI(this,u);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=a.call.apply(a,[this].concat(r))).onSelectElementChange=function(n){n.preventDefault();var r=t.props.filters,o=UI({},r),i=n.currentTarget.getAttribute("name"),a=n.currentTarget.value;if(i){if((o.category||o.tag)&&i===ZI&&a!==D.xZ?o[i]="".concat(D.xZ,",").concat(a):o[i]=a,o[i]===r[i])return L.Z.debug((0,e.f9)(DI||(DI=MI(["onSelectElementChange() called in SearchFilters but\n the filter "," did not change–not changing route."])),i)),!1;o[i]===YI&&delete o[i]}return!o.promoted&&o.sort&&o.sort===D.wn&&delete o.sort,t.doSearch(o),!1},t}return n=u,(o=[{key:"doSearch",value:function(e){var t=this.props,n=t.clientApp,r=t.lang,o=t.history,i=t.pathname,a=UI({},e);a.page&&(a.page="1"),a.category?(delete a.category,delete a.addonType):a.tag&&delete a.tag,o.push({pathname:"/".concat(r,"/").concat(n).concat(i),query:Tt(a)})}},{key:"addonTypeOptions",value:function(){var e=this.props.i18n,t=[{children:e.gettext("All"),value:YI},{children:e.gettext("Extension"),value:D.Gz}];return t.push({children:e.gettext("Theme"),value:D.Yd}),t}},{key:"sortOptions",value:function(){var e=this.props.i18n;return[{children:e.gettext("Relevance"),value:D.BH},{children:e.gettext("Recently Updated"),value:D.My},{children:e.gettext("Most Users"),value:D.Nu},{children:e.gettext("Top Rated"),value:D.kc},{children:e.gettext("Trending"),value:D.Mj}]}},{key:"promotedOptions",value:function(){var e=this.props.i18n;return[{children:e.gettext("Any"),value:YI},{children:e.gettext("Recommended"),value:D.g$},{children:e.gettext("By Firefox"),value:D.fq},{children:e.gettext("Verified"),value:D.J6},{children:e.gettext("All Reviewed"),value:D.cr}]}},{key:"render",value:function(){var e=this.props,t=e.clientApp,n=e.filters,o=e.i18n,i="SearchFilters",a=(n.sort?n.sort.split(",").filter((function(e){return e!==D.xZ})):[""])[0];return r.createElement(NI,{className:i,header:o.gettext("Filter results"),id:i},r.createElement("form",{autoComplete:"off"},r.createElement("label",{className:"SearchFilters-label",htmlFor:"SearchFilters-Sort"},o.gettext("Sort by")),r.createElement(Is,{className:"SearchFilters-Sort SearchFilters-select",id:"SearchFilters-Sort",name:ZI,onChange:this.onSelectElementChange,value:a||D.BH},this.sortOptions().map((function(e){return r.createElement("option",Object.assign({key:e.value},e))}))),!n.category&&t!==D.wZ&&r.createElement("div",null,r.createElement("label",{className:"SearchFilters-AddonType-label SearchFilters-label",htmlFor:"SearchFilters-AddonType"},o.gettext("Add-on Type")),r.createElement(Is,{className:"SearchFilters-AddonType SearchFilters-select",id:"SearchFilters-AddonType",name:"addonType",onChange:this.onSelectElementChange,value:n.addonType||YI},this.addonTypeOptions().map((function(e){return r.createElement("option",Object.assign({key:e.value},e))})))),t!==D.wZ&&r.createElement("div",null,r.createElement("label",{className:"SearchFilters-Badging-label SearchFilters-label",htmlFor:"SearchFilters-Badging"},o.gettext("Badging")),r.createElement(Is,{className:"SearchFilters-Badging SearchFilters-select",id:"SearchFilters-Badging",name:"promoted",onChange:this.onSelectElementChange,value:n.promoted||YI},this.promotedOptions().map((function(e){return r.createElement("option",Object.assign({key:e.value},e))}))))))}}])&&qI(n.prototype,o),i&&qI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(r.Component);const KI=(0,Mo.qC)(No,(0,g.connect)((function(e){return{clientApp:e.api.clientApp,lang:e.api.lang}})),Eu(),ms({name:"SearchFilters"}))($I);function QI(e){return(QI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function XI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eT(e,t){return(eT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rT(e);if(t){var o=rT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nT(this,n)}}function nT(e,t){if(t&&("object"===QI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function rT(e){return(rT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eT(e,t)}(a,e);var t,n,o,i=tT(a);function a(){return XI(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e,t,n=this.props,o=n.count,i=n.filters,a=n.i18n,u=n.loading,c=n.paginator,s=n.results,l=i.query;u?e=r.createElement("div",{className:"visually-hidden"},a.gettext("Searching…")):0===o&&(t=l?a.sprintf(a.gettext('No results were found for "%(query)s".'),{query:l}):a.gettext("No results were found."));var f=i.promoted?D.Ow:D.Eb;return r.createElement("div",{className:"SearchResults"},e,r.createElement(Ny,{addonInstallSource:f,addons:s,footer:c,header:a.gettext("Search results"),loading:u,showFullSizePreview:!0},t?r.createElement("p",{className:"SearchResults-message"},t):null))}}])&&JI(t.prototype,n),o&&JI(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);oT.defaultProps={count:0,filters:{},results:[]};const iT=(0,Mo.qC)(Eu())(oT);function aT(e){return(aT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cT(e,t){return(cT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fT(e);if(t){var o=fT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lT(this,n)}}function lT(e,t){if(t&&("object"===aT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fT(e){return(fT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cT(e,t)}(a,e);var t,n,o,i=sT(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).dispatchSearch({newFilters:e.filters,oldFilters:e.filtersUsedForResults}),t}return t=a,(n=[{key:"componentDidUpdate",value:function(e){var t=e.filters,n=this.props.filters;this.dispatchSearch({newFilters:n,oldFilters:t})}},{key:"dispatchSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.newFilters,n=e.oldFilters,r=this.props,o=r.context,i=r.dispatch,a=r.errorHandler,u=t||{},c=u.addonType;Vy()(n,t)||(i(nf({errorHandlerId:a.id,filters:u})),c&&i(qo(c))),c||o===D.cs||i(qo(D.cs))}},{key:"renderHelmet",value:function(){var e=this.props,t=e.i18n,n=e.filters,o=e.pageTitle,i=e.count,a=o;if(!a)if(a=t.gettext("Search results"),n&&n.promoted){if(n.promoted===D.g$)switch(n.addonType){case D.Gz:a=t.gettext("Recommended extensions");break;case D.Yd:a=t.gettext("Recommended themes");break;default:a=t.gettext("Recommended add-ons")}else if(n.promoted===D.fq)switch(n.addonType){case D.Gz:a=t.gettext("Extensions by Firefox");break;case D.Yd:a=t.gettext("Themes by Firefox");break;default:a=t.gettext("Add-ons by Firefox")}else if(n.promoted===D.cr)switch(n.addonType){case D.Gz:a=t.gettext("Reviewed extensions");break;case D.Yd:a=t.gettext("Reviewed themes");break;default:a=t.gettext("Reviewed add-ons")}else if(n.promoted===D.J6)switch(n.addonType){case D.Gz:a=t.gettext("Verified extensions");break;case D.Yd:a=t.gettext("Verified themes");break;default:a=t.gettext("Verified add-ons")}}else if(n&&n.sort)switch(n.sort){case D.Mj:switch(n.addonType){case D.Gz:a=t.gettext("Trending extensions");break;case D.Yd:a=t.gettext("Trending themes");break;default:a=t.gettext("Trending add-ons")}break;case D.kc:switch(n.addonType){case D.Gz:a=t.gettext("Top rated extensions");break;case D.Yd:a=t.gettext("Top rated themes");break;default:a=t.gettext("Top rated add-ons")}break;case D.Nu:switch(n.addonType){case D.Gz:a=t.gettext("Popular extensions");break;case D.Yd:a=t.gettext("Popular themes");break;default:a=t.gettext("Popular add-ons")}}else n&&n.query&&(a=t.sprintf(t.gettext('Search results for "%(query)s"'),{query:n.query}));return r.createElement(Ao,null,r.createElement("title",null,a),0===i&&r.createElement("meta",{name:"robots",content:"noindex, follow"}))}},{key:"render",value:function(){var e=this.props,t=e.LinkComponent,n=e.count,o=e.errorHandler,i=e.filters,a=e.loading,u=e.pageSize,c=e.paginationQueryParams,s=e.pathname,l=e.results;if(o.hasError()&&(L.Z.warn("Captured API Error: ".concat(o.capturedError.messages)),[400,404].includes(o.capturedError.responseStatusCode)))return r.createElement(jg,null);var f=c||Tt(i),p=i?i.page:void 0,d=n>Number(u)?r.createElement(ym,{LinkComponent:t,count:n,currentPage:p,pathname:s,perPage:Number(u),queryParams:f}):null;return r.createElement("div",{className:"Search"},this.renderHelmet(),o.renderErrorIfPresent(),r.createElement(SI,null),r.createElement(KI,{filters:i||{},pathname:s}),r.createElement(iT,{count:n,filters:i,loading:a,paginator:d,results:l}))}}])&&uT(t.prototype,n),o&&uT(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);pT.defaultProps={LinkComponent:wc,paginationQueryParams:null,pathname:"/search/"};const dT=(0,Mo.qC)((0,g.connect)((function(e){return{context:e.viewContext.context,count:e.search.count,filtersUsedForResults:e.search.filters,loading:e.search.loading,pageSize:e.search.pageSize,results:e.search.results}})),Eu(),gs({fileName:"src/amo/components/Search/index.js",extractId:function(e){return e.filters?e.filters.page:""}}))(pT);function hT(e){return(hT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yT(Object(n),!0).forEach((function(t){vT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bT(e,t){return(bT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ET(e);if(t){var o=ET(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return OT(this,n)}}function OT(e,t){if(t&&("object"===hT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ET(e){return(ET=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bT(e,t)}(a,e);var t,n,o,i=wT(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).props.categoryName||t.props.dispatch(eh({errorHandlerId:t.props.errorHandler.id})),t}return t=a,(n=[{key:"getPageTitle",value:function(e){var t=this.props,n=t.addonType,r=t.i18n;return n===D.Yd?e?r.sprintf(r.gettext("Themes in %(categoryName)s"),{categoryName:e}):r.gettext("Themes"):e?r.sprintf(r.gettext("Extensions in %(categoryName)s"),{categoryName:e}):r.gettext("Extensions")}},{key:"render",value:function(){var e=this.props,t=e.addonType,n=e.categoryName,o=e.filters,i=e.match.params.categorySlug,a=mT(mT({},o),{},{addonType:t,category:i,sort:o.sort||D.YM});return r.createElement(HO,null,r.createElement(ep,null),r.createElement(dT,{filters:a,pageTitle:this.getPageTitle(n),paginationQueryParams:Tt(o),pathname:rh({addonType:t,slug:i})}))}}])&&gT(t.prototype,n),o&&gT(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const xT=(0,Mo.qC)((0,g.connect)((function(e,t){var n=e.router.location,r=t.match.params,o=r.categorySlug,i=null,a=En(r.visibleAddonType),u=e.categories.categories,c=e.api.clientApp;if(u&&c){var s=u[c];if(s){var l=s[a];i=oh(l,o)}}var f=Rt(n.query);return{addonType:a,categoryName:i,filters:Nt(f)}})),Eu(),gs({fileName:"src/amo/pages/CategoryPage/index.js",extractId:function(e){return e.match.params.categorySlug}}))(_T);a(99385);var ST="src/amo/components/CollectionAddAddon/index.js";function jT(e){return(jT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function PT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function IT(e,t){return(IT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function TT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=CT(e);if(t){var o=CT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RT(this,n)}}function RT(e,t){if(t&&("object"===jT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function CT(e){return(CT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var AT="added",NT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IT(e,t)}(a,e);var t,n,o,i=TT(a);function a(){var e;PT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).resetMessages=function(){e.props.setUIState({addonAction:null}),e.timeout&&e.props.clearTimeout(e.timeout)},e.onAddonSelected=function(t){var n=e.props,r=n.collection,o=n.dispatch,i=n.errorHandler,a=n.filters,u=t.addonId;ce()(u,"addonId is required"),ce()(r,"collection is required"),o(tu({addonId:u,collectionId:r.id,editing:!0,errorHandlerId:i.id,filters:a,slug:r.slug,userId:r.authorId})),e.resetMessages()},e}return t=a,(n=[{key:"componentDidUpdate",value:function(e){var t=e.hasAddonBeenAdded,n=e.hasAddonBeenRemoved,r=this.props,o=r.errorHandler,i=r.hasAddonBeenAdded,a=r.hasAddonBeenRemoved,u=r.setTimeout,c=r.setUIState,s=t!==i,l=n!==a;s&&c({addonAction:i?AT:null}),l&&c({addonAction:a?"removed":null}),(s||l)&&(i||a)&&(o.clear(),this.timeout=u(this.resetMessages,5e3))}},{key:"componentWillUnmount",value:function(){this.resetMessages()}},{key:"render",value:function(){var e=this.props,t=e.collection,n=e.errorHandler,o=e.i18n,i=e.uiState.addonAction,a=i===AT;return r.createElement(js,{className:"CollectionAddAddon"},n.hasError()?n.renderError():r.createElement(Lm,{className:"CollectionAddAddon-noticePlaceholder"},i&&r.createElement(Zm,{classNames:"CollectionAddAddon-noticePlaceholder-transition",timeout:450},r.createElement(Jc,{type:a?"success":"generic"},a?o.gettext("Added to collection"):o.gettext("Removed from collection")))),r.createElement(jb,{inputName:"collection-addon-query",inputPlaceholder:o.gettext("Find an add-on to include in this collection"),onSuggestionSelected:this.onAddonSelected,selectSuggestionText:o.gettext("Add to collection"),key:t?t.id:""}))}}])&&kT(t.prototype,n),o&&kT(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);NT.defaultProps={setTimeout:"undefined"!=typeof window?window.setTimeout.bind(window):function(){},clearTimeout:"undefined"!=typeof window?window.clearTimeout.bind(window):function(){}};var LT=function(e){var t=e.collection;return"collection".concat(t?t.id:"")};const DT=(0,Mo.qC)((0,g.connect)((function(e){return{hasAddonBeenAdded:e.collections.hasAddonBeenAdded,hasAddonBeenRemoved:e.collections.hasAddonBeenRemoved}})),Eu(),gs({fileName:ST,extractId:LT}),Bu({fileName:ST,extractId:LT,initialState:{addonAction:null}}))(NT);function MT(e){return(MT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function FT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FT(Object(n),!0).forEach((function(t){BT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zT(e,t){return(zT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function GT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VT(e);if(t){var o=VT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return WT(this,n)}}function WT(e,t){if(t&&("object"===MT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function VT(e){return(VT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var YT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zT(e,t)}(a,e);var t,n,o,i=GT(a);function a(){var e;HT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onSortSelect=function(t){var n=e.props,r=n.collection,o=n.clientApp,i=n.editing,a=n.filters,u=n.lang,c=n.history;ce()(r,"A collection is required.");var s=t.currentTarget.value,l=UT(UT({},a),{},{collectionSort:s}),f="/".concat(u,"/").concat(o).concat(i?du({collection:r}):pu({collection:r}));c.push({pathname:f,query:fu(l)})},e}return t=a,(n=[{key:"sortOptions",value:function(){var e=this.props.i18n;return[{label:e.gettext("Newest first"),value:D.Y4},{label:e.gettext("Oldest first"),value:D.pn},{label:e.gettext("Name"),value:D.eO},{label:e.gettext("Popularity"),value:D.Nx}]}},{key:"render",value:function(){var e=this.props,t=e.filters,n=e.i18n;return r.createElement("form",{className:"CollectionSort"},r.createElement("label",{className:"CollectionSort-label",htmlFor:"CollectionSort-select"},n.gettext("Sort add-ons by")),r.createElement(Is,{className:"CollectionSort-select",defaultValue:t.collectionSort,id:"CollectionSort-select",name:"sort",onChange:this.onSortSelect},this.sortOptions().map((function(e){return r.createElement("option",{key:e.value,value:e.value},e.label)}))))}}])&&qT(t.prototype,n),o&&qT(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const ZT=(0,Mo.qC)(No,(0,g.connect)((function(e){return{clientApp:e.api.clientApp,lang:e.api.lang}})),Eu())(YT);function $T(e){return($T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function KT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function XT(e,t){return(XT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function JT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tR(e);if(t){var o=tR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eR(this,n)}}function eR(e,t){if(t&&("object"===$T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function tR(e){return(tR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XT(e,t)}(a,e);var t,n,o,i=JT(a);function a(){return KT(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.collection,n=e.editing,o=e.filters;return r.createElement(js,{className:"CollectionControls"},r.createElement(ZT,{collection:t,editing:n,filters:o}))}}])&&QT(t.prototype,n),o&&QT(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);function rR(e){return(rR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aR(e,t){return(aR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function uR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sR(e);if(t){var o=sR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cR(this,n)}}function cR(e,t){if(t&&("object"===rR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function sR(e){return(sR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aR(e,t)}(a,e);var t,n,o,i=uR(a);function a(){var e;oR(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onEditDetails=function(t){var n=e.props.dispatch;t.preventDefault(),t.stopPropagation(),n(ru())},e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.collection,n=e.editing,o=e.filters,i=e.hasEditPermission,a=e.i18n,u=e.showEditButton;return r.createElement("div",{className:"CollectionDetails"},r.createElement("h1",{className:"CollectionDetails-title"},t?hu({name:t.name,i18n:a}):r.createElement(Zp,null)),r.createElement("p",{className:"CollectionDetails-description"},t?t.description:r.createElement(Zp,null)),r.createElement($p,{metadata:[{content:t?t.numberOfAddons:null,title:a.gettext("Add-ons")},{content:t?t.authorName:null,title:a.gettext("Creator")},{content:t?a.moment(t.lastUpdatedDate).format("ll"):null,title:a.gettext("Last updated")}]}),t&&u&&!n&&r.createElement(Dc,{buttonType:"neutral",className:"CollectionDetails-edit-button",puffy:!0,to:{pathname:du({collection:t}),query:fu(o)}},a.gettext("Edit this collection")),t&&n&&i&&r.createElement(Dc,{buttonType:"neutral",className:"CollectionDetails-edit-details-button",puffy:!0,href:"#editdetails",onClick:this.onEditDetails},a.gettext("Edit collection details")),t&&n&&r.createElement(Dc,{buttonType:"cancel",className:"CollectionDetails-back-to-collection-button",to:{pathname:pu({collection:t}),query:fu(o)}},a.gettext("Back to collection")))}}])&&iR(t.prototype,n),o&&iR(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const fR=(0,Mo.qC)(Eu(),(0,g.connect)())(lR);var pR;function dR(e){return(dR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hR(Object(n),!0).forEach((function(t){mR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gR(e,t){return(gR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=OR(e);if(t){var o=OR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wR(this,n)}}function wR(e,t){if(t&&("object"===dR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function OR(e){return(OR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ER=function(e){return{collectionId:e.collection?e.collection.id:null,customSlug:!1,description:e.collection&&e.collection.description?e.collection.description:"",name:e.collection?e.collection.name:"",slug:e.collection?e.collection.slug:""}},_R=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gR(e,t)}(c,n);var o,i,a,u=bR(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this,e)).onCancel=function(e){var n=t.props,r=n.clientApp,o=n.creating,i=n.dispatch,a=n.history,u=n.siteLang;o&&a.push("/".concat(u,"/").concat(r,"/collections/")),e.preventDefault(),e.stopPropagation(),i(ou())},t.onSubmit=function(e){var n=t.props,r=n.collection,o=n.creating,i=n.currentUserId,a=n.dispatch,u=n.errorHandler,c=n.filters,s=n.location,l=n.siteLang;e.preventDefault(),e.stopPropagation();var f=t.state,p=f.name,d=f.slug;p=p&&p.trim(),d=d&&d.trim(),ce()(l,"The form cannot be submitted without a site language"),ce()(p,"The form cannot be submitted without a name"),ce()(d,"The form cannot be submitted without a slug");var h={description:mR({},l,t.state.description),errorHandlerId:u.id,name:mR({},l,p),slug:d};o&&i?a(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorHandlerId,n=e.defaultLocale,r=e.description,o=e.includeAddonId,i=e.name,a=e.slug,u=e.userId;return ce()(t,"errorHandlerId is required"),ce()(u,"userId is required"),ce()(i,"name is required when creating a collection"),ce()(a,"slug is required when creating a collection"),{type:La,payload:{errorHandlerId:t,defaultLocale:n,description:r,includeAddonId:o,name:i,slug:a,userId:u}}}(yR(yR({},h),{},{defaultLocale:l,includeAddonId:s.query.include_addon_id,userId:i}))):(ce()(r,"The form cannot be submitted without a collection"),a(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collectionSlug,n=e.defaultLocale,r=e.description,o=e.errorHandlerId,i=e.filters,a=e.name,u=e.slug,c=e.userId;return ce()(t,"collectionSlug is required when updating"),ce()(o,"errorHandlerId is required"),ce()(i,"filters is required"),ce()(c,"userId is required"),{type:Aa,payload:{collectionSlug:t,defaultLocale:n,description:r,errorHandlerId:o,filters:i,name:a,slug:u,userId:c}}}(yR(yR({},h),{},{collectionSlug:r.slug,defaultLocale:r.defaultLocale,filters:c,userId:r.authorId}))))},t.onTextInput=function(e){e.preventDefault();var n=e.target,r=n.name,o=n.value,i=t.props.creating;if(void 0!==o){var a=o.trim();i&&"name"===r&&!t.state.customSlug?t.setState({slug:a.split(/[^A-Za-z0-9]/).filter((function(e){return""!==e})).join("-").substring(0,30),name:o}):i&&"slug"===r&&""!==a?t.setState({customSlug:!0,slug:o}):t.setState(mR({},r,o))}},t.state=ER(e),t}return o=c,a=[{key:"getDerivedStateFromProps",value:function(e,t){return e.collection&&e.collection.id!==t.collectionId?ER(e):null}}],(i=[{key:"render",value:function(){var n,o,i=this.props,a=i.collection,u=i.creating,c=i.currentUserId,s=i.errorHandler,l=i.i18n,f=i.isCollectionBeingModified,p=i.siteLang,d=this.state,h=d.description,y=d.name,m=d.slug,v=(0,e.IV)(pR||(n=["","/","/firefox/collections/\n ","/"],o||(o=n.slice(0)),pR=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(o)}}))),t.Z.get("apiHost"),p,a&&a.authorId||c),g=a&&a.name===y&&a.slug===m&&(a.description===h||null===a.description&&!h),b=!a&&!u||f,w=!(y&&y.trim().length),O=!(m&&m.trim().length),E=b||g||w||O,_=u?l.gettext("Create collection"):l.gettext("Save changes");return r.createElement("form",{className:"CollectionManager",onSubmit:this.onSubmit},s.renderErrorIfPresent(),r.createElement("label",{className:"CollectionManager-collectionName",htmlFor:"collectionName"},l.gettext("Collection name")),a||u?r.createElement("input",{onChange:this.onTextInput,id:"collectionName",name:"name",type:"text",value:this.state.name}):r.createElement(Zp,{minWidth:60}),r.createElement("label",{htmlFor:"collectionDescription"},l.gettext("Description")),a||u?r.createElement("textarea",{value:this.state.description,id:"collectionDescription",name:"description",onChange:this.onTextInput}):r.createElement(Zp,{minWidth:60}),r.createElement("label",{htmlFor:"collectionSlug"},l.gettext("Custom URL")),r.createElement("div",{className:"CollectionManager-slug"},r.createElement("div",{id:"collectionUrlPrefix",title:v,className:"CollectionManager-slug-url-hint"},r.createElement("div",{className:"CollectionManager-slug-url-prefix"},v,"‎")),r.createElement("input",{onChange:this.onTextInput,id:"collectionSlug",maxLength:30,name:"slug",type:"text",value:this.state.slug})),r.createElement("footer",{className:"CollectionManager-footer"},r.createElement(Dc,{buttonType:"neutral",disabled:b,onClick:this.onCancel,className:"CollectionManager-cancel",puffy:!0,type:"button"},l.gettext("Cancel")),r.createElement(Dc,{buttonType:"action",disabled:E,className:"CollectionManager-submit",type:"submit",puffy:!0},_)))}}])&&vR(o.prototype,i),a&&vR(o,a),Object.defineProperty(o,"prototype",{writable:!1}),c}(r.Component);const xR=(0,Mo.qC)(No,Eu(),gs({fileName:"src/amo/components/CollectionManager/index.js",extractId:function(e){var t=e.collection;return"collection-".concat(t?t.slug:"")}}),(0,g.connect)((function(e){var t=Xe(e.users);return{clientApp:e.api.clientApp,currentUserId:t&&t.id,isCollectionBeingModified:e.collections.isCollectionBeingModified,siteLang:e.api.lang}})))(_R);const SR=(0,Mo.qC)((0,g.connect)((function(e,n){var r=n.collection,o=Xe(e.users),i=r&&o&&r.authorId===o.id,a=!1,u=!1;if(r&&o){var c=t.Z.get("mozillaUserId");u=(a=i||r.authorId===c&&et(e,D.ut))||r.authorId===c&&r.slug===D.Sw&&et(e,D.z1)}return{editingCollectionDetails:e.collections.editingCollectionDetails,hasEditPermission:a,hasMaintainerPermission:u}})))((function(e){var t=e.collection,n=e.creating,o=e.editing,i=e.editingCollectionDetails,a=e.filters,u=e.hasEditPermission,c=e.hasMaintainerPermission;return n||i?r.createElement(xR,{collection:t,creating:n,filters:a}):r.createElement(fR,{collection:t,editing:o,filters:a,hasEditPermission:u,showEditButton:c&&!o})}));const jR=function(){return r.createElement(HO,{showWrongPlatformWarning:!1},r.createElement(jg,null))};function PR(e){return(PR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function TR(e,t){return(TR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function RR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AR(e);if(t){var o=AR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return CR(this,n)}}function CR(e,t){if(t&&("object"===PR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function AR(e){return(AR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var NR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TR(e,t)}(a,e);var t,n,o,i=RR(a);function a(){var e;kR(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onConfirm=function(t){e.props.setUIState({showConfirmation:!1}),e.props.onConfirm(t)},e.toggleConfirmation=function(t){t.preventDefault(),e.props.setUIState({showConfirmation:!e.props.uiState.showConfirmation})},e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.buttonType,n=e.cancelButtonText,o=e.cancelButtonType,i=e.children,a=e.className,u=e.confirmButtonText,c=e.confirmButtonType,s=e.htmlType,l=e.id,f=e.message,p=e.onConfirm,d=e.puffyButtons,h=e.uiState;ce()(i,"The children property is required"),ce()(l,"The id property is required"),ce()(p,"The onConfirm property is required");var y=h.showConfirmation,m=Ho()("ConfirmButton",a,{"ConfirmButton--show-confirmation":y});return r.createElement("div",{className:m},y?r.createElement($j,{cancelButtonText:n,cancelButtonType:o,confirmButtonText:u,confirmButtonType:c,onCancel:this.toggleConfirmation,onConfirm:this.onConfirm,message:f,puffyButtons:d}):r.createElement(Dc,{buttonType:t,htmlType:s,className:"ConfirmButton-default-button",onClick:this.toggleConfirmation},i))}}])&&IR(t.prototype,n),o&&IR(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);NR.defaultProps={buttonType:"neutral"};const LR=(0,Mo.qC)(Bu({fileName:"src/amo/components/ConfirmButton/index.js",extractId:function(e){return e.id},initialState:{showConfirmation:!1},resetOnUnmount:!0}))(NR);function DR(e){return(DR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function MR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MR(Object(n),!0).forEach((function(t){UR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function HR(e,t){return(HR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=GR(e);if(t){var o=GR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zR(this,n)}}function zR(e,t){if(t&&("object"===DR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function GR(e){return(GR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var WR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HR(e,t)}(a,e);var t,n,o,i=qR(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).onDelete=function(e){e.preventDefault();var n=t.props,r=n.dispatch,o=n.errorHandler,i=n.collection;ce()(i,"collection is required");var a=i.slug,u=i.authorId;ce()(a,"slug is required"),ce()(u,"userId is required"),r(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorHandlerId,n=e.slug,r=e.userId;return ce()(t,"The errorHandlerId parameter is required"),ce()(n,"The slug parameter is required"),ce()(r,"The userId parameter is required"),{type:Ba,payload:{errorHandlerId:t,slug:n,userId:r}}}({errorHandlerId:o.id,slug:a,userId:u}))},t.removeAddon=function(e){var n=t.props,r=n.collection,o=n.dispatch,i=n.errorHandler,a=n.filters,u=n.history;ce()(r,"collection is required");var c=r.slug,s=r.authorId;ce()(c,"slug is required"),ce()(s,"userId is required");var l=a.page,f=!1,p=function(e){var t=e.collection,n=e.currentPage,r=t.numberOfAddons,o=t.pageSize,i="1";if(o&&r){var a=Math.ceil((r-1)/Number(o));if(parseInt(n,10)<a)return n;i=a}return i?i.toString():"1"}({collection:r,currentPage:l});if(l!==p&&(l=p,f=!0),o(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addonId,n=e.errorHandlerId,r=e.filters,o=e.slug,i=e.userId;return ce()(t,"The addonId parameter is required"),ce()(n,"The errorHandlerId parameter is required"),ce()(r,"The filters parameter is required"),ce()(o,"The slug parameter is required"),ce()(i,"The userId parameter is required"),{type:Fa,payload:{addonId:t,errorHandlerId:n,filters:r,slug:o,userId:i}}}({addonId:e,errorHandlerId:i.id,filters:FR(FR({},a),{},{page:l}),slug:c,userId:s})),f){var d=u.location;u.push({pathname:d.pathname,query:FR(FR({},d.query),{},{page:l})})}},t.deleteNote=function(e,n){var r=t.props,o=r.collection,i=r.dispatch,a=r.filters,u=r.lang;ce()(o,"collection is required");var c=o.slug,s=o.authorId;ce()(c,"slug is required"),ce()(s,"userId is required"),i(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addonId,n=e.errorHandlerId,r=e.filters,o=e.lang,i=e.slug,a=e.userId;return ce()(t,"The addonId parameter is required"),ce()(n,"The errorHandlerId parameter is required"),ce()(r,"The filters parameter is required"),ce()(o,"The lang parameter is required"),ce()(i,"The slug parameter is required"),ce()(a,"The userId parameter is required"),{type:qa,payload:{addonId:t,errorHandlerId:n,filters:r,notes:wa({},o,""),slug:i,userId:a}}}({addonId:e,errorHandlerId:n.id,filters:a,lang:u,slug:c,userId:s}))},t.saveNote=function(e,n,r){var o=t.props,i=o.collection,a=o.dispatch,u=o.filters,c=o.lang;ce()(i,"collection is required");var s=i.slug,l=i.authorId;ce()(s,"slug is required"),ce()(l,"userId is required"),a(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addonId,n=e.errorHandlerId,r=e.notes,o=e.filters,i=e.slug,a=e.userId;return ce()(t,"The addonId parameter is required"),ce()(n,"The errorHandlerId parameter is required"),ce()(null!=r,"The notes parameter is required"),ce()(o,"The filters parameter is required"),ce()(i,"The slug parameter is required"),ce()(a,"The userId parameter is required"),{type:Ha,payload:{addonId:t,errorHandlerId:n,notes:r,filters:o,slug:i,userId:a}}}({addonId:e,errorHandlerId:n.id,notes:UR({},c,r),filters:u,slug:s,userId:l}))},t.addonPlaceholderCount=3,t.maybeResetAddonPlaceholderCount(),t.loadDataIfNeeded(),t}return t=a,(n=[{key:"maybeResetAddonPlaceholderCount",value:function(){var e=this.props.collection;e&&e.addons&&e.addons.length&&(this.addonPlaceholderCount=e.addons.length)}},{key:"componentDidUpdate",value:function(e){this.loadDataIfNeeded(e),this.maybeResetAddonPlaceholderCount()}},{key:"loadDataIfNeeded",value:function(e){var t=this.props,n=t.collection,r=t.creating,o=t.errorHandler,i=t.filters,a=t.loading,u=t.location,c=t.match.params;if(o.hasError())L.Z.warn("Not loading data because of an error.");else if(!r&&!a){var s,l=!1,f=!1;if(e&&e.location&&u&&e.location.pathname!==u.pathname&&(l=!0),e&&!Vy()(e.filters,i)&&(f=!0),n&&(s=/^\d+$/.test(c.userId)?"".concat(n.authorId)===c.userId:n.authorUsername.toLowerCase()===c.userId.toLowerCase(),n.slug.toLowerCase()===c.slug.toLowerCase()&&!1!==s||(l=!0)),l||!n||c.slug===n.slug&&/^\d+$/.test(c.userId))n&&!l?n&&f&&n.numberOfAddons&&this.props.dispatch($a({errorHandlerId:o.id,filters:i,slug:c.slug,userId:Number(c.userId)})):this.props.dispatch(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorHandlerId,n=e.filters,r=e.slug,o=e.userId;return ce()(t,"errorHandlerId is required"),ce()(r,"slug is required"),ce()(o,"userId is required"),{type:Ea,payload:{errorHandlerId:t,filters:n,slug:r,userId:o}}}({errorHandlerId:o.id,filters:i,slug:c.slug,userId:Number(c.userId)||c.userId}));else{var p=this.props,d=p.editing,h=p.lang,y=p.clientApp,m=d?du({collection:n}):pu({collection:n});this.props.dispatch(ik({status:301,url:"/".concat(h,"/").concat(y).concat(m)}))}}}},{key:"renderDeleteButton",value:function(){var e=this.props,t=e.i18n;if(!e.isOwner)return null;var n="Collection-delete-button";return r.createElement(LR,{buttonType:"cancel",className:n,id:n,message:t.gettext("Do you really want to delete this collection?"),onConfirm:this.onDelete},t.gettext("Delete this collection"))}},{key:"renderCollection",value:function(){var e=this.props,t=e.collection,n=e.creating,o=e.editing,i=e.filters,a=e.i18n,u=e.isLoggedIn,c=e.loading;if((n||o)&&!u){var s=n?a.gettext("Log in to create a collection"):a.gettext("Log in to edit this collection");return r.createElement(js,{className:"Collection-login"},r.createElement(Ew,{noIcon:!0,logInText:s}))}var l,f=t&&t.addons||[],p=t&&t.pageSize&&t.numberOfAddons&&t.numberOfAddons>Number(t.pageSize)?r.createElement(ym,{LinkComponent:wc,count:t.numberOfAddons,currentPage:i.page,pathname:o?du({collection:t}):pu({collection:t}),perPage:Number(t.pageSize),queryParams:fu(i)}):null;return u&&(n||!c&&0===f.length)&&(l=n?a.gettext("First, create your collection. Then you can add extensions and themes."):a.gettext("Search for extensions and themes to add to your collection.")),r.createElement("div",{className:"Collection-wrapper"},r.createElement("div",{className:"Collection-detail-wrapper"},r.createElement(js,{className:"Collection-detail"},r.createElement(SR,{collection:t,creating:n,editing:o,filters:i}),this.renderDeleteButton()),!n&&r.createElement(nR,{collection:t,editing:o,filters:i})),r.createElement("div",{className:"Collection-items"},o&&r.createElement(DT,{collection:t,filters:i}),!n&&r.createElement(Ny,{addonInstallSource:D.Bz,addons:f,deleteNote:this.deleteNote,editing:o,footer:p,loading:!t||c,placeholderCount:this.addonPlaceholderCount,removeAddon:this.removeAddon,saveNote:this.saveNote,showFullSizePreview:!0}),l&&r.createElement("p",{className:"Collection-placeholder"},l)))}},{key:"getPageDescription",value:function(){var e=this.props,t=e.collection,n=e.i18n;return ce()(t,"collection is required"),n.sprintf(t.description?n.gettext("Download and create Firefox collections to keep track\n of favorite extensions and themes. Explore the\n %(collectionName)s—%(collectionDescription)s."):n.gettext("Download and create Firefox collections to keep track\n of favorite extensions and themes. Explore the %(collectionName)s."),{collectionName:hu({name:t.name,i18n:n}),collectionDescription:t.description})}},{key:"render",value:function(){var e=this.props,t=e.collection,n=e.errorHandler,o=e.i18n;return n.hasError()&&(L.Z.warn("Captured API Error: ".concat(n.capturedError.messages)),404===n.capturedError.responseStatusCode)?r.createElement(jR,null):r.createElement(HO,null,r.createElement("div",{className:"Collection"},t&&r.createElement(Ao,null,r.createElement("title",null,hu({name:t.name,i18n:o})),r.createElement("meta",{name:"description",content:this.getPageDescription()})),n.renderErrorIfPresent(),this.renderCollection()))}}])&&BR(t.prototype,n),o&&BR(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);WR.defaultProps={creating:!1,editing:!1};const VR=(0,Mo.qC)(Eu(),gs({fileName:"src/amo/pages/Collection/index.js",extractId:function(e){return[e.match.params.userId,e.match.params.slug,e.location.query.page].join("/")}}),(0,g.connect)((function(e,t){var n=e.api,r=e.collections.current.loading,o=t.creating,i=t.location,a={page:i.query.page||"1",collectionSort:i.query.collection_sort||D.Y4},u=Xe(e.users),c=o?null:au(e.collections),s=Boolean(c&&u&&c.authorId===u.id);return{clientApp:n.clientApp,collection:c,filters:a,isLoggedIn:!!u,isOwner:s,lang:n.lang,loading:r}})))(WR);const YR=function(e){return r.createElement(VR,Object.assign({},e,{editing:!0}))};a(86833);const ZR=(0,Mo.qC)(Eu())((function(e){var t,n=e.authorId,o=e.id,i=e.name,a=e.numberOfAddons,u=e.slug,c=e.i18n,s={};return null===a?s.href="":(ce()(n,"authorId is required"),ce()(u,"slug is required"),ce()(void 0!==a&&Number.isInteger(a),"numberOfAddons must be a number"),s.to="/collections/".concat(n,"/").concat(u,"/"),t=c.sprintf(c.ngettext("%(total)s add-on","%(total)s add-ons",a),{total:c.formatNumber(a)})),r.createElement("li",{className:"UserCollection",key:o},r.createElement(wc,Object.assign({className:"UserCollection-link"},s),r.createElement("h2",{className:"UserCollection-name"},null===a?r.createElement(Zp,null):hu({name:i,i18n:c})),r.createElement("p",{className:"UserCollection-number"},t||r.createElement(Zp,null))))}));function $R(e){return($R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function KR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function XR(e,t){return(XR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function JR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tC(e);if(t){var o=tC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eC(this,n)}}function eC(e,t){if(t&&("object"===$R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function tC(e){return(tC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nC=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XR(e,t)}(a,e);var t,n,o,i=JR(a);function a(){return KR(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.collections,n=e.currentUserId,r=e.dispatch,o=e.errorHandler,i=e.loadingUserCollections;r(qo(D.cs)),!n||i||t||r(Va({errorHandlerId:o.id,userId:n}))}},{key:"renderCollections",value:function(){var e=this.props,t=e.i18n,n=e.collections,o=t.gettext("You do not have any collections."),i=[];if(n)n.forEach((function(e){var t=e.authorId,n=e.id,o=e.name,a=e.numberOfAddons,u=e.slug;i.push(r.createElement(ZR,{authorId:t,id:n,key:n,name:o,numberOfAddons:a,slug:u}))}));else for(var a=0;a<4;a++)i.push(r.createElement(ZR,{id:a,key:a,numberOfAddons:null}));var u=i.length?null:o;return r.createElement(xy,{className:"CollectionList-list",footer:u,header:t.gettext("My collections")},i.length&&r.createElement("ul",{className:"CollectionList-listing"},i))}},{key:"render",value:function(){var e=this.props,t=e.i18n,n=e.isLoggedIn;return r.createElement(HO,null,r.createElement("div",{className:"CollectionList"},r.createElement("div",{className:"CollectionList-wrapper"},r.createElement(js,{className:"CollectionList-info",header:t.gettext("Collections")},n?r.createElement(r.Fragment,null,r.createElement("p",{className:"CollectionList-info-text"},t.gettext("Collections make it easy to keep track of\n favorite add-ons and share your perfectly customized browser\n with others.")),r.createElement(Dc,{buttonType:"action",className:"CollectionList-create",puffy:!0,to:"/collections/add/"},t.gettext("Create a collection"))):r.createElement(Ew,{noIcon:!0,logInText:t.gettext("Log in to view your collections")})),n?this.renderCollections():null)))}}])&&QR(t.prototype,n),o&&QR(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const rC=(0,Mo.qC)((0,g.connect)((function(e){var t,n=e.collections,r=e.users,o=Xe(r),i=o&&o.id;return i&&(t=n.userCollections[i]),{currentUserId:i,isLoggedIn:!!o,loadingUserCollections:!!t&&t.loading,collections:lu(n,t)}})),Eu(),gs({fileName:"src/amo/pages/CollectionList/index.js",extractId:function(e){return e.currentUserId||""}}))(nC);function oC(e){return(oC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function iC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uC(e,t){return(uC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lC(e);if(t){var o=lC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sC(this,n)}}function sC(e,t){if(t&&("object"===oC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function lC(e){return(lC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fC=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uC(e,t)}(a,e);var t,n,o,i=cC(a);function a(){return iC(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.i18n;return r.createElement("section",{className:"SuggestedPages"},r.createElement("h2",null,e.gettext("Suggested Pages")),r.createElement("ul",null,r.createElement("li",null,r.createElement(wc,{to:"/".concat(xn(D.Gz),"/")},e.gettext("Browse all extensions"))),r.createElement("li",{className:"SuggestedPages-link-themes"},r.createElement(wc,{to:"/".concat(xn(D.Yd),"/")},e.gettext("Browse all themes"))),r.createElement("li",null,r.createElement(wc,{to:"/"},e.gettext("Add-ons Home Page")))))}}])&&aC(t.prototype,n),o&&aC(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const pC=(0,Mo.qC)(Eu())(fC);function dC(e){return(dC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mC(e,t){return(mC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bC(e);if(t){var o=bC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gC(this,n)}}function gC(e,t){if(t&&("object"===dC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function bC(e){return(bC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wC=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mC(e,t)}(a,e);var t,n,o,i=vC(a);function a(){return hC(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.i18n,t=e.sprintf(e.gettext('\n If you are signed in and think this message is an error, please\n <a href="%(url)s">file an issue</a>. Tell us where you came from\n and what you were trying to access, and we\'ll fix the issue.'),{url:"https://github.com/mozilla/addons-frontend/issues/new/"});return r.createElement(cg,{code:401,header:e.gettext("Not Authorized")},r.createElement("p",null,e.gettext("\n Sorry, but you aren't authorized to access this page. If you\n aren't signed in, try signing in using the link at the top\n of the page.")),r.createElement(pC,null),r.createElement("p",{dangerouslySetInnerHTML:vn(t,["a"])}))}}])&&yC(t.prototype,n),o&&yC(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const OC=(0,Mo.qC)(Eu())(wC);const EC=function(){return r.createElement(HO,{showWrongPlatformWarning:!1},r.createElement(OC,null))};const _C=function(){return r.createElement(HO,{showWrongPlatformWarning:!1},r.createElement(Lg,null))};function xC(e){return(xC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function PC(e,t){return(PC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function kC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=TC(e);if(t){var o=TC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return IC(this,n)}}function IC(e,t){if(t&&("object"===xC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function TC(e){return(TC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var RC=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PC(e,t)}(a,e);var t,n,o,i=kC(a);function a(){return SC(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.i18n,t=e.gettext('\n If you have additional information that would help us you can\n <a href="https://github.com/mozilla/addons-frontend/issues/new/">file an\n issue</a>. Tell us what steps you took that lead to the error and we\'ll\n do our best to fix it.');return r.createElement(cg,{code:500,header:e.gettext("Server Error")},r.createElement("p",null,e.gettext("\n Sorry, but there was an error with our server and we couldn't\n complete your request. We have logged this error and will\n investigate it.")),r.createElement(pC,null),r.createElement("p",{dangerouslySetInnerHTML:vn(t,["a"])}))}}])&&jC(t.prototype,n),o&&jC(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const CC=(0,Mo.qC)(Eu())(RC);const AC=function(){return r.createElement(HO,{showWrongPlatformWarning:!1},r.createElement(CC,null))};function NC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NC(Object(n),!0).forEach((function(t){DC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MC="FETCH_BLOCK",FC="ABORT_FETCH_BLOCK",UC="LOAD_BLOCK",BC={blocks:{},lang:""},HC=function(e){var t=e.guid;return{type:FC,payload:{guid:t}}},qC=function(e){var t=e.block;return ce()(t,"block is required"),{type:UC,payload:{block:t}}},zC=function(e,t){return LC(LC({},e),{},{name:Yi(e.addon_name,t)})};const GC=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:BC,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case FC:return LC(LC({},e),{},{blocks:DC({},t.payload.guid,null)});case UC:var n=t.payload.block;return LC(LC({},e),{},{blocks:LC(LC({},e.blocks),{},DC({},n.guid,zC(n,e.lang)))});case dt:return LC(LC({},e),{},{lang:t.payload.lang});default:return e}};function WC(e){return(WC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function VC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function YC(e,t){return(YC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ZC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=KC(e);if(t){var o=KC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $C(this,n)}}function $C(e,t){if(t&&("object"===WC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function KC(e){return(KC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var QC=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YC(e,t)}(a,e);var t,n,o,i=ZC(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=(t=i.call(this,e)).props,r=n.block,o=n.dispatch,u=n.errorHandler,c=n.match.params.guid;return void 0===r&&o(function(e){var t=e.errorHandlerId,n=e.guid;return ce()(t,"errorHandlerId is required"),ce()(n,"guid is required"),{type:MC,payload:{errorHandlerId:t,guid:n}}}({errorHandlerId:u.id,guid:c})),t}return t=a,(n=[{key:"renderReason",value:function(){var e=this.props.block;return e&&null===e.reason?null:r.createElement("p",{className:"Block-reason"},e?vn(e.reason).__html:r.createElement(Zp,null))}},{key:"renderDateAndURL",value:function(){var e=this.props,t=e.block,n=e.i18n;if(!t)return r.createElement(Zp,null);var o=[n.sprintf(n.gettext("Blocked on %(date)s."),{date:n.moment(t.created).format("ll")})];return t.url&&o.push(" ",r.createElement("a",{key:t.url.url,href:t.url.outgoing,title:t.url.url},n.gettext("View block request")),"."),o}},{key:"renderVersions",value:function(){var e=this.props,t=e.block,n=e.i18n;return t?"0"===t.min_version&&"*"===t.max_version?n.gettext("Versions blocked: all versions."):n.sprintf(n.gettext("Versions blocked: %(min)s to %(max)s."),{min:t.min_version,max:t.max_version}):r.createElement(Zp,null)}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.errorHandler,o=e.i18n;if(n.hasError())return L.Z.warn("Captured API Error: ".concat(n.capturedError.messages)),404===n.capturedError.responseStatusCode?r.createElement(jR,null):r.createElement(AC,null);var i=t&&t.name?o.sprintf(o.gettext("%(addonName)s has been blocked for your protection."),{addonName:t.name}):o.gettext("This add-on has been blocked for your protection.");return r.createElement(HO,null,r.createElement("div",{className:"Block-page"},r.createElement(Ao,null,r.createElement("title",null,i),r.createElement("meta",{name:"robots",content:"noindex, follow"})),r.createElement(js,{className:"Block-content",header:i},r.createElement("h2",null,o.gettext("Why was it blocked?")),r.createElement("p",{dangerouslySetInnerHTML:vn(o.sprintf(o.gettext("This add-on violates %(startLink)sMozilla's\n Add-on Policies%(endLink)s."),{startLink:'<a href="'.concat("https://extensionworkshop.com/documentation/publish/add-on-policies/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=blocked-addon",'">'),endLink:"</a>"}),["a"])}),this.renderReason(),r.createElement("h2",null,o.gettext("What does this mean?")),r.createElement("p",null,o.gettext("The problematic add-on or plugin will be\n automatically disabled and no longer usable.")),r.createElement("p",{dangerouslySetInnerHTML:vn(o.sprintf(o.gettext("When Mozilla becomes aware of add-ons, plugins,\n or other third-party software that seriously compromises\n Firefox security, stability, or performance and meets\n %(criteriaStartLink)scertain criteria%(criteriaEndLink)s,\n the software may be blocked from general use. For more\n information, please read %(supportStartLink)sthis support\n article%(supportEndLink)s."),{criteriaStartLink:'<a href="'.concat("https://extensionworkshop.com/documentation/publish/add-ons-blocking-process/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=blocked-addon",'">'),criteriaEndLink:"</a>",supportStartLink:'<a href="'.concat("https://support.mozilla.org/kb/add-ons-cause-issues-are-on-blocklist",'">'),supportEndLink:"</a>"}),["a"])}),r.createElement("p",{className:"Block-metadata"},this.renderVersions(),r.createElement("br",null),this.renderDateAndURL()))))}}])&&VC(t.prototype,n),o&&VC(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const XC=(0,Mo.qC)(Eu(),(0,g.connect)((function(e,t){return{block:e.blocks.blocks[t.match.params.guid]}})),gs({fileName:"src/amo/pages/Block/index.js",extractId:function(e){return e.match.params.guid}}))(QC);const JC=function(e){var t=e.alt,n=e.className,o=e.color,i=e.name;return r.createElement(ac,{alt:t,className:Ho()("CategoryIcon","CategoryIcon-".concat(o),n),name:i})};function eA(e){return(eA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rA(e,t){return(rA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=aA(e);if(t){var o=aA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return iA(this,n)}}function iA(e,t){if(t&&("object"===eA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function aA(e){return(aA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uA="primary-hero-click",cA="AMO Primary Hero Clicks",sA="external-link",lA="primary-hero-impression",fA="AMO Primary Hero Impressions",pA="homepage-primary-hero",dA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rA(e,t)}(a,e);var t,n,o,i=oA(a);function a(){var e;tA(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).makeCallToActionURL=function(){var t=e.props.shelfData;ce()(t,"The shelfData property is required");var n=t.addon,r=t.external;return n?Ut(ln(n.slug),{utm_source:D.Pr,utm_medium:D.AT,utm_content:pA}):(ce()(r,"Either an addon or an external is required"),r.homepage?Ut(r.homepage.url,{utm_source:D.Pr,utm_medium:D.AT,utm_content:pA}):null)},e.onHeroClick=function(){var t=e.props,n=t._tracking,r=t.shelfData;ce()(r,"The shelfData property is required");var o=r.addon;n.sendEvent({action:uA,category:cA,label:o?o.guid:sA})},e.onHeroImpression=function(){var t=e.props,n=t._tracking,r=t.shelfData;ce()(r,"The shelfData property is required");var o=r.addon;n.sendEvent({action:lA,category:fA,label:o?o.guid:sA})},e}return t=a,(n=[{key:"componentDidMount",value:function(){this.props.shelfData&&this.onHeroImpression()}},{key:"componentDidUpdate",value:function(e){var t=this.props.shelfData;t&&e.shelfData!==t&&this.onHeroImpression()}},{key:"render",value:function(){var e=this.props,t=e._checkInternalURL,n=e._getPromotedCategory,o=e.clientApp,i=e.i18n,a=e.errorHandler,u=e.shelfData,c=e.siteIsReadOnly,s=e.siteNotice;if(null===u)return null;var l,f,p,d,h,y=u||{},m=y.addon,v=y.description,g=y.external,b=y.featuredImage,w=y.gradient,O=!1,E=c||s?"HeroRecommendation--height-with-notice":"HeroRecommendation--height-without-notice";if(u){l="HeroRecommendation-".concat(w.start,"-").concat(w.end),L.Z.debug("className ".concat(l," generated from the API response. This should match a selector in styles.scss"));var _=this.makeCallToActionURL();if(_){var x=r.createElement("span",null," ",i.gettext("Get the extension")," "),S=t({urlString:_}).isInternal?{}:{rel:"noopener noreferrer",target:"_blank"};m?(f=m.name,p=r.createElement(wc,{className:"HeroRecommendation-link",onClick:this.onHeroClick,to:_},x)):g&&(f=g.name,p=r.createElement("a",Object.assign({className:"HeroRecommendation-link",href:_,onClick:this.onHeroClick},S),x))}}return m||g||(l="HeroRecommendation--loading",O=!0),r.createElement("section",{className:Ho()("HeroRecommendation",l,E,{"HeroRecommendation--no-image":!b&&!O})},r.createElement("div",{className:"HeroRecommendation-wrapper"},r.createElement(eg,{className:"HeroRecommendation-banner"}),r.createElement(Bw,{className:"HeroRecommendation-WrongPlatformWarning"}),a.renderErrorIfPresent(),r.createElement("div",{className:"HeroRecommendation-content"},O?r.createElement("div",{className:"HeroRecommendation-image-loading"},r.createElement(Zp,{width:100})):b&&r.createElement("div",{className:"HeroRecommendation-image-wrapper"},r.createElement("img",{className:"HeroRecommendation-image",alt:"",src:b})),r.createElement("div",{className:"HeroRecommendation-info"},(d=null,h=n({addon:m,clientApp:o,forBadging:!0}),O||(d=h===D.g$?i.gettext("RECOMMENDED"):h===D.fq?i.gettext("BY FIREFOX"):i.gettext("SPONSORED")),r.createElement("div",{className:"HeroRecommendation-title"},r.createElement("div",{className:"HeroRecommendation-title-text"},d||r.createElement(Zp,{width:20})),[D.fq,D.g$].includes(h)||O?null:r.createElement("a",{className:"HeroRecommendation-title-link",href:"".concat(hn({utm_content:pA}),"#sponsored"),rel:"noopener noreferrer",target:"_blank",title:i.gettext("Firefox only recommends extensions that meet our standards for security and performance.")},"What is this?"))),r.createElement("h2",{className:"HeroRecommendation-heading"},O?r.createElement(Zp,{width:60}):f),O?r.createElement("div",{className:"HeroRecommendation-body"},r.createElement(r.Fragment,null,r.createElement(Zp,{width:100}),r.createElement("br",null),r.createElement(Zp,{width:80}))):r.createElement("div",{className:"HeroRecommendation-body",dangerouslySetInnerHTML:bn(v)}),p))))}}])&&nA(t.prototype,n),o&&nA(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);dA.defaultProps={_checkInternalURL:dn,_getPromotedCategory:Gs,_tracking:pr};const hA=(0,Mo.qC)((0,g.connect)((function(e){return{clientApp:e.api.clientApp,siteIsReadOnly:e.site.readOnly,siteNotice:e.site.notice}})),Eu())(dA);function yA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yA(Object(n),!0).forEach((function(t){vA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gA(e){return(gA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function OA(e,t){return(OA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function EA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xA(e);if(t){var o=xA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _A(this,n)}}function _A(e,t){if(t&&("object"===gA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xA(e){return(xA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var SA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OA(e,t)}(a,e);var t,n,o,i=EA(a);function a(){return bA(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.addonInstallSource,n=e.addons,o=e.className,i=e.footerLink,a=e.footerText,u=e.header,c=e.isHomepageShelf,s=e.isTheme,l=e.loading,f=e.placeholderCount,p=null,d={},h=s?D.Pn:f;return n&&n.length>=h&&(i&&"object"===gA(i)?i.href?(d.href=i.href,d.prependClientApp=!1,d.prependLang=!1,d.target="_blank"):d.to=mA(mA({},i),{},{query:Tt(i.query)}):d.to=i,p=r.createElement(wc,d,a)),r.createElement(Ny,{addonInstallSource:t,addons:n,className:Ho()("LandingAddonsCard",o,{"LandingAddonsCard-Themes":s}),footerLink:p,header:u,isHomepageShelf:c,showPromotedBadge:!1,type:"horizontal",loading:l,placeholderCount:h,useThemePlaceholder:s})}}])&&wA(t.prototype,n),o&&wA(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);SA.defaultProps={isHomepageShelf:!1,placeholderCount:D.Db};const jA=Eu()((function(e){var t,n=e._checkInternalURL,o=void 0===n?dn:n,i=e.i18n,a=e.loading,u=e.shelves;return t=a?r.createElement("div",{className:"HomepageShelves-loading"},[1,2,3].map((function(e){return r.createElement(SA,{className:"HomepageShelves-loading-card",key:"HomepageShelves-loading-".concat(e),header:r.createElement(Zp,{width:100}),loading:!0})}))):u.map((function(e){var t,n=e.addons,a=e.addonType,u=e.endpoint,c=e.footer,s=e.title,l=e.url,f=s.replace(/\s/g,"-"),p=c.text?c.text:i.sprintf(i.gettext("See more %(categoryName)s"),{categoryName:s.toLowerCase()});switch(u){case"collections":t=D.k_;break;case"random-tag":t="".concat(D.Jt).concat(function(e){var t=ae.parse(e,!0).query;return t&&t.tag}(l));break;default:t=D.Ow}var d,h=a===D.Yd,y=h?D.Pn:D.Db,m=o({urlString:c.url});return d=m.isInternal?m.relativeURL:{href:c.url},r.createElement(SA,{addonInstallSource:t,addons:n,className:"Home-".concat(f),footerText:p,footerLink:d,header:s,isHomepageShelf:!0,isTheme:h,key:f,placeholderCount:y})})),r.createElement("div",{className:"HomepageShelves"},t)}));function PA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PA(Object(n),!0).forEach((function(t){IA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TA=function(e){return Ut(e,{utm_source:D.Pr,utm_medium:D.AT,utm_content:"homepage-secondary-hero"})};const RA=function(e){var t=e._checkInternalURL,n=void 0===t?dn:t,o=e._stripLangFromAmoUrl,i=void 0===o?yn:o,a=e._tracking,u=void 0===a?pr:a,c=e.shelfData;if(null===c)return null;var s=c||{},l=s.headline,f=s.description,p=s.cta,d=c&&c.modules||Array(3).fill({}),h=function(e){u.sendEvent({action:"secondary-hero-click",category:"AMO Secondary Hero Clicks",label:i({urlString:e.currentTarget.href})})},y=function(e){var t={onClick:h};if(e){var r=n({urlString:e.url});return r.isInternal?kA(kA({},t),{},{to:TA(r.relativeURL)}):kA(kA({},t),{},{href:TA(e.url),prependClientApp:!1,prependLang:!1,target:"_blank"})}return{}},m=[];return d.forEach((function(e){m.push(r.createElement("div",{className:"SecondaryHero-module",key:e.description},e.icon?r.createElement("img",{alt:e.description,className:"SecondaryHero-module-icon",src:e.icon}):r.createElement("div",{className:"SecondaryHero-module-icon"}),r.createElement("div",{className:"SecondaryHero-module-description"},e.description||r.createElement(Zp,{width:60})),e.cta&&r.createElement(wc,Object.assign({className:"SecondaryHero-module-link"},y(e.cta)),r.createElement("span",{className:"SecondaryHero-module-linkText"},e.cta&&e.cta.text)),!e.description&&r.createElement("div",{className:"SecondaryHero-module-link"},r.createElement(Zp,{width:60}))))})),r.createElement("section",{className:"SecondaryHero"},r.createElement("div",{className:"SecondaryHero-message"},r.createElement("h2",{className:"SecondaryHero-message-headline"},l||r.createElement(r.Fragment,null,r.createElement(Zp,{width:80}),r.createElement("br",null),r.createElement(Zp,{width:60}))),r.createElement("div",{className:"SecondaryHero-message-description"},f||r.createElement(r.Fragment,null,r.createElement(Zp,{width:80}),r.createElement("br",null),r.createElement(Zp,{width:60}))),p&&r.createElement(wc,Object.assign({className:"SecondaryHero-message-link"},y(p)),r.createElement("span",{className:"SecondaryHero-message-linkText"},p.text)),!l&&r.createElement("div",{className:"SecondaryHero-message-link"},r.createElement(Zp,{width:60}))),m)};function CA(e){return(CA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function AA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function NA(e,t){return(NA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function LA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=MA(e);if(t){var o=MA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return DA(this,n)}}function DA(e,t){if(t&&("object"===CA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function MA(e){return(MA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var FA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NA(e,t)}(a,e);var t,n,o,i=LA(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).loadDataIfNeeded(),t}return t=a,(n=[{key:"componentDidUpdate",value:function(){this.loadDataIfNeeded()}},{key:"loadDataIfNeeded",value:function(){var e=this.props,t=e.dispatch,n=e.errorHandler,r=e.isDesktopSite,o=e.isLoading,i=e.resultsLoaded;n.hasError()||(t(qo(D.cs)),i||o||t(function(e){var t=e.errorHandlerId,n=e.isDesktopSite;return ce()(t,"errorHandlerId is required"),{type:_l,payload:{errorHandlerId:t,isDesktopSite:n}}}({errorHandlerId:n.id,isDesktopSite:r})))}},{key:"renderCuratedThemes",value:function(){var e=this.props.i18n,t=[{color:1,slug:"abstract",title:e.gettext("Abstract")},{color:2,slug:"nature",title:e.gettext("Nature")},{color:3,slug:"film-and-tv",title:e.gettext("Film & TV")},{color:4,slug:"scenery",title:e.gettext("Scenery")},{color:5,slug:"music",title:e.gettext("Music")},{color:6,slug:"seasonal",title:e.gettext("Seasonal")}];return r.createElement("ul",{className:"Home-SubjectShelf-list"},t.map((function(e){var t=e.color,n=e.slug,o=e.title;return r.createElement("li",{className:"Home-SubjectShelf-list-item",key:n},r.createElement(wc,{to:{pathname:rh({addonType:D.Yd,slug:n})},className:"Home-SubjectShelf-link"},r.createElement(JC,{name:n,color:t}),r.createElement("span",null,o)))})))}},{key:"renderHeroHeader",value:function(){var e=this.props.homeShelves;return r.createElement("div",{className:"Home-heroHeader"},r.createElement("h2",{className:"Home-heroHeader-title"},e?e.secondary.headline:r.createElement(Zp,null)),r.createElement("h3",{className:"Home-heroHeader-subtitle"},e?e.secondary.description:r.createElement(Zp,null)))}},{key:"render",value:function(){var e=this.props,t=e.errorHandler,n=e.homeShelves,o=e.i18n,i=e.isDesktopSite,a=e.resultsLoaded,u=e.shelves,c=o.gettext("Change the way Firefox looks with\n themes."),s=!1===a;return r.createElement(HO,{isHomePage:!0,showWrongPlatformWarning:!i},r.createElement("div",{className:"Home"},r.createElement(hp,{description:o.gettext("Download Firefox extensions and themes.\n They’re like apps for your browser. They can block annoying ads,\n protect passwords, change browser appearance, and more."),withTwitterMeta:!0}),r.createElement(ep,null),r.createElement("span",{className:"visually-hidden do-not-remove",dangerouslySetInnerHTML:{__html:"\x3c!-- Godzilla of browsers --\x3e"}}),!i&&t.hasError()?r.createElement("div",{className:"Home-noHeroError"},t.renderError()):null,i?r.createElement(hA,{errorHandler:t,shelfData:n?n.primary:void 0}):null,r.createElement("div",{className:"Home-content"},i?r.createElement(RA,{shelfData:n?n.secondary:void 0}):null,i?null:this.renderHeroHeader(),i?r.createElement(jA,{loading:s,shelves:n?n.results:[]}):r.createElement(SA,{addonInstallSource:D.Ow,addons:u.recommendedExtensions,className:"Home-RecommendedExtensions",header:o.gettext("Recommended extensions"),footerText:o.gettext("See more recommended extensions"),footerLink:{pathname:"/search/",query:{addonType:D.Gz,promoted:D.g$,sort:D.wn}},loading:s,placeholderCount:D.Fb}),i?r.createElement(r.Fragment,null,r.createElement(js,{className:"Home-SubjectShelf Home-CuratedThemes",header:c},r.createElement("div",{className:"Home-SubjectShelf-text-wrapper"},r.createElement("h2",{className:"Home-SubjectShelf-subheading"},c)),this.renderCuratedThemes())):null)))}}])&&AA(t.prototype,n),o&&AA(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);FA.propTypes={dispatch:w().func.isRequired,errorHandler:w().object.isRequired,homeShelves:w().object,i18n:w().object.isRequired,isDesktopSite:w().bool,isLoading:w().bool,resultsLoaded:w().bool.isRequired,shelves:w().object};const UA=(0,Mo.qC)((0,g.connect)((function(e){return{homeShelves:e.home.homeShelves,isDesktopSite:e.api.clientApp===D.So,isLoading:e.home.isLoading,resultsLoaded:e.home.resultsLoaded,shelves:e.home.shelves}})),Eu(),ms({id:"Home"}))(FA);function BA(e){return(BA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function HA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zA(e,t){return(zA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function GA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VA(e);if(t){var o=VA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return WA(this,n)}}function WA(e,t){if(t&&("object"===BA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function VA(e){return(VA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var YA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zA(e,t)}(a,e);var t,n,o,i=GA(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).contentForType=function(e){var n,r=t.props.i18n,o=En(e);return{addonType:o,html:(HA(n={},D.Gz,{recommendedHeader:r.gettext("Recommended extensions"),recommendedFooterLink:{pathname:"/search/",query:{addonType:D.Gz,promoted:D.g$,sort:D.wn}},recommendedFooterText:r.gettext("See more recommended extensions"),trendingHeader:r.gettext("Trending extensions"),trendingFooterLink:{pathname:"/search/",query:{addonType:D.Gz,promoted:D.g$,sort:D.Mj}},trendingFooterText:r.gettext("See more trending extensions"),highlyRatedHeader:r.gettext("Top rated extensions"),highlyRatedFooterLink:{pathname:"/search/",query:{addonType:D.Gz,promoted:D.g$,sort:D.kc}},highlyRatedFooterText:r.gettext("See more top rated extensions")}),HA(n,D.Yd,{recommendedHeader:r.gettext("Recommended themes"),recommendedFooterLink:{pathname:"/search/",query:{addonType:D.Yd,promoted:D.g$,sort:D.wn}},recommendedFooterText:r.gettext("See more recommended themes"),trendingHeader:r.gettext("Trending themes"),trendingFooterLink:{pathname:"/search/",query:{addonType:D.Yd,sort:D.Mj}},trendingFooterText:r.gettext("See more trending themes"),highlyRatedHeader:r.gettext("Top rated themes"),highlyRatedFooterLink:{pathname:"/search/",query:{addonType:D.Yd,sort:D.kc}},highlyRatedFooterText:r.gettext("See more top rated themes")}),n)[o]}},t.getLandingDataIfNeeded(),t.setViewContextType(),t}return t=a,(n=[{key:"componentDidUpdate",value:function(){var e=this.props.match.params;ce()(On(e.visibleAddonType),"LandingPage should not be accessible with an invalid addonType"),this.getLandingDataIfNeeded(),this.setViewContextType()}},{key:"getLandingDataIfNeeded",value:function(){var e,t,n,r,o=this.props,i=o.addonTypeOfResults,a=o.dispatch,u=o.errorHandler,c=o.loading,s=o.match.params,l=o.resultsLoaded,f=En(s.visibleAddonType);c||u.hasError()||l&&i===f||a((e={addonType:f,errorHandlerId:u.id},t=e.addonType,n=e.category,r=e.errorHandlerId,ce()(t,"addonType is required"),ce()(r,"errorHandlerId is required"),{type:Ll,payload:{addonType:t,category:n||null,errorHandlerId:r}}))}},{key:"setViewContextType",value:function(){var e=this.props,t=e.context,n=En(e.match.params.visibleAddonType);t!==n&&this.props.dispatch(qo(n))}},{key:"renderIfNotEmpty",value:function(e,t){return 0!==e.length||this.props.loading?t:null}},{key:"getPageDescription",value:function(){var e=this.props,t=e.i18n;return En(e.match.params.visibleAddonType)===D.Yd?t.gettext("Download themes to change how Firefox looks. Tailor\n your experience to your tastes. Cute critters, evil robots, beautiful\n landscapes—thousands of options."):t.gettext("Download Firefox Extensions to add features that\n customize browsing. Protect passwords, find deals, enhance video, and\n block annoying ads with browser apps.")}},{key:"render",value:function(){var e,t,n=this.props,o=n.errorHandler,i=n.recommendedAddons,a=n.highlyRatedAddons,u=n.i18n,c=n.loading,s=n.trendingAddons,l=this.props.match.params.visibleAddonType,f=this.contentForType(l),p=f.addonType,d=f.html,h=(HA(e={},D.Yd,u.gettext("Themes")),HA(e,D.Gz,u.gettext("Extensions")),e),y=(HA(t={},D.Yd,u.gettext("Change your browser's appearance.\n Choose from thousands of themes to give Firefox the look you want.")),HA(t,D.Gz,u.gettext("Explore powerful tools and features\n to customize Firefox and make the browser all your own.")),t),m=D.Yd===p,v=h[p];return r.createElement(HO,null,r.createElement("div",{className:Ho()("LandingPage","LandingPage--".concat(p),{"LandingPage--theme":m})},r.createElement(Ao,null,r.createElement("title",null,v)),r.createElement(hp,{description:this.getPageDescription(),title:v}),r.createElement(ep,null),o.renderErrorIfPresent(),r.createElement("div",{className:"LandingPage-header"},r.createElement("h1",{className:"LandingPage-addonType-name"},h[p]),r.createElement("p",{className:"LandingPage-heading-content"},y[p])),r.createElement(cI,{addonType:p}),r.createElement(Dc,{buttonType:"light",className:"LandingPage-button",to:"/".concat(xn(p),"/categories/")},u.gettext("Explore all categories")),this.renderIfNotEmpty(i,r.createElement(SA,{addonInstallSource:D.Ow,addons:i,className:"RecommendedAddons",footerText:d.recommendedFooterText,footerLink:d.recommendedFooterLink,header:d.recommendedHeader,isTheme:m,loading:c})),this.renderIfNotEmpty(a,r.createElement(SA,{addonInstallSource:D.u,addons:a,className:"HighlyRatedAddons",footerLink:d.highlyRatedFooterLink,footerText:d.highlyRatedFooterText,header:d.highlyRatedHeader,isTheme:m,loading:c})),this.renderIfNotEmpty(s,r.createElement(SA,{addonInstallSource:D.IU,addons:s,className:"TrendingAddons",footerLink:d.trendingFooterLink,footerText:d.trendingFooterText,header:d.trendingHeader,isTheme:m,loading:c}))))}}])&&qA(t.prototype,n),o&&qA(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);YA.propTypes={addonTypeOfResults:w().string,context:w().string.isRequired,dispatch:w().func.isRequired,errorHandler:w().object.isRequired,recommendedAddons:w().array.isRequired,highlyRatedAddons:w().array.isRequired,loading:w().bool.isRequired,trendingAddons:w().array.isRequired,i18n:w().object.isRequired,match:w().shape({params:w().shape({visibleAddonType:w().string.isRequired}).isRequired}).isRequired,resultsLoaded:w().bool.isRequired};const ZA=(0,Mo.qC)((0,g.connect)((function(e){var t=e.landing,n=e.viewContext;return{addonTypeOfResults:t.addonType,context:n.context,recommendedAddons:t.recommended.results,highlyRatedAddons:t.highlyRated.results,loading:t.loading,trendingAddons:t.trending.results,resultsLoaded:t.resultsLoaded&&null===t.category}})),Eu(),ms({id:"LandingPage"}))(YA);var $A=a(73331);function KA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KA(Object(n),!0).forEach((function(t){XA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JA="FETCH_LANGUAGE_TOOLS",eN="LOAD_LANGUAGE_TOOLS",tN={byID:{},lang:""},nN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.languageTools;if(!t)throw new Error("languageTools are required");return{type:eN,payload:{languageTools:t}}},rN=function(e){var t=e.languageTools.byID;return Object.keys(t).map((function(e){return t[e]}))},oN=function(e,t){return QA(QA({},e),{},{name:Yi(e.name,t)})};function iN(e){return(iN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uN(e,t){return(uN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lN(e);if(t){var o=lN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sN(this,n)}}function sN(e,t){if(t&&("object"===iN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function lN(e){return(lN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fN=Object.keys(we).map((function(e){return{english:we[e].English,locale:e,native:we[e].native}})).sort((function(e,t){return e.english.localeCompare(t.english)})),pN=fN.map((function(e){return e.locale})),dN=function(e){var t=e.languageTools;return ce()(t.length,"languageTools should not be empty"),r.createElement("ul",{className:"LanguageTools-addon-list"},t.map((function(e){return r.createElement("li",{key:e.slug},r.createElement(wc,{to:ln(e.slug)},e.name))})))},hN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uN(e,t)}(a,e);var t,n,o,i=cN(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=e.dispatch,r=e.errorHandler,o=e.languageTools;return n(qo(D.NI)),0===o.length&&n(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).errorHandlerId;if(!e)throw new Error("errorHandlerId is required");return{type:JA,payload:{errorHandlerId:e}}}({errorHandlerId:r.id})),t}return t=a,(n=[{key:"languageToolsInYourLocale",value:function(){var e=this.props,t=e.i18n,n=e.lang,o=e.languageTools.filter((function(e){return e.target_locale===n}));return o&&o.length?r.createElement("div",{className:"LanguageTools-in-your-locale"},r.createElement("h2",{className:"LanguageTools-header"},t.gettext("Available for your locale")),r.createElement("ul",{className:"LanguageTools-in-your-locale-list"},o.map((function(e){return r.createElement("li",{className:"LanguageTools-in-your-locale-list-item",key:e.slug},r.createElement(wc,{className:"LanguageTools-in-your-locale-list-item--".concat(e.type),to:ln(e.slug)},e.name))})))):null}},{key:"render",value:function(){var e=this.props,t=e.languageTools,n=e.errorHandler,o=e.i18n,i=o.gettext("Dictionaries and Language Packs");return r.createElement(HO,null,r.createElement(js,{className:"LanguageTools",header:i},r.createElement(Ao,null,r.createElement("title",null,i)),r.createElement(hp,{description:o.gettext("Download Firefox dictionaries and language\n pack extensions. Add a new language option to your browser\n spell-checker, or change the browser's interface language."),title:i}),r.createElement(ep,null),n.renderErrorIfPresent(),r.createElement("p",null,o.gettext("Installing a dictionary add-on will add a new language\n option to your spell-checker, which checks your spelling as you\n type in Firefox.")),r.createElement("p",null,o.gettext("Language packs change your browser's interface\n language, including menu options and settings.")),this.languageToolsInYourLocale(),r.createElement("h2",{className:"LanguageTools-header"},o.gettext("All Locales")),r.createElement($A.iA,{className:"LanguageTools-table"},r.createElement($A.hr,null,r.createElement($A.Tr,{className:"LanguageTools-header-row"},r.createElement($A.Th,{className:"LanguageTools-header-cell LanguageTool-localeName"},o.gettext("Locale Name")),r.createElement($A.Th,{className:"LanguageTools-header-cell"},o.gettext("Language Packs")),r.createElement($A.Th,{className:"LanguageTools-header-cell"},o.gettext("Dictionaries")))),r.createElement($A.p3,null,t.length?fN.map((function(e){var n=t.filter((function(t){if(pN.includes(t.target_locale))return t.target_locale===e.locale;var n=new RegExp("^".concat(e.locale,"(-\\w+){0,2}$"));return t.target_locale&&n.test(t.target_locale)}));if(!n||!n.length)return null;var o=n.filter((function(e){return e.type===D.jV})),i=n.filter((function(e){return e.type===D.d$}));return r.createElement($A.Tr,{className:Ho()("LanguageTools-table-row","LanguageTools-lang-".concat(e.locale)),key:e.locale},r.createElement($A.Td,null,r.createElement("strong",null,e.english)," ",r.createElement("span",{lang:e.locale},e.native)),r.createElement($A.Td,{className:"LanguageTools-lang-".concat(e.locale,"-languagePacks")},i.length?r.createElement(dN,{languageTools:i}):null),r.createElement($A.Td,{className:"LanguageTools-lang-".concat(e.locale,"-dictionaries")},o.length?r.createElement(dN,{languageTools:o}):null))})):Array.from(Array(50)).map((function(e,t){return r.createElement($A.Tr,{key:"LoadingText-".concat(t)},r.createElement($A.Td,null,r.createElement(Zp,null)),r.createElement($A.Td,null,r.createElement(Zp,null)),r.createElement($A.Td,null,r.createElement(Zp,null)))}))))))}}])&&aN(t.prototype,n),o&&aN(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const yN=(0,Mo.qC)(ms({name:"LanguageTools"}),(0,g.connect)((function(e){return{lang:e.api.lang,languageTools:rN(e)}})),Eu())(hN);function mN(e){return(mN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gN(e,t){return(gN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ON(e);if(t){var o=ON(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wN(this,n)}}function wN(e,t){if(t&&("object"===mN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ON(e){return(ON=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var EN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gN(e,t)}(a,e);var t,n,o,i=bN(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=e.clientApp,r=e.dispatch,o=e.lang,u=rh({addonType:D.Gz,slug:"search-tools"});return r(ik({status:301,url:"/".concat(o,"/").concat(n).concat(u)})),t}return t=a,(n=[{key:"render",value:function(){return r.createElement(jR,null)}}])&&vN(t.prototype,n),o&&vN(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const _N=(0,Mo.qC)(Eu(),(0,g.connect)((function(e){return{clientApp:e.api.clientApp,lang:e.api.lang}})))(EN);function xN(e){return(xN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kN(e,t){return(kN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function IN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=RN(e);if(t){var o=RN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return TN(this,n)}}function TN(e,t){if(t&&("object"===xN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function RN(e){return(RN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var CN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kN(e,t)}(a,e);var t,n,o,i=IN(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=e.clientApp,r=e.filters,o=e.lang,u=e.location,c="/search/",s=!1,l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SN(Object(n),!0).forEach((function(t){jN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r);if(l.category&&l.addonType&&_n(l.addonType)?(c=rh({addonType:l.addonType,slug:l.category}),delete l.addonType,delete l.category,l.sort===D.YM&&delete l.sort,s=!0):l.tag&&(c=ih({tag:l.tag}),delete l.tag,l.sort===D.B2&&delete l.sort,s=!0),u.query.platform&&(s=!0),u.query.atype){switch(String(u.query.atype)){case"1":l.addonType=D.Gz;break;case"3":l.addonType=D.jV;break;case"5":l.addonType=D.d$;break;default:return TN(t)}s=!0}if(s){var f=Zt(Tt(l));e.dispatch(ik({status:301,url:"/".concat(o,"/").concat(n).concat(c).concat(f)}))}return t}return t=a,(n=[{key:"render",value:function(){var e=this.props.filters;return r.createElement(HO,null,r.createElement(dT,{filters:e,paginationQueryParams:Tt(e)}))}}])&&PN(t.prototype,n),o&&PN(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const AN=(0,Mo.qC)((0,g.connect)((function(e,t){var n=Rt(t.location.query);return{filters:Nt(n),clientApp:e.api.clientApp,lang:e.api.lang}})))(CN);function NN(e){return(NN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var LN=["location"];function DN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function MN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function UN(e,t){return(UN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function BN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qN(e);if(t){var o=qN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HN(this,n)}}function HN(e,t){if(t&&("object"===NN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qN(e){return(qN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UN(e,t)}(a,e);var t,n,o,i=BN(a);function a(){return MN(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"computeQueryString",value:function(){var e=this.props.location,t=e.query,n=e.search,r=Number(t.page_e),o=Number(t.page_t);1===r&&(r=null),1===o&&(o=null);var i="";return r&&o?i=r>o?"?page_e=".concat(r):r<o||n.indexOf("page_e")>n.indexOf("page_t")?"?page_t=".concat(o):"?page_e=".concat(r):r?i="?page_e=".concat(r):o&&(i="?page_t=".concat(o)),i}},{key:"render",value:function(){var e=this.props,t=(e.location,DN(e,LN)),n=this.computeQueryString();return r.createElement(r.Fragment,null,r.createElement(Ao,null,r.createElement("title",null,t.title)),r.createElement(hp,Object.assign({},t,{queryString:n})),r.createElement(ep,{queryString:n}))}}])&&FN(t.prototype,n),o&&FN(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const GN=(0,g.connect)((function(e){return{location:e.router.location}}))(zN);function WN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WN(Object(n),!0).forEach((function(t){YN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZN="ABORT_USER_ABUSE_REPORT",$N="HIDE_USER_ABUSE_REPORT_UI",KN="LOAD_USER_ABUSE_REPORT",QN="SEND_USER_ABUSE_REPORT",XN="SHOW_USER_ABUSE_REPORT_UI";function JN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userId;return ce()(t,"userId is required"),{type:ZN,payload:{userId:t}}}function eL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userId;return ce()(t,"userId is required"),{type:$N,payload:{userId:t}}}function tL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=e.reporter,r=e.userId;ce()(t,"message is required"),ce()(void 0!==n,"reporter cannot be undefined"),ce()(r,"userId is required");var o=n?n.id:null;return{type:KN,payload:{message:t,reportedByUserId:o,userId:r}}}function nL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorHandlerId,n=e.message,r=e.userId;return ce()(t,"errorHandlerId is required"),ce()(n,"message is required"),ce()(r,"userId is required"),{type:QN,payload:{errorHandlerId:t,message:n,userId:r}}}function rL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userId;return ce()(t,"userId is required"),{type:XN,payload:{userId:t}}}var oL={byUserId:{}};function iL(e){return(iL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cL(e,t){return(cL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fL(e);if(t){var o=fL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lL(this,n)}}function lL(e,t){if(t&&("object"===iL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fL(e){return(fL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cL(e,t)}(a,e);var t,n,o,i=sL(a);function a(){var e;aL(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).hideReportUI=function(){var t=e.props,n=t.dispatch,r=t.user;r&&n(eL({userId:r.id}))},e.sendReport=function(t){var n=e.props,r=n.dispatch,o=n.errorHandler,i=n.user;i&&r(nL({errorHandlerId:o.id,message:t.text,userId:i.id}))},e.showReportUI=function(){var t=e.props,n=t.dispatch,r=t.user;r&&n(rL({userId:r.id}))},e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.errorHandler,o=e.hasSubmitted,i=e.i18n,a=e.isSubmitting,u=e.uiVisible,c=e.user;return r.createElement("div",{className:Ho()("ReportUserAbuse",t,{"ReportUserAbuse--is-expanded":u})},n.renderErrorIfPresent(),!u&&!o&&r.createElement(Dc,{buttonType:"neutral",className:"ReportUserAbuse-show-more",disabled:!c,onClick:this.showReportUI,puffy:!0},i.gettext("Report this user for abuse")),!o&&r.createElement("div",{className:"ReportUserAbuse-form"},r.createElement("h2",{className:"ReportUserAbuse-header"},i.gettext("Report this user for abuse")),r.createElement("p",{dangerouslySetInnerHTML:vn(i.sprintf(i.gettext("If you think this user is violating\n %(linkTagStart)sMozilla's Add-on Policies%(linkTagEnd)s,\n please report this user to Mozilla."),{linkTagStart:'<a href="https://developer.mozilla.org/en-US/Add-ons/AMO/Policy/Reviews">',linkTagEnd:"</a>"}),["a"])}),r.createElement("p",null,i.gettext("Please don't use this form to report bugs or contact this\n user; your report will only be sent to Mozilla and not\n to this user.")),r.createElement(Zh,{id:"".concat(Tn("src/amo/components/ReportUserAbuse/index.js"),"-").concat(String(c&&c.id)),isSubmitting:a,onDismiss:this.hideReportUI,onSubmit:this.sendReport,placeholder:i.gettext("Explain how this user is violating our policies."),submitButtonText:i.gettext("Send abuse report"),submitButtonInProgressText:i.gettext("Sending abuse report")})),o&&r.createElement("div",{className:"ReportUserAbuse--report-sent"},r.createElement("h3",{className:"ReportUserAbuse-header"},i.gettext("You reported this user for abuse")),r.createElement("p",null,i.gettext("We have received your report. Thanks for letting us know about\n your concerns with this user.")),r.createElement("p",null,i.gettext("We can't respond to every abuse report but we'll look into\n this issue."))))}}])&&uL(t.prototype,n),o&&uL(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const dL=(0,Mo.qC)((0,g.connect)((function(e,t){var n=t.user&&e.userAbuseReports.byUserId[t.user.id]?e.userAbuseReports.byUserId[t.user.id]:{};return{hasSubmitted:n.hasSubmitted||!1,isSubmitting:n.isSubmitting||!1,uiVisible:n.uiVisible||!1}})),Eu(),ms({id:"ReportUserAbuse"}))(pL);const hL=function(e){var t=e.altText,n=e.className,o=e.preview,i=e.user,a=Ho()("UserAvatar",n),u=o&&o.length?o:null;return i&&!u&&(u=i.picture_url?i.picture_url:null),r.createElement("div",{className:a},u?r.createElement("img",{alt:t,className:"UserAvatar-image",src:u}):r.createElement(ac,{name:"anonymous-user"}))};function yL(e){return(yL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vL(e,t){return(vL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wL(e);if(t){var o=wL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bL(this,n)}}function bL(e,t){if(t&&("object"===yL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function wL(e){return(wL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var OL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vL(e,t)}(a,e);var t,n,o,i=gL(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=e.clientApp,r=e.dispatch,o=e.errorHandler,u=e.isOwner,c=e.lang,s=e.location,l=e.match.params,f=e.reviews,p=e.shouldRedirect,d=e.user;return r(qo(D.cs)),p&&d?(r(ik({status:301,url:"/".concat(c,"/").concat(n,"/user/").concat(d.id,"/")})),bL(t)):o.hasError()?(L.Z.warn("Not loading data because of an error."),bL(t)):(d?u&&!f&&r(Ei({errorHandlerId:o.id,page:t.getReviewsPage(s),userId:d.id})):r(Ge({errorHandlerId:o.id,userId:l.userId})),t)}return t=a,(n=[{key:"componentDidUpdate",value:function(e){var t=e.location,n=e.match.params,r=this.props,o=r.dispatch,i=r.errorHandler,a=r.isOwner,u=r.location,c=r.match.params,s=r.reviews,l=r.user;n.userId!==c.userId?o(Ge({errorHandlerId:i.id,userId:Number(c.userId)})):!l||!a||t.query.page===u.query.page&&s||o(Ei({errorHandlerId:i.id,page:this.getReviewsPage(u),userId:l.id}))}},{key:"getUserId",value:function(){var e=this.props,t=e.match.params,n=e.user;return n?n.id:t.userId}},{key:"getURL",value:function(){return"/user/".concat(this.getUserId(),"/")}},{key:"getEditURL",value:function(){var e=this.props,t=e.currentUser,n=e.match.params;return ce()(t,"currentUser is required"),String(t.id)===n.userId?"/users/edit":"".concat(this.getURL(),"edit/")}},{key:"getReviewsPage",value:function(e){return e.query&&e.query.page||"1"}},{key:"renderReviews",value:function(){var e=this.props,t=e.location,n=e.i18n,o=e.isOwner,i=e.pageSize,a=e.reviews,u=e.reviewCount;if(!o||!a||a.length<1)return null;var c=u&&i&&u>Number(i)?r.createElement(ym,{LinkComponent:wc,count:u,currentPage:this.getReviewsPage(t),pathname:this.getURL(),perPage:Number(i),queryParams:t.query}):null;return r.createElement(xy,{className:"UserProfile-reviews",footer:c,header:n.gettext("My reviews")},r.createElement("ul",null,a.map((function(e){return r.createElement("li",{key:String(e.id)},r.createElement(cP,{review:e,shortByLine:!0,siteUserCanReply:!1}))}))))}},{key:"getMetaDescription",value:function(){var e,t=this.props,n=t.i18n,r=t.user;if(!r)return null;if(r.is_addon_developer&&r.is_artist)e=n.gettext("The profile of %(user)s, a Firefox extension\n and theme author. Find other apps by %(user)s, including average\n ratings, tenure, and the option to report issues.");else if(r.is_addon_developer)e=n.gettext("The profile of %(user)s, Firefox extension\n author. Find other extensions by %(user)s, including average ratings,\n tenure, and the option to report issues.");else{if(!r.is_artist)return null;e=n.gettext("The profile of %(user)s, Firefox theme\n author. Find other themes by %(user)s, including average ratings,\n tenure, and the option to report issues.")}return n.sprintf(e,{user:r.name})}},{key:"render",value:function(){var e,t=this.props,n=t.canAdminUser,o=t.canEditProfile,i=t.errorHandler,a=t.i18n,u=t.isOwner,c=t.user;if(i.hasError()){if(L.Z.warn("Captured API Error: ".concat(i.capturedError.messages)),404===i.capturedError.responseStatusCode)return r.createElement(jR,null);e=i.renderError()}var s=r.createElement("div",{className:"UserProfile-header"},r.createElement(hL,{className:"UserProfile-avatar",user:c,altText:a.gettext("User Avatar")}),c&&Je(c)&&r.createElement("div",{className:"UserProfile-tags"},c.is_addon_developer&&r.createElement("p",{className:"UserProfile-developer"},a.gettext("Add-ons developer"),r.createElement(ac,{name:"developer"})),c.is_artist&&r.createElement("p",{className:"UserProfile-artist"},a.gettext("Theme artist"),r.createElement(ac,{name:"artist"}))),r.createElement("h1",{className:"UserProfile-name"},c?c.name:r.createElement(Zp,null))),l=c?a.sprintf(a.gettext("User Profile for %(user)s"),{user:c.name}):a.gettext("User Profile");return r.createElement(HO,{errorHandler:i},r.createElement("div",{className:"UserProfile"},r.createElement(GN,{title:l,description:this.getMetaDescription()}),e,r.createElement("div",{className:"UserProfile-wrapper"},r.createElement(js,{className:"UserProfile-user-info",header:s},r.createElement(jd,{className:"UserProfile-dl"},c&&c.homepage?r.createElement(Sd,{className:"UserProfile-homepage",term:a.gettext("Homepage")},r.createElement("a",{href:c.homepage},a.gettext("Homepage"))):null,c&&c.location?r.createElement(Sd,{className:"UserProfile-location",term:a.gettext("Location")},c.location):null,c&&c.occupation?r.createElement(Sd,{className:"UserProfile-occupation",term:a.gettext("Occupation")},c.occupation):null,r.createElement(Sd,{className:"UserProfile-user-since",term:a.gettext("User since")},c?a.moment(c.created).format("ll"):r.createElement(Zp,null)),r.createElement(Sd,{className:"UserProfile-number-of-addons",term:a.gettext("Number of add-ons")},c?c.num_addons_listed:r.createElement(Zp,null)),r.createElement(Sd,{className:"UserProfile-rating-average",term:a.gettext("Average rating of developer’s add-ons")},c?r.createElement(id,{rating:c.average_addon_rating,readOnly:!0,styleSize:"small"}):r.createElement(Zp,null)),c&&c.biography&&c.biography.length?r.createElement(Sd,{className:"UserProfile-biography",term:a.gettext("Biography")},r.createElement("div",{dangerouslySetInnerHTML:bn(c.biography)})):null),!u&&r.createElement(dL,{className:"UserProfile-abuse-button",user:c}),o?r.createElement(Dc,{className:"UserProfile-edit-link",buttonType:"neutral",to:this.getEditURL(),puffy:!0},a.gettext("Edit profile")):null,n&&c?r.createElement(Dc,{className:"UserProfile-admin-link",buttonType:"neutral",href:"/admin/models/users/userprofile/".concat(c.id,"/"),puffy:!0},a.gettext("Admin user")):null),r.createElement("div",{className:"UserProfile-addons-and-reviews"},r.createElement(Sm,{addonType:D.Gz,authorDisplayName:c?c.name:null,authorIds:c?[c.id]:null,errorHandler:i,numberOfAddons:10,pageParam:"page_e",paginate:!0,pathname:this.getURL(),showMore:!1,showSummary:!0,type:"vertical"}),r.createElement(Sm,{addonType:D.Yd,authorDisplayName:c?c.name:null,authorIds:c?[c.id]:null,errorHandler:i,numberOfAddons:12,pageParam:"page_t",paginate:!0,pathname:this.getURL(),showMore:!1}),this.renderReviews()))))}}])&&mL(t.prototype,n),o&&mL(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const EL=(0,Mo.qC)((0,g.connect)((function(e,t){var n=t.match.params,r=e.api,o=r.clientApp,i=r.lang,a=!1,u=!1,c=null,s=!1,l=null,f=!1,p=null;if(/^\d+$/.test(n.userId)){var d=Number(n.userId);p=Qe(e.users,d)||null,s=(c=Xe(e.users))&&c.id===d,u=c&&(c.id===d||et(e,D.Ai)),a=c&&p&&et(e,D.Ai),l=function(e,t){var n=e.byUserId[t];return n?{pageSize:n.pageSize,reviewCount:n.reviewCount,reviews:Np({reviews:n.reviews,state:e})}:null}(e.reviews,d)}else{var h=n.userId;p=function(e,t){return ce()(t,"username is required"),e.byID[e.byUsername[t.toLowerCase()]]}(e.users,h),f=!0}return{canAdminUser:a,canEditProfile:u,clientApp:o,currentUser:c,isOwner:s,lang:i,pageSize:l?l.pageSize:null,reviewCount:l?l.reviewCount:null,reviews:l?l.reviews:null,shouldRedirect:f,user:p}})),Eu(),gs({fileName:"src/amo/pages/UserProfile/index.js",extractId:function(e){return e.match.params.userId}}))(OL);var _L,xL=function(e,t){switch(t){case"announcements":return e.gettext("stay up-to-date with news and events relevant to\n add-on developers (including the about:addons newsletter)");case"individual_contact":return e.gettext("Mozilla needs to contact me about my individual\n add-on");case"new_features":return e.gettext("new add-ons or Firefox features are available");case"new_review":return e.gettext("someone writes a review of my add-on");case"reply":return e.gettext("an add-on developer replies to my review");case"reviewer_reviewed":return e.gettext("my add-on is reviewed by a reviewer");case"upgrade_fail":return e.gettext("my add-on's compatibility cannot be upgraded");case"upgrade_success":return e.gettext("my add-on's compatibility is upgraded successfully");default:return null}};function SL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SL(Object(n),!0).forEach((function(t){PL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kL=function(t){var n,o,i=t.enabled,a=t.label,u=t.mandatory,c=t.name,s=t.onChange;return a?r.createElement("p",{className:Ho()("UserProfileEditNotification",{"UserProfileEditNotification--disabled":u}),key:c},r.createElement("label",{htmlFor:c},r.createElement("input",{className:"UserProfileEditNotification-input",defaultChecked:i,disabled:u,id:c,name:c,onChange:s,type:"checkbox"}),r.createElement("span",{className:"UserProfileEditNotification-checkbox"}),a)):(L.Z.warn((0,e.f9)(_L||(n=['Not rendering notification "','" because there is no\n corresponding label.'],o||(o=n.slice(0)),_L=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(o)}}))),c)),null)};const IL=(0,Mo.qC)(Eu())((function(e){var t=e.i18n,n=e.onChange,o=e.user,i=[];if(o&&o.notifications)i=o.notifications.map((function(e){return kL(jL(jL({},e),{},{label:xL(t,e.name),onChange:n}))}));else for(var a=0;a<2;a++){var u="loading-notification-".concat(a);i.push(kL({name:u,mandatory:!0,enabled:!1,label:r.createElement(Zp,null)}))}return r.createElement("div",{className:"UserProfileEditNotifications"},i)}));function TL(e){return(TL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function RL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function AL(e,t){return(AL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function NL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=DL(e);if(t){var o=DL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LL(this,n)}}function LL(e,t){if(t&&("object"===TL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function DL(e){return(DL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ML=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AL(e,t)}(a,e);var t,n,o,i=NL(a);function a(){var e;RL(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onFocus=function(){e.props.setUIState({hasFocus:!0})},e.onBlur=function(){e.props.setUIState({hasFocus:!1})},e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.i18n,n=e.name,o=e.onDelete,i=e.onSelect,a=e.preview,u=e.uiState,c=e.user,s=c?t.sprintf(t.gettext("Profile picture for %(name)s"),{name:c.name}):null,l="UserProfileEditPicture-delete-button";return r.createElement("section",{className:"UserProfileEditPicture"},r.createElement("label",{className:"UserProfileEdit--label",htmlFor:n},t.gettext("Profile photo")),r.createElement(hL,{altText:s,preview:a,user:c}),r.createElement("label",{className:Ho()("UserProfileEditPicture-file",{"UserProfileEditPicture-file--has-focus":u.hasFocus}),htmlFor:n},r.createElement("input",{accept:"image/png, image/jpeg",className:"UserProfileEditPicture-file-input",disabled:!c,id:n,name:n,onBlur:this.onBlur,onChange:i,onFocus:this.onFocus,type:"file"}),r.createElement(Dc,{buttonType:"action",className:"UserProfileEditPicture-select-button",disabled:!c,noLink:!0,puffy:!0},t.gettext("Choose Photo…"))),c&&c.picture_url&&r.createElement(LR,{buttonType:"cancel",className:l,htmlType:"button",id:l,message:t.gettext("Do you really want to delete this picture?"),onConfirm:o},t.gettext("Delete This Picture")))}}])&&CL(t.prototype,n),o&&CL(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const FL=(0,Mo.qC)(Eu(),Bu({extractId:function(){return""},fileName:"src/amo/components/UserProfileEditPicture/index.js",initialState:{hasFocus:!1}}))(ML);a(76511);var UL={backspace:8,del:46,delete:46,tab:9,enter:13,return:13,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221};Object.keys(UL).forEach((function(e){return UL[e.toUpperCase()]=UL[e]})),"0123456789".split("").forEach((function(e,t){return UL[e]=t+48})),"ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").forEach((function(e,t){UL[e]=t+65,UL[e.toLowerCase()]=t+65})),[1,2,3,4,5,6,7,8,9,10,11,12].forEach((function(e,t){return UL["f"+t]=111+t}));var BL={control:"ctrl",ctrl:"ctrl",shift:"shift",meta:"meta",cmd:"meta",command:"meta",option:"alt",alt:"alt"},HL=Symbol("ALL_KEYS"),qL=Symbol("ALL_PRINTABLE_KEYS");const zL=UL;var GL=Object.keys(BL);const WL=function(e){var t=e.keySet,n=e.event,r=t.key,o=t.modifiers,i=void 0===o?[]:o,a=void 0;if(a=r===HL,r===qL)if(n.key)a=1===n.key.length;else{var u=String.fromCharCode(n.charCode);a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~!@#$%^&*()-_+=[]\\{}|;':\",./<>?£".indexOf(u)>=0}if(r===n.which){var c=GL.filter((function(e){return n[e+"Key"]})).sort();a=i.length===c.length&&i.every((function(e,t){return c[t]===e}))}return a};const VL=function(e){return e.map((function(e){var t={key:e};if("string"==typeof e){var n=e.toLowerCase().trim(),r=n.split(/\s?\+\s?/);t=1===r.length?{key:zL[n]}:{key:zL[r.pop()],modifiers:r.map((function(e){return BL[e]})).sort()}}return t}))};var YL=1;var ZL=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};var $L=new Map,KL=new Set;function QL(e){var t=[].concat(e);t.length?(KL.delete(null),t.forEach((function(e){KL.delete(e),KL.add(e)}))):KL.add(null)}function XL(e){if(!KL.has(null)){var t=function(t){return WL({keySet:t,event:e})},n=!0,r=!1,o=void 0;try{for(var i,a=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(KL)).reverse()[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=i.value,c=JL(u.constructor.prototype),s=!0,l=!1,f=void 0;try{for(var p,d=c[Symbol.iterator]();!(s=(p=d.next()).done);s=!0){var h=ZL(p.value,2),y=h[0],m=h[1];if(y.some(t))return{fn:m,instance:u}}}catch(e){l=!0,f=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw f}}}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}return null}function JL(e){var t=e.__reactKeydownUUID;return $L.get(t)}function eD(e){var t=e.keys,n=e.fn,r=e.target,o=VL(t),i=r.__reactKeydownUUID;i?$L.get(i).set(o,n):(r.__reactKeydownUUID="uid-"+YL++,$L.set(r.__reactKeydownUUID,new Map([[o,n]])))}const tD={bindFocusables:function(e,t){if(document.querySelectorAll)try{var n=o.findDOMNode(e);if(n){var r=n.querySelectorAll("a[href], button, input, object, select, textarea, [tabindex]");if(r.length){Array.prototype.slice.call(r).forEach((function(n){return n.onfocus=function(n){var r=n.onfocus;return function(o){t(e),r&&r.call(n,o)}}(n)}))}}}catch(e){}},findContainerNodes:function(e){return function(t,n){try{var r=o.findDOMNode(n);r&&(r===e||r.contains(e))&&t.push({instance:n,node:r})}finally{return t}}},sortByDOMPosition:function(e,t){return 10===e.node.compareDocumentPosition(t.node)?1:-1}};var nD=!1,rD=!1;const oD={bindKeys:function(e){rD||(document.addEventListener("keydown",e),rD=!0)},unbindKeys:function(e){rD&&(document.removeEventListener("keydown",e),rD=!1)},bindClicks:function(e){nD||(document.addEventListener("click",e,!0),nD=!0)},unbindClicks:function(e){nD&&(document.removeEventListener("click",e,!0),nD=!1)}};function iD(e){var t=e.target;QL([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(KL)).reduce(tD.findContainerNodes(t),[]).sort(tD.sortByDOMPosition).map((function(e){return e.instance})))}function aD(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t||uD(e)){var n=XL(e)||{},r=n.fn,o=n.instance;if(r)return r.call(o,e),!0}return!1}function uD(e){var t=e.ctrlKey,n=e.target;return t||!~["INPUT","SELECT","TEXTAREA"].indexOf(n.tagName)&&(!n.getAttribute||"textbox"!==n.getAttribute("role"))}function cD(e){QL(e),oD.bindKeys(aD),oD.bindClicks(iD),tD.bindFocusables(e,QL)}function sD(e){var t;t=e,KL.delete(t),KL.size||(oD.unbindClicks(iD),oD.unbindKeys(aD))}var lD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fD=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function pD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dD(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function hD(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}const yD=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:HL,n=function(t){function n(e){pD(this,n);var t=dD(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.state={event:null},t}return hD(n,t),fD(n,[{key:"componentDidMount",value:function(){cD(this)}},{key:"componentWillUnmount",value:function(){sD(this)}},{key:"handleKeyDown",value:function(e){var t=this;this.setState({event:e},(function(){return t.setState({event:null})}))}},{key:"render",value:function(){return r.createElement(e,lD({},this.props,{keydown:this.state}))}}]),n}(r.Component);return eD({keys:[].concat(t),fn:n.prototype.handleKeyDown,target:n.prototype}),n};var mD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function vD(e){return e&&"object"===(void 0===e?"undefined":mD(e))&&e.nativeEvent instanceof window.KeyboardEvent&&"keydown"===e.type}const gD=function(e){var t=e.target,n=e.descriptor,r=e.keys,o=n.value;if(!JL(t)){var i=t.componentDidMount,a=t.componentWillUnmount;t.componentDidMount=function(){if(cD(this),i)return i.call(this)},t.componentWillUnmount=function(){if(sD(this),a)return a.call(this)}}return eD({keys:r,target:t,fn:o}),n.value=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if(vD(r)){if(!r.ctrlKey)return aD(r,!0)}else if(!(r&&r instanceof window.KeyboardEvent&&"keydown"===r.type))return o.call.apply(o,[this].concat(t))},n};var bD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function wD(){}function OD(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0],i=Array.isArray(o);if(i||~["string","number","symbol"].indexOf(void 0===o?"undefined":bD(o))){var a=i?o:n;return function(t,n,r){return n?e({target:t,descriptor:r,keys:a}):yD(t,a)}}var u=n[0],c=n[1];return u&&!c?yD.apply(void 0,n):wD}const ED=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return OD.apply(void 0,[gD].concat(t))};function _D(e){return(_D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jD(e,t){return(jD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function PD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ID(e);if(t){var o=ID(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kD(this,n)}}function kD(e,t){if(t&&("object"===_D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ID(e){return(ID=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var TD=zL.ESC,RD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jD(e,t)}(a,e);var t,n,o,i=PD(a);function a(){var e;xD(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).onClickBackground=function(t){t.preventDefault(),e.props.onEscapeOverlay&&e.props.onEscapeOverlay(),e.hide()},e.hide=function(){e.props.setUIState({visible:!1})},e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props.visibleOnLoad;this.props.setUIState({visible:e})}},{key:"componentDidUpdate",value:function(e){var t=e.uiState,n=this.props,r=n.visibleOnLoad,o=n.keydown;o&&o.event&&this.onClickBackground(o.event),void 0!==r&&r!==t.visible&&this.props.setUIState({visible:r})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.id,i=e.uiState;return ce()(t,"The children property is required"),ce()(o,"The id property is required"),r.createElement("div",{className:Ho()("Overlay",n,{"Overlay--visible":i.visible})},r.createElement("div",{className:"Overlay-background",onClick:this.onClickBackground,role:"presentation"}),r.createElement("div",{className:"Overlay-contents"},t))}}])&&SD(t.prototype,n),o&&SD(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);RD.defaultProps={visibleOnLoad:!1};const CD=(0,Mo.qC)(Bu({fileName:"src/amo/components/Overlay/index.js",extractId:function(e){return e.id},initialState:{visible:!1}}),ED(TD))(RD);function AD(e){return(AD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ND(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function DD(e,t){return(DD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function MD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=UD(e);if(t){var o=UD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return FD(this,n)}}function FD(e,t){if(t&&("object"===AD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function UD(e){return(UD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var BD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DD(e,t)}(a,e);var t,n,o,i=MD(a);function a(){return ND(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.header,i=e.id,a=e.footerLink,u=e.footerText,c=e.visibleOnLoad;return r.createElement(CD,{onEscapeOverlay:this.props.onEscapeOverlay,id:i,visibleOnLoad:c},r.createElement(js,{className:Ho()("OverlayCard",n),header:o,footerLink:a,footerText:u},t))}}])&&LD(t.prototype,n),o&&LD(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);BD.propTypes={children:w().node,className:w().string,header:w().node,id:w().string.isRequired,footerLink:w().node,footerText:w().node,onEscapeOverlay:w().func,visibleOnLoad:w().bool},BD.defaultProps={visibleOnLoad:!1};function HD(e){return(HD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qD(Object(n),!0).forEach((function(t){GD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function VD(e,t){return(VD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function YD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$D(e);if(t){var o=$D(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ZD(this,n)}}function ZD(e,t){if(t&&("object"===HD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $D(e){return($D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var KD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VD(e,t)}(a,e);var t,n,o,i=YD(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).onDeleteProfile=function(e){e.preventDefault(),t.setState({showProfileDeletionModal:!0})},t.onCancelProfileDeletion=function(e){e&&e.preventDefault(),t.setState({showProfileDeletionModal:!1})},t.onConfirmProfileDeletion=function(e){e.preventDefault();var n=t.props,r=n.clientApp,o=n.currentUser,i=n.dispatch,a=n.errorHandler,u=n.history,c=n.lang,s=n.user;ce()(o,"currentUser is required"),ce()(s,"user is required"),i(function(e){var t=e.errorHandlerId,n=e.userId;return ce()(t,"errorHandlerId is required"),ce()(n,"userId is required"),{type:Fe,payload:{errorHandlerId:t,userId:n}}}({errorHandlerId:a.id,userId:s.id})),o.id===s.id&&i(Ze()),u.push("/".concat(c,"/").concat(r))},t.onPictureLoaded=function(e){var n=e.target.result;t.setState({pictureData:n})},t.onPictureChange=function(e){e.preventDefault();var n=e.currentTarget.files;if(n&&n[0]){var r=n[0];t.loadPicture(r),t.setState({picture:r,successMessage:null})}},t.onNotificationChange=function(e){e.stopPropagation();var n=e.currentTarget,r=n.name,o=n.checked;t.setState((function(e){return{notifications:zD(zD({},e.notifications),{},GD({},r,o)),successMessage:null}}))},t.onPictureDelete=function(e){e.preventDefault();var n=t.props,r=n.dispatch,o=n.errorHandler,i=n.user;ce()(i,"user is required"),r(function(e){var t=e.errorHandlerId,n=e.userId;return{type:Le,payload:{errorHandlerId:t,userId:n}}}({errorHandlerId:o.id,userId:i.id}))},t.onFieldChange=function(e){var n;e.preventDefault();var r=e.currentTarget,o=r.name,i=r.value;t.setState((GD(n={},o,i),GD(n,"successMessage",null),n))},t.onSubmit=function(e){e.preventDefault();var n=t.props,r=n.dispatch,o=n.errorHandler,i=n.user,a=t.state,u=a.biography,c=a.displayName,s=a.homepage,l=a.location,f=a.notifications,p=a.occupation,d=a.picture,h=a.pictureData;ce()(i,"user is required"),r(function(e){var t=e.errorHandlerId,n=e.notifications,r=e.picture,o=e.pictureData,i=e.userFields,a=e.userId;return ce()(t,"errorHandlerId is required"),ce()(n,"notifications are required"),ce()(i,"userFields are required"),ce()(a,"userId is required"),ce()(void 0!==r,"picture is required"),r&&ce()(o,"pictureData is required when picture is present"),{type:Te,payload:{errorHandlerId:t,notifications:n,picture:r,pictureData:o,userFields:i,userId:a}}}({errorHandlerId:o.id,notifications:f,picture:d,pictureData:h,userFields:{biography:u,display_name:c,homepage:s,location:l,occupation:p},userId:i.id}))},t.loadPicture=function(e){var n=new FileReader;n.onload=t.onPictureLoaded,n.readAsDataURL(e)};var n=e.dispatch,r=e.errorHandler,o=e.userId,u=e.user;return t.state=zD({showProfileDeletionModal:!1,pictureData:null,successMessage:null},t.getFormValues(u)),n(qo(D.cs)),r.hasError()?(L.Z.warn("Not loading data because of an error."),ZD(t)):(!u&&o&&n(Ge({errorHandlerId:r.id,userId:o})),(!u&&o||u&&!u.notifications)&&n($e({errorHandlerId:r.id,userId:o})),t)}return t=a,(n=[{key:"componentDidUpdate",value:function(e,t){var n=e.isUpdating,r=e.user,o=e.userId,i=this.props,a=i.clientApp,u=i.currentUser,c=i.dispatch,s=i.errorHandler,l=i.i18n,f=i.isUpdating,p=i.lang,d=i.location,h=i.user,y=i.userId;if(u){if(o!==y?(!h&&y&&c(Ge({errorHandlerId:s.id,userId:y})),(!h&&y||h&&!h.notifications)&&c($e({errorHandlerId:s.id,userId:h?h.id:y})),this.setState(zD(zD({},this.getFormValues(h)),{},{pictureData:null,successMessage:null}))):r&&r.picture_url&&h&&!h.picture_url&&this.setState({picture:null,pictureData:null,successMessage:l.gettext("Picture successfully deleted")}),n&&!f&&!s.hasError()){var m=d.query.to;if(m&&"string"==typeof m&&!m.startsWith("//")){m.startsWith("/")||(m="/".concat(m));try{return void this.props._window.location.assign(m)}catch(e){L.Z.warn("Error redirecting to location: ".concat(m,": ").concat(e))}}this.props._window.location.assign("/".concat(p,"/").concat(a,"/user/").concat(y,"/"))}(!e.errorHandler.hasError()&&this.props.errorHandler.hasError()||!t.successMessage&&this.state.successMessage)&&this.props._window.scroll(0,0)}}},{key:"componentWillUnmount",value:function(){this.props.errorHandler.clear()}},{key:"getFormValues",value:function(e){var t={biography:"",displayName:"",homepage:"",location:"",notifications:{},occupation:"",picture:null};if(!e)return t;var n=e.biography,r=e.display_name,o=e.homepage,i=e.location,a=e.occupation;return zD(zD({},t),{},{biography:n,displayName:r,homepage:o,location:i,occupation:a})}},{key:"preventSubmit",value:function(){var e=this.props,t=e.user,n=e.isUpdating,r=this.state.displayName;return!t||n||!r||r&&""===r.trim()}},{key:"renderProfileAside",value:function(){var e=this.props,t=e.user,n=e.i18n,o=e.isEditingCurrentUser;return t?o?n.gettext("Tell users a bit more information about yourself. Most\n fields are optional, but they'll help other users get to know you\n better."):n.sprintf(n.gettext("Tell users a bit more information about this user.\n Most fields are optional, but they'll help other users get to know\n %(userName)s better."),{userName:t.name}):[r.createElement(Zp,{key:"profile-aside-1",width:100}),r.createElement(Zp,{key:"profile-aside-2",width:80})]}},{key:"renderBiographyLabel",value:function(){var e=this.props,t=e.user,n=e.i18n,o=e.isEditingCurrentUser;return t?o?n.gettext("Introduce yourself to the community if you like"):n.sprintf(n.gettext("Introduce %(userName)s to the community"),{userName:t.name}):r.createElement(Zp,null)}},{key:"render",value:function(){var e,t,n=this.props,o=n.currentUser,i=n.errorHandler,a=n.hasEditPermission,u=n.i18n,c=n.isEditingCurrentUser,s=n.isUpdating,l=n.user,f=n.userId;if(o){if(i.hasError()){if(L.Z.warn("Captured API Error: ".concat(i.capturedError.messages)),404===i.capturedError.responseStatusCode)return r.createElement(jR,null);t=i.renderError()}if(l&&!a)return r.createElement(jR,null)}else e=r.createElement("div",{className:"UserProfileEdit"},r.createElement(js,{className:"UserProfileEdit-authenticate"},r.createElement(Ew,{noIcon:!0,logInText:u.gettext("Log in to edit the profile")})));var p=s?u.gettext("Creating your profile…"):u.gettext("Create My Profile");l&&l.display_name&&(p=c?s?u.gettext("Updating your profile…"):u.gettext("Update My Profile"):s?u.gettext("Updating profile…"):u.gettext("Update Profile"));var d="/user/".concat(f,"/"),h="UserProfileEdit-deletion-modal";return r.createElement(HO,null,e||r.createElement("div",{className:"UserProfileEdit"},l&&r.createElement(Ao,null,r.createElement("title",null,u.sprintf(u.gettext("User Profile for %(user)s"),{user:l.name}))),r.createElement(js,{className:"UserProfileEdit-user-links"},r.createElement("ul",null,r.createElement("li",null,r.createElement(wc,{to:d},c?u.gettext("View My Profile"):u.gettext("View user's profile"))),r.createElement("li",null,c?u.gettext("Edit My Profile"):u.gettext("Edit user's profile")))),r.createElement("form",{className:"UserProfileEdit-form",onSubmit:this.onSubmit},r.createElement("div",{className:"UserProfileEdit-form-messages"},t,this.state.successMessage&&r.createElement(Jc,{type:"success"},this.state.successMessage)),r.createElement("div",null,r.createElement(js,{className:"UserProfileEdit--Card",header:c||!l?u.gettext("Account"):u.sprintf(u.gettext("Account for %(userName)s"),{userName:l.name})},r.createElement("div",null,r.createElement("label",{className:"UserProfileEdit--label",htmlFor:"email"},u.gettext("Email Address")),r.createElement("input",{className:"UserProfileEdit-email",id:"email",value:l&&l.email,disabled:!0,onChange:this.onFieldChange,title:u.gettext("Email address cannot be changed here"),type:"email"}),c&&r.createElement("p",{className:"UserProfileEdit-email--help",dangerouslySetInnerHTML:vn(u.sprintf(u.gettext("You can change your email address on\n Firefox Accounts. %(startLink)sNeed help?%(endLink)s"),{startLink:'<a href="https://support.mozilla.org/kb/change-primary-email-address-firefox-accounts">',endLink:"</a>"}),["a"])}),c&&l&&l.fxa_edit_email_url&&r.createElement("a",{href:l.fxa_edit_email_url,className:"UserProfileEdit-manage-account-link"},u.gettext("Manage Firefox Accounts…")))),r.createElement(js,{className:"UserProfileEdit--Card",header:u.gettext("Profile")},r.createElement("p",{className:"UserProfileEdit-profile-aside"},this.renderProfileAside()),r.createElement("label",{className:"UserProfileEdit--label",htmlFor:"displayName",title:u.gettext("This field is required")},u.gettext("Display Name *")),r.createElement("input",{className:"UserProfileEdit-displayName",disabled:!l,id:"displayName",name:"displayName",onChange:this.onFieldChange,value:this.state.displayName}),r.createElement("label",{className:"UserProfileEdit--label",htmlFor:"homepage"},u.gettext("Homepage")),r.createElement("input",{className:"UserProfileEdit-homepage",disabled:!l,id:"homepage",name:"homepage",onChange:this.onFieldChange,type:"url",value:this.state.homepage}),r.createElement("p",{className:"UserProfileEdit-homepage--help"},u.gettext("This URL will only be visible for users who are\n developers.")),r.createElement("label",{className:"UserProfileEdit--label",htmlFor:"location"},u.gettext("Location")),r.createElement("input",{className:"UserProfileEdit-location",disabled:!l,id:"location",name:"location",onChange:this.onFieldChange,value:this.state.location}),r.createElement("label",{className:"UserProfileEdit--label",htmlFor:"occupation"},u.gettext("Occupation")),r.createElement("input",{className:"UserProfileEdit-occupation",disabled:!l,id:"occupation",name:"occupation",onChange:this.onFieldChange,value:this.state.occupation}),r.createElement(FL,{name:"picture",onDelete:this.onPictureDelete,onSelect:this.onPictureChange,preview:this.state.pictureData,user:l})),r.createElement(js,{className:"UserProfileEdit--Card",header:u.gettext("Biography")},r.createElement("label",{className:"UserProfileEdit--label",htmlFor:"biography"},this.renderBiographyLabel()),r.createElement(Ih,{className:"UserProfileEdit-biography",disabled:!l,id:"biography",name:"biography",onChange:this.onFieldChange,value:this.state.biography||""}),r.createElement("p",{className:"UserProfileEdit-biography--help"},u.sprintf(u.gettext("Some HTML supported: %(htmlTags)s. Links are forbidden."),{htmlTags:["<abbr title>","<acronym title>","<b>","<blockquote>","<code>","<em>","<i>","<li>","<ol>","<strong>","<ul>"].join(" ")}))),r.createElement(js,{className:"UserProfileEdit--Card",header:u.gettext("Notifications")},r.createElement("p",{className:"UserProfileEdit-notifications-aside"},c?u.gettext("From time to time, Mozilla may send you email about\n upcoming releases and add-on events. Please select the\n topics you are interested in."):u.gettext("From time to time, Mozilla may send this user email\n about upcoming releases and add-on events. Please select\n the topics this user may be interested in.")),r.createElement(IL,{key:l&&l.id,onChange:this.onNotificationChange,user:l}),c&&Je(l)&&r.createElement("p",{className:"UserProfileEdit-notifications--help"},u.gettext("Mozilla reserves the right to contact you\n individually about specific concerns with your hosted\n add-ons."))),r.createElement("div",{className:"UserProfileEdit-buttons-wrapper"},r.createElement(Dc,{buttonType:"action",className:"UserProfileEdit-submit-button UserProfileEdit-button",disabled:this.preventSubmit(),puffy:!0,type:"submit"},p),r.createElement(Dc,{buttonType:"alert",className:"UserProfileEdit-button UserProfileEdit-delete-button",disabled:!l,onClick:this.onDeleteProfile,puffy:!0,type:"button"},c?u.gettext("Delete My Profile"):u.gettext("Delete Profile"))))),this.state.showProfileDeletionModal&&r.createElement(BD,{onEscapeOverlay:this.onCancelProfileDeletion,className:h,header:c?u.gettext("IMPORTANT: Deleting your Firefox Add-ons profile is irreversible."):u.gettext("IMPORTANT: Deleting this Firefox Add-ons profile is irreversible."),id:h,visibleOnLoad:!0},r.createElement("p",null,c?u.gettext("Your data will be permanently removed, including\n profile details (picture, user name, display name,\n location, home page, biography, occupation), notification\n preferences, reviews, and collections."):u.gettext("The user’s data will be permanently removed, including\n profile details (picture, user name, display name,\n location, home page, biography, occupation), notification\n preferences, reviews, and collections.")),r.createElement("p",null,c?u.gettext("If you authored any add-ons they will also be deleted,\n unless you share ownership with other authors. In that\n case, you will be removed as an author and the remaining\n authors will maintain ownership of the add-on."):u.gettext("If the user authored any add-ons they will also be\n deleted, unless ownership is shared with other authors. In\n that case, the user will be removed as an author and the\n remaining authors will maintain ownership of the add-on.")),c&&r.createElement("p",null,u.gettext("When you use this email address to log in again to\n addons.mozilla.org, your profile on Firefox Add-ons will\n not have access to any of its previous content.")),r.createElement("div",{className:"UserProfileEdit-buttons-wrapper"},r.createElement(Dc,{buttonType:"alert",className:"UserProfileEdit-button UserProfileEdit-confirm-button",onClick:this.onConfirmProfileDeletion,puffy:!0},c?u.gettext("Delete My Profile"):u.gettext("Delete Profile")),r.createElement(Dc,{buttonType:"cancel",className:"UserProfileEdit-button UserProfileEdit-cancel-button",onClick:this.onCancelProfileDeletion},u.gettext("Cancel"))))))}}])&&WD(t.prototype,n),o&&WD(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);KD.defaultProps={_window:"undefined"!=typeof window?window:{}};const QD=(0,Mo.qC)((0,g.connect)((function(e,t){var n=e.api,r=n.clientApp,o=n.lang,i=t.match.params,a=Number(i.userId),u=Xe(e.users),c=i.userId?Qe(e.users,a):u,s=Boolean(u&&c&&u.id===c.id);return u&&et(e,D.Ai)&&(s=!0),{clientApp:r,currentUser:u,hasEditPermission:s,isEditingCurrentUser:!(!u||!c)&&u.id===c.id,isUpdating:e.users.isUpdating,lang:o,user:c,userId:c?c.id:a}})),Eu(),gs({fileName:"src/amo/pages/UserProfileEdit/index.js",extractId:function(e){return e.match.params.userId}}))(KD);function XD(e){return(XD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function JD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eM(e,t){return(eM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rM(e);if(t){var o=rM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nM(this,n)}}function nM(e,t){if(t&&("object"===XD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function rM(e){return(rM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eM(e,t)}(a,e);var t,n,o,i=tM(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=e.dispatch,r=e.errorHandler,o=e.match,u=e.isUnsubscribed,c=o.params,s=c.hash,l=c.notificationName,f=c.token;return void 0===u&&n(function(e){var t=e.errorHandlerId,n=e.hash,r=e.notification,o=e.token;return ce()(t,"errorHandlerId is required"),ce()(n,"hash is required"),ce()(r,"notification is required"),ce()(o,"token is required"),{type:Be,payload:{errorHandlerId:t,hash:n,notification:r,token:o}}}({errorHandlerId:r.id,hash:s,notification:l,token:f})),t}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.errorHandler,n=e.i18n,o=e.isUnsubscribed,i=e.match.params,a=i.token,u=i.notificationName,c=ie({text:n.gettext("You can edit your notification settings by %(linkStart)sediting your profile%(linkEnd)s."),replacements:[["linkStart","linkEnd",function(e){return r.createElement(wc,{key:"edit-profile",to:"/users/edit"},e)}]]});return r.createElement(HO,null,r.createElement("div",{className:"UsersUnsubscribe"},r.createElement(Ao,null,r.createElement("title",null,n.gettext("Unsubscribe"))),t.hasError()?t.renderError():r.createElement(js,{header:o?n.gettext("You are successfully unsubscribed!"):r.createElement(Zp,null)},o?r.createElement("p",{className:"UsersUnsubscribe-content-explanation",dangerouslySetInnerHTML:vn(n.sprintf(n.gettext("The email address %(strongStart)s%(email)s%(strongEnd)s\n will no longer get messages when:"),{strongStart:"<strong>",strongEnd:"</strong>",email:(0,uv.Jx)(a)}),["strong"])}):r.createElement("p",{className:"UsersUnsubscribe-content-explanation"},r.createElement(Zp,{minWidth:40})),r.createElement("blockquote",{className:"UsersUnsubscribe-content-notification"},o?xL(n,u):r.createElement(Zp,{minWidth:40})),r.createElement("p",{className:"UsersUnsubscribe-content-edit-profile"},o?c:r.createElement(Zp,null)))))}}])&&JD(t.prototype,n),o&&JD(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const iM=(0,Mo.qC)((0,g.connect)((function(e,t){var n=t.match.params,r=n.hash,o=n.notificationName,i=n.token;return{isUnsubscribed:at(e.users,r,o,i)}})),Eu(),gs({fileName:"src/amo/pages/UsersUnsubscribe/index.js",extractId:function(e){var t=e.match.params,n=t.hash,r=t.notificationName,o=t.token;return it({hash:n,notification:r,token:o})}}))(oM);function aM(e){return(aM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sM(e,t){return(sM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pM(e);if(t){var o=pM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fM(this,n)}}function fM(e,t){if(t&&("object"===aM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function pM(e){return(pM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sM(e,t)}(a,e);var t,n,o,i=lM(a);function a(){return uM(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.i18n,n=e.status;return r.createElement(Do(),{code:n},r.createElement("div",{className:"ErrorPage NotFound"},r.createElement("h1",null,t.gettext("Page not found")),r.createElement("p",null,t.gettext("Sorry, but we can't find anything at the URL you entered.")),r.createElement("p",null,t.sprintf(t.gettext("Error code: %(status)s."),{status:n}))))}}])&&cM(t.prototype,n),o&&cM(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);dM.propTypes={i18n:w().object.isRequired,status:w().number},dM.defaultProps={status:404};const hM=(0,Mo.qC)(Eu())(dM);function yM(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n._config,i=void 0===o?t.Z:o;if(!e)throw new TypeError("configKey cannot be empty");return function(t){return function(n){return i.get(e)?r.createElement(t,n):(L.Z.debug("config.".concat(e," was false; not rendering ").concat(Rn(t))),r.createElement(hM,null))}}}function mM(e){return(mM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bM(e,t){return(bM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=EM(e);if(t){var o=EM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return OM(this,n)}}function OM(e,t){if(t&&("object"===mM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function EM(e){return(EM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bM(e,t)}(a,e);var t,n,o,i=wM(a);function a(){return vM(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return L.Z.info("Simulating an asynchronous error"),setTimeout((function(){throw new Error("This is a simulated asynchronous error")}),50),r.createElement("p",null,"Asynchronous error simulated, check the logs")}}])&&gM(t.prototype,n),o&&gM(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const xM=(0,Mo.qC)(yM("allowErrorSimulation"))(_M);function SM(e){return(SM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kM(e,t){return(kM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function IM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=RM(e);if(t){var o=RM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return TM(this,n)}}function TM(e,t){if(t&&("object"===SM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function RM(e){return(RM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var CM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kM(e,t)}(i,e);var t,n,r,o=IM(i);function i(){return jM(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){throw L.Z.info("Simulating a synchronous error"),new Error("This is a simulated synchronous error")}}])&&PM(t.prototype,n),r&&PM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.Component);const AM=(0,Mo.qC)(yM("allowErrorSimulation"))(CM);const NM=function(e){var t=e.title,n=e.metaDescription,o=e.children;return r.createElement(HO,{showWrongPlatformWarning:!1},r.createElement(js,{className:"StaticPage",header:t},r.createElement(Ao,null,r.createElement("title",null,t)),r.createElement(hp,{description:n,title:t}),r.createElement(ep,null),r.createElement("div",{className:"StaticPage-content"},o)))};function LM(e){return(LM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function DM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function FM(e,t){return(FM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function UM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HM(e);if(t){var o=HM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return BM(this,n)}}function BM(e,t){if(t&&("object"===LM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function HM(e){return(HM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&FM(e,t)}(a,e);var t,n,o,i=UM(a);function a(){return DM(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.i18n;return r.createElement(NM,{title:e.gettext("About Firefox Add-ons"),metaDescription:e.gettext("The official Mozilla site for downloading\n Firefox extensions and themes. Add new features and change the\n browser’s appearance to customize your web experience.")},r.createElement(r.Fragment,null,r.createElement("div",{id:"about"},r.createElement("p",null,e.gettext("Addons.mozilla.org (AMO), is Mozilla's official site\n for discovering and installing add-ons for the Firefox browser.\n Add-ons help you modify and personalize your browsing experience\n by adding new features to Firefox, enhancing your interactions\n with Web content, and changing the way your browser looks.")),r.createElement("p",{dangerouslySetInnerHTML:vn(e.sprintf(e.gettext("If you are looking for add-ons for Thunderbird or SeaMonkey, please visit\n %(startTBLink)saddons.thunderbird.net%(endTBLink)s or\n %(startSMLink)saddons.thunderbird.net/seamonkey%(endSMLink)s."),{startTBLink:'<a href="https://addons.thunderbird.net/thunderbird/">',endTBLink:"</a>",startSMLink:'<a href="https://addons.thunderbird.net/seamonkey/">',endSMLink:"</a>"}),["a"])})),r.createElement("section",null,r.createElement("h2",null,e.gettext("A community of creators")),r.createElement("p",null,e.gettext("The add-ons listed here are created by\n thousands of developers and theme designers from all over the\n world, ranging from individual hobbyists to large corporations.\n Some add-ons listed on AMO have been automatically published\n and may be subject to review by a team of editors once\n publicly listed."))),r.createElement("section",null,r.createElement("h2",null,e.gettext("Get involved")),r.createElement("p",null,e.gettext("Mozilla is a non-profit champion of the Internet, we\n build Firefox to help keep it healthy, open and accessible. Add-ons\n support user choice and customization in Firefox, and you can\n contribute in the following ways:")),r.createElement("ul",null,r.createElement("li",{dangerouslySetInnerHTML:vn(e.sprintf(e.gettext("%(startLink)sMake your own add-on%(endLink)s.\n We provide free hosting and update services and can help you\n reach a large audience of users."),{startLink:'<a href="https://addons.mozilla.org/developers/">',endLink:"</a>"}),["a"])}),r.createElement("li",{dangerouslySetInnerHTML:vn(e.sprintf(e.gettext("Help improve this website. It's open source, and you\n can file bugs and submit patches. You can get started with a\n %(startGoodFirstBugLink)sgood first bug%(endGoodFirstBugLink)s\n or view all open issues for AMO’s\n %(startAddonsServerRepoLink)sserver%(endAddonsServerRepoLink)s and\n %(startAddonsFrontendRepoLink)sfrontend%(endAddonsFrontendRepoLink)s\n on Github."),{startGoodFirstBugLink:'<a href="https://github.com/search?l=&q=repo:mozilla/addons+repo:mozilla/addons-frontend+repo:mozilla/addons-linter+repo:mozilla/addons-server+label:%22contrib:+good+first+bug%22&ref=advsearch&state=open&type=Issues">',endGoodFirstBugLink:"</a>",startAddonsServerRepoLink:'<a href="https://github.com/mozilla/addons-server/issues">',endAddonsServerRepoLink:"</a>",startAddonsFrontendRepoLink:'<a href="https://github.com/mozilla/addons-frontend/issues">',endAddonsFrontendRepoLink:"</a>"}),["a"])}),r.createElement("li",{dangerouslySetInnerHTML:vn(e.sprintf(e.gettext("Want to interact with addons.mozilla.org\n (AMO) programmatically? Check out the\n %(startAddonsServerDocumentation)sAdd-ons Servers\n documentation%(endAddonsServerDocumentation)s for details\n about the APIs used by AMO and the\n %(startAddonsManager)sAdd-ons\n Manager%(endAddonsManager)s."),{startAddonsServerDocumentation:'<a href="https://addons-server.readthedocs.io/en/latest/index.html">',endAddonsServerDocumentation:"</a>",startAddonsManager:'<a href="https://blog.mozilla.org/firefox/add-ons-manager/">',endAddonsManager:"</a>"}),["a"])})),r.createElement("p",null,e.gettext("If you want to contribute but are not quite as technical, there are still ways to help:")),r.createElement("ul",null,r.createElement("li",{dangerouslySetInnerHTML:vn(e.sprintf(e.gettext("Participate in our %(startLink)sforum%(endLink)s."),{startLink:'<a href="https://discourse.mozilla-community.org/c/add-ons">',endLink:"</a>"}),["a"])}),r.createElement("li",null,e.gettext("Leave feedback for your favorite add-ons. Add-on authors are more likely\n to improve their add-ons and create new ones when they know people appreciate their\n work.")),r.createElement("li",null,e.gettext("Tell your friends and family that Firefox is a fast, secure browser\n that protects their privacy, and they can use add-ons to make it their own!"))),r.createElement("p",{dangerouslySetInnerHTML:vn(e.sprintf(e.gettext("To see more ways you can contribute to the add-on community, please visit our %(startLink)swiki%(endLink)s."),{startLink:'<a href="https://wiki.mozilla.org/Add-ons/Contribute">',endLink:"</a>"}),["a"])})),r.createElement("section",null,r.createElement("h2",{id:"reportIssue"},e.gettext("Report an issue")),r.createElement("p",{dangerouslySetInnerHTML:vn(e.sprintf(e.gettext("If you find a problem with the site, we'd love to fix it.\n Please file an %(startIssueLink)sissue%(endIssueLink)s and include as much\n detail as possible."),{startIssueLink:'<a href="https://github.com/mozilla/addons/issues/new">',endIssueLink:"</a>"}),["a"])}),r.createElement("p",{dangerouslySetInnerHTML:vn(e.sprintf(e.gettext("To report a security vulnerability for an extension, even if it is not\n hosted on this site, please file an %(startSecIssueLink)sissue%(endSecIssueLink)s\n on Bugzilla or email %(startMailLink)samo-admins@mozilla.com%(endMailLink)s.\n All security vulnerability reports are %(startLink)sconfidential%(endLink)s."),{startSecIssueLink:'<a href="https://bugzilla.mozilla.org/enter_bug.cgi?product=addons.mozilla.org&component=Add-on%20Security&maketemplate=Add-on%20Security%20Bug&bit-23=1&rep_platform=All&op_sys=All" rel="nofollow">',endSecIssueLink:"</a>",startMailLink:'<a href="mailto:amo-admins@mozilla.com">',endMailLink:"</a>",startLink:'<a href="https://www.mozilla.org/en-US/about/governance/policies/security-group/bugs/" rel="nofollow">',endLink:"</a>"}),["a"])})),r.createElement("section",null,r.createElement("h2",null,e.gettext("Get support")),r.createElement("p",{dangerouslySetInnerHTML:vn(e.sprintf(e.gettext("If you would like to learn more about how to manage add-ons in\n Firefox, or need to find general Firefox support, please visit\n %(startSUMOLink)sSupport%(endSUMOLink)s\n Mozilla. If you don't find an answer there, you can\n %(startForumLink)sask on our community forum%(endForumLink)s."),{startSUMOLink:'<a href="https://support.mozilla.org/products/firefox/manage-preferences-and-add-ons-firefox/install-and-manage-add-ons">',endSUMOLink:"</a>",startForumLink:'<a href="https://discourse.mozilla-community.org/c/add-ons">',endForumLink:"</a>"}),["a"])}),r.createElement("p",{dangerouslySetInnerHTML:vn(e.sprintf(e.gettext("%(startLink)sInformation about how to contact Mozilla's add-ons team can be found here%(endLink)s."),{startLink:'<a href="https://wiki.mozilla.org/Add-ons#Getting_in_touch">',endLink:"</a>"}),["a"])}))))}}])&&MM(t.prototype,n),o&&MM(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const zM=Eu()(qM);function GM(e){return(GM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function WM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function YM(e,t){return(YM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ZM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=KM(e);if(t){var o=KM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $M(this,n)}}function $M(e,t){if(t&&("object"===GM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function KM(e){return(KM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var QM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YM(e,t)}(a,e);var t,n,o,i=ZM(a);function a(){return WM(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.i18n;return r.createElement(NM,{title:e.gettext("Review Guidelines"),metaDescription:e.gettext("\n Guidelines, tips, and Frequently Asked Questions to leave a review for the extensions and\n themes you’ve downloaded and used on Firefox.\n ")},r.createElement(r.Fragment,null,r.createElement("section",{id:"review-guide"},r.createElement("p",null,e.gettext("Add-on reviews are a way for you to share your opinions\n about the add-ons you’ve installed and used. Our review moderation\n team reserves the right to refuse or remove any review that does not\n comply with these guidelines.")),r.createElement("h2",null,e.gettext("Tips for writing a great review")),r.createElement("h3",null,e.gettext("Do:")),r.createElement("ul",null,r.createElement("li",null,e.gettext("Write like you are telling a friend about your experience with the add-on.")),r.createElement("li",null,e.gettext("Keep reviews concise and easy to understand.")),r.createElement("li",null,e.gettext("Give specific and helpful details. For example:"),r.createElement("ul",null,r.createElement("li",null,e.gettext("Did the add-on work as you expected it to?")),r.createElement("li",null,e.gettext("What features did you like or dislike?")),r.createElement("li",null,e.gettext("Was it useful?")),r.createElement("li",null,e.gettext("Was it easy to use?")),r.createElement("li",null,e.gettext("Will you continue to use this add-on?")))),r.createElement("li",null,e.gettext("Take a moment to read your review before submitting it to minimize typos."))),r.createElement("h3",null,e.gettext("Don't:")),r.createElement("ul",null,r.createElement("li",null,e.gettext('Submit one-word reviews such as "Great!", "wonderful," or "bad".')),r.createElement("li",null,e.gettext('Post technical issues, support requests, or feature suggestions. Use\n the available support options for each add-on, if available. You can find them in\n the "More information" section in the sidebar on the add-on\'s detail page.')),r.createElement("li",null,e.gettext("Write reviews for add-ons which you have not personally used.")),r.createElement("li",null,e.gettext("Use profanity, sexual language or language that can be construed as hateful.")),r.createElement("li",null,e.gettext("Include HTML, links, source code or code snippets. Reviews are meant to be text only.")),r.createElement("li",null,e.gettext("Make false statements, disparage add-on authors or personally insult them.")),r.createElement("li",null,e.gettext("Include your own or anyone else’s email, phone number, or other personal details.")),r.createElement("li",null,e.gettext("Post reviews for an add-on you or your organization wrote or represent.")),r.createElement("li",null,e.gettext("Criticize an add-on for something it’s intended to do. For example,\n leaving a negative review of an add-on for displaying ads or requiring data\n gathering, when that is the intended purpose of the add-on, or the add-on\n requires gathering data to function.")))),r.createElement("section",null,r.createElement("h2",null,e.gettext("Frequently Asked Questions about Reviews")),r.createElement("h3",null,e.gettext("How can I report a problematic review?")),r.createElement("p",null,e.gettext('Please report or flag any questionable reviews by clicking the\n "Report this review" and it will be submitted to the site for moderation. Our\n moderation team will use the Review Guidelines to evaluate whether or not to\n delete the review or restore it back to the site.')),r.createElement("h3",null,e.gettext("I'm an add-on author, can I respond to reviews?")),r.createElement("p",{dangerouslySetInnerHTML:vn(e.sprintf(e.gettext("Yes, add-on authors can provide a single response to a review.\n You can set up a discussion topic in our %(startLink)sforum%(endLink)s to engage in additional\n discussion or follow-up."),{startLink:'<a href="https://discourse.mozilla-community.org/c/add-ons/add-on-support">',endLink:"</a>"}),["a"])}),r.createElement("h3",null,e.gettext("I'm an add-on author, can I delete unfavorable reviews or ratings?")),r.createElement("p",null,e.gettext('In general, no. But if the review did not meet the review guidelines\n outlined above, you can click "Report this review" and have it moderated. If a review\n included a complaint that is no longer valid due to a new release of your add-on, we\n may consider deleting the review.')))))}}])&&VM(t.prototype,n),o&&VM(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const XM=Eu()(QM);function JM(e){return(JM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eF(Object(n),!0).forEach((function(t){nF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iF(e,t){return(iF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function aF(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cF(e);if(t){var o=cF(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uF(this,n)}}function uF(e,t){if(t&&("object"===JM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function cF(e){return(cF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sF=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iF(e,t)}(a,e);var t,n,o,i=aF(a);function a(){return rF(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getPageTitle",value:function(e){var t=this.props.i18n;return t.sprintf(t.gettext("Add-ons tagged with %(tag)s"),{tag:e})}},{key:"render",value:function(){var e=this.props,t=e.filters,n=e.match.params.tag,o=tF(tF({},t),{},{tag:n,sort:t.sort||D.B2});return r.createElement(HO,null,r.createElement(ep,null),r.createElement(dT,{filters:o,pageTitle:this.getPageTitle(n),paginationQueryParams:Tt(t),pathname:ih({tag:n})}))}}])&&oF(t.prototype,n),o&&oF(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const lF=(0,Mo.qC)((0,g.connect)((function(e){var t=Rt(e.router.location.query);return{filters:Nt(t)}})),Eu())(sF);const fF=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e._config,o=void 0===n?t.Z:n;return r.createElement(Fo,null,r.createElement(Uo,{exact:!0,path:"/:lang/about",component:zM}),r.createElement(Uo,{exact:!0,path:"/:lang/review_guide",component:XM}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/",component:UA}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/addon/:slug/",component:yk}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/blocked-addon/:guid/:versionId?/",component:XC}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/addon/:addonSlug/reviews/:reviewId",component:Wk}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/addon/:addonSlug/reviews/",component:Wk}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/addon/:slug/privacy/",component:function(e){return r.createElement(Pk,Object.assign({},e,{infoType:Sk}))}}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/addon/:slug/eula/",component:function(e){return r.createElement(Pk,Object.assign({},e,{infoType:xk}))}}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/addon/:slug/license/",component:function(e){return r.createElement(Pk,Object.assign({},e,{infoType:_k}))}}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/addon/:slug/versions/",component:eI}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/users/edit",component:QD}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/user/:userId/edit/",component:QD}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/user/:userId/",component:EL}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/collections/:userId/:slug/",component:VR}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/collections/",component:rC}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/collections/add/",component:function(e){return r.createElement(VR,Object.assign({},e,{creating:!0}))}}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/collections/:userId/:slug/edit/",component:YR}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/:visibleAddonType(extensions|themes)/categories/",component:vI}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/:visibleAddonType(extensions|themes)/category/:categorySlug/",component:xT}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/tag/:tag/",component:lF}),r.createElement(Uo,{exact:!0,path:"/:lang/android/language-tools/",component:jR}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox)/language-tools/",component:yN}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/search-tools/",component:_N}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/search/",component:AN}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/401/",component:o.get("isDevelopment")?EC:jR}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/404/",component:jR}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/451/",component:_C}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/500/",component:o.get("isDevelopment")?AC:jR}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/simulate-async-error/",component:function(){return r.createElement(HO,{showWrongPlatformWarning:!1},r.createElement(xM,null))}}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/simulate-sync-error/",component:function(){return r.createElement(HO,{showWrongPlatformWarning:!1},r.createElement(AM,null))}}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/:visibleAddonType(extensions|themes)/",component:ZA}),r.createElement(Uo,{exact:!0,path:"/:lang/:application(firefox|android)/users/unsubscribe/:token/:hash/:notificationName/",component:iM}),r.createElement(Uo,{component:jR}))};function pF(e){return(pF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yF(e,t){return(yF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mF(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gF(e);if(t){var o=gF(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vF(this,n)}}function vF(e,t){if(t&&("object"===pF(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function gF(e){return(gF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bF=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yF(e,t)}(i,e);var t,n,r,o=mF(i);function i(){return dF(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t._window,r=t.location;!n||r.pathname===e.location.pathname&&r.search===e.location.search||n.scrollTo(0,0)}},{key:"render",value:function(){return this.props.children||null}}])&&hF(t.prototype,n),r&&hF(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.Component);bF.defaultProps={_window:"undefined"!=typeof window?window:null};const wF=No(bF);function OF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OF(Object(n),!0).forEach((function(t){_F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xF="LOAD_ERROR_PAGE",SF={clearOnNext:!1,error:null,hasError:!1,statusCode:null};function jF(e){return(jF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function PF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function IF(e,t){return(IF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function TF(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=CF(e);if(t){var o=CF(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RF(this,n)}}function RF(e,t){if(t&&("object"===jF(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function CF(e){return(CF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var AF=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IF(e,t)}(a,e);var t,n,o,i=TF(a);function a(){return PF(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"componentDidCatch",value:function(e,t){(0,this.props.dispatch)(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).error;if(!e)throw new Error("error is required");return{type:xF,payload:{error:e}}}({error:e})),L.Z.error("Caught application error:",e,t)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.errorPage;if(n.hasError){var o=function(e){switch(e){case 401:return EC;case 404:return jR;case 500:default:return AC}}(n.statusCode);return r.createElement(o,null)}return t}}])&&kF(t.prototype,n),o&&kF(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);const NF=(0,Mo.qC)((0,g.connect)((function(e){return{errorPage:e.errorPage}})))(AF);function LF(e){return(LF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function DF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DF(Object(n),!0).forEach((function(t){FF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function HF(e,t){return(HF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qF(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=GF(e);if(t){var o=GF(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zF(this,n)}}function zF(e,t){if(t&&("object"===LF(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function GF(e){return(GF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var WF=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HF(e,t)}(u,e);var n,o,i,a=qF(u);function u(){return UF(this,u),a.apply(this,arguments)}return n=u,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e._addChangeListeners,n=e._navigator,r=e.handleGlobalEvent,o=e.mozAddonManager,i=e.setUserAgent,a=e.userAgent;t(r,o),!a&&n&&n.userAgent&&(L.Z.info("userAgent not in state on App load; using navigator.userAgent."),i(n.userAgent))}},{key:"componentDidUpdate",value:function(){var e,n,r=this.props,o=r.clientApp,i=r.location,a=r.setClientApp,u=(e=i.pathname,{lang:(n=e.split("?")[0].replace(/^\//,"").split("/"))[0],clientApp:n[1]}).clientApp;(function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})._config;return(void 0===n?t.Z:n).get("validClientApplications").includes(e)})(u)&&u!==o&&a(u)}},{key:"render",value:function(){var e=this.props,t=e.clientApp,n=e.i18n,o={locale:e.lang},i=n.sprintf(n.gettext("Add-ons for Firefox (%(locale)s)"),o),a=n.sprintf(n.gettext("%(title)s – Add-ons for Firefox (%(locale)s)"),MF(MF({},o),{},{title:"%s"}));return t===D.wZ&&(i=n.sprintf(n.gettext("Add-ons for Firefox Android (%(locale)s)"),o),a=n.sprintf(n.gettext("%(title)s – Add-ons for Firefox Android (%(locale)s)"),MF(MF({},o),{},{title:"%s"}))),r.createElement(Do(),{code:200},r.createElement(wF,null,r.createElement(Ao,{defaultTitle:i,titleTemplate:a}),r.createElement(NF,null,r.createElement(fF,null))))}}])&&BF(n.prototype,o),i&&BF(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(r.Component);WF.defaultProps={_addChangeListeners:bv.addChangeListeners,_navigator:"undefined"!=typeof navigator?navigator:null,mozAddonManager:t.Z.get("server")?{}:navigator.mozAddonManager,userAgent:null};const VF=(0,Mo.qC)(No,(0,g.connect)((function(e){return{clientApp:e.api.clientApp,lang:e.api.lang,userAgent:e.api.userAgent}}),(function(e){return{handleGlobalEvent:function(t){e(vv(t))},setClientApp:function(t){e(wt(t))},setUserAgent:function(t){e(function(e){return{type:mt,payload:{userAgent:e}}}(t))}}})),Eu())(WF);var YF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$F=function(e){return"@@redux-saga/"+e},KF=$F("TASK"),QF=$F("HELPER"),XF=$F("MATCH"),JF=$F("CANCEL_PROMISE"),eU=$F("SAGA_ACTION"),tU=$F("SELF_CANCELLATION"),nU=function(e){return function(){return e}},rU=nU(!0),oU=function(){},iU=function(e){return e};function aU(e,t,n){if(!t(e))throw bU("error","uncaught at check",n),new Error(n)}var uU=Object.prototype.hasOwnProperty;function cU(e,t){return sU.notUndef(e)&&uU.call(e,t)}var sU={undef:function(e){return null==e},notUndef:function(e){return null!=e},func:function(e){return"function"==typeof e},number:function(e){return"number"==typeof e},string:function(e){return"string"==typeof e},array:Array.isArray,object:function(e){return e&&!sU.array(e)&&"object"===(void 0===e?"undefined":ZF(e))},promise:function(e){return e&&sU.func(e.then)},iterator:function(e){return e&&sU.func(e.next)&&sU.func(e.throw)},iterable:function(e){return e&&sU.func(Symbol)?sU.func(e[Symbol.iterator]):sU.array(e)},task:function(e){return e&&e[KF]},observable:function(e){return e&&sU.func(e.subscribe)},buffer:function(e){return e&&sU.func(e.isEmpty)&&sU.func(e.take)&&sU.func(e.put)},pattern:function(e){return e&&(sU.string(e)||"symbol"===(void 0===e?"undefined":ZF(e))||sU.func(e)||sU.array(e))},channel:function(e){return e&&sU.func(e.take)&&sU.func(e.close)},helper:function(e){return e&&e[QF]},stringableFunc:function(e){return sU.func(e)&&cU(e,"toString")}},lU=function(e,t){for(var n in t)cU(t,n)&&(e[n]=t[n])};function fU(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var pU=function(e){var t=Array(e.length);for(var n in e)cU(e,n)&&(t[n]=e[n]);return t};function dU(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=YF({},e),n=new Promise((function(e,n){t.resolve=e,t.reject=n}));return t.promise=n,t}function hU(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(){return++e}}var yU=hU(),mU=function(e){throw e},vU=function(e){return{value:e,done:!0}};function gU(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mU,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],o={name:n,next:e,throw:t,return:vU};return r&&(o[QF]=!0),"undefined"!=typeof Symbol&&(o[Symbol.iterator]=function(){return o}),o}function bU(e,t){}function wU(e,t){return function(){return e.apply(void 0,arguments)}}var OU=function(e,t){return e+" has been deprecated in favor of "+t+", please update your code"},EU=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},_U=function(e,t){return(e?e+".":"")+"setContext(props): argument "+t+" is not a plain object"},xU=function(e){return function(t){return e(Object.defineProperty(t,eU,{value:!0}))}},SU=$F("IO"),jU="TAKE",PU="PUT",kU="RACE",IU="CALL",TU="CPS",RU="FORK",CU="JOIN",AU="CANCEL",NU="SELECT",LU="ACTION_CHANNEL",DU="CANCELLED",MU="FLUSH",FU="GET_CONTEXT",UU="SET_CONTEXT",BU="\n(HINT: if you are getting this errors in tests, consider using createMockTask from redux-saga/utils)",HU=function(e,t){var n;return(n={})[SU]=!0,n[e]=t,n};function qU(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";if(arguments.length&&aU(arguments[0],sU.notUndef,"take(patternOrChannel): patternOrChannel is undefined"),sU.pattern(e))return HU(jU,{pattern:e});if(sU.channel(e))return HU(jU,{channel:e});throw new Error("take(patternOrChannel): argument "+String(e)+" is not valid channel or a valid pattern")}qU.maybe=function(){var e=qU.apply(void 0,arguments);return e.TAKE.maybe=!0,e};qU.maybe;function zU(e,t){return arguments.length>1?(aU(e,sU.notUndef,"put(channel, action): argument channel is undefined"),aU(e,sU.channel,"put(channel, action): argument "+e+" is not a valid channel"),aU(t,sU.notUndef,"put(channel, action): argument action is undefined")):(aU(e,sU.notUndef,"put(action): argument action is undefined"),t=e,e=null),HU(PU,{channel:e,action:t})}function GU(e){return HU("ALL",e)}function WU(e){return HU(kU,e)}function VU(e,t,n){aU(t,sU.notUndef,e+": argument fn is undefined");var r=null;if(sU.array(t)){var o=t;r=o[0],t=o[1]}else if(t.fn){var i=t;r=i.context,t=i.fn}return r&&sU.string(t)&&sU.func(r[t])&&(t=r[t]),aU(t,sU.func,e+": argument "+t+" is not a function"),{context:r,fn:t,args:n}}function YU(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return HU(IU,VU("call",e,n))}function ZU(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return HU(RU,VU("fork",e,n))}function $U(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1)return GU(t.map((function(e){return $U(e)})));var r=t[0];return 1===t.length&&(aU(r,sU.notUndef,"cancel(task): argument task is undefined"),aU(r,sU.task,"cancel(task): argument "+r+" is not a valid Task object "+BU)),HU(AU,r||tU)}function KU(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return 0===arguments.length?e=iU:(aU(e,sU.notUndef,"select(selector,[...]): argument selector is undefined"),aU(e,sU.func,"select(selector,[...]): argument "+e+" is not a function")),HU(NU,{selector:e,args:n})}zU.resolve=function(){var e=zU.apply(void 0,arguments);return e.PUT.resolve=!0,e},zU.sync=wU(zU.resolve);var QU=function(e){return function(t){return t&&t[SU]&&t[e]}},XU={take:QU(jU),put:QU(PU),all:QU("ALL"),race:QU(kU),call:QU(IU),cps:QU(TU),fork:QU(RU),join:QU(CU),cancel:QU(AU),select:QU(NU),actionChannel:QU(LU),cancelled:QU(DU),flush:QU(MU),getContext:QU(FU),setContext:QU(UU)},JU={done:!0,value:void 0},eB={};function tB(e){return sU.channel(e)?"channel":Array.isArray(e)?String(e.map((function(e){return String(e)}))):String(e)}function nB(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"iterator",r=void 0,o=t;function i(t,n){if(o===eB)return JU;if(n)throw o=eB,n;r&&r(t);var i=e[o](),a=i[0],u=i[1],c=i[2];return r=c,(o=a)===eB?JU:u}return gU(i,(function(e){return i(null,e)}),n,!0)}var rB="Channel's Buffer overflow!",oB={isEmpty:rU,put:oU,take:oU};function iB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments[1],n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},u=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},c=function(){for(var e=[];r;)e.push(u());return e};return{isEmpty:function(){return 0==r},put:function(u){if(r<e)a(u);else{var s=void 0;switch(t){case 1:throw new Error(rB);case 3:n[o]=u,i=o=(o+1)%e;break;case 4:s=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=s,e=s,a(u)}}},take:u,flush:c}}var aB=function(){return oB},uB=function(e){return iB(e,1)},cB=[],sB=0;function lB(e){try{pB(),e()}finally{dB()}}function fB(e){cB.push(e),sB||(pB(),hB())}function pB(){sB++}function dB(){sB--}function hB(){dB();for(var e=void 0;!sB&&void 0!==(e=cB.shift());)lB(e)}var yB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mB="@@redux-saga/CHANNEL_END",vB={type:mB},gB=function(e){return e&&e.type===mB};function bB(){var e=[];return{subscribe:function(t){return e.push(t),function(){return fU(e,t)}},emit:function(t){for(var n=e.slice(),r=0,o=n.length;r<o;r++)n[r](t)}}}var wB="invalid buffer passed to channel factory function",OB="Saga was provided with an undefined action";function EB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uB(),t=!1,n=[];function r(){if(t&&n.length)throw EU("Cannot have a closed channel with pending takers");if(n.length&&!e.isEmpty())throw EU("Cannot have pending takers with non empty buffer")}function o(o){if(r(),aU(o,sU.notUndef,OB),!t){if(!n.length)return e.put(o);for(var i=0;i<n.length;i++){var a=n[i];if(!a[XF]||a[XF](o))return n.splice(i,1),a(o)}}}function i(o){r(),aU(o,sU.func,"channel.take's callback must be a function"),t&&e.isEmpty()?o(vB):e.isEmpty()?(n.push(o),o.cancel=function(){return fU(n,o)}):o(e.take())}function a(n){r(),aU(n,sU.func,"channel.flush' callback must be a function"),t&&e.isEmpty()?n(vB):n(e.flush())}function u(){if(r(),!t&&(t=!0,n.length)){var e=n;n=[];for(var o=0,i=e.length;o<i;o++)e[o](vB)}}return aU(e,sU.buffer,wB),{take:i,put:o,flush:a,close:u,get __takers__(){return n},get __closed__(){return t}}}function _B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aB(),n=arguments[2];arguments.length>2&&aU(n,sU.func,"Invalid match function passed to eventChannel");var r=EB(t),o=function(){r.__closed__||(i&&i(),r.close())},i=e((function(e){gB(e)?o():n&&!n(e)||r.put(e)}));if(r.__closed__&&i(),!sU.func(i))throw new Error("in eventChannel: subscribe should return a function to unsubscribe");return{take:r.take,flush:r.flush,close:o}}function xB(e){var t=_B((function(t){return e((function(e){e[eU]?t(e):fB((function(){return t(e)}))}))}));return yB({},t,{take:function(e,n){arguments.length>1&&(aU(n,sU.func,"channel.take's matcher argument must be a function"),e[XF]=n),t.take(e)}})}function SB(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i={done:!1,value:qU(e)},a=function(e){return{done:!1,value:ZU.apply(void 0,[t].concat(r,[e]))}},u=void 0,c=function(e){return u=e};return nB({q1:function(){return["q2",i,c]},q2:function(){return u===vB?[eB]:["q1",a(u)]}},"q1","takeEvery("+tB(e)+", "+t.name+")")}function jB(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i={done:!1,value:qU(e)},a=function(e){return{done:!1,value:ZU.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:$U(e)}},c=void 0,s=void 0,l=function(e){return c=e},f=function(e){return s=e};return nB({q1:function(){return["q2",i,f]},q2:function(){return s===vB?[eB]:c?["q3",u(c)]:["q1",a(s),l]},q3:function(){return["q1",a(s),l]}},"q1","takeLatest("+tB(e)+", "+t.name+")")}var PB;function kB(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return ZU.apply(void 0,[SB,e,t].concat(r))}function IB(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return ZU.apply(void 0,[jB,e,t].concat(r))}function TB(t){var n,r,o=t._fixFiltersForClientApp,i=void 0===o?At:o,a=t.api,u=t.auth,c=void 0!==u&&u,s=t.filters,l=It({filters:i({api:a,filters:void 0===s?{}:s}),userAgentInfo:a.userAgentInfo});return l.sort&&l.sort===D.wn&&(l.promoted&&!l.q||(delete l.sort,L.Z.warn((0,e.f9)(PB||(n=['search api filter "sort=random" has been removed before\n calling the api to avoid an incompatibility error.'],r||(r=n.slice(0)),PB=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))))))),$t({endpoint:"addons/search",params:Tt(l),apiState:a,auth:c})}function RB(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.log,r=void 0===n?L.Z:n;return new ys({id:e,dispatch:function(){return r.error("ErrorHandler cannot dispatch from a saga")}})}function CB(e){return e}function AB(e){return(AB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function NB(){NB=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==AB(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var LB=NB().mark(MB),DB=NB().mark(FB);function MB(e){var t,n,r,o,i,a,u,c,s,l,f,p,d,h;return NB().wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return t=e.payload,n=t.addonType,r=t.authorIds,o=t.errorHandlerId,i=t.forAddonSlug,a=t.page,u=t.pageSize,c=t.sort,s=RB(o),y.next=5,zU(s.createClearingAction());case 5:return y.prev=5,y.next=8,KU(CB);case 8:return l=y.sent,f={api:l.api,filters:{addonType:n,author:r.join(","),exclude_addons:i,page:a||"1",page_size:u,sort:c||D.Mj}},y.next=12,YU(TB,f);case 12:return p=y.sent,d=p.count,h=p.results,y.next=16,zU(yl({addonType:n,addons:h,authorIds:r,count:d,forAddonSlug:i,pageSize:u}));case 16:y.next=23;break;case 18:return y.prev=18,y.t0=y.catch(5),L.Z.warn("Search for addons by authors results failed to load: ".concat(y.t0)),y.next=23,zU(s.createErrorAction(y.t0));case 23:case"end":return y.stop()}}),LB,null,[[5,18]])}function FB(){return NB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kB(dl,MB);case 2:case"end":return e.stop()}}),DB)}var UB=function(e){var t=e.apiState,n=e.guid;return $t({apiState:t,endpoint:"blocklist/block/".concat(n,"/")})};function BB(e){return(BB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function HB(){HB=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==BB(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var qB=HB().mark(GB),zB=HB().mark(WB);function GB(e){var t,n,r,o,i,a;return HB().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.guid,o=RB(n),u.next=4,zU(o.createClearingAction());case 4:return u.prev=4,u.next=7,KU(CB);case 7:return i=u.sent,u.next=10,YU(UB,{apiState:i.api,guid:r});case 10:return a=u.sent,u.next=13,zU(qC({block:a}));case 13:u.next=21;break;case 15:return u.prev=15,u.t0=u.catch(4),u.next=19,zU(o.createErrorAction(u.t0));case 19:return u.next=21,zU(HC({guid:r}));case 21:case"end":return u.stop()}}),qB,null,[[4,15]])}function WB(){return HB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(MC,GB);case 2:case"end":return e.stop()}}),zB)}function VB(e){return(VB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function YB(){YB=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==VB(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function ZB(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function $B(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ZB(i,r,o,a,u,"next",e)}function u(e){ZB(i,r,o,a,u,"throw",e)}a(void 0)}))}}var KB=function(e){var t=e.api,n=e.slug,r=e.userId;return ce()(n,"slug is required"),ce()(r,"userId is required"),$t({auth:!0,endpoint:"accounts/account/".concat(r,"/collections/").concat(n),apiState:t})},QB=function(e){var t=e.api,n=e.filters,r=e.nextURL,o=e.slug,i=e.userId;ce()(o,"slug is required"),ce()(i,"userId is required");var a={auth:!0,endpoint:r||"accounts/account/".concat(i,"/collections/").concat(o,"/addons"),params:void 0,apiState:t};return n&&(a.params={page:n.page,sort:n.collectionSort}),$t(a)},XB=function(e){var t=e.api,n=e.nextURL,r=e.userId;return ce()(r,"userId is required"),$t({auth:!0,endpoint:n||"accounts/account/".concat(r,"/collections"),apiState:t})},JB=function(){var e=$B(YB().mark((function e(t){var n,r,o,i,a,u,c,s;return YB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.api,r=t.userId,o=t._allPages,i=void 0===o?Jt:o,a=t._listCollections,u=void 0===a?XB:a,e.next=3,i((function(e){return u({api:n,nextURL:e,userId:r})}));case 3:return c=e.sent,s=c.results,e.abrupt("return",s);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),eH=function(e,t){var n=t.api,r=t.collectionSlug,o=void 0===r?"":r,i=t.defaultLocale,a=t.description,u=t.name,c=t.slug,s=t.userId,l=t._validateLocalizedString,f=void 0===l?en:l,p="create"===e;return ce()(n,"api is required"),ce()(s,"userId is required"),p?ce()(c,"The slug parameter is required when creating"):ce()(o,"The collectionSlug parameter is required when updating"),a&&f(a),u&&f(u),$t({auth:!0,body:{default_locale:i,description:a,name:u,slug:c},endpoint:"accounts/account/".concat(s,"/collections/").concat(p?"":o),method:p?"POST":"PATCH",apiState:n})},tH=function(e){var t=e.api,n=e.collectionSlug,r=e.defaultLocale,o=e.description,i=e.name,a=e.slug,u=e.userId,c=e._modifyCollection,s=void 0===c?eH:c,l=e._validateLocalizedString;return s("update",{api:t,collectionSlug:n,defaultLocale:r,description:o,name:i,slug:a,userId:u,_validateLocalizedString:void 0===l?en:l})},nH=function(e){var t=e.api,n=e.defaultLocale,r=e.description,o=e.name,i=e.slug,a=e.userId,u=e._modifyCollection,c=void 0===u?eH:u,s=e._validateLocalizedString;return c("create",{api:t,defaultLocale:n,description:r,name:o,slug:i,userId:a,_validateLocalizedString:void 0===s?en:s})},rH=function(e){var t=e.action,n=e.addonId,r=e.api,o=e.slug,i=e.userId;ce()(t,"The action parameter is required"),ce()(n,"The addonId parameter is required"),ce()(r,"The api parameter is required"),ce()(o,"The slug parameter is required"),ce()(i,"The userId parameter is required");var a="POST",u={addon:n,notes:e.notes},c="accounts/account/".concat(i,"/collections/").concat(o,"/addons");return"update"===t&&(a="PATCH",delete u.addon,c="".concat(c,"/").concat(n)),$t({auth:!0,body:u,endpoint:c,method:a,apiState:r})},oH=function(e){var t=e.addonId,n=e.api,r=e.slug,o=e.notes,i=e.userId,a=e._modifyCollectionAddon;return(void 0===a?rH:a)({action:"create",addonId:t,api:n,notes:o,slug:r,userId:i})},iH=function(e){var t=e.addonId,n=e.api,r=e.slug,o=e.notes,i=e.userId,a=e._modifyCollectionAddon;return(void 0===a?rH:a)({action:"update",addonId:t,api:n,notes:o,slug:r,userId:i})},aH=function(e){var t=e.addonId,n=e.api,r=e.slug,o=e.userId;return ce()(t,"The addonId parameter is required"),ce()(n,"The api parameter is required"),ce()(r,"The slug parameter is required"),ce()(o,"The userId parameter is required"),$t({auth:!0,endpoint:"accounts/account/".concat(o,"/collections/").concat(r,"/addons/").concat(t),method:"DELETE",apiState:n})},uH=function(e){var t=e.api,n=e.slug,r=e.userId;return ce()(t,"The api parameter is required"),ce()(n,"The slug parameter is required"),ce()(r,"The userId parameter is required"),$t({auth:!0,endpoint:"accounts/account/".concat(r,"/collections/").concat(n),method:"DELETE",apiState:t})};function cH(e){return(cH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sH(){sH=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==cH(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var lH=sH().mark(EH),fH=sH().mark(_H),pH=sH().mark(xH),dH=sH().mark(SH),hH=sH().mark(jH),yH=sH().mark(PH),mH=sH().mark(kH),vH=sH().mark(IH),gH=sH().mark(TH);function bH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bH(Object(n),!0).forEach((function(t){OH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EH(e){var t,n,r,o,i,a,u,c,s,l,f,p,d;return sH().wrap((function(h){for(;;)switch(h.prev=h.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.filters,o=t.slug,i=t.userId,a=RB(n),h.next=4,zU(a.createClearingAction());case 4:return h.prev=4,h.next=7,KU(CB);case 7:return u=h.sent,c={api:u.api,slug:o,userId:String(i)},s=wH({},c),l=wH(wH({},c),{},{filters:r}),h.next=13,GU({detail:YU(KB,s),addonsResponse:YU(QB,l)});case 13:return f=h.sent,p=f.detail,d=f.addonsResponse,h.next=18,zU(Ka({addonsResponse:d,detail:p}));case 18:h.next=27;break;case 20:return h.prev=20,h.t0=h.catch(4),L.Z.warn("Collection failed to load: ".concat(h.t0)),h.next=25,zU(a.createErrorAction(h.t0));case 25:return h.next=27,zU(eu());case 27:case"end":return h.stop()}}),lH,null,[[4,20]])}function _H(e){var t,n,r,o,i,a,u,c,s;return sH().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.filters,o=t.slug,i=t.userId,a=RB(n),l.next=4,zU(a.createClearingAction());case 4:return l.prev=4,l.next=7,KU(CB);case 7:return u=l.sent,c={api:u.api,filters:r,slug:o,userId:String(i)},l.next=11,YU(QB,c);case 11:return s=l.sent,l.next=14,zU(Qa({addonsResponse:s}));case 14:l.next=23;break;case 16:return l.prev=16,l.t0=l.catch(4),L.Z.warn("Collection page failed to load: ".concat(l.t0)),l.next=21,zU(a.createErrorAction(l.t0));case 21:return l.next=23,zU(eu());case 23:case"end":return l.stop()}}),fH,null,[[4,16]])}function xH(e){var t,n,r,o,i,a,u;return sH().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.userId,o=RB(n),c.next=4,zU(o.createClearingAction());case 4:return c.prev=4,c.next=7,KU(CB);case 7:return i=c.sent,a={api:i.api,userId:String(r)},c.next=11,YU(JB,a);case 11:return u=c.sent,c.next=14,zU(Xa({userId:r,collections:u}));case 14:c.next=23;break;case 16:return c.prev=16,c.t0=c.catch(4),L.Z.warn("Failed to fetch user collections: ".concat(c.t0)),c.next=21,zU(o.createErrorAction(c.t0));case 21:return c.next=23,zU(Ya({userId:r}));case 23:case"end":return c.stop()}}),pH,null,[[4,16]])}function SH(e){var t,n,r,o,i,a,u,c,s,l,f,p;return sH().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return t=e.payload,n=t.addonId,r=t.collectionId,o=t.editing,i=t.errorHandlerId,a=t.filters,u=t.notes,c=t.slug,s=t.userId,l=RB(i),d.next=4,zU(l.createClearingAction());case 4:return d.prev=4,d.next=7,KU(CB);case 7:return f=d.sent,p={addonId:n,api:f.api,slug:c,notes:u?OH({},f.api.lang,u):void 0,userId:String(s)},d.next=11,YU(oH,p);case 11:if(!o){d.next=15;break}return ce()(a,"A filters parameter is required when editing"),d.next=15,zU($a({errorHandlerId:l.id,filters:a,slug:c,userId:s}));case 15:return d.next=17,zU(Ja({addonId:n,userId:s,collectionId:r}));case 17:d.next=26;break;case 19:return d.prev=19,d.t0=d.catch(4),L.Z.warn("Failed to add add-on to collection: ".concat(d.t0)),d.next=24,zU(l.createErrorAction(d.t0));case 24:return d.next=26,zU(Za({addonId:n,userId:s}));case 26:case"end":return d.stop()}}),dH,null,[[4,19]])}function jH(e){var t,n,r,o,a,u,c,s,l,f,p,d,h,y,m,v,g,b,w,O,E,_,x,S;return sH().wrap((function(j){for(;;)switch(j.prev=j.next){case 0:return t=e.type,n=e.payload,r=t===La,o=n.defaultLocale,a=n.description,u=n.errorHandlerId,c=n.name,s=n.slug,l=n.userId,j.next=5,zU({type:Da,payload:null});case 5:return f=RB(u),j.next=8,zU(f.createClearingAction());case 8:return e.type===Aa&&(p=e.payload.collectionSlug,d=e.payload.filters),e.type===La&&(h=e.payload.includeAddonId),j.prev=10,j.next=13,KU(CB);case 13:if(y=j.sent,v={api:y.api,defaultLocale:o,description:a,userId:String(l)},!r){j.next=28;break}return ce()(c,"name cannot be empty when creating"),ce()(s,"slug cannot be empty when creating"),g=wH({name:c,slug:s},v),j.next=21,YU(nH,g);case 21:if(m=j.sent,!h){j.next=26;break}return b={addonId:h,api:y.api,slug:s,userId:String(l)},j.next=26,YU(oH,b);case 26:j.next=33;break;case 28:return ce()(p,"collectionSlug cannot be empty when updating"),w=wH({collectionSlug:p,name:c,slug:s},v),j.next=32,YU(tH,w);case 32:m=j.sent;case 33:if(O=y.api,E=O.lang,_=O.clientApp,x=m&&m.slug||s||p,ce()(x,"Both slug and collectionSlug cannot be empty"),S="/".concat(E,"/").concat(_,"/collections/").concat(l,"/").concat(x,"/edit/"),!r){j.next=46;break}if(ce()(m,"response is required when creating"),h){j.next=42;break}return j.next=42,zU(Ka({detail:m}));case 42:return j.next=44,zU((0,i.VF)(S));case 44:j.next=55;break;case 46:return ce()(d,"filters are required when updating"),j.next=49,zU((0,i.VF)({pathname:S,query:fu(d)}));case 49:if(x!==p){j.next=53;break}return j.next=53,zU(nu(x));case 53:return j.next=55,zU(ou());case 55:j.next=62;break;case 57:return j.prev=57,j.t0=j.catch(10),L.Z.warn("Failed to ".concat(t,": ").concat(j.t0)),j.next=62,zU(f.createErrorAction(j.t0));case 62:return j.prev=62,j.next=65,zU({type:Ma,payload:null});case 65:return j.finish(62);case 66:case"end":return j.stop()}}),hH,null,[[10,57,62,66]])}function PH(e){var t,n,r,o,i,a,u,c,s;return sH().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.payload,n=t.addonId,r=t.errorHandlerId,o=t.filters,i=t.slug,a=t.userId,u=RB(r),l.next=4,zU(u.createClearingAction());case 4:return l.prev=4,l.next=7,KU(CB);case 7:return c=l.sent,s={addonId:n,api:c.api,slug:i,userId:String(a)},l.next=11,YU(aH,s);case 11:return l.next=13,zU({type:Ua});case 13:return l.next=15,zU($a({errorHandlerId:u.id,filters:o,slug:i,userId:a}));case 15:l.next=22;break;case 17:return l.prev=17,l.t0=l.catch(4),L.Z.warn("Failed to remove add-on from collection: ".concat(l.t0)),l.next=22,zU(u.createErrorAction(l.t0));case 22:case"end":return l.stop()}}),yH,null,[[4,17]])}function kH(e){var t,n,r,o,a,u,c,s,l,f;return sH().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.slug,o=t.userId,a=RB(n),p.next=4,zU(a.createClearingAction());case 4:return p.prev=4,p.next=7,KU(CB);case 7:return u=p.sent,c=u.api,s=c.lang,l=c.clientApp,f={api:u.api,slug:r,userId:String(o)},p.next=12,YU(uH,f);case 12:return p.next=14,zU((0,i.VF)("/".concat(s,"/").concat(l,"/collections/")));case 14:return p.next=16,zU(nu(r));case 16:p.next=23;break;case 18:return p.prev=18,p.t0=p.catch(4),L.Z.warn("Failed to delete collection: ".concat(p.t0)),p.next=23,zU(a.createErrorAction(p.t0));case 23:case"end":return p.stop()}}),mH,null,[[4,18]])}function IH(e){var t,n,r,o,i,a,u,c,s,l;return sH().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return t=e.payload,n=t.addonId,r=t.errorHandlerId,o=t.filters,i=t.notes,a=t.slug,u=t.userId,c=RB(r),f.next=4,zU(c.createClearingAction());case 4:return f.prev=4,f.next=7,KU(CB);case 7:return s=f.sent,l={addonId:n,api:s.api,notes:i,slug:a,userId:String(u)},f.next=11,YU(iH,l);case 11:return f.next=13,zU($a({errorHandlerId:c.id,filters:o,slug:a,userId:u}));case 13:f.next=20;break;case 15:return f.prev=15,f.t0=f.catch(4),L.Z.warn("Failed to update add-on in collection: ".concat(f.t0)),f.next=20,zU(c.createErrorAction(f.t0));case 20:case"end":return f.stop()}}),vH,null,[[4,15]])}function TH(){return sH().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(Oa,SH);case 2:return e.next=4,IB([La,Aa],jH);case 4:return e.next=6,IB(Ba,kH);case 6:return e.next=8,IB(Ea,EH);case 8:return e.next=10,IB(Sa,_H);case 10:return e.next=12,IB(_a,xH);case 12:return e.next=14,IB(Fa,PH);case 14:return e.next=16,IB([qa,Ha],IH);case 16:case"end":return e.stop()}}),gH)}var RH=function(e){return $t({apiState:e.api,endpoint:"shelves"})};function CH(e){return(CH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function AH(){AH=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==CH(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var NH,LH=AH().mark(MH),DH=AH().mark(FH);function MH(e){var t,n,r,o,i,a,u,c;return AH().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.isDesktopSite,o=RB(n),s.next=4,zU(o.createClearingAction());case 4:return s.next=6,KU(CB);case 6:return i=s.sent,a={api:i.api,filters:{addonType:D.Gz,page_size:String(D.Fb),promoted:D.g$,sort:D.wn}},s.prev=8,u=null,s.prev=10,s.next=13,YU(RH,{api:i.api});case 13:u=s.sent,s.next=20;break;case 16:throw s.prev=16,s.t0=s.catch(10),L.Z.warn("Home shelves failed to load: ".concat(s.t0)),s.t0;case 20:if(!r){s.next=25;break}return s.next=23,zU(jl({homeShelves:u,shelves:{}}));case 23:s.next=37;break;case 25:return s.prev=25,s.next=28,YU(TB,a);case 28:c=s.sent,s.next=35;break;case 31:throw s.prev=31,s.t1=s.catch(25),L.Z.warn("Mobile homepage add-ons failed to load: ".concat(s.t1)),s.t1;case 35:return s.next=37,zU(jl({homeShelves:u,shelves:{recommendedExtensions:c}}));case 37:s.next=45;break;case 39:return s.prev=39,s.t2=s.catch(8),s.next=43,zU(o.createErrorAction(s.t2));case 43:return s.next=45,zU({type:El});case 45:case"end":return s.stop()}}),LH,null,[[8,39],[10,16],[25,31]])}function FH(){return AH().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(_l,MH);case 2:case"end":return e.stop()}}),DH)}function UH(e){return(UH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function BH(){BH=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==UH(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var HH=BH().mark(ZH),qH=BH().mark($H);function zH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return GH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GH(e,t)}(e,t)||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.")}()}function GH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WH(Object(n),!0).forEach((function(t){YH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZH(t){var n,r,o,i,a,u,c,s,l,f,p,d,h,y,m,v;return BH().wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return n=t.payload,r=n.addonType,o=n.category,i=n.errorHandlerId,a=RB(i),g.prev=2,g.next=5,KU(CB);case 5:return u=g.sent,c=u.api,s={addonType:r,page_size:D.Yd===r?String(D.Pn):String(D.Db),promoted:r===D.Gz?D.g$:void 0},o&&(s=VH(VH({},s),{},{category:o})),l={api:c,filters:VH(VH({},s),{},{promoted:D.g$,sort:D.wn,page:"1"})},f={api:c,filters:VH(VH({},s),{},{sort:D.kc,page:"1"})},p={api:c,filters:VH(VH({},s),{},{sort:D.Mj,page:"1"})},g.next=14,GU([YU(TB,l),YU(TB,f),YU(TB,p)]);case 14:return d=g.sent,h=zH(d,3),y=h[0],m=h[1],v=h[2],g.next=21,zU(Fl({addonType:r,recommended:y,highlyRated:m,trending:v}));case 21:g.next=28;break;case 23:return g.prev=23,g.t0=g.catch(2),L.Z.warn((0,e.f9)(NH||(b=["Failed to fetch landing page add-ons for\n addonType ",": ",""],(w=void 0)||(w=b.slice(0)),NH=Object.freeze(Object.defineProperties(b,{raw:{value:Object.freeze(w)}}))),r,g.t0)),g.next=28,zU(a.createErrorAction(g.t0));case 28:case"end":return g.stop()}var b,w}),HH,null,[[2,23]])}function $H(){return BH().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(Ll,ZH);case 2:case"end":return e.stop()}}),qH)}var KH=function(e){var t=e.api,n=e.guid,r=e.recommended;return ce()(n,"A guid is required."),ce()("boolean"==typeof r,"recommended is required"),$t({apiState:t,auth:!0,endpoint:"addons/recommendations/",params:{app:t.clientApp,guid:n,recommended:r}})};function QH(e){return(QH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function XH(){XH=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==QH(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var JH=XH().mark(tq),eq=XH().mark(nq);function tq(e){var t,n,r,o,i,a,u,c,s,l,f;return XH().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.guid,o=t.recommended,i=RB(n),p.next=4,zU(i.createClearingAction());case 4:return p.prev=4,ce()("boolean"==typeof o,"recommended is required"),p.next=8,KU(CB);case 8:return a=p.sent,u={api:a.api,guid:r,recommended:o},p.next=12,YU(KH,u);case 12:return c=p.sent,s=c.fallback_reason,l=c.outcome,f=c.results,p.next=16,zU(Yl({addons:f,fallbackReason:s,guid:r,outcome:l}));case 16:p.next=25;break;case 18:return p.prev=18,p.t0=p.catch(4),L.Z.warn("Failed to recommendations: ".concat(p.t0)),p.next=23,zU(i.createErrorAction(p.t0));case 23:return p.next=25,zU(Vl({guid:r}));case 25:case"end":return p.stop()}}),JH,null,[[4,18]])}function nq(){return XH().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(zl,tq);case 2:case"end":return e.stop()}}),eq)}var rq,oq=a(56325);function iq(e){return(iq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var aq=["addonId","score","apiState","versionId","body","reviewId"],uq=["apiState","user","addon"];function cq(){cq=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==iq(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function sq(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function lq(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function fq(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){lq(i,r,o,a,u,"next",e)}function u(e){lq(i,r,o,a,u,"throw",e)}a(void 0)}))}}function pq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pq(Object(n),!0).forEach((function(t){hq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yq(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mq(e){var t=e.addonId,n=e.score,r=e.apiState,o=e.versionId,i=e.body,a=e.reviewId,u=yq(e,aq);return new Promise((function(e){var c={addon:void 0,score:n,version:o,body:i},s="POST",l="ratings/rating";if(a)l="".concat(l,"/").concat(a),s="PATCH",c.version=void 0;else{if(!t)throw new Error("addonId is required when posting a new review");c.addon=t}e($t(dq({endpoint:l,body:c,method:s,auth:!0,apiState:r},u)))}))}var vq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiState,n=e.body,r=e.errorHandler,o=e.originalReviewId;return new Promise((function(e){var i="ratings/rating/".concat(o,"/reply/");e($t({auth:!0,body:{body:n},endpoint:i,errorHandler:r,method:"POST",apiState:t}))}))};function gq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiState,n=e.user,r=e.addon,o=yq(e,uq);return new Promise((function(e){if(!n&&!r)throw new Error("Either user or addon must be specified");e($t({auth:!0,endpoint:"ratings/rating",params:dq({user:n,addon:r},o),apiState:t}))}))}function bq(){return wq.apply(this,arguments)}function wq(){return(wq=fq(cq().mark((function t(){var n,r,o,i,a,u,c=arguments;return cq().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:{},r=n.apiState,o=n.user,i=n.addon,ce()(o,"The user parameter is required"),ce()(i,"The addon parameter is required"),t.next=5,gq({apiState:r,user:o,addon:i});case 5:if(a=t.sent,1!==(u=a.results).length){t.next=9;break}return t.abrupt("return",u[0]);case 9:if(0!==u.length){t.next=11;break}return t.abrupt("return",null);case 11:throw new Error((0,e.f9)(rq||(rq=sq(["Unexpectedly received multiple review objects:\n ",""])),u.map((function(e){return e.id}))));case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Oq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiState,n=e.errorHandler,r=e.note,o=e.reason,i=e.reviewId;return new Promise((function(e){if(!i)throw new Error("The reviewId parameter is required");if(!o)throw new Error("The reason parameter is required");if(o===D.eV&&!r)throw new Error("When reason is ".concat(o,", the note parameter is required"));e($t({auth:!0,body:{flag:o,note:r},endpoint:"ratings/rating/".concat(i,"/flag"),errorHandler:n,method:"POST",apiState:t}))}))},Eq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiState,n=e.errorHandler,r=e.reviewId;return ce()(r,"reviewId is required"),new Promise((function(e){e($t({auth:!0,endpoint:"ratings/rating/".concat(r,"/"),errorHandler:n,method:"DELETE",apiState:t}))}))},_q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiState,n=e.reviewId;return ce()(n,"reviewId is required"),new Promise((function(e){e($t({auth:!0,endpoint:"ratings/rating/".concat(n,"/"),method:"GET",apiState:t}))}))};function xq(e){return(xq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sq(Object(n),!0).forEach((function(t){Pq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kq(){kq=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==xq(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var Iq=kq().mark(Uq),Tq=kq().mark(Bq),Rq=kq().mark(Hq),Cq=kq().mark(qq),Aq=kq().mark(zq),Nq=kq().mark(Gq),Lq=kq().mark(Wq),Dq=kq().mark(Vq),Mq=kq().mark(Yq),Fq=kq().mark(Zq);function Uq(e){var t,n,r,o,i,a,u,c,s;return kq().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.addonSlug,o=t.page,i=t.score,a=RB(n),l.prev=2,l.next=5,zU(a.createClearingAction());case 5:return l.next=7,KU(CB);case 7:return u=l.sent,c={addon:r,apiState:u.api,page:o,score:i||void 0},l.next=11,YU(gq,c);case 11:return s=l.sent,l.next=14,zU(xi({addonSlug:r,page:o||"1",pageSize:s.page_size,reviewCount:s.count,reviews:s.results,score:i}));case 14:l.next=21;break;case 16:return l.prev=16,l.t0=l.catch(2),L.Z.warn("Failed to load reviews for add-on slug ".concat(r,": ").concat(l.t0)),l.next=21,zU(a.createErrorAction(l.t0));case 21:case"end":return l.stop()}}),Iq,null,[[2,16]])}function Bq(e){var t,n,r,o,i,a,u,c;return kq().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.addonId,o=t.userId,i=RB(n),s.prev=2,s.next=5,zU(i.createClearingAction());case 5:return s.next=7,KU(CB);case 7:return a=s.sent,u={addon:r,apiState:a.api,show_permissions_for:o},s.next=11,YU(gq,u);case 11:return c=s.sent,ce()(void 0!==c.can_reply,"response.can_reply was unexpectedly undefined"),s.next=15,zU(wi({addonId:r,canReplyToReviews:c.can_reply,userId:o}));case 15:s.next=22;break;case 17:return s.prev=17,s.t0=s.catch(2),L.Z.warn("Failed to load review permissions for add-on ID ".concat(r,", user ID ").concat(o,": ").concat(s.t0)),s.next=22,zU(i.createErrorAction(s.t0));case 22:case"end":return s.stop()}}),Tq,null,[[2,17]])}function Hq(e){var t,n,r,o,i,a,u,c;return kq().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.page,o=t.userId,i=RB(n),s.prev=2,s.next=5,KU(CB);case 5:return a=s.sent,u={apiState:a.api,page:r,user:o},s.next=9,YU(gq,u);case 9:return c=s.sent,s.next=12,zU(_i({pageSize:c.page_size,reviewCount:c.count,reviews:c.results,userId:o}));case 12:s.next=19;break;case 14:return s.prev=14,s.t0=s.catch(2),L.Z.warn("Failed to load reviews for user ID ".concat(o,": ").concat(s.t0)),s.next=19,zU(i.createErrorAction(s.t0));case 19:case"end":return s.stop()}}),Rq,null,[[2,14]])}function qq(e){var t,n,r,o,i,a,u,c;return kq().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.originalReviewId,o=t.body,i=t.title,a=RB(n),s.next=4,zU(a.createClearingAction());case 4:return s.prev=4,s.next=7,KU(CB);case 7:return u=s.sent,s.next=10,YU(vq,{apiState:u.api,body:o,originalReviewId:r,title:i});case 10:return c=s.sent,s.next=13,zU(bi({originalReviewId:r,reply:c}));case 13:return s.next=15,zU(Ti({reviewId:r}));case 15:s.next=22;break;case 17:return s.prev=17,s.t0=s.catch(4),L.Z.warn("Failed to send reply to review ID ".concat(r,": ").concat(s.t0)),s.next=22,zU(a.createErrorAction(s.t0));case 22:case"end":return s.stop()}}),Cq,null,[[4,17]])}function zq(e){var t,n,r,o,i,a,u;return kq().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.note,o=t.reason,i=t.reviewId,a=RB(n),c.next=4,zU(a.createClearingAction());case 4:return c.prev=4,c.next=7,KU(CB);case 7:return u=c.sent,c.next=10,YU(Oq,{apiState:u.api,note:r,reason:o,reviewId:i});case 10:return c.next=12,zU(Ci({reason:o,reviewId:i}));case 12:c.next=19;break;case 14:return c.prev=14,c.t0=c.catch(4),L.Z.warn("Failed to flag review ID ".concat(i,": ").concat(c.t0)),c.next=19,zU(a.createErrorAction(c.t0));case 19:case"end":return c.stop()}}),Aq,null,[[4,14]])}function Gq(e){var t,n,r,o,i,a,u,c,s,l,f,p,d,h,y,m,v=arguments;return kq().wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return t=v.length>1&&void 0!==v[1]?v[1]:{},n=t._delay,r=void 0===n?oq.gw:n,o=e.payload,i=o.body,a=o.errorHandlerId,u=o.score,c=RB(a),s=!!u,l=!!i,g.next=7,zU(c.createClearingAction());case 7:if(!s){g.next=10;break}return g.next=10,zU(Hi(Ui));case 10:if(!l){g.next=13;break}return g.next=13,zU(Hi(Bi));case 13:return g.prev=13,g.next=16,KU(CB);case 16:return f=g.sent,p={apiState:f.api,body:i,score:u},e.type===zo?d=jq(jq({},p),{},{addonId:e.payload.addonId,versionId:e.payload.versionId}):e.type===fi&&(d=jq(jq({},p),{},{reviewId:e.payload.reviewId}),h=Cp(f.reviews,e.payload.reviewId),ce()(h,"review with ID=".concat(e.payload.reviewId," does not exist in state"))),ce()(d,"params was unexpectedly empty; action.type: ".concat(e.type)),y=d,g.next=23,YU(mq,y);case 23:return m=g.sent,g.next=26,zU(gi(m));case 26:if(!s){g.next=29;break}return g.next=29,zU(Hi(Mi));case 29:if(!l){g.next=34;break}return g.next=32,zU(Hi(Fi));case 32:return g.next=34,zU(Ii({reviewId:m.id}));case 34:if(m.is_developer_reply){g.next=39;break}return g.next=37,zU(Ai({addonId:m.addon.id,review:m,userId:m.user.id}));case 37:return g.next=39,zU(Oi({addonId:m.addon.id,oldReview:h,newReview:vi(m)}));case 39:return g.next=41,r(2e3);case 41:return g.next=43,zU(qi());case 43:g.next=52;break;case 45:return g.prev=45,g.t0=g.catch(13),L.Z.warn("Failed to create/update review with action ".concat(e.type,": ").concat(g.t0)),g.next=50,zU(c.createErrorAction(g.t0));case 50:return g.next=52,zU(Hi(Di));case 52:case"end":return g.stop()}}),Nq,null,[[13,45]])}function Wq(e){var t,n,r,o,i,a,u;return kq().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n=t.addonId,r=t.errorHandlerId,o=t.isReplyToReviewId,i=t.reviewId,a=RB(r),c.next=4,zU(a.createClearingAction());case 4:return c.prev=4,c.next=7,KU(CB);case 7:return u=c.sent,c.next=10,YU(Eq,{apiState:u.api,reviewId:i});case 10:return c.next=12,zU(Vi({addonId:n,reviewId:i}));case 12:if(!o){c.next=15;break}return c.next=15,zU(Vi({addonId:n,reviewId:o}));case 15:c.next=22;break;case 17:return c.prev=17,c.t0=c.catch(4),L.Z.warn("Failed to delete review ID ".concat(i,": ").concat(c.t0)),c.next=22,zU(a.createErrorAction(c.t0));case 22:case"end":return c.stop()}}),Lq,null,[[4,17]])}function Vq(e){var t,n,r,o,i,a,u,c,s;return kq().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.payload,n=t.addonId,r=t.errorHandlerId,o=t.userId,i=RB(r),l.next=4,zU(i.createClearingAction());case 4:return l.prev=4,l.next=7,KU(CB);case 7:return a=l.sent,u={addon:n,apiState:a.api,user:o},l.next=11,YU(bq,u);case 11:if(c=l.sent,s=function(e){return Ai({userId:o,addonId:n,review:e})},!c){l.next=20;break}return l.next=16,zU(gi(c));case 16:return l.next=18,zU(s(c));case 18:l.next=23;break;case 20:return L.Z.debug("No saved review found for userId ".concat(o,", addonId ").concat(n)),l.next=23,zU(s(null));case 23:l.next=30;break;case 25:return l.prev=25,l.t0=l.catch(4),L.Z.warn('Failed to fetchLatestUserReview for addonId "'.concat(n,'", userId "').concat(o,'": ').concat(l.t0)),l.next=30,zU(i.createErrorAction(l.t0));case 30:case"end":return l.stop()}}),Dq,null,[[4,25]])}function Yq(e){var t,n,r,o,i,a,u;return kq().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.reviewId,o=RB(n),c.next=4,zU(o.createClearingAction());case 4:return c.prev=4,c.next=7,KU(CB);case 7:return i=c.sent,a={apiState:i.api,reviewId:r},c.next=11,YU(_q,a);case 11:return u=c.sent,c.next=14,zU(gi(u));case 14:c.next=21;break;case 16:return c.prev=16,c.t0=c.catch(4),L.Z.warn("Failed to get review ID ".concat(r,": ").concat(c.t0)),c.next=21,zU(o.createErrorAction(c.t0));case 21:case"end":return c.stop()}}),Mq,null,[[4,16]])}function Zq(e){return kq().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,IB($o,Vq);case 2:return t.next=4,IB(Vo,Yq);case 4:return t.next=6,IB(Yo,Bq);case 6:return t.next=8,IB(Zo,Uq);case 8:return t.next=10,IB(Ko,Hq);case 10:return t.next=12,IB(si,qq);case 12:return t.next=14,IB(li,zq);case 14:return t.next=16,IB(zo,(function(t){return Gq(t,e)}));case 16:return t.next=18,IB(fi,(function(t){return Gq(t,e)}));case 18:return t.next=20,IB(pi,Wq);case 20:case"end":return t.stop()}}),Fq)}function $q(e){var t=e.addonSlug,n=e.api;return $t({auth:!0,endpoint:"abuse/report/addon",method:"POST",body:{addon:t,message:e.message},apiState:n})}function Kq(e){var t=e.api;return $t({auth:!0,endpoint:"abuse/report/user",method:"POST",body:{message:e.message,user:e.userId.toString()},apiState:t})}function Qq(e){return(Qq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xq(){Xq=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Qq(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var Jq=Xq().mark(nz),ez=Xq().mark(rz),tz=Xq().mark(oz);function nz(e){var t,n,r,o,i,a,u,c;return Xq().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.addonSlug,r=t.errorHandlerId,o=t.message,i=RB(r),s.next=4,zU(i.createClearingAction());case 4:return s.prev=4,s.next=7,KU(CB);case 7:return a=s.sent,u={addonSlug:n,api:a.api,message:o},s.next=11,YU($q,u);case 11:return c=s.sent,s.next=14,zU(wP({addon:c.addon,message:c.message,reporter:c.reporter}));case 14:s.next=21;break;case 16:return s.prev=16,s.t0=s.catch(4),L.Z.warn("Reporting add-on for abuse failed: ".concat(s.t0)),s.next=21,zU(i.createErrorAction(s.t0));case 21:case"end":return s.stop()}}),Jq,null,[[4,16]])}function rz(e){var t;return Xq().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload.addon,n.prev=1,n.next=4,(0,bv.reportAbuse)(t.guid);case 4:if(!n.sent){n.next=8;break}return n.next=8,zU(wP({addon:{guid:t.guid,id:t.id,slug:t.slug},message:null,reporter:null}));case 8:n.next=13;break;case 10:n.prev=10,n.t0=n.catch(1),L.Z.warn("Reporting add-on for abuse via firefox failed: ".concat(n.t0));case 13:return n.next=15,zU({type:vP});case 15:case"end":return n.stop()}}),ez,null,[[1,10]])}function oz(){return Xq().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(mP,rz);case 2:return e.next=4,IB(hP,nz);case 4:case"end":return e.stop()}}),tz)}var iz=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.slug;return ce()(n,"slug is required"),$t({apiState:t,auth:!0,endpoint:"addons/addon/".concat(n,"/eula_policy/")})};function az(e){return(az="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uz(){uz=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==az(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var cz=uz().mark(fz),sz=uz().mark(pz),lz=uz().mark(dz);function fz(e){var t,n,r,o,i,a,u,c;return uz().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.showGroupedRatings,o=t.slug,i=RB(n),s.next=4,zU(i.createClearingAction());case 4:return s.prev=4,s.next=7,KU(CB);case 7:return a=s.sent,u={api:a.api,showGroupedRatings:r,slug:o},s.next=11,YU(Kt,u);case 11:return c=s.sent,s.next=14,zU(ra({addon:c,slug:o}));case 14:s.next=21;break;case 16:return s.prev=16,s.t0=s.catch(4),L.Z.warn("Failed to load add-on with slug ".concat(o,": ").concat(s.t0)),s.next=21,zU(i.createErrorAction(s.t0));case 21:case"end":return s.stop()}}),cz,null,[[4,16]])}function pz(e){var t,n,r,o,i,a,u;return uz().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.slug,o=RB(n),c.next=4,zU(o.createClearingAction());case 4:return c.prev=4,c.next=7,KU(CB);case 7:return i=c.sent,a={api:i.api,slug:r},c.next=11,YU(iz,a);case 11:return u=c.sent,c.next=14,zU(oa({slug:r,info:u}));case 14:c.next=21;break;case 16:return c.prev=16,c.t0=c.catch(4),L.Z.warn("Failed to fetch add-on info: ".concat(c.t0)),c.next=21,zU(o.createErrorAction(c.t0));case 21:case"end":return c.stop()}}),sz,null,[[4,16]])}function dz(){return uz().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kB(Ji,fz);case 2:return e.next=4,IB(Qi,pz);case 4:case"end":return e.stop()}}),lz)}function hz(e){return $t({endpoint:"addons/categories",apiState:e.api})}function yz(e){return(yz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mz(){mz=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==yz(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var vz=mz().mark(bz),gz=mz().mark(wz);function bz(e){var t,n,r,o,i;return mz().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload.errorHandlerId,n=RB(t),a.prev=2,a.next=5,KU(CB);case 5:return r=a.sent,o={api:r.api},a.next=9,YU(hz,o);case 9:return i=a.sent,a.next=12,zU(th({results:i}));case 12:a.next=19;break;case 14:return a.prev=14,a.t0=a.catch(2),L.Z.warn("Categories failed to load: ".concat(a.t0)),a.next=19,zU(n.createErrorAction(a.t0));case 19:case"end":return a.stop()}}),vz,null,[[2,14]])}function wz(){return mz().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kB(Qd,bz);case 2:case"end":return e.stop()}}),gz)}function Oz(e){return(Oz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ez(){Ez=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Oz(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var _z=Ez().mark(Sz),xz=Ez().mark(jz);function Sz(e){var t,n,r,o,i,a,u,c,s,l;return Ez().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return t=e.payload,n=t.errorHandlerId,r=RB(n),f.next=5,zU(r.createClearingAction());case 5:return f.prev=5,o=t.filters,f.next=9,KU(CB);case 9:return i=f.sent,a={api:i.api,auth:!0,filters:o},f.next=13,YU(TB,a);case 13:return u=f.sent,c=u.count,s=u.page_size,l=u.results,f.next=17,zU(rf({count:c,pageSize:s,results:l}));case 17:f.next=26;break;case 19:return f.prev=19,f.t0=f.catch(5),L.Z.warn("Search results failed to load: ".concat(f.t0)),f.next=24,zU(r.createErrorAction(f.t0));case 24:return f.next=26,zU({type:ef});case 26:case"end":return f.stop()}}),_z,null,[[5,19]])}function jz(){return Ez().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(Xl,Sz);case 2:case"end":return e.stop()}}),xz)}var Pz=function(e){var t=e.api;return ce()(t,"api state is required."),$t({endpoint:"site",apiState:t})};function kz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kz(Object(n),!0).forEach((function(t){Tz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rz="FETCH_SITE_STATUS",Cz="LOAD_SITE_STATUS",Az="LOADED_PAGE_IS_ANONYMOUS",Nz={readOnly:!1,notice:null,loadedPageIsAnonymous:!1},Lz=function(e){var t=e.readOnly,n=e.notice;return{type:Cz,payload:{readOnly:t,notice:n}}};function Dz(e){return(Dz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mz(){Mz=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Dz(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var Fz=Mz().mark(Bz),Uz=Mz().mark(Hz);function Bz(){var e,t,n,r,o;return Mz().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,KU(CB);case 2:return e=i.sent,t={api:e.api},i.prev=4,i.next=7,YU(Pz,t);case 7:return n=i.sent,r=n.read_only,o=n.notice,i.next=12,zU(Lz({readOnly:r,notice:o}));case 12:i.next=17;break;case 14:i.prev=14,i.t0=i.catch(4),L.Z.error("Could not fetch site status: ".concat(i.t0));case 17:case"end":return i.stop()}}),Fz,null,[[4,14]])}function Hz(){return Mz().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(Rz,Bz);case 2:case"end":return e.stop()}}),Uz)}function qz(e){return(qz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zz(){zz=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==qz(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var Gz=zz().mark(Vz),Wz=zz().mark(Yz);function Vz(e){var t,n,r,o,i,a,u,c;return zz().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.errorHandlerId,r=RB(n),s.next=5,zU(r.createClearingAction());case 5:return s.prev=5,o=t.filters,s.next=9,KU(CB);case 9:return i=s.sent,a={api:i.api,filters:o},s.next=13,YU(Xt,a);case 13:return u=s.sent,c=u.results,s.next=17,zU(pb({results:c}));case 17:s.next=24;break;case 19:return s.prev=19,s.t0=s.catch(5),L.Z.warn("Autcomplete results failed to load: ".concat(s.t0)),s.next=24,zU(r.createErrorAction(s.t0));case 24:case"end":return s.stop()}}),Gz,null,[[5,19]])}function Yz(){return zz().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(cb,zz().mark((function e(){var t,n,r,o=arguments;return zz().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];return e.next=3,WU({fetch:YU.apply(void 0,[Vz].concat(n)),cancel:qU(sb)});case 3:case"end":return e.stop()}}),e)})));case 2:case"end":return e.stop()}}),Wz)}function Zz(e){var t=e.api;return $t({auth:!0,endpoint:"addons/language-tools",method:"GET",params:{app:t.clientApp},apiState:t})}function $z(e){return($z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kz(){Kz=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==$z(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var Qz=Kz().mark(Jz),Xz=Kz().mark(eG);function Jz(e){var t,n,r,o,i;return Kz().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload.errorHandlerId,n=RB(t),a.next=4,zU(n.createClearingAction());case 4:return a.prev=4,a.next=7,KU(CB);case 7:return r=a.sent,o={api:r.api},a.next=11,YU(Zz,o);case 11:return i=a.sent,a.next=14,zU(nN({languageTools:i.results}));case 14:a.next=21;break;case 16:return a.prev=16,a.t0=a.catch(4),L.Z.warn("Loading Language tools failed: ".concat(a.t0)),a.next=21,zU(n.createErrorAction(a.t0));case 21:case"end":return a.stop()}}),Qz,null,[[4,16]])}function eG(){return Kz().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(JA,Jz);case 2:case"end":return e.stop()}}),Xz)}function tG(e){return(tG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nG(){nG=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==tG(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var rG=nG().mark(iG),oG=nG().mark(aG);function iG(e){var t,n,r,o,i,a,u,c;return nG().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.message,o=t.userId,i=RB(n),s.next=4,zU(i.createClearingAction());case 4:return s.prev=4,s.next=7,KU(CB);case 7:return a=s.sent,u={api:a.api,message:r,userId:o},s.next=11,YU(Kq,u);case 11:return c=s.sent,s.next=14,zU(tL({message:c.message,reporter:c.reporter,userId:o}));case 14:s.next=23;break;case 16:return s.prev=16,s.t0=s.catch(4),L.Z.warn("Reporting user for abuse failed: ".concat(s.t0)),s.next=21,zU(i.createErrorAction(s.t0));case 21:return s.next=23,zU(JN({userId:o}));case 23:case"end":return s.stop()}}),rG,null,[[4,16]])}function aG(){return nG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(QN,iG);case 2:case"end":return e.stop()}}),oG)}var uG=["api","picture","userId"];function cG(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sG(e){var t=e.api;return ce()(t,"api state is required."),$t({auth:!0,endpoint:"accounts/profile",apiState:t})}function lG(e){var t=e.api,n=e.picture,r=e.userId,o=cG(e,uG);ce()(t,"api state is required."),ce()(r,"userId is required.");var i=o;if(n){var a=new(he());Object.keys(o).forEach((function(e){var t=o[e];a.set(e,null===t?"":t)})),a.set("picture_upload",n),i=a}return $t({auth:!0,body:i,endpoint:"accounts/account/".concat(r),method:"PATCH",apiState:t})}function fG(e){var t=e.api,n=e.userId;return ce()(t,"api state is required."),ce()(n,"userId is required."),$t({auth:!0,endpoint:"accounts/account/".concat(n),apiState:t})}function pG(e){var t=e.api,n=e.userId;return ce()(t,"api state is required."),ce()(n,"userId is required."),$t({auth:!0,endpoint:"accounts/account/".concat(n,"/notifications"),apiState:t})}function dG(e){var t=e.api,n=e.notifications,r=e.userId;return ce()(t,"api state is required."),ce()(r,"userId is required."),ce()(n,"notifications are required."),$t({auth:!0,body:n,endpoint:"accounts/account/".concat(r,"/notifications"),method:"POST",apiState:t})}function hG(e){var t=e.api,n=e.userId;return ce()(t,"api state is required."),ce()(n,"userId is required."),$t({auth:!0,endpoint:"accounts/account/".concat(n,"/picture"),method:"DELETE",apiState:t})}function yG(e){var t=e.api,n=e.userId;return ce()(t,"api state is required."),ce()(n,"userId is required."),$t({auth:!0,credentials:!0,endpoint:"accounts/account/".concat(n),method:"DELETE",apiState:t})}function mG(e){return $t({auth:!1,apiState:e.api,endpoint:"accounts/unsubscribe",method:"POST",body:{hash:e.hash,notification:e.notification,token:e.token}})}function vG(e){return(vG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gG(){gG=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==vG(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var bG=gG().mark(TG),wG=gG().mark(RG),OG=gG().mark(CG),EG=gG().mark(AG),_G=gG().mark(NG),xG=gG().mark(LG),SG=gG().mark(DG),jG=gG().mark(MG);function PG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PG(Object(n),!0).forEach((function(t){IG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TG(e){var t,n,r,o,i,a,u,c;return gG().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.token,s.next=4,KU(CB);case 4:return r=s.sent,o={api:kG(kG({},r.api),{},{token:n})},s.prev=6,s.next=9,YU(sG,o);case 9:return i=s.sent,s.next=12,zU(We({user:i}));case 12:return a=i.site_status,u=a.read_only,c=a.notice,s.next=15,zU(Lz({readOnly:u,notice:c}));case 15:s.next=26;break;case 17:if(s.prev=17,s.t0=s.catch(6),!s.t0.response||!s.t0.response.status||401!==s.t0.response.status){s.next=25;break}return L.Z.warn("Could not load user profile: ".concat(s.t0,", logging out user")),s.next=23,zU(Ze());case 23:s.next=26;break;case 25:throw s.t0;case 26:case"end":return s.stop()}}),bG,null,[[6,17]])}function RG(e){var t,n,r,o,i,a,u,c,s,l,f,p,d,h;return gG().wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.notifications,o=t.picture,i=t.pictureData,a=t.userFields,u=t.userId,c=RB(n),y.next=4,zU(c.createClearingAction());case 4:return y.prev=4,y.next=7,KU(CB);case 7:return s=y.sent,l=kG({api:s.api,picture:o,userId:u},a),y.next=11,YU(lG,l);case 11:return f=y.sent,o&&(f.picture_url=i),y.next=15,zU(Ve({user:f}));case 15:if(!Object.keys(r).length){y.next=23;break}return p={api:s.api,notifications:r,userId:u},y.next=19,YU(dG,p);case 19:return d=y.sent,void 0!==r.announcements&&-1!==(h=d.findIndex((function(e){return"announcements"===e.name})))&&(d[h].enabled=r.announcements,L.Z.debug('Optimistically set user value for "announcements" notification')),y.next=23,zU(Ke({notifications:d,userId:f.id}));case 23:y.next=30;break;case 25:return y.prev=25,y.t0=y.catch(4),L.Z.warn("Could not update user account: ".concat(y.t0)),y.next=30,zU(c.createErrorAction(y.t0));case 30:return y.prev=30,y.next=33,zU({type:Ie,payload:{}});case 33:return y.finish(30);case 34:case"end":return y.stop()}}),wG,null,[[4,25,30,34]])}function CG(e){var t,n,r,o,i,a,u;return gG().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.userId,o=RB(n),c.next=4,zU(o.createClearingAction());case 4:return c.prev=4,c.next=7,KU(CB);case 7:return i=c.sent,a={api:i.api,userId:r},c.next=11,YU(fG,a);case 11:return u=c.sent,c.next=14,zU(Ve({user:u}));case 14:c.next=21;break;case 16:return c.prev=16,c.t0=c.catch(4),L.Z.warn("User account failed to load: ".concat(c.t0)),c.next=21,zU(o.createErrorAction(c.t0));case 21:case"end":return c.stop()}}),OG,null,[[4,16]])}function AG(e){var t,n,r,o,i,a,u;return gG().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.userId,o=RB(n),c.next=4,zU(o.createClearingAction());case 4:return c.prev=4,c.next=7,KU(CB);case 7:return i=c.sent,a={api:i.api,userId:r},c.next=11,YU(pG,a);case 11:return u=c.sent,c.next=14,zU(Ke({notifications:u,userId:r}));case 14:c.next=21;break;case 16:return c.prev=16,c.t0=c.catch(4),L.Z.warn("User notifications failed to load: ".concat(c.t0)),c.next=21,zU(o.createErrorAction(c.t0));case 21:case"end":return c.stop()}}),EG,null,[[4,16]])}function NG(e){var t,n,r,o,i,a,u;return gG().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.userId,o=RB(n),c.next=4,zU(o.createClearingAction());case 4:return c.prev=4,c.next=7,KU(CB);case 7:return i=c.sent,a={api:i.api,userId:r},c.next=11,YU(hG,a);case 11:return u=c.sent,c.next=14,zU(Ve({user:u}));case 14:c.next=21;break;case 16:return c.prev=16,c.t0=c.catch(4),L.Z.warn("Could not delete user picture: ".concat(c.t0)),c.next=21,zU(o.createErrorAction(c.t0));case 21:case"end":return c.stop()}}),_G,null,[[4,16]])}function LG(e){var t,n,r,o,i,a;return gG().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.userId,o=RB(n),u.next=4,zU(o.createClearingAction());case 4:return u.prev=4,u.next=7,KU(CB);case 7:return i=u.sent,a={api:i.api,userId:r},u.next=11,YU(yG,a);case 11:return u.next=13,zU(Ye({userId:r}));case 13:u.next=20;break;case 15:return u.prev=15,u.t0=u.catch(4),L.Z.warn("Could not delete user account: ".concat(u.t0)),u.next=20,zU(o.createErrorAction(u.t0));case 20:case"end":return u.stop()}}),xG,null,[[4,15]])}function DG(e){var t,n,r,o,i,a,u,c;return gG().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.hash,o=t.token,i=t.notification,a=RB(n),s.next=4,zU(a.createClearingAction());case 4:return s.prev=4,s.next=7,KU(CB);case 7:return u=s.sent,c={api:u.api,hash:r,notification:i,token:o},s.next=11,YU(mG,c);case 11:return s.next=13,zU(rt({hash:r,notification:i,token:o}));case 13:s.next=22;break;case 15:return s.prev=15,s.t0=s.catch(4),L.Z.warn("Could not unsubscribe from ".concat(i," notification: ").concat(s.t0)),s.next=20,zU(a.createErrorAction(s.t0));case 20:return s.next=22,zU(ot({hash:r,notification:i,token:o}));case 22:case"end":return s.stop()}}),SG,null,[[4,15]])}function MG(){return gG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(Fe,LG);case 2:return e.next=4,IB(Le,NG);case 4:return e.next=6,IB(Ae,CG);case 6:return e.next=8,IB(De,AG);case 8:return e.next=10,IB(ft,TG);case 10:return e.next=12,IB(Be,DG);case 12:return e.next=14,IB(Te,RG);case 14:case"end":return e.stop()}}),jG)}var FG=["api","slug"];function UG(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var BG=function(e){var t=e.api,n=e.slug,r=e.versionId;return ce()(n,"slug is required"),ce()(r,"versionId is required"),$t({apiState:t,auth:!0,endpoint:"addons/addon/".concat(n,"/versions/").concat(r,"/")})},HG=function(e){var t=e.api,n=e.slug,r=UG(e,FG);return ce()(n,"slug is required"),$t({apiState:t,auth:!0,endpoint:"addons/addon/".concat(n,"/versions/"),params:r})};function qG(e){return(qG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zG(){zG=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==qG(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var GG=zG().mark(YG),WG=zG().mark(ZG),VG=zG().mark($G);function YG(e){var t,n,r,o,i,a,u,c;return zG().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.slug,o=t.versionId,i=RB(n),s.next=4,zU(i.createClearingAction());case 4:return s.prev=4,s.next=7,KU(CB);case 7:return a=s.sent,u={api:a.api,slug:r,versionId:o},s.next=11,YU(BG,u);case 11:return c=s.sent,s.next=14,zU(yf({slug:r,versions:[c]}));case 14:s.next=21;break;case 16:return s.prev=16,s.t0=s.catch(4),L.Z.warn("Failed to fetch version: ".concat(s.t0)),s.next=21,zU(i.createErrorAction(s.t0));case 21:case"end":return s.stop()}}),GG,null,[[4,16]])}function ZG(e){var t,n,r,o,i,a,u,c;return zG().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload,n=t.errorHandlerId,r=t.page,o=t.slug,i=RB(n),s.next=4,zU(i.createClearingAction());case 4:return s.prev=4,s.next=7,KU(CB);case 7:return a=s.sent,u={api:a.api,page:r,slug:o},s.next=11,YU(HG,u);case 11:return c=s.sent,s.next=14,zU(yf({slug:o,versions:c.results}));case 14:s.next=21;break;case 16:return s.prev=16,s.t0=s.catch(4),L.Z.warn("Failed to fetch versions: ".concat(s.t0)),s.next=21,zU(i.createErrorAction(s.t0));case 21:case"end":return s.stop()}}),WG,null,[[4,16]])}function $G(){return zG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IB(lf,YG);case 2:return e.next=4,IB(ff,ZG);case 4:case"end":return e.stop()}}),VG)}function KG(e){return(KG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function QG(){QG=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};u(h,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&n.call(m,o)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==KG(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,u(v,"constructor",d),u(d,"constructor",p),p.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),u(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var XG=QG().mark(JG);function JG(){return QG().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GU([ZU(oz),ZU(dz),ZU(FB),ZU(Yz),ZU(WB),ZU(wz),ZU(TH),ZU(FH),ZU($H),ZU(eG),ZU(nq),ZU(Zq),ZU(jz),ZU(Hz),ZU(aG),ZU(MG),ZU($G)]);case 2:case"end":return e.stop()}}),XG)}var eW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function nW(e,t){for(var n in t){var r=t[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r)}return e}var rW="proc first argument (Saga function result) must be an iterator",oW={toString:function(){return"@@redux-saga/CHANNEL_END"}},iW={toString:function(){return"@@redux-saga/TASK_CANCEL"}},aW=function(){return rU},uW=function(e){return"symbol"===(void 0===e?"undefined":tW(e))?function(t){return t.type===e}:function(t){return t.type===String(e)}},cW=function(e){return function(t){return e.some((function(e){return lW(e)(t)}))}},sW=function(e){return function(t){return e(t)}};function lW(e){return("*"===e?aW:sU.array(e)?cW:sU.stringableFunc(e)?uW:sU.func(e)?sW:uW)(e)}function fW(e,t,n){var r=[],o=void 0,i=!1;function a(e){c(),n(e,!0)}function u(e){r.push(e),e.cont=function(u,c){i||(fU(r,e),e.cont=oU,c?a(u):(e===t&&(o=u),r.length||(i=!0,n(o))))}}function c(){i||(i=!0,r.forEach((function(e){e.cont=oU,e.cancel()})),r=[])}return u(t),{addTask:u,cancelAll:c,abort:a,getTasks:function(){return r},taskNames:function(){return r.map((function(e){return e.name}))}}}function pW(e){var t=e.context,n=e.fn,r=e.args;if(sU.iterator(n))return n;var o,i,a=void 0,u=void 0;try{a=n.apply(t,r)}catch(e){u=e}return sU.iterator(a)?a:gU(u?function(){throw u}:(o=void 0,i={done:!1,value:a},function(e){return o?{done:!0,value:e}:(o=!0,i)}))}var dW=function(e){return{fn:e}};function hW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return oU},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oU,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:oU,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"anonymous",c=arguments[8];aU(e,sU.iterator,rW);var s="[...effects]",l=wU(L,OU(s,"all("+s+")")),f=i.sagaMonitor,p=i.logger,d=i.onError,h=p||bU,y=function(e){var t=e.sagaStack;!t&&e.stack&&(t=-1!==e.stack.split("\n")[0].indexOf(e.message)?e.stack:"Error: "+e.message+"\n"+e.stack),h("error","uncaught at "+u,t||e.message||e)},m=xB(t),v=Object.create(o);_.cancel=oU;var g=z(a,u,e,c),b={name:u,cancel:O,isRunning:!0},w=fW(0,b,x);function O(){b.isRunning&&!b.isCancelled&&(b.isCancelled=!0,_(iW))}function E(){e._isRunning&&!e._isCancelled&&(e._isCancelled=!0,w.cancelAll(),x(iW))}return c&&(c.cancel=E),e._isRunning=!0,_(),g;function _(t,n){if(!b.isRunning)throw new Error("Trying to resume an already finished generator");try{var r=void 0;n?r=e.throw(t):t===iW?(b.isCancelled=!0,_.cancel(),r=sU.func(e.return)?e.return(iW):{done:!0,value:iW}):r=t===oW?sU.func(e.return)?e.return():{done:!0}:e.next(t),r.done?(b.isMainRunning=!1,b.cont&&b.cont(r.value)):S(r.value,a,"",_)}catch(e){b.isCancelled&&y(e),b.isMainRunning=!1,b.cont(e,!0)}}function x(t,n){e._isRunning=!1,m.close(),n?(t instanceof Error&&Object.defineProperty(t,"sagaStack",{value:"at "+u+" \n "+(t.sagaStack||t.stack),configurable:!0}),g.cont||(t instanceof Error&&d?d(t):y(t)),e._error=t,e._isAborted=!0,e._deferredEnd&&e._deferredEnd.reject(t)):(e._result=t,e._deferredEnd&&e._deferredEnd.resolve(t)),g.cont&&g.cont(t,n),g.joiners.forEach((function(e){return e.cb(t,n)})),g.joiners=null}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],o=yU();f&&f.effectTriggered({effectId:o,parentEffectId:t,label:n,effect:e});var i=void 0;function a(e,t){i||(i=!0,r.cancel=oU,f&&(t?f.effectRejected(o,e):f.effectResolved(o,e)),r(e,t))}a.cancel=oU,r.cancel=function(){if(!i){i=!0;try{a.cancel()}catch(e){y(e)}a.cancel=oU,f&&f.effectCancelled(o)}};var c=void 0;return sU.promise(e)?j(e,a):sU.helper(e)?C(dW(e),o,a):sU.iterator(e)?P(e,o,u,a):sU.array(e)?l(e,o,a):(c=XU.take(e))?k(c,a):(c=XU.put(e))?I(c,a):(c=XU.all(e))?L(c,o,a):(c=XU.race(e))?D(c,o,a):(c=XU.call(e))?T(c,o,a):(c=XU.cps(e))?R(c,a):(c=XU.fork(e))?C(c,o,a):(c=XU.join(e))?A(c,a):(c=XU.cancel(e))?N(c,a):(c=XU.select(e))?M(c,a):(c=XU.actionChannel(e))?F(c,a):(c=XU.flush(e))?B(c,a):(c=XU.cancelled(e))?U(c,a):(c=XU.getContext(e))?H(c,a):(c=XU.setContext(e))?q(c,a):a(e)}function j(e,t){var n=e[JF];sU.func(n)?t.cancel=n:sU.func(e.abort)&&(t.cancel=function(){return e.abort()}),e.then(t,(function(e){return t(e,!0)}))}function P(e,o,a,u){hW(e,t,n,r,v,i,o,a,u)}function k(e,t){var n=e.channel,r=e.pattern,o=e.maybe;n=n||m;var i=function(e){return e instanceof Error?t(e,!0):gB(e)&&!o?t(oW):t(e)};try{n.take(i,lW(r))}catch(e){return t(e,!0)}t.cancel=i.cancel}function I(e,t){var r=e.channel,o=e.action,i=e.resolve;fB((function(){var e=void 0;try{e=(r?r.put:n)(o)}catch(e){if(r||i)return t(e,!0);y(e)}if(!i||!sU.promise(e))return t(e);j(e,t)}))}function T(e,t,n){var r=e.context,o=e.fn,i=e.args,a=void 0;try{a=o.apply(r,i)}catch(e){return n(e,!0)}return sU.promise(a)?j(a,n):sU.iterator(a)?P(a,t,o.name,n):n(a)}function R(e,t){var n=e.context,r=e.fn,o=e.args;try{var i=function(e,n){return sU.undef(e)?t(n):t(e,!0)};r.apply(n,o.concat(i)),i.cancel&&(t.cancel=function(){return i.cancel()})}catch(e){return t(e,!0)}}function C(e,o,a){var u=e.context,c=e.fn,s=e.args,l=e.detached,f=pW({context:u,fn:c,args:s});try{pB();var p=hW(f,t,n,r,v,i,o,c.name,l?null:oU);l?a(p):f._isRunning?(w.addTask(p),a(p)):f._error?w.abort(f._error):a(p)}finally{hB()}}function A(e,t){if(e.isRunning()){var n={task:g,cb:t};t.cancel=function(){return fU(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())}function N(e,t){e===tU&&(e=g),e.isRunning()&&e.cancel(),t()}function L(e,t,n){var r=Object.keys(e);if(!r.length)return n(sU.array(e)?[]:{});var o=0,i=void 0,a={},u={};r.forEach((function(t){var c=function(u,c){i||(c||gB(u)||u===oW||u===iW?(n.cancel(),n(u,c)):(a[t]=u,++o===r.length&&(i=!0,n(sU.array(e)?pU(eW({},a,{length:r.length})):a))))};c.cancel=oU,u[t]=c})),n.cancel=function(){i||(i=!0,r.forEach((function(e){return u[e].cancel()})))},r.forEach((function(n){return S(e[n],t,n,u[n])}))}function D(e,t,n){var r=void 0,o=Object.keys(e),i={};o.forEach((function(t){var a=function(i,a){if(!r)if(a)n.cancel(),n(i,!0);else if(!gB(i)&&i!==oW&&i!==iW){var u;n.cancel(),r=!0;var c=((u={})[t]=i,u);n(sU.array(e)?[].slice.call(eW({},c,{length:o.length})):c)}};a.cancel=oU,i[t]=a})),n.cancel=function(){r||(r=!0,o.forEach((function(e){return i[e].cancel()})))},o.forEach((function(n){r||S(e[n],t,n,i[n])}))}function M(e,t){var n=e.selector,o=e.args;try{t(n.apply(void 0,[r()].concat(o)))}catch(e){t(e,!0)}}function F(e,n){var r=e.pattern,o=e.buffer,i=lW(r);i.pattern=r,n(_B(t,o||uB(),i))}function U(e,t){t(!!b.isCancelled)}function B(e,t){e.flush(t)}function H(e,t){t(v[e])}function q(e,t){lU(v,e),t()}function z(e,t,n,r){var o,i;return n._deferredEnd=null,(o={})[KF]=!0,o.id=e,o.name=t,"done",(i={}).done=i.done||{},i.done.get=function(){if(n._deferredEnd)return n._deferredEnd.promise;var e=dU();return n._deferredEnd=e,n._isRunning||(n._error?e.reject(n._error):e.resolve(n._result)),e.promise},o.cont=r,o.joiners=[],o.cancel=E,o.isRunning=function(){return n._isRunning},o.isCancelled=function(){return n._isCancelled},o.isAborted=function(){return n._isAborted},o.result=function(){return n._result},o.error=function(){return n._error},o.setContext=function(e){aU(e,sU.object,_U("task",e)),lU(v,e)},nW(o,i),o}}var yW="runSaga(storeInterface, saga, ...args): saga argument must be a Generator function!";function mW(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=void 0;sU.iterator(e)?(i=e,e=t):(aU(t,sU.func,yW),aU(i=t.apply(void 0,r),sU.iterator,yW));var a=e,u=a.subscribe,c=a.dispatch,s=a.getState,l=a.context,f=a.sagaMonitor,p=a.logger,d=a.onError,h=yU();f&&(f.effectTriggered=f.effectTriggered||oU,f.effectResolved=f.effectResolved||oU,f.effectRejected=f.effectRejected||oU,f.effectCancelled=f.effectCancelled||oU,f.actionDispatched=f.actionDispatched||oU,f.effectTriggered({effectId:h,root:!0,parentEffectId:0,effect:{root:!0,saga:t,args:r}}));var y=hW(i,u,xU(c),s,l,{sagaMonitor:f,logger:p,onError:d},h,t.name);return f&&f.effectResolved(h,y),y}function vW(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}const gW=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.context,n=void 0===t?{}:t,r=vW(e,["context"]),o=r.sagaMonitor,i=r.logger,a=r.onError;if(sU.func(r))throw new Error("Saga middleware no longer accept Generator functions. Use sagaMiddleware.run instead");if(i&&!sU.func(i))throw new Error("`options.logger` passed to the Saga middleware is not a function!");if(a&&!sU.func(a))throw new Error("`options.onError` passed to the Saga middleware is not a function!");if(r.emitter&&!sU.func(r.emitter))throw new Error("`options.emitter` passed to the Saga middleware is not a function!");function u(e){var t=e.getState,c=e.dispatch,s=bB();return s.emit=(r.emitter||iU)(s.emit),u.run=mW.bind(null,{context:n,subscribe:s.subscribe,dispatch:c,getState:t,sagaMonitor:o,logger:i,onError:a}),function(e){return function(t){o&&o.actionDispatched&&o.actionDispatched(t);var n=e(t);return s.emit(t),n}}}return u.run=function(){throw new Error("Before running a Saga, you must mount the Saga middleware on the Store using applyMiddleware")},u.setContext=function(e){aU(e,sU.object,_U("sagaMiddleware",e)),lU(n,e)},u};var bW=a(13586);function wW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wW(Object(n),!0).forEach((function(t){EW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _W={context:D.cs};function xW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xW(Object(n),!0).forEach((function(t){jW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PW(e){return(PW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kW(e){var t={code:D.vY,messages:[]};L.Z.debug("Extracting messages from error object:",e);var n=function(e){var t=e.oldCode,n=e.newCode;L.Z.warn("Replacing error code ".concat(t," with ").concat(n))};return e&&e.response&&e.response.data&&Object.keys(e.response.data).forEach((function(r){var o=e.response.data[r];if(Array.isArray(o))o.forEach((function(e){t.messages.push(e)}));else if("code"===r)t.code=o;else if("is_disabled_by_developer"===r){if(!0===o){var i=D.e0;n({oldCode:t.code,newCode:i}),t.code=i}}else if("is_disabled_by_mozilla"===r){if(!0===o){var a=D.Uw;n({oldCode:t.code,newCode:a}),t.code=a}}else"string"==typeof o||"object"===PW(o)?t.messages.push(o):L.Z.warn('Ignoring key "'.concat(r,'": "').concat(o,'" in data of error response'))})),t.messages.length||L.Z.warn("Error object did not contain any messages: ".concat(e)),t}var IW={};function TW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TW(Object(n),!0).forEach((function(t){CW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AW=function(){return function(e){return function(t){return L.Z.info("Dispatching ".concat(t.type)),e(t)}}};function NW(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e._applyMiddleware,r=void 0===n?Mo.md:n,o=e._config,i=void 0===o?t.Z:o,a=e._createLogger,u=void 0===a?bW.createLogger:a,c=e._minimalReduxLogger,s=void 0===c?AW:c,l=e._window,f=void 0===l?"undefined"!=typeof window?window:null:l,p=e.sagaMiddleware,d=void 0===p?null:p,h=e.routerMiddleware,y=void 0===h?null:h,m=i.get("isDevelopment"),v=[];return m&&(i.get("server")?v.push(s):v.push(u())),d&&v.push(d),y&&v.push(y),(0,Mo.qC)(r.apply(void 0,v),i.get("enableDevTools")&&f&&f.__REDUX_DEVTOOLS_EXTENSION__?f.__REDUX_DEVTOOLS_EXTENSION__():function(e){return e})}var LW=function(e){var t=e.history,n=e.reducers;return(0,Mo.UY)(RW(RW({},n),{},{router:(0,i.iz)(t)}))},DW={abuse:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gP,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pP:var n=t.payload.addon;return lP(lP({},e),{},{bySlug:lP(lP({},e.bySlug),{},fP({},n.slug,lP(lP({},e.bySlug[n.slug]),{},{uiVisible:!1})))});case dP:var r=t.payload,o=r.addon,i=r.message,a=r.reporter;return lP(lP({},e),{},{bySlug:lP(lP({},e.bySlug),{},fP({},o.slug,{message:i,reporter:a,uiVisible:!1})),loading:!1});case hP:return lP(lP({},e),{},{loading:!0});case yP:var u=t.payload.addon;return lP(lP({},e),{},{bySlug:lP(lP({},e.bySlug),{},fP({},u.slug,lP(lP({},e.bySlug[u.slug]),{},{uiVisible:!0})))});case vP:return lP(lP({},e),{},{loading:!1});default:return e}},addons:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ta,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case dt:return $i($i({},e),{},{lang:t.payload.lang});case Ji:var n=t.payload.slug;return $i($i({},e),{},{loadingByIdInURL:$i($i({},e.loadingByIdInURL),{},Ki({},n,!0))});case ea:var r=t.payload,o=r.addon,i=r.slug,a=$i({},e.byID),u=$i({},e.byGUID),c=$i({},e.bySlug),s=$i({},e.byIdInURL),l=$i({},e.loadingByIdInURL),f=ua(o,e.lang);return a["".concat(f.id)]=f,s[i]=f.id,l[i]=!1,f.slug&&(c[f.slug.toLowerCase()]=f.id),f.guid&&(u[f.guid]=f.id),$i($i({},e),{},{byID:a,byGUID:u,bySlug:c,byIdInURL:s,loadingByIdInURL:l});case yi:var p=t.payload.addonId,d=sa(e,p);return d?$i($i({},e),{},{byID:$i($i({},e.byID),{},Ki({},"".concat(p),void 0)),byGUID:$i($i({},e.byGUID),{},Ki({},d.guid,void 0)),bySlug:$i($i({},e.bySlug),{},Ki({},d.slug.toLowerCase(),void 0)),loadingByIdInURL:$i($i({},e.loadingByIdInURL),{},Ki({},d.slug,void 0))}):e;case mi:var h=t.payload,y=h.addonId,m=h.oldReview,v=h.newReview,g=sa(e,y);if(!g)return e;var b=g.ratings,w=b?b.average:0,O=b?b.count:0,E=b?b.text_count:0,_=b?$i({},b.grouped_counts):ya();m&&m.score&&_[m.score]>0&&(_[m.score]-=1),v&&v.score&&(_[v.score]+=1);var x=O;if(w&&x&&m&&m.score){var S=x-1;w=0===S?0:(w*x-m.score)/S,x=S}return w=(w*x+Number(v.score))/(x+1),m?!m.body&&v.body&&(E+=1):(O+=1,v.body&&(E+=1)),$i($i({},e),{},{byID:$i($i({},e.byID),{},Ki({},y,$i($i({},g),{},{ratings:$i($i({},b),{},{average:w,bayesian_average:w,count:O,grouped_counts:_,text_count:E})})))});case Qi:var j=t.payload.slug;return $i($i({},e),{},{infoBySlug:$i($i({},e.infoBySlug),{},Ki({},j,{info:void 0,loading:!0}))});case Xi:var P=t.payload,k=P.slug,I=P.info;return $i($i({},e),{},{infoBySlug:$i($i({},e.infoBySlug),{},Ki({},k,{info:ha(I,e.lang),loading:!1}))});default:return e}},addonsByAuthors:gl,api:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ft:return st(st({},e),{},{token:t.payload.token});case dt:return st(st({},e),{},{lang:t.payload.lang});case pt:return st(st({},e),{},{clientApp:t.payload.clientApp});case ht:return st(st({},e),{},{regionCode:t.payload.regionCode});case yt:return st(st({},e),{},{requestId:t.payload.requestId});case mt:var n=Se()(t.payload.userAgent),r=n.browser,o=n.device,i=n.os;return st(st({},e),{},{userAgent:t.payload.userAgent,userAgentInfo:{browser:r,device:o,os:i}});case Re:return st(st({},e),{},{token:null});default:return e}},autocomplete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lb,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case sb:return ib(ib({},e),{},{loading:!1,suggestions:[]});case cb:return ib(ib({},lb),{},{lang:e.lang,loading:!0});case ub:var n=t.payload,r=n.results.filter((function(e){return null!==e.name})).map((function(t){return db(t,e.lang)}));return ib(ib({},e),{},{loading:!1,suggestions:r});case dt:return ib(ib({},e),{},{lang:t.payload.lang});default:return e}},blocks:GC,categories:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jd,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Qd:return $d($d({},Jd),{},{loading:!0});case Xd:var r=n.payload,o=nh();r.results.forEach((function(t){t&&t.application?o[t.application]?o[t.application][t.type]?o[t.application][t.type].push(t):L.Z.warn((0,e.f9)(Vd||(Vd=Yd(['add-on category for unknown add-on type\n "','" for clientApp "','" received\n from API.'])),t.type,t.type)):L.Z.warn((0,e.f9)(Wd||(Wd=Yd(['Category data for unknown clientApp\n "','" received from API.'])),t.application)):L.Z.warn("category or category.application was falsey: %o",t)}));var i={};return Object.keys(o).forEach((function(e){i[e]={},Object.keys(o[e]).forEach((function(t){i[e][t]=o[e][t].sort((function(e,t){return e.name.localeCompare(t.name)})).reduce((function(e,t){return $d($d({},e),{},Kd({},t.slug,t))}),{})}))})),{categories:i,loading:!1};default:return t}},collections:yu,errors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:IW,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case D.kl:return SW(SW({},e),{},jW({},t.payload.id,null));case D.Go:var n=kW(t.payload.error),r=n.code,o=n.messages;return SW(SW({},e),{},jW({},t.payload.id,{code:r,messages:o,responseStatusCode:t.payload.error.response?t.payload.error.response.status:null}));case D.rs:var i=e[t.payload.id]||{messages:[]};return i.messages.push(t.payload.message),SW(SW({},e),{},jW({},t.payload.id,i));default:return e}},errorPage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:SF,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case i.nk:return e.clearOnNext?SF:EF(EF({},e),{},{clearOnNext:!0});case xF:var r=500;return n.error&&n.error.response&&n.error.response.status&&(r=n.error.response.status),EF(EF({},e),{},{error:n.error,hasError:!0,statusCode:r});default:return e}},experiments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qw,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Kw:var n=t.payload,r=n.id,o=n.variant;return Zw(Zw({},e),{},$w({},r,o));default:return e}},home:Rl,installations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;function o(t){var o=r.guid,i=e[o];if(!i)throw new Error("Cannot reduce type ".concat(n,"; no add-on with guid ").concat(o," found."));return yv(yv({},i),t)}switch(n){case D.tX:return yv(yv({},e),{},mv({},r.guid,{canUninstall:void 0===r.canUninstall||r.canUninstall,downloadProgress:0,error:r.error,guid:r.guid,needsRestart:r.needsRestart||!1,status:r.status,url:r.url}));case D.hi:return yv(yv({},e),{},mv({},r.guid,o({status:D.UZ})));case D.HR:return yv(yv({},e),{},mv({},r.guid,o({downloadProgress:r.downloadProgress})));case D.OS:return yv(yv({},e),{},mv({},r.guid,o({status:D.e_})));case D.dG:return yv(yv({},e),{},mv({},r.guid,o({status:D.un})));case D.zl:return yv(yv({},e),{},mv({},r.guid,o({downloadProgress:0,status:D.un})));case D.Rq:return yv(yv({},e),{},mv({},r.guid,o({downloadProgress:0,error:r.error,status:D.Kj})));default:return e}},landing:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ml,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case dt:return Al(Al({},e),{},{lang:t.payload.lang});case Ll:var n=t.payload;return Al(Al({},Ml),{},{addonType:n.addonType,category:n.category||null,lang:e.lang,loading:!0,resultsLoaded:!1});case Dl:var r=t.payload,o=Al(Al({},e),{},{loading:!1,resultsLoaded:!0});return["recommended","highlyRated","trending"].forEach((function(t){r[t]&&(o[t]={count:r[t].count,results:r[t].results.map((function(t){return ua(t,e.lang)}))})})),o;default:return e}},languageTools:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tN,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case eN:var n=QA({},e.byID);return t.payload.languageTools.forEach((function(t){n["".concat(t.id)]=oN(t,e.lang)})),QA(QA({},e),{},{byID:n});case dt:return QA(QA({},e),{},{lang:t.payload.lang});default:return e}},recommendations:Zl,redirectTo:ak,reviews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rp,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r._addReviewToState,a=void 0===o?Fp:o;switch(n.type){case di:return Dp({state:t,reviewId:n.payload.reviewId,stateChange:{beginningToDeleteReview:!0}});case hi:return Dp({state:t,reviewId:n.payload.reviewId,stateChange:{beginningToDeleteReview:!1}});case pi:return Dp({state:t,reviewId:n.payload.reviewId,stateChange:{beginningToDeleteReview:!1,deletingReview:!0}});case si:return Dp({state:t,reviewId:n.payload.originalReviewId,stateChange:{submittingReply:!0}});case Go:return Dp({state:t,reviewId:n.payload.reviewId,stateChange:{beginningToDeleteReview:!1,editingReview:!0}});case Wo:return Dp({state:t,reviewId:n.payload.reviewId,stateChange:{beginningToDeleteReview:!1,replyingToReview:!0}});case Jo:return Dp({state:t,reviewId:n.payload.reviewId,stateChange:{editingReview:!1}});case ei:return Dp({state:t,reviewId:n.payload.reviewId,stateChange:{replyingToReview:!1,submittingReply:!1}});case ii:var u=n.payload,c=u.addonId,s=u.userId,l=u.review,f=Mp({addonId:c,userId:s});if(l&&!Cp(t,l.id))throw new Error("Cannot handle SET_LATEST_REVIEW because review ".concat(l.id," has not been set"));return kp(kp({},t),{},{latestUserReview:kp(kp({},t.latestUserReview),{},Ip({},f,l?l.id:null))});case Vo:return Dp({state:t,reviewId:n.payload.reviewId,stateChange:{loadingReview:!0}});case oi:var p=n.payload,d=vi(p),h=a({state:t,review:d});return Dp({state:h,reviewId:d.id,stateChange:{loadingReview:!1}});case ni:var y=n.payload;return a({state:t,review:y});case ui:var m=n.payload.originalReviewId,v=t.byId[m];if(!v)throw new Error((0,e.f9)(Sp||(Sp=jp(["Cannot store reply to review ID\n "," because it does not exist"])),m));return kp(kp({},t),{},{byId:kp(kp({},t.byId),{},Ip({},v.id,kp(kp({},v),{},{reply:vi(n.payload.reply)})))});case li:var g=n.payload;return Dp({state:t,reviewId:g.reviewId,stateChange:{flag:{reason:g.reason,inProgress:!0,wasFlagged:!1}}});case ci:var b=n.payload;return Dp({state:t,reviewId:b.reviewId,stateChange:{flag:{reason:b.reason,inProgress:!1,wasFlagged:!0}}});case Zo:var w=n.payload.addonSlug;return kp(kp({},t),{},{loadingForSlug:kp(kp({},t.loadingForSlug),{},Ip({},w,!0))});case ti:var O=n.payload,E=O.reviews.map((function(e){return vi(e)}));return kp(kp({},t),{},{byId:Lp({state:t,reviews:E}),byAddon:kp(kp({},t.byAddon),{},Ip({},O.addonSlug,{data:{pageSize:O.pageSize,reviewCount:O.reviewCount,reviews:E.map((function(e){return e.id}))},page:O.page,score:O.score})),loadingForSlug:kp(kp({},t.loadingForSlug),{},Ip({},O.addonSlug,!1))});case ri:var _=n.payload,x=_.reviews.map((function(e){return vi(e)}));return kp(kp({},t),{},{byId:Lp({state:t,reviews:x}),byUserId:kp(kp({},t.byUserId),{},Ip({},_.userId,{pageSize:_.pageSize,reviewCount:_.reviewCount,reviews:x.map((function(e){return e.id}))}))});case Qo:var S=n.payload;return kp(kp({},t),{},{flashMessage:S.message});case Xo:return kp(kp({},t),{},{flashMessage:void 0});case yi:var j=n.payload.reviewId,P=kp(kp({},t),{},{view:kp(kp({},t.view),{},Ip({},j,void 0))}),k=t.byId[j];if(k){var I=k.reviewAddon,T=k.userId;return kp(kp({},P),{},{byAddon:kp(kp({},P.byAddon),{},Ip({},I.slug,void 0)),byId:kp(kp({},P.byId),{},Ip({},j,void 0)),byUserId:kp(kp({},P.byUserId),{},Ip({},T,void 0)),permissions:kp(kp({},P.permissions),{},Ip({},Ap({addonId:I.id,userId:T}),void 0))})}return P;case i.nk:return kp(kp({},t),{},{view:{}});case Yo:var R=n.payload,C=R.addonId,A=R.userId;return kp(kp({},t),{},{permissions:kp(kp({},t.permissions),{},Ip({},Ap({addonId:C,userId:A}),{loading:!0,canReplyToReviews:null}))});case ai:var N=n.payload,L=N.addonId,D=N.userId,M=N.canReplyToReviews;return kp(kp({},t),{},{permissions:kp(kp({},t.permissions),{},Ip({},Ap({addonId:L,userId:D}),{loading:!1,canReplyToReviews:M}))});default:return t}},search:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tf,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case dt:return Kl(Kl({},e),{},{lang:t.payload.lang});case Xl:var n=t.payload;return Kl(Kl({},e),{},{count:0,filters:n.filters,loading:!0,results:[]});case Jl:var r=t.payload;return Kl(Kl({},e),{},{count:r.count,loading:!1,pageSize:r.pageSize,results:r.results.map((function(t){return ua(t,e.lang)}))});case ef:return Kl(Kl({},e),{},{count:0,loading:!1,results:[]});default:return e}},site:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nz,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Cz:return Iz(Iz({},e),{},{readOnly:t.payload.readOnly,notice:t.payload.notice});case Az:return Iz(Iz({},e),{},{loadedPageIsAnonymous:!0});default:return e}},uiState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ju:var n=t.payload,r=n.change,o=n.id;return xu(xu({},e),{},Su({},o,xu(xu({},e[o]),r)));default:return e}},userAbuseReports:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oL,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ZN:var n=t.payload.userId;return VN(VN({},e),{},{byUserId:VN(VN({},e.byUserId),{},YN({},n,VN(VN({},e.byUserId[n]),{},{hasSubmitted:!1,isSubmitting:!1,uiVisible:!1})))});case $N:var r=t.payload.userId;return VN(VN({},e),{},{byUserId:VN(VN({},e.byUserId),{},YN({},r,VN(VN({},e.byUserId[r]),{},{uiVisible:!1})))});case KN:var o=t.payload,i=o.message,a=o.reportedByUserId,u=o.userId;return VN(VN({},e),{},{byUserId:VN(VN({},e.byUserId),{},YN({},u,{message:i,reportedByUserId:a,hasSubmitted:!0,isSubmitting:!1,uiVisible:!1}))});case QN:var c=t.payload.userId;return VN(VN({},e),{},{byUserId:VN(VN({},e.byUserId),{},YN({},c,VN(VN({},e.byUserId[c]),{},{isSubmitting:!0})))});case XN:var s=t.payload.userId;return VN(VN({},e),{},{byUserId:VN(VN({},e.byUserId),{},YN({},s,VN(VN({},e.byUserId[s]),{},{uiVisible:!0})))});default:return e}},users:ut,versions:wf,viewContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_W,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case D.Of:return OW(OW({},e),{},{context:t.payload.context});default:return e}}};(function(e){return wr.apply(this,arguments)})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.history,r=void 0===t?(0,n.PP)():t,o=e.initialState,a=void 0===o?{}:o,u=gW(),c=(0,Mo.MT)(LW({history:r,reducers:DW}),a,NW({routerMiddleware:(0,i.zk)(r),sagaMiddleware:u}));return{sagaMiddleware:u,store:c}}),{sagas:JG}).then((function(e){e.history;var t=e.renderApp;e.store;t(VF)}))})()})();
+//# sourceMappingURL=amo-2ab44ea6e64316f1fd35.js.map \ No newline at end of file