@pie-element/ebsr 13.2.0-next.6 → 13.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/CHANGELOG.md +6 -0
- package/configure/CHANGELOG.md +6 -0
- package/configure/package.json +3 -3
- package/module/configure.js +1 -0
- package/module/controller.js +5664 -0
- package/module/demo.js +77 -0
- package/module/element.js +1 -0
- package/module/index.html +21 -0
- package/module/manifest.json +14 -0
- package/module/print-demo.js +115 -0
- package/module/print.html +18 -0
- package/module/print.js +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [13.2.0-next.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@13.2.0-next.6...@pie-element/ebsr@13.2.0-next.7) (2026-04-13)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- bump libs PIE-34 ([9f8b35a](https://github.com/pie-framework/pie-elements/commit/9f8b35a856ca1eba67d5630a358b96226cfca984))
|
|
11
|
+
|
|
6
12
|
# [13.2.0-next.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@13.2.0-next.5...@pie-element/ebsr@13.2.0-next.6) (2026-04-10)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [12.2.0-next.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@12.2.0-next.4...@pie-element/ebsr-configure@12.2.0-next.5) (2026-04-13)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- bump libs PIE-34 ([9f8b35a](https://github.com/pie-framework/pie-elements/commit/9f8b35a856ca1eba67d5630a358b96226cfca984))
|
|
11
|
+
|
|
6
12
|
# [12.2.0-next.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@12.2.0-next.3...@pie-element/ebsr-configure@12.2.0-next.4) (2026-04-10)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/configure/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "12.2.0-next.
|
|
4
|
+
"version": "12.2.0-next.5",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"@emotion/style": "^0.8.0",
|
|
12
12
|
"@mui/icons-material": "^7.3.4",
|
|
13
13
|
"@mui/material": "^7.3.4",
|
|
14
|
-
"@pie-element/multiple-choice": "^12.2.0-next.
|
|
14
|
+
"@pie-element/multiple-choice": "^12.2.0-next.7",
|
|
15
15
|
"@pie-framework/pie-configure-events": "^1.2.0",
|
|
16
|
-
"@pie-lib/config-ui": "12.2.0-next.
|
|
16
|
+
"@pie-lib/config-ui": "12.2.0-next.29",
|
|
17
17
|
"lodash-es": "^4.17.23",
|
|
18
18
|
"prop-types": "^15.8.1",
|
|
19
19
|
"react": "18.3.1",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_dll_react_dom as e,_dll_react as t,_dll_prop_types as n,_dll_mui__material as r,_dll_mui__icons_material as o,_dll_mui__material_styles as i,_dll_pie_lib__render_ui as a,_dll_debug as u}from"../../../@pie-lib/shared-module@^4.1.0/module/index.js";import{_dll_pie_lib__config_ui as c}from"../../../@pie-lib/config-module@^3.1.0/module/index.js";import{_dll_pie_lib__editable_html_tip_tap as l}from"../../../@pie-lib/editable-html-module@^6.2.0/module/index.js";function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f,d=e;f=d.createRoot,d.hydrateRoot;var p={};Object.defineProperty(p,"__esModule",{value:!0});class h extends CustomEvent{constructor(e,t=!1){super(h.TYPE,{bubbles:!0,detail:{update:e,reset:t}}),this.update=e,this.reset=t}}h.TYPE="model.updated";var g=p.ModelUpdatedEvent=h;class v extends CustomEvent{constructor(e,t){super(v.TYPE,{bubbles:!0,detail:{src:e,done:t}}),this.src=e,this.done=t}}v.TYPE="delete.image",p.DeleteImageEvent=v;class _ extends CustomEvent{constructor(e){super(_.TYPE,{bubbles:!0,detail:e}),this.handler=e}}_.TYPE="insert.image",p.InsertImageEvent=_;class b extends CustomEvent{constructor(e,t){super(b.TYPE,{bubbles:!0,detail:{src:e,done:t}}),this.src=e,this.done=t}}b.TYPE="delete.sound",p.DeleteSoundEvent=b;class y extends CustomEvent{constructor(e){super(y.TYPE,{bubbles:!0,detail:e}),this.handler=e}}y.TYPE="insert.sound",p.InsertSoundEvent=y;var m={},x={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(x),s(x.exports);var C={exports:{}},w={exports:{}},j={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}(j),s(j.exports);var A={exports:{}};!function(e){var t=j.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}(A),s(A.exports),function(e){var t=j.exports.default,n=A.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}(w),s(w.exports),function(e){var t=w.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}(C),s(C.exports);var E={},O={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}(O),s(O.exports);var I="object"==typeof global&&global&&global.Object===Object&&global,M="object"==typeof self&&self&&self.Object===Object&&self,k=I||M||Function("return this")(),S=k.Symbol,B=Object.prototype,P=B.hasOwnProperty,R=B.toString,L=S?S.toStringTag:void 0,W=Object.prototype.toString,T=S?S.toStringTag:void 0;function z(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":T&&T in Object(e)?function(e){var t=P.call(e,L),n=e[L];try{e[L]=void 0;var r=!0}catch(e){}var o=R.call(e);return r&&(t?e[L]=n:delete e[L]),o}(e):function(e){return W.call(e)}(e)}function D(e){return null!=e&&"object"==typeof e}function U(e){return"symbol"==typeof e||D(e)&&"[object Symbol]"==z(e)}function N(e){return"number"==typeof e?e:U(e)?NaN:+e}function q(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 F=Array.isArray,$=S?S.prototype:void 0,K=$?$.toString:void 0;function V(e){if("string"==typeof e)return e;if(F(e))return q(e,V)+"";if(U(e))return K?K.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Y(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=V(n),r=V(r)):(n=N(n),r=N(r)),o=e(n,r)}return o}}var H=Y(function(e,t){return e+t},0),Z=/\s/;function G(e){for(var t=e.length;t--&&Z.test(e.charAt(t)););return t}var J=/^\s+/;function Q(e){return e?e.slice(0,G(e)+1).replace(J,""):e}function X(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var ee=/^[-+]0x[0-9a-f]+$/i,te=/^0b[01]+$/i,ne=/^0o[0-7]+$/i,re=parseInt;function oe(e){if("number"==typeof e)return e;if(U(e))return NaN;if(X(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=X(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Q(e);var n=te.test(e);return n||ne.test(e)?re(e.slice(2),n?2:8):ee.test(e)?NaN:+e}var ie=1/0;function ae(e){return e?(e=oe(e))===ie||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ue(e){var t=ae(e),n=t%1;return t==t?n?t-n:t:0}function ce(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=ue(e),function(){if(--e<1)return t.apply(this,arguments)}}function le(e){return e}function se(e){if(!X(e))return!1;var t=z(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var fe,de=k["__core-js_shared__"],pe=(fe=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||""))?"Symbol(src)_1."+fe:"",he=Function.prototype.toString;function ge(e){if(null!=e){try{return he.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ve=/^\[object .+?Constructor\]$/,_e=Function.prototype,be=Object.prototype,ye=_e.toString,me=be.hasOwnProperty,xe=RegExp("^"+ye.call(me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ce(e){return!(!X(e)||function(e){return!!pe&&pe in e}(e))&&(se(e)?xe:ve).test(ge(e))}function we(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ce(n)?n:void 0}var je=we(k,"WeakMap"),Ae=je&&new je,Ee=Ae?function(e,t){return Ae.set(e,t),e}:le,Oe=Ee,Ie=Object.create,Me=function(){function e(){}return function(t){if(!X(t))return{};if(Ie)return Ie(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ke=Me;function Se(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=ke(e.prototype),r=e.apply(n,t);return X(r)?r:n}}function Be(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 Pe=Math.max;function Re(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,c=t.length,l=Pe(i-a,0),s=Array(c+l),f=!r;++u<c;)s[u]=t[u];for(;++o<a;)(f||o<i)&&(s[n[o]]=e[o]);for(;l--;)s[u++]=e[o++];return s}var Le=Math.max;function We(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,c=-1,l=t.length,s=Le(i-u,0),f=Array(s+l),d=!r;++o<s;)f[o]=e[o];for(var p=o;++c<l;)f[p+c]=t[c];for(;++a<u;)(d||o<i)&&(f[p+n[a]]=e[o++]);return f}function Te(){}function ze(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function De(){}ze.prototype=ke(Te.prototype),ze.prototype.constructor=ze;var Ue=Ae?function(e){return Ae.get(e)}:De,Ne=Ue,qe={},Fe=Object.prototype.hasOwnProperty;function $e(e){for(var t=e.name+"",n=qe[t],r=Fe.call(qe,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Ke(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Ve(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Ye(e){if(e instanceof ze)return e.clone();var t=new Ke(e.__wrapped__,e.__chain__);return t.__actions__=Ve(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}Ke.prototype=ke(Te.prototype),Ke.prototype.constructor=Ke;var He=Object.prototype.hasOwnProperty;function Ze(e){if(D(e)&&!F(e)&&!(e instanceof ze)){if(e instanceof Ke)return e;if(He.call(e,"__wrapped__"))return Ye(e)}return new Ke(e)}function Ge(e){var t=$e(e),n=Ze[t];if("function"!=typeof n||!(t in ze.prototype))return!1;if(e===n)return!0;var r=Ne(n);return!!r&&e===r[0]}Ze.prototype=Te.prototype,Ze.prototype.constructor=Ze;var Je=Date.now;function Qe(e){var t=0,n=0;return function(){var r=Je(),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 Xe=Qe(Oe),et=/\{\n\/\* \[wrapped with (.+)\] \*/,tt=/,? & /,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function rt(e){return function(){return e}}var ot=function(){try{var e=we(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=ot,at=it?function(e,t){return it(e,"toString",{configurable:!0,enumerable:!1,value:rt(t),writable:!0})}:le,ut=Qe(at);function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(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 st(e){return e!=e}function ft(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):lt(e,st,n)}function dt(e,t){return!(null==e||!e.length)&&ft(e,t,0)>-1}var pt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function ht(e,t,n){var r=t+"";return ut(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(nt,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return ct(pt,function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(et);return t?t[1].split(tt):[]}(r),n)))}function gt(e,t,n,r,o,i,a,u,c,l){var s=8&t;t|=s?32:64,4&(t&=~(s?64:32))||(t&=-4);var f=[e,t,o,s?i:void 0,s?a:void 0,s?void 0:i,s?void 0:a,u,c,l],d=n.apply(void 0,f);return Ge(e)&&Xe(d,f),d.placeholder=r,ht(d,e,t)}function vt(e){return e.placeholder}var _t=/^(?:0|[1-9]\d*)$/;function bt(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&_t.test(e))&&e>-1&&e%1==0&&e<t}var yt=Math.min,mt="__lodash_placeholder__";function xt(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==mt||(e[n]=mt,i[o++]=n)}return i}function Ct(e,t,n,r,o,i,a,u,c,l){var s=128&t,f=1&t,d=2&t,p=24&t,h=512&t,g=d?void 0:Se(e);return function v(){for(var _=arguments.length,b=Array(_),y=_;y--;)b[y]=arguments[y];if(p)var m=vt(v),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,m);if(r&&(b=Re(b,r,o,p)),i&&(b=We(b,i,a,p)),_-=x,p&&_<l){var C=xt(b,m);return gt(e,t,Ct,v.placeholder,n,b,C,u,c,l-_)}var w=f?n:this,j=d?w[e]:e;return _=b.length,u?b=function(e,t){for(var n=e.length,r=yt(t.length,n),o=Ve(e);r--;){var i=t[r];e[r]=bt(i,n)?o[i]:void 0}return e}(b,u):h&&_>1&&b.reverse(),s&&c<_&&(b.length=c),this&&this!==k&&this instanceof v&&(j=g||Se(j)),j.apply(w,b)}}var wt="__lodash_placeholder__",jt=Math.min,At=Math.max;function Et(e,t,n,r,o,i,a,u){var c=2&t;if(!c&&"function"!=typeof e)throw new TypeError("Expected a function");var l=r?r.length:0;if(l||(t&=-97,r=o=void 0),a=void 0===a?a:At(ue(a),0),u=void 0===u?u:ue(u),l-=o?o.length:0,64&t){var s=r,f=o;r=o=void 0}var d=c?void 0:Ne(e),p=[e,t,n,r,o,s,f,i,a,u];if(d&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=128==r&&8==n||128==r&&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 u=t[3];if(u){var c=e[3];e[3]=c?Re(c,u,t[4]):u,e[4]=c?xt(e[3],wt):t[4]}(u=t[5])&&(c=e[5],e[5]=c?We(c,u,t[6]):u,e[6]=c?xt(e[5],wt):t[6]),(u=t[7])&&(e[7]=u),128&r&&(e[8]=null==e[8]?t[8]:jt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(p,d),e=p[0],t=p[1],n=p[2],r=p[3],o=p[4],!(u=p[9]=void 0===p[9]?c?0:e.length:At(p[9]-l,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?function(e,t,n){var r=Se(e);return function o(){for(var i=arguments.length,a=Array(i),u=i,c=vt(o);u--;)a[u]=arguments[u];var l=i<3&&a[0]!==c&&a[i-1]!==c?[]:xt(a,c);return(i-=l.length)<n?gt(e,t,Ct,o.placeholder,void 0,a,l,void 0,void 0,n-i):Be(this&&this!==k&&this instanceof o?r:e,this,a)}}(e,t,u):32!=t&&33!=t||o.length?Ct.apply(void 0,p):function(e,t,n,r){var o=1&t,i=Se(e);return function t(){for(var a=-1,u=arguments.length,c=-1,l=r.length,s=Array(l+u),f=this&&this!==k&&this instanceof t?i:e;++c<l;)s[c]=r[c];for(;u--;)s[c++]=arguments[++a];return Be(f,o?n:this,s)}}(e,t,n,r);else var h=function(e,t,n){var r=1&t,o=Se(e);return function t(){return(this&&this!==k&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ht((d?Oe:Xe)(h,p),e,t)}function Ot(e,t,n){return t=n?void 0:t,Et(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function It(e,t,n){"__proto__"==t&&it?it(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Mt(e,t){return e===t||e!=e&&t!=t}var kt=Object.prototype.hasOwnProperty;function St(e,t,n){var r=e[t];kt.call(e,t)&&Mt(r,n)&&(void 0!==n||t in e)||It(e,t,n)}function Bt(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var u=t[i],c=r?r(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),o?It(n,u,c):St(n,u,c)}return n}var Pt=Math.max;function Rt(e,t,n){return t=Pt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Pt(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=r[o];return u[t]=n(a),Be(e,this,u)}}function Lt(e,t){return ut(Rt(e,t,le),e+"")}function Wt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Tt(e){return null!=e&&Wt(e.length)&&!se(e)}function zt(e,t,n){if(!X(n))return!1;var r=typeof t;return!!("number"==r?Tt(n)&&bt(t,n.length):"string"==r&&t in n)&&Mt(n[t],e)}function Dt(e){return Lt(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&&zt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,i)}return t})}var Ut=Object.prototype;function Nt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ut)}function qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ft(e){return D(e)&&"[object Arguments]"==z(e)}var $t=Object.prototype,Kt=$t.hasOwnProperty,Vt=$t.propertyIsEnumerable,Yt=Ft(function(){return arguments}())?Ft:function(e){return D(e)&&Kt.call(e,"callee")&&!Vt.call(e,"callee")};function Ht(){return!1}var Zt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Gt=Zt&&"object"==typeof module&&module&&!module.nodeType&&module,Jt=Gt&&Gt.exports===Zt?k.Buffer:void 0,Qt=(Jt?Jt.isBuffer:void 0)||Ht,Xt={};function en(e){return function(t){return e(t)}}Xt["[object Float32Array]"]=Xt["[object Float64Array]"]=Xt["[object Int8Array]"]=Xt["[object Int16Array]"]=Xt["[object Int32Array]"]=Xt["[object Uint8Array]"]=Xt["[object Uint8ClampedArray]"]=Xt["[object Uint16Array]"]=Xt["[object Uint32Array]"]=!0,Xt["[object Arguments]"]=Xt["[object Array]"]=Xt["[object ArrayBuffer]"]=Xt["[object Boolean]"]=Xt["[object DataView]"]=Xt["[object Date]"]=Xt["[object Error]"]=Xt["[object Function]"]=Xt["[object Map]"]=Xt["[object Number]"]=Xt["[object Object]"]=Xt["[object RegExp]"]=Xt["[object Set]"]=Xt["[object String]"]=Xt["[object WeakMap]"]=!1;var tn="object"==typeof exports&&exports&&!exports.nodeType&&exports,nn=tn&&"object"==typeof module&&module&&!module.nodeType&&module,rn=nn&&nn.exports===tn&&I.process,on=function(){try{return nn&&nn.require&&nn.require("util").types||rn&&rn.binding&&rn.binding("util")}catch(e){}}(),an=on&&on.isTypedArray,un=an?en(an):function(e){return D(e)&&Wt(e.length)&&!!Xt[z(e)]},cn=Object.prototype.hasOwnProperty;function ln(e,t){var n=F(e),r=!n&&Yt(e),o=!n&&!r&&Qt(e),i=!n&&!r&&!o&&un(e),a=n||r||o||i,u=a?qt(e.length,String):[],c=u.length;for(var l in e)!t&&!cn.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bt(l,c))||u.push(l);return u}function sn(e,t){return function(n){return e(t(n))}}var fn=sn(Object.keys,Object),dn=Object.prototype.hasOwnProperty;function pn(e){if(!Nt(e))return fn(e);var t=[];for(var n in Object(e))dn.call(e,n)&&"constructor"!=n&&t.push(n);return t}function hn(e){return Tt(e)?ln(e):pn(e)}var gn=Object.prototype.hasOwnProperty,vn=Dt(function(e,t){if(Nt(t)||Tt(t))Bt(t,hn(t),e);else for(var n in t)gn.call(t,n)&&St(e,n,t[n])}),_n=vn,bn=Object.prototype.hasOwnProperty;function yn(e){return Tt(e)?ln(e,!0):function(e){if(!X(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Nt(e),n=[];for(var r in e)("constructor"!=r||!t&&bn.call(e,r))&&n.push(r);return n}(e)}var mn=Dt(function(e,t){Bt(t,yn(t),e)}),xn=mn,Cn=Dt(function(e,t,n,r){Bt(t,yn(t),e,r)}),wn=Cn,jn=Dt(function(e,t,n,r){Bt(t,hn(t),e,r)}),An=jn,En=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,On=/^\w*$/;function In(e,t){if(F(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!U(e))||On.test(e)||!En.test(e)||null!=t&&e in Object(t)}var Mn=we(Object,"create"),kn=Object.prototype.hasOwnProperty,Sn=Object.prototype.hasOwnProperty;function Bn(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 Pn(e,t){for(var n=e.length;n--;)if(Mt(e[n][0],t))return n;return-1}Bn.prototype.clear=function(){this.__data__=Mn?Mn(null):{},this.size=0},Bn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Bn.prototype.get=function(e){var t=this.__data__;if(Mn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return kn.call(t,e)?t[e]:void 0},Bn.prototype.has=function(e){var t=this.__data__;return Mn?void 0!==t[e]:Sn.call(t,e)},Bn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Mn&&void 0===t?"__lodash_hash_undefined__":t,this};var Rn=Array.prototype.splice;function Ln(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])}}Ln.prototype.clear=function(){this.__data__=[],this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=Pn(t,e);return!(n<0||(n==t.length-1?t.pop():Rn.call(t,n,1),--this.size,0))},Ln.prototype.get=function(e){var t=this.__data__,n=Pn(t,e);return n<0?void 0:t[n][1]},Ln.prototype.has=function(e){return Pn(this.__data__,e)>-1},Ln.prototype.set=function(e,t){var n=this.__data__,r=Pn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Wn=we(k,"Map");function Tn(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 zn(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 Dn(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(Dn.Cache||zn),n}zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Bn,map:new(Wn||Ln),string:new Bn}},zn.prototype.delete=function(e){var t=Tn(this,e).delete(e);return this.size-=t?1:0,t},zn.prototype.get=function(e){return Tn(this,e).get(e)},zn.prototype.has=function(e){return Tn(this,e).has(e)},zn.prototype.set=function(e,t){var n=Tn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Dn.Cache=zn;var Un=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nn=/\\(\\)?/g,qn=function(){var e=Dn(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Un,function(e,n,r,o){t.push(r?o.replace(Nn,"$1"):n||e)}),t},function(e){return 500===t.size&&t.clear(),e}),t=e.cache;return e}(),Fn=qn;function $n(e){return null==e?"":V(e)}function Kn(e,t){return F(e)?e:In(e,t)?[e]:Fn($n(e))}function Vn(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Yn(e,t){for(var n=0,r=(t=Kn(t,e)).length;null!=e&&n<r;)e=e[Vn(t[n++])];return n&&n==r?e:void 0}function Hn(e,t,n){var r=null==e?void 0:Yn(e,t);return void 0===r?n:r}function Zn(e,t){for(var n=-1,r=t.length,o=Array(r),i=null==e;++n<r;)o[n]=i?void 0:Hn(e,t[n]);return o}function Gn(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Jn=S?S.isConcatSpreadable:void 0;function Qn(e){return F(e)||Yt(e)||!!(Jn&&e&&e[Jn])}function Xn(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Qn),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?Xn(u,t-1,n,r,o):Gn(o,u):r||(o[o.length]=u)}return o}function er(e){return null!=e&&e.length?Xn(e,1):[]}function tr(e){return ut(Rt(e,void 0,er),e+"")}var nr=tr(Zn),rr=sn(Object.getPrototypeOf,Object),or=Function.prototype,ir=Object.prototype,ar=or.toString,ur=ir.hasOwnProperty,cr=ar.call(Object);function lr(e){if(!D(e)||"[object Object]"!=z(e))return!1;var t=rr(e);if(null===t)return!0;var n=ur.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ar.call(n)==cr}function sr(e){if(!D(e))return!1;var t=z(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!lr(e)}var fr=Lt(function(e,t){try{return Be(e,void 0,t)}catch(e){return sr(e)?e:new Error(e)}}),dr=fr;function pr(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=ue(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var hr=Lt(function(e,t,n){var r=1;if(n.length){var o=xt(n,vt(hr));r|=32}return Et(e,r,t,n,o)});hr.placeholder={};var gr=hr,vr=tr(function(e,t){return ct(t,function(t){t=Vn(t),It(e,t,gr(e[t],e))}),e}),_r=vr,br=Lt(function(e,t,n){var r=3;if(n.length){var o=xt(n,vt(br));r|=32}return Et(t,r,e,n,o)});br.placeholder={};var yr=br;function mr(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 xr(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:mr(e,t,n)}var Cr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function wr(e){return Cr.test(e)}var jr="\\ud800-\\udfff",Ar="["+jr+"]",Er="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Or="\\ud83c[\\udffb-\\udfff]",Ir="[^"+jr+"]",Mr="(?:\\ud83c[\\udde6-\\uddff]){2}",kr="[\\ud800-\\udbff][\\udc00-\\udfff]",Sr="(?:"+Er+"|"+Or+")?",Br="[\\ufe0e\\ufe0f]?",Pr=Br+Sr+"(?:\\u200d(?:"+[Ir,Mr,kr].join("|")+")"+Br+Sr+")*",Rr="(?:"+[Ir+Er+"?",Er,Mr,kr,Ar].join("|")+")",Lr=RegExp(Or+"(?="+Or+")|"+Rr+Pr,"g");function Wr(e){return wr(e)?function(e){return e.match(Lr)||[]}(e):function(e){return e.split("")}(e)}function Tr(e){return function(t){var n=wr(t=$n(t))?Wr(t):void 0,r=n?n[0]:t.charAt(0),o=n?xr(n,1).join(""):t.slice(1);return r[e]()+o}}var zr=Tr("toUpperCase");function Dr(e){return zr($n(e).toLowerCase())}function Ur(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 Nr(e){return function(t){return null==e?void 0:e[t]}}var qr=Nr({"À":"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"}),Fr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$r=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function Kr(e){return(e=$n(e))&&e.replace(Fr,qr).replace($r,"")}var Vr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hr="\\ud800-\\udfff",Zr="\\u2700-\\u27bf",Gr="a-z\\xdf-\\xf6\\xf8-\\xff",Jr="A-Z\\xc0-\\xd6\\xd8-\\xde",Qr="\\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",Xr="["+Qr+"]",eo="\\d+",to="["+Zr+"]",no="["+Gr+"]",ro="[^"+Hr+Qr+eo+Zr+Gr+Jr+"]",oo="(?:\\ud83c[\\udde6-\\uddff]){2}",io="[\\ud800-\\udbff][\\udc00-\\udfff]",ao="["+Jr+"]",uo="(?:"+no+"|"+ro+")",co="(?:"+ao+"|"+ro+")",lo="(?:['’](?:d|ll|m|re|s|t|ve))?",so="(?:['’](?:D|LL|M|RE|S|T|VE))?",fo="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",po="[\\ufe0e\\ufe0f]?",ho=po+fo+"(?:\\u200d(?:"+["[^"+Hr+"]",oo,io].join("|")+")"+po+fo+")*",go="(?:"+[to,oo,io].join("|")+")"+ho,vo=RegExp([ao+"?"+no+"+"+lo+"(?="+[Xr,ao,"$"].join("|")+")",co+"+"+so+"(?="+[Xr,ao+uo,"$"].join("|")+")",ao+"?"+uo+"+"+lo,ao+"+"+so,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eo,go].join("|"),"g");function _o(e,t,n){return e=$n(e),void 0===(t=n?void 0:t)?function(e){return Yr.test(e)}(e)?function(e){return e.match(vo)||[]}(e):function(e){return e.match(Vr)||[]}(e):e.match(t)||[]}var bo=RegExp("['’]","g");function yo(e){return function(t){return Ur(_o(Kr(t).replace(bo,"")),e,"")}}var mo=yo(function(e,t,n){return t=t.toLowerCase(),e+(n?Dr(t):t)}),xo=mo;function Co(){if(!arguments.length)return[];var e=arguments[0];return F(e)?e:[e]}var wo=k.isFinite,jo=Math.min;function Ao(e){var t=Math[e];return function(e,n){if(e=oe(e),(n=null==n?0:jo(ue(n),292))&&wo(e)){var r=($n(e)+"e").split("e");return+((r=($n(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Eo=Ao("ceil");function Oo(e){var t=Ze(e);return t.__chain__=!0,t}var Io=Math.ceil,Mo=Math.max;function ko(e,t,n){t=(n?zt(e,t,n):void 0===t)?1:Mo(ue(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(Io(r/t));o<r;)a[i++]=mr(e,o,o+=t);return a}function So(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Bo(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=oe(n))==n?n:0),void 0!==t&&(t=(t=oe(t))==t?t:0),So(oe(e),t,n)}function Po(e){var t=this.__data__=new Ln(e);this.size=t.size}function Ro(e,t){return e&&Bt(t,hn(t),e)}Po.prototype.clear=function(){this.__data__=new Ln,this.size=0},Po.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Po.prototype.get=function(e){return this.__data__.get(e)},Po.prototype.has=function(e){return this.__data__.has(e)},Po.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ln){var r=n.__data__;if(!Wn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(e,t),this.size=n.size,this};var Lo="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wo=Lo&&"object"==typeof module&&module&&!module.nodeType&&module,To=Wo&&Wo.exports===Lo?k.Buffer:void 0,zo=To?To.allocUnsafe:void 0;function Do(e,t){if(t)return e.slice();var n=e.length,r=zo?zo(n):new e.constructor(n);return e.copy(r),r}function Uo(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 No(){return[]}var qo=Object.prototype.propertyIsEnumerable,Fo=Object.getOwnPropertySymbols,$o=Fo?function(e){return null==e?[]:(e=Object(e),Uo(Fo(e),function(t){return qo.call(e,t)}))}:No,Ko=$o,Vo=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Gn(t,Ko(e)),e=rr(e);return t}:No,Yo=Vo;function Ho(e,t,n){var r=t(e);return F(e)?r:Gn(r,n(e))}function Zo(e){return Ho(e,hn,Ko)}function Go(e){return Ho(e,yn,Yo)}var Jo=we(k,"DataView"),Qo=we(k,"Promise"),Xo=we(k,"Set"),ei="[object Map]",ti="[object Promise]",ni="[object Set]",ri="[object WeakMap]",oi="[object DataView]",ii=ge(Jo),ai=ge(Wn),ui=ge(Qo),ci=ge(Xo),li=ge(je),si=z;(Jo&&si(new Jo(new ArrayBuffer(1)))!=oi||Wn&&si(new Wn)!=ei||Qo&&si(Qo.resolve())!=ti||Xo&&si(new Xo)!=ni||je&&si(new je)!=ri)&&(si=function(e){var t=z(e),n="[object Object]"==t?e.constructor:void 0,r=n?ge(n):"";if(r)switch(r){case ii:return oi;case ai:return ei;case ui:return ti;case ci:return ni;case li:return ri}return t});var fi=si,di=Object.prototype.hasOwnProperty,pi=k.Uint8Array;function hi(e){var t=new e.constructor(e.byteLength);return new pi(t).set(new pi(e)),t}var gi=/\w*$/,vi=S?S.prototype:void 0,_i=vi?vi.valueOf:void 0;function bi(e,t){var n=t?hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function yi(e){return"function"!=typeof e.constructor||Nt(e)?{}:ke(rr(e))}var mi=on&&on.isMap,xi=mi?en(mi):function(e){return D(e)&&"[object Map]"==fi(e)},Ci=on&&on.isSet,wi=Ci?en(Ci):function(e){return D(e)&&"[object Set]"==fi(e)},ji="[object Arguments]",Ai="[object Function]",Ei="[object Object]",Oi={};function Ii(e,t,n,r,o,i){var a,u=1&t,c=2&t,l=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!X(e))return e;var s=F(e);if(s){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&di.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Ve(e,a)}else{var f=fi(e),d=f==Ai||"[object GeneratorFunction]"==f;if(Qt(e))return Do(e,u);if(f==Ei||f==ji||d&&!o){if(a=c||d?{}:yi(e),!u)return c?function(e,t){return Bt(e,Yo(e),t)}(e,function(e,t){return e&&Bt(t,yn(t),e)}(a,e)):function(e,t){return Bt(e,Ko(e),t)}(e,Ro(a,e))}else{if(!Oi[f])return o?e:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case"[object ArrayBuffer]":return hi(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?hi(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 bi(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,gi.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,_i?Object(_i.call(r)):{}}}(e,f,u)}}i||(i=new Po);var p=i.get(e);if(p)return p;i.set(e,a),wi(e)?e.forEach(function(r){a.add(Ii(r,t,n,r,e,i))}):xi(e)&&e.forEach(function(r,o){a.set(o,Ii(r,t,n,o,e,i))});var h=s?void 0:(l?c?Go:Zo:c?yn:hn)(e);return ct(h||e,function(r,o){h&&(r=e[o=r]),St(a,o,Ii(r,t,n,o,e,i))}),a}function Mi(e){return Ii(e,4)}function ki(e){return Ii(e,5)}function Si(e,t){return Ii(e,5,t="function"==typeof t?t:void 0)}function Bi(e,t){return Ii(e,4,t="function"==typeof t?t:void 0)}function Pi(){return new Ke(this.value(),this.__chain__)}function Ri(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 Li(){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 Gn(F(n)?Ve(n):[n],Xn(t,1))}function Wi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new zn;++t<n;)this.add(e[t])}function Ti(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 zi(e,t){return e.has(t)}function Di(e,t,n,r,o,i){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var l=i.get(e),s=i.get(t);if(l&&s)return l==t&&s==e;var f=-1,d=!0,p=2&n?new Wi:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],g=t[f];if(r)var v=a?r(g,h,f,t,e,i):r(h,g,f,e,t,i);if(void 0!==v){if(v)continue;d=!1;break}if(p){if(!Ti(t,function(e,t){if(!zi(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)})){d=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Ui(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Ni(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}Oi[ji]=Oi["[object Array]"]=Oi["[object ArrayBuffer]"]=Oi["[object DataView]"]=Oi["[object Boolean]"]=Oi["[object Date]"]=Oi["[object Float32Array]"]=Oi["[object Float64Array]"]=Oi["[object Int8Array]"]=Oi["[object Int16Array]"]=Oi["[object Int32Array]"]=Oi["[object Map]"]=Oi["[object Number]"]=Oi[Ei]=Oi["[object RegExp]"]=Oi["[object Set]"]=Oi["[object String]"]=Oi["[object Symbol]"]=Oi["[object Uint8Array]"]=Oi["[object Uint8ClampedArray]"]=Oi["[object Uint16Array]"]=Oi["[object Uint32Array]"]=!0,Oi["[object Error]"]=Oi[Ai]=Oi["[object WeakMap]"]=!1,Wi.prototype.add=Wi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Wi.prototype.has=function(e){return this.__data__.has(e)};var qi=S?S.prototype:void 0,Fi=qi?qi.valueOf:void 0,$i=Object.prototype.hasOwnProperty,Ki="[object Arguments]",Vi="[object Array]",Yi="[object Object]",Hi=Object.prototype.hasOwnProperty;function Zi(e,t,n,r,o){return e===t||(null==e||null==t||!D(e)&&!D(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=F(e),u=F(t),c=a?Vi:fi(e),l=u?Vi:fi(t),s=(c=c==Ki?Yi:c)==Yi,f=(l=l==Ki?Yi:l)==Yi,d=c==l;if(d&&Qt(e)){if(!Qt(t))return!1;a=!0,s=!1}if(d&&!s)return i||(i=new Po),a||un(e)?Di(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 pi(e),new pi(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Mt(+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 u=Ui;case"[object Set]":var c=1&r;if(u||(u=Ni),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var s=Di(u(e),u(t),r,o,i,a);return a.delete(e),s;case"[object Symbol]":if(Fi)return Fi.call(e)==Fi.call(t)}return!1}(e,t,c,n,r,o,i);if(!(1&n)){var p=s&&Hi.call(e,"__wrapped__"),h=f&&Hi.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,v=h?t.value():t;return i||(i=new Po),o(g,v,n,r,i)}}return!!d&&(i||(i=new Po),function(e,t,n,r,o,i){var a=1&n,u=Zo(e),c=u.length;if(c!=Zo(t).length&&!a)return!1;for(var l=c;l--;){var s=u[l];if(!(a?s in t:$i.call(t,s)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++l<c;){var g=e[s=u[l]],v=t[s];if(r)var _=a?r(v,g,s,t,e,i):r(g,v,s,e,t,i);if(!(void 0===_?g===v||o(g,v,n,r,i):_)){p=!1;break}h||(h="constructor"==s)}if(p&&!h){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,i))}(e,t,n,r,Zi,o))}function Gi(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var u=n[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<i;){var c=(u=n[o])[0],l=e[c],s=u[1];if(a&&u[2]){if(void 0===l&&!(c in e))return!1}else{var f=new Po;if(r)var d=r(l,s,c,e,t,f);if(!(void 0===d?Zi(s,l,3,r,f):d))return!1}}return!0}function Ji(e){return e==e&&!X(e)}function Qi(e){for(var t=hn(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ji(o)]}return t}function Xi(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}function ea(e){var t=Qi(e);return 1==t.length&&t[0][2]?Xi(t[0][0],t[0][1]):function(n){return n===e||Gi(n,e,t)}}function ta(e,t){return null!=e&&t in Object(e)}function na(e,t,n){for(var r=-1,o=(t=Kn(t,e)).length,i=!1;++r<o;){var a=Vn(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Wt(o)&&bt(a,o)&&(F(e)||Yt(e))}function ra(e,t){return null!=e&&na(e,t,ta)}function oa(e,t){return In(e)&&Ji(t)?Xi(Vn(e),t):function(n){var r=Hn(n,e);return void 0===r&&r===t?ra(n,e):Zi(t,r,3)}}function ia(e){return function(t){return null==t?void 0:t[e]}}function aa(e){return In(e)?ia(Vn(e)):function(e){return function(t){return Yn(t,e)}}(e)}function ua(e){return"function"==typeof e?e:null==e?le:"object"==typeof e?F(e)?oa(e[0],e[1]):ea(e):aa(e)}function ca(e){var t=null==e?0:e.length,n=ua;return e=t?q(e,function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]}):[],Lt(function(n){for(var r=-1;++r<t;){var o=e[r];if(Be(o[0],this,n))return Be(o[1],this,n)}})}function la(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 sa(e){return function(e){var t=hn(e);return function(n){return la(n,e,t)}}(Ii(e,1))}function fa(e,t){return null==t||la(e,t,hn(t))}function da(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 pa(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var c=a[e?u:++o];if(!1===n(i[c],c,i))break}return t}}var ha=pa();function ga(e,t){return e&&ha(e,t,hn)}function va(e,t){return function(n,r){if(null==n)return n;if(!Tt(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 _a=va(ga);function ba(e,t,n,r){return _a(e,function(e,o,i){t(r,e,n(e),i)}),r}function ya(e,t){return function(n,r){var o=F(n)?da:ba,i=t?t():{};return o(n,e,ua(r),i)}}var ma=Object.prototype.hasOwnProperty,xa=ya(function(e,t,n){ma.call(e,n)?++e[n]:It(e,n,1)}),Ca=xa;function wa(e,t){var n=ke(e);return null==t?n:Ro(n,t)}function ja(e,t,n){var r=Et(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=ja.placeholder,r}function Aa(e,t,n){var r=Et(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=Aa.placeholder,r}ja.placeholder={},Aa.placeholder={};var Ea=function(){return k.Date.now()},Oa=Math.max,Ia=Math.min;function Ma(e,t,n){var r,o,i,a,u,c,l=0,s=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=i}function g(){var e=Ea();if(h(e))return v(e);u=setTimeout(g,function(e){var n=t-(e-c);return f?Ia(n,i-(e-l)):n}(e))}function v(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function _(){var e=Ea(),n=h(e);if(r=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(g,t),s?p(e):a}(c);if(f)return clearTimeout(u),u=setTimeout(g,t),p(c)}return void 0===u&&(u=setTimeout(g,t)),a}return t=oe(t)||0,X(n)&&(s=!!n.leading,i=(f="maxWait"in n)?Oa(oe(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),_.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=c=o=u=void 0},_.flush=function(){return void 0===u?a:v(Ea())},_}function ka(e,t){return null==e||e!=e?t:e}var Sa=Object.prototype,Ba=Sa.hasOwnProperty,Pa=Lt(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&zt(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=yn(i),u=-1,c=a.length;++u<c;){var l=a[u],s=e[l];(void 0===s||Mt(s,Sa[l])&&!Ba.call(e,l))&&(e[l]=i[l])}return e}),Ra=Pa;function La(e,t,n){(void 0!==n&&!Mt(e[t],n)||void 0===n&&!(t in e))&&It(e,t,n)}function Wa(e){return D(e)&&Tt(e)}function Ta(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function za(e){return Bt(e,yn(e))}function Da(e,t,n,r,o){e!==t&&ha(t,function(i,a){if(o||(o=new Po),X(i))!function(e,t,n,r,o,i,a){var u=Ta(e,n),c=Ta(t,n),l=a.get(c);if(l)La(e,n,l);else{var s=i?i(u,c,n+"",e,t,a):void 0,f=void 0===s;if(f){var d=F(c),p=!d&&Qt(c),h=!d&&!p&&un(c);s=c,d||p||h?F(u)?s=u:Wa(u)?s=Ve(u):p?(f=!1,s=Do(c,!0)):h?(f=!1,s=bi(c,!0)):s=[]:lr(c)||Yt(c)?(s=u,Yt(u)?s=za(u):X(u)&&!se(u)||(s=yi(c))):f=!1}f&&(a.set(c,s),o(s,c,r,i,a),a.delete(c)),La(e,n,s)}}(e,t,a,n,Da,r,o);else{var u=r?r(Ta(e,a),i,a+"",e,t,o):void 0;void 0===u&&(u=i),La(e,a,u)}},yn)}function Ua(e,t,n,r,o,i){return X(e)&&X(t)&&(i.set(t,e),Da(e,t,void 0,Ua,i),i.delete(t)),e}var Na=Dt(function(e,t,n,r){Da(e,t,n,r)}),qa=Na,Fa=Lt(function(e){return e.push(void 0,Ua),Be(qa,void 0,e)});function $a(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}var Ka=Lt(function(e,t){return $a(e,1,t)}),Va=Ka,Ya=Lt(function(e,t,n){return $a(e,oe(t)||0,n)}),Ha=Ya;function Za(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 Ga(e,t,n,r){var o=-1,i=dt,a=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=q(t,en(n))),r?(i=Za,a=!1):t.length>=200&&(i=zi,a=!1,t=new Wi(t));e:for(;++o<u;){var s=e[o],f=null==n?s:n(s);if(s=r||0!==s?s:0,a&&f==f){for(var d=l;d--;)if(t[d]===f)continue e;c.push(s)}else i(t,f,r)||c.push(s)}return c}var Ja=Lt(function(e,t){return Wa(e)?Ga(e,Xn(t,1,Wa,!0)):[]}),Qa=Ja;function Xa(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var eu=Lt(function(e,t){var n=Xa(t);return Wa(n)&&(n=void 0),Wa(e)?Ga(e,Xn(t,1,Wa,!0),ua(n)):[]}),tu=eu,nu=Lt(function(e,t){var n=Xa(t);return Wa(n)&&(n=void 0),Wa(e)?Ga(e,Xn(t,1,Wa,!0),void 0,n):[]}),ru=nu,ou=Y(function(e,t){return e/t},1);function iu(e,t,n){var r=null==e?0:e.length;return r?mr(e,(t=n||void 0===t?1:ue(t))<0?0:t,r):[]}function au(e,t,n){var r=null==e?0:e.length;return r?mr(e,0,(t=r-(t=n||void 0===t?1:ue(t)))<0?0:t):[]}function uu(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?mr(e,r?0:i,r?i+1:o):mr(e,r?i+1:0,r?o:i)}function cu(e,t){return e&&e.length?uu(e,ua(t),!0,!0):[]}function lu(e,t){return e&&e.length?uu(e,ua(t),!0):[]}function su(e){return"function"==typeof e?e:le}function fu(e,t){return(F(e)?ct:_a)(e,su(t))}function du(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}var pu=pa(!0);function hu(e,t){return e&&pu(e,t,hn)}var gu=va(hu,!0);function vu(e,t){return(F(e)?du:gu)(e,su(t))}function _u(e,t,n){e=$n(e),t=V(t);var r=e.length,o=n=void 0===n?r:So(ue(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t}function bu(e){return function(t){var n=fi(t);return"[object Map]"==n?Ui(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 q(t,function(t){return[t,e[t]]})}(t,e(t))}}var yu=bu(hn),mu=bu(yn),xu=Nr({"&":"&","<":"<",">":">",'"':""","'":"'"}),Cu=/[&<>"']/g,wu=RegExp(Cu.source);function ju(e){return(e=$n(e))&&wu.test(e)?e.replace(Cu,xu):e}var Au=/[\\^$.*+?()[\]{}|]/g,Eu=RegExp(Au.source);function Ou(e){return(e=$n(e))&&Eu.test(e)?e.replace(Au,"\\$&"):e}function Iu(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 Mu(e,t){var n=!0;return _a(e,function(e,r,o){return n=!!t(e,r,o)}),n}function ku(e,t,n){var r=F(e)?Iu:Mu;return n&&zt(e,t,n)&&(t=void 0),r(e,ua(t))}function Su(e){return e?So(ue(e),0,4294967295):0}function Bu(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&zt(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ue(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:ue(r))<0&&(r+=o),r=n>r?0:Su(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]}function Pu(e,t){var n=[];return _a(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Ru(e,t){return(F(e)?Uo:Pu)(e,ua(t))}function Lu(e){return function(t,n,r){var o=Object(t);if(!Tt(t)){var i=ua(n);t=hn(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 Wu=Math.max;function Tu(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ue(n);return o<0&&(o=Wu(r+o,0)),lt(e,ua(t),o)}var zu=Lu(Tu);function Du(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Uu(e,t){return Du(e,ua(t),ga)}var Nu=Math.max,qu=Math.min;function Fu(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=ue(n),o=n<0?Nu(r+o,0):qu(o,r-1)),lt(e,ua(t),o,!0)}var $u=Lu(Fu);function Ku(e,t){return Du(e,ua(t),hu)}function Vu(e){return e&&e.length?e[0]:void 0}function Yu(e,t){var n=-1,r=Tt(e)?Array(e.length):[];return _a(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Hu(e,t){return(F(e)?q:Yu)(e,ua(t))}function Zu(e,t){return Xn(Hu(e,t),1)}var Gu=1/0;function Ju(e,t){return Xn(Hu(e,t),Gu)}function Qu(e,t,n){return n=void 0===n?1:ue(n),Xn(Hu(e,t),n)}var Xu=1/0;function ec(e){return null!=e&&e.length?Xn(e,Xu):[]}function tc(e,t){return null!=e&&e.length?Xn(e,t=void 0===t?1:ue(t)):[]}function nc(e){return Et(e,512)}var rc=Ao("floor");function oc(e){return tr(function(t){var n=t.length,r=n,o=Ke.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"==$e(i))var a=new Ke([],!0)}for(r=a?r:n;++r<n;){var u=$e(i=t[r]),c="wrapper"==u?Ne(i):void 0;a=c&&Ge(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?a[$e(c[0])].apply(a,c[3]):1==i.length&&Ge(i)?a[u]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&F(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 ic=oc(),ac=oc(!0);function uc(e,t){return null==e?e:ha(e,su(t),yn)}function cc(e,t){return null==e?e:pu(e,su(t),yn)}function lc(e,t){return e&&ga(e,su(t))}function sc(e,t){return e&&hu(e,su(t))}function fc(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 dc(e,t){return Uo(t,function(t){return se(e[t])})}function pc(e){return null==e?[]:dc(e,hn(e))}function hc(e){return null==e?[]:dc(e,yn(e))}var gc=Object.prototype.hasOwnProperty,vc=ya(function(e,t,n){gc.call(e,n)?e[n].push(t):It(e,n,[t])}),_c=vc;function bc(e,t){return e>t}function yc(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=oe(t),n=oe(n)),e(t,n)}}var mc=yc(bc),xc=yc(function(e,t){return e>=t}),Cc=Object.prototype.hasOwnProperty;function wc(e,t){return null!=e&&Cc.call(e,t)}function jc(e,t){return null!=e&&na(e,t,wc)}var Ac=Math.max,Ec=Math.min;function Oc(e,t,n){return t=ae(t),void 0===n?(n=t,t=0):n=ae(n),function(e,t,n){return e>=Ec(t,n)&&e<Ac(t,n)}(e=oe(e),t,n)}function Ic(e){return"string"==typeof e||!F(e)&&D(e)&&"[object String]"==z(e)}function Mc(e,t){return q(t,function(t){return e[t]})}function kc(e){return null==e?[]:Mc(e,hn(e))}var Sc=Math.max;function Bc(e,t,n,r){e=Tt(e)?e:kc(e),n=n&&!r?ue(n):0;var o=e.length;return n<0&&(n=Sc(o+n,0)),Ic(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&ft(e,t,n)>-1}var Pc=Math.max;function Rc(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ue(n);return o<0&&(o=Pc(r+o,0)),ft(e,t,o)}function Lc(e){return null!=e&&e.length?mr(e,0,-1):[]}var Wc=Math.min;function Tc(e,t,n){for(var r=n?Za:dt,o=e[0].length,i=e.length,a=i,u=Array(i),c=1/0,l=[];a--;){var s=e[a];a&&t&&(s=q(s,en(t))),c=Wc(s.length,c),u[a]=!n&&(t||o>=120&&s.length>=120)?new Wi(a&&s):void 0}s=e[0];var f=-1,d=u[0];e:for(;++f<o&&l.length<c;){var p=s[f],h=t?t(p):p;if(p=n||0!==p?p:0,!(d?zi(d,h):r(l,h,n))){for(a=i;--a;){var g=u[a];if(!(g?zi(g,h):r(e[a],h,n)))continue e}d&&d.push(h),l.push(p)}}return l}function zc(e){return Wa(e)?e:[]}var Dc=Lt(function(e){var t=q(e,zc);return t.length&&t[0]===e[0]?Tc(t):[]}),Uc=Lt(function(e){var t=Xa(e),n=q(e,zc);return t===Xa(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?Tc(n,ua(t)):[]}),Nc=Uc,qc=Lt(function(e){var t=Xa(e),n=q(e,zc);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?Tc(n,void 0,t):[]});function Fc(e,t){return function(n,r){return function(e,t,n,r){return ga(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}var $c=Object.prototype.toString,Kc=Fc(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$c.call(t)),e[t]=n},rt(le)),Vc=Kc,Yc=Object.prototype,Hc=Yc.hasOwnProperty,Zc=Yc.toString,Gc=Fc(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Zc.call(t)),Hc.call(e,t)?e[t].push(n):e[t]=[n]},ua),Jc=Gc;function Qc(e,t){return t.length<2?e:Yn(e,mr(t,0,-1))}function Xc(e,t,n){var r=null==(e=Qc(e,t=Kn(t,e)))?e:e[Vn(Xa(t))];return null==r?void 0:Be(r,e,n)}var el=Lt(Xc),tl=Lt(function(e,t,n){var r=-1,o="function"==typeof t,i=Tt(e)?Array(e.length):[];return _a(e,function(e){i[++r]=o?Be(t,e,n):Xc(e,t,n)}),i}),nl=tl,rl=on&&on.isArrayBuffer,ol=rl?en(rl):function(e){return D(e)&&"[object ArrayBuffer]"==z(e)};function il(e){return!0===e||!1===e||D(e)&&"[object Boolean]"==z(e)}var al=on&&on.isDate,ul=al?en(al):function(e){return D(e)&&"[object Date]"==z(e)};function cl(e){return D(e)&&1===e.nodeType&&!lr(e)}var ll=Object.prototype.hasOwnProperty;function sl(e){if(null==e)return!0;if(Tt(e)&&(F(e)||"string"==typeof e||"function"==typeof e.splice||Qt(e)||un(e)||Yt(e)))return!e.length;var t=fi(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Nt(e))return!pn(e).length;for(var n in e)if(ll.call(e,n))return!1;return!0}function fl(e,t){return Zi(e,t)}function dl(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Zi(e,t,void 0,n):!!r}var pl=k.isFinite;function hl(e){return"number"==typeof e&&pl(e)}function gl(e){return"number"==typeof e&&e==ue(e)}function vl(e,t){return e===t||Gi(e,t,Qi(t))}function _l(e,t,n){return n="function"==typeof n?n:void 0,Gi(e,t,Qi(t),n)}function bl(e){return"number"==typeof e||D(e)&&"[object Number]"==z(e)}function yl(e){return bl(e)&&e!=+e}var ml=de?se:Ht;function xl(e){if(ml(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ce(e)}function Cl(e){return null==e}function wl(e){return null===e}var jl=on&&on.isRegExp,Al=jl?en(jl):function(e){return D(e)&&"[object RegExp]"==z(e)};function El(e){return gl(e)&&e>=-9007199254740991&&e<=9007199254740991}function Ol(e){return void 0===e}function Il(e){return D(e)&&"[object WeakMap]"==fi(e)}function Ml(e){return D(e)&&"[object WeakSet]"==z(e)}function kl(e){return ua("function"==typeof e?e:Ii(e,1))}var Sl=Array.prototype.join;function Bl(e,t){return null==e?"":Sl.call(e,t)}var Pl=yo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Rl=Pl,Ll=ya(function(e,t,n){It(e,n,t)}),Wl=Ll,Tl=Math.max,zl=Math.min;function Dl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ue(n))<0?Tl(r+o,0):zl(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):lt(e,st,o,!0)}var Ul=yo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Nl=Ul,ql=Tr("toLowerCase");function Fl(e,t){return e<t}var $l=yc(Fl),Kl=yc(function(e,t){return e<=t});function Vl(e,t){var n={};return t=ua(t),ga(e,function(e,r,o){It(n,t(e,r,o),e)}),n}function Yl(e,t){var n={};return t=ua(t),ga(e,function(e,r,o){It(n,r,t(e,r,o))}),n}function Hl(e){return ea(Ii(e,1))}function Zl(e,t){return oa(e,Ii(t,1))}function Gl(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===u?a==a&&!U(a):n(a,u)))var u=a,c=i}return c}function Jl(e){return e&&e.length?Gl(e,le,bc):void 0}function Ql(e,t){return e&&e.length?Gl(e,ua(t),bc):void 0}function Xl(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 es(e,t){var n=null==e?0:e.length;return n?Xl(e,t)/n:NaN}function ts(e){return es(e,le)}function ns(e,t){return es(e,ua(t))}var rs=Dt(function(e,t,n){Da(e,t,n)}),os=rs,is=Lt(function(e,t){return function(n){return Xc(n,e,t)}}),as=is,us=Lt(function(e,t){return function(n){return Xc(e,n,t)}}),cs=us;function ls(e){return e&&e.length?Gl(e,le,Fl):void 0}function ss(e,t){return e&&e.length?Gl(e,ua(t),Fl):void 0}function fs(e,t,n){var r=hn(t),o=dc(t,r),i=!(X(n)&&"chain"in n&&!n.chain),a=se(e);return ct(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__=Ve(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Gn([this.value()],arguments))})}),e}var ds=Y(function(e,t){return e*t},1);function ps(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 hs=S?S.iterator:void 0;function gs(e){if(!e)return[];if(Tt(e))return Ic(e)?Wr(e):Ve(e);if(hs&&e[hs])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[hs]());var t=fi(e);return("[object Map]"==t?Ui:"[object Set]"==t?Ni:kc)(e)}function vs(){void 0===this.__values__&&(this.__values__=gs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function _s(e,t){var n=e.length;if(n)return bt(t+=t<0?n:0,n)?e[t]:void 0}function bs(e,t){return e&&e.length?_s(e,ue(t)):void 0}function ys(e){return e=ue(e),Lt(function(t){return _s(t,e)})}var ms=Object.prototype.hasOwnProperty;function xs(e,t){var n=-1,r=(t=Kn(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&&!ms.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=Qc(e,t);return null==a||delete a[Vn(Xa(t))]}function Cs(e){return lr(e)?void 0:e}var ws=tr(function(e,t){var n={};if(null==e)return n;var r=!1;t=q(t,function(t){return t=Kn(t,e),r||(r=t.length>1),t}),Bt(e,Go(e),n),r&&(n=Ii(n,7,Cs));for(var o=t.length;o--;)xs(n,t[o]);return n}),js=ws;function As(e,t,n,r){if(!X(e))return e;for(var o=-1,i=(t=Kn(t,e)).length,a=i-1,u=e;null!=u&&++o<i;){var c=Vn(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var s=u[c];void 0===(l=r?r(s,c,u):void 0)&&(l=X(s)?s:bt(t[o+1])?[]:{})}St(u,c,l),u=u[c]}return e}function Es(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=Yn(e,a);n(u,a)&&As(i,Kn(a,e),u)}return i}function Os(e,t){if(null==e)return{};var n=q(Go(e),function(e){return[e]});return t=ua(t),Es(e,n,function(e,n){return t(e,n[0])})}function Is(e,t){return Os(e,ps(ua(t)))}function Ms(e){return pr(2,e)}function ks(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=U(e),a=void 0!==t,u=null===t,c=t==t,l=U(t);if(!u&&!l&&!i&&e>t||i&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||u&&n&&o||!a&&o||!c)return-1}return 0}function Ss(e,t,n){t=t.length?q(t,function(e){return F(e)?function(t){return Yn(t,1===e.length?e[0]:e)}:e}):[le];var r=-1;t=q(t,en(ua));var o=Yu(e,function(e,n,o){var i=q(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,u=n.length;++r<a;){var c=ks(o[r],i[r]);if(c)return r>=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Bs(e,t,n,r){return null==e?[]:(F(t)||(t=null==t?[]:[t]),F(n=r?void 0:n)||(n=null==n?[]:[n]),Ss(e,t,n))}function Ps(e){return tr(function(t){return t=q(t,en(ua)),Lt(function(n){var r=this;return e(t,function(e){return Be(e,r,n)})})})}var Rs=Ps(q),Ls=Lt,Ws=Math.min,Ts=Ls(function(e,t){var n=(t=1==t.length&&F(t[0])?q(t[0],en(ua)):q(Xn(t,1),en(ua))).length;return Lt(function(r){for(var o=-1,i=Ws(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Be(e,this,r)})}),zs=Ts,Ds=Ps(Iu),Us=Ps(Ti),Ns=Math.floor;function qs(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Ns(t/2))&&(e+=e)}while(t);return n}var Fs=ia("length"),$s="\\ud800-\\udfff",Ks="["+$s+"]",Vs="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ys="\\ud83c[\\udffb-\\udfff]",Hs="[^"+$s+"]",Zs="(?:\\ud83c[\\udde6-\\uddff]){2}",Gs="[\\ud800-\\udbff][\\udc00-\\udfff]",Js="(?:"+Vs+"|"+Ys+")?",Qs="[\\ufe0e\\ufe0f]?",Xs=Qs+Js+"(?:\\u200d(?:"+[Hs,Zs,Gs].join("|")+")"+Qs+Js+")*",ef="(?:"+[Hs+Vs+"?",Vs,Zs,Gs,Ks].join("|")+")",tf=RegExp(Ys+"(?="+Ys+")|"+ef+Xs,"g");function nf(e){return wr(e)?function(e){for(var t=tf.lastIndex=0;tf.test(e);)++t;return t}(e):Fs(e)}var rf=Math.ceil;function of(e,t){var n=(t=void 0===t?" ":V(t)).length;if(n<2)return n?qs(t,e):t;var r=qs(t,rf(e/nf(t)));return wr(t)?xr(Wr(r),0,e).join(""):r.slice(0,e)}var af=Math.ceil,uf=Math.floor;function cf(e,t,n){e=$n(e);var r=(t=ue(t))?nf(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return of(uf(o),n)+e+of(af(o),n)}function lf(e,t,n){e=$n(e);var r=(t=ue(t))?nf(e):0;return t&&r<t?e+of(t-r,n):e}function sf(e,t,n){e=$n(e);var r=(t=ue(t))?nf(e):0;return t&&r<t?of(t-r,n)+e:e}var ff=/^\s+/,df=k.parseInt;function pf(e,t,n){return n||null==t?t=0:t&&(t=+t),df($n(e).replace(ff,""),t||0)}var hf=Lt(function(e,t){return Et(e,32,void 0,t,xt(t,vt(hf)))});hf.placeholder={};var gf=hf,vf=Lt(function(e,t){return Et(e,64,void 0,t,xt(t,vt(vf)))});vf.placeholder={};var _f=vf,bf=ya(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),yf=bf,mf=tr(function(e,t){return null==e?{}:function(e,t){return Es(e,t,function(t,n){return ra(e,n)})}(e,t)}),xf=mf;function Cf(e){for(var t,n=this;n instanceof Te;){var r=Ye(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 wf(e){return function(t){return null==e?void 0:Yn(e,t)}}function jf(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var Af=Array.prototype.splice;function Ef(e,t,n,r){var o=r?jf:ft,i=-1,a=t.length,u=e;for(e===t&&(t=Ve(t)),n&&(u=q(e,en(n)));++i<a;)for(var c=0,l=t[i],s=n?n(l):l;(c=o(u,s,c,r))>-1;)u!==e&&Af.call(u,c,1),Af.call(e,c,1);return e}function Of(e,t){return e&&e.length&&t&&t.length?Ef(e,t):e}var If=Lt(Of);function Mf(e,t,n){return e&&e.length&&t&&t.length?Ef(e,t,ua(n)):e}function kf(e,t,n){return e&&e.length&&t&&t.length?Ef(e,t,void 0,n):e}var Sf=Array.prototype.splice;function Bf(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;bt(o)?Sf.call(e,o,1):xs(e,o)}}return e}var Pf=tr(function(e,t){var n=null==e?0:e.length,r=Zn(e,t);return Bf(e,q(t,function(e){return bt(e,n)?+e:e}).sort(ks)),r}),Rf=Pf,Lf=Math.floor,Wf=Math.random;function Tf(e,t){return e+Lf(Wf()*(t-e+1))}var zf=parseFloat,Df=Math.min,Uf=Math.random;function Nf(e,t,n){if(n&&"boolean"!=typeof n&&zt(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=ae(e),void 0===t?(t=e,e=0):t=ae(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Uf();return Df(e+o*(t-e+zf("1e-"+((o+"").length-1))),t)}return Tf(e,t)}var qf=Math.ceil,Ff=Math.max;function $f(e){return function(t,n,r){return r&&"number"!=typeof r&&zt(t,n,r)&&(n=r=void 0),t=ae(t),void 0===n?(n=t,t=0):n=ae(n),function(e,t,n,r){for(var o=-1,i=Ff(qf((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:ae(r),e)}}var Kf=$f(),Vf=$f(!0),Yf=tr(function(e,t){return Et(e,256,void 0,void 0,void 0,t)}),Hf=Yf;function Zf(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Gf(e,t,n){var r=F(e)?Ur:Zf,o=arguments.length<3;return r(e,ua(t),n,o,_a)}function Jf(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 Qf(e,t,n){var r=F(e)?Jf:Zf,o=arguments.length<3;return r(e,ua(t),n,o,gu)}function Xf(e,t){return(F(e)?Uo:Pu)(e,ps(ua(t)))}function ed(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ua(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Bf(e,o),n}function td(e,t,n){return t=(n?zt(e,t,n):void 0===t)?1:ue(t),qs($n(e),t)}function nd(){var e=arguments,t=$n(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function rd(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return Lt(e,t=void 0===t?t:ue(t))}function od(e,t,n){var r=-1,o=(t=Kn(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[Vn(t[r])];void 0===i&&(r=o,i=n),e=se(i)?i.call(e):i}return e}var id=Array.prototype.reverse;function ad(e){return null==e?e:id.call(e)}var ud=Ao("round");function cd(e){var t=e.length;return t?e[Tf(0,t-1)]:void 0}function ld(e){return cd(kc(e))}function sd(e){return(F(e)?cd:ld)(e)}function fd(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Tf(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function dd(e,t){return fd(Ve(e),So(t,0,e.length))}function pd(e,t){var n=kc(e);return fd(n,So(t,0,n.length))}function hd(e,t,n){return t=(n?zt(e,t,n):void 0===t)?1:ue(t),(F(e)?dd:pd)(e,t)}function gd(e,t,n){return null==e?e:As(e,t,n)}function vd(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:As(e,t,n,r)}function _d(e){return fd(Ve(e))}function bd(e){return fd(kc(e))}function yd(e){return(F(e)?_d:bd)(e)}function md(e){if(null==e)return 0;if(Tt(e))return Ic(e)?nf(e):e.length;var t=fi(e);return"[object Map]"==t||"[object Set]"==t?e.size:pn(e).length}function xd(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&zt(e,t,n)?(t=0,n=r):(t=null==t?0:ue(t),n=void 0===n?r:ue(n)),mr(e,t,n)):[]}var Cd=yo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),wd=Cd;function jd(e,t){var n;return _a(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function Ad(e,t,n){var r=F(e)?Ti:jd;return n&&zt(e,t,n)&&(t=void 0),r(e,ua(t))}var Ed=Lt(function(e,t){if(null==e)return[];var n=t.length;return n>1&&zt(e,t[0],t[1])?t=[]:n>2&&zt(t[0],t[1],t[2])&&(t=[t[0]]),Ss(e,Xn(t,1),[])}),Od=Ed,Id=Math.floor,Md=Math.min;function kd(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,u=null===t,c=U(t),l=void 0===t;o<i;){var s=Id((o+i)/2),f=n(e[s]),d=void 0!==f,p=null===f,h=f==f,g=U(f);if(a)var v=r||h;else v=l?h&&(r||d):u?h&&d&&(r||!p):c?h&&d&&!p&&(r||!g):!p&&!g&&(r?f<=t:f<t);v?o=s+1:i=s}return Md(i,4294967294)}function Sd(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&&!U(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return kd(e,t,le,n)}function Bd(e,t){return Sd(e,t)}function Pd(e,t,n){return kd(e,t,ua(n))}function Rd(e,t){var n=null==e?0:e.length;if(n){var r=Sd(e,t);if(r<n&&Mt(e[r],t))return r}return-1}function Ld(e,t){return Sd(e,t,!0)}function Wd(e,t,n){return kd(e,t,ua(n),!0)}function Td(e,t){if(null!=e&&e.length){var n=Sd(e,t,!0)-1;if(Mt(e[n],t))return n}return-1}function zd(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!Mt(u,c)){var c=u;i[o++]=0===a?0:a}}return i}function Dd(e){return e&&e.length?zd(e):[]}function Ud(e,t){return e&&e.length?zd(e,ua(t)):[]}function Nd(e,t,n){return n&&"number"!=typeof n&&zt(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=$n(e))&&("string"==typeof t||null!=t&&!Al(t))&&!(t=V(t))&&wr(e)?xr(Wr(e),0,n):e.split(t,n):[]}var qd=Math.max;function Fd(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:qd(ue(t),0),Lt(function(n){var r=n[t],o=xr(n,0,t);return r&&Gn(o,r),Be(e,this,o)})}var $d=yo(function(e,t,n){return e+(n?" ":"")+zr(t)}),Kd=$d;function Vd(e,t,n){return e=$n(e),n=null==n?0:So(ue(n),0,e.length),t=V(t),e.slice(n,n+t.length)==t}function Yd(){return{}}function Hd(){return""}function Zd(){return!0}var Gd=Y(function(e,t){return e-t},0);function Jd(e){return e&&e.length?Xl(e,le):0}function Qd(e,t){return e&&e.length?Xl(e,ua(t)):0}function Xd(e){var t=null==e?0:e.length;return t?mr(e,1,t):[]}function ep(e,t,n){return e&&e.length?mr(e,0,(t=n||void 0===t?1:ue(t))<0?0:t):[]}function tp(e,t,n){var r=null==e?0:e.length;return r?mr(e,(t=r-(t=n||void 0===t?1:ue(t)))<0?0:t,r):[]}function np(e,t){return e&&e.length?uu(e,ua(t),!1,!0):[]}function rp(e,t){return e&&e.length?uu(e,ua(t)):[]}function op(e,t){return t(e),e}var ip=Object.prototype,ap=ip.hasOwnProperty;function up(e,t,n,r){return void 0===e||Mt(e,ip[n])&&!ap.call(r,n)?t:e}var cp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function lp(e){return"\\"+cp[e]}var sp=/<%=([\s\S]+?)%>/g,fp={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:sp,variable:"",imports:{_:{escape:ju}}},dp=/\b__p \+= '';/g,pp=/\b(__p \+=) '' \+/g,hp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gp=/[()=,{}\[\]\/\s]/,vp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_p=/($^)/,bp=/['\n\r\u2028\u2029\\]/g,yp=Object.prototype.hasOwnProperty;function mp(e,t,n){var r=fp.imports._.templateSettings||fp;n&&zt(e,t,n)&&(t=void 0),e=$n(e),t=wn({},t,r,up);var o,i,a=wn({},t.imports,r.imports,up),u=hn(a),c=Mc(a,u),l=0,s=t.interpolate||_p,f="__p += '",d=RegExp((t.escape||_p).source+"|"+s.source+"|"+(s===sp?vp:_p).source+"|"+(t.evaluate||_p).source+"|$","g"),p=yp.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(d,function(t,n,r,a,u,c){return r||(r=a),f+=e.slice(l,c).replace(bp,lp),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t}),f+="';\n";var h=yp.call(t,"variable")&&t.variable;if(h){if(gp.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(dp,""):f).replace(pp,"$1").replace(hp,"$1;"),f="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")+f+"return __p\n}";var g=dr(function(){return Function(u,p+"return "+f).apply(void 0,c)});if(g.source=f,sr(g))throw g;return g}function xp(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return X(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ma(e,t,{leading:r,maxWait:t,trailing:o})}function Cp(e,t){return t(e)}var wp=4294967295,jp=Math.min;function Ap(e,t){if((e=ue(e))<1||e>9007199254740991)return[];var n=wp,r=jp(e,wp);t=su(t),e-=wp;for(var o=qt(r,t);++n<e;)t(n);return o}function Ep(){return this}function Op(e,t){var n=e;return n instanceof ze&&(n=n.value()),Ur(t,function(e,t){return t.func.apply(t.thisArg,Gn([e],t.args))},n)}function Ip(){return Op(this.__wrapped__,this.__actions__)}function Mp(e){return $n(e).toLowerCase()}function kp(e){return F(e)?q(e,Vn):U(e)?[e]:Ve(Fn($n(e)))}function Sp(e){return e?So(ue(e),-9007199254740991,9007199254740991):0===e?e:0}function Bp(e){return $n(e).toUpperCase()}function Pp(e,t,n){var r=F(e),o=r||Qt(e)||un(e);if(t=ua(t),null==n){var i=e&&e.constructor;n=o?r?new i:[]:X(e)&&se(i)?ke(rr(e)):{}}return(o?ct:ga)(e,function(e,r,o){return t(n,e,r,o)}),n}function Rp(e,t){for(var n=e.length;n--&&ft(t,e[n],0)>-1;);return n}function Lp(e,t){for(var n=-1,r=e.length;++n<r&&ft(t,e[n],0)>-1;);return n}function Wp(e,t,n){if((e=$n(e))&&(n||void 0===t))return Q(e);if(!e||!(t=V(t)))return e;var r=Wr(e),o=Wr(t);return xr(r,Lp(r,o),Rp(r,o)+1).join("")}function Tp(e,t,n){if((e=$n(e))&&(n||void 0===t))return e.slice(0,G(e)+1);if(!e||!(t=V(t)))return e;var r=Wr(e);return xr(r,0,Rp(r,Wr(t))+1).join("")}var zp=/^\s+/;function Dp(e,t,n){if((e=$n(e))&&(n||void 0===t))return e.replace(zp,"");if(!e||!(t=V(t)))return e;var r=Wr(e);return xr(r,Lp(r,Wr(t))).join("")}var Up=/\w*$/;function Np(e,t){var n=30,r="...";if(X(t)){var o="separator"in t?t.separator:o;n="length"in t?ue(t.length):n,r="omission"in t?V(t.omission):r}var i=(e=$n(e)).length;if(wr(e)){var a=Wr(e);i=a.length}if(n>=i)return e;var u=n-nf(r);if(u<1)return r;var c=a?xr(a,0,u).join(""):e.slice(0,u);if(void 0===o)return c+r;if(a&&(u+=c.length-u),Al(o)){if(e.slice(u).search(o)){var l,s=c;for(o.global||(o=RegExp(o.source,$n(Up.exec(o))+"g")),o.lastIndex=0;l=o.exec(s);)var f=l.index;c=c.slice(0,void 0===f?u:f)}}else if(e.indexOf(V(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r}function qp(e){return Ot(e,1)}var Fp=Nr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),$p=/&(?:amp|lt|gt|quot|#39);/g,Kp=RegExp($p.source);function Vp(e){return(e=$n(e))&&Kp.test(e)?e.replace($p,Fp):e}var Yp=Xo&&1/Ni(new Xo([,-0]))[1]==1/0?function(e){return new Xo(e)}:De,Hp=Yp;function Zp(e,t,n){var r=-1,o=dt,i=e.length,a=!0,u=[],c=u;if(n)a=!1,o=Za;else if(i>=200){var l=t?null:Hp(e);if(l)return Ni(l);a=!1,o=zi,c=new Wi}else c=t?[]:u;e:for(;++r<i;){var s=e[r],f=t?t(s):s;if(s=n||0!==s?s:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),u.push(s)}else o(c,f,n)||(c!==u&&c.push(f),u.push(s))}return u}var Gp=Lt(function(e){return Zp(Xn(e,1,Wa,!0))}),Jp=Lt(function(e){var t=Xa(e);return Wa(t)&&(t=void 0),Zp(Xn(e,1,Wa,!0),ua(t))}),Qp=Jp,Xp=Lt(function(e){var t=Xa(e);return t="function"==typeof t?t:void 0,Zp(Xn(e,1,Wa,!0),void 0,t)});function eh(e){return e&&e.length?Zp(e):[]}function th(e,t){return e&&e.length?Zp(e,ua(t)):[]}function nh(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zp(e,void 0,t):[]}var rh=0;function oh(e){var t=++rh;return $n(e)+t}function ih(e,t){return null==e||xs(e,t)}var ah=Math.max;function uh(e){if(!e||!e.length)return[];var t=0;return e=Uo(e,function(e){if(Wa(e))return t=ah(e.length,t),!0}),qt(t,function(t){return q(e,ia(t))})}function ch(e,t){if(!e||!e.length)return[];var n=uh(e);return null==t?n:q(n,function(e){return Be(t,void 0,e)})}function lh(e,t,n,r){return As(e,t,n(Yn(e,t)),r)}function sh(e,t,n){return null==e?e:lh(e,t,su(n))}function fh(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:lh(e,t,su(n),r)}var dh=yo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ph=dh;function hh(e){return null==e?[]:Mc(e,yn(e))}var gh=Lt(function(e,t){return Wa(e)?Ga(e,t):[]}),vh=gh;function _h(e,t){return gf(su(t),e)}var bh=tr(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Zn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ze&&bt(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Cp,args:[o],thisArg:void 0}),new Ke(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(void 0),e})):this.thru(o)}),yh=bh;function mh(){return Oo(this)}function xh(){var e=this.__wrapped__;if(e instanceof ze){var t=e;return this.__actions__.length&&(t=new ze(this)),(t=t.reverse()).__actions__.push({func:Cp,args:[ad],thisArg:void 0}),new Ke(t,this.__chain__)}return this.thru(ad)}function Ch(e,t,n){var r=e.length;if(r<2)return r?Zp(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=Ga(i[o]||a,e[u],t,n));return Zp(Xn(i,1),t,n)}var wh=Lt(function(e){return Ch(Uo(e,Wa))}),jh=Lt(function(e){var t=Xa(e);return Wa(t)&&(t=void 0),Ch(Uo(e,Wa),ua(t))}),Ah=jh,Eh=Lt(function(e){var t=Xa(e);return t="function"==typeof t?t:void 0,Ch(Uo(e,Wa),void 0,t)}),Oh=Lt(uh);function Ih(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var u=r<i?t[r]:void 0;n(a,e[r],u)}return a}function Mh(e,t){return Ih(e||[],t||[],St)}function kh(e,t){return Ih(e||[],t||[],As)}var Sh,Bh=Lt(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,ch(e,n)}),Ph=Bh,Rh={chunk:ko,compact:Ri,concat:Li,difference:Qa,differenceBy:tu,differenceWith:ru,drop:iu,dropRight:au,dropRightWhile:cu,dropWhile:lu,fill:Bu,findIndex:Tu,findLastIndex:Fu,first:Vu,flatten:er,flattenDeep:ec,flattenDepth:tc,fromPairs:fc,head:Vu,indexOf:Rc,initial:Lc,intersection:Dc,intersectionBy:Nc,intersectionWith:qc,join:Bl,last:Xa,lastIndexOf:Dl,nth:bs,pull:If,pullAll:Of,pullAllBy:Mf,pullAllWith:kf,pullAt:Rf,remove:ed,reverse:ad,slice:xd,sortedIndex:Bd,sortedIndexBy:Pd,sortedIndexOf:Rd,sortedLastIndex:Ld,sortedLastIndexBy:Wd,sortedLastIndexOf:Td,sortedUniq:Dd,sortedUniqBy:Ud,tail:Xd,take:ep,takeRight:tp,takeRightWhile:np,takeWhile:rp,union:Gp,unionBy:Qp,unionWith:Xp,uniq:eh,uniqBy:th,uniqWith:nh,unzip:uh,unzipWith:ch,without:vh,xor:wh,xorBy:Ah,xorWith:Eh,zip:Oh,zipObject:Mh,zipObjectDeep:kh,zipWith:Ph},Lh={countBy:Ca,each:fu,eachRight:vu,every:ku,filter:Ru,find:zu,findLast:$u,flatMap:Zu,flatMapDeep:Ju,flatMapDepth:Qu,forEach:fu,forEachRight:vu,groupBy:_c,includes:Bc,invokeMap:nl,keyBy:Wl,map:Hu,orderBy:Bs,partition:yf,reduce:Gf,reduceRight:Qf,reject:Xf,sample:sd,sampleSize:hd,shuffle:yd,size:md,some:Ad,sortBy:Od},Wh=Ea,Th={after:ce,ary:Ot,before:pr,bind:gr,bindKey:yr,curry:ja,curryRight:Aa,debounce:Ma,defer:Va,delay:Ha,flip:nc,memoize:Dn,negate:ps,once:Ms,overArgs:zs,partial:gf,partialRight:_f,rearg:Hf,rest:rd,spread:Fd,throttle:xp,unary:qp,wrap:_h},zh={castArray:Co,clone:Mi,cloneDeep:ki,cloneDeepWith:Si,cloneWith:Bi,conformsTo:fa,eq:Mt,gt:mc,gte:xc,isArguments:Yt,isArray:F,isArrayBuffer:ol,isArrayLike:Tt,isArrayLikeObject:Wa,isBoolean:il,isBuffer:Qt,isDate:ul,isElement:cl,isEmpty:sl,isEqual:fl,isEqualWith:dl,isError:sr,isFinite:hl,isFunction:se,isInteger:gl,isLength:Wt,isMap:xi,isMatch:vl,isMatchWith:_l,isNaN:yl,isNative:xl,isNil:Cl,isNull:wl,isNumber:bl,isObject:X,isObjectLike:D,isPlainObject:lr,isRegExp:Al,isSafeInteger:El,isSet:wi,isString:Ic,isSymbol:U,isTypedArray:un,isUndefined:Ol,isWeakMap:Il,isWeakSet:Ml,lt:$l,lte:Kl,toArray:gs,toFinite:ae,toInteger:ue,toLength:Su,toNumber:oe,toPlainObject:za,toSafeInteger:Sp,toString:$n},Dh={add:H,ceil:Eo,divide:ou,floor:rc,max:Jl,maxBy:Ql,mean:ts,meanBy:ns,min:ls,minBy:ss,multiply:ds,round:ud,subtract:Gd,sum:Jd,sumBy:Qd},Uh=Bo,Nh=Oc,qh=Nf,Fh={assign:_n,assignIn:xn,assignInWith:wn,assignWith:An,at:nr,create:wa,defaults:Ra,defaultsDeep:Fa,entries:yu,entriesIn:mu,extend:xn,extendWith:wn,findKey:Uu,findLastKey:Ku,forIn:uc,forInRight:cc,forOwn:lc,forOwnRight:sc,functions:pc,functionsIn:hc,get:Hn,has:jc,hasIn:ra,invert:Vc,invertBy:Jc,invoke:el,keys:hn,keysIn:yn,mapKeys:Vl,mapValues:Yl,merge:os,mergeWith:qa,omit:js,omitBy:Is,pick:xf,pickBy:Os,result:od,set:gd,setWith:vd,toPairs:yu,toPairsIn:mu,transform:Pp,unset:ih,update:sh,updateWith:fh,values:kc,valuesIn:hh},$h={at:yh,chain:Oo,commit:Pi,lodash:Ze,next:vs,plant:Cf,reverse:xh,tap:op,thru:Cp,toIterator:Ep,toJSON:Ip,value:Ip,valueOf:Ip,wrapperChain:mh},Kh={camelCase:xo,capitalize:Dr,deburr:Kr,endsWith:_u,escape:ju,escapeRegExp:Ou,kebabCase:Rl,lowerCase:Nl,lowerFirst:ql,pad:cf,padEnd:lf,padStart:sf,parseInt:pf,repeat:td,replace:nd,snakeCase:wd,split:Nd,startCase:Kd,startsWith:Vd,template:mp,templateSettings:fp,toLower:Mp,toUpper:Bp,trim:Wp,trimEnd:Tp,trimStart:Dp,truncate:Np,unescape:Vp,upperCase:ph,upperFirst:zr,words:_o},Vh={attempt:dr,bindAll:_r,cond:ca,conforms:sa,constant:rt,defaultTo:ka,flow:ic,flowRight:ac,identity:le,iteratee:kl,matches:Hl,matchesProperty:Zl,method:as,methodOf:cs,mixin:fs,noop:De,nthArg:ys,over:Rs,overEvery:Ds,overSome:Us,property:aa,propertyOf:wf,range:Kf,rangeRight:Vf,stubArray:No,stubFalse:Ht,stubObject:Yd,stubString:Hd,stubTrue:Zd,times:Ap,toPath:kp,uniqueId:oh},Yh=Math.max,Hh=Math.min,Zh=Math.min,Gh=4294967295,Jh=Array.prototype,Qh=Object.prototype.hasOwnProperty,Xh=S?S.iterator:void 0,eg=Math.max,tg=Math.min,ng=function(e){return function(t,n,r){if(null==r){var o=X(n),i=o&&hn(n),a=i&&i.length&&dc(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(fs);Ze.after=Th.after,Ze.ary=Th.ary,Ze.assign=Fh.assign,Ze.assignIn=Fh.assignIn,Ze.assignInWith=Fh.assignInWith,Ze.assignWith=Fh.assignWith,Ze.at=Fh.at,Ze.before=Th.before,Ze.bind=Th.bind,Ze.bindAll=Vh.bindAll,Ze.bindKey=Th.bindKey,Ze.castArray=zh.castArray,Ze.chain=$h.chain,Ze.chunk=Rh.chunk,Ze.compact=Rh.compact,Ze.concat=Rh.concat,Ze.cond=Vh.cond,Ze.conforms=Vh.conforms,Ze.constant=Vh.constant,Ze.countBy=Lh.countBy,Ze.create=Fh.create,Ze.curry=Th.curry,Ze.curryRight=Th.curryRight,Ze.debounce=Th.debounce,Ze.defaults=Fh.defaults,Ze.defaultsDeep=Fh.defaultsDeep,Ze.defer=Th.defer,Ze.delay=Th.delay,Ze.difference=Rh.difference,Ze.differenceBy=Rh.differenceBy,Ze.differenceWith=Rh.differenceWith,Ze.drop=Rh.drop,Ze.dropRight=Rh.dropRight,Ze.dropRightWhile=Rh.dropRightWhile,Ze.dropWhile=Rh.dropWhile,Ze.fill=Rh.fill,Ze.filter=Lh.filter,Ze.flatMap=Lh.flatMap,Ze.flatMapDeep=Lh.flatMapDeep,Ze.flatMapDepth=Lh.flatMapDepth,Ze.flatten=Rh.flatten,Ze.flattenDeep=Rh.flattenDeep,Ze.flattenDepth=Rh.flattenDepth,Ze.flip=Th.flip,Ze.flow=Vh.flow,Ze.flowRight=Vh.flowRight,Ze.fromPairs=Rh.fromPairs,Ze.functions=Fh.functions,Ze.functionsIn=Fh.functionsIn,Ze.groupBy=Lh.groupBy,Ze.initial=Rh.initial,Ze.intersection=Rh.intersection,Ze.intersectionBy=Rh.intersectionBy,Ze.intersectionWith=Rh.intersectionWith,Ze.invert=Fh.invert,Ze.invertBy=Fh.invertBy,Ze.invokeMap=Lh.invokeMap,Ze.iteratee=Vh.iteratee,Ze.keyBy=Lh.keyBy,Ze.keys=hn,Ze.keysIn=Fh.keysIn,Ze.map=Lh.map,Ze.mapKeys=Fh.mapKeys,Ze.mapValues=Fh.mapValues,Ze.matches=Vh.matches,Ze.matchesProperty=Vh.matchesProperty,Ze.memoize=Th.memoize,Ze.merge=Fh.merge,Ze.mergeWith=Fh.mergeWith,Ze.method=Vh.method,Ze.methodOf=Vh.methodOf,Ze.mixin=ng,Ze.negate=ps,Ze.nthArg=Vh.nthArg,Ze.omit=Fh.omit,Ze.omitBy=Fh.omitBy,Ze.once=Th.once,Ze.orderBy=Lh.orderBy,Ze.over=Vh.over,Ze.overArgs=Th.overArgs,Ze.overEvery=Vh.overEvery,Ze.overSome=Vh.overSome,Ze.partial=Th.partial,Ze.partialRight=Th.partialRight,Ze.partition=Lh.partition,Ze.pick=Fh.pick,Ze.pickBy=Fh.pickBy,Ze.property=Vh.property,Ze.propertyOf=Vh.propertyOf,Ze.pull=Rh.pull,Ze.pullAll=Rh.pullAll,Ze.pullAllBy=Rh.pullAllBy,Ze.pullAllWith=Rh.pullAllWith,Ze.pullAt=Rh.pullAt,Ze.range=Vh.range,Ze.rangeRight=Vh.rangeRight,Ze.rearg=Th.rearg,Ze.reject=Lh.reject,Ze.remove=Rh.remove,Ze.rest=Th.rest,Ze.reverse=Rh.reverse,Ze.sampleSize=Lh.sampleSize,Ze.set=Fh.set,Ze.setWith=Fh.setWith,Ze.shuffle=Lh.shuffle,Ze.slice=Rh.slice,Ze.sortBy=Lh.sortBy,Ze.sortedUniq=Rh.sortedUniq,Ze.sortedUniqBy=Rh.sortedUniqBy,Ze.split=Kh.split,Ze.spread=Th.spread,Ze.tail=Rh.tail,Ze.take=Rh.take,Ze.takeRight=Rh.takeRight,Ze.takeRightWhile=Rh.takeRightWhile,Ze.takeWhile=Rh.takeWhile,Ze.tap=$h.tap,Ze.throttle=Th.throttle,Ze.thru=Cp,Ze.toArray=zh.toArray,Ze.toPairs=Fh.toPairs,Ze.toPairsIn=Fh.toPairsIn,Ze.toPath=Vh.toPath,Ze.toPlainObject=zh.toPlainObject,Ze.transform=Fh.transform,Ze.unary=Th.unary,Ze.union=Rh.union,Ze.unionBy=Rh.unionBy,Ze.unionWith=Rh.unionWith,Ze.uniq=Rh.uniq,Ze.uniqBy=Rh.uniqBy,Ze.uniqWith=Rh.uniqWith,Ze.unset=Fh.unset,Ze.unzip=Rh.unzip,Ze.unzipWith=Rh.unzipWith,Ze.update=Fh.update,Ze.updateWith=Fh.updateWith,Ze.values=Fh.values,Ze.valuesIn=Fh.valuesIn,Ze.without=Rh.without,Ze.words=Kh.words,Ze.wrap=Th.wrap,Ze.xor=Rh.xor,Ze.xorBy=Rh.xorBy,Ze.xorWith=Rh.xorWith,Ze.zip=Rh.zip,Ze.zipObject=Rh.zipObject,Ze.zipObjectDeep=Rh.zipObjectDeep,Ze.zipWith=Rh.zipWith,Ze.entries=Fh.toPairs,Ze.entriesIn=Fh.toPairsIn,Ze.extend=Fh.assignIn,Ze.extendWith=Fh.assignInWith,ng(Ze,Ze),Ze.add=Dh.add,Ze.attempt=Vh.attempt,Ze.camelCase=Kh.camelCase,Ze.capitalize=Kh.capitalize,Ze.ceil=Dh.ceil,Ze.clamp=Uh,Ze.clone=zh.clone,Ze.cloneDeep=zh.cloneDeep,Ze.cloneDeepWith=zh.cloneDeepWith,Ze.cloneWith=zh.cloneWith,Ze.conformsTo=zh.conformsTo,Ze.deburr=Kh.deburr,Ze.defaultTo=Vh.defaultTo,Ze.divide=Dh.divide,Ze.endsWith=Kh.endsWith,Ze.eq=zh.eq,Ze.escape=Kh.escape,Ze.escapeRegExp=Kh.escapeRegExp,Ze.every=Lh.every,Ze.find=Lh.find,Ze.findIndex=Rh.findIndex,Ze.findKey=Fh.findKey,Ze.findLast=Lh.findLast,Ze.findLastIndex=Rh.findLastIndex,Ze.findLastKey=Fh.findLastKey,Ze.floor=Dh.floor,Ze.forEach=Lh.forEach,Ze.forEachRight=Lh.forEachRight,Ze.forIn=Fh.forIn,Ze.forInRight=Fh.forInRight,Ze.forOwn=Fh.forOwn,Ze.forOwnRight=Fh.forOwnRight,Ze.get=Fh.get,Ze.gt=zh.gt,Ze.gte=zh.gte,Ze.has=Fh.has,Ze.hasIn=Fh.hasIn,Ze.head=Rh.head,Ze.identity=le,Ze.includes=Lh.includes,Ze.indexOf=Rh.indexOf,Ze.inRange=Nh,Ze.invoke=Fh.invoke,Ze.isArguments=zh.isArguments,Ze.isArray=F,Ze.isArrayBuffer=zh.isArrayBuffer,Ze.isArrayLike=zh.isArrayLike,Ze.isArrayLikeObject=zh.isArrayLikeObject,Ze.isBoolean=zh.isBoolean,Ze.isBuffer=zh.isBuffer,Ze.isDate=zh.isDate,Ze.isElement=zh.isElement,Ze.isEmpty=zh.isEmpty,Ze.isEqual=zh.isEqual,Ze.isEqualWith=zh.isEqualWith,Ze.isError=zh.isError,Ze.isFinite=zh.isFinite,Ze.isFunction=zh.isFunction,Ze.isInteger=zh.isInteger,Ze.isLength=zh.isLength,Ze.isMap=zh.isMap,Ze.isMatch=zh.isMatch,Ze.isMatchWith=zh.isMatchWith,Ze.isNaN=zh.isNaN,Ze.isNative=zh.isNative,Ze.isNil=zh.isNil,Ze.isNull=zh.isNull,Ze.isNumber=zh.isNumber,Ze.isObject=X,Ze.isObjectLike=zh.isObjectLike,Ze.isPlainObject=zh.isPlainObject,Ze.isRegExp=zh.isRegExp,Ze.isSafeInteger=zh.isSafeInteger,Ze.isSet=zh.isSet,Ze.isString=zh.isString,Ze.isSymbol=zh.isSymbol,Ze.isTypedArray=zh.isTypedArray,Ze.isUndefined=zh.isUndefined,Ze.isWeakMap=zh.isWeakMap,Ze.isWeakSet=zh.isWeakSet,Ze.join=Rh.join,Ze.kebabCase=Kh.kebabCase,Ze.last=Xa,Ze.lastIndexOf=Rh.lastIndexOf,Ze.lowerCase=Kh.lowerCase,Ze.lowerFirst=Kh.lowerFirst,Ze.lt=zh.lt,Ze.lte=zh.lte,Ze.max=Dh.max,Ze.maxBy=Dh.maxBy,Ze.mean=Dh.mean,Ze.meanBy=Dh.meanBy,Ze.min=Dh.min,Ze.minBy=Dh.minBy,Ze.stubArray=Vh.stubArray,Ze.stubFalse=Vh.stubFalse,Ze.stubObject=Vh.stubObject,Ze.stubString=Vh.stubString,Ze.stubTrue=Vh.stubTrue,Ze.multiply=Dh.multiply,Ze.nth=Rh.nth,Ze.noop=Vh.noop,Ze.now=Wh,Ze.pad=Kh.pad,Ze.padEnd=Kh.padEnd,Ze.padStart=Kh.padStart,Ze.parseInt=Kh.parseInt,Ze.random=qh,Ze.reduce=Lh.reduce,Ze.reduceRight=Lh.reduceRight,Ze.repeat=Kh.repeat,Ze.replace=Kh.replace,Ze.result=Fh.result,Ze.round=Dh.round,Ze.sample=Lh.sample,Ze.size=Lh.size,Ze.snakeCase=Kh.snakeCase,Ze.some=Lh.some,Ze.sortedIndex=Rh.sortedIndex,Ze.sortedIndexBy=Rh.sortedIndexBy,Ze.sortedIndexOf=Rh.sortedIndexOf,Ze.sortedLastIndex=Rh.sortedLastIndex,Ze.sortedLastIndexBy=Rh.sortedLastIndexBy,Ze.sortedLastIndexOf=Rh.sortedLastIndexOf,Ze.startCase=Kh.startCase,Ze.startsWith=Kh.startsWith,Ze.subtract=Dh.subtract,Ze.sum=Dh.sum,Ze.sumBy=Dh.sumBy,Ze.template=Kh.template,Ze.times=Vh.times,Ze.toFinite=zh.toFinite,Ze.toInteger=ue,Ze.toLength=zh.toLength,Ze.toLower=Kh.toLower,Ze.toNumber=zh.toNumber,Ze.toSafeInteger=zh.toSafeInteger,Ze.toString=zh.toString,Ze.toUpper=Kh.toUpper,Ze.trim=Kh.trim,Ze.trimEnd=Kh.trimEnd,Ze.trimStart=Kh.trimStart,Ze.truncate=Kh.truncate,Ze.unescape=Kh.unescape,Ze.uniqueId=Vh.uniqueId,Ze.upperCase=Kh.upperCase,Ze.upperFirst=Kh.upperFirst,Ze.each=Lh.forEach,Ze.eachRight=Lh.forEachRight,Ze.first=Rh.head,ng(Ze,(Sh={},ga(Ze,function(e,t){Qh.call(Ze.prototype,t)||(Sh[t]=e)}),Sh),{chain:!1}),Ze.VERSION="4.17.23",(Ze.templateSettings=Kh.templateSettings).imports._=Ze,ct(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Ze[e].placeholder=Ze}),ct(["drop","take"],function(e,t){ze.prototype[e]=function(n){n=void 0===n?1:eg(ue(n),0);var r=this.__filtered__&&!t?new ze(this):this.clone();return r.__filtered__?r.__takeCount__=tg(n,r.__takeCount__):r.__views__.push({size:tg(n,Gh),type:e+(r.__dir__<0?"Right":"")}),r},ze.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),ct(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;ze.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e),type:n}),t.__filtered__=t.__filtered__||r,t}}),ct(["head","last"],function(e,t){var n="take"+(t?"Right":"");ze.prototype[e]=function(){return this[n](1).value()[0]}}),ct(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ze.prototype[e]=function(){return this.__filtered__?new ze(this):this[n](1)}}),ze.prototype.compact=function(){return this.filter(le)},ze.prototype.find=function(e){return this.filter(e).head()},ze.prototype.findLast=function(e){return this.reverse().find(e)},ze.prototype.invokeMap=Lt(function(e,t){return"function"==typeof e?new ze(this):this.map(function(n){return Xc(n,e,t)})}),ze.prototype.reject=function(e){return this.filter(ps(ua(e)))},ze.prototype.slice=function(e,t){e=ue(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ze(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ue(t))<0?n.dropRight(-t):n.take(t-e)),n)},ze.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ze.prototype.toArray=function(){return this.take(Gh)},ga(ze.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Ze[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Ze.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof ze,c=a[0],l=u||F(t),s=function(e){var t=o.apply(Ze,Gn([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=i&&!f,h=u&&!d;if(!i&&l){t=h?t:new ze(this);var g=e.apply(t,a);return g.__actions__.push({func:Cp,args:[s],thisArg:void 0}),new Ke(g,f)}return p&&h?e.apply(this,a):(g=this.thru(s),p?r?g.value()[0]:g.value():g)})}),ct(["pop","push","shift","sort","splice","unshift"],function(e){var t=Jh[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Ze.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(F(o)?o:[],e)}return this[n](function(n){return t.apply(F(n)?n:[],e)})}}),ga(ze.prototype,function(e,t){var n=Ze[t];if(n){var r=n.name+"";Qh.call(qe,r)||(qe[r]=[]),qe[r].push({name:t,func:n})}}),qe[Ct(void 0,2).name]=[{name:"wrapper",func:void 0}],ze.prototype.clone=function(){var e=new ze(this.__wrapped__);return e.__actions__=Ve(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ve(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ve(this.__views__),e},ze.prototype.reverse=function(){if(this.__filtered__){var e=new ze(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ze.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=F(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=Hh(t,e+a);break;case"takeRight":e=Yh(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,c=u-a,l=r?u:a-1,s=this.__iteratees__,f=s.length,d=0,p=Zh(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return Op(e,this.__actions__);var h=[];e:for(;c--&&d<p;){for(var g=-1,v=e[l+=t];++g<f;){var _=s[g],b=_.iteratee,y=_.type,m=b(v);if(2==y)v=m;else if(!m){if(1==y)continue e;break e}}h[d++]=v}return h},Ze.prototype.at=$h.at,Ze.prototype.chain=$h.wrapperChain,Ze.prototype.commit=$h.commit,Ze.prototype.next=$h.next,Ze.prototype.plant=$h.plant,Ze.prototype.reverse=$h.reverse,Ze.prototype.toJSON=Ze.prototype.valueOf=Ze.prototype.value=$h.value,Ze.prototype.first=Ze.prototype.head,Xh&&(Ze.prototype[Xh]=$h.toIterator);var rg=function(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}(Object.freeze({__proto__:null,add:H,after:ce,ary:Ot,assign:_n,assignIn:xn,assignInWith:wn,assignWith:An,at:nr,attempt:dr,before:pr,bind:gr,bindAll:_r,bindKey:yr,camelCase:xo,capitalize:Dr,castArray:Co,ceil:Eo,chain:Oo,chunk:ko,clamp:Bo,clone:Mi,cloneDeep:ki,cloneDeepWith:Si,cloneWith:Bi,commit:Pi,compact:Ri,concat:Li,cond:ca,conforms:sa,conformsTo:fa,constant:rt,countBy:Ca,create:wa,curry:ja,curryRight:Aa,debounce:Ma,deburr:Kr,defaultTo:ka,defaults:Ra,defaultsDeep:Fa,defer:Va,delay:Ha,difference:Qa,differenceBy:tu,differenceWith:ru,divide:ou,drop:iu,dropRight:au,dropRightWhile:cu,dropWhile:lu,each:fu,eachRight:vu,endsWith:_u,entries:yu,entriesIn:mu,eq:Mt,escape:ju,escapeRegExp:Ou,every:ku,extend:xn,extendWith:wn,fill:Bu,filter:Ru,find:zu,findIndex:Tu,findKey:Uu,findLast:$u,findLastIndex:Fu,findLastKey:Ku,first:Vu,flatMap:Zu,flatMapDeep:Ju,flatMapDepth:Qu,flatten:er,flattenDeep:ec,flattenDepth:tc,flip:nc,floor:rc,flow:ic,flowRight:ac,forEach:fu,forEachRight:vu,forIn:uc,forInRight:cc,forOwn:lc,forOwnRight:sc,fromPairs:fc,functions:pc,functionsIn:hc,get:Hn,groupBy:_c,gt:mc,gte:xc,has:jc,hasIn:ra,head:Vu,identity:le,inRange:Oc,includes:Bc,indexOf:Rc,initial:Lc,intersection:Dc,intersectionBy:Nc,intersectionWith:qc,invert:Vc,invertBy:Jc,invoke:el,invokeMap:nl,isArguments:Yt,isArray:F,isArrayBuffer:ol,isArrayLike:Tt,isArrayLikeObject:Wa,isBoolean:il,isBuffer:Qt,isDate:ul,isElement:cl,isEmpty:sl,isEqual:fl,isEqualWith:dl,isError:sr,isFinite:hl,isFunction:se,isInteger:gl,isLength:Wt,isMap:xi,isMatch:vl,isMatchWith:_l,isNaN:yl,isNative:xl,isNil:Cl,isNull:wl,isNumber:bl,isObject:X,isObjectLike:D,isPlainObject:lr,isRegExp:Al,isSafeInteger:El,isSet:wi,isString:Ic,isSymbol:U,isTypedArray:un,isUndefined:Ol,isWeakMap:Il,isWeakSet:Ml,iteratee:kl,join:Bl,kebabCase:Rl,keyBy:Wl,keys:hn,keysIn:yn,last:Xa,lastIndexOf:Dl,lodash:Ze,lowerCase:Nl,lowerFirst:ql,lt:$l,lte:Kl,map:Hu,mapKeys:Vl,mapValues:Yl,matches:Hl,matchesProperty:Zl,max:Jl,maxBy:Ql,mean:ts,meanBy:ns,memoize:Dn,merge:os,mergeWith:qa,method:as,methodOf:cs,min:ls,minBy:ss,mixin:fs,multiply:ds,negate:ps,next:vs,noop:De,now:Ea,nth:bs,nthArg:ys,omit:js,omitBy:Is,once:Ms,orderBy:Bs,over:Rs,overArgs:zs,overEvery:Ds,overSome:Us,pad:cf,padEnd:lf,padStart:sf,parseInt:pf,partial:gf,partialRight:_f,partition:yf,pick:xf,pickBy:Os,plant:Cf,property:aa,propertyOf:wf,pull:If,pullAll:Of,pullAllBy:Mf,pullAllWith:kf,pullAt:Rf,random:Nf,range:Kf,rangeRight:Vf,rearg:Hf,reduce:Gf,reduceRight:Qf,reject:Xf,remove:ed,repeat:td,replace:nd,rest:rd,result:od,reverse:ad,round:ud,sample:sd,sampleSize:hd,set:gd,setWith:vd,shuffle:yd,size:md,slice:xd,snakeCase:wd,some:Ad,sortBy:Od,sortedIndex:Bd,sortedIndexBy:Pd,sortedIndexOf:Rd,sortedLastIndex:Ld,sortedLastIndexBy:Wd,sortedLastIndexOf:Td,sortedUniq:Dd,sortedUniqBy:Ud,split:Nd,spread:Fd,startCase:Kd,startsWith:Vd,stubArray:No,stubFalse:Ht,stubObject:Yd,stubString:Hd,stubTrue:Zd,subtract:Gd,sum:Jd,sumBy:Qd,tail:Xd,take:ep,takeRight:tp,takeRightWhile:np,takeWhile:rp,tap:op,template:mp,templateSettings:fp,throttle:xp,thru:Cp,times:Ap,toArray:gs,toFinite:ae,toInteger:ue,toIterator:Ep,toJSON:Ip,toLength:Su,toLower:Mp,toNumber:oe,toPairs:yu,toPairsIn:mu,toPath:kp,toPlainObject:za,toSafeInteger:Sp,toString:$n,toUpper:Bp,transform:Pp,trim:Wp,trimEnd:Tp,trimStart:Dp,truncate:Np,unary:qp,unescape:Vp,union:Gp,unionBy:Qp,unionWith:Xp,uniq:eh,uniqBy:th,uniqWith:nh,uniqueId:oh,unset:ih,unzip:uh,unzipWith:ch,update:sh,updateWith:fh,upperCase:ph,upperFirst:zr,value:Ip,valueOf:Ip,values:kc,valuesIn:hh,without:vh,words:_o,wrap:_h,wrapperAt:yh,wrapperChain:mh,wrapperCommit:Pi,wrapperLodash:Ze,wrapperNext:vs,wrapperPlant:Cf,wrapperReverse:xh,wrapperToIterator:Ep,wrapperValue:Ip,xor:wh,xorBy:Ah,xorWith:Eh,zip:Oh,zipObject:Mh,zipObjectDeep:kh,zipWith:Ph,default:Ze})),og={};Object.defineProperty(og,"__esModule",{value:!0}),og.generateValidationMessage=void 0,og.generateValidationMessage=e=>{const{minAnswerChoices:t,maxAnswerChoices:n}=e;return`Validation requirements:\nThere should be at least ${t} `+(n?`and at most ${n} `:"")+"answer choices defined.\nEvery answer choice should be non-blank and unique.\nA correct answer must be defined."};const ig=t,ag=n,ug=i,cg=a,{Button:lg}=r,{Tooltip:sg}=r,{Typography:fg}=r,{Box:dg}=r,{Info:pg}=o,hg=l,gg=c;function vg(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}var _g=x.exports;Object.defineProperty(E,"__esModule",{value:!0}),E.default=E.Main=void 0;var bg=_g(O.exports),yg=_g(C.exports),mg=_g(ig),xg=_g(ag),Cg=ug,wg=_g(hg),jg=gg,Ag=cg,Eg=_g(lg),Og=_g(sg),Ig=_g(fg),Mg=_g(dg),kg=_g(pg),Sg=rg,Bg=og;const{Panel:Pg,toggle:Rg,radio:Lg,dropdown:Wg}=jg.settings,Tg=(0,Cg.styled)(jg.InputContainer)(({theme:e})=>({width:"100%",paddingTop:e.spacing(2),marginBottom:e.spacing(2)})),zg=(0,Cg.styled)(jg.InputContainer)(({theme:e})=>({flex:1,marginTop:e.spacing(1.5),paddingTop:e.spacing(2),marginLeft:e.spacing(3.5)})),Dg=(0,Cg.styled)(jg.InputContainer)(({theme:e})=>({display:"flex",flexDirection:"column",marginBottom:e.spacing(1),width:"100%"})),Ug=(0,Cg.styled)(Eg.default)(({theme:e})=>({marginTop:e.spacing(1),float:"right"})),Ng=(0,Cg.styled)(Ug)({cursor:"not-allowed",pointerEvents:"all",backgroundColor:Ag.color.disabled(),"&:hover":{backgroundColor:Ag.color.disabled()},"&:focus":{backgroundColor:Ag.color.disabled()}}),qg=(0,Cg.styled)(Mg.default)({display:"flex",alignItems:"center"}),Fg=(0,Cg.styled)(Ig.default)(({theme:e})=>({fontSize:e.typography.fontSize+2,marginRight:e.spacing(1)})),$g=(0,Cg.styled)(Og.default)(({theme:e})=>({"& .MuiTooltip-tooltip":{fontSize:e.typography.fontSize-2,whiteSpace:"pre",maxWidth:"500px"}})),Kg=(0,Cg.styled)("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingTop:e.spacing(1)})),Vg=e=>{const{model:t,configuration:n,onPromptChanged:r,onChoiceChanged:o,onRemoveChoice:i,onAddChoice:a,imageSupport:u,uploadSoundSupport:c,onChangeModel:l,onConfigurationChanged:s,onTeacherInstructionsChanged:f}=e,{addChoiceButton:d={},contentDimensions:p={},feedback:h={},deleteChoice:g={},choiceMode:v={},choicePrefix:_={},partialScoring:b={},lockChoiceOrder:y={},teacherInstructions:m={},studentInstructions:x={},rationale:C={},scoringType:w={},sequentialChoiceLabels:j={},settingsPanelDisabled:A,choicesLayout:E,spellCheck:O={},gridColumns:I,maxImageWidth:M={},maxImageHeight:k={},prompt:S={},withRubric:B={},mathMlOptions:P={},language:R={},languageChoices:L={}}=n||{};let{maxAnswerChoices:W}=n||{};const{limitChoicesNumber:T,teacherInstructionsEnabled:z,rationaleEnabled:D,feedbackEnabled:U,promptEnabled:N,spellCheckEnabled:q,choices:F,errors:$,toolbarEditorPosition:K,extraCSSRules:V}=t||{},{answerChoices:Y,choices:H,correctResponse:Z,prompt:G,rationale:J,teacherInstructions:Q}=$||{},X=vg([F,"optionalAccess",e=>e.length])?Array.from({length:F.length},(e,t)=>`${t+1}`):[],{baseInputConfiguration:ee={}}=n,te={position:"top"===K?"top":"bottom"};T&&(W=9);const ne=(e={})=>({...ee,...e}),re=(0,Bg.generateValidationMessage)(n),oe=M&&M.prompt,ie=k&&k.prompt,ae=W&&vg([F,"optionalAccess",e=>e.length])>=W?`Only ${W} allowed maximum`:"",ue={choiceMode:v.settings&&Lg(v.label,["checkbox","radio"]),"sequentialChoiceLabels.enabled":j.settings&&Rg(j.label,!0),choicePrefix:_.settings&&Lg(_.label,["numbers","letters"]),partialScoring:b.settings&&Rg(b.label),lockChoiceOrder:y.settings&&Rg(y.label),feedbackEnabled:h.settings&&Rg(h.label),choicesLayout:E.settings&&Wg(E.label,["vertical","grid","horizontal"]),gridColumns:E.settings&&"grid"===t.choicesLayout&&X.length>0&&Wg(I.label,X),"language.enabled":R.settings&&Rg(R.label,!0),language:R.settings&&R.enabled&&Wg(L.label,L.options)},ce={teacherInstructionsEnabled:m.settings&&Rg(m.label),studentInstructionsEnabled:x.settings&&Rg(x.label),promptEnabled:S.settings&&Rg(S.label),rationaleEnabled:C.settings&&Rg(C.label),spellCheckEnabled:O.settings&&Rg(O.label),scoringType:w.settings&&Lg(w.label,["auto","rubric"]),rubricEnabled:vg([B,"optionalAccess",e=>e.settings])&&Rg(vg([B,"optionalAccess",e=>e.label]))};return mg.default.createElement(jg.layout.ConfigLayout,{dimensions:p,hideSettings:A,extraCSSRules:V,classes:{},settings:mg.default.createElement(Pg,{model:t,onChangeModel:l,configuration:n,onChangeConfiguration:s,groups:{Settings:ue,Properties:ce}})},z&&mg.default.createElement(Tg,{label:m.label},mg.default.createElement(wg.default,{markup:t.teacherInstructions||"",onChange:f,imageSupport:u,nonEmpty:!1,disableUnderline:!0,error:Q,toolbarOpts:te,pluginProps:ne(vg([n,"optionalAccess",e=>e.teacherInstructions,"optionalAccess",e=>e.inputConfiguration])),spellCheck:q,maxImageWidth:M&&M.teacherInstructions||oe,maxImageHeight:k&&k.teacherInstructions||ie,uploadSoundSupport:c,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:P}),Q&&mg.default.createElement(Kg,null,Q)),N&&mg.default.createElement(Tg,{label:S.label},mg.default.createElement(wg.default,{markup:t.prompt,onChange:r,imageSupport:u,nonEmpty:!1,disableUnderline:!0,error:G,toolbarOpts:te,pluginProps:ne(vg([n,"optionalAccess",e=>e.prompt,"optionalAccess",e=>e.inputConfiguration])),spellCheck:q,maxImageWidth:M&&M.prompt,maxImageHeight:k&&k.prompt,uploadSoundSupport:c,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:P}),G&&mg.default.createElement(Kg,null,G)),mg.default.createElement(qg,null,mg.default.createElement(Fg,{component:"div"},"Choices"),mg.default.createElement($g,{disableFocusListener:!0,disableTouchListener:!0,placement:"right",title:re},mg.default.createElement(kg.default,{fontSize:"small",color:"primary"}))),F.map((e,r)=>mg.default.createElement(Dg,{key:`choice-${r}`},mg.default.createElement(jg.ChoiceConfiguration,{key:r,index:r+1,useLetterOrdering:"letters"===t.choicePrefix,mode:t.choiceMode,data:e,defaultFeedback:{},imageSupport:u,disableImageAlignmentButtons:!0,onDelete:()=>i(r),onChange:e=>o(r,e),allowFeedBack:U,allowDelete:g.settings,noLabels:!0,pluginOpts:ne(vg([n,"optionalAccess",e=>e.choices,"optionalAccess",e=>e.inputConfiguration])),toolbarOpts:te,spellCheck:q,error:vg([H,"optionalAccess",t=>t[e.value]])||null,noCorrectAnswerError:Z,maxImageWidth:M&&M.choices||oe,maxImageHeight:k&&k.choices||ie,uploadSoundSupport:c,mathMlOptions:P}),D&&mg.default.createElement(zg,{key:`rationale-${r}`,label:C.label},mg.default.createElement(wg.default,{markup:e.rationale||"",onChange:t=>o(r,{...e,rationale:t}),imageSupport:u,error:vg([J,"optionalAccess",t=>t[e.value]])||null,toolbarOpts:te,pluginProps:ne(vg([n,"optionalAccess",e=>e.rationale,"optionalAccess",e=>e.inputConfiguration])),spellCheck:q,maxImageWidth:M&&M.rationale||oe,maxImageHeight:k&&k.rationale||ie,uploadSoundSupport:c,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:P}),vg([J,"optionalAccess",t=>t[e.value]])&&mg.default.createElement(Kg,null,vg([J,"optionalAccess",t=>t[e.value]]))))),Z&&mg.default.createElement(Kg,null,Z),Y&&mg.default.createElement(Kg,null,Y),d.settings&&mg.default.createElement($g,{title:ae},W&&vg([F,"optionalAccess",e=>e.length])>=W?mg.default.createElement(Ng,{variant:"contained",color:"primary",onClick:a,disabled:!0},d.label):mg.default.createElement(Ug,{variant:"contained",color:"primary",onClick:a},d.label)))};class Yg extends mg.default.Component{constructor(...e){super(...e),(0,yg.default)(this,"state",{showWarning:!1}),(0,yg.default)(this,"onRemoveChoice",e=>{const{model:t,configuration:n,onModelChanged:r}=this.props,{minAnswerChoices:o}=n||{};o&&t.choices.length===o?this.setState({showWarning:!0}):(t.choices.splice(e,1),r(t))}),(0,yg.default)(this,"onAddChoice",()=>{const{model:e,configuration:t,onModelChanged:n}=this.props;let{maxAnswerChoices:r}=t||{};const{limitChoicesNumber:o}=e||{};o&&(r=9),r&&e.choices.length>=r||(e.choices.push({label:"",value:jg.choiceUtils.firstAvailableIndex(e.choices.map(e=>e.value),0),feedback:{type:"none"}}),n(e))}),(0,yg.default)(this,"onChoiceChanged",(e,t)=>{const{model:n,onModelChanged:r}=this.props;t.correct&&"radio"===n.choiceMode&&(n.choices=n.choices.map(e=>(0,Sg.merge)({},e,{correct:!1}))),n.choices.splice(e,1,t),r(n)}),(0,yg.default)(this,"onPromptChanged",e=>{this.props.onModelChanged({...this.props.model,prompt:e})}),(0,yg.default)(this,"onTeacherInstructionsChanged",e=>{this.props.onModelChanged({...this.props.model,teacherInstructions:e})}),(0,yg.default)(this,"onModelChanged",(e,t)=>{const{onModelChanged:n}=this.props;if("choiceMode"===t){if("radio"===e.choiceMode){let t=!1;e.choices=e.choices.map(e=>t?(e.correct=!1,e):(e.correct&&(t=!0),e))}n(e,!0)}else n(e)})}render(){const{configuration:{minAnswerChoices:e}={}}=this.props,{showWarning:t}=this.state;return mg.default.createElement(mg.default.Fragment,null,mg.default.createElement(jg.AlertDialog,{open:t,title:"Warning",text:`There can't be less than ${e||0} choices.`,onConfirm:()=>this.setState({showWarning:!1})}),mg.default.createElement(Vg,(0,bg.default)({},this.props,{onChangeModel:this.onModelChanged,onRemoveChoice:this.onRemoveChoice,onChoiceChanged:this.onChoiceChanged,onAddChoice:this.onAddChoice,onPromptChanged:this.onPromptChanged,onTeacherInstructionsChanged:this.onTeacherInstructionsChanged})))}}E.Main=Yg,(0,yg.default)(Yg,"propTypes",{model:xg.default.object.isRequired,configuration:xg.default.object.isRequired,disableSidePanel:xg.default.bool,onModelChanged:xg.default.func.isRequired,onConfigurationChanged:xg.default.func.isRequired,imageSupport:xg.default.shape({add:xg.default.func.isRequired,delete:xg.default.func.isRequired})}),E.default=Yg;var Hg={};Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.default=void 0,Hg.default={model:{choiceMode:"checkbox",choicePrefix:"letters",choices:[],choicesLayout:"vertical",feedbackEnabled:!1,gridColumns:2,lockChoiceOrder:!0,partialScoring:!0,prompt:"",promptEnabled:!0,rationale:"",rationaleEnabled:!0,scoringType:"auto",studentInstructionsEnabled:!0,teacherInstructions:"",teacherInstructionsEnabled:!0,toolbarEditorPosition:"bottom",selectedAnswerBackgroundColor:"initial",keyboardEventsEnabled:!1},configuration:{baseInputConfiguration:{h3:{disabled:!0},audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1},textAlign:{disabled:!0},showParagraphs:{disabled:!1},separateParagraphs:{disabled:!0}},choices:{inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}}},spellCheck:{label:"Spellcheck",settings:!1,enabled:!0},choicesLayout:{settings:!1,label:"Choices Layout"},gridColumns:{label:"Grid columns"},answerChoiceCount:0,addChoiceButton:{settings:!0,label:"Add a Choice"},choiceMode:{settings:!0,label:"Response Type"},choicePrefix:{settings:!0,label:"Choice Labels"},deleteChoice:{settings:!0},feedback:{settings:!0,label:"Feedback"},prompt:{settings:!0,label:"Prompt",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},lockChoiceOrder:{settings:!0,label:"Lock Choice Order"},partialScoring:{settings:!1,label:"Allow Partial Scoring"},rationale:{settings:!0,label:"Rationale",inputConfiguration:{audio:{disabled:!0},video:{disabled:!0},image:{disabled:!1}},required:!1},scoringType:{settings:!1,label:"Scoring Type"},studentInstructions:{settings:!1,label:"Student Instructions"},teacherInstructions:{settings:!0,label:"Teacher Instructions",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},toolbarEditorPosition:{settings:!1,label:"Toolbar Editor Position"},minAnswerChoices:2,maxAnswerChoices:5,maxImageWidth:{teacherInstructions:300,prompt:300,rationale:636,choices:900},maxImageHeight:{teacherInstructions:300,prompt:300,rationale:300,choices:300},withRubric:{settings:!1,label:"Add Rubric"},mathMlOptions:{mmlOutput:!1,mmlEditing:!1},language:{settings:!1,label:"Specify Language",enabled:!1},languageChoices:{label:"Language Choices",options:[]}}};const Zg=t,{client:Gg}=e,Jg=u,Qg=c;function Xg(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}var ev=x.exports;Object.defineProperty(m,"__esModule",{value:!0});var tv=m.default=void 0,nv=ev(C.exports),rv=ev(Zg),ov=Gg,iv=ev(Jg),av=p,uv=ev(E),cv=Qg,lv=rg,sv=ev(Hg);const fv=(0,iv.default)("multiple-choice:configure"),dv=(e,t=0)=>{if(!e||0===e.length){let e=[];for(let n=0;n<t;n++)e.push({value:`${n}`,label:"",feedback:{type:"none",value:""}});return e}return e},pv=(e,t)=>{const n=(0,lv.defaults)(e,sv.default.configuration);return{configuration:n,model:{...t,choices:dv(t&&t.choices||[],n&&n.answerChoiceCount)}}};class hv extends HTMLElement{constructor(){super(),this._root=null,this._reactContainer=null,this._model=hv.createDefaultModel(),this._configuration=sv.default.configuration,this.onModelChanged=this.onModelChanged.bind(this),this.onConfigurationChanged=this.onConfigurationChanged.bind(this)}set model(e){this._model=hv.createDefaultModel(e),this._render()}set configuration(e){const t=pv(e,this._model);this.onModelChanged(t.model);const n={...sv.default.configuration,...t.configuration};this._configuration=n,Xg([n,"optionalAccess",e=>e.language,"optionalAccess",e=>e.enabled])?Xg([n,"optionalAccess",e=>e.languageChoices,"optionalAccess",e=>e.options,"optionalAccess",e=>e.length])&&(this._model.language=Xg([n,"optionalAccess",e=>e.languageChoices,"access",e=>e.options,"access",e=>e[0],"access",e=>e.value])):n.language.settings&&this._model.language?(this._configuration.language.enabled=!0,this._configuration.languageChoices.options&&this._configuration.languageChoices.options.length||(this._configuration.languageChoices.options=[]),this._configuration.languageChoices.options.find(e=>e.value===this._model.language)||this._configuration.languageChoices.options.push({value:this._model.language,label:this._model.language})):delete this._model.language,this._render()}set disableSidePanel(e){this._disableSidePanel=e,this._render()}dispatchModelUpdated(e){const t=!!e;this.dispatchEvent(new av.ModelUpdatedEvent(this._model,t))}onModelChanged(e,t){this._model=e,this._render(),this.dispatchModelUpdated(t)}onConfigurationChanged(e){this._configuration=pv(e,this._model).configuration,this._model&&this.onModelChanged(this._model),this._render()}insertImage(e){this.dispatchEvent(new av.InsertImageEvent(e))}onDeleteImage(e,t){this.dispatchEvent(new av.DeleteImageEvent(e,t))}insertSound(e){this.dispatchEvent(new av.InsertSoundEvent(e))}onDeleteSound(e,t){this.dispatchEvent(new av.DeleteSoundEvent(e,t))}_render(){console.log("🔧 [multiple-choice-configure] _render - Starting render"),console.log("🔧 [multiple-choice-configure] _render - Model:",this._model?"present":"missing"),console.log("🔧 [multiple-choice-configure] _render - Configuration:",this._configuration?"present":"missing"),console.log("🔧 [multiple-choice-configure] _render - Root exists:",!!this._root),fv("_render - Starting render"),fv("_render - Model:",this._model?"present":"missing"),fv("_render - Configuration:",this._configuration?"present":"missing"),fv("_render - Root exists:",!!this._root);try{let e=rv.default.createElement(uv.default,{model:this._model,configuration:this._configuration,onModelChanged:this.onModelChanged,onConfigurationChanged:this.onConfigurationChanged,disableSidePanel:this._disableSidePanel,imageSupport:{add:this.insertImage.bind(this),delete:this.onDeleteImage.bind(this)},uploadSoundSupport:{add:this.insertSound.bind(this),delete:this.onDeleteSound.bind(this)}});this._root||(console.log("🔧 [multiple-choice-configure] _render - Creating React container"),fv("_render - Creating React container"),this._reactContainer=document.createElement("div"),this._reactContainer.className="pie-configure-wrapper",this.appendChild(this._reactContainer),console.log("🔧 [multiple-choice-configure] _render - Creating new React root"),fv("_render - Creating new React root"),this._root=(0,ov.createRoot)(this._reactContainer),console.log("✅ [multiple-choice-configure] _render - React root created successfully"),fv("_render - React root created successfully")),console.log("🔧 [multiple-choice-configure] _render - Calling root.render()"),fv("_render - Calling root.render()"),this._root.render(e),console.log("✅ [multiple-choice-configure] _render - Render completed successfully"),fv("_render - Render completed successfully")}catch(e){throw console.error("❌ [multiple-choice-configure] Render error:",e),console.error("Error stack:",e.stack),e}}connectedCallback(){console.log("🔧 [multiple-choice-configure] connectedCallback - Component connected to DOM"),fv("connectedCallback - Component connected to DOM"),fv("connectedCallback - Model:",this._model?"present":"missing"),fv("connectedCallback - Configuration:",this._configuration?"present":"missing")}disconnectedCallback(){console.log("🔧 [multiple-choice-configure] disconnectedCallback - Component disconnected from DOM"),fv("disconnectedCallback - Component disconnected from DOM"),this._root&&(console.log("🔧 [multiple-choice-configure] disconnectedCallback - Unmounting React root"),fv("disconnectedCallback - Unmounting React root"),this._root.unmount(),this._root=null),this._reactContainer&&(this._reactContainer=null)}}tv=m.default=hv,(0,nv.default)(hv,"createDefaultModel",(e={})=>{const t=cv.choiceUtils.normalizeChoices({...sv.default.model,...e,choices:dv(e&&e.choices||[])});return t.choicesLayout=e.choicesLayout||!1===e.verticalMode&&"horizontal"||sv.default.model.choicesLayout,t});const gv=t,vv=n,{styled:_v}=i,{settings:bv}=c,{layout:yv}=c,{Panel:mv,toggle:xv,radio:Cv,dropdown:wv}=bv,jv=_v("div")(({theme:e})=>({paddingBottom:e.spacing(2)})),Av=_v("div")(({theme:e})=>({flex:1,height:e.spacing(2.5)}));class Ev extends gv.Component{constructor(...e){super(...e),Ev.prototype.__init.call(this),Ev.prototype.__init2.call(this)}static __initStatic(){this.propTypes={configuration:vv.object,model:vv.object,onModelChanged:vv.func,onConfigurationChanged:vv.func}}__init(){this.removeExtraChoices=e=>{let t=!1;return(e||[]).map(e=>t?(e.correct=!1,e):(e.correct&&(t=!0),e))}}__init2(){this.onModelChanged=(e,t)=>{const{onModelChanged:n}=this.props;return"partA.choiceMode"===t&&"radio"===e.partA.choiceMode?(e.partA.choices=this.removeExtraChoices(e.partA.choices),n(e,!0)):"partB.choiceMode"===t&&"radio"===e.partB.choiceMode?(e.partB.choices=this.removeExtraChoices(e.partB.choices),n(e,!0)):n(e)}}render(){const{model:e,configuration:t,onConfigurationChanged:n}=this.props,{partLabelType:r,partA:o,partB:i,extraCSSRules:a}=e,{contentDimensions:u={},partA:c={},partB:l={},partialScoring:s={},settingsPanelDisabled:f,scoringType:d={},language:p={},languageChoices:h={},...g}=t,{feedback:v={},choiceMode:_={},choicePrefix:b={},lockChoiceOrder:y={},prompt:m={},teacherInstructions:x={},studentInstructions:C={},choicesLayout:w={},gridColumns:j={},rationale:A={},spellCheck:E={}}=c||{},{feedback:O={},choiceMode:I={},choicePrefix:M={},lockChoiceOrder:k={},prompt:S={},teacherInstructions:B={},studentInstructions:P={},choicesLayout:R={},gridColumns:L={},rationale:W={},spellCheck:T={}}=l||{},z="Numbers"===(r||"Numbers"),D="Part "+(z?"1":"A"),U="Part "+(z?"2":"B"),N={partA:o.choices&&o.choices.length?Array.from({length:o.choices.length},(e,t)=>`${t+1}`):[],partB:i.choices&&i.choices.length?Array.from({length:i.choices.length},(e,t)=>`${t+1}`):[]},q={partLabels:g.partLabels.settings&&xv(g.partLabels.label),partLabelType:e.partLabels&&wv("",["Numbers","Letters"]),partialScoring:s.settings&&xv(s.label),scoringType:d.settings&&Cv(d.label,["auto","rubric"]),"language.enabled":p.settings&&xv(p.label,!0),language:p.settings&&p.enabled&&wv(h.label,h.options)},F={"partA.choiceMode":_.settings&&Cv(_.label,["checkbox","radio"]),"partA.choicePrefix":b.settings&&Cv(b.label,["numbers","letters"]),"partA.lockChoiceOrder":y.settings&&xv(y.label),"partA.choicesLayout":w.settings&&wv(w.label,["vertical","grid","horizontal"]),"partA.gridColumns":w.settings&&"grid"===o.choicesLayout&&N.partA.length>0&&wv(j.label,N.partA)},$={"partA.feedbackEnabled":v.settings&&xv(v.label),"partA.promptEnabled":m.settings&&xv(m.label),"partA.teacherInstructionsEnabled":x.settings&&xv(x.label),"partA.studentInstructionsEnabled":C.settings&&xv(C.label),"partA.rationaleEnabled":A.settings&&xv(A.label),"partA.spellCheckEnabled":E.settings&&xv(E.label)},K={"partB.choiceMode":I.settings&&Cv(I.label,["checkbox","radio"]),"partB.choicePrefix":M.settings&&Cv(M.label,["numbers","letters"]),"partB.lockChoiceOrder":k.settings&&xv(k.label),"partB.choicesLayout":R.settings&&wv(R.label,["vertical","grid","horizontal"]),"partB.gridColumns":R.settings&&"grid"===i.choicesLayout&&N.partB.length>0&&wv(L.label,N.partB)},V={"partB.feedbackEnabled":O.settings&&xv(O.label),"partB.promptEnabled":S.settings&&xv(S.label),"partB.teacherInstructionsEnabled":B.settings&&xv(B.label),"partB.studentInstructionsEnabled":P.settings&&xv(P.label),"partB.rationaleEnabled":W.settings&&xv(W.label),"partB.spellCheckEnabled":T.settings&&xv(T.label)};return gv.createElement(yv.ConfigLayout,{extraCSSRules:a,dimensions:u,hideSettings:f,settings:gv.createElement(mv,{model:e,onChangeModel:this.onModelChanged,configuration:t,onChangeConfiguration:n,groups:{"Settings for both":q,[`Settings ${D}`]:F,[`Properties ${D}`]:$,[`Settings ${U}`]:K,[`Properties ${U}`]:V}})},e.partLabels&&gv.createElement(jv,null,D),gv.createElement("ebsr-multiple-choice-configure",{id:"A",key:"partA",ref:e=>{e&&(this.partA=e,this.partA._model={...this.props.model.partA,errors:this.props.model.errors&&this.props.model.errors.partA||{}},this.partA.configuration={...c,...g})}}),gv.createElement(Av,null),e.partLabels&&gv.createElement(jv,null,U),gv.createElement("ebsr-multiple-choice-configure",{id:"B",key:"partB",ref:e=>{e&&(this.partB=e,this.partB._model={...this.props.model.partB,errors:this.props.model.errors&&this.props.model.errors.partB||{}},this.partB.configuration={...l,...g})}}))}}Ev.__initStatic();const Ov={addChoiceButton:{settings:!0,label:"Add a Choice"},choiceMode:{settings:!0,label:"Response Type"},choicePrefix:{settings:!0,label:"Choice Labels"},deleteChoice:{settings:!0},feedback:{settings:!0,label:"Feedback"},lockChoiceOrder:{settings:!0,label:"Lock Choice Order"},prompt:{settings:!0,label:"Prompt",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},rationale:{settings:!0,label:"Rationale",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},settingsPanelDisabled:!0,studentInstructions:{settings:!1,label:"Student Instructions"},teacherInstructions:{settings:!0,label:"Teacher Instructions",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},choicesLayout:{settings:!1,label:"Choices Layout"},gridColumns:{label:"Grid columns"},spellCheck:{label:"Spellcheck",settings:!1,enabled:!0},maxImageWidth:{teacherInstructions:300,prompt:300,rationale:636,choices:636},maxImageHeight:{teacherInstructions:300,prompt:300,rationale:300,choices:300},mathMlOptions:{mmlOutput:!1,mmlEditing:!1},choices:{inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}}},baseInputConfiguration:{h3:{disabled:!0},audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1},textAlign:{disabled:!0},showParagraphs:{disabled:!1},separateParagraphs:{disabled:!0}}},Iv=e=>({choiceMode:"radio",choicePrefix:"letters",choices:[],choicesLayout:"vertical",feedbackEnabled:!1,gridColumns:2,prompt:"",promptEnabled:!0,rationale:"",rationaleEnabled:!0,spellCheckEnabled:!0,studentInstructionsEnabled:!0,teacherInstructions:"",teacherInstructionsEnabled:!0,toolbarEditorPosition:"bottom",...e});var Mv={model:{partLabels:!0,partLabelType:"Letters",partA:Iv(),partB:Iv()},configuration:{baseInputConfiguration:{h3:{disabled:!0},audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1},textAlign:{disabled:!0},showParagraphs:{disabled:!1},separateParagraphs:{disabled:!0}},partialScoring:{label:"Allow Partial Scoring",settings:!1},scoringType:{settings:!1,label:"Scoring Type"},partA:ki(Ov),partB:ki(Ov),partLabels:{settings:!0,label:"Part Labels"},settingsPanelDisabled:!1,language:{settings:!1,label:"Specify Language",enabled:!1},languageChoices:{label:"Language Choices",options:[]}}};const kv=t;function Sv(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 Bv=g.TYPE,Pv="ebsr-multiple-choice-configure";customElements.get(Pv)||customElements.define(Pv,class extends tv{});const Rv=(e,t)=>({configuration:Ra(e,Mv.configuration),model:t}),{model:Lv}=Mv||{};class Wv extends HTMLElement{static __initStatic(){this.createDefaultModel=({partA:e={},partB:t={},...n}={},r=Lv)=>({...r,...n,partA:{...r.partA,...e,choicesLayout:e.choicesLayout||!1===e.verticalMode&&"horizontal"||r.partA.choicesLayout},partB:{...r.partB,...t,choicesLayout:t.choicesLayout||!1===t.verticalMode&&"horizontal"||r.partB.choicesLayout}})}constructor(){super(),Wv.prototype.__init.call(this),Wv.prototype.__init2.call(this),this._root=null,this._model=Wv.createDefaultModel(),this._configuration=Mv.configuration,this.onConfigurationChanged=this.onConfigurationChanged.bind(this)}set model(e){this._model=Wv.createDefaultModel(e,this._model),this._render()}dispatchModelUpdated(e){const t=!!e;this.dispatchEvent(new g(this._model,t))}__init(){this.onModelChanged=(e,t)=>{this._model=Wv.createDefaultModel(e,this._model),this.dispatchModelUpdated(t),this._render()}}set configuration(e){const t=Rv(e,this._model),n={...Mv.configuration,...t.configuration};this._configuration=n,Sv([n,"optionalAccess",e=>e.language,"optionalAccess",e=>e.enabled])?Sv([n,"optionalAccess",e=>e.languageChoices,"optionalAccess",e=>e.options,"optionalAccess",e=>e.length])&&(this._model.language=Sv([n,"optionalAccess",e=>e.languageChoices,"access",e=>e.options,"access",e=>e[0],"access",e=>e.value])):n.language.settings&&this._model.language?(this._configuration.language.enabled=!0,this._configuration.languageChoices.options&&this._configuration.languageChoices.options.length||(this._configuration.languageChoices.options=[]),this._configuration.languageChoices.options.find(e=>e.value===this._model.language)||this._configuration.languageChoices.options.push({value:this._model.language,label:this._model.language})):delete this._model.language,this._render()}onConfigurationChanged(e){this._configuration=Rv(e,this._model).configuration,this._model&&this.onModelChanged(this._model),this._render()}__init2(){this.onModelUpdated=e=>{if(e.target===this)return;e.preventDefault(),e.stopImmediatePropagation();const t=e.target&&e.target.getAttribute("id");t&&(e.update&&(this._model[`part${t}`]=e.update),this.dispatchEvent(new g(this._model)))}}connectedCallback(){this.addEventListener(Bv,this.onModelUpdated),this._render()}_render(){let e=kv.createElement(Ev,{model:this._model,configuration:this._configuration,onModelChanged:this.onModelChanged,onConfigurationChanged:this.onConfigurationChanged});this._root||(this._root=f(this)),this._root.render(e)}disconnectedCallback(){this.removeEventListener(Bv,this.onModelUpdated),this._root&&this._root.unmount()}}Wv.__initStatic();export{Wv as default};
|