@pie-element/multiple-choice 12.2.0-next.5 → 12.2.0-next.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/module/demo.js ADDED
@@ -0,0 +1,86 @@
1
+ import Configure from './configure.js';
2
+ import Element from './element.js';
3
+ import * as controller from './controller.js';
4
+
5
+ var generate = {};
6
+
7
+ generate.model = (id, element) => ({
8
+ id,
9
+ element,
10
+ choiceMode: 'checkbox',
11
+ choicePrefix: 'numbers',
12
+ choices: [
13
+ {
14
+ correct: true,
15
+ value: 'sweden',
16
+ label: 'Sweden',
17
+ feedback: {
18
+ type: 'none',
19
+ value: '',
20
+ },
21
+ },
22
+ {
23
+ value: 'iceland',
24
+ label: 'Iceland',
25
+ feedback: {
26
+ type: 'none',
27
+ value: '',
28
+ },
29
+ rationale: 'Rationale for Iceland',
30
+ },
31
+ {
32
+ value: 'norway',
33
+ label: 'Norway',
34
+ feedback: {
35
+ type: 'none',
36
+ value: '',
37
+ },
38
+ rationale: 'Rationale for Norway',
39
+ },
40
+ {
41
+ correct: true,
42
+ value: 'finland',
43
+ label: 'Finland',
44
+ feedback: {
45
+ type: 'none',
46
+ value: '',
47
+ },
48
+ rationale: 'Rationale for Finland',
49
+ },
50
+ ],
51
+ extraCSSRules: {
52
+ names: ['red', 'blue'],
53
+ rules: `
54
+ .red {
55
+ color: red !important;
56
+ }
57
+
58
+ .blue {
59
+ color: blue !important;
60
+ }
61
+ `,
62
+ },
63
+ prompt: '',
64
+ promptEnabled: true,
65
+ toolbarEditorPosition: 'bottom',
66
+ rubricEnabled: false,
67
+ });
68
+
69
+ const { model } = generate;
70
+
71
+ var config = {
72
+ elements: {
73
+ 'multiple-choice': '../..',
74
+ },
75
+ models: [model('1', 'multiple-choice')],
76
+ };
77
+
78
+ //Note: demo-el is a custom element loaded in the markup.
79
+ customElements.whenDefined("demo-el").then(() => {
80
+ config.models.forEach((m) => {
81
+ const de = document.createElement("demo-el");
82
+ document.body.appendChild(de);
83
+ de.def = { tagName: m.element, Element, Configure, controller };
84
+ de.model = m;
85
+ });
86
+ });
@@ -0,0 +1 @@
1
+ import{_dll_react as e,_dll_react_dom as t,_dll_mui__material as n,_dll_prop_types as r,_dll_mui__material_styles as o,_dll_pie_lib__render_ui as i,_dll_classnames as a,_dll_pie_lib__correct_answer_toggle as s,_dll_debug as l}from"../../../@pie-lib/shared-module@^4.1.0/module/index.js";import{_dll_pie_lib__math_rendering as u}from"../../../@pie-lib/math-rendering-module@^4.1.0/module/index.js";function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function d(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var p={},f={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(f),c(f.exports);var h={exports:{}},g={exports:{}},v={exports:{}};!function(e){function t(n){return e.exports=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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v),c(v.exports);var m={exports:{}};!function(e){var t=v.exports.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(m),c(m.exports),function(e){var t=v.exports.default,n=m.exports;e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(g),c(g.exports),function(e){var t=g.exports;e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(h),c(h.exports);var y={},b={exports:{}};!function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(b),c(b.exports);var x={};function _(e,t){return null!=e?e:t()}function w(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}const S=e=>"string"==typeof e,E=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},k=e=>null==e?"":""+e,C=/###/g,O=e=>e&&e.indexOf("###")>-1?e.replace(C,"."):e,A=e=>!e||S(e),j=(e,t,n)=>{const r=S(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(A(e))return{};const t=O(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return A(e)?{}:{obj:e,k:O(r[o])}},L=(e,t,n)=>{const{obj:r,k:o}=j(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],a=t.slice(0,t.length-1),s=j(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=j(e,a,Object),w([s,"optionalAccess",e=>e.obj])&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},R=(e,t)=>{const{obj:n,k:r}=j(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},N=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?S(e[r])||e[r]instanceof String||S(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):N(e[r],t[r],n):e[r]=t[r]);return e},P=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const M=e=>S(e)?e.replace(/[&<>"'\/]/g,e=>I[e]):e;const T=[" ",",","?","!",";"],B=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),$=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<r.length;++a)if(a!==e&&(i+=n),i+=r[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}o=t}return o},W=e=>w([e,"optionalAccess",e=>e.replace,"call",e=>e("_","-")]),D={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){w([console,"optionalAccess",t=>t[e],"optionalAccess",e=>e.apply,"optionalCall",e=>e(console,t)])}};class z{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||D,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(S(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new z(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new z(this.logger,e)}}var F=new z;class U{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n.apply(n,[e,...t])})}}}class V extends U{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):S(n)&&o?a.push(...n.split(o)):a.push(n)));const s=R(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&i&&S(n)?$(w([this,"access",e=>e.data,"optionalAccess",t=>t[e],"optionalAccess",e=>e[t]]),n,o):s}addResource(e,t,n,r,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),L(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(S(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=R(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?N(s,n,o):s={...s,...n},L(this.data,a,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var K={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=_(w([this,"access",e=>e.processors,"access",t=>t[e],"optionalAccess",e=>e.process,"call",e=>e(t,n,r,o)]),()=>t)}),t}};const q=Symbol("i18next/PATH_KEY");function H(e,t){const{[q]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(w([n,"optionalAccess",e=>e.revoke,"optionalCall",e=>e()]),o===q?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return n.join(_(w([t,"optionalAccess",e=>e.keySeparator]),()=>"."))}const J={},Y=e=>!S(e)&&"boolean"!=typeof e&&"number"!=typeof e;class G extends U{constructor(e,t={}){var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=F.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===w([r,"optionalAccess",e=>e.res]))return!1;const o=Y(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=T.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=B.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:S(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:S(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=H(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1];let u=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===w([c,"optionalAccess",e=>e.toLowerCase,"call",e=>e()]))return d?o?{res:`${l}${u}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${u}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a;const p=this.resolve(e,r);let f=w([p,"optionalAccess",e=>e.res]);const h=w([p,"optionalAccess",e=>e.usedKey])||a,g=w([p,"optionalAccess",e=>e.exactUsedKey])||a,v=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==r.count&&!S(r.count),b=G.hasDefaultValue(r),x=y?this.pluralResolver.getSuffix(c,r.count,r):"",_=r.ordinal&&y?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",E=y&&!r.ordinal&&0===r.count,k=E&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${x}`]||r[`defaultValue${_}`]||r.defaultValue;let C=f;m&&!f&&b&&(C=k);const O=Y(C),A=Object.prototype.toString.apply(C);if(!(m&&C&&O&&["[object Number]","[object Function]","[object RegExp]"].indexOf(A)<0)||S(v)&&Array.isArray(C))if(m&&S(v)&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(f)&&b&&(t=!0,f=k),this.isValidLookup(f)||(o=!0,f=a);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:f,d=b&&k!==f&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",c,l,a,d?k:f),i){const e=this.resolve(a,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=b&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,d,r):w([this,"access",e=>e.backendConnector,"optionalAccess",e=>e.saveMissing])&&this.backendConnector.saveMissing(e,l,t,o,d,r),this.emit("missingKey",e,l,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);E&&r[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,r[`defaultValue${t}`]||k)})}):n(e,a,k))}f=this.extendTranslation(f,e,r,p,n),o&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${u}${a}`),(o||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${a}`:a,t?f:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,C,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(p.res=e,p.usedParams=this.getUsedParamsDetails(r),p):e}if(i){const e=Array.isArray(C),t=e?[]:{},n=e?g:h;for(const e in C)if(Object.prototype.hasOwnProperty.call(C,e)){const o=`${n}${i}${e}`;t[e]=b&&!f?this.translate(o,{...r,defaultValue:Y(k)?k[e]:void 0,joinArrays:!1,ns:s}):this.translate(o,{...r,joinArrays:!1,ns:s}),t[e]===o&&(t[e]=C[e])}f=t}}return o?(p.res=f,p.usedParams=this.getUsedParamsDetails(r),p):f}extendTranslation(e,t,n,r,o){if(w([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.parse]))e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=S(e)&&(void 0!==w([n,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.skipOnVariables])?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(i){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&!S(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>w([o,"optionalAccess",e=>e[0]])!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,a=S(i)?[i]:i;return null!=e&&w([a,"optionalAccess",e=>e.length])&&!1!==n.applyPostProcessor&&(e=K.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,i,a;return S(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;const s=this.extractFromKey(e,t),l=s.key;r=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==t.count&&!S(t.count),d=c&&!t.ordinal&&0===t.count,p=void 0!==t.context&&(S(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(n)||(a=e,J[`${f[0]}-${e}`]||!w([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||w([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(a)])||(J[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(r=>{if(this.isValidLookup(n))return;i=r;const a=[l];if(w([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.addLookupKeys]))this.i18nFormat.addLookupKeys(a,l,r,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&0===e.indexOf(o)&&a.push(l+e.replace(o,this.options.pluralSeparator)),a.push(l+e),d&&a.push(l+n)),p){const r=`${l}${this.options.contextSeparator||"_"}${t.context}`;a.push(r),c&&(t.ordinal&&0===e.indexOf(o)&&a.push(r+e.replace(o,this.options.pluralSeparator)),a.push(r+e),d&&a.push(r+n))}}let s;for(;s=a.pop();)this.isValidLookup(n)||(o=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return w([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.getResource])?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!S(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class Z{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=F.create("languageUtils")}getScriptPartFromCode(e){if(!(e=W(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=W(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(S(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),S(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return S(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):S(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}}const Q={zero:0,one:1,two:2,few:3,many:4,other:5},X={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ee{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=F.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=W("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),X;if(!e.match(/-|_/))return X;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),w([n,"optionalAccess",e=>e.resolvedOptions,"call",e=>e(),"access",e=>e.pluralCategories,"access",e=>e.length])>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Q[e]-Q[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const te=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=R(e,n);return void 0!==r?r:R(t,n)})(e,t,n);return!i&&o&&S(n)&&(i=$(e,n,r),void 0===i&&(i=$(t,n,r))),i},ne=e=>e.replace(/\$/g,"$$$$");class re{constructor(e={}){this.logger=F.create("interpolator"),this.options=e,this.format=w([e,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.format])||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:v,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:M,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?P(o):i||"{{",this.suffix=a?P(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?P(d):p||P("$t("),this.nestingSuffix=f?P(f):h||P(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>w([e,"optionalAccess",e=>e.source])===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const o=te(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(te(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=w([r,"optionalAccess",e=>e.missingInterpolationHandler])||this.options.missingInterpolationHandler,c=void 0!==w([r,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.skipOnVariables])?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>ne(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ne(this.escape(e)):ne(e)}].forEach(t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=l(n),void 0===i)if("function"==typeof u){const t=u(e,o,r);i=S(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(c){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else S(i)||this.useRawValueToEscape||(i=k(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),c?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,i;const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(_(w([a,"optionalAccess",e=>e.length]),()=>0)%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];i={...n},i=i.replace&&!S(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(s=r[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),o=t(a.call(this,r[1].trim(),i),i),o&&r[0]===e&&!S(o))return o;S(o)||(o=k(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),s.length&&(o=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}const oe=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=t[a];return s||(s=e(W(r),o),t[a]=s),s(n)}},ie=e=>(t,n,r)=>e(W(n),r)(t);class ae{constructor(e={}){this.logger=F.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?oe:ie;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=oe(t)}format(e,t,n,r={}){const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const a=w([r,"optionalAccess",e=>e.formatParams,"optionalAccess",e=>e[r.interpolationkey]])||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class se extends U{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=F.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],w([this,"access",e=>e.backend,"optionalAccess",e=>e.init,"optionalCall",e=>e(n,r.backend,r)])}queueLoad(e,t,n,r){const o={},i={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=j(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();S(e)&&(e=this.languageUtils.toResolveHierarchy(e)),S(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o,i={},a=()=>{}){if(!w([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||w([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(t)])){if(null!=n&&""!==n){if(w([this,"access",e=>e.backend,"optionalAccess",e=>e.create])){const s={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,n,r,s):l(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const le=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),S(e[1])&&(t.defaultValue=e[1]),S(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ue=e=>(S(e.ns)&&(e.ns=[e.ns]),S(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),S(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),w([e,"access",e=>e.supportedLngs,"optionalAccess",e=>e.indexOf,"optionalCall",e=>e("cimode")])<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),ce=()=>{};class de extends U{constructor(e={},t){var n;if(super(),this.options=ue(e),this.services={},this.logger=F,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(S(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=le();var r;this.options={...n,...this.options,...ue(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(w([r=this,"optionalAccess",e=>e.modules,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.name,"optionalAccess",e=>e.indexOf,"call",e=>e("Locize")])>0||w([r,"optionalAccess",e=>e.modules,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name,"optionalAccess",e=>e.indexOf,"call",e=>e("Locize")])>0||w([r,"optionalAccess",e=>e.options,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.backends])&&r.options.backend.backends.some(e=>w([e,"optionalAccess",e=>e.name,"access",e=>e.indexOf,"call",e=>e("Locize")])>0||w([e,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name,"access",e=>e.indexOf,"call",e=>e("Locize")])>0))||"undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?F.init(o(this.modules.logger),this.options):F.init(null,this.options),e=this.modules.formatter?this.modules.formatter:ae;const t=new Z(this.options);this.store=new V(this.options.resources,this.options);const r=this.services;r.logger=F,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new ee(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(r.formatter=o(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new re(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new se(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=o(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=o(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new G(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=ce),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const i=E(),a=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=ce){let n=t;const r=S(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===w([r,"optionalAccess",e=>e.toLowerCase,"call",e=>e()])&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}w([this,"access",e=>e.options,"access",e=>e.preload,"optionalAccess",e=>e.forEach,"optionalCall",e=>e(e=>t(e))]),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=E();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=ce),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&K.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=E();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=S(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(S(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),w([this,"access",e=>e.services,"access",e=>e.languageDetector,"optionalAccess",e=>e.cacheUserLanguage,"optionalCall",e=>e(i)])),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...o)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t},i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||r.keyPrefix);const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=H(e,{...this.options,...t})),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=H(e,{...this.options,...t})),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return S(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return w([this,"access",e=>e.translator,"optionalAccess",e=>e.translate,"call",t=>t(...e)])}exists(...e){return w([this,"access",e=>e.translator,"optionalAccess",e=>e.exists,"call",t=>t(...e)])}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=E();return this.options.ns?(S(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=E();S(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(w([this,"access",e=>e.languages,"optionalAccess",e=>e.length])>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=w([this,"access",e=>e.services,"optionalAccess",e=>e.languageUtils])||new Z(le());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new de(e,t);return n.createInstance=de.createInstance,n}cloneInstance(e={},t=ce){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new de(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));if(["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new V(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...le().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new re(n)}return o.translator=new G(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const pe=de.createInstance();pe.createInstance,pe.dir,pe.init,pe.loadResources,pe.reloadResources,pe.use,pe.changeLanguage,pe.getFixedT,pe.t,pe.exists,pe.setDefaultNamespace,pe.hasLoadedNamespace,pe.loadNamespaces,pe.loadLanguages;pe.init({fallbackLng:"en",lng:"en",debug:!0,resources:{en:{translation:{categorize:{limitMaxChoicesPerCategory:"You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",maxChoicesPerCategoryRestriction:"To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s]."},ebsr:{part:"Part {{index}}"},numberLine:{addElementLimit_one:"You can only add {{count}} element",addElementLimit_other:"You can only add {{count}} elements",clearAll:"Clear all"},imageClozeAssociation:{reachedLimit_one:"You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.",reachedLimit_other:"Full"},drawingResponse:{fillColor:"Fill color",outlineColor:"Outline color",noFill:"No fill",lightblue:"Light blue",lightyellow:"Light yellow",red:"Red",orange:"Orange",yellow:"Yellow",violet:"Violet",blue:"Blue",green:"Green",white:"White",black:"Black",onDoubleClick:"Double click to edit this text. Press Enter to submit."},charting:{addCategory:"Add category",actions:"Actions",add:"Add",delete:"Delete",newLabel:"New label",reachedLimit_other:"There can't be more than {{count}} categories.",keyLegend:{incorrectAnswer:"Student incorrect answer",correctAnswer:"Student correct answer",correctKeyAnswer:"Answer key correct"}},graphing:{point:"Point",circle:"Circle",line:"Line",parabola:"Parabola",absolute:"Absolute Value",exponential:"Exponential",polygon:"Polygon",ray:"Ray",segment:"Segment",sine:"Sine",vector:"Vector",label:"Label",redo:"Redo",reset:"Reset"},mathInline:{primaryCorrectWithAlternates:"Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct."},multipleChoice:{minSelections:"Select at least {{minSelections}}.",maxSelections_one:"Only {{maxSelections}} answer is allowed.",maxSelections_other:"Only {{maxSelections}} answers are allowed.",minmaxSelections_equal:"Select {{minSelections}}.",minmaxSelections_range:"Select between {{minSelections}} and {{maxSelections}}."},selectText:{correctAnswerSelected:"Correct",correctAnswerNotSelected:"Correct Answer Not Selected",incorrectSelection:"Incorrect Selection",key:"Key"}},common:{undo:"Undo",clearAll:"Clear all",correct:"Correct",incorrect:"Incorrect",showCorrectAnswer:"Show correct answer",hideCorrectAnswer:"Hide correct answer",commonCorrectAnswerWithAlternates:"Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.",warning:"Warning",showNote:"Show Note",hideNote:"Hide Note",cancel:"Cancel"}},es:{translation:{categorize:{limitMaxChoicesPerCategory:"Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",maxChoicesPerCategoryRestriction:"Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta"},ebsr:{part:"Parte {{index}}"},numberLine:{addElementLimit_one:"Solo puedes agregar {{count}} elemento",addElementLimit_other:"Solo puedes agregar {{count}} elementos",clearAll:"Borrar todo"},imageClozeAssociation:{reachedLimit_one:"Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",reachedLimit_other:"Lleno"},drawingResponse:{fillColor:"Color de relleno",outlineColor:"Color del contorno",noFill:"Sin relleno",lightblue:"Azul claro",lightyellow:"Amarillo claro",red:"Rojo",orange:"Naranja",yellow:"Amarillo",violet:"Violeta",blue:"Azul",green:"Verde",white:"Blanco",black:"Negro",onDoubleClick:"Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar"},charting:{addCategory:"Añadir categoría",actions:"Acciones",add:"Añadir",delete:"Eliminar",newLabel:"Nueva etiqueta",reachedLimit_other:"No puede haber más de {{count}} categorías.",keyLegend:{incorrectAnswer:"Respuesta incorrecta del estudiante",correctAnswer:"Respuesta correcta del estudiante",correctKeyAnswer:"Clave de respuesta correcta"}},graphing:{point:"Punto",circle:"Circulo",line:"Línea",parabola:"Parábola",absolute:"Valor absoluto",exponential:"Exponencial",polygon:"Polígono",ray:"Semirrecta",segment:"Segmento ",sine:"Seno",vector:"Vector",label:"Etiqueta",redo:"Rehacer",reset:"Reiniciar"},mathInline:{primaryCorrectWithAlternates:"Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas."},multipleChoice:{minSelections:"Seleccione al menos {{minSelections}}.",maxSelections_one:"Sólo se permite {{maxSelections}} respuesta.",maxSelections_other:"Sólo se permiten {{maxSelections}} respuestas.",minmaxSelections_equal:"Seleccione {{minSelections}}.",minmaxSelections_range:"Seleccione entre {{minSelections}} y {{maxSelections}}."},selectText:{correctAnswerSelected:"Respuesta Correcta",correctAnswerNotSelected:"Respuesta Correcta No Seleccionada",incorrectSelection:"Selección Incorrecta",key:"Clave"}},common:{undo:"Deshacer",clearAll:"Borrar todo",correct:"Correct",incorrect:"Incorrect",showCorrectAnswer:"Mostrar respuesta correcta",hideCorrectAnswer:"Ocultar respuesta correcta",commonCorrectAnswerWithAlternates:"Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.",warning:"Advertencia",showNote:"Mostrar Nota",hideNote:"Ocultar Nota",cancel:"Cancelar"}}}});var fe={translator:{...pe,t:(e,t)=>{const{lng:n}=t;switch(n){case"en_US":case"en-US":t.lng="en";break;case"es_ES":case"es-ES":case"es_MX":case"es-MX":t.lng="es"}return pe.t(e,{lng:n,...t})}},languageOptions:[{value:"en_US",label:"English (US)"},{value:"es_ES",label:"Spanish"}]},he=d(Object.freeze({__proto__:null,default:fe})),ge={},ve={},me={};function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(null,arguments)}function be(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function xe(e,t){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xe(e,t)}function _e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xe(e,t)}function we(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Se={disabled:!1};var Ee=e.createContext(null),ke=function(e){return e.scrollTop};const Ce=e,Oe=t;var Ae="unmounted",je="exited",Le="entering",Re="entered",Ne="exiting",Pe=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=je,r.appearStatus=Le):o=Re:o=t.unmountOnExit||t.mountOnEnter?Ae:je,r.state={status:o},r.nextCallback=null,r}_e(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ae?{status:je}: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!==Le&&n!==Re&&(t=Le):n!==Le&&n!==Re||(t=Ne)}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){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Le){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Oe.findDOMNode(this);n&&ke(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===je&&this.setState({status:Ae})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Oe.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Se.disabled?this.safeSetState({status:Re},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Le},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Re},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Oe.findDOMNode(this);t&&!Se.disabled?(this.props.onExit(r),this.safeSetState({status:Ne},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:je},function(){e.props.onExited(r)})})})):this.safeSetState({status:je},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:Oe.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ae)return null;var t=this.props,n=t.children;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;var r=be(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ce.createElement(Ee.Provider,{value:null},"function"==typeof n?n(e,r):Ce.cloneElement(Ce.Children.only(n),r))},t}(Ce.Component);function Ie(){}Pe.contextType=Ee,Pe.propTypes={},Pe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ie,onEntering:Ie,onEntered:Ie,onExit:Ie,onExiting:Ie,onExited:Ie},Pe.UNMOUNTED=Ae,Pe.EXITED=je,Pe.ENTERING=Le,Pe.ENTERED=Re,Pe.EXITING=Ne;var Me=Pe;const Te=e;var Be=function(e,t){return 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=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=we(n.className,r):n.setAttribute("class",we(n.className&&n.className.baseVal||"",r)));var n,r})},We=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}_e(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&&ke(e),r&&(this.appliedClasses[t][n]=r,Be(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&&$e(e,r),o&&$e(e,o),i&&$e(e,i)},n.render=function(){var e=this.props;e.classNames;var t=be(e,["classNames"]);return Te.createElement(Me,ye({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Te.Component);We.defaultProps={classNames:""},We.propTypes={};var De=We;const{Children:ze}=e,{cloneElement:Fe}=e,{isValidElement:Ue}=e;function Ve(e,t){var n=Object.create(null);return e&&ze.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&Ue(e)?t(e):e}(e)}),n}function Ke(e,t,n){return null!=n[t]?n[t]:e.props[t]}function qe(e,t,n){var r=Ve(e.children),o=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 s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(Ue(a)){var s=i in t,l=i in r,u=t[i],c=Ue(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&Ue(u)&&(o[i]=Fe(a,{onExited:n.bind(null,a),in:u.props.in,exit:Ke(a,"exit",e),enter:Ke(a,"enter",e)})):o[i]=Fe(a,{in:!1}):o[i]=Fe(a,{onExited:n.bind(null,a),in:!0,exit:Ke(a,"exit",e),enter:Ke(a,"enter",e)})}}),o}const He=e;var Je=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ye=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}_e(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,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Ve(n.children,function(e){return Fe(e,{onExited:r.bind(null,e),in:!0,appear:Ke(e,"appear",n),enter:Ke(e,"enter",n),exit:Ke(e,"exit",n)})})):qe(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Ve(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=ye({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=be(e,["component","childFactory"]),o=this.state.contextValue,i=Je(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?He.createElement(Ee.Provider,{value:o},i):He.createElement(Ee.Provider,{value:o},He.createElement(t,r,i))},t}(He.Component);Ye.propTypes={},Ye.defaultProps={component:"div",childFactory:function(e){return e}};var Ge=Ye;const Ze=e,Qe=t;var Xe=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).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}_e(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=Ze.Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var a=i.props.nodeRef?void 0:Qe.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=be(e,["children","in"]),o=Ze.Children.toArray(t),i=o[0],a=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,Ze.createElement(Ge,r,n?Ze.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):Ze.cloneElement(a,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(Ze.Component);Xe.propTypes={};var et=Xe;const tt=e;var nt,rt;var ot="out-in",it="in-out",at=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},st=((nt={})[ot]=function(e){var t=e.current,n=e.changeState;return tt.cloneElement(t,{in:!1,onExited:at(t,"onExited",function(){n(Le,null)})})},nt[it]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,tt.cloneElement(r,{in:!0,onEntered:at(r,"onEntered",function(){n(Le)})})]},nt),lt=((rt={})[ot]=function(e){var t=e.children,n=e.changeState;return tt.cloneElement(t,{in:!0,onEntered:at(t,"onEntered",function(){n(Re,tt.cloneElement(t,{in:!0}))})})},rt[it]=function(e){var t=e.current,n=e.children,r=e.changeState;return[tt.cloneElement(t,{in:!1,onExited:at(t,"onExited",function(){r(Re,tt.cloneElement(n,{in:!0}))})}),tt.cloneElement(n,{in:!0})]},rt),ut=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).state={status:Re,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}_e(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Le&&e.mode===it?{status:Le}:!t.current||(n=t.current,r=e.children,n===r||tt.isValidElement(n)&&tt.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:tt.cloneElement(e.children,{in:!0})}:{status:Ne};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,s={children:n,current:a,changeState:this.changeState,status:i};switch(i){case Le:e=lt[r](s);break;case Ne:e=st[r](s);break;case Re:e=a}return tt.createElement(Ee.Provider,{value:{isMounting:!this.appeared}},e)},t}(tt.Component);ut.propTypes={},ut.defaultProps={mode:ot};var ct=ut,dt=d(Object.freeze({__proto__:null,CSSTransition:De,ReplaceTransition:et,SwitchTransition:ct,TransitionGroup:Ge,Transition:Me,config:Se}));const pt=e,ft=o,{Box:ht}=n,gt=r,vt=i;var mt=f.exports;Object.defineProperty(me,"__esModule",{value:!0}),me.default=void 0;var yt=mt(h.exports),bt=mt(pt),xt=dt,_t=ft,wt=mt(ht),St=mt(gt),Et=vt;const kt=(0,_t.styled)(wt.default)({width:"33px",height:"33px","& svg":{position:"absolute",display:"inline-block",width:"33px",height:"33px",verticalAlign:"middle","& hide":{display:"none"}}}),Ct=(0,_t.styled)("svg")({"& .incorrect-fill":{fill:`var(--feedback-incorrect-bg-color, ${Et.color.incorrect()})`},"& .correct-fill":{fill:`var(--feedback-correct-bg-color, ${Et.color.correct()})`}}),Ot=(0,_t.styled)("div")({position:"relative","&.feedback-tick-enter":{opacity:"0",left:"-50px"},"&.feedback-tick-enter-active":{opacity:"1",left:"0px",transition:"left 500ms ease-in 200ms, opacity 500ms linear 200ms"},"&.feedback-tick-exit":{opacity:"1",left:"0px"},"&.feedback-tick-exit-active":{opacity:"0",left:"-50px",transition:"left 300ms ease-in, opacity 300ms"}});class At extends bt.default.Component{constructor(e){super(e),(0,yt.default)(this,"getIncorrectIcon",()=>bt.default.createElement(Ct,{key:"1",preserveAspectRatio:"xMinYMin meet",x:"0px",y:"0px",viewBox:"0 0 44 40",style:{enableBackground:"new 0 0 44 40"}},bt.default.createElement("g",null,bt.default.createElement("rect",{x:"11",y:"17.3",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)",className:"incorrect-fill",width:"16.6",height:"3.7"}),bt.default.createElement("rect",{x:"17.4",y:"10.7",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)",className:"incorrect-fill",width:"3.7",height:"16.6"})))),(0,yt.default)(this,"getCorrectIcon",()=>bt.default.createElement(Ct,{key:"2",preserveAspectRatio:"xMinYMin meet",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 44 40",style:{enableBackground:"new 0 0 44 40"}},bt.default.createElement("polygon",{className:"correct-fill",points:"19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4"}))),this.nodeRef=bt.default.createRef()}render(){const{correctness:e}=this.props,t=(()=>"incorrect"===e?this.getIncorrectIcon():"correct"===e?this.getCorrectIcon():null)();return bt.default.createElement(kt,null,bt.default.createElement(xt.TransitionGroup,null,e&&bt.default.createElement(xt.CSSTransition,{nodeRef:this.nodeRef,classNames:{enter:"feedback-tick-enter",enterActive:"feedback-tick-enter-active",exit:"feedback-tick-exit",exitActive:"feedback-tick-exit-active"},timeout:{enter:700,exit:300}},bt.default.createElement(Ot,{ref:this.nodeRef},t))))}}(0,yt.default)(At,"propTypes",{correctness:St.default.string}),me.default=At;const{FormControlLabel:jt}=n,{Box:Lt}=n,{Checkbox:Rt}=n,{Radio:Nt}=n,Pt=e,It=r,Mt=o,Tt=i,Bt=a;var $t=f.exports;Object.defineProperty(ve,"__esModule",{value:!0}),ve.default=ve.StyledRadio=ve.StyledFormControlLabel=ve.StyledCheckbox=ve.ChoiceInput=void 0;var Wt=$t(h.exports),Dt=$t(b.exports),zt=$t(jt),Ft=$t(Pt),Ut=$t(It),Vt=Mt,Kt=$t(Lt),qt=$t(Rt),Ht=Tt,Jt=$t(Nt),Yt=$t(Bt),Gt=$t(me);const Zt="multiple-choice-component",Qt=(0,Vt.styled)(Kt.default)({display:"flex",alignItems:"center",backgroundColor:Ht.color.background()}),Xt=(0,Vt.styled)(Kt.default)({display:"flex",alignItems:"center",backgroundColor:Ht.color.background(),flex:1,"& .MuiFormControlLabel-root":{marginLeft:"-14px"},"& label":{color:Ht.color.text(),"& > span":{fontSize:"inherit"},"& > .MuiButtonBase-root":{padding:"12px"}}}),en=(0,Vt.styled)("span")(({theme:e})=>({display:"flex",alignItems:"center","& > span":{marginLeft:`-${e.spacing(1)}px`}})),tn=(0,Vt.styled)("span")({position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden"}),nn=ve.StyledFormControlLabel=(0,Vt.styled)(zt.default)({"& .MuiFormControlLabel-label":{color:`${Ht.color.text()} !important`,backgroundColor:Ht.color.background(),letterSpacing:"normal"},"&.Mui-disabled *":{cursor:"not-allowed !important"}}),rn=(e,t)=>({[`&.${Zt}`]:{color:`var(--choice-input-${e}, ${t}) !important`}}),on=e=>{const t=t=>e?`${e}-${t}`:t;return{[t("root")]:{...rn("color",Ht.color.text()),...e?{}:{"&:hover":{color:`${Ht.color.primaryLight()} !important`}},..."correct"===e?rn("correct-color",Ht.color.text()):{},..."incorrect"===e?rn("incorrect-color",Ht.color.incorrect()):{}},[t("checked")]:{..."correct"===e?rn("correct-selected-color",Ht.color.correct()):{},..."incorrect"===e?rn("incorrect-checked",Ht.color.incorrect()):{},...e?{}:rn("selected-color",Ht.color.primary())},[t("disabled")]:{...rn("disabled-color",Ht.color.text()),..."correct"===e?rn("correct-disabled-color",Ht.color.disabled()):{},..."incorrect"===e?rn("incorrect-disabled-color",Ht.color.disabled()):{},opacity:.6,cursor:"not-allowed !important",pointerEvents:"initial !important"},focusVisibleUnchecked:{outline:`2px solid ${Ht.color.focusUncheckedBorder()}`,backgroundColor:Ht.color.focusUnchecked()},focusVisibleChecked:{outline:`2px solid ${Ht.color.focusCheckedBorder()}`,backgroundColor:Ht.color.focusChecked()}}},an=(0,Vt.styled)(qt.default,{shouldForwardProp:e=>"correctness"!==e})(({correctness:e})=>{const t=on(e),n=t=>e?`${e}-${t}`:t;return{[`&.${Zt}`]:{...t[n("root")],"&.Mui-checked":t[n("checked")],"&.Mui-disabled":e?{}:t[n("disabled")]},"&.Mui-focusVisible":{"&:not(.Mui-checked)":t.focusVisibleUnchecked,"&.Mui-checked":t.focusVisibleChecked}}}),sn=e=>{const{correctness:t,checked:n,onChange:r,disabled:o,value:i,id:a,onKeyDown:s,inputRef:l}=e,u={checked:n,onChange:r,disabled:o,value:i};return Ft.default.createElement(an,(0,Dt.default)({id:a,slotProps:{input:{ref:l}},onKeyDown:s,disableRipple:!0},u,{correctness:t,className:Zt}))};ve.StyledCheckbox=sn;const ln=(0,Vt.styled)(Jt.default,{shouldForwardProp:e=>"correctness"!==e})(({correctness:e})=>{const t=on(e),n=t=>e?`${e}-${t}`:t;return{[`&.${Zt}`]:{...t[n("root")],"&.Mui-checked":t[n("checked")],"&.Mui-disabled":e?{}:t[n("disabled")]},"&.Mui-focusVisible":{"&:not(.Mui-checked)":t.focusVisibleUnchecked,"&.Mui-checked":t.focusVisibleChecked}}}),un=e=>{const{correctness:t,checked:n,onChange:r,disabled:o,value:i,id:a,tagName:s,inputRef:l}=e,u={checked:n,onChange:r,disabled:o,value:i};return Ft.default.createElement(ln,(0,Dt.default)({id:a,slotProps:{input:{ref:l}},disableRipple:!0},u,{correctness:t,className:Zt,name:s}))};ve.StyledRadio=un;class cn extends Ft.default.Component{constructor(e){super(e),(0,Wt.default)(this,"handleKeyDown",e=>{const{choiceMode:t}=this.props;if("checkbox"!==t)return;const n="ArrowDown"===e.key,r="ArrowUp"===e.key;if(!n&&!r)return;e.preventDefault();const o=document.getElementById(this.choiceId);if(!o)return;const i=o.closest("fieldset");if(!i)return;const a=Array.from(i.querySelectorAll('input[type="checkbox"]')),s=a.findIndex(e=>e===o);if(-1===s)return;const l=a[n?s+1:s-1];l&&l.focus()}),this.onToggleChoice=this.onToggleChoice.bind(this),this.choiceId=this.generateChoiceId(),this.descId=`${this.choiceId}-desc`}onToggleChoice(e){this.props.onChange(e)}generateChoiceId(){return"choice-"+(1e4*Math.random()).toFixed()}render(){const{choiceMode:e,disabled:t,displayKey:n,feedback:r,label:o,correctness:i,className:a,rationale:s,hideTick:l,isEvaluateMode:u,choicesLayout:c,value:d,checked:p,tagName:f,isSelectionButtonBelow:h}=this.props,g="checkbox"===e?sn:un,v="checkbox"===e?"checkbox":"radio-button",m={..."horizontal"===c&&{[`& .${Zt}`]:{padding:"8px",margin:"4px 0 4px 4px"}},...h&&"grid"!==c&&{"& > label":{alignItems:"flex-start"}},...h&&"grid"===c&&{justifyContent:"center","& > label":{alignItems:"center"}}},y=Ft.default.createElement(Ft.default.Fragment,null,n&&!h?Ft.default.createElement(Qt,{component:"span"},n,"."," ",Ft.default.createElement(Ht.PreviewPrompt,{className:"prompt-label",prompt:o,tagName:"span"})):Ft.default.createElement(Ht.PreviewPrompt,{className:"prompt-label",prompt:o,tagName:"span"})),b=Ft.default.createElement(tn,{id:this.descId},"checkbox"===e?"Checkbox to select the answer below":"Radio button to select the answer below"),x={disabled:t,checked:p,correctness:i,tagName:f,value:d,id:this.choiceId,onChange:this.onToggleChoice,onKeyDown:this.handleKeyDown,"aria-describedby":this.descId},_="string"==typeof o&&(o.includes("<math")||o.includes("\\(")||o.includes("\\[")||o.includes("<img")||o.includes("data-latex")||o.includes("data-raw")||o.includes("<mjx-container")),w=h?Ft.default.createElement(en,null,_&&b,Ft.default.createElement(g,(0,Dt.default)({},x,{style:{padding:0}})),n?`${n}.`:""):Ft.default.createElement(Ft.default.Fragment,null,_&&b,Ft.default.createElement(g,(0,Dt.default)({},x,{slotProps:{input:{ref:this.props.autoFocusRef}}})));return Ft.default.createElement("div",{className:(0,Yt.default)(a,"corespring-"+v,"choice-input")},Ft.default.createElement(Qt,null,!l&&u&&Ft.default.createElement(Gt.default,{correctness:i}),Ft.default.createElement(Xt,{className:"checkbox-holder",sx:m},Ft.default.createElement(nn,{label:y,value:d,htmlFor:this.choiceId,labelPlacement:h?"top":void 0,control:w}))),s&&Ft.default.createElement(Ht.PreviewPrompt,{className:"rationale",defaultClassName:"rationale",prompt:s}),Ft.default.createElement(Ht.Feedback,{feedback:r,correctness:i}))}}ve.ChoiceInput=cn,(0,Wt.default)(cn,"propTypes",{choiceMode:Ut.default.oneOf(["radio","checkbox"]),displayKey:Ut.default.string,checked:Ut.default.bool.isRequired,correctness:Ut.default.string,disabled:Ut.default.bool.isRequired,feedback:Ut.default.string,label:Ut.default.string.isRequired,rationale:Ut.default.string,onChange:Ut.default.func.isRequired,value:Ut.default.string.isRequired,className:Ut.default.string,tagName:Ut.default.string,hideTick:Ut.default.bool,isEvaluateMode:Ut.default.bool,choicesLayout:Ut.default.oneOf(["vertical","grid","horizontal"]),isSelectionButtonBelow:Ut.default.bool}),(0,Wt.default)(cn,"defaultProps",{rationale:null,checked:!1,isEvaluateMode:!1}),ve.default=cn;const dn=e,pn=r,fn=o,{Box:hn}=n;var gn=f.exports;Object.defineProperty(ge,"__esModule",{value:!0}),ge.default=ge.Choice=void 0;var vn=gn(b.exports),mn=gn(h.exports),yn=gn(dn),bn=gn(pn),xn=fn,_n=gn(hn),wn=gn(ve);const Sn=(0,xn.styled)(_n.default,{shouldForwardProp:e=>"noBorder"!==e&&"horizontalLayout"!==e})(({theme:e,noBorder:t,horizontalLayout:n})=>({paddingTop:e.spacing(2.5),paddingBottom:`calc(${e.spacing(1)} + 2px)`,paddingLeft:`calc(${e.spacing(1)} + 2px)`,paddingRight:`calc(${e.spacing(1)} + 2px)`,borderBottom:t?"none":`1px solid ${e.palette.grey[300]}`,...n&&{paddingRight:e.spacing(2.5),"& label":{marginRight:e.spacing(1)}}}));class En extends yn.default.Component{constructor(...e){super(...e),(0,mn.default)(this,"state",{isHovered:!1}),(0,mn.default)(this,"handleMouseEnter",()=>{const{disabled:e,checked:t}=this.props;e||t||this.setState({isHovered:!0})}),(0,mn.default)(this,"handleMouseLeave",()=>{this.setState({isHovered:!1})}),(0,mn.default)(this,"onChange",e=>{const{disabled:t,onChoiceChanged:n}=this.props;t||n(e)})}render(){const{choice:e,index:t,choicesLength:n,showCorrect:r,isEvaluateMode:o,choiceMode:i,disabled:a,checked:s,correctness:l,displayKey:u,choicesLayout:c,gridColumns:d,isSelectionButtonBelow:p,selectedAnswerBackgroundColor:f,selectedAnswerStrokeColor:h,selectedAnswerStrokeWidth:g,hoverAnswerBackgroundColor:v,hoverAnswerStrokeColor:m,hoverAnswerStrokeWidth:y,autoFocusRef:b,tagName:x}=this.props,{isHovered:_}=this.state,w="choice"+(t===n-1?" last":""),S=!o||r?"":e.feedback,E={...e,checked:s,choiceMode:i,disabled:a,feedback:S,correctness:l,displayKey:u,index:t,choicesLayout:c,gridColumns:d,onChange:this.onChange,isEvaluateMode:o,isSelectionButtonBelow:p,selectedAnswerStrokeColor:h,selectedAnswerStrokeWidth:g,tagName:x},k=h&&"initial"!==h,C=m&&"initial"!==m;let O="transparent",A="2px",j="initial";(k||C)&&(s&&k?(O=h,A=g):_&&!a&&C&&(O=m,A=y)),s&&f&&"initial"!==f?j=f:_&&!a&&v&&"initial"!==v&&(j=v);const L=k||C,R=L?{border:`${(e=>{if(!e)return"2px";const t=String(e).trim();return/^\d+(\.\d+)?$/.test(t)?`${t}px`:t})(A)} solid ${O}`,borderRadius:"8px"}:{},N=t===n-1||"vertical"!==c||L,P="horizontal"===c,I="initial"!==j?j:"initial";return yn.default.createElement("div",{className:w,key:t,style:{backgroundColor:I,...R},onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},yn.default.createElement(Sn,{component:"div",noBorder:N,horizontalLayout:P},yn.default.createElement(wn.default,(0,vn.default)({},E,{autoFocusRef:b}))))}}ge.Choice=En,(0,mn.default)(En,"propTypes",{}),En.propTypes={choiceMode:bn.default.oneOf(["radio","checkbox"]),choice:bn.default.object,disabled:bn.default.bool.isRequired,onChoiceChanged:bn.default.func,index:bn.default.number,choicesLength:bn.default.number,showCorrect:bn.default.bool,isEvaluateMode:bn.default.bool,checked:bn.default.bool,correctness:bn.default.string,displayKey:bn.default.string,choicesLayout:bn.default.oneOf(["vertical","grid","horizontal"]),gridColumns:bn.default.string,selectedAnswerBackgroundColor:bn.default.string,selectedAnswerStrokeColor:bn.default.string,selectedAnswerStrokeWidth:bn.default.string,hoverAnswerBackgroundColor:bn.default.string,hoverAnswerStrokeColor:bn.default.string,hoverAnswerStrokeWidth:bn.default.string,tagName:bn.default.string,isSelectionButtonBelow:bn.default.bool,autoFocusRef:bn.default.object},ge.default=En;const kn=e,Cn=r,On=s,An=a,jn=o,{Box:Ln}=n,Rn=i;var Nn=f.exports;Object.defineProperty(x,"__esModule",{value:!0}),x.default=x.MultipleChoice=void 0;var Pn=Nn(h.exports),In=Nn(kn),Mn=Nn(Cn),Tn=Nn(On),Bn=Nn(An),$n=jn,Wn=Nn(Ln),Dn=Rn,zn=Nn(he),Fn=Nn(ge);const{translator:Un}=zn.default,Vn=(0,$n.styled)(Wn.default)({color:Dn.color.text(),backgroundColor:Dn.color.background(),"& *":{"-webkit-font-smoothing":"antialiased"},position:"relative","& legend":{border:"none !important"}}),Kn=(0,$n.styled)("h2")(({theme:e})=>({display:"block",fontSize:"inherit",margin:"0",fontWeight:"normal",paddingBottom:e.spacing(2)})),qn=(0,$n.styled)(Wn.default)(({theme:e})=>({marginBottom:e.spacing(2)})),Hn=(0,$n.styled)(Wn.default)({display:"flex",flexDirection:"row",flexWrap:"wrap"}),Jn=(0,$n.styled)(Wn.default)({display:"grid"}),Yn=(0,$n.styled)("fieldset")({border:"0px",padding:"0.01em 0 0 0",margin:"0px",minWidth:"0px","&:focus":{outline:"none"}}),Gn=(0,$n.styled)("h3")({position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden"}),Zn=(0,$n.styled)("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingTop:e.spacing(1)}));class Qn extends In.default.Component{constructor(e){super(e),(0,Pn.default)(this,"handleChange",e=>{const{value:t,checked:n}=e.target,{maxSelections:r,onChoiceChanged:o,session:i}=this.props;i.value&&i.value.length>=r&&(this.setState({maxSelectionsErrorState:n}),n)||o({value:t,selected:n,selector:"Mouse"})}),(0,Pn.default)(this,"onToggle",()=>{"evaluate"===this.props.mode&&this.setState({showCorrect:!this.state.showCorrect},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()})}),(0,Pn.default)(this,"getCorrectness",(e={})=>{const t=e.correct,n=this.isSelected(e.value);return this.state.showCorrect?t?"correct":void 0:t?n?"correct":"incorrect":n?"incorrect":void 0}),(0,Pn.default)(this,"handleGroupFocus",e=>{const t=e.currentTarget,n=document.activeElement;t.contains(n)&&n!==t||(!e.relatedTarget||t.compareDocumentPosition(e.relatedTarget)&Node.DOCUMENT_POSITION_PRECEDING)&&function(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}([this,"access",e=>e.firstInputRef,"optionalAccess",e=>e.current])&&this.firstInputRef.current.focus()}),this.state={showCorrect:this.props.options&&this.props.alwaysShowCorrect||!1,maxSelectionsErrorState:!1},this.onToggle=this.onToggle.bind(this),this.firstInputRef=In.default.createRef()}isSelected(e){const t=this.props.session&&this.props.session.value;return t&&t.indexOf&&t.indexOf(e)>=0}UNSAFE_componentWillReceiveProps(e){e.correctResponse||!1===this.state.showCorrect||this.setState({showCorrect:!1},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()}),e.options&&e.alwaysShowCorrect&&!0!==this.state.showCorrect&&this.setState({showCorrect:!0},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()})}indexToSymbol(e){return"numbers"===this.props.keyMode?`${e+1}`:"letters"===this.props.keyMode?String.fromCharCode(97+e).toUpperCase():""}getChecked(e){if(this.props.options&&this.props.alwaysShowCorrect)return e.correct||!1;return this.state.showCorrect&&"evaluate"===this.props.mode?e.correct||!1:this.isSelected(e.value)}renderHeading(){const{mode:e,choiceMode:t}=this.props;return"gather"!==e?null:"radio"===t?In.default.createElement(Gn,null,"Multiple Choice Question"):In.default.createElement(Gn,null,"Multiple Select Question")}render(){const{mode:e,disabled:t,className:n,choices:r=[],choiceMode:o,gridColumns:i,partLabel:a,prompt:s,responseCorrect:l,teacherInstructions:u,alwaysShowCorrect:c,animationsDisabled:d,language:p,isSelectionButtonBelow:f,minSelections:h,maxSelections:g,autoplayAudioEnabled:v,session:m,customAudioButton:y,options:b}=this.props,{showCorrect:x,maxSelectionsErrorState:_}=this.state,w="evaluate"===e,S=w&&!l,E=i>1?{gridTemplateColumns:`repeat(${i}, 1fr)`}:void 0,k=m.value&&m.value.length||0,C=In.default.createElement(Dn.PreviewPrompt,{tagName:"div",className:"prompt",defaultClassName:"teacher-instructions",prompt:u}),O="grid"===this.props.choicesLayout?Jn:"horizontal"===this.props.choicesLayout?Hn:Wn.default;return In.default.createElement(Vn,{id:"main-container",className:(0,Bn.default)(n,"multiple-choice")},a&&In.default.createElement(Kn,null,a),this.renderHeading(),u&&In.default.createElement(qn,null,d?C:In.default.createElement(Dn.Collapsible,{labels:{hidden:"Show Teacher Instructions",visible:"Hide Teacher Instructions"}},C)),In.default.createElement(Yn,{tabIndex:0,onFocus:this.handleGroupFocus,role:"radio"===o?"radiogroup":"group"},In.default.createElement(Dn.PreviewPrompt,{className:"prompt",defaultClassName:"prompt",prompt:s,tagName:"legend",autoplayAudioEnabled:v,customAudioButton:y}),!(b&&c)&&In.default.createElement(Tn.default,{show:S,toggled:x,onToggle:this.onToggle.bind(this),language:p}),In.default.createElement(O,{style:E},r.map((e,n)=>In.default.createElement(Fn.default,{autoFocusRef:0===n?this.firstInputRef:null,choicesLayout:this.props.choicesLayout,selectedAnswerBackgroundColor:this.props.selectedAnswerBackgroundColor,selectedAnswerStrokeColor:this.props.selectedAnswerStrokeColor,selectedAnswerStrokeWidth:this.props.selectedAnswerStrokeWidth,hoverAnswerBackgroundColor:this.props.hoverAnswerBackgroundColor,hoverAnswerStrokeColor:this.props.hoverAnswerStrokeColor,hoverAnswerStrokeWidth:this.props.hoverAnswerStrokeWidth,gridColumns:i,key:`choice-${n}`,choice:e,index:n,choicesLength:r.length,showCorrect:x,isEvaluateMode:w,choiceMode:o,disabled:t,tagName:a?`group-${a}`:"group",onChoiceChanged:this.handleChange,hideTick:e.hideTick,checked:this.getChecked(e),correctness:w?this.getCorrectness(e):void 0,displayKey:this.indexToSymbol(n),isSelectionButtonBelow:f})))),"checkbox"===o&&k<h&&In.default.createElement(Zn,null,h&&g?h===g?Un.t("translation:multipleChoice:minmaxSelections_equal",{lng:p,minSelections:h}):Un.t("translation:multipleChoice:minmaxSelections_range",{lng:p,minSelections:h,maxSelections:g}):h?Un.t("translation:multipleChoice:minSelections",{lng:p,minSelections:h}):""),"checkbox"===o&&_&&In.default.createElement(Zn,null,Un.t("translation:multipleChoice:maxSelections_"+(1===g?"one":"other"),{lng:p,maxSelections:g})))}}x.MultipleChoice=Qn,(0,Pn.default)(Qn,"propTypes",{className:Mn.default.string,mode:Mn.default.oneOf(["gather","view","evaluate"]),choiceMode:Mn.default.oneOf(["radio","checkbox"]),keyMode:Mn.default.oneOf(["numbers","letters","none"]),choices:Mn.default.array,partLabel:Mn.default.string,prompt:Mn.default.string,teacherInstructions:Mn.default.string,session:Mn.default.object,disabled:Mn.default.bool,onChoiceChanged:Mn.default.func,responseCorrect:Mn.default.bool,correctResponse:Mn.default.array,choicesLayout:Mn.default.oneOf(["vertical","grid","horizontal"]),gridColumns:Mn.default.string,alwaysShowCorrect:Mn.default.bool,animationsDisabled:Mn.default.bool,language:Mn.default.string,selectedAnswerBackgroundColor:Mn.default.string,selectedAnswerStrokeColor:Mn.default.string,selectedAnswerStrokeWidth:Mn.default.string,hoverAnswerBackgroundColor:Mn.default.string,hoverAnswerStrokeColor:Mn.default.string,hoverAnswerStrokeWidth:Mn.default.string,onShowCorrectToggle:Mn.default.func,isSelectionButtonBelow:Mn.default.bool,minSelections:Mn.default.number,maxSelections:Mn.default.number,autoplayAudioEnabled:Mn.default.bool,customAudioButton:{playImage:Mn.default.string,pauseImage:Mn.default.string},options:Mn.default.object}),Qn.defaultProps={session:{value:[]}},x.default=Qn;const Xn=e,er=r,tr=i;var nr=f.exports;Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var rr=nr(b.exports),or=nr(h.exports),ir=nr(Xn),ar=nr(er),sr=tr,lr=nr(x);class ur extends ir.default.Component{render(){const{model:e,onChoiceChanged:t,session:n,onShowCorrectToggle:r,options:o}=this.props,{extraCSSRules:i,fontSizeFactor:a}=e;return ir.default.createElement(sr.PreviewLayout,{extraCSSRules:i,fontSizeFactor:a,classes:{}},ir.default.createElement(lr.default,(0,rr.default)({},e,{options:o,session:n,onChoiceChanged:t,onShowCorrectToggle:r})))}}(0,or.default)(ur,"propTypes",{model:ar.default.object,session:ar.default.object,options:ar.default.object,onChoiceChanged:ar.default.func,onShowCorrectToggle:ar.default.func,extraCSSRules:ar.default.shape({names:ar.default.arrayOf(ar.default.string),rules:ar.default.string})}),(0,or.default)(ur,"defaultProps",{model:{},session:{}}),y.default=ur;var cr="object"==typeof global&&global&&global.Object===Object&&global,dr="object"==typeof self&&self&&self.Object===Object&&self,pr=cr||dr||Function("return this")(),fr=pr.Symbol,hr=Object.prototype,gr=hr.hasOwnProperty,vr=hr.toString,mr=fr?fr.toStringTag:void 0;var yr=Object.prototype.toString;var br=fr?fr.toStringTag:void 0;function xr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":br&&br in Object(e)?function(e){var t=gr.call(e,mr),n=e[mr];try{e[mr]=void 0;var r=!0}catch(e){}var o=vr.call(e);return r&&(t?e[mr]=n:delete e[mr]),o}(e):function(e){return yr.call(e)}(e)}function _r(e){return null!=e&&"object"==typeof e}function wr(e){return"symbol"==typeof e||_r(e)&&"[object Symbol]"==xr(e)}function Sr(e){return"number"==typeof e?e:wr(e)?NaN:+e}function Er(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var kr=Array.isArray,Cr=fr?fr.prototype:void 0,Or=Cr?Cr.toString:void 0;function Ar(e){if("string"==typeof e)return e;if(kr(e))return Er(e,Ar)+"";if(wr(e))return Or?Or.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function jr(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=Ar(n),r=Ar(r)):(n=Sr(n),r=Sr(r)),o=e(n,r)}return o}}var Lr=jr(function(e,t){return e+t},0),Rr=/\s/;function Nr(e){for(var t=e.length;t--&&Rr.test(e.charAt(t)););return t}var Pr=/^\s+/;function Ir(e){return e?e.slice(0,Nr(e)+1).replace(Pr,""):e}function Mr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Tr=/^[-+]0x[0-9a-f]+$/i,Br=/^0b[01]+$/i,$r=/^0o[0-7]+$/i,Wr=parseInt;function Dr(e){if("number"==typeof e)return e;if(wr(e))return NaN;if(Mr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Mr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ir(e);var n=Br.test(e);return n||$r.test(e)?Wr(e.slice(2),n?2:8):Tr.test(e)?NaN:+e}var zr=1/0;function Fr(e){return e?(e=Dr(e))===zr||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Ur(e){var t=Fr(e),n=t%1;return t==t?n?t-n:t:0}function Vr(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=Ur(e),function(){if(--e<1)return t.apply(this,arguments)}}function Kr(e){return e}function qr(e){if(!Mr(e))return!1;var t=xr(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Hr,Jr=pr["__core-js_shared__"],Yr=(Hr=/[^.]+$/.exec(Jr&&Jr.keys&&Jr.keys.IE_PROTO||""))?"Symbol(src)_1."+Hr:"";var Gr=Function.prototype.toString;function Zr(e){if(null!=e){try{return Gr.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Qr=/^\[object .+?Constructor\]$/,Xr=Function.prototype,eo=Object.prototype,to=Xr.toString,no=eo.hasOwnProperty,ro=RegExp("^"+to.call(no).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oo(e){return!(!Mr(e)||function(e){return!!Yr&&Yr in e}(e))&&(qr(e)?ro:Qr).test(Zr(e))}function io(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return oo(n)?n:void 0}var ao=io(pr,"WeakMap"),so=ao&&new ao,lo=so?function(e,t){return so.set(e,t),e}:Kr,uo=lo,co=Object.create,po=function(){function e(){}return function(t){if(!Mr(t))return{};if(co)return co(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),fo=po;function ho(e){return function(){var t=arguments;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]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=fo(e.prototype),r=e.apply(n,t);return Mr(r)?r:n}}function go(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var vo=Math.max;function mo(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=vo(i-a,0),c=Array(l+u),d=!r;++s<l;)c[s]=t[s];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;u--;)c[s++]=e[o++];return c}var yo=Math.max;function bo(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,c=yo(i-s,0),d=Array(c+u),p=!r;++o<c;)d[o]=e[o];for(var f=o;++l<u;)d[f+l]=t[l];for(;++a<s;)(p||o<i)&&(d[f+n[a]]=e[o++]);return d}function xo(){}function _o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function wo(){}_o.prototype=fo(xo.prototype),_o.prototype.constructor=_o;var So=so?function(e){return so.get(e)}:wo,Eo=So,ko={},Co=Object.prototype.hasOwnProperty;function Oo(e){for(var t=e.name+"",n=ko[t],r=Co.call(ko,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Ao(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function jo(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Lo(e){if(e instanceof _o)return e.clone();var t=new Ao(e.__wrapped__,e.__chain__);return t.__actions__=jo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}Ao.prototype=fo(xo.prototype),Ao.prototype.constructor=Ao;var Ro=Object.prototype.hasOwnProperty;function No(e){if(_r(e)&&!kr(e)&&!(e instanceof _o)){if(e instanceof Ao)return e;if(Ro.call(e,"__wrapped__"))return Lo(e)}return new Ao(e)}function Po(e){var t=Oo(e),n=No[t];if("function"!=typeof n||!(t in _o.prototype))return!1;if(e===n)return!0;var r=Eo(n);return!!r&&e===r[0]}No.prototype=xo.prototype,No.prototype.constructor=No;var Io=Date.now;function Mo(e){var t=0,n=0;return function(){var r=Io(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var To=Mo(uo),Bo=/\{\n\/\* \[wrapped with (.+)\] \*/,$o=/,? & /;var Wo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Do(e){return function(){return e}}var zo=function(){try{var e=io(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Fo=zo,Uo=Fo?function(e,t){return Fo(e,"toString",{configurable:!0,enumerable:!1,value:Do(t),writable:!0})}:Kr,Vo=Mo(Uo);function Ko(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function qo(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ho(e){return e!=e}function Jo(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):qo(e,Ho,n)}function Yo(e,t){return!!(null==e?0:e.length)&&Jo(e,t,0)>-1}var Go=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Zo(e,t,n){var r=t+"";return Vo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Wo,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ko(Go,function(n){var r="_."+n[0];t&n[1]&&!Yo(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Bo);return t?t[1].split($o):[]}(r),n)))}function Qo(e,t,n,r,o,i,a,s,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var d=[e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,s,l,u],p=n.apply(void 0,d);return Po(e)&&To(p,d),p.placeholder=r,Zo(p,e,t)}function Xo(e){return e.placeholder}var ei=/^(?:0|[1-9]\d*)$/;function ti(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ei.test(e))&&e>-1&&e%1==0&&e<t}var ni=Math.min;var ri="__lodash_placeholder__";function oi(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==ri||(e[n]=ri,i[o++]=n)}return i}function ii(e,t,n,r,o,i,a,s,l,u){var c=128&t,d=1&t,p=2&t,f=24&t,h=512&t,g=p?void 0:ho(e);return function v(){for(var m=arguments.length,y=Array(m),b=m;b--;)y[b]=arguments[b];if(f)var x=Xo(v),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,x);if(r&&(y=mo(y,r,o,f)),i&&(y=bo(y,i,a,f)),m-=_,f&&m<u){var w=oi(y,x);return Qo(e,t,ii,v.placeholder,n,y,w,s,l,u-m)}var S=d?n:this,E=p?S[e]:e;return m=y.length,s?y=function(e,t){for(var n=e.length,r=ni(t.length,n),o=jo(e);r--;){var i=t[r];e[r]=ti(i,n)?o[i]:void 0}return e}(y,s):h&&m>1&&y.reverse(),c&&l<m&&(y.length=l),this&&this!==pr&&this instanceof v&&(E=g||ho(E)),E.apply(S,y)}}var ai="__lodash_placeholder__",si=128,li=Math.min;var ui=Math.max;function ci(e,t,n,r,o,i,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),a=void 0===a?a:ui(Ur(a),0),s=void 0===s?s:Ur(s),u-=o?o.length:0,64&t){var c=r,d=o;r=o=void 0}var p=l?void 0:Eo(e),f=[e,t,n,r,o,c,d,i,a,s];if(p&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==si&&8==n||r==si&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?mo(l,s,t[4]):s,e[4]=l?oi(e[3],ai):t[4]}(s=t[5])&&(l=e[5],e[5]=l?bo(l,s,t[6]):s,e[6]=l?oi(e[5],ai):t[6]),(s=t[7])&&(e[7]=s),r&si&&(e[8]=null==e[8]?t[8]:li(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(f,p),e=f[0],t=f[1],n=f[2],r=f[3],o=f[4],!(s=f[9]=void 0===f[9]?l?0:e.length:ui(f[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?function(e,t,n){var r=ho(e);return function o(){for(var i=arguments.length,a=Array(i),s=i,l=Xo(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:oi(a,l);return(i-=u.length)<n?Qo(e,t,ii,o.placeholder,void 0,a,u,void 0,void 0,n-i):go(this&&this!==pr&&this instanceof o?r:e,this,a)}}(e,t,s):32!=t&&33!=t||o.length?ii.apply(void 0,f):function(e,t,n,r){var o=1&t,i=ho(e);return function t(){for(var a=-1,s=arguments.length,l=-1,u=r.length,c=Array(u+s),d=this&&this!==pr&&this instanceof t?i:e;++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++a];return go(d,o?n:this,c)}}(e,t,n,r);else var h=function(e,t,n){var r=1&t,o=ho(e);return function t(){return(this&&this!==pr&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Zo((p?uo:To)(h,f),e,t)}function di(e,t,n){return t=n?void 0:t,ci(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function pi(e,t,n){"__proto__"==t&&Fo?Fo(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function fi(e,t){return e===t||e!=e&&t!=t}var hi=Object.prototype.hasOwnProperty;function gi(e,t,n){var r=e[t];hi.call(e,t)&&fi(r,n)&&(void 0!==n||t in e)||pi(e,t,n)}function vi(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?pi(n,s,l):gi(n,s,l)}return n}var mi=Math.max;function yi(e,t,n){return t=mi(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=mi(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),go(e,this,s)}}function bi(e,t){return Vo(yi(e,t,Kr),e+"")}function xi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function _i(e){return null!=e&&xi(e.length)&&!qr(e)}function wi(e,t,n){if(!Mr(n))return!1;var r=typeof t;return!!("number"==r?_i(n)&&ti(t,n.length):"string"==r&&t in n)&&fi(n[t],e)}function Si(e){return bi(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&wi(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var Ei=Object.prototype;function ki(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ei)}function Ci(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Oi(e){return _r(e)&&"[object Arguments]"==xr(e)}var Ai=Object.prototype,ji=Ai.hasOwnProperty,Li=Ai.propertyIsEnumerable,Ri=Oi(function(){return arguments}())?Oi:function(e){return _r(e)&&ji.call(e,"callee")&&!Li.call(e,"callee")};function Ni(){return!1}var Pi="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ii=Pi&&"object"==typeof module&&module&&!module.nodeType&&module,Mi=Ii&&Ii.exports===Pi?pr.Buffer:void 0,Ti=(Mi?Mi.isBuffer:void 0)||Ni,Bi={};function $i(e){return function(t){return e(t)}}Bi["[object Float32Array]"]=Bi["[object Float64Array]"]=Bi["[object Int8Array]"]=Bi["[object Int16Array]"]=Bi["[object Int32Array]"]=Bi["[object Uint8Array]"]=Bi["[object Uint8ClampedArray]"]=Bi["[object Uint16Array]"]=Bi["[object Uint32Array]"]=!0,Bi["[object Arguments]"]=Bi["[object Array]"]=Bi["[object ArrayBuffer]"]=Bi["[object Boolean]"]=Bi["[object DataView]"]=Bi["[object Date]"]=Bi["[object Error]"]=Bi["[object Function]"]=Bi["[object Map]"]=Bi["[object Number]"]=Bi["[object Object]"]=Bi["[object RegExp]"]=Bi["[object Set]"]=Bi["[object String]"]=Bi["[object WeakMap]"]=!1;var Wi="object"==typeof exports&&exports&&!exports.nodeType&&exports,Di=Wi&&"object"==typeof module&&module&&!module.nodeType&&module,zi=Di&&Di.exports===Wi&&cr.process,Fi=function(){try{var e=Di&&Di.require&&Di.require("util").types;return e||zi&&zi.binding&&zi.binding("util")}catch(e){}}(),Ui=Fi&&Fi.isTypedArray,Vi=Ui?$i(Ui):function(e){return _r(e)&&xi(e.length)&&!!Bi[xr(e)]},Ki=Object.prototype.hasOwnProperty;function qi(e,t){var n=kr(e),r=!n&&Ri(e),o=!n&&!r&&Ti(e),i=!n&&!r&&!o&&Vi(e),a=n||r||o||i,s=a?Ci(e.length,String):[],l=s.length;for(var u in e)!t&&!Ki.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ti(u,l))||s.push(u);return s}function Hi(e,t){return function(n){return e(t(n))}}var Ji=Hi(Object.keys,Object),Yi=Object.prototype.hasOwnProperty;function Gi(e){if(!ki(e))return Ji(e);var t=[];for(var n in Object(e))Yi.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Zi(e){return _i(e)?qi(e):Gi(e)}var Qi=Object.prototype.hasOwnProperty,Xi=Si(function(e,t){if(ki(t)||_i(t))vi(t,Zi(t),e);else for(var n in t)Qi.call(t,n)&&gi(e,n,t[n])}),ea=Xi;var ta=Object.prototype.hasOwnProperty;function na(e){if(!Mr(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ki(e),n=[];for(var r in e)("constructor"!=r||!t&&ta.call(e,r))&&n.push(r);return n}function ra(e){return _i(e)?qi(e,!0):na(e)}var oa=Si(function(e,t){vi(t,ra(t),e)}),ia=oa,aa=Si(function(e,t,n,r){vi(t,ra(t),e,r)}),sa=aa,la=Si(function(e,t,n,r){vi(t,Zi(t),e,r)}),ua=la,ca=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,da=/^\w*$/;function pa(e,t){if(kr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!wr(e))||(da.test(e)||!ca.test(e)||null!=t&&e in Object(t))}var fa=io(Object,"create");var ha=Object.prototype.hasOwnProperty;var ga=Object.prototype.hasOwnProperty;function va(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ma(e,t){for(var n=e.length;n--;)if(fi(e[n][0],t))return n;return-1}va.prototype.clear=function(){this.__data__=fa?fa(null):{},this.size=0},va.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},va.prototype.get=function(e){var t=this.__data__;if(fa){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ha.call(t,e)?t[e]:void 0},va.prototype.has=function(e){var t=this.__data__;return fa?void 0!==t[e]:ga.call(t,e)},va.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=fa&&void 0===t?"__lodash_hash_undefined__":t,this};var ya=Array.prototype.splice;function ba(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ba.prototype.clear=function(){this.__data__=[],this.size=0},ba.prototype.delete=function(e){var t=this.__data__,n=ma(t,e);return!(n<0)&&(n==t.length-1?t.pop():ya.call(t,n,1),--this.size,!0)},ba.prototype.get=function(e){var t=this.__data__,n=ma(t,e);return n<0?void 0:t[n][1]},ba.prototype.has=function(e){return ma(this.__data__,e)>-1},ba.prototype.set=function(e,t){var n=this.__data__,r=ma(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var xa=io(pr,"Map");function _a(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function wa(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wa.prototype.clear=function(){this.size=0,this.__data__={hash:new va,map:new(xa||ba),string:new va}},wa.prototype.delete=function(e){var t=_a(this,e).delete(e);return this.size-=t?1:0,t},wa.prototype.get=function(e){return _a(this,e).get(e)},wa.prototype.has=function(e){return _a(this,e).has(e)},wa.prototype.set=function(e,t){var n=_a(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Sa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Sa.Cache||wa),n}Sa.Cache=wa;var Ea=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ka=/\\(\\)?/g,Ca=function(e){var t=Sa(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ea,function(e,n,r,o){t.push(r?o.replace(ka,"$1"):n||e)}),t}),Oa=Ca;function Aa(e){return null==e?"":Ar(e)}function ja(e,t){return kr(e)?e:pa(e,t)?[e]:Oa(Aa(e))}function La(e){if("string"==typeof e||wr(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ra(e,t){for(var n=0,r=(t=ja(t,e)).length;null!=e&&n<r;)e=e[La(t[n++])];return n&&n==r?e:void 0}function Na(e,t,n){var r=null==e?void 0:Ra(e,t);return void 0===r?n:r}function Pa(e,t){for(var n=-1,r=t.length,o=Array(r),i=null==e;++n<r;)o[n]=i?void 0:Na(e,t[n]);return o}function Ia(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ma=fr?fr.isConcatSpreadable:void 0;function Ta(e){return kr(e)||Ri(e)||!!(Ma&&e&&e[Ma])}function Ba(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Ta),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Ba(s,t-1,n,r,o):Ia(o,s):r||(o[o.length]=s)}return o}function $a(e){return(null==e?0:e.length)?Ba(e,1):[]}function Wa(e){return Vo(yi(e,void 0,$a),e+"")}var Da=Wa(Pa),za=Hi(Object.getPrototypeOf,Object),Fa=Function.prototype,Ua=Object.prototype,Va=Fa.toString,Ka=Ua.hasOwnProperty,qa=Va.call(Object);function Ha(e){if(!_r(e)||"[object Object]"!=xr(e))return!1;var t=za(e);if(null===t)return!0;var n=Ka.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Va.call(n)==qa}function Ja(e){if(!_r(e))return!1;var t=xr(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ha(e)}var Ya=bi(function(e,t){try{return go(e,void 0,t)}catch(e){return Ja(e)?e:new Error(e)}}),Ga=Ya;function Za(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=Ur(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Qa=bi(function(e,t,n){var r=1;if(n.length){var o=oi(n,Xo(Qa));r|=32}return ci(e,r,t,n,o)});Qa.placeholder={};var Xa=Qa,es=Wa(function(e,t){return Ko(t,function(t){t=La(t),pi(e,t,Xa(e[t],e))}),e}),ts=es,ns=bi(function(e,t,n){var r=3;if(n.length){var o=oi(n,Xo(ns));r|=32}return ci(t,r,e,n,o)});ns.placeholder={};var rs=ns;function os(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function is(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:os(e,t,n)}var as=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function ss(e){return as.test(e)}var ls="\\ud800-\\udfff",us="["+ls+"]",cs="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ds="\\ud83c[\\udffb-\\udfff]",ps="[^"+ls+"]",fs="(?:\\ud83c[\\udde6-\\uddff]){2}",hs="[\\ud800-\\udbff][\\udc00-\\udfff]",gs="(?:"+cs+"|"+ds+")"+"?",vs="[\\ufe0e\\ufe0f]?",ms=vs+gs+("(?:\\u200d(?:"+[ps,fs,hs].join("|")+")"+vs+gs+")*"),ys="(?:"+[ps+cs+"?",cs,fs,hs,us].join("|")+")",bs=RegExp(ds+"(?="+ds+")|"+ys+ms,"g");function xs(e){return ss(e)?function(e){return e.match(bs)||[]}(e):function(e){return e.split("")}(e)}function _s(e){return function(t){var n=ss(t=Aa(t))?xs(t):void 0,r=n?n[0]:t.charAt(0),o=n?is(n,1).join(""):t.slice(1);return r[e]()+o}}var ws=_s("toUpperCase");function Ss(e){return ws(Aa(e).toLowerCase())}function Es(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function ks(e){return function(t){return null==e?void 0:e[t]}}var Cs=ks({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Os=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,As=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function js(e){return(e=Aa(e))&&e.replace(Os,Cs).replace(As,"")}var Ls=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Rs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Ns="\\ud800-\\udfff",Ps="\\u2700-\\u27bf",Is="a-z\\xdf-\\xf6\\xf8-\\xff",Ms="A-Z\\xc0-\\xd6\\xd8-\\xde",Ts="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bs="["+Ts+"]",$s="\\d+",Ws="["+Ps+"]",Ds="["+Is+"]",zs="[^"+Ns+Ts+$s+Ps+Is+Ms+"]",Fs="(?:\\ud83c[\\udde6-\\uddff]){2}",Us="[\\ud800-\\udbff][\\udc00-\\udfff]",Vs="["+Ms+"]",Ks="(?:"+Ds+"|"+zs+")",qs="(?:"+Vs+"|"+zs+")",Hs="(?:['’](?:d|ll|m|re|s|t|ve))?",Js="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ys="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Gs="[\\ufe0e\\ufe0f]?",Zs=Gs+Ys+("(?:\\u200d(?:"+["[^"+Ns+"]",Fs,Us].join("|")+")"+Gs+Ys+")*"),Qs="(?:"+[Ws,Fs,Us].join("|")+")"+Zs,Xs=RegExp([Vs+"?"+Ds+"+"+Hs+"(?="+[Bs,Vs,"$"].join("|")+")",qs+"+"+Js+"(?="+[Bs,Vs+Ks,"$"].join("|")+")",Vs+"?"+Ks+"+"+Hs,Vs+"+"+Js,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$s,Qs].join("|"),"g");function el(e,t,n){return e=Aa(e),void 0===(t=n?void 0:t)?function(e){return Rs.test(e)}(e)?function(e){return e.match(Xs)||[]}(e):function(e){return e.match(Ls)||[]}(e):e.match(t)||[]}var tl=RegExp("['’]","g");function nl(e){return function(t){return Es(el(js(t).replace(tl,"")),e,"")}}var rl=nl(function(e,t,n){return t=t.toLowerCase(),e+(n?Ss(t):t)}),ol=rl;function il(){if(!arguments.length)return[];var e=arguments[0];return kr(e)?e:[e]}var al=pr.isFinite,sl=Math.min;function ll(e){var t=Math[e];return function(e,n){if(e=Dr(e),(n=null==n?0:sl(Ur(n),292))&&al(e)){var r=(Aa(e)+"e").split("e");return+((r=(Aa(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var ul=ll("ceil");function cl(e){var t=No(e);return t.__chain__=!0,t}var dl=Math.ceil,pl=Math.max;function fl(e,t,n){t=(n?wi(e,t,n):void 0===t)?1:pl(Ur(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(dl(r/t));o<r;)a[i++]=os(e,o,o+=t);return a}function hl(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function gl(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=Dr(n))==n?n:0),void 0!==t&&(t=(t=Dr(t))==t?t:0),hl(Dr(e),t,n)}function vl(e){var t=this.__data__=new ba(e);this.size=t.size}function ml(e,t){return e&&vi(t,Zi(t),e)}vl.prototype.clear=function(){this.__data__=new ba,this.size=0},vl.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},vl.prototype.get=function(e){return this.__data__.get(e)},vl.prototype.has=function(e){return this.__data__.has(e)},vl.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ba){var r=n.__data__;if(!xa||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wa(r)}return n.set(e,t),this.size=n.size,this};var yl="object"==typeof exports&&exports&&!exports.nodeType&&exports,bl=yl&&"object"==typeof module&&module&&!module.nodeType&&module,xl=bl&&bl.exports===yl?pr.Buffer:void 0,_l=xl?xl.allocUnsafe:void 0;function wl(e,t){if(t)return e.slice();var n=e.length,r=_l?_l(n):new e.constructor(n);return e.copy(r),r}function Sl(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function El(){return[]}var kl=Object.prototype.propertyIsEnumerable,Cl=Object.getOwnPropertySymbols,Ol=Cl?function(e){return null==e?[]:(e=Object(e),Sl(Cl(e),function(t){return kl.call(e,t)}))}:El,Al=Ol;var jl=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ia(t,Al(e)),e=za(e);return t}:El,Ll=jl;function Rl(e,t,n){var r=t(e);return kr(e)?r:Ia(r,n(e))}function Nl(e){return Rl(e,Zi,Al)}function Pl(e){return Rl(e,ra,Ll)}var Il=io(pr,"DataView"),Ml=io(pr,"Promise"),Tl=io(pr,"Set"),Bl="[object Map]",$l="[object Promise]",Wl="[object Set]",Dl="[object WeakMap]",zl="[object DataView]",Fl=Zr(Il),Ul=Zr(xa),Vl=Zr(Ml),Kl=Zr(Tl),ql=Zr(ao),Hl=xr;(Il&&Hl(new Il(new ArrayBuffer(1)))!=zl||xa&&Hl(new xa)!=Bl||Ml&&Hl(Ml.resolve())!=$l||Tl&&Hl(new Tl)!=Wl||ao&&Hl(new ao)!=Dl)&&(Hl=function(e){var t=xr(e),n="[object Object]"==t?e.constructor:void 0,r=n?Zr(n):"";if(r)switch(r){case Fl:return zl;case Ul:return Bl;case Vl:return $l;case Kl:return Wl;case ql:return Dl}return t});var Jl=Hl,Yl=Object.prototype.hasOwnProperty;var Gl=pr.Uint8Array;function Zl(e){var t=new e.constructor(e.byteLength);return new Gl(t).set(new Gl(e)),t}var Ql=/\w*$/;var Xl=fr?fr.prototype:void 0,eu=Xl?Xl.valueOf:void 0;function tu(e,t){var n=t?Zl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function nu(e,t,n){var r,o=e.constructor;switch(t){case"[object ArrayBuffer]":return Zl(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?Zl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return tu(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Ql.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,eu?Object(eu.call(r)):{}}}function ru(e){return"function"!=typeof e.constructor||ki(e)?{}:fo(za(e))}var ou=Fi&&Fi.isMap,iu=ou?$i(ou):function(e){return _r(e)&&"[object Map]"==Jl(e)};var au=Fi&&Fi.isSet,su=au?$i(au):function(e){return _r(e)&&"[object Set]"==Jl(e)},lu="[object Arguments]",uu="[object Function]",cu="[object Object]",du={};function pu(e,t,n,r,o,i){var a,s=1&t,l=2&t,u=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!Mr(e))return e;var c=kr(e);if(c){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Yl.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return jo(e,a)}else{var d=Jl(e),p=d==uu||"[object GeneratorFunction]"==d;if(Ti(e))return wl(e,s);if(d==cu||d==lu||p&&!o){if(a=l||p?{}:ru(e),!s)return l?function(e,t){return vi(e,Ll(e),t)}(e,function(e,t){return e&&vi(t,ra(t),e)}(a,e)):function(e,t){return vi(e,Al(e),t)}(e,ml(a,e))}else{if(!du[d])return o?e:{};a=nu(e,d,s)}}i||(i=new vl);var f=i.get(e);if(f)return f;i.set(e,a),su(e)?e.forEach(function(r){a.add(pu(r,t,n,r,e,i))}):iu(e)&&e.forEach(function(r,o){a.set(o,pu(r,t,n,o,e,i))});var h=c?void 0:(u?l?Pl:Nl:l?ra:Zi)(e);return Ko(h||e,function(r,o){h&&(r=e[o=r]),gi(a,o,pu(r,t,n,o,e,i))}),a}du[lu]=du["[object Array]"]=du["[object ArrayBuffer]"]=du["[object DataView]"]=du["[object Boolean]"]=du["[object Date]"]=du["[object Float32Array]"]=du["[object Float64Array]"]=du["[object Int8Array]"]=du["[object Int16Array]"]=du["[object Int32Array]"]=du["[object Map]"]=du["[object Number]"]=du[cu]=du["[object RegExp]"]=du["[object Set]"]=du["[object String]"]=du["[object Symbol]"]=du["[object Uint8Array]"]=du["[object Uint8ClampedArray]"]=du["[object Uint16Array]"]=du["[object Uint32Array]"]=!0,du["[object Error]"]=du[uu]=du["[object WeakMap]"]=!1;function fu(e){return pu(e,4)}function hu(e){return pu(e,5)}function gu(e,t){return pu(e,5,t="function"==typeof t?t:void 0)}function vu(e,t){return pu(e,4,t="function"==typeof t?t:void 0)}function mu(){return new Ao(this.value(),this.__chain__)}function yu(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}function bu(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Ia(kr(n)?jo(n):[n],Ba(t,1))}function xu(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wa;++t<n;)this.add(e[t])}function _u(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function wu(e,t){return e.has(t)}xu.prototype.add=xu.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},xu.prototype.has=function(e){return this.__data__.has(e)};function Su(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new xu:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var v=a?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==v){if(v)continue;p=!1;break}if(f){if(!_u(t,function(e,t){if(!wu(f,t)&&(h===e||o(h,e,n,r,i)))return f.push(t)})){p=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Eu(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ku(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Cu=fr?fr.prototype:void 0,Ou=Cu?Cu.valueOf:void 0;var Au=Object.prototype.hasOwnProperty;var ju="[object Arguments]",Lu="[object Array]",Ru="[object Object]",Nu=Object.prototype.hasOwnProperty;function Pu(e,t,n,r,o,i){var a=kr(e),s=kr(t),l=a?Lu:Jl(e),u=s?Lu:Jl(t),c=(l=l==ju?Ru:l)==Ru,d=(u=u==ju?Ru:u)==Ru,p=l==u;if(p&&Ti(e)){if(!Ti(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new vl),a||Vi(e)?Su(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Gl(e),new Gl(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return fi(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Eu;case"[object Set]":var l=1&r;if(s||(s=ku),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=Su(s(e),s(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(Ou)return Ou.call(e)==Ou.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var f=c&&Nu.call(e,"__wrapped__"),h=d&&Nu.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,v=h?t.value():t;return i||(i=new vl),o(g,v,n,r,i)}}return!!p&&(i||(i=new vl),function(e,t,n,r,o,i){var a=1&n,s=Nl(e),l=s.length;if(l!=Nl(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:Au.call(t,c)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var g=e[c=s[u]],v=t[c];if(r)var m=a?r(v,g,c,t,e,i):r(g,v,c,e,t,i);if(!(void 0===m?g===v||o(g,v,n,r,i):m)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,o,i))}function Iu(e,t,n,r,o){return e===t||(null==e||null==t||!_r(e)&&!_r(t)?e!=e&&t!=t:Pu(e,t,n,r,Iu,o))}function Mu(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new vl;if(r)var p=r(u,c,l,e,t,d);if(!(void 0===p?Iu(c,u,3,r,d):p))return!1}}return!0}function Tu(e){return e==e&&!Mr(e)}function Bu(e){for(var t=Zi(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Tu(o)]}return t}function $u(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function Wu(e){var t=Bu(e);return 1==t.length&&t[0][2]?$u(t[0][0],t[0][1]):function(n){return n===e||Mu(n,e,t)}}function Du(e,t){return null!=e&&t in Object(e)}function zu(e,t,n){for(var r=-1,o=(t=ja(t,e)).length,i=!1;++r<o;){var a=La(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&xi(o)&&ti(a,o)&&(kr(e)||Ri(e))}function Fu(e,t){return null!=e&&zu(e,t,Du)}function Uu(e,t){return pa(e)&&Tu(t)?$u(La(e),t):function(n){var r=Na(n,e);return void 0===r&&r===t?Fu(n,e):Iu(t,r,3)}}function Vu(e){return function(t){return null==t?void 0:t[e]}}function Ku(e){return pa(e)?Vu(La(e)):function(e){return function(t){return Ra(t,e)}}(e)}function qu(e){return"function"==typeof e?e:null==e?Kr:"object"==typeof e?kr(e)?Uu(e[0],e[1]):Wu(e):Ku(e)}function Hu(e){var t=null==e?0:e.length,n=qu;return e=t?Er(e,function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]}):[],bi(function(n){for(var r=-1;++r<t;){var o=e[r];if(go(o[0],this,n))return go(o[1],this,n)}})}function Ju(e,t,n){var r=n.length;if(null==e)return!r;for(e=Object(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Yu(e){return function(e){var t=Zi(e);return function(n){return Ju(n,e,t)}}(pu(e,1))}function Gu(e,t){return null==t||Ju(e,t,Zi(t))}function Zu(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Qu(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}var Xu=Qu();function ec(e,t){return e&&Xu(e,t,Zi)}function tc(e,t){return function(n,r){if(null==n)return n;if(!_i(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}var nc=tc(ec);function rc(e,t,n,r){return nc(e,function(e,o,i){t(r,e,n(e),i)}),r}function oc(e,t){return function(n,r){var o=kr(n)?Zu:rc,i=t?t():{};return o(n,e,qu(r),i)}}var ic=Object.prototype.hasOwnProperty,ac=oc(function(e,t,n){ic.call(e,n)?++e[n]:pi(e,n,1)}),sc=ac;function lc(e,t){var n=fo(e);return null==t?n:ml(n,t)}function uc(e,t,n){var r=ci(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=uc.placeholder,r}uc.placeholder={};function cc(e,t,n){var r=ci(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=cc.placeholder,r}cc.placeholder={};var dc=function(){return pr.Date.now()},pc=Math.max,fc=Math.min;function hc(e,t,n){var r,o,i,a,s,l,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=i}function g(){var e=dc();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?fc(n,i-(e-u)):n}(e))}function v(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function m(){var e=dc(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),c?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=Dr(t)||0,Mr(n)&&(c=!!n.leading,i=(d="maxWait"in n)?pc(Dr(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},m.flush=function(){return void 0===s?a:v(dc())},m}function gc(e,t){return null==e||e!=e?t:e}var vc=Object.prototype,mc=vc.hasOwnProperty,yc=bi(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&wi(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=ra(i),s=-1,l=a.length;++s<l;){var u=a[s],c=e[u];(void 0===c||fi(c,vc[u])&&!mc.call(e,u))&&(e[u]=i[u])}return e}),bc=yc;function xc(e,t,n){(void 0!==n&&!fi(e[t],n)||void 0===n&&!(t in e))&&pi(e,t,n)}function _c(e){return _r(e)&&_i(e)}function wc(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Sc(e){return vi(e,ra(e))}function Ec(e,t,n,r,o){e!==t&&Xu(t,function(i,a){if(o||(o=new vl),Mr(i))!function(e,t,n,r,o,i,a){var s=wc(e,n),l=wc(t,n),u=a.get(l);if(u)xc(e,n,u);else{var c=i?i(s,l,n+"",e,t,a):void 0,d=void 0===c;if(d){var p=kr(l),f=!p&&Ti(l),h=!p&&!f&&Vi(l);c=l,p||f||h?kr(s)?c=s:_c(s)?c=jo(s):f?(d=!1,c=wl(l,!0)):h?(d=!1,c=tu(l,!0)):c=[]:Ha(l)||Ri(l)?(c=s,Ri(s)?c=Sc(s):Mr(s)&&!qr(s)||(c=ru(l))):d=!1}d&&(a.set(l,c),o(c,l,r,i,a),a.delete(l)),xc(e,n,c)}}(e,t,a,n,Ec,r,o);else{var s=r?r(wc(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),xc(e,a,s)}},ra)}function kc(e,t,n,r,o,i){return Mr(e)&&Mr(t)&&(i.set(t,e),Ec(e,t,void 0,kc,i),i.delete(t)),e}var Cc=Si(function(e,t,n,r){Ec(e,t,n,r)}),Oc=Cc,Ac=bi(function(e){return e.push(void 0,kc),go(Oc,void 0,e)});function jc(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}var Lc=bi(function(e,t){return jc(e,1,t)}),Rc=Lc,Nc=bi(function(e,t,n){return jc(e,Dr(t)||0,n)}),Pc=Nc;function Ic(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Mc(e,t,n,r){var o=-1,i=Yo,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Er(t,$i(n))),r?(i=Ic,a=!1):t.length>=200&&(i=wu,a=!1,t=new xu(t));e:for(;++o<s;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var p=u;p--;)if(t[p]===d)continue e;l.push(c)}else i(t,d,r)||l.push(c)}return l}var Tc=bi(function(e,t){return _c(e)?Mc(e,Ba(t,1,_c,!0)):[]}),Bc=Tc;function $c(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Wc=bi(function(e,t){var n=$c(t);return _c(n)&&(n=void 0),_c(e)?Mc(e,Ba(t,1,_c,!0),qu(n)):[]}),Dc=Wc,zc=bi(function(e,t){var n=$c(t);return _c(n)&&(n=void 0),_c(e)?Mc(e,Ba(t,1,_c,!0),void 0,n):[]}),Fc=zc,Uc=jr(function(e,t){return e/t},1);function Vc(e,t,n){var r=null==e?0:e.length;return r?os(e,(t=n||void 0===t?1:Ur(t))<0?0:t,r):[]}function Kc(e,t,n){var r=null==e?0:e.length;return r?os(e,0,(t=r-(t=n||void 0===t?1:Ur(t)))<0?0:t):[]}function qc(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?os(e,r?0:i,r?i+1:o):os(e,r?i+1:0,r?o:i)}function Hc(e,t){return e&&e.length?qc(e,qu(t),!0,!0):[]}function Jc(e,t){return e&&e.length?qc(e,qu(t),!0):[]}function Yc(e){return"function"==typeof e?e:Kr}function Gc(e,t){return(kr(e)?Ko:nc)(e,Yc(t))}function Zc(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}var Qc=Qu(!0);function Xc(e,t){return e&&Qc(e,t,Zi)}var ed=tc(Xc,!0);function td(e,t){return(kr(e)?Zc:ed)(e,Yc(t))}function nd(e,t,n){e=Aa(e),t=Ar(t);var r=e.length,o=n=void 0===n?r:hl(Ur(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t}function rd(e){return function(t){var n=Jl(t);return"[object Map]"==n?Eu(t):"[object Set]"==n?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return Er(t,function(t){return[t,e[t]]})}(t,e(t))}}var od=rd(Zi),id=rd(ra),ad=ks({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),sd=/[&<>"']/g,ld=RegExp(sd.source);function ud(e){return(e=Aa(e))&&ld.test(e)?e.replace(sd,ad):e}var cd=/[\\^$.*+?()[\]{}|]/g,dd=RegExp(cd.source);function pd(e){return(e=Aa(e))&&dd.test(e)?e.replace(cd,"\\$&"):e}function fd(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function hd(e,t){var n=!0;return nc(e,function(e,r,o){return n=!!t(e,r,o)}),n}function gd(e,t,n){var r=kr(e)?fd:hd;return n&&wi(e,t,n)&&(t=void 0),r(e,qu(t))}function vd(e){return e?hl(Ur(e),0,4294967295):0}function md(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Ur(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:Ur(r))<0&&(r+=o),r=n>r?0:vd(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]}function yd(e,t){var n=[];return nc(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function bd(e,t){return(kr(e)?Sl:yd)(e,qu(t))}function xd(e){return function(t,n,r){var o=Object(t);if(!_i(t)){var i=qu(n);t=Zi(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var _d=Math.max;function wd(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ur(n);return o<0&&(o=_d(r+o,0)),qo(e,qu(t),o)}var Sd=xd(wd);function Ed(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function kd(e,t){return Ed(e,qu(t),ec)}var Cd=Math.max,Od=Math.min;function Ad(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=Ur(n),o=n<0?Cd(r+o,0):Od(o,r-1)),qo(e,qu(t),o,!0)}var jd=xd(Ad);function Ld(e,t){return Ed(e,qu(t),Xc)}function Rd(e){return e&&e.length?e[0]:void 0}function Nd(e,t){var n=-1,r=_i(e)?Array(e.length):[];return nc(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Pd(e,t){return(kr(e)?Er:Nd)(e,qu(t))}function Id(e,t){return Ba(Pd(e,t),1)}var Md=1/0;function Td(e,t){return Ba(Pd(e,t),Md)}function Bd(e,t,n){return n=void 0===n?1:Ur(n),Ba(Pd(e,t),n)}var $d=1/0;function Wd(e){return(null==e?0:e.length)?Ba(e,$d):[]}function Dd(e,t){return(null==e?0:e.length)?Ba(e,t=void 0===t?1:Ur(t)):[]}function zd(e){return ci(e,512)}var Fd=ll("floor");function Ud(e){return Wa(function(t){var n=t.length,r=n,o=Ao.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==Oo(i))var a=new Ao([],!0)}for(r=a?r:n;++r<n;){var s=Oo(i=t[r]),l="wrapper"==s?Eo(i):void 0;a=l&&Po(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Oo(l[0])].apply(a,l[3]):1==i.length&&Po(i)?a[s]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&kr(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}var Vd=Ud(),Kd=Ud(!0);function qd(e,t){return null==e?e:Xu(e,Yc(t),ra)}function Hd(e,t){return null==e?e:Qc(e,Yc(t),ra)}function Jd(e,t){return e&&ec(e,Yc(t))}function Yd(e,t){return e&&Xc(e,Yc(t))}function Gd(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function Zd(e,t){return Sl(t,function(t){return qr(e[t])})}function Qd(e){return null==e?[]:Zd(e,Zi(e))}function Xd(e){return null==e?[]:Zd(e,ra(e))}var ep=Object.prototype.hasOwnProperty,tp=oc(function(e,t,n){ep.call(e,n)?e[n].push(t):pi(e,n,[t])}),np=tp;function rp(e,t){return e>t}function op(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Dr(t),n=Dr(n)),e(t,n)}}var ip=op(rp),ap=op(function(e,t){return e>=t}),sp=Object.prototype.hasOwnProperty;function lp(e,t){return null!=e&&sp.call(e,t)}function up(e,t){return null!=e&&zu(e,t,lp)}var cp=Math.max,dp=Math.min;function pp(e,t,n){return t=Fr(t),void 0===n?(n=t,t=0):n=Fr(n),function(e,t,n){return e>=dp(t,n)&&e<cp(t,n)}(e=Dr(e),t,n)}function fp(e){return"string"==typeof e||!kr(e)&&_r(e)&&"[object String]"==xr(e)}function hp(e,t){return Er(t,function(t){return e[t]})}function gp(e){return null==e?[]:hp(e,Zi(e))}var vp=Math.max;function mp(e,t,n,r){e=_i(e)?e:gp(e),n=n&&!r?Ur(n):0;var o=e.length;return n<0&&(n=vp(o+n,0)),fp(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Jo(e,t,n)>-1}var yp=Math.max;function bp(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ur(n);return o<0&&(o=yp(r+o,0)),Jo(e,t,o)}function xp(e){return(null==e?0:e.length)?os(e,0,-1):[]}var _p=Math.min;function wp(e,t,n){for(var r=n?Ic:Yo,o=e[0].length,i=e.length,a=i,s=Array(i),l=1/0,u=[];a--;){var c=e[a];a&&t&&(c=Er(c,$i(t))),l=_p(c.length,l),s[a]=!n&&(t||o>=120&&c.length>=120)?new xu(a&&c):void 0}c=e[0];var d=-1,p=s[0];e:for(;++d<o&&u.length<l;){var f=c[d],h=t?t(f):f;if(f=n||0!==f?f:0,!(p?wu(p,h):r(u,h,n))){for(a=i;--a;){var g=s[a];if(!(g?wu(g,h):r(e[a],h,n)))continue e}p&&p.push(h),u.push(f)}}return u}function Sp(e){return _c(e)?e:[]}var Ep=bi(function(e){var t=Er(e,Sp);return t.length&&t[0]===e[0]?wp(t):[]}),kp=bi(function(e){var t=$c(e),n=Er(e,Sp);return t===$c(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?wp(n,qu(t)):[]}),Cp=kp,Op=bi(function(e){var t=$c(e),n=Er(e,Sp);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?wp(n,void 0,t):[]});function Ap(e,t){return function(n,r){return function(e,t,n,r){return ec(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}var jp=Object.prototype.toString,Lp=Ap(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=jp.call(t)),e[t]=n},Do(Kr)),Rp=Lp,Np=Object.prototype,Pp=Np.hasOwnProperty,Ip=Np.toString,Mp=Ap(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ip.call(t)),Pp.call(e,t)?e[t].push(n):e[t]=[n]},qu),Tp=Mp;function Bp(e,t){return t.length<2?e:Ra(e,os(t,0,-1))}function $p(e,t,n){var r=null==(e=Bp(e,t=ja(t,e)))?e:e[La($c(t))];return null==r?void 0:go(r,e,n)}var Wp=bi($p),Dp=bi(function(e,t,n){var r=-1,o="function"==typeof t,i=_i(e)?Array(e.length):[];return nc(e,function(e){i[++r]=o?go(t,e,n):$p(e,t,n)}),i}),zp=Dp;var Fp=Fi&&Fi.isArrayBuffer,Up=Fp?$i(Fp):function(e){return _r(e)&&"[object ArrayBuffer]"==xr(e)};function Vp(e){return!0===e||!1===e||_r(e)&&"[object Boolean]"==xr(e)}var Kp=Fi&&Fi.isDate,qp=Kp?$i(Kp):function(e){return _r(e)&&"[object Date]"==xr(e)};function Hp(e){return _r(e)&&1===e.nodeType&&!Ha(e)}var Jp=Object.prototype.hasOwnProperty;function Yp(e){if(null==e)return!0;if(_i(e)&&(kr(e)||"string"==typeof e||"function"==typeof e.splice||Ti(e)||Vi(e)||Ri(e)))return!e.length;var t=Jl(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(ki(e))return!Gi(e).length;for(var n in e)if(Jp.call(e,n))return!1;return!0}function Gp(e,t){return Iu(e,t)}function Zp(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Iu(e,t,void 0,n):!!r}var Qp=pr.isFinite;function Xp(e){return"number"==typeof e&&Qp(e)}function ef(e){return"number"==typeof e&&e==Ur(e)}function tf(e,t){return e===t||Mu(e,t,Bu(t))}function nf(e,t,n){return n="function"==typeof n?n:void 0,Mu(e,t,Bu(t),n)}function rf(e){return"number"==typeof e||_r(e)&&"[object Number]"==xr(e)}function of(e){return rf(e)&&e!=+e}var af=Jr?qr:Ni;function sf(e){if(af(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return oo(e)}function lf(e){return null==e}function uf(e){return null===e}var cf=Fi&&Fi.isRegExp,df=cf?$i(cf):function(e){return _r(e)&&"[object RegExp]"==xr(e)},pf=9007199254740991;function ff(e){return ef(e)&&e>=-9007199254740991&&e<=pf}function hf(e){return void 0===e}function gf(e){return _r(e)&&"[object WeakMap]"==Jl(e)}function vf(e){return _r(e)&&"[object WeakSet]"==xr(e)}function mf(e){return qu("function"==typeof e?e:pu(e,1))}var yf=Array.prototype.join;function bf(e,t){return null==e?"":yf.call(e,t)}var xf=nl(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),_f=xf,wf=oc(function(e,t,n){pi(e,n,t)}),Sf=wf;var Ef=Math.max,kf=Math.min;function Cf(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=Ur(n))<0?Ef(r+o,0):kf(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):qo(e,Ho,o,!0)}var Of=nl(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Af=Of,jf=_s("toLowerCase");function Lf(e,t){return e<t}var Rf=op(Lf),Nf=op(function(e,t){return e<=t});function Pf(e,t){var n={};return t=qu(t),ec(e,function(e,r,o){pi(n,t(e,r,o),e)}),n}function If(e,t){var n={};return t=qu(t),ec(e,function(e,r,o){pi(n,r,t(e,r,o))}),n}function Mf(e){return Wu(pu(e,1))}function Tf(e,t){return Uu(e,pu(t,1))}function Bf(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!wr(a):n(a,s)))var s=a,l=i}return l}function $f(e){return e&&e.length?Bf(e,Kr,rp):void 0}function Wf(e,t){return e&&e.length?Bf(e,qu(t),rp):void 0}function Df(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function zf(e,t){var n=null==e?0:e.length;return n?Df(e,t)/n:NaN}function Ff(e){return zf(e,Kr)}function Uf(e,t){return zf(e,qu(t))}var Vf=Si(function(e,t,n){Ec(e,t,n)}),Kf=Vf,qf=bi(function(e,t){return function(n){return $p(n,e,t)}}),Hf=qf,Jf=bi(function(e,t){return function(n){return $p(e,n,t)}}),Yf=Jf;function Gf(e){return e&&e.length?Bf(e,Kr,Lf):void 0}function Zf(e,t){return e&&e.length?Bf(e,qu(t),Lf):void 0}function Qf(e,t,n){var r=Zi(t),o=Zd(t,r),i=!(Mr(n)&&"chain"in n&&!n.chain),a=qr(e);return Ko(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=jo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ia([this.value()],arguments))})}),e}var Xf=jr(function(e,t){return e*t},1);function eh(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var th=fr?fr.iterator:void 0;function nh(e){if(!e)return[];if(_i(e))return fp(e)?xs(e):jo(e);if(th&&e[th])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[th]());var t=Jl(e);return("[object Map]"==t?Eu:"[object Set]"==t?ku:gp)(e)}function rh(){void 0===this.__values__&&(this.__values__=nh(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function oh(e,t){var n=e.length;if(n)return ti(t+=t<0?n:0,n)?e[t]:void 0}function ih(e,t){return e&&e.length?oh(e,Ur(t)):void 0}function ah(e){return e=Ur(e),bi(function(t){return oh(t,e)})}var sh=Object.prototype.hasOwnProperty;function lh(e,t){var n=-1,r=(t=ja(t,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var i=t[n];if("string"==typeof i){if("__proto__"===i&&!sh.call(e,"__proto__"))return!1;if("constructor"===i&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(o&&0===n)continue;return!1}}}var a=Bp(e,t);return null==a||delete a[La($c(t))]}function uh(e){return Ha(e)?void 0:e}var ch=Wa(function(e,t){var n={};if(null==e)return n;var r=!1;t=Er(t,function(t){return t=ja(t,e),r||(r=t.length>1),t}),vi(e,Pl(e),n),r&&(n=pu(n,7,uh));for(var o=t.length;o--;)lh(n,t[o]);return n}),dh=ch;function ph(e,t,n,r){if(!Mr(e))return e;for(var o=-1,i=(t=ja(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=La(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var c=s[l];void 0===(u=r?r(c,l,s):void 0)&&(u=Mr(c)?c:ti(t[o+1])?[]:{})}gi(s,l,u),s=s[l]}return e}function fh(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Ra(e,a);n(s,a)&&ph(i,ja(a,e),s)}return i}function hh(e,t){if(null==e)return{};var n=Er(Pl(e),function(e){return[e]});return t=qu(t),fh(e,n,function(e,n){return t(e,n[0])})}function gh(e,t){return hh(e,eh(qu(t)))}function vh(e){return Za(2,e)}function mh(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=wr(e),a=void 0!==t,s=null===t,l=t==t,u=wr(t);if(!s&&!u&&!i&&e>t||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0}function yh(e,t,n){t=t.length?Er(t,function(e){return kr(e)?function(t){return Ra(t,1===e.length?e[0]:e)}:e}):[Kr];var r=-1;t=Er(t,$i(qu));var o=Nd(e,function(e,n,o){var i=Er(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=mh(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function bh(e,t,n,r){return null==e?[]:(kr(t)||(t=null==t?[]:[t]),kr(n=r?void 0:n)||(n=null==n?[]:[n]),yh(e,t,n))}function xh(e){return Wa(function(t){return t=Er(t,$i(qu)),bi(function(n){var r=this;return e(t,function(e){return go(e,r,n)})})})}var _h=xh(Er),wh=bi,Sh=Math.min,Eh=wh(function(e,t){var n=(t=1==t.length&&kr(t[0])?Er(t[0],$i(qu)):Er(Ba(t,1),$i(qu))).length;return bi(function(r){for(var o=-1,i=Sh(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return go(e,this,r)})}),kh=Eh,Ch=xh(fd),Oh=xh(_u),Ah=Math.floor;function jh(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Ah(t/2))&&(e+=e)}while(t);return n}var Lh=Vu("length"),Rh="\\ud800-\\udfff",Nh="["+Rh+"]",Ph="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ih="\\ud83c[\\udffb-\\udfff]",Mh="[^"+Rh+"]",Th="(?:\\ud83c[\\udde6-\\uddff]){2}",Bh="[\\ud800-\\udbff][\\udc00-\\udfff]",$h="(?:"+Ph+"|"+Ih+")"+"?",Wh="[\\ufe0e\\ufe0f]?",Dh=Wh+$h+("(?:\\u200d(?:"+[Mh,Th,Bh].join("|")+")"+Wh+$h+")*"),zh="(?:"+[Mh+Ph+"?",Ph,Th,Bh,Nh].join("|")+")",Fh=RegExp(Ih+"(?="+Ih+")|"+zh+Dh,"g");function Uh(e){return ss(e)?function(e){for(var t=Fh.lastIndex=0;Fh.test(e);)++t;return t}(e):Lh(e)}var Vh=Math.ceil;function Kh(e,t){var n=(t=void 0===t?" ":Ar(t)).length;if(n<2)return n?jh(t,e):t;var r=jh(t,Vh(e/Uh(t)));return ss(t)?is(xs(r),0,e).join(""):r.slice(0,e)}var qh=Math.ceil,Hh=Math.floor;function Jh(e,t,n){e=Aa(e);var r=(t=Ur(t))?Uh(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Kh(Hh(o),n)+e+Kh(qh(o),n)}function Yh(e,t,n){e=Aa(e);var r=(t=Ur(t))?Uh(e):0;return t&&r<t?e+Kh(t-r,n):e}function Gh(e,t,n){e=Aa(e);var r=(t=Ur(t))?Uh(e):0;return t&&r<t?Kh(t-r,n)+e:e}var Zh=/^\s+/,Qh=pr.parseInt;function Xh(e,t,n){return n||null==t?t=0:t&&(t=+t),Qh(Aa(e).replace(Zh,""),t||0)}var eg=bi(function(e,t){return ci(e,32,void 0,t,oi(t,Xo(eg)))});eg.placeholder={};var tg=eg,ng=bi(function(e,t){return ci(e,64,void 0,t,oi(t,Xo(ng)))});ng.placeholder={};var rg=ng,og=oc(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ig=og;var ag=Wa(function(e,t){return null==e?{}:function(e,t){return fh(e,t,function(t,n){return Fu(e,n)})}(e,t)}),sg=ag;function lg(e){for(var t,n=this;n instanceof xo;){var r=Lo(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function ug(e){return function(t){return null==e?void 0:Ra(e,t)}}function cg(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var dg=Array.prototype.splice;function pg(e,t,n,r){var o=r?cg:Jo,i=-1,a=t.length,s=e;for(e===t&&(t=jo(t)),n&&(s=Er(e,$i(n)));++i<a;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(s,c,l,r))>-1;)s!==e&&dg.call(s,l,1),dg.call(e,l,1);return e}function fg(e,t){return e&&e.length&&t&&t.length?pg(e,t):e}var hg=bi(fg);function gg(e,t,n){return e&&e.length&&t&&t.length?pg(e,t,qu(n)):e}function vg(e,t,n){return e&&e.length&&t&&t.length?pg(e,t,void 0,n):e}var mg=Array.prototype.splice;function yg(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ti(o)?mg.call(e,o,1):lh(e,o)}}return e}var bg=Wa(function(e,t){var n=null==e?0:e.length,r=Pa(e,t);return yg(e,Er(t,function(e){return ti(e,n)?+e:e}).sort(mh)),r}),xg=bg,_g=Math.floor,wg=Math.random;function Sg(e,t){return e+_g(wg()*(t-e+1))}var Eg=parseFloat,kg=Math.min,Cg=Math.random;function Og(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=Fr(e),void 0===t?(t=e,e=0):t=Fr(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Cg();return kg(e+o*(t-e+Eg("1e-"+((o+"").length-1))),t)}return Sg(e,t)}var Ag=Math.ceil,jg=Math.max;function Lg(e){return function(t,n,r){return r&&"number"!=typeof r&&wi(t,n,r)&&(n=r=void 0),t=Fr(t),void 0===n?(n=t,t=0):n=Fr(n),function(e,t,n,r){for(var o=-1,i=jg(Ag((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:Fr(r),e)}}var Rg=Lg(),Ng=Lg(!0),Pg=Wa(function(e,t){return ci(e,256,void 0,void 0,void 0,t)}),Ig=Pg;function Mg(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Tg(e,t,n){var r=kr(e)?Es:Mg,o=arguments.length<3;return r(e,qu(t),n,o,nc)}function Bg(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function $g(e,t,n){var r=kr(e)?Bg:Mg,o=arguments.length<3;return r(e,qu(t),n,o,ed)}function Wg(e,t){return(kr(e)?Sl:yd)(e,eh(qu(t)))}function Dg(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=qu(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return yg(e,o),n}function zg(e,t,n){return t=(n?wi(e,t,n):void 0===t)?1:Ur(t),jh(Aa(e),t)}function Fg(){var e=arguments,t=Aa(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function Ug(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return bi(e,t=void 0===t?t:Ur(t))}function Vg(e,t,n){var r=-1,o=(t=ja(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[La(t[r])];void 0===i&&(r=o,i=n),e=qr(i)?i.call(e):i}return e}var Kg=Array.prototype.reverse;function qg(e){return null==e?e:Kg.call(e)}var Hg=ll("round");function Jg(e){var t=e.length;return t?e[Sg(0,t-1)]:void 0}function Yg(e){return Jg(gp(e))}function Gg(e){return(kr(e)?Jg:Yg)(e)}function Zg(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Sg(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function Qg(e,t){return Zg(jo(e),hl(t,0,e.length))}function Xg(e,t){var n=gp(e);return Zg(n,hl(t,0,n.length))}function ev(e,t,n){return t=(n?wi(e,t,n):void 0===t)?1:Ur(t),(kr(e)?Qg:Xg)(e,t)}function tv(e,t,n){return null==e?e:ph(e,t,n)}function nv(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ph(e,t,n,r)}function rv(e){return Zg(jo(e))}function ov(e){return Zg(gp(e))}function iv(e){return(kr(e)?rv:ov)(e)}function av(e){if(null==e)return 0;if(_i(e))return fp(e)?Uh(e):e.length;var t=Jl(e);return"[object Map]"==t||"[object Set]"==t?e.size:Gi(e).length}function sv(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=r):(t=null==t?0:Ur(t),n=void 0===n?r:Ur(n)),os(e,t,n)):[]}var lv=nl(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),uv=lv;function cv(e,t){var n;return nc(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function dv(e,t,n){var r=kr(e)?_u:cv;return n&&wi(e,t,n)&&(t=void 0),r(e,qu(t))}var pv=bi(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),yh(e,Ba(t,1),[])}),fv=pv,hv=Math.floor,gv=Math.min;function vv(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,s=null===t,l=wr(t),u=void 0===t;o<i;){var c=hv((o+i)/2),d=n(e[c]),p=void 0!==d,f=null===d,h=d==d,g=wr(d);if(a)var v=r||h;else v=u?h&&(r||p):s?h&&p&&(r||!f):l?h&&p&&!f&&(r||!g):!f&&!g&&(r?d<=t:d<t);v?o=c+1:i=c}return gv(i,4294967294)}function mv(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!wr(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return vv(e,t,Kr,n)}function yv(e,t){return mv(e,t)}function bv(e,t,n){return vv(e,t,qu(n))}function xv(e,t){var n=null==e?0:e.length;if(n){var r=mv(e,t);if(r<n&&fi(e[r],t))return r}return-1}function _v(e,t){return mv(e,t,!0)}function wv(e,t,n){return vv(e,t,qu(n),!0)}function Sv(e,t){if(null==e?0:e.length){var n=mv(e,t,!0)-1;if(fi(e[n],t))return n}return-1}function Ev(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!fi(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function kv(e){return e&&e.length?Ev(e):[]}function Cv(e,t){return e&&e.length?Ev(e,qu(t)):[]}function Ov(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=Aa(e))&&("string"==typeof t||null!=t&&!df(t))&&!(t=Ar(t))&&ss(e)?is(xs(e),0,n):e.split(t,n):[]}var Av=Math.max;function jv(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:Av(Ur(t),0),bi(function(n){var r=n[t],o=is(n,0,t);return r&&Ia(o,r),go(e,this,o)})}var Lv=nl(function(e,t,n){return e+(n?" ":"")+ws(t)}),Rv=Lv;function Nv(e,t,n){return e=Aa(e),n=null==n?0:hl(Ur(n),0,e.length),t=Ar(t),e.slice(n,n+t.length)==t}function Pv(){return{}}function Iv(){return""}function Mv(){return!0}var Tv=jr(function(e,t){return e-t},0);function Bv(e){return e&&e.length?Df(e,Kr):0}function $v(e,t){return e&&e.length?Df(e,qu(t)):0}function Wv(e){var t=null==e?0:e.length;return t?os(e,1,t):[]}function Dv(e,t,n){return e&&e.length?os(e,0,(t=n||void 0===t?1:Ur(t))<0?0:t):[]}function zv(e,t,n){var r=null==e?0:e.length;return r?os(e,(t=r-(t=n||void 0===t?1:Ur(t)))<0?0:t,r):[]}function Fv(e,t){return e&&e.length?qc(e,qu(t),!1,!0):[]}function Uv(e,t){return e&&e.length?qc(e,qu(t)):[]}function Vv(e,t){return t(e),e}var Kv=Object.prototype,qv=Kv.hasOwnProperty;function Hv(e,t,n,r){return void 0===e||fi(e,Kv[n])&&!qv.call(r,n)?t:e}var Jv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Yv(e){return"\\"+Jv[e]}var Gv=/<%=([\s\S]+?)%>/g,Zv={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Gv,variable:"",imports:{_:{escape:ud}}},Qv=/\b__p \+= '';/g,Xv=/\b(__p \+=) '' \+/g,em=/(__e\(.*?\)|\b__t\)) \+\n'';/g,tm=/[()=,{}\[\]\/\s]/,nm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rm=/($^)/,om=/['\n\r\u2028\u2029\\]/g,im=Object.prototype.hasOwnProperty;function am(e,t,n){var r=Zv.imports._.templateSettings||Zv;n&&wi(e,t,n)&&(t=void 0),e=Aa(e),t=sa({},t,r,Hv);var o,i,a=sa({},t.imports,r.imports,Hv),s=Zi(a),l=hp(a,s),u=0,c=t.interpolate||rm,d="__p += '",p=RegExp((t.escape||rm).source+"|"+c.source+"|"+(c===Gv?nm:rm).source+"|"+(t.evaluate||rm).source+"|$","g"),f=im.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,function(t,n,r,a,s,l){return r||(r=a),d+=e.slice(u,l).replace(om,Yv),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),d+="';\n";var h=im.call(t,"variable")&&t.variable;if(h){if(tm.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(Qv,""):d).replace(Xv,"$1").replace(em,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Ga(function(){return Function(s,f+"return "+d).apply(void 0,l)});if(g.source=d,Ja(g))throw g;return g}function sm(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Mr(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),hc(e,t,{leading:r,maxWait:t,trailing:o})}function lm(e,t){return t(e)}var um=4294967295,cm=Math.min;function dm(e,t){if((e=Ur(e))<1||e>9007199254740991)return[];var n=um,r=cm(e,um);t=Yc(t),e-=um;for(var o=Ci(r,t);++n<e;)t(n);return o}function pm(){return this}function fm(e,t){var n=e;return n instanceof _o&&(n=n.value()),Es(t,function(e,t){return t.func.apply(t.thisArg,Ia([e],t.args))},n)}function hm(){return fm(this.__wrapped__,this.__actions__)}function gm(e){return Aa(e).toLowerCase()}function vm(e){return kr(e)?Er(e,La):wr(e)?[e]:jo(Oa(Aa(e)))}var mm=9007199254740991;function ym(e){return e?hl(Ur(e),-9007199254740991,mm):0===e?e:0}function bm(e){return Aa(e).toUpperCase()}function xm(e,t,n){var r=kr(e),o=r||Ti(e)||Vi(e);if(t=qu(t),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Mr(e)&&qr(i)?fo(za(e)):{}}return(o?Ko:ec)(e,function(e,r,o){return t(n,e,r,o)}),n}function _m(e,t){for(var n=e.length;n--&&Jo(t,e[n],0)>-1;);return n}function wm(e,t){for(var n=-1,r=e.length;++n<r&&Jo(t,e[n],0)>-1;);return n}function Sm(e,t,n){if((e=Aa(e))&&(n||void 0===t))return Ir(e);if(!e||!(t=Ar(t)))return e;var r=xs(e),o=xs(t);return is(r,wm(r,o),_m(r,o)+1).join("")}function Em(e,t,n){if((e=Aa(e))&&(n||void 0===t))return e.slice(0,Nr(e)+1);if(!e||!(t=Ar(t)))return e;var r=xs(e);return is(r,0,_m(r,xs(t))+1).join("")}var km=/^\s+/;function Cm(e,t,n){if((e=Aa(e))&&(n||void 0===t))return e.replace(km,"");if(!e||!(t=Ar(t)))return e;var r=xs(e);return is(r,wm(r,xs(t))).join("")}var Om=/\w*$/;function Am(e,t){var n=30,r="...";if(Mr(t)){var o="separator"in t?t.separator:o;n="length"in t?Ur(t.length):n,r="omission"in t?Ar(t.omission):r}var i=(e=Aa(e)).length;if(ss(e)){var a=xs(e);i=a.length}if(n>=i)return e;var s=n-Uh(r);if(s<1)return r;var l=a?is(a,0,s).join(""):e.slice(0,s);if(void 0===o)return l+r;if(a&&(s+=l.length-s),df(o)){if(e.slice(s).search(o)){var u,c=l;for(o.global||(o=RegExp(o.source,Aa(Om.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var d=u.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Ar(o),s)!=s){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r}function jm(e){return di(e,1)}var Lm=ks({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Rm=/&(?:amp|lt|gt|quot|#39);/g,Nm=RegExp(Rm.source);function Pm(e){return(e=Aa(e))&&Nm.test(e)?e.replace(Rm,Lm):e}var Im=Tl&&1/ku(new Tl([,-0]))[1]==1/0?function(e){return new Tl(e)}:wo,Mm=Im;function Tm(e,t,n){var r=-1,o=Yo,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Ic;else if(i>=200){var u=t?null:Mm(e);if(u)return ku(u);a=!1,o=wu,l=new xu}else l=t?[]:s;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var Bm=bi(function(e){return Tm(Ba(e,1,_c,!0))}),$m=bi(function(e){var t=$c(e);return _c(t)&&(t=void 0),Tm(Ba(e,1,_c,!0),qu(t))}),Wm=$m,Dm=bi(function(e){var t=$c(e);return t="function"==typeof t?t:void 0,Tm(Ba(e,1,_c,!0),void 0,t)});function zm(e){return e&&e.length?Tm(e):[]}function Fm(e,t){return e&&e.length?Tm(e,qu(t)):[]}function Um(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Tm(e,void 0,t):[]}var Vm=0;function Km(e){var t=++Vm;return Aa(e)+t}function qm(e,t){return null==e||lh(e,t)}var Hm=Math.max;function Jm(e){if(!e||!e.length)return[];var t=0;return e=Sl(e,function(e){if(_c(e))return t=Hm(e.length,t),!0}),Ci(t,function(t){return Er(e,Vu(t))})}function Ym(e,t){if(!e||!e.length)return[];var n=Jm(e);return null==t?n:Er(n,function(e){return go(t,void 0,e)})}function Gm(e,t,n,r){return ph(e,t,n(Ra(e,t)),r)}function Zm(e,t,n){return null==e?e:Gm(e,t,Yc(n))}function Qm(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Gm(e,t,Yc(n),r)}var Xm=nl(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ey=Xm;function ty(e){return null==e?[]:hp(e,ra(e))}var ny=bi(function(e,t){return _c(e)?Mc(e,t):[]}),ry=ny;function oy(e,t){return tg(Yc(t),e)}var iy=Wa(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Pa(t,e)};return!(t>1||this.__actions__.length)&&r instanceof _o&&ti(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:lm,args:[o],thisArg:void 0}),new Ao(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(void 0),e})):this.thru(o)}),ay=iy;function sy(){return cl(this)}function ly(){var e=this.__wrapped__;if(e instanceof _o){var t=e;return this.__actions__.length&&(t=new _o(this)),(t=t.reverse()).__actions__.push({func:lm,args:[qg],thisArg:void 0}),new Ao(t,this.__chain__)}return this.thru(qg)}function uy(e,t,n){var r=e.length;if(r<2)return r?Tm(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=Mc(i[o]||a,e[s],t,n));return Tm(Ba(i,1),t,n)}var cy=bi(function(e){return uy(Sl(e,_c))}),dy=bi(function(e){var t=$c(e);return _c(t)&&(t=void 0),uy(Sl(e,_c),qu(t))}),py=dy,fy=bi(function(e){var t=$c(e);return t="function"==typeof t?t:void 0,uy(Sl(e,_c),void 0,t)}),hy=bi(Jm);function gy(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}function vy(e,t){return gy(e||[],t||[],gi)}function my(e,t){return gy(e||[],t||[],ph)}var yy=bi(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Ym(e,n)}),by=yy,xy={chunk:fl,compact:yu,concat:bu,difference:Bc,differenceBy:Dc,differenceWith:Fc,drop:Vc,dropRight:Kc,dropRightWhile:Hc,dropWhile:Jc,fill:md,findIndex:wd,findLastIndex:Ad,first:Rd,flatten:$a,flattenDeep:Wd,flattenDepth:Dd,fromPairs:Gd,head:Rd,indexOf:bp,initial:xp,intersection:Ep,intersectionBy:Cp,intersectionWith:Op,join:bf,last:$c,lastIndexOf:Cf,nth:ih,pull:hg,pullAll:fg,pullAllBy:gg,pullAllWith:vg,pullAt:xg,remove:Dg,reverse:qg,slice:sv,sortedIndex:yv,sortedIndexBy:bv,sortedIndexOf:xv,sortedLastIndex:_v,sortedLastIndexBy:wv,sortedLastIndexOf:Sv,sortedUniq:kv,sortedUniqBy:Cv,tail:Wv,take:Dv,takeRight:zv,takeRightWhile:Fv,takeWhile:Uv,union:Bm,unionBy:Wm,unionWith:Dm,uniq:zm,uniqBy:Fm,uniqWith:Um,unzip:Jm,unzipWith:Ym,without:ry,xor:cy,xorBy:py,xorWith:fy,zip:hy,zipObject:vy,zipObjectDeep:my,zipWith:by},_y={countBy:sc,each:Gc,eachRight:td,every:gd,filter:bd,find:Sd,findLast:jd,flatMap:Id,flatMapDeep:Td,flatMapDepth:Bd,forEach:Gc,forEachRight:td,groupBy:np,includes:mp,invokeMap:zp,keyBy:Sf,map:Pd,orderBy:bh,partition:ig,reduce:Tg,reduceRight:$g,reject:Wg,sample:Gg,sampleSize:ev,shuffle:iv,size:av,some:dv,sortBy:fv},wy={now:dc},Sy={after:Vr,ary:di,before:Za,bind:Xa,bindKey:rs,curry:uc,curryRight:cc,debounce:hc,defer:Rc,delay:Pc,flip:zd,memoize:Sa,negate:eh,once:vh,overArgs:kh,partial:tg,partialRight:rg,rearg:Ig,rest:Ug,spread:jv,throttle:sm,unary:jm,wrap:oy},Ey={castArray:il,clone:fu,cloneDeep:hu,cloneDeepWith:gu,cloneWith:vu,conformsTo:Gu,eq:fi,gt:ip,gte:ap,isArguments:Ri,isArray:kr,isArrayBuffer:Up,isArrayLike:_i,isArrayLikeObject:_c,isBoolean:Vp,isBuffer:Ti,isDate:qp,isElement:Hp,isEmpty:Yp,isEqual:Gp,isEqualWith:Zp,isError:Ja,isFinite:Xp,isFunction:qr,isInteger:ef,isLength:xi,isMap:iu,isMatch:tf,isMatchWith:nf,isNaN:of,isNative:sf,isNil:lf,isNull:uf,isNumber:rf,isObject:Mr,isObjectLike:_r,isPlainObject:Ha,isRegExp:df,isSafeInteger:ff,isSet:su,isString:fp,isSymbol:wr,isTypedArray:Vi,isUndefined:hf,isWeakMap:gf,isWeakSet:vf,lt:Rf,lte:Nf,toArray:nh,toFinite:Fr,toInteger:Ur,toLength:vd,toNumber:Dr,toPlainObject:Sc,toSafeInteger:ym,toString:Aa},ky={add:Lr,ceil:ul,divide:Uc,floor:Fd,max:$f,maxBy:Wf,mean:Ff,meanBy:Uf,min:Gf,minBy:Zf,multiply:Xf,round:Hg,subtract:Tv,sum:Bv,sumBy:$v},Cy=gl,Oy=pp,Ay=Og,jy={assign:ea,assignIn:ia,assignInWith:sa,assignWith:ua,at:Da,create:lc,defaults:bc,defaultsDeep:Ac,entries:od,entriesIn:id,extend:ia,extendWith:sa,findKey:kd,findLastKey:Ld,forIn:qd,forInRight:Hd,forOwn:Jd,forOwnRight:Yd,functions:Qd,functionsIn:Xd,get:Na,has:up,hasIn:Fu,invert:Rp,invertBy:Tp,invoke:Wp,keys:Zi,keysIn:ra,mapKeys:Pf,mapValues:If,merge:Kf,mergeWith:Oc,omit:dh,omitBy:gh,pick:sg,pickBy:hh,result:Vg,set:tv,setWith:nv,toPairs:od,toPairsIn:id,transform:xm,unset:qm,update:Zm,updateWith:Qm,values:gp,valuesIn:ty},Ly={at:ay,chain:cl,commit:mu,lodash:No,next:rh,plant:lg,reverse:ly,tap:Vv,thru:lm,toIterator:pm,toJSON:hm,value:hm,valueOf:hm,wrapperChain:sy},Ry={camelCase:ol,capitalize:Ss,deburr:js,endsWith:nd,escape:ud,escapeRegExp:pd,kebabCase:_f,lowerCase:Af,lowerFirst:jf,pad:Jh,padEnd:Yh,padStart:Gh,parseInt:Xh,repeat:zg,replace:Fg,snakeCase:uv,split:Ov,startCase:Rv,startsWith:Nv,template:am,templateSettings:Zv,toLower:gm,toUpper:bm,trim:Sm,trimEnd:Em,trimStart:Cm,truncate:Am,unescape:Pm,upperCase:ey,upperFirst:ws,words:el},Ny={attempt:Ga,bindAll:ts,cond:Hu,conforms:Yu,constant:Do,defaultTo:gc,flow:Vd,flowRight:Kd,identity:Kr,iteratee:mf,matches:Mf,matchesProperty:Tf,method:Hf,methodOf:Yf,mixin:Qf,noop:wo,nthArg:ah,over:_h,overEvery:Ch,overSome:Oh,property:Ku,propertyOf:ug,range:Rg,rangeRight:Ng,stubArray:El,stubFalse:Ni,stubObject:Pv,stubString:Iv,stubTrue:Mv,times:dm,toPath:vm,uniqueId:Km};var Py=Math.max,Iy=Math.min;var My=Math.min;var Ty,By=4294967295,$y=Array.prototype,Wy=Object.prototype.hasOwnProperty,Dy=fr?fr.iterator:void 0,zy=Math.max,Fy=Math.min,Uy=function(e){return function(t,n,r){if(null==r){var o=Mr(n),i=o&&Zi(n),a=i&&i.length&&Zd(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(Qf);No.after=Sy.after,No.ary=Sy.ary,No.assign=jy.assign,No.assignIn=jy.assignIn,No.assignInWith=jy.assignInWith,No.assignWith=jy.assignWith,No.at=jy.at,No.before=Sy.before,No.bind=Sy.bind,No.bindAll=Ny.bindAll,No.bindKey=Sy.bindKey,No.castArray=Ey.castArray,No.chain=Ly.chain,No.chunk=xy.chunk,No.compact=xy.compact,No.concat=xy.concat,No.cond=Ny.cond,No.conforms=Ny.conforms,No.constant=Ny.constant,No.countBy=_y.countBy,No.create=jy.create,No.curry=Sy.curry,No.curryRight=Sy.curryRight,No.debounce=Sy.debounce,No.defaults=jy.defaults,No.defaultsDeep=jy.defaultsDeep,No.defer=Sy.defer,No.delay=Sy.delay,No.difference=xy.difference,No.differenceBy=xy.differenceBy,No.differenceWith=xy.differenceWith,No.drop=xy.drop,No.dropRight=xy.dropRight,No.dropRightWhile=xy.dropRightWhile,No.dropWhile=xy.dropWhile,No.fill=xy.fill,No.filter=_y.filter,No.flatMap=_y.flatMap,No.flatMapDeep=_y.flatMapDeep,No.flatMapDepth=_y.flatMapDepth,No.flatten=xy.flatten,No.flattenDeep=xy.flattenDeep,No.flattenDepth=xy.flattenDepth,No.flip=Sy.flip,No.flow=Ny.flow,No.flowRight=Ny.flowRight,No.fromPairs=xy.fromPairs,No.functions=jy.functions,No.functionsIn=jy.functionsIn,No.groupBy=_y.groupBy,No.initial=xy.initial,No.intersection=xy.intersection,No.intersectionBy=xy.intersectionBy,No.intersectionWith=xy.intersectionWith,No.invert=jy.invert,No.invertBy=jy.invertBy,No.invokeMap=_y.invokeMap,No.iteratee=Ny.iteratee,No.keyBy=_y.keyBy,No.keys=Zi,No.keysIn=jy.keysIn,No.map=_y.map,No.mapKeys=jy.mapKeys,No.mapValues=jy.mapValues,No.matches=Ny.matches,No.matchesProperty=Ny.matchesProperty,No.memoize=Sy.memoize,No.merge=jy.merge,No.mergeWith=jy.mergeWith,No.method=Ny.method,No.methodOf=Ny.methodOf,No.mixin=Uy,No.negate=eh,No.nthArg=Ny.nthArg,No.omit=jy.omit,No.omitBy=jy.omitBy,No.once=Sy.once,No.orderBy=_y.orderBy,No.over=Ny.over,No.overArgs=Sy.overArgs,No.overEvery=Ny.overEvery,No.overSome=Ny.overSome,No.partial=Sy.partial,No.partialRight=Sy.partialRight,No.partition=_y.partition,No.pick=jy.pick,No.pickBy=jy.pickBy,No.property=Ny.property,No.propertyOf=Ny.propertyOf,No.pull=xy.pull,No.pullAll=xy.pullAll,No.pullAllBy=xy.pullAllBy,No.pullAllWith=xy.pullAllWith,No.pullAt=xy.pullAt,No.range=Ny.range,No.rangeRight=Ny.rangeRight,No.rearg=Sy.rearg,No.reject=_y.reject,No.remove=xy.remove,No.rest=Sy.rest,No.reverse=xy.reverse,No.sampleSize=_y.sampleSize,No.set=jy.set,No.setWith=jy.setWith,No.shuffle=_y.shuffle,No.slice=xy.slice,No.sortBy=_y.sortBy,No.sortedUniq=xy.sortedUniq,No.sortedUniqBy=xy.sortedUniqBy,No.split=Ry.split,No.spread=Sy.spread,No.tail=xy.tail,No.take=xy.take,No.takeRight=xy.takeRight,No.takeRightWhile=xy.takeRightWhile,No.takeWhile=xy.takeWhile,No.tap=Ly.tap,No.throttle=Sy.throttle,No.thru=lm,No.toArray=Ey.toArray,No.toPairs=jy.toPairs,No.toPairsIn=jy.toPairsIn,No.toPath=Ny.toPath,No.toPlainObject=Ey.toPlainObject,No.transform=jy.transform,No.unary=Sy.unary,No.union=xy.union,No.unionBy=xy.unionBy,No.unionWith=xy.unionWith,No.uniq=xy.uniq,No.uniqBy=xy.uniqBy,No.uniqWith=xy.uniqWith,No.unset=jy.unset,No.unzip=xy.unzip,No.unzipWith=xy.unzipWith,No.update=jy.update,No.updateWith=jy.updateWith,No.values=jy.values,No.valuesIn=jy.valuesIn,No.without=xy.without,No.words=Ry.words,No.wrap=Sy.wrap,No.xor=xy.xor,No.xorBy=xy.xorBy,No.xorWith=xy.xorWith,No.zip=xy.zip,No.zipObject=xy.zipObject,No.zipObjectDeep=xy.zipObjectDeep,No.zipWith=xy.zipWith,No.entries=jy.toPairs,No.entriesIn=jy.toPairsIn,No.extend=jy.assignIn,No.extendWith=jy.assignInWith,Uy(No,No),No.add=ky.add,No.attempt=Ny.attempt,No.camelCase=Ry.camelCase,No.capitalize=Ry.capitalize,No.ceil=ky.ceil,No.clamp=Cy,No.clone=Ey.clone,No.cloneDeep=Ey.cloneDeep,No.cloneDeepWith=Ey.cloneDeepWith,No.cloneWith=Ey.cloneWith,No.conformsTo=Ey.conformsTo,No.deburr=Ry.deburr,No.defaultTo=Ny.defaultTo,No.divide=ky.divide,No.endsWith=Ry.endsWith,No.eq=Ey.eq,No.escape=Ry.escape,No.escapeRegExp=Ry.escapeRegExp,No.every=_y.every,No.find=_y.find,No.findIndex=xy.findIndex,No.findKey=jy.findKey,No.findLast=_y.findLast,No.findLastIndex=xy.findLastIndex,No.findLastKey=jy.findLastKey,No.floor=ky.floor,No.forEach=_y.forEach,No.forEachRight=_y.forEachRight,No.forIn=jy.forIn,No.forInRight=jy.forInRight,No.forOwn=jy.forOwn,No.forOwnRight=jy.forOwnRight,No.get=jy.get,No.gt=Ey.gt,No.gte=Ey.gte,No.has=jy.has,No.hasIn=jy.hasIn,No.head=xy.head,No.identity=Kr,No.includes=_y.includes,No.indexOf=xy.indexOf,No.inRange=Oy,No.invoke=jy.invoke,No.isArguments=Ey.isArguments,No.isArray=kr,No.isArrayBuffer=Ey.isArrayBuffer,No.isArrayLike=Ey.isArrayLike,No.isArrayLikeObject=Ey.isArrayLikeObject,No.isBoolean=Ey.isBoolean,No.isBuffer=Ey.isBuffer,No.isDate=Ey.isDate,No.isElement=Ey.isElement,No.isEmpty=Ey.isEmpty,No.isEqual=Ey.isEqual,No.isEqualWith=Ey.isEqualWith,No.isError=Ey.isError,No.isFinite=Ey.isFinite,No.isFunction=Ey.isFunction,No.isInteger=Ey.isInteger,No.isLength=Ey.isLength,No.isMap=Ey.isMap,No.isMatch=Ey.isMatch,No.isMatchWith=Ey.isMatchWith,No.isNaN=Ey.isNaN,No.isNative=Ey.isNative,No.isNil=Ey.isNil,No.isNull=Ey.isNull,No.isNumber=Ey.isNumber,No.isObject=Mr,No.isObjectLike=Ey.isObjectLike,No.isPlainObject=Ey.isPlainObject,No.isRegExp=Ey.isRegExp,No.isSafeInteger=Ey.isSafeInteger,No.isSet=Ey.isSet,No.isString=Ey.isString,No.isSymbol=Ey.isSymbol,No.isTypedArray=Ey.isTypedArray,No.isUndefined=Ey.isUndefined,No.isWeakMap=Ey.isWeakMap,No.isWeakSet=Ey.isWeakSet,No.join=xy.join,No.kebabCase=Ry.kebabCase,No.last=$c,No.lastIndexOf=xy.lastIndexOf,No.lowerCase=Ry.lowerCase,No.lowerFirst=Ry.lowerFirst,No.lt=Ey.lt,No.lte=Ey.lte,No.max=ky.max,No.maxBy=ky.maxBy,No.mean=ky.mean,No.meanBy=ky.meanBy,No.min=ky.min,No.minBy=ky.minBy,No.stubArray=Ny.stubArray,No.stubFalse=Ny.stubFalse,No.stubObject=Ny.stubObject,No.stubString=Ny.stubString,No.stubTrue=Ny.stubTrue,No.multiply=ky.multiply,No.nth=xy.nth,No.noop=Ny.noop,No.now=wy.now,No.pad=Ry.pad,No.padEnd=Ry.padEnd,No.padStart=Ry.padStart,No.parseInt=Ry.parseInt,No.random=Ay,No.reduce=_y.reduce,No.reduceRight=_y.reduceRight,No.repeat=Ry.repeat,No.replace=Ry.replace,No.result=jy.result,No.round=ky.round,No.sample=_y.sample,No.size=_y.size,No.snakeCase=Ry.snakeCase,No.some=_y.some,No.sortedIndex=xy.sortedIndex,No.sortedIndexBy=xy.sortedIndexBy,No.sortedIndexOf=xy.sortedIndexOf,No.sortedLastIndex=xy.sortedLastIndex,No.sortedLastIndexBy=xy.sortedLastIndexBy,No.sortedLastIndexOf=xy.sortedLastIndexOf,No.startCase=Ry.startCase,No.startsWith=Ry.startsWith,No.subtract=ky.subtract,No.sum=ky.sum,No.sumBy=ky.sumBy,No.template=Ry.template,No.times=Ny.times,No.toFinite=Ey.toFinite,No.toInteger=Ur,No.toLength=Ey.toLength,No.toLower=Ry.toLower,No.toNumber=Ey.toNumber,No.toSafeInteger=Ey.toSafeInteger,No.toString=Ey.toString,No.toUpper=Ry.toUpper,No.trim=Ry.trim,No.trimEnd=Ry.trimEnd,No.trimStart=Ry.trimStart,No.truncate=Ry.truncate,No.unescape=Ry.unescape,No.uniqueId=Ny.uniqueId,No.upperCase=Ry.upperCase,No.upperFirst=Ry.upperFirst,No.each=_y.forEach,No.eachRight=_y.forEachRight,No.first=xy.head,Uy(No,(Ty={},ec(No,function(e,t){Wy.call(No.prototype,t)||(Ty[t]=e)}),Ty),{chain:!1}),No.VERSION="4.17.23",(No.templateSettings=Ry.templateSettings).imports._=No,Ko(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){No[e].placeholder=No}),Ko(["drop","take"],function(e,t){_o.prototype[e]=function(n){n=void 0===n?1:zy(Ur(n),0);var r=this.__filtered__&&!t?new _o(this):this.clone();return r.__filtered__?r.__takeCount__=Fy(n,r.__takeCount__):r.__views__.push({size:Fy(n,By),type:e+(r.__dir__<0?"Right":"")}),r},_o.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ko(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;_o.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:qu(e),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ko(["head","last"],function(e,t){var n="take"+(t?"Right":"");_o.prototype[e]=function(){return this[n](1).value()[0]}}),Ko(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");_o.prototype[e]=function(){return this.__filtered__?new _o(this):this[n](1)}}),_o.prototype.compact=function(){return this.filter(Kr)},_o.prototype.find=function(e){return this.filter(e).head()},_o.prototype.findLast=function(e){return this.reverse().find(e)},_o.prototype.invokeMap=bi(function(e,t){return"function"==typeof e?new _o(this):this.map(function(n){return $p(n,e,t)})}),_o.prototype.reject=function(e){return this.filter(eh(qu(e)))},_o.prototype.slice=function(e,t){e=Ur(e);var n=this;return n.__filtered__&&(e>0||t<0)?new _o(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=Ur(t))<0?n.dropRight(-t):n.take(t-e)),n)},_o.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},_o.prototype.toArray=function(){return this.take(By)},ec(_o.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=No[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(No.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof _o,l=a[0],u=s||kr(t),c=function(e){var t=o.apply(No,Ia([e],a));return r&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=i&&!d,h=s&&!p;if(!i&&u){t=h?t:new _o(this);var g=e.apply(t,a);return g.__actions__.push({func:lm,args:[c],thisArg:void 0}),new Ao(g,d)}return f&&h?e.apply(this,a):(g=this.thru(c),f?r?g.value()[0]:g.value():g)})}),Ko(["pop","push","shift","sort","splice","unshift"],function(e){var t=$y[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);No.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(kr(o)?o:[],e)}return this[n](function(n){return t.apply(kr(n)?n:[],e)})}}),ec(_o.prototype,function(e,t){var n=No[t];if(n){var r=n.name+"";Wy.call(ko,r)||(ko[r]=[]),ko[r].push({name:t,func:n})}}),ko[ii(void 0,2).name]=[{name:"wrapper",func:void 0}],_o.prototype.clone=function(){var e=new _o(this.__wrapped__);return e.__actions__=jo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=jo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=jo(this.__views__),e},_o.prototype.reverse=function(){if(this.__filtered__){var e=new _o(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},_o.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=kr(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Iy(t,e+a);break;case"takeRight":e=Py(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,p=0,f=My(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return fm(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var g=-1,v=e[u+=t];++g<d;){var m=c[g],y=m.iteratee,b=m.type,x=y(v);if(2==b)v=x;else if(!x){if(1==b)continue e;break e}}h[p++]=v}return h},No.prototype.at=Ly.at,No.prototype.chain=Ly.wrapperChain,No.prototype.commit=Ly.commit,No.prototype.next=Ly.next,No.prototype.plant=Ly.plant,No.prototype.reverse=Ly.reverse,No.prototype.toJSON=No.prototype.valueOf=No.prototype.value=Ly.value,No.prototype.first=No.prototype.head,Dy&&(No.prototype[Dy]=Ly.toIterator);var Vy=d(Object.freeze({__proto__:null,add:Lr,after:Vr,ary:di,assign:ea,assignIn:ia,assignInWith:sa,assignWith:ua,at:Da,attempt:Ga,before:Za,bind:Xa,bindAll:ts,bindKey:rs,camelCase:ol,capitalize:Ss,castArray:il,ceil:ul,chain:cl,chunk:fl,clamp:gl,clone:fu,cloneDeep:hu,cloneDeepWith:gu,cloneWith:vu,commit:mu,compact:yu,concat:bu,cond:Hu,conforms:Yu,conformsTo:Gu,constant:Do,countBy:sc,create:lc,curry:uc,curryRight:cc,debounce:hc,deburr:js,defaultTo:gc,defaults:bc,defaultsDeep:Ac,defer:Rc,delay:Pc,difference:Bc,differenceBy:Dc,differenceWith:Fc,divide:Uc,drop:Vc,dropRight:Kc,dropRightWhile:Hc,dropWhile:Jc,each:Gc,eachRight:td,endsWith:nd,entries:od,entriesIn:id,eq:fi,escape:ud,escapeRegExp:pd,every:gd,extend:ia,extendWith:sa,fill:md,filter:bd,find:Sd,findIndex:wd,findKey:kd,findLast:jd,findLastIndex:Ad,findLastKey:Ld,first:Rd,flatMap:Id,flatMapDeep:Td,flatMapDepth:Bd,flatten:$a,flattenDeep:Wd,flattenDepth:Dd,flip:zd,floor:Fd,flow:Vd,flowRight:Kd,forEach:Gc,forEachRight:td,forIn:qd,forInRight:Hd,forOwn:Jd,forOwnRight:Yd,fromPairs:Gd,functions:Qd,functionsIn:Xd,get:Na,groupBy:np,gt:ip,gte:ap,has:up,hasIn:Fu,head:Rd,identity:Kr,inRange:pp,includes:mp,indexOf:bp,initial:xp,intersection:Ep,intersectionBy:Cp,intersectionWith:Op,invert:Rp,invertBy:Tp,invoke:Wp,invokeMap:zp,isArguments:Ri,isArray:kr,isArrayBuffer:Up,isArrayLike:_i,isArrayLikeObject:_c,isBoolean:Vp,isBuffer:Ti,isDate:qp,isElement:Hp,isEmpty:Yp,isEqual:Gp,isEqualWith:Zp,isError:Ja,isFinite:Xp,isFunction:qr,isInteger:ef,isLength:xi,isMap:iu,isMatch:tf,isMatchWith:nf,isNaN:of,isNative:sf,isNil:lf,isNull:uf,isNumber:rf,isObject:Mr,isObjectLike:_r,isPlainObject:Ha,isRegExp:df,isSafeInteger:ff,isSet:su,isString:fp,isSymbol:wr,isTypedArray:Vi,isUndefined:hf,isWeakMap:gf,isWeakSet:vf,iteratee:mf,join:bf,kebabCase:_f,keyBy:Sf,keys:Zi,keysIn:ra,last:$c,lastIndexOf:Cf,lodash:No,lowerCase:Af,lowerFirst:jf,lt:Rf,lte:Nf,map:Pd,mapKeys:Pf,mapValues:If,matches:Mf,matchesProperty:Tf,max:$f,maxBy:Wf,mean:Ff,meanBy:Uf,memoize:Sa,merge:Kf,mergeWith:Oc,method:Hf,methodOf:Yf,min:Gf,minBy:Zf,mixin:Qf,multiply:Xf,negate:eh,next:rh,noop:wo,now:dc,nth:ih,nthArg:ah,omit:dh,omitBy:gh,once:vh,orderBy:bh,over:_h,overArgs:kh,overEvery:Ch,overSome:Oh,pad:Jh,padEnd:Yh,padStart:Gh,parseInt:Xh,partial:tg,partialRight:rg,partition:ig,pick:sg,pickBy:hh,plant:lg,property:Ku,propertyOf:ug,pull:hg,pullAll:fg,pullAllBy:gg,pullAllWith:vg,pullAt:xg,random:Og,range:Rg,rangeRight:Ng,rearg:Ig,reduce:Tg,reduceRight:$g,reject:Wg,remove:Dg,repeat:zg,replace:Fg,rest:Ug,result:Vg,reverse:qg,round:Hg,sample:Gg,sampleSize:ev,set:tv,setWith:nv,shuffle:iv,size:av,slice:sv,snakeCase:uv,some:dv,sortBy:fv,sortedIndex:yv,sortedIndexBy:bv,sortedIndexOf:xv,sortedLastIndex:_v,sortedLastIndexBy:wv,sortedLastIndexOf:Sv,sortedUniq:kv,sortedUniqBy:Cv,split:Ov,spread:jv,startCase:Rv,startsWith:Nv,stubArray:El,stubFalse:Ni,stubObject:Pv,stubString:Iv,stubTrue:Mv,subtract:Tv,sum:Bv,sumBy:$v,tail:Wv,take:Dv,takeRight:zv,takeRightWhile:Fv,takeWhile:Uv,tap:Vv,template:am,templateSettings:Zv,throttle:sm,thru:lm,times:dm,toArray:nh,toFinite:Fr,toInteger:Ur,toIterator:pm,toJSON:hm,toLength:vd,toLower:gm,toNumber:Dr,toPairs:od,toPairsIn:id,toPath:vm,toPlainObject:Sc,toSafeInteger:ym,toString:Aa,toUpper:bm,transform:xm,trim:Sm,trimEnd:Em,trimStart:Cm,truncate:Am,unary:jm,unescape:Pm,union:Bm,unionBy:Wm,unionWith:Dm,uniq:zm,uniqBy:Fm,uniqWith:Um,uniqueId:Km,unset:qm,unzip:Jm,unzipWith:Ym,update:Zm,updateWith:Qm,upperCase:ey,upperFirst:ws,value:hm,valueOf:hm,values:gp,valuesIn:ty,without:ry,words:el,wrap:oy,wrapperAt:ay,wrapperChain:sy,wrapperCommit:mu,wrapperLodash:No,wrapperNext:rh,wrapperPlant:lg,wrapperReverse:ly,wrapperToIterator:pm,wrapperValue:hm,xor:cy,xorBy:py,xorWith:fy,zip:hy,zipObject:vy,zipObjectDeep:my,zipWith:by,default:No})),Ky={};Object.defineProperty(Ky,"__esModule",{value:!0});class qy extends CustomEvent{constructor(e,t,n){super(qy.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e,hasModel:n}}),this.component=e,this.complete=t}}qy.TYPE="model-set",Ky.ModelSetEvent=qy;class Hy extends CustomEvent{constructor(e,t){super(Hy.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e}}),this.component=e,this.complete=t}}Hy.TYPE="session-changed",Ky.SessionChangedEvent=Hy;var Jy={};Object.defineProperty(Jy,"__esModule",{value:!0}),Jy.updateSessionMetadata=function(e,t){e.audioStartTime=e.audioStartTime||t.audioStartTime,e.audioEndTime=e.audioEndTime||t.audioEndTime,!e.waitTime&&e.audioStartTime&&e.audioEndTime&&(e.waitTime=e.audioEndTime-e.audioStartTime)},Jy.updateSessionValue=function(e,t,n){e.value=e.value||[],"checkbox"===t&&(n.selected?e.value=Array.from(new Set([...e.value,n.value])):e.value=e.value.filter(e=>e!==n.value));"radio"===t&&(n.selected?e.value=[n.value]:e.value=[]);e.selector=n.selector};const Yy=e,{client:Gy}=t,Zy=l,Qy=i,Xy=u;var eb=f.exports;Object.defineProperty(p,"__esModule",{value:!0});var tb=p.isComplete=p.default=void 0,nb=eb(h.exports),rb=eb(y),ob=eb(Yy),ib=Gy,ab=Vy,sb=eb(Zy),lb=Ky,ub=Xy,cb=Qy,db=Jy;const pb=(0,sb.default)("pie-ui:multiple-choice"),fb=(e,t,n,r)=>{const{autoplayAudioEnabled:o,completeAudioEnabled:i}=t||{};if(o&&i&&!n&&r){const e=r.querySelector("audio"),t=e&&e.closest("#preview-prompt");if(e&&t)return!1}if(!e||!e.value)return!1;const{choiceMode:a,minSelections:s=1,maxSelections:l}=t||{},u=e.value.length||0;return"radio"===a?!!u:!(u<s||u>l)};tb=p.isComplete=fb;class hb extends HTMLElement{constructor(){super(),(0,nb.default)(this,"_scheduleMathRender",()=>{this._mathRenderPending||(this._mathRenderPending=!0,requestAnimationFrame(()=>{this._mathObserver&&this._mathObserver.disconnect(),pb("render complete - render math"),(0,ub.renderMath)(this),this._mathRenderPending=!1,setTimeout(()=>{this._mathObserver&&this._mathObserver.observe(this,{childList:!0,subtree:!0})},50)}))}),this._model=null,this._session=null,this._options=null,this.audioComplete=!1,this._boundHandleKeyDown=this.handleKeyDown.bind(this),this._keyboardEventsEnabled=!1,this._audioInitialized=!1,this._root=null,this._mathObserver=null,this._mathRenderPending=!1,this._rerender=(0,ab.debounce)(()=>{if(this._model&&this._session){var e=ob.default.createElement(rb.default,{model:this._model,session:this._session,options:this._options,onChoiceChanged:this._onChange.bind(this),onShowCorrectToggle:this.onShowCorrectToggle.bind(this)});this.setAttribute("aria-label","radio"===this._model.choiceMode?"Multiple Choice Question":"Multiple Correct Answer Question"),this.setAttribute("role","region"),this.setLangAttribute(),this._initMathObserver(),this._root||(this._root=(0,ib.createRoot)(this)),this._root.render(e),!0!==this._model.keyboardEventsEnabled||this._keyboardEventsEnabled||this.enableKeyboardEvents()}else pb("skip")},50,{leading:!1,trailing:!0}),this._dispatchResponseChanged=(0,ab.debounce)(()=>{this.dispatchEvent(new lb.SessionChangedEvent(this.tagName.toLowerCase(),fb(this._session,this._model,this.audioComplete,this)))}),this._dispatchModelSet=(0,ab.debounce)(()=>{this.dispatchEvent(new lb.ModelSetEvent(this.tagName.toLowerCase(),fb(this._session,this._model,this.audioComplete,this),void 0!==this._model))},50,{leading:!1,trailing:!0})}_initMathObserver(){this._mathObserver||(this._mathObserver=new MutationObserver(this._scheduleMathRender),this._mathObserver.observe(this,{childList:!0,subtree:!0}))}_disconnectMathObserver(){this._mathObserver&&(this._mathObserver.disconnect(),this._mathObserver=null)}onShowCorrectToggle(){(0,ub.renderMath)(this)}setLangAttribute(){const e=this._model&&(this._model.language,1)?this._model.language:"",t=e?e.slice(0,2):"en";this.setAttribute("lang",t)}set model(e){this._model=e,this._rerender(),this._audioInitialized=!1,this._dispatchModelSet()}get session(){return this._session}get options(){return this._options}set options(e){this._options=e,this._rerender()}set session(e){this._session=e,this._rerender(),this._dispatchResponseChanged()}_onChange(e){(0,db.updateSessionValue)(this._session,this._model.choiceMode,e),this._dispatchResponseChanged(),this._rerender()}_createAudioInfoToast(){const e=document.createElement("div");e.id="play-audio-info",Object.assign(e.style,{position:"absolute",top:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",background:"white",zIndex:"1000",cursor:"pointer"});const t=document.createElement("img");return t.src=cb.EnableAudioAutoplayImage,t.alt="Click anywhere to enable audio autoplay",t.width=500,t.height=300,e.appendChild(t),e}connectedCallback(){this._initMathObserver(),this._rerender();new MutationObserver((e,t)=>{e.forEach(e=>{if("childList"===e.type){if(this._audioInitialized)return;const e=this.querySelector("audio"),n=e&&e.closest("#preview-prompt");if(!this._model)return;if(!this._model.autoplayAudioEnabled)return;if(e&&!n)return;if(!e)return;const r=this._createAudioInfoToast(),o=this.querySelector("#main-container"),i=()=>{this.querySelector("#play-audio-info")&&(e.play(),o.removeChild(r)),document.removeEventListener("click",i)};setTimeout(()=>{e.paused&&!this.querySelector("#play-audio-info")?(o.appendChild(r),document.addEventListener("click",i)):document.removeEventListener("click",i)},500);const a=()=>{(0,db.updateSessionMetadata)(this._session,{audioStartTime:(new Date).getTime()});const t=this.querySelector("#play-audio-info");t&&o.removeChild(t),e.removeEventListener("playing",a)};e.addEventListener("playing",a);const s=()=>{(0,db.updateSessionMetadata)(this._session,{audioEndTime:(new Date).getTime()}),this.audioComplete=!0,this._dispatchResponseChanged(),e.removeEventListener("ended",s)};e.addEventListener("ended",s),this._audio=e,this._handlePlaying=a,this._handleEnded=s,this._enableAudio=i,this._audioInitialized=!0,t.disconnect()}})}).observe(this,{childList:!0,subtree:!0})}enableKeyboardEvents(){this._keyboardEventsEnabled||(window.addEventListener("keydown",this._boundHandleKeyDown),this._keyboardEventsEnabled=!0)}disconnectedCallback(){this._disconnectMathObserver(),this._keyboardEventsEnabled&&(window.removeEventListener("keydown",this._boundHandleKeyDown),this._keyboardEventsEnabled=!1),document.removeEventListener("click",this._enableAudio),this._audio&&(this._audio.removeEventListener("playing",this._handlePlaying),this._audio.removeEventListener("ended",this._handleEnded),this._audio=null),this._root&&this._root.unmount()}handleKeyDown(e){if(!this._model||!this._session)return;const{mode:t}=this._model;if("gather"!==t)return;const n=(e=>{const t=e>="1"&&e<="9"?e-"1":"0"===e?9:-1,n=/^[a-jA-J]$/.test(e)?e.toLowerCase().charCodeAt(0)-"a".charCodeAt(0):-1;return t>=0?t:n})(e.key);if(void 0===n||n<=-1||n>=function(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}([this,"access",e=>e._model,"access",e=>e.choices,"optionalAccess",e=>e.length]))return;const r=this._session.value||[],o=this._model.choices[n].value,i={value:o,selected:!r.includes(o),selector:"Keyboard"};this._onChange(i)}}var gb=p.default=hb;export{gb as default,tb as isComplete};
@@ -0,0 +1,21 @@
1
+
2
+ <!doctype html>
3
+ <html>
4
+ <head>
5
+ <title>@pie-element/multiple-choice@12.2.0-next.6</title>
6
+ <script
7
+ type="module"
8
+ src="https://cdn.jsdelivr.net/npm/@pslb/demo-el@^1.0.0/dist/demo-el/demo-el.esm.js"></script>
9
+
10
+ <link
11
+ href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
12
+ rel="stylesheet"
13
+ />
14
+ <style>
15
+ html, body {
16
+ font-family: 'Roboto', sans-serif;
17
+ }
18
+ </style>
19
+ <script type="module" src="./demo.js"></script>
20
+ </head>
21
+ </html>