@fluid-topics/ft-reader-feedback 1.0.48 → 1.0.50

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.
@@ -93,7 +93,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
93
93
  display: inline-block;
94
94
  width: 0;
95
95
  }
96
- `;class At{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ut(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ft,zt,Pt;const Dt=Symbol("internalReduxEventsUnsubscribers"),Lt=Symbol("internalStoresUnsubscribers"),Bt=Symbol("internalStores");class Wt extends It{constructor(){super(...arguments),this[Ft]=new Map,this[zt]=new Map,this[Pt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Bt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ut(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Bt].delete(e)}setupStore(t,e){this[Bt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Bt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Lt].has(t.store):this[Lt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Lt].set(t,e.subscribe((()=>this.updateFromStores()))),Ut(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Dt].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Lt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Dt].forEach((t=>t())),this[Dt]=[]}unsubscribeFromStore(t){this[Lt].has(t)&&this[Lt].get(t)(),this[Lt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Ht(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[Ne]}function Vt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Ie}(t)||Array.isArray(t)||!!t[je]||!!(null===(e=t.constructor)||void 0===e?void 0:e[je])||Yt(t)||Qt(t))}function Zt(t,e,i){void 0===i&&(i=!1),0===qt(t)?(i?Object.keys:Te)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function qt(t){var e=t[Ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Yt(t)?2:Qt(t)?3:0}function Gt(t,e){return 2===qt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Jt(t,e,i){var n=qt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Xt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Yt(t){return _e&&t instanceof Map}function Qt(t){return Ee&&t instanceof Set}function te(t){return t.o||t.t}function ee(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Me(t);delete e[Ne];for(var i=Te(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function ie(t,e){return void 0===e&&(e=!1),oe(t)||Kt(t)||!Vt(t)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&Zt(t,(function(t,e){return ie(e,!0)}),!0)),t}function ne(){Ht(2)}function oe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function re(t){var e=Ae[t];return e||Ht(18,t),e}function se(){return ke}function ae(t,e){e&&(re("Patches"),t.u=[],t.s=[],t.v=e)}function le(t){ce(t),t.p.forEach(ue),t.p=null}function ce(t){t===ke&&(ke=t.l)}function he(t){return ke={p:[],l:ke,h:t,m:!0,_:0}}function ue(t){var e=t[Ne];0===e.i||1===e.i?e.j():e.g=!0}function de(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||re("ES5").S(e,t,n),n?(i[Ne].P&&(le(e),Ht(4)),Vt(t)&&(t=fe(e,t),e.l||ve(e,t)),e.u&&re("Patches").M(i[Ne].t,t,e.u,e.s)):t=fe(e,i,[]),le(e),e.u&&e.v(e.u,e.s),t!==Re?t:void 0}function fe(t,e,i){if(oe(e))return e;var n=e[Ne];if(!n)return Zt(e,(function(o,r){return pe(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ve(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=ee(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Zt(r,(function(e,r){return pe(t,n,o,e,r,i,s)})),ve(t,o,!1),i&&t.u&&re("Patches").N(n,i,t.u,t.s)}return n.o}function pe(t,e,i,n,o,r,s){if(Kt(o)){var a=fe(t,o,r&&e&&3!==e.i&&!Gt(e.R,n)?r.concat(n):void 0);if(Jt(i,n,a),!Kt(a))return;t.m=!1}else s&&i.add(o);if(Vt(o)&&!oe(o)){if(!t.h.D&&t._<1)return;fe(t,o),e&&e.A.l||ve(t,o)}}function ve(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ie(e,i)}function be(t,e){var i=t[Ne];return(i?te(i):t)[e]}function ye(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function me(t){t.o||(t.o=ee(t.t))}function xe(t,e,i){var n=Yt(e)?re("MapSet").F(e,i):Qt(e)?re("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:se(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ue;i&&(o=[n],r=Fe);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):re("ES5").J(e,i);return(i?i.A:se()).p.push(n),n}function we(t){return Kt(t)||Ht(22,t),function t(e){if(!Vt(e))return e;var i,n=e[Ne],o=qt(e);if(n){if(!n.P&&(n.i<4||!re("ES5").K(n)))return n.t;n.I=!0,i=$e(e,o),n.I=!1}else i=$e(e,o);return Zt(i,(function(e,o){n&&function(t,e){return 2===qt(t)?t.get(e):t[e]}(n.t,e)===o||Jt(i,e,t(o))})),3===o?new Set(i):i}(t)}function $e(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ee(t)}Ft=Lt,zt=Bt,Pt=Dt;var Se,ke,Oe="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),_e="undefined"!=typeof Map,Ee="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Re=Oe?Symbol.for("immer-nothing"):((Se={})["immer-nothing"]=!0,Se),je=Oe?Symbol.for("immer-draftable"):"__$immer_draftable",Ne=Oe?Symbol.for("immer-state"):"__$immer_state",Ie=""+Object.prototype.constructor,Te="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Me=Object.getOwnPropertyDescriptors||function(t){var e={};return Te(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Ae={},Ue={get:function(t,e){if(e===Ne)return t;var i=te(t);if(!Gt(i,e))return function(t,e,i){var n,o=ye(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Vt(n)?n:n===be(t.t,e)?(me(t),t.o[e]=xe(t.A.h,n,t)):n},has:function(t,e){return e in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,e,i){var n=ye(te(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=be(te(t),e),r=null==o?void 0:o[Ne];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Xt(i,o)&&(void 0!==i||Gt(t.t,e)))return!0;me(t),ge(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==be(t.t,e)||e in t.t?(t.R[e]=!1,me(t),ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=te(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Ht(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ht(12)}},Fe={};Zt(Ue,(function(t,e){Fe[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Fe.deleteProperty=function(t,e){return Fe.set.call(this,t,e,void 0)},Fe.set=function(t,e,i){return Ue.set.call(this,t[0],e,i,t[0])};var ze=function(){function t(t){var e=this;this.O=Ce,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Ht(6),void 0!==n&&"function"!=typeof n&&Ht(7),Vt(t)){var a=he(e),l=xe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?le(a):ce(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ae(a,n),de(t,a)}),(function(t){throw le(a),t})):(ae(a,n),de(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Re&&(s=void 0),e.D&&ie(s,!0),n){var h=[],u=[];re("Patches").M(t,s,h,u),n(h,u)}return s}Ht(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Vt(t)||Ht(8),Kt(t)&&(t=we(t));var e=he(this),i=xe(this,t,void 0);return i[Ne].C=!0,ce(e),i},e.finishDraft=function(t,e){var i=(t&&t[Ne]).A;return ae(i,e),de(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ce&&Ht(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=re("Patches").$;return Kt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Pe=new ze,De=Pe.produce;function Le(t){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(t)}function Be(t){var e=function(t,e){if("object"!==Le(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Le(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Le(e)?e:String(e)}function We(t,e,i){return(e=Be(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function He(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ke(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?He(Object(i),!0).forEach((function(e){We(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):He(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ve(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Pe.produceWithPatches.bind(Pe),Pe.setAutoFreeze.bind(Pe),Pe.setUseProxies.bind(Pe),Pe.applyPatches.bind(Pe),Pe.createDraft.bind(Pe),Pe.finishDraft.bind(Pe);var Ze="function"==typeof Symbol&&Symbol.observable||"@@observable",qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ge={INIT:"@@redux/INIT"+qe(),REPLACE:"@@redux/REPLACE"+qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qe()}};function Je(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ve(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ve(1));return i(Je)(t,e)}if("function"!=typeof t)throw new Error(Ve(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(Ve(3));return r}function u(t){if("function"!=typeof t)throw new Error(Ve(4));if(l)throw new Error(Ve(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ve(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Ve(7));if(void 0===t.type)throw new Error(Ve(8));if(l)throw new Error(Ve(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:Ge.INIT}),(n={dispatch:d,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ve(10));o=t,d({type:Ge.REPLACE})}})[Ze]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ve(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Ze]=function(){return this},t},n}function Xe(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Ge.INIT}))throw new Error(Ve(12));if(void 0===i(void 0,{type:Ge.PROBE_UNKNOWN_ACTION()}))throw new Error(Ve(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(Ve(14));o[l]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(t).length)?o:t}}function Ye(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Qe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Ve(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Ye.apply(void 0,r)(i.dispatch),Ke(Ke({},i),{},{dispatch:n})}}}function ti(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var ei=ti();ei.withExtraArgument=ti;var ii,ni=ei,oi=(ii=function(t,e){return ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ii(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}ii(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ri=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},si=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},ai=Object.defineProperty,li=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,hi=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,fi=function(t,e,i){return e in t?ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},pi=function(t,e){for(var i in e||(e={}))ui.call(e,i)&&fi(t,i,e[i]);if(hi)for(var n=0,o=hi(e);n<o.length;n++){i=o[n];di.call(e,i)&&fi(t,i,e[i])}return t},vi=function(t,e){return li(t,ci(e))},bi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ye:Ye.apply(null,arguments)};var yi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array),gi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array);function mi(t){return Vt(t)?De(t,(function(){})):t}function xi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new yi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ni.withExtraArgument(i.extraArgument)):n.push(ni));return n}(t)}}function wi(t){var e,i=xi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,h=n.preloadedState,u=void 0===h?void 0:h,d=n.enhancers,f=void 0===d?void 0:d;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Xe(r)}var p=a;"function"==typeof p&&(p=p(i));var v=Qe.apply(void 0,p),b=Ye;c&&(b=bi(pi({trace:!1},"object"==typeof c&&c)));var y=new gi(v),g=y;return Array.isArray(f)?g=si([v],f):"function"==typeof f&&(g=f(y)),Je(e,u,b.apply(void 0,g))}function $i(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return pi(pi({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Si(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function ki(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:mi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Si(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,h=pi(pi({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Si(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return mi(t())};else{var c=mi(t);o=function(){return c}}function h(t,e){void 0===t&&(t=o());var i=si([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Kt(t))return void 0===(n=i(t,e))?t:n;if(Vt(t))return De(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return h.getInitialState=o,h}(n,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?$i(c,n):$i(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Oi=["name","message","stack","code"],_i=function(t,e){this.payload=t,this.meta=e},Ei=function(t,e){this.payload=t,this.meta=e},Ci=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=Oi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ri(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=$i(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:vi(pi({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=$i(t+"/pending",(function(t,e,i){return{payload:void 0,meta:vi(pi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=$i(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ci)(t||"Rejected"),meta:vi(pi({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var h,u=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new s;function f(t){h=t,d.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return ri(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(o(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:d.signal,abort:f,rejectWithValue:function(t,e){return new _i(t,e)},fulfillWithValue:function(t,e){return new Ei(t,e)}})).then((function(e){if(e instanceof _i)throw e;return e instanceof Ei?n(e.payload,u,t,e.meta):n(e,u,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof _i?r(null,u,t,g.payload,g.meta):r(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:f,requestId:u,arg:t,unwrap:function(){return p.then(Ri)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var ji="listenerMiddleware";$i(ji+"/add"),$i(ji+"/removeAll"),$i(ji+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Ne];return Ue.get(e,t)},set:function(e){var i=this[Ne];Ue.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Ne];if(!o.P)switch(o.i){case 5:n(o)&&ge(o);break;case 4:i(o)&&ge(o)}}}function i(t){for(var e=t.t,i=t.k,n=Te(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Ne){var s=e[r];if(void 0===s&&!Gt(e,r))return!0;var a=i[r],l=a&&a[Ne];if(l?l.t!==s:!Xt(a,s))return!0}}var c=!!e[Ne];return n.length!==Te(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Ae[t]||(Ae[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Me(i);delete r[Ne];for(var s=Te(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:se(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Ne,{value:r,writable:!0}),o},S:function(t,i,o){o?Kt(i)&&i[Ne].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Ne];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Zt(r,(function(e){e!==Ne&&(void 0!==o[e]||Gt(o,e)?s[e]||t(r[e]):(s[e]=!0,ge(i)))})),Zt(o,(function(t){void 0!==r[t]||Gt(r,t)||(s[t]=!1,ge(i))}));else if(5===a){if(n(i)&&(ge(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var h=Math.min(r.length,o.length),u=0;u<h;u++)r.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(r[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();class Ni{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Ut(n))return n;if(null==i)return;const o=ki(i),r=wi({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return o.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return o.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Ni(o,r)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:{[n]:t}})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ii=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!d(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}};var Ti,Mi,Ai;const Ui=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ai=null===(Mi=null===(Ti=window.safari)||void 0===Ti?void 0:Ti.pushNotification)||void 0===Mi?void 0:Mi.toString())&&void 0!==Ai?Ai:"");var Fi=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Pi=Symbol("registerInterval");class Di extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Pi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Pi]):this.dispatchEvent(new zi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Pi,Fi([a()],i.prototype,"stateManager",void 0),i}(Wt)){}const Li=$t.extend("--ft-ripple-color",kt.colorContent),Bi={color:Li,backgroundColor:$t.extend("--ft-ripple-background-color",Li),opacityContentOnSurfacePressed:$t.external(kt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(kt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(kt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(kt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},Wi=$t.extend("--ft-ripple-color",kt.colorPrimary),Hi=Wi,Ki=$t.extend("--ft-ripple-background-color",Wi),Vi=$t.extend("--ft-ripple-color",kt.colorSecondary),Zi=Vi,qi=$t.extend("--ft-ripple-background-color",Vi),Gi=w`
96
+ `;class At{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ut(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ft,zt,Pt;const Dt=Symbol("internalReduxEventsUnsubscribers"),Lt=Symbol("internalStoresUnsubscribers"),Bt=Symbol("internalStores");class Wt extends It{constructor(){super(...arguments),this[Ft]=new Map,this[zt]=new Map,this[Pt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Bt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ut(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Bt].delete(e)}setupStore(t,e){this[Bt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Bt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Lt].has(t.store):this[Lt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Lt].set(t,e.subscribe((()=>this.updateFromStores()))),Ut(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Dt].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Lt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Dt].forEach((t=>t())),this[Dt]=[]}unsubscribeFromStore(t){this[Lt].has(t)&&this[Lt].get(t)(),this[Lt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Ht(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[Ne]}function Vt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Ie}(t)||Array.isArray(t)||!!t[je]||!!(null===(e=t.constructor)||void 0===e?void 0:e[je])||Yt(t)||Qt(t))}function Zt(t,e,i){void 0===i&&(i=!1),0===qt(t)?(i?Object.keys:Te)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function qt(t){var e=t[Ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Yt(t)?2:Qt(t)?3:0}function Gt(t,e){return 2===qt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Jt(t,e,i){var n=qt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Xt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Yt(t){return _e&&t instanceof Map}function Qt(t){return Ee&&t instanceof Set}function te(t){return t.o||t.t}function ee(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Me(t);delete e[Ne];for(var i=Te(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function ie(t,e){return void 0===e&&(e=!1),oe(t)||Kt(t)||!Vt(t)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&Zt(t,(function(t,e){return ie(e,!0)}),!0)),t}function ne(){Ht(2)}function oe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function re(t){var e=Ae[t];return e||Ht(18,t),e}function se(){return ke}function ae(t,e){e&&(re("Patches"),t.u=[],t.s=[],t.v=e)}function le(t){ce(t),t.p.forEach(ue),t.p=null}function ce(t){t===ke&&(ke=t.l)}function he(t){return ke={p:[],l:ke,h:t,m:!0,_:0}}function ue(t){var e=t[Ne];0===e.i||1===e.i?e.j():e.g=!0}function de(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||re("ES5").S(e,t,n),n?(i[Ne].P&&(le(e),Ht(4)),Vt(t)&&(t=fe(e,t),e.l||ve(e,t)),e.u&&re("Patches").M(i[Ne].t,t,e.u,e.s)):t=fe(e,i,[]),le(e),e.u&&e.v(e.u,e.s),t!==Re?t:void 0}function fe(t,e,i){if(oe(e))return e;var n=e[Ne];if(!n)return Zt(e,(function(o,r){return pe(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ve(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=ee(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Zt(r,(function(e,r){return pe(t,n,o,e,r,i,s)})),ve(t,o,!1),i&&t.u&&re("Patches").N(n,i,t.u,t.s)}return n.o}function pe(t,e,i,n,o,r,s){if(Kt(o)){var a=fe(t,o,r&&e&&3!==e.i&&!Gt(e.R,n)?r.concat(n):void 0);if(Jt(i,n,a),!Kt(a))return;t.m=!1}else s&&i.add(o);if(Vt(o)&&!oe(o)){if(!t.h.D&&t._<1)return;fe(t,o),e&&e.A.l||ve(t,o)}}function ve(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ie(e,i)}function be(t,e){var i=t[Ne];return(i?te(i):t)[e]}function ye(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function me(t){t.o||(t.o=ee(t.t))}function xe(t,e,i){var n=Yt(e)?re("MapSet").F(e,i):Qt(e)?re("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:se(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ue;i&&(o=[n],r=Fe);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):re("ES5").J(e,i);return(i?i.A:se()).p.push(n),n}function we(t){return Kt(t)||Ht(22,t),function t(e){if(!Vt(e))return e;var i,n=e[Ne],o=qt(e);if(n){if(!n.P&&(n.i<4||!re("ES5").K(n)))return n.t;n.I=!0,i=$e(e,o),n.I=!1}else i=$e(e,o);return Zt(i,(function(e,o){n&&function(t,e){return 2===qt(t)?t.get(e):t[e]}(n.t,e)===o||Jt(i,e,t(o))})),3===o?new Set(i):i}(t)}function $e(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ee(t)}Ft=Lt,zt=Bt,Pt=Dt;var Se,ke,Oe="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),_e="undefined"!=typeof Map,Ee="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Re=Oe?Symbol.for("immer-nothing"):((Se={})["immer-nothing"]=!0,Se),je=Oe?Symbol.for("immer-draftable"):"__$immer_draftable",Ne=Oe?Symbol.for("immer-state"):"__$immer_state",Ie=""+Object.prototype.constructor,Te="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Me=Object.getOwnPropertyDescriptors||function(t){var e={};return Te(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Ae={},Ue={get:function(t,e){if(e===Ne)return t;var i=te(t);if(!Gt(i,e))return function(t,e,i){var n,o=ye(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Vt(n)?n:n===be(t.t,e)?(me(t),t.o[e]=xe(t.A.h,n,t)):n},has:function(t,e){return e in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,e,i){var n=ye(te(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=be(te(t),e),r=null==o?void 0:o[Ne];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Xt(i,o)&&(void 0!==i||Gt(t.t,e)))return!0;me(t),ge(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==be(t.t,e)||e in t.t?(t.R[e]=!1,me(t),ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=te(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Ht(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ht(12)}},Fe={};Zt(Ue,(function(t,e){Fe[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Fe.deleteProperty=function(t,e){return Fe.set.call(this,t,e,void 0)},Fe.set=function(t,e,i){return Ue.set.call(this,t[0],e,i,t[0])};var ze=function(){function t(t){var e=this;this.O=Ce,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Ht(6),void 0!==n&&"function"!=typeof n&&Ht(7),Vt(t)){var a=he(e),l=xe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?le(a):ce(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ae(a,n),de(t,a)}),(function(t){throw le(a),t})):(ae(a,n),de(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Re&&(s=void 0),e.D&&ie(s,!0),n){var h=[],u=[];re("Patches").M(t,s,h,u),n(h,u)}return s}Ht(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Vt(t)||Ht(8),Kt(t)&&(t=we(t));var e=he(this),i=xe(this,t,void 0);return i[Ne].C=!0,ce(e),i},e.finishDraft=function(t,e){var i=(t&&t[Ne]).A;return ae(i,e),de(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ce&&Ht(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=re("Patches").$;return Kt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Pe=new ze,De=Pe.produce;function Le(t){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(t)}function Be(t){var e=function(t,e){if("object"!==Le(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Le(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Le(e)?e:String(e)}function We(t,e,i){return(e=Be(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function He(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ke(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?He(Object(i),!0).forEach((function(e){We(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):He(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ve(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Pe.produceWithPatches.bind(Pe),Pe.setAutoFreeze.bind(Pe),Pe.setUseProxies.bind(Pe),Pe.applyPatches.bind(Pe),Pe.createDraft.bind(Pe),Pe.finishDraft.bind(Pe);var Ze="function"==typeof Symbol&&Symbol.observable||"@@observable",qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ge={INIT:"@@redux/INIT"+qe(),REPLACE:"@@redux/REPLACE"+qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qe()}};function Je(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ve(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ve(1));return i(Je)(t,e)}if("function"!=typeof t)throw new Error(Ve(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(Ve(3));return r}function u(t){if("function"!=typeof t)throw new Error(Ve(4));if(l)throw new Error(Ve(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ve(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Ve(7));if(void 0===t.type)throw new Error(Ve(8));if(l)throw new Error(Ve(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:Ge.INIT}),(n={dispatch:d,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ve(10));o=t,d({type:Ge.REPLACE})}})[Ze]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ve(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Ze]=function(){return this},t},n}function Xe(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Ge.INIT}))throw new Error(Ve(12));if(void 0===i(void 0,{type:Ge.PROBE_UNKNOWN_ACTION()}))throw new Error(Ve(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(Ve(14));o[l]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(t).length)?o:t}}function Ye(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Qe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Ve(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Ye.apply(void 0,r)(i.dispatch),Ke(Ke({},i),{},{dispatch:n})}}}function ti(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var ei=ti();ei.withExtraArgument=ti;var ii,ni=ei,oi=(ii=function(t,e){return ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ii(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}ii(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ri=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},si=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},ai=Object.defineProperty,li=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,hi=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,fi=function(t,e,i){return e in t?ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},pi=function(t,e){for(var i in e||(e={}))ui.call(e,i)&&fi(t,i,e[i]);if(hi)for(var n=0,o=hi(e);n<o.length;n++){i=o[n];di.call(e,i)&&fi(t,i,e[i])}return t},vi=function(t,e){return li(t,ci(e))},bi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ye:Ye.apply(null,arguments)};var yi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array),gi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array);function mi(t){return Vt(t)?De(t,(function(){})):t}function xi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new yi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ni.withExtraArgument(i.extraArgument)):n.push(ni));return n}(t)}}function wi(t){var e,i=xi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,h=n.preloadedState,u=void 0===h?void 0:h,d=n.enhancers,f=void 0===d?void 0:d;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Xe(r)}var p=a;"function"==typeof p&&(p=p(i));var v=Qe.apply(void 0,p),b=Ye;c&&(b=bi(pi({trace:!1},"object"==typeof c&&c)));var y=new gi(v),g=y;return Array.isArray(f)?g=si([v],f):"function"==typeof f&&(g=f(y)),Je(e,u,b.apply(void 0,g))}function $i(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return pi(pi({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Si(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function ki(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:mi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Si(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,h=pi(pi({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Si(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return mi(t())};else{var c=mi(t);o=function(){return c}}function h(t,e){void 0===t&&(t=o());var i=si([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Kt(t))return void 0===(n=i(t,e))?t:n;if(Vt(t))return De(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return h.getInitialState=o,h}(n,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?$i(c,n):$i(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Oi=["name","message","stack","code"],_i=function(t,e){this.payload=t,this.meta=e},Ei=function(t,e){this.payload=t,this.meta=e},Ci=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=Oi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ri(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=$i(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:vi(pi({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=$i(t+"/pending",(function(t,e,i){return{payload:void 0,meta:vi(pi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=$i(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ci)(t||"Rejected"),meta:vi(pi({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var h,u=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new s;function f(t){h=t,d.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return ri(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(o(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:d.signal,abort:f,rejectWithValue:function(t,e){return new _i(t,e)},fulfillWithValue:function(t,e){return new Ei(t,e)}})).then((function(e){if(e instanceof _i)throw e;return e instanceof Ei?n(e.payload,u,t,e.meta):n(e,u,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof _i?r(null,u,t,g.payload,g.meta):r(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:f,requestId:u,arg:t,unwrap:function(){return p.then(Ri)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var ji="listenerMiddleware";$i(ji+"/add"),$i(ji+"/removeAll"),$i(ji+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Ne];return Ue.get(e,t)},set:function(e){var i=this[Ne];Ue.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Ne];if(!o.P)switch(o.i){case 5:n(o)&&ge(o);break;case 4:i(o)&&ge(o)}}}function i(t){for(var e=t.t,i=t.k,n=Te(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Ne){var s=e[r];if(void 0===s&&!Gt(e,r))return!0;var a=i[r],l=a&&a[Ne];if(l?l.t!==s:!Xt(a,s))return!0}}var c=!!e[Ne];return n.length!==Te(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Ae[t]||(Ae[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Me(i);delete r[Ne];for(var s=Te(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:se(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Ne,{value:r,writable:!0}),o},S:function(t,i,o){o?Kt(i)&&i[Ne].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Ne];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Zt(r,(function(e){e!==Ne&&(void 0!==o[e]||Gt(o,e)?s[e]||t(r[e]):(s[e]=!0,ge(i)))})),Zt(o,(function(t){void 0!==r[t]||Gt(r,t)||(s[t]=!1,ge(i))}));else if(5===a){if(n(i)&&(ge(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var h=Math.min(r.length,o.length),u=0;u<h;u++)r.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(r[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ni{static get(t){var e;const i="string"==typeof t?t:t.name,n="string"==typeof t?void 0:t,o=window.ftReduxStores[i];if(Ut(o))return o;if(null==n)return;const r=ki({...n,reducers:null!==(e=n.reducers)&&void 0!==e?e:{}}),s=wi({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[n.name]=new Ni(r,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:{[n]:t}})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ii=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!d(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}};var Ti,Mi,Ai;const Ui=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ai=null===(Mi=null===(Ti=window.safari)||void 0===Ti?void 0:Ti.pushNotification)||void 0===Mi?void 0:Mi.toString())&&void 0!==Ai?Ai:"");var Fi=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Pi=Symbol("registerInterval");class Di extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Pi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Pi]):this.dispatchEvent(new zi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Pi,Fi([a()],i.prototype,"stateManager",void 0),i}(Wt)){}const Li=$t.extend("--ft-ripple-color",kt.colorContent),Bi={color:Li,backgroundColor:$t.extend("--ft-ripple-background-color",Li),opacityContentOnSurfacePressed:$t.external(kt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(kt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(kt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(kt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},Wi=$t.extend("--ft-ripple-color",kt.colorPrimary),Hi=Wi,Ki=$t.extend("--ft-ripple-background-color",Wi),Vi=$t.extend("--ft-ripple-color",kt.colorSecondary),Zi=Vi,qi=$t.extend("--ft-ripple-background-color",Vi),Gi=w`
97
97
  :host {
98
98
  display: contents;
99
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-feedback",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "description": "Feedback forms for a map and its topics in an integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-app-context": "1.0.48",
23
- "@fluid-topics/ft-reader-context": "1.0.48",
24
- "@fluid-topics/ft-wc-utils": "1.0.48",
22
+ "@fluid-topics/ft-app-context": "1.0.50",
23
+ "@fluid-topics/ft-reader-context": "1.0.50",
24
+ "@fluid-topics/ft-wc-utils": "1.0.50",
25
25
  "lit": "2.7.2"
26
26
  },
27
- "gitHead": "a07dca06ede4358afbfe00c06b1ea1da90e3ff51"
27
+ "gitHead": "a5089c2cb78f1b703cfcaa915b24938d58abd420"
28
28
  }