@fluid-topics/ft-reader-feedback 1.1.7 → 1.1.9
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.
|
@@ -128,7 +128,7 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
128
128
|
display: inline-block;
|
|
129
129
|
width: 0;
|
|
130
130
|
}
|
|
131
|
-
`;class Ve{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}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()}}}const qe=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!T(t,e),attribute:!1,...e};E(r)(t,i);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};class Ye{constructor(){this.stack=[]}add(t,e=!1){e&&(this.stack=this.stack.filter((e=>e.type!==t.type))),this.stack.push(t)}consume(t){const e=this.stack.find((e=>e.type===t));return e&&(this.stack=this.stack.filter((t=>t!==e))),e}}function Xe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Je,Qe,ti;const ei=Symbol("internalReduxEventsUnsubscribers"),ii=Symbol("internalStoresUnsubscribers"),oi=Symbol("internalStores");class ri extends Ke{constructor(){super(...arguments),this[Je]=new Map,this[Qe]=new Map,this[ti]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[oi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[oi].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[oi].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Xe(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[oi].delete(e)}setupStore(t,e){this[oi].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[oi].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[ii].has(t.store):this[ii].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ii].set(t,e.subscribe((()=>this.updateFromStores()))),Xe(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 o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[ei].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ii].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ei].forEach((t=>t())),this[ei]=[]}unsubscribeFromStore(t){this[ii].has(t)&&this[ii].get(t)(),this[ii].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ni(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];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 ai(t){return!!t&&!!t[Hi]}function si(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)===Gi}(t)||Array.isArray(t)||!!t[Zi]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Zi])||ui(t)||pi(t))}function li(t,e,i){void 0===i&&(i=!1),0===ci(t)?(i?Object.keys:Vi)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ci(t){var e=t[Hi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ui(t)?2:pi(t)?3:0}function fi(t,e){return 2===ci(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function hi(t,e,i){var o=ci(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function di(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ui(t){return ji&&t instanceof Map}function pi(t){return zi&&t instanceof Set}function yi(t){return t.o||t.t}function gi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=qi(t);delete e[Hi];for(var i=Vi(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function bi(t,e){return void 0===e&&(e=!1),mi(t)||ai(t)||!si(t)||(ci(t)>1&&(t.set=t.add=t.clear=t.delete=vi),Object.freeze(t),e&&li(t,(function(t,e){return bi(e,!0)}),!0)),t}function vi(){ni(2)}function mi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function xi(t){var e=Yi[t];return e||ni(18,t),e}function wi(){return Pi}function Oi(t,e){e&&(xi("Patches"),t.u=[],t.s=[],t.v=e)}function Si(t){$i(t),t.p.forEach(Ci),t.p=null}function $i(t){t===Pi&&(Pi=t.l)}function Ni(t){return Pi={p:[],l:Pi,h:t,m:!0,_:0}}function Ci(t){var e=t[Hi];0===e.i||1===e.i?e.j():e.g=!0}function Ei(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||xi("ES5").S(e,t,o),o?(i[Hi].P&&(Si(e),ni(4)),si(t)&&(t=ki(e,t),e.l||Ii(e,t)),e.u&&xi("Patches").M(i[Hi].t,t,e.u,e.s)):t=ki(e,i,[]),Si(e),e.u&&e.v(e.u,e.s),t!==Ki?t:void 0}function ki(t,e,i){if(mi(e))return e;var o=e[Hi];if(!o)return li(e,(function(r,n){return Ri(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ii(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=gi(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),li(n,(function(e,n){return Ri(t,o,r,e,n,i,a)})),Ii(t,r,!1),i&&t.u&&xi("Patches").N(o,i,t.u,t.s)}return o.o}function Ri(t,e,i,o,r,n,a){if(ai(r)){var s=ki(t,r,n&&e&&3!==e.i&&!fi(e.R,o)?n.concat(o):void 0);if(hi(i,o,s),!ai(s))return;t.m=!1}else a&&i.add(r);if(si(r)&&!mi(r)){if(!t.h.D&&t._<1)return;ki(t,r),e&&e.A.l||Ii(t,r)}}function Ii(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&bi(e,i)}function Ui(t,e){var i=t[Hi];return(i?yi(i):t)[e]}function Li(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Ai(t){t.P||(t.P=!0,t.l&&Ai(t.l))}function _i(t){t.o||(t.o=gi(t.t))}function Ti(t,e,i){var o=ui(e)?xi("MapSet").F(e,i):pi(e)?xi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:wi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Xi;i&&(r=[o],n=Ji);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):xi("ES5").J(e,i);return(i?i.A:wi()).p.push(o),o}function Wi(t){return ai(t)||ni(22,t),function t(e){if(!si(e))return e;var i,o=e[Hi],r=ci(e);if(o){if(!o.P&&(o.i<4||!xi("ES5").K(o)))return o.t;o.I=!0,i=Di(e,r),o.I=!1}else i=Di(e,r);return li(i,(function(e,r){o&&function(t,e){return 2===ci(t)?t.get(e):t[e]}(o.t,e)===r||hi(i,e,t(r))})),3===r?new Set(i):i}(t)}function Di(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return gi(t)}Je=ii,Qe=oi,ti=ei;var Fi,Pi,Mi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ji="undefined"!=typeof Map,zi="undefined"!=typeof Set,Bi="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ki=Mi?Symbol.for("immer-nothing"):((Fi={})["immer-nothing"]=!0,Fi),Zi=Mi?Symbol.for("immer-draftable"):"__$immer_draftable",Hi=Mi?Symbol.for("immer-state"):"__$immer_state",Gi=""+Object.prototype.constructor,Vi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,qi=Object.getOwnPropertyDescriptors||function(t){var e={};return Vi(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Yi={},Xi={get:function(t,e){if(e===Hi)return t;var i=yi(t);if(!fi(i,e))return function(t,e,i){var o,r=Li(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!si(o)?o:o===Ui(t.t,e)?(_i(t),t.o[e]=Ti(t.A.h,o,t)):o},has:function(t,e){return e in yi(t)},ownKeys:function(t){return Reflect.ownKeys(yi(t))},set:function(t,e,i){var o=Li(yi(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Ui(yi(t),e),n=null==r?void 0:r[Hi];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(di(i,r)&&(void 0!==i||fi(t.t,e)))return!0;_i(t),Ai(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!==Ui(t.t,e)||e in t.t?(t.R[e]=!1,_i(t),Ai(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=yi(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){ni(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ni(12)}},Ji={};li(Xi,(function(t,e){Ji[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ji.deleteProperty=function(t,e){return Ji.set.call(this,t,e,void 0)},Ji.set=function(t,e,i){return Xi.set.call(this,t[0],e,i,t[0])};var Qi=function(){function t(t){var e=this;this.O=Bi,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&ni(6),void 0!==o&&"function"!=typeof o&&ni(7),si(t)){var s=Ni(e),l=Ti(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Si(s):$i(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Oi(s,o),Ei(t,s)}),(function(t){throw Si(s),t})):(Oi(s,o),Ei(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Ki&&(a=void 0),e.D&&bi(a,!0),o){var f=[],h=[];xi("Patches").M(t,a,f,h),o(f,h)}return a}ni(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"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){si(t)||ni(8),ai(t)&&(t=Wi(t));var e=Ni(this),i=Ti(this,t,void 0);return i[Hi].C=!0,$i(e),i},e.finishDraft=function(t,e){var i=(t&&t[Hi]).A;return Oi(i,e),Ei(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Bi&&ni(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=xi("Patches").$;return ai(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),to=new Qi,eo=to.produce;function io(t){return io="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},io(t)}function oo(t){var e=function(t,e){if("object"!==io(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==io(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===io(e)?e:String(e)}function ro(t,e,i){return(e=oo(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function no(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function ao(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?no(Object(i),!0).forEach((function(e){ro(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):no(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function so(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. "}to.produceWithPatches.bind(to),to.setAutoFreeze.bind(to),to.setUseProxies.bind(to),to.applyPatches.bind(to),to.createDraft.bind(to),to.finishDraft.bind(to);var lo="function"==typeof Symbol&&Symbol.observable||"@@observable",co=function(){return Math.random().toString(36).substring(7).split("").join(".")},fo={INIT:"@@redux/INIT"+co(),REPLACE:"@@redux/REPLACE"+co(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+co()}};function ho(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(so(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(so(1));return i(ho)(t,e)}if("function"!=typeof t)throw new Error(so(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(so(3));return n}function h(t){if("function"!=typeof t)throw new Error(so(4));if(l)throw new Error(so(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(so(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=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(so(7));if(void 0===t.type)throw new Error(so(8));if(l)throw new Error(so(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:fo.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(so(10));r=t,d({type:fo.REPLACE})}})[lo]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(so(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[lo]=function(){return this},t},o}function uo(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:fo.INIT}))throw new Error(so(12));if(void 0===i(void 0,{type:fo.PROBE_UNKNOWN_ACTION()}))throw new Error(so(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(so(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function po(){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 yo(){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),o=function(){throw new Error(so(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=po.apply(void 0,n)(i.dispatch),ao(ao({},i),{},{dispatch:o})}}}function go(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var bo=go();bo.withExtraArgument=go;var vo,mo=bo,xo=(vo=function(t,e){return vo=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])},vo(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}vo(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),wo=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Oo=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},So=Object.defineProperty,$o=Object.defineProperties,No=Object.getOwnPropertyDescriptors,Co=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,Ro=function(t,e,i){return e in t?So(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Io=function(t,e){for(var i in e||(e={}))Eo.call(e,i)&&Ro(t,i,e[i]);if(Co)for(var o=0,r=Co(e);o<r.length;o++){i=r[o];ko.call(e,i)&&Ro(t,i,e[i])}return t},Uo=function(t,e){return $o(t,No(e))},Lo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?po:po.apply(null,arguments)};var Ao=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return xo(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,Oo([void 0],t[0].concat(this)))):new(e.bind.apply(e,Oo([void 0],t.concat(this))))},e}(Array),_o=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return xo(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,Oo([void 0],t[0].concat(this)))):new(e.bind.apply(e,Oo([void 0],t.concat(this))))},e}(Array);function To(t){return si(t)?eo(t,(function(){})):t}function Wo(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Ao;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(mo.withExtraArgument(i.extraArgument)):o.push(mo));return o}(t)}}function Do(t){var e,i=Wo(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,h=void 0===f?void 0:f,d=o.enhancers,u=void 0===d?void 0:d;if("function"==typeof n)e=n;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}(n))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=uo(n)}var p=s;"function"==typeof p&&(p=p(i));var y=yo.apply(void 0,p),g=po;c&&(g=Lo(Io({trace:!1},"object"==typeof c&&c)));var b=new _o(y),v=b;return Array.isArray(u)?v=Oo([y],u):"function"==typeof u&&(v=u(b)),ho(e,h,g.apply(void 0,v))}function Fo(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Io(Io({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.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 Po(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Mo(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:To(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Po(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Io(Io({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Po(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return To(t())};else{var c=To(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=Oo([a[e.type]],s.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 o;if(ai(t))return void 0===(o=i(t,e))?t:o;if(si(t))return eo(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Fo(c,o):Fo(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var jo=["name","message","stack","code"],zo=function(t,e){this.payload=t,this.meta=e},Bo=function(t,e){this.payload=t,this.meta=e},Ko=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=jo;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Zo(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 o=Fo(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Uo(Io({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Fo(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Uo(Io({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Fo(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Ko)(t||"Rejected"),meta:Uo(Io({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="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(s,l,c){var f,h=(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 a;function u(t){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return wo(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new zo(t,e)},fulfillWithValue:function(t,e){return new Bo(t,e)}})).then((function(e){if(e instanceof zo)throw e;return e instanceof Bo?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof zo?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Zo)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Ho="listenerMiddleware";Fo(Ho+"/add"),Fo(Ho+"/removeAll"),Fo(Ho+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Hi];return Xi.get(e,t)},set:function(e){var i=this[Hi];Xi.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Hi];if(!r.P)switch(r.i){case 5:o(r)&&Ai(r);break;case 4:i(r)&&Ai(r)}}}function i(t){for(var e=t.t,i=t.k,o=Vi(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Hi){var a=e[n];if(void 0===a&&!fi(e,n))return!0;var s=i[n],l=s&&s[Hi];if(l?l.t!==a:!di(s,a))return!0}}var c=!!e[Hi];return o.length!==Vi(e).length+(c?0:1)}function o(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 o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Yi[t]||(Yi[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=qi(i);delete n[Hi];for(var a=Vi(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:wi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Hi,{value:n,writable:!0}),r},S:function(t,i,r){r?ai(i)&&i[Hi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Hi];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)li(n,(function(e){e!==Hi&&(void 0!==r[e]||fi(r,e)?a[e]||t(n[e]):(a[e]=!0,Ai(i)))})),li(r,(function(t){void 0!==n[t]||fi(n,t)||(a[t]=!1,Ai(i))}));else if(5===s){if(o(i)&&(Ai(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Go{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Xe(r))return r;if(null==o)return;const n=Mo({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Do({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Go(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ye,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}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 Vo=Symbol("elementInternals");function qo(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Vo].form}constructor(...t){super(t),this[Vo]=this.attachInternals(),this[Vo].role=e}setFormValue(t){this[Vo].setFormValue(t)}}}var Yo,Xo,Jo;const Qo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Jo=null===(Xo=null===(Yo=window.safari)||void 0===Yo?void 0:Yo.pushNotification)||void 0===Xo?void 0:Xo.toString())&&void 0!==Jo?Jo:"");var tr;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(tr||(tr={}));var er=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ir extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const or=Symbol("registerInterval");class rr 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[or]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[or]):this.dispatchEvent(new ir)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=or,er([k()],i.prototype,"stateManager",void 0),i}(ri)){}const nr=ke.extend("--ft-ripple-color","",_e.colorContent),ar={color:nr,backgroundColor:ke.extend("--ft-ripple-background-color","",nr),opacityContentOnSurfacePressed:ke.external(_e.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ke.external(_e.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ke.external(_e.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ke.external(_e.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ke.create("--ft-ripple-border-radius","","SIZE","0px")},sr=ke.extend("--ft-ripple-color","",_e.colorPrimary),lr=sr,cr=ke.extend("--ft-ripple-background-color","",sr),fr=ke.extend("--ft-ripple-color","",_e.colorSecondary),hr=fr,dr=ke.extend("--ft-ripple-background-color","",fr),ur=kt`
|
|
131
|
+
`;class Ve{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}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()}}}const qe=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!T(t,e),attribute:!1,...e};E(r)(t,i);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};class Ye{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Xe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Je,Qe,ti;const ei=Symbol("internalReduxEventsUnsubscribers"),ii=Symbol("internalStoresUnsubscribers"),oi=Symbol("internalStores");class ri extends Ke{constructor(){super(...arguments),this[Je]=new Map,this[Qe]=new Map,this[ti]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[oi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[oi].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[oi].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Xe(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[oi].delete(e)}setupStore(t,e){this[oi].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[oi].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.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[ii].has(t.store):this[ii].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ii].set(t,e.subscribe((()=>this.updateFromStores()))),Xe(e)&&e.eventBus&&(null===(i=this.reduxConstructor.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[ei].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ii].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ei].forEach((t=>t())),this[ei]=[]}unsubscribeFromStore(t){this[ii].has(t)&&this[ii].get(t)(),this[ii].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ni(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];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 ai(t){return!!t&&!!t[Hi]}function si(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)===Gi}(t)||Array.isArray(t)||!!t[Zi]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Zi])||ui(t)||pi(t))}function li(t,e,i){void 0===i&&(i=!1),0===ci(t)?(i?Object.keys:Vi)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ci(t){var e=t[Hi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ui(t)?2:pi(t)?3:0}function fi(t,e){return 2===ci(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function hi(t,e,i){var o=ci(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function di(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ui(t){return ji&&t instanceof Map}function pi(t){return zi&&t instanceof Set}function yi(t){return t.o||t.t}function gi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=qi(t);delete e[Hi];for(var i=Vi(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function bi(t,e){return void 0===e&&(e=!1),mi(t)||ai(t)||!si(t)||(ci(t)>1&&(t.set=t.add=t.clear=t.delete=vi),Object.freeze(t),e&&li(t,(function(t,e){return bi(e,!0)}),!0)),t}function vi(){ni(2)}function mi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function xi(t){var e=Yi[t];return e||ni(18,t),e}function wi(){return Pi}function Oi(t,e){e&&(xi("Patches"),t.u=[],t.s=[],t.v=e)}function Si(t){$i(t),t.p.forEach(Ci),t.p=null}function $i(t){t===Pi&&(Pi=t.l)}function Ni(t){return Pi={p:[],l:Pi,h:t,m:!0,_:0}}function Ci(t){var e=t[Hi];0===e.i||1===e.i?e.j():e.g=!0}function Ei(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||xi("ES5").S(e,t,o),o?(i[Hi].P&&(Si(e),ni(4)),si(t)&&(t=ki(e,t),e.l||Ii(e,t)),e.u&&xi("Patches").M(i[Hi].t,t,e.u,e.s)):t=ki(e,i,[]),Si(e),e.u&&e.v(e.u,e.s),t!==Ki?t:void 0}function ki(t,e,i){if(mi(e))return e;var o=e[Hi];if(!o)return li(e,(function(r,n){return Ri(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ii(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=gi(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),li(n,(function(e,n){return Ri(t,o,r,e,n,i,a)})),Ii(t,r,!1),i&&t.u&&xi("Patches").N(o,i,t.u,t.s)}return o.o}function Ri(t,e,i,o,r,n,a){if(ai(r)){var s=ki(t,r,n&&e&&3!==e.i&&!fi(e.R,o)?n.concat(o):void 0);if(hi(i,o,s),!ai(s))return;t.m=!1}else a&&i.add(r);if(si(r)&&!mi(r)){if(!t.h.D&&t._<1)return;ki(t,r),e&&e.A.l||Ii(t,r)}}function Ii(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&bi(e,i)}function Ui(t,e){var i=t[Hi];return(i?yi(i):t)[e]}function Li(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Ai(t){t.P||(t.P=!0,t.l&&Ai(t.l))}function _i(t){t.o||(t.o=gi(t.t))}function Ti(t,e,i){var o=ui(e)?xi("MapSet").F(e,i):pi(e)?xi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:wi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Xi;i&&(r=[o],n=Ji);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):xi("ES5").J(e,i);return(i?i.A:wi()).p.push(o),o}function Wi(t){return ai(t)||ni(22,t),function t(e){if(!si(e))return e;var i,o=e[Hi],r=ci(e);if(o){if(!o.P&&(o.i<4||!xi("ES5").K(o)))return o.t;o.I=!0,i=Di(e,r),o.I=!1}else i=Di(e,r);return li(i,(function(e,r){o&&function(t,e){return 2===ci(t)?t.get(e):t[e]}(o.t,e)===r||hi(i,e,t(r))})),3===r?new Set(i):i}(t)}function Di(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return gi(t)}Je=ii,Qe=oi,ti=ei,ri.reduxProperties=new Map,ri.reduxReactiveProperties=new Set,ri.reduxEventListeners=new Map;var Fi,Pi,Mi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ji="undefined"!=typeof Map,zi="undefined"!=typeof Set,Bi="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ki=Mi?Symbol.for("immer-nothing"):((Fi={})["immer-nothing"]=!0,Fi),Zi=Mi?Symbol.for("immer-draftable"):"__$immer_draftable",Hi=Mi?Symbol.for("immer-state"):"__$immer_state",Gi=""+Object.prototype.constructor,Vi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,qi=Object.getOwnPropertyDescriptors||function(t){var e={};return Vi(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Yi={},Xi={get:function(t,e){if(e===Hi)return t;var i=yi(t);if(!fi(i,e))return function(t,e,i){var o,r=Li(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!si(o)?o:o===Ui(t.t,e)?(_i(t),t.o[e]=Ti(t.A.h,o,t)):o},has:function(t,e){return e in yi(t)},ownKeys:function(t){return Reflect.ownKeys(yi(t))},set:function(t,e,i){var o=Li(yi(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Ui(yi(t),e),n=null==r?void 0:r[Hi];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(di(i,r)&&(void 0!==i||fi(t.t,e)))return!0;_i(t),Ai(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!==Ui(t.t,e)||e in t.t?(t.R[e]=!1,_i(t),Ai(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=yi(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){ni(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ni(12)}},Ji={};li(Xi,(function(t,e){Ji[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ji.deleteProperty=function(t,e){return Ji.set.call(this,t,e,void 0)},Ji.set=function(t,e,i){return Xi.set.call(this,t[0],e,i,t[0])};var Qi=function(){function t(t){var e=this;this.O=Bi,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&ni(6),void 0!==o&&"function"!=typeof o&&ni(7),si(t)){var s=Ni(e),l=Ti(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Si(s):$i(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Oi(s,o),Ei(t,s)}),(function(t){throw Si(s),t})):(Oi(s,o),Ei(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Ki&&(a=void 0),e.D&&bi(a,!0),o){var f=[],h=[];xi("Patches").M(t,a,f,h),o(f,h)}return a}ni(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"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){si(t)||ni(8),ai(t)&&(t=Wi(t));var e=Ni(this),i=Ti(this,t,void 0);return i[Hi].C=!0,$i(e),i},e.finishDraft=function(t,e){var i=(t&&t[Hi]).A;return Oi(i,e),Ei(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Bi&&ni(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=xi("Patches").$;return ai(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),to=new Qi,eo=to.produce;function io(t){return io="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},io(t)}function oo(t){var e=function(t,e){if("object"!==io(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==io(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===io(e)?e:String(e)}function ro(t,e,i){return(e=oo(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function no(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function ao(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?no(Object(i),!0).forEach((function(e){ro(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):no(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function so(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. "}to.produceWithPatches.bind(to),to.setAutoFreeze.bind(to),to.setUseProxies.bind(to),to.applyPatches.bind(to),to.createDraft.bind(to),to.finishDraft.bind(to);var lo="function"==typeof Symbol&&Symbol.observable||"@@observable",co=function(){return Math.random().toString(36).substring(7).split("").join(".")},fo={INIT:"@@redux/INIT"+co(),REPLACE:"@@redux/REPLACE"+co(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+co()}};function ho(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(so(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(so(1));return i(ho)(t,e)}if("function"!=typeof t)throw new Error(so(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(so(3));return n}function h(t){if("function"!=typeof t)throw new Error(so(4));if(l)throw new Error(so(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(so(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=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(so(7));if(void 0===t.type)throw new Error(so(8));if(l)throw new Error(so(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:fo.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(so(10));r=t,d({type:fo.REPLACE})}})[lo]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(so(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[lo]=function(){return this},t},o}function uo(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:fo.INIT}))throw new Error(so(12));if(void 0===i(void 0,{type:fo.PROBE_UNKNOWN_ACTION()}))throw new Error(so(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(so(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function po(){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 yo(){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),o=function(){throw new Error(so(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=po.apply(void 0,n)(i.dispatch),ao(ao({},i),{},{dispatch:o})}}}function go(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var bo=go();bo.withExtraArgument=go;var vo,mo=bo,xo=(vo=function(t,e){return vo=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])},vo(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}vo(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),wo=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Oo=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},So=Object.defineProperty,$o=Object.defineProperties,No=Object.getOwnPropertyDescriptors,Co=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,Ro=function(t,e,i){return e in t?So(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Io=function(t,e){for(var i in e||(e={}))Eo.call(e,i)&&Ro(t,i,e[i]);if(Co)for(var o=0,r=Co(e);o<r.length;o++){i=r[o];ko.call(e,i)&&Ro(t,i,e[i])}return t},Uo=function(t,e){return $o(t,No(e))},Lo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?po:po.apply(null,arguments)};var Ao=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return xo(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,Oo([void 0],t[0].concat(this)))):new(e.bind.apply(e,Oo([void 0],t.concat(this))))},e}(Array),_o=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return xo(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,Oo([void 0],t[0].concat(this)))):new(e.bind.apply(e,Oo([void 0],t.concat(this))))},e}(Array);function To(t){return si(t)?eo(t,(function(){})):t}function Wo(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Ao;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(mo.withExtraArgument(i.extraArgument)):o.push(mo));return o}(t)}}function Do(t){var e,i=Wo(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,h=void 0===f?void 0:f,d=o.enhancers,u=void 0===d?void 0:d;if("function"==typeof n)e=n;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}(n))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=uo(n)}var p=s;"function"==typeof p&&(p=p(i));var y=yo.apply(void 0,p),g=po;c&&(g=Lo(Io({trace:!1},"object"==typeof c&&c)));var b=new _o(y),v=b;return Array.isArray(u)?v=Oo([y],u):"function"==typeof u&&(v=u(b)),ho(e,h,g.apply(void 0,v))}function Fo(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Io(Io({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.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 Po(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Mo(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:To(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Po(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Io(Io({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Po(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return To(t())};else{var c=To(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=Oo([a[e.type]],s.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 o;if(ai(t))return void 0===(o=i(t,e))?t:o;if(si(t))return eo(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Fo(c,o):Fo(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var jo=["name","message","stack","code"],zo=function(t,e){this.payload=t,this.meta=e},Bo=function(t,e){this.payload=t,this.meta=e},Ko=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=jo;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Zo(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 o=Fo(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Uo(Io({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Fo(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Uo(Io({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Fo(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Ko)(t||"Rejected"),meta:Uo(Io({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="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(s,l,c){var f,h=(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 a;function u(t){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return wo(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new zo(t,e)},fulfillWithValue:function(t,e){return new Bo(t,e)}})).then((function(e){if(e instanceof zo)throw e;return e instanceof Bo?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof zo?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Zo)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Ho="listenerMiddleware";Fo(Ho+"/add"),Fo(Ho+"/removeAll"),Fo(Ho+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Hi];return Xi.get(e,t)},set:function(e){var i=this[Hi];Xi.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Hi];if(!r.P)switch(r.i){case 5:o(r)&&Ai(r);break;case 4:i(r)&&Ai(r)}}}function i(t){for(var e=t.t,i=t.k,o=Vi(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Hi){var a=e[n];if(void 0===a&&!fi(e,n))return!0;var s=i[n],l=s&&s[Hi];if(l?l.t!==a:!di(s,a))return!0}}var c=!!e[Hi];return o.length!==Vi(e).length+(c?0:1)}function o(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 o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Yi[t]||(Yi[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=qi(i);delete n[Hi];for(var a=Vi(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:wi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Hi,{value:n,writable:!0}),r},S:function(t,i,r){r?ai(i)&&i[Hi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Hi];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)li(n,(function(e){e!==Hi&&(void 0!==r[e]||fi(r,e)?a[e]||t(n[e]):(a[e]=!0,Ai(i)))})),li(r,(function(t){void 0!==n[t]||fi(n,t)||(a[t]=!1,Ai(i))}));else if(5===s){if(o(i)&&(Ai(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Go{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Xe(r))return r;if(null==o)return;const n=Mo({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Do({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Go(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ye,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}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 Vo=Symbol("elementInternals");function qo(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Vo].form}constructor(...t){super(t),this[Vo]=this.attachInternals(),this[Vo].role=e}setFormValue(t){this[Vo].setFormValue(t)}}}var Yo,Xo,Jo;const Qo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Jo=null===(Xo=null===(Yo=window.safari)||void 0===Yo?void 0:Yo.pushNotification)||void 0===Xo?void 0:Xo.toString())&&void 0!==Jo?Jo:"");var tr;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(tr||(tr={}));var er=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ir extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const or=Symbol("registerInterval");class rr 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[or]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[or]):this.dispatchEvent(new ir)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=or,er([k()],i.prototype,"stateManager",void 0),i}(ri)){}const nr=ke.extend("--ft-ripple-color","",_e.colorContent),ar={color:nr,backgroundColor:ke.extend("--ft-ripple-background-color","",nr),opacityContentOnSurfacePressed:ke.external(_e.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ke.external(_e.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ke.external(_e.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ke.external(_e.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ke.create("--ft-ripple-border-radius","","SIZE","0px")},sr=ke.extend("--ft-ripple-color","",_e.colorPrimary),lr=sr,cr=ke.extend("--ft-ripple-background-color","",sr),fr=ke.extend("--ft-ripple-color","",_e.colorSecondary),hr=fr,dr=ke.extend("--ft-ripple-background-color","",fr),ur=kt`
|
|
132
132
|
:host {
|
|
133
133
|
display: contents;
|
|
134
134
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-feedback",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Feedback forms for a map and its topics in an integrated reader",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,13 +19,13 @@
|
|
|
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.1.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "1.1.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-app-context": "1.1.9",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "1.1.9",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "1.1.9",
|
|
25
25
|
"lit": "3.1.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@fluid-topics/public-api": "1.0.52"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "260010bbe1de163e812ed46e15cd25b7008f2f87"
|
|
31
31
|
}
|