1function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var i=arguments[r]==null?{}:arguments[r];r%2?t(Object(i),!0).forEach(function(t){e(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}function r(){var e=[...arguments];return function(t){return e.reduceRight(function(e,t){return t(e)},t)}}function i(e){return function t(){var n=this,r=[...arguments];return r.length>=e.length?e.apply(this,r):function(){var e=[...arguments];return t.apply(n,[].concat(r,e))}}}function a(e){return{}.toString.call(e).includes(`Object`)}function o(e){return!Object.keys(e).length}function s(e){return typeof e==`function`}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return a(t)||m(`changeType`),Object.keys(t).some(function(t){return!c(e,t)})&&m(`changeField`),t}function u(e){s(e)||m(`selectorType`)}function d(e){s(e)||a(e)||m(`handlerType`),a(e)&&Object.values(e).some(function(e){return!s(e)})&&m(`handlersType`)}function f(e){e||m(`initialIsRequired`),a(e)||m(`initialType`),o(e)&&m(`initialContent`)}function p(e,t){throw Error(e[t]||e.default)}var m=i(p)({initialIsRequired:`initial state is required`,initialType:`initial state should be an object`,initialContent:`initial state shouldn't be an empty object`,handlerType:`handler should be an object or a function`,handlersType:`all handlers should be a functions`,selectorType:`selector should be a function`,changeType:`provided value of changes should be an object`,changeField:`it seams you want to change a field in the state which is not specified in the "initial" state`,default:"an unknown error accured in `state-local` package"}),h={changes:l,selector:u,handler:d,initial:f};function g(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};h.initial(e),h.handler(t);var n={current:e},a=i(y)(n,t),o=i(v)(n),s=i(h.changes)(e),c=i(_)(n);function l(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(e){return e};return h.selector(e),e(n.current)}function u(e){r(a,o,s,c)(e)}return[l,u]}function _(e,t){return s(t)?t(e.current):t}function v(e,t){return e.current=n(n({},e.current),t),t}function y(e,t,n){return s(t)?t(e.current):Object.keys(n).forEach(function(n){return t[n]?.call(t,e.current[n])}),n}var b={create:g};export{b as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.